@mseva/digit-ui-module-obps 1.0.67 → 1.0.69

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, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, StatusTable, Row, CitizenInfoLabel, LabelFieldPair, CardSubHeader, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$1, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, ButtonSelector, ImageViewer, Menu, OTPInput, TextArea, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, ArrowDown, Close as Close$d, 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, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, StatusTable, Row, CitizenInfoLabel, LabelFieldPair, CardSubHeader, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$1, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, ButtonSelector, OTPInput, ImageViewer, Menu, TextArea, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, ArrowDown, Close as Close$d, BreakLine, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
5
5
  import { useWatch, useForm, Controller, useFormContext, useFieldArray } from 'react-hook-form';
6
6
  import { useDispatch, useSelector } from 'react-redux';
7
7
  import 'react-dom';
@@ -13098,6 +13098,27 @@ const useEDCRForm = ({
13098
13098
  };
13099
13099
  };
13100
13100
 
13101
+ const CustomLoader = ({
13102
+ message
13103
+ }) => {
13104
+ const {
13105
+ t
13106
+ } = useTranslation();
13107
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
13108
+ className: "loader-message"
13109
+ }, /*#__PURE__*/React.createElement("div", {
13110
+ className: "body"
13111
+ }, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement("div", {
13112
+ className: "base"
13113
+ }, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("div", {
13114
+ className: "face"
13115
+ }))), /*#__PURE__*/React.createElement("div", {
13116
+ className: "longfazers"
13117
+ }, /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null), /*#__PURE__*/React.createElement("span", null)), /*#__PURE__*/React.createElement("div", {
13118
+ className: "message"
13119
+ }, t(message))));
13120
+ };
13121
+
13101
13122
  const EDCRForm = ({
13102
13123
  t,
13103
13124
  config,
@@ -13267,9 +13288,9 @@ const EDCRForm = ({
13267
13288
  return /*#__PURE__*/React.createElement(Loader, null);
13268
13289
  }
13269
13290
  if (isSubmitBtnDisable) {
13270
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
13271
- className: "loader-message"
13272
- }, t("EDCR_SCRUTINY_LOADING_MESSAGE")));
13291
+ return /*#__PURE__*/React.createElement(CustomLoader, {
13292
+ message: "EDCR_SCRUTINY_LOADING_MESSAGE"
13293
+ });
13273
13294
  }
13274
13295
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
13275
13296
  onKeyDown: e => {
@@ -13452,6 +13473,24 @@ const Timeline = ({
13452
13473
  }))));
13453
13474
  };
13454
13475
 
13476
+ const rowContainerStyleEven = {
13477
+ backgroundColor: "#fff",
13478
+ display: "flex",
13479
+ justifyContent: "space-between",
13480
+ alignItems: "center",
13481
+ padding: "15px 30px",
13482
+ width: "100%",
13483
+ marginBottom: "0px"
13484
+ };
13485
+ const labelStyle = {
13486
+ width: "60%"
13487
+ };
13488
+ const textStyle = {
13489
+ width: "40%",
13490
+ textAlign: "left",
13491
+ wordBreak: "break-word"
13492
+ };
13493
+
13455
13494
  const BasicDetails = ({
13456
13495
  formData,
13457
13496
  onSelect,
@@ -13614,7 +13653,10 @@ const BasicDetails = ({
13614
13653
  }), /*#__PURE__*/React.createElement(Row, {
13615
13654
  className: "border-none",
13616
13655
  label: t(`BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL`),
13617
- text: basicData === null || basicData === void 0 ? void 0 : (_basicData$planDetail14 = basicData.planDetail) === null || _basicData$planDetail14 === void 0 ? void 0 : (_basicData$planDetail15 = _basicData$planDetail14.planInformation) === null || _basicData$planDetail15 === void 0 ? void 0 : _basicData$planDetail15.applicantName
13656
+ text: basicData === null || basicData === void 0 ? void 0 : (_basicData$planDetail14 = basicData.planDetail) === null || _basicData$planDetail14 === void 0 ? void 0 : (_basicData$planDetail15 = _basicData$planDetail14.planInformation) === null || _basicData$planDetail15 === void 0 ? void 0 : _basicData$planDetail15.applicantName,
13657
+ rowContainerStyle: rowContainerStyleEven,
13658
+ labelStyle: labelStyle,
13659
+ textStyle: textStyle
13618
13660
  }))))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
13619
13661
  label: t(`CS_COMMON_NEXT`),
13620
13662
  onSubmit: handleSubmit,
@@ -14045,7 +14087,8 @@ const PropertySearch = ({
14045
14087
  }, [isLoading]);
14046
14088
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
14047
14089
  style: {
14048
- marginBottom: "16px"
14090
+ marginBottom: "16px",
14091
+ marginTop: "20px"
14049
14092
  }
14050
14093
  }, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
14051
14094
  className: "card-label-smaller ndc_card_labels",
@@ -14053,7 +14096,6 @@ const PropertySearch = ({
14053
14096
  }, `${t(propertyIdInput.label)}`, null), /*#__PURE__*/React.createElement("div", {
14054
14097
  className: "field ndc_property_search",
14055
14098
  style: {
14056
- marginTop: "20px",
14057
14099
  display: "flex",
14058
14100
  gap: "16px",
14059
14101
  alignItems: "baseline",
@@ -14077,7 +14119,7 @@ const PropertySearch = ({
14077
14119
  maxWidth: "100px"
14078
14120
  },
14079
14121
  onClick: searchProperty
14080
- }, `${t("PT_SEARCH")}`), isLoading && /*#__PURE__*/React.createElement(Loader, null))), /*#__PURE__*/React.createElement(StatusTable, null, (formData === null || formData === void 0 ? void 0 : (_formData$cpt0 = formData.cpt) === null || _formData$cpt0 === void 0 ? void 0 : _formData$cpt0.details) && /*#__PURE__*/React.createElement(Row, {
14122
+ }, `${t("PT_SEARCH")}`), isLoading && /*#__PURE__*/React.createElement(Loader, null))), (formData === null || formData === void 0 ? void 0 : (_formData$cpt0 = formData.cpt) === null || _formData$cpt0 === void 0 ? void 0 : _formData$cpt0.details) && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
14081
14123
  className: "border-none",
14082
14124
  label: t(`PT_ACKNOWLEDGEMENT_NUMBER`),
14083
14125
  text: (formData === null || formData === void 0 ? void 0 : (_formData$cpt1 = formData.cpt) === null || _formData$cpt1 === void 0 ? void 0 : (_formData$cpt1$detail = _formData$cpt1.details) === null || _formData$cpt1$detail === void 0 ? void 0 : _formData$cpt1$detail.acknowldgementNumber) || NA
@@ -15936,7 +15978,7 @@ const BPANewBuildingdetails = ({
15936
15978
  disabled: true
15937
15979
  }), /*#__PURE__*/React.createElement(ErrorMessage, {
15938
15980
  error: errors.Ulblisttype
15939
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_APPROVED_COLONY")} *`), /*#__PURE__*/React.createElement(Controller, {
15981
+ }), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_APPROVED_COLONY")} *`), /*#__PURE__*/React.createElement(Controller, {
15940
15982
  control: control,
15941
15983
  name: "approvedColony",
15942
15984
  defaultValue: approvedColony,
@@ -15982,7 +16024,7 @@ const BPANewBuildingdetails = ({
15982
16024
  })), /*#__PURE__*/React.createElement("div", {
15983
16025
  style: {
15984
16026
  position: "relative",
15985
- zIndex: "100",
16027
+ zIndex: "1",
15986
16028
  right: "95px",
15987
16029
  marginTop: "-24px",
15988
16030
  marginRight: Webview ? "-20px" : "-20px"
@@ -15994,7 +16036,11 @@ const BPANewBuildingdetails = ({
15994
16036
  fontWeight: "bold",
15995
16037
  left: "20px"
15996
16038
  }
15997
- }, "OR"), /*#__PURE__*/React.createElement(UploadFile, {
16039
+ }, "OR"), /*#__PURE__*/React.createElement("div", {
16040
+ style: {
16041
+ marginBottom: "15px"
16042
+ }
16043
+ }, /*#__PURE__*/React.createElement(UploadFile, {
15998
16044
  id: "noc-doc",
15999
16045
  onUpload: selectfile,
16000
16046
  onDelete: () => {
@@ -16005,7 +16051,7 @@ const BPANewBuildingdetails = ({
16005
16051
  error: errors.file
16006
16052
  }), errors.NocNumber && /*#__PURE__*/React.createElement(ErrorMessage, {
16007
16053
  error: errors.NocNumber
16008
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_MASTER_PLAN")} *`), /*#__PURE__*/React.createElement(Controller, {
16054
+ }))), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_MASTER_PLAN")} *`), /*#__PURE__*/React.createElement(Controller, {
16009
16055
  control: control,
16010
16056
  name: "masterPlan",
16011
16057
  defaultValue: masterPlan,
@@ -16093,7 +16139,7 @@ const BPANewBuildingdetails = ({
16093
16139
  })
16094
16140
  }), errors.rating && /*#__PURE__*/React.createElement(ErrorMessage, {
16095
16141
  error: errors.rating
16096
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_RESTRICTED_AREA")}`), /*#__PURE__*/React.createElement(Controller, {
16142
+ })), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_RESTRICTED_AREA")}`), /*#__PURE__*/React.createElement(Controller, {
16097
16143
  control: control,
16098
16144
  name: "restrictedArea",
16099
16145
  defaultValue: restrictedArea,
@@ -16121,7 +16167,7 @@ const BPANewBuildingdetails = ({
16121
16167
  })
16122
16168
  }), /*#__PURE__*/React.createElement(ErrorMessage, {
16123
16169
  error: errors.proposedSite
16124
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t(`ECBC - Proposed Connected Electrical Load is above 100 Kw`)), /*#__PURE__*/React.createElement(Controller, {
16170
+ }), /*#__PURE__*/React.createElement(CardLabel, null, t(`ECBC - Proposed Connected Electrical Load is above 100 Kw`)), /*#__PURE__*/React.createElement(Controller, {
16125
16171
  control: control,
16126
16172
  name: "ecbcElectricalLoad",
16127
16173
  defaultValue: ecbcElectricalLoad,
@@ -17019,13 +17065,14 @@ const OwnerDetails = ({
17019
17065
  position: "relative",
17020
17066
  zIndex: "100",
17021
17067
  left: "35px",
17022
- marginTop: "-22.5px",
17023
- marginLeft: Webview ? "-25px" : "-25px"
17068
+ marginTop: "-24px",
17069
+ marginLeft: Webview ? "-25px" : "-25px",
17070
+ borderRight: "1px solid"
17024
17071
  }
17025
17072
  }, "+91"), /*#__PURE__*/React.createElement(TextInput, Object.assign({
17026
17073
  style: {
17027
17074
  background: "#FAFAFA",
17028
- padding: "0px 35px"
17075
+ padding: "0px 39px"
17029
17076
  },
17030
17077
  type: "text",
17031
17078
  t: t,
@@ -21935,10 +21982,9 @@ const ScruntinyDetails = ({
21935
21982
 
21936
21983
  const CitizenConsent = ({
21937
21984
  showTermsPopupOwner,
21938
- setShowTermsPopupOwner,
21939
- otpVerifiedTimestamp
21985
+ setShowTermsPopupOwner
21940
21986
  }) => {
21941
- var _user$info, _user$info2, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData0, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17, _data$applicationData18, _data$applicationData19, _params$additionalDet3, _data$applicationData20, _data$applicationData21, _data$applicationData22, _data$applicationData23, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$applicationData28, _data$applicationData29, _data$applicationData30, _data$applicationData31, _data$applicationData32, _data$applicationData33, _data$applicationData34, _data$applicationData35, _data$applicationData36, _data$applicationData37, _data$applicationData38;
21987
+ var _user$info, _user$info2, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData0, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17, _params$additionalDet3, _data$applicationData18, _data$applicationData19, _data$applicationData20, _data$applicationData21, _data$applicationData22, _data$applicationData23, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$applicationData28, _data$applicationData29, _data$applicationData30, _data$applicationData31, _data$applicationData32, _data$applicationData33, _data$applicationData34, _data$applicationData35, _data$applicationData36;
21942
21988
  const [isModalOpen, setIsModalOpen] = useState(false);
21943
21989
  const {
21944
21990
  state
@@ -21979,6 +22025,7 @@ const CitizenConsent = ({
21979
22025
  });
21980
22026
  const [isUploading, setIsUploading] = useState(false);
21981
22027
  const [isFileUploaded, setIsFileUploaded] = useState(false);
22028
+ const mobileNumber = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.timeline) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.assigner) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.mobileNumber;
21982
22029
  const khasranumber = data === null || data === void 0 ? void 0 : (_data$applicationData = data.applicationData) === null || _data$applicationData === void 0 ? void 0 : (_data$applicationData2 = _data$applicationData.additionalDetails) === null || _data$applicationData2 === void 0 ? void 0 : _data$applicationData2.khasraNumber;
21983
22030
  const ward = data === null || data === void 0 ? void 0 : (_data$applicationData3 = data.applicationData) === null || _data$applicationData3 === void 0 ? void 0 : (_data$applicationData4 = _data$applicationData3.additionalDetails) === null || _data$applicationData4 === void 0 ? void 0 : _data$applicationData4.wardnumber;
21984
22031
  const area = data === null || data === void 0 ? void 0 : (_data$applicationData5 = data.applicationData) === null || _data$applicationData5 === void 0 ? void 0 : (_data$applicationData6 = _data$applicationData5.additionalDetails) === null || _data$applicationData6 === void 0 ? void 0 : _data$applicationData6.area;
@@ -21986,10 +22033,19 @@ const CitizenConsent = ({
21986
22033
  const architectid = data === null || data === void 0 ? void 0 : (_data$applicationData8 = data.applicationData) === null || _data$applicationData8 === void 0 ? void 0 : (_data$applicationData9 = _data$applicationData8.additionalDetails) === null || _data$applicationData9 === void 0 ? void 0 : _data$applicationData9.architectid;
21987
22034
  const architecttype = data === null || data === void 0 ? void 0 : (_data$applicationData0 = data.applicationData) === null || _data$applicationData0 === void 0 ? void 0 : (_data$applicationData1 = _data$applicationData0.additionalDetails) === null || _data$applicationData1 === void 0 ? void 0 : _data$applicationData1.typeOfArchitect;
21988
22035
  const ulbselection = (data === null || data === void 0 ? void 0 : (_data$applicationData10 = data.applicationData) === null || _data$applicationData10 === void 0 ? void 0 : (_data$applicationData11 = _data$applicationData10.additionalDetails) === null || _data$applicationData11 === void 0 ? void 0 : _data$applicationData11.Ulblisttype) === "Municipal Corporation" ? "The Municipal Commissioner" : "Executive Officer";
21989
- const TimeStamp = otpVerifiedTimestamp || (data === null || data === void 0 ? void 0 : (_data$applicationData12 = data.applicationData) === null || _data$applicationData12 === void 0 ? void 0 : (_data$applicationData13 = _data$applicationData12.additionalDetails) === null || _data$applicationData13 === void 0 ? void 0 : _data$applicationData13.TimeStamp) || "";
21990
- const stakeholderName = (data === null || data === void 0 ? void 0 : (_data$applicationData14 = data.applicationData) === null || _data$applicationData14 === void 0 ? void 0 : (_data$applicationData15 = _data$applicationData14.additionalDetails) === null || _data$applicationData15 === void 0 ? void 0 : _data$applicationData15.stakeholderName) || "NA";
22036
+ const stakeholderName = (data === null || data === void 0 ? void 0 : (_data$applicationData12 = data.applicationData) === null || _data$applicationData12 === void 0 ? void 0 : (_data$applicationData13 = _data$applicationData12.additionalDetails) === null || _data$applicationData13 === void 0 ? void 0 : _data$applicationData13.stakeholderName) || "NA";
21991
22037
  const isCitizenDeclared = sessionStorage.getItem("CitizenConsentdocFilestoreid");
21992
- const address = (data === null || data === void 0 ? void 0 : (_data$applicationData16 = data.applicationData) === null || _data$applicationData16 === void 0 ? void 0 : (_data$applicationData17 = _data$applicationData16.landInfo) === null || _data$applicationData17 === void 0 ? void 0 : (_data$applicationData18 = _data$applicationData17.owners) === null || _data$applicationData18 === void 0 ? void 0 : (_data$applicationData19 = _data$applicationData18[0]) === null || _data$applicationData19 === void 0 ? void 0 : _data$applicationData19.permanentAddress) || "NA";
22038
+ const address = (data === null || data === void 0 ? void 0 : (_data$applicationData14 = data.applicationData) === null || _data$applicationData14 === void 0 ? void 0 : (_data$applicationData15 = _data$applicationData14.landInfo) === null || _data$applicationData15 === void 0 ? void 0 : (_data$applicationData16 = _data$applicationData15.owners) === null || _data$applicationData16 === void 0 ? void 0 : (_data$applicationData17 = _data$applicationData16[0]) === null || _data$applicationData17 === void 0 ? void 0 : _data$applicationData17.permanentAddress) || "NA";
22039
+ const [showOTPInput, setShowOTPInput] = useState(false);
22040
+ const [otp, setOTP] = useState("");
22041
+ const [otpError, setOTPError] = useState("");
22042
+ const [otpSuccess, setOTPSuccess] = useState("");
22043
+ const [TimeStamp, setOTPVerifiedTimestamp] = useState(() => {
22044
+ return sessionStorage.getItem("otpVerifiedTimestampcitizen") || "";
22045
+ });
22046
+ const [userSelected, setUser] = useState(null);
22047
+ const [setOtpLoading, setSetOtpLoading] = useState(false);
22048
+ const stateCode = Digit.ULBService.getStateId();
21993
22049
  const DateOnly = TimeStamp ? (() => {
21994
22050
  const date = new Date(TimeStamp);
21995
22051
  const day = String(date.getDate()).padStart(2, "0");
@@ -21997,10 +22053,68 @@ const CitizenConsent = ({
21997
22053
  const year = date.getFullYear();
21998
22054
  return `${day}-${month}-${year}`;
21999
22055
  })() : "";
22000
- console.log("TimeStamp", otpVerifiedTimestamp, params === null || params === void 0 ? void 0 : (_params$additionalDet3 = params.additionalDetails) === null || _params$additionalDet3 === void 0 ? void 0 : _params$additionalDet3.TimeStamp, TimeStamp);
22056
+ const handleVerifyOTPClick = async () => {
22057
+ var _user$info3, _user$info4;
22058
+ const requestData = {
22059
+ username: ownermobileNumber,
22060
+ password: otp,
22061
+ tenantId: user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.tenantId,
22062
+ userType: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.type
22063
+ };
22064
+ try {
22065
+ setSetOtpLoading(true);
22066
+ const {
22067
+ ResponseInfo,
22068
+ UserRequest: info,
22069
+ ...tokens
22070
+ } = await Digit.UserService.authenticate(requestData);
22071
+ if (ResponseInfo.status === "Access Token generated successfully") {
22072
+ setOTPSuccess(t("VERIFIED"));
22073
+ const currentTimestamp = new Date();
22074
+ setOTPVerifiedTimestamp(currentTimestamp);
22075
+ sessionStorage.setItem("otpVerifiedTimestampcitizen", currentTimestamp.toISOString());
22076
+ setUser({
22077
+ info,
22078
+ ...tokens
22079
+ });
22080
+ setSetOtpLoading(false);
22081
+ return currentTimestamp;
22082
+ } else {
22083
+ setOTPError(t("WRONG OTP"));
22084
+ setSetOtpLoading(false);
22085
+ return "";
22086
+ }
22087
+ } catch (error) {
22088
+ console.error("Error verifying OTP:", error);
22089
+ setIsOTPVerified(false);
22090
+ setOTPError(t("Error verifying OTP"));
22091
+ return "";
22092
+ }
22093
+ };
22094
+ const handleGetOTPClick = async () => {
22095
+ try {
22096
+ var _user$info5, _user$info6;
22097
+ const response = await Digit.UserService.sendOtp({
22098
+ otp: {
22099
+ mobileNumber: mobileNumber,
22100
+ tenantId: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.tenantId,
22101
+ userType: user === null || user === void 0 ? void 0 : (_user$info6 = user.info) === null || _user$info6 === void 0 ? void 0 : _user$info6.type,
22102
+ type: "login"
22103
+ }
22104
+ });
22105
+ if (response.isSuccessful) {
22106
+ setShowOTPInput(true);
22107
+ } else {
22108
+ console.error("Error sending OTP Response is false:", response.error);
22109
+ }
22110
+ } catch (error) {
22111
+ console.error("Error sending OTP:", error);
22112
+ }
22113
+ };
22114
+ console.log("TimeStamp", params === null || params === void 0 ? void 0 : (_params$additionalDet3 = params.additionalDetails) === null || _params$additionalDet3 === void 0 ? void 0 : _params$additionalDet3.TimeStamp, TimeStamp);
22001
22115
  const updatedAdditionalDetails = {
22002
22116
  ...(data === null || data === void 0 ? void 0 : data.applicationData),
22003
- TimeStamp: otpVerifiedTimestamp
22117
+ TimeStamp: TimeStamp
22004
22118
  };
22005
22119
  const updatedData = {
22006
22120
  applicationNo: data === null || data === void 0 ? void 0 : data.applicationNo,
@@ -22023,13 +22137,13 @@ const CitizenConsent = ({
22023
22137
  <div style="margin-top:-52px;">
22024
22138
  <p style="margin-bottom:-32px;"><strong>To,</strong></p>
22025
22139
  <p style="margin-bottom:-32px;"><strong>${ulbselection || "<ULB Type>"}</strong></p>
22026
- <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData20 = data.applicationData) === null || _data$applicationData20 === void 0 ? void 0 : (_data$applicationData21 = _data$applicationData20.additionalDetails) === null || _data$applicationData21 === void 0 ? void 0 : _data$applicationData21.UlbName) || "<ULB Name>"}</b></p>
22140
+ <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>
22027
22141
  </div>
22028
22142
 
22029
22143
  <p style="margin-top:-50px;"><strong>Dear Sir/Madam,</strong></p>
22030
22144
 
22031
22145
  <p style="margin-top:-52px;margin-bottom:-32px;margin-left-5px; text-align:justify;">
22032
- I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData22 = data.applicationData) === null || _data$applicationData22 === void 0 ? void 0 : (_data$applicationData23 = _data$applicationData22.landInfo) === null || _data$applicationData23 === void 0 ? void 0 : _data$applicationData23.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>, undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ${data === null || data === void 0 ? void 0 : (_data$applicationData24 = data.applicationData) === null || _data$applicationData24 === void 0 ? void 0 : (_data$applicationData25 = _data$applicationData24.additionalDetails) === null || _data$applicationData25 === void 0 ? void 0 : _data$applicationData25.Ulblisttype} - <b>${data === null || data === void 0 ? void 0 : (_data$applicationData26 = data.applicationData) === null || _data$applicationData26 === void 0 ? void 0 : (_data$applicationData27 = _data$applicationData26.additionalDetails) === null || _data$applicationData27 === void 0 ? void 0 : _data$applicationData27.UlbName}</b>, Area <b>${area}</b> (Sq.mts.), address <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData28 = data.applicationData) === null || _data$applicationData28 === void 0 ? void 0 : (_data$applicationData29 = _data$applicationData28.landInfo) === null || _data$applicationData29 === void 0 ? void 0 : (_data$applicationData30 = _data$applicationData29.address) === null || _data$applicationData30 === void 0 ? void 0 : (_data$applicationData31 = _data$applicationData30.locality) === null || _data$applicationData31 === void 0 ? void 0 : (_data$applicationData32 = _data$applicationData31.name) === null || _data$applicationData32 === void 0 ? void 0 : (_data$applicationData33 = _data$applicationData32.split("-")) === null || _data$applicationData33 === void 0 ? void 0 : (_data$applicationData34 = _data$applicationData33[0]) === null || _data$applicationData34 === void 0 ? void 0 : _data$applicationData34.trim()) || "NA"}</b>, Ward Number <b>${ward}</b>, Zone Number <b>${data === null || data === void 0 ? void 0 : (_data$applicationData35 = data.applicationData) === null || _data$applicationData35 === void 0 ? void 0 : (_data$applicationData36 = _data$applicationData35.additionalDetails) === null || _data$applicationData36 === void 0 ? void 0 : _data$applicationData36.zonenumber}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData37 = data.applicationData) === null || _data$applicationData37 === void 0 ? void 0 : (_data$applicationData38 = _data$applicationData37.additionalDetails) === null || _data$applicationData38 === void 0 ? void 0 : _data$applicationData38.District) || "<City>"}</b>.
22146
+ I/We, Shri/Smt/Kum <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData20 = data.applicationData) === null || _data$applicationData20 === void 0 ? void 0 : (_data$applicationData21 = _data$applicationData20.landInfo) === null || _data$applicationData21 === void 0 ? void 0 : _data$applicationData21.owners.map(item => item === null || item === void 0 ? void 0 : item.name).join(", ")) || "<Owner Name>"}</b>, undersigned owner(s) of land bearing Kh. No. <b>${khasranumber}</b> of ${data === null || data === void 0 ? void 0 : (_data$applicationData22 = data.applicationData) === null || _data$applicationData22 === void 0 ? void 0 : (_data$applicationData23 = _data$applicationData22.additionalDetails) === null || _data$applicationData23 === void 0 ? void 0 : _data$applicationData23.Ulblisttype} - <b>${data === null || data === void 0 ? void 0 : (_data$applicationData24 = data.applicationData) === null || _data$applicationData24 === void 0 ? void 0 : (_data$applicationData25 = _data$applicationData24.additionalDetails) === null || _data$applicationData25 === void 0 ? void 0 : _data$applicationData25.UlbName}</b>, Area <b>${area}</b> (Sq.mts.), address <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData26 = data.applicationData) === null || _data$applicationData26 === void 0 ? void 0 : (_data$applicationData27 = _data$applicationData26.landInfo) === null || _data$applicationData27 === void 0 ? void 0 : (_data$applicationData28 = _data$applicationData27.address) === null || _data$applicationData28 === void 0 ? void 0 : (_data$applicationData29 = _data$applicationData28.locality) === null || _data$applicationData29 === void 0 ? void 0 : (_data$applicationData30 = _data$applicationData29.name) === null || _data$applicationData30 === void 0 ? void 0 : (_data$applicationData31 = _data$applicationData30.split("-")) === null || _data$applicationData31 === void 0 ? void 0 : (_data$applicationData32 = _data$applicationData31[0]) === null || _data$applicationData32 === void 0 ? void 0 : _data$applicationData32.trim()) || "NA"}</b>, Ward Number <b>${ward}</b>, Zone Number <b>${data === null || data === void 0 ? void 0 : (_data$applicationData33 = data.applicationData) === null || _data$applicationData33 === void 0 ? void 0 : (_data$applicationData34 = _data$applicationData33.additionalDetails) === null || _data$applicationData34 === void 0 ? void 0 : _data$applicationData34.zonenumber}</b>, City <b>${(data === null || data === void 0 ? void 0 : (_data$applicationData35 = data.applicationData) === null || _data$applicationData35 === void 0 ? void 0 : (_data$applicationData36 = _data$applicationData35.additionalDetails) === null || _data$applicationData36 === void 0 ? void 0 : _data$applicationData36.District) || "<City>"}</b>.
22033
22147
  </p>
22034
22148
 
22035
22149
  <p style="margin-top:-52px;margin-bottom:-32px; text-align:justify;">
@@ -22048,7 +22162,7 @@ const CitizenConsent = ({
22048
22162
  </ol>
22049
22163
 
22050
22164
  <!-- Signature / details table -->
22051
- <table style="width:100%; border-collapse:collapse; margin-top:6px; font-size:14px;">
22165
+ ${TimeStamp !== "" ? `<table style="width:100%; border-collapse:collapse; margin-top:6px; font-size:14px;">
22052
22166
  <tr>
22053
22167
  <td style="width:48%; vertical-align:top; padding:6px; border:1px dotted #000;">
22054
22168
  <div style="font-weight:700; margin-bottom:4px;">Date:</div>
@@ -22081,7 +22195,7 @@ const CitizenConsent = ({
22081
22195
  <td style="padding:6px; font-weight:700;">Signature:</td>
22082
22196
  <td style="padding:6px;">Verified through OTP on <b>${TimeStamp || "<date> <time>"}</b></td>
22083
22197
  </tr>
22084
- </table>
22198
+ </table>` : ""}
22085
22199
  </td>
22086
22200
  </tr>
22087
22201
  </table>
@@ -22094,6 +22208,11 @@ const CitizenConsent = ({
22094
22208
  const uploadSelfDeclaration = async () => {
22095
22209
  try {
22096
22210
  var _result$filestoreIds$;
22211
+ const timeStamp = await handleVerifyOTPClick();
22212
+ if (timeStamp === "") {
22213
+ alert("OTP Verification Failed. Cannot upload the document.");
22214
+ return;
22215
+ }
22097
22216
  setIsUploading(true);
22098
22217
  let result = await Digit.PaymentService.generatePdf(Digit.ULBService.getStateId(), {
22099
22218
  Bpa: [updatedData]
@@ -22112,6 +22231,27 @@ const CitizenConsent = ({
22112
22231
  setIsUploading(false);
22113
22232
  }
22114
22233
  };
22234
+ useEffect(() => {
22235
+ if (!userSelected) {
22236
+ return;
22237
+ }
22238
+ Digit.SessionStorage.set("citizen.userRequestObject", user);
22239
+ Digit.UserService.setUser(userSelected);
22240
+ setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, stateCode);
22241
+ }, [userSelected]);
22242
+ const setCitizenDetail = (userObject, token, tenantId) => {
22243
+ var _JSON$parse, _JSON$parse$value;
22244
+ let locale = (_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.initData"))) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$value = _JSON$parse.value) === null || _JSON$parse$value === void 0 ? void 0 : _JSON$parse$value.selectedLanguage;
22245
+ localStorage.setItem("Citizen.tenant-id", tenantId);
22246
+ localStorage.setItem("tenant-id", tenantId);
22247
+ localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
22248
+ localStorage.setItem("locale", locale);
22249
+ localStorage.setItem("Citizen.locale", locale);
22250
+ localStorage.setItem("token", token);
22251
+ localStorage.setItem("Citizen.token", token);
22252
+ localStorage.setItem("user-info", JSON.stringify(userObject));
22253
+ localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
22254
+ };
22115
22255
  const modalStyles = {
22116
22256
  modal: {
22117
22257
  width: "100%",
@@ -22163,6 +22303,7 @@ const CitizenConsent = ({
22163
22303
  lineHeight: "2"
22164
22304
  }
22165
22305
  };
22306
+ const isValidMobileNumber = (mobileNumber === null || mobileNumber === void 0 ? void 0 : mobileNumber.length) === 10 && /^[0-9]+$/.test(mobileNumber);
22166
22307
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Modal$1, {
22167
22308
  isOpen: showTermsPopupOwner,
22168
22309
  onRequestClose: closeModal,
@@ -22183,7 +22324,7 @@ const CitizenConsent = ({
22183
22324
  dangerouslySetInnerHTML: {
22184
22325
  __html: selfdeclarationform
22185
22326
  }
22186
- })), /*#__PURE__*/React.createElement("div", {
22327
+ })), isUploading || setOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
22187
22328
  style: {
22188
22329
  display: "flex",
22189
22330
  justifyContent: "flex-end"
@@ -22198,9 +22339,24 @@ const CitizenConsent = ({
22198
22339
  }
22199
22340
  }, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(SubmitBar, {
22200
22341
  label: t("BPA_UPLOAD"),
22201
- onSubmit: uploadSelfDeclaration,
22202
- disabled: isUploading || isFileUploaded
22203
- })))));
22342
+ onSubmit: handleGetOTPClick,
22343
+ disabled: !isValidMobileNumber
22344
+ })), showOTPInput && !isCitizenDeclared && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_OTP")), /*#__PURE__*/React.createElement(OTPInput, {
22345
+ length: 6,
22346
+ onChange: value => setOTP(value),
22347
+ value: otp
22348
+ }), /*#__PURE__*/React.createElement(SubmitBar, {
22349
+ label: t("VERIFY_OTP"),
22350
+ onSubmit: uploadSelfDeclaration
22351
+ }), otpError && /*#__PURE__*/React.createElement(CardLabel, {
22352
+ style: {
22353
+ color: "red"
22354
+ }
22355
+ }, t(otpError)), otpSuccess && /*#__PURE__*/React.createElement(CardLabel, {
22356
+ style: {
22357
+ color: "green"
22358
+ }
22359
+ }, t(otpSuccess)))))));
22204
22360
  };
22205
22361
 
22206
22362
  const thStyle = {
@@ -22580,7 +22736,12 @@ const FeeEstimation = ({
22580
22736
  refetchSanctionFee();
22581
22737
  };
22582
22738
  if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
22583
- return /*#__PURE__*/React.createElement("div", null, bpaCalculatorLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
22739
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
22740
+ style: {
22741
+ fontSize: "20px",
22742
+ marginTop: "20px"
22743
+ }
22744
+ }, t("BPA_FEE_DETAILS")), bpaCalculatorLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader, {
22584
22745
  style: {
22585
22746
  fontSize: "20px",
22586
22747
  color: "#3f4351"
@@ -22703,7 +22864,7 @@ const CitizenAndArchitectPhoto = ({
22703
22864
  };
22704
22865
 
22705
22866
  const BpaApplicationDetail = () => {
22706
- var _user$info, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _pdfDetails$pdfFiles, _data$applicationData19, _data$applicationData34, _data$applicationData35, _user$info4, _user$info5, _data$applicationData44, _data$applicationData47, _data$applicationData59, _data$applicationData62, _data$applicationData63, _workflowDetails8, _workflowDetails8$dat, _workflowDetails8$dat2, _data$applicationData67, _workflowDetails1, _workflowDetails1$dat, _workflowDetails1$dat2, _workflowDetails1$dat3, _data$collectionBillD, _data$applicationData80, _data$collectionBillD2, _data$applicationData84, _data$collectionBillD3, _workflowDetails12, _workflowDetails12$da, _workflowDetails12$da2, _data$applicationDeta, _data$applicationDeta4, _data$applicationDeta5, _workflowDetails30, _workflowDetails30$da, _workflowDetails30$da2, _workflowDetails31, _workflowDetails31$da;
22867
+ var _user$info, _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _pdfDetails$pdfFiles, _data$applicationData19, _data$applicationData34, _data$applicationData35, _data$applicationData44, _data$applicationData47, _data$applicationData59, _data$applicationData62, _data$applicationData63, _workflowDetails9, _workflowDetails9$dat, _workflowDetails9$dat2, _data$applicationData67, _workflowDetails10, _workflowDetails10$da, _workflowDetails10$da2, _workflowDetails10$da3, _data$collectionBillD, _data$applicationData80, _data$collectionBillD2, _data$applicationData84, _data$collectionBillD3, _workflowDetails13, _workflowDetails13$da, _workflowDetails13$da2, _data$applicationDeta, _data$applicationDeta4, _data$applicationDeta5, _workflowDetails31, _workflowDetails31$da, _workflowDetails31$da2, _workflowDetails32, _workflowDetails32$da;
22707
22868
  const {
22708
22869
  id
22709
22870
  } = useParams();
@@ -22888,7 +23049,8 @@ const BpaApplicationDetail = () => {
22888
23049
  console.log("datata=====", workflowDetails, data);
22889
23050
  const [agree, setAgree] = useState(false);
22890
23051
  const setdeclarationhandler = () => {
22891
- setAgree(!agree);
23052
+ setShowTermsPopup(true);
23053
+ setAgree(true);
22892
23054
  };
22893
23055
  const state = Digit.ULBService.getStateId();
22894
23056
  const [showTermsPopup, setShowTermsPopup] = useState(false);
@@ -22899,8 +23061,8 @@ const BpaApplicationDetail = () => {
22899
23061
  const [isOTPVerified, setIsOTPVerified] = useState(false);
22900
23062
  const [otpError, setOTPError] = useState("");
22901
23063
  const [otpSuccess, setOTPSuccess] = useState("");
22902
- const [otpVerifiedTimestamp, setOTPVerifiedTimestamp] = useState(null);
22903
- const isCitizenDeclared = sessionStorage.getItem("CitizenConsentdocFilestoreid");
23064
+ const otpVerifiedTimestamp = sessionStorage.getItem("otpVerifiedTimestampcitizen") || "";
23065
+ const isCitizenDeclared = sessionStorage.getItem("CitizenConsentdocFilestoreid") || "";
22904
23066
  const [errorFile, setError] = useState(null);
22905
23067
  const [isFileLoading, setIsFileLoading] = useState(false);
22906
23068
  useEffect(() => {
@@ -22925,85 +23087,16 @@ const BpaApplicationDetail = () => {
22925
23087
  localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
22926
23088
  };
22927
23089
  const handleTermsLinkClick = e => {
22928
- e.preventDefault();
22929
- e.stopPropagation();
22930
- if (isOTPVerified) {
22931
- setShowTermsPopup(true);
22932
- console.log("is clicked popup");
22933
- } else {
22934
- alert("Please verify yourself");
22935
- }
23090
+ setShowTermsPopup(true);
22936
23091
  };
22937
23092
  const checkLabels = () => {
22938
- return /*#__PURE__*/React.createElement("div", null, t("I_AGREE_TO_BELOW_UNDERTAKING"), /*#__PURE__*/React.createElement("br", null), !isCitizenDeclared && /*#__PURE__*/React.createElement(LinkButton, {
22939
- label: t("DECLARATION_UNDER_SELF_CERTIFICATION_SCHEME"),
22940
- onClick: handleTermsLinkClick
22941
- }), isCitizenDeclared && /*#__PURE__*/React.createElement("div", {
23093
+ return /*#__PURE__*/React.createElement("div", null, t("I_AGREE_TO_BELOW_UNDERTAKING"), /*#__PURE__*/React.createElement("br", null), isCitizenDeclared !== "" && /*#__PURE__*/React.createElement("div", {
22942
23094
  onClick: handleTermsLinkClick,
22943
23095
  style: {
22944
23096
  color: "green"
22945
23097
  }
22946
23098
  }, t("VIEW_DECLARATION"), " "));
22947
23099
  };
22948
- const handleVerifyClick = () => {
22949
- setShowMobileInput(true);
22950
- };
22951
- const handleMobileNumberChange = e => {
22952
- setMobileNumber(e.target.value);
22953
- };
22954
- const handleGetOTPClick = async () => {
22955
- try {
22956
- var _user$info2, _user$info3;
22957
- const response = await Digit.UserService.sendOtp({
22958
- otp: {
22959
- mobileNumber: mobileNumber,
22960
- tenantId: user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.tenantId,
22961
- userType: user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.type,
22962
- type: "login"
22963
- }
22964
- });
22965
- if (response.isSuccessful) {
22966
- setShowOTPInput(true);
22967
- } else {
22968
- console.error("Error sending OTP Response is false:", response.error);
22969
- }
22970
- } catch (error) {
22971
- console.error("Error sending OTP:", error);
22972
- }
22973
- };
22974
- const requestData = {
22975
- username: mobileNumber,
22976
- password: otp,
22977
- tenantId: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.tenantId,
22978
- userType: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.type
22979
- };
22980
- const handleVerifyOTPClick = async () => {
22981
- try {
22982
- const {
22983
- ResponseInfo,
22984
- UserRequest: info,
22985
- ...tokens
22986
- } = await Digit.UserService.authenticate(requestData);
22987
- if (ResponseInfo.status === "Access Token generated successfully") {
22988
- setIsOTPVerified(true);
22989
- setOTPSuccess(t("VERIFIED"));
22990
- const currentTimestamp = new Date();
22991
- setOTPVerifiedTimestamp(currentTimestamp);
22992
- sessionStorage.setItem("otpVerifiedTimestampcitizen", currentTimestamp.toISOString());
22993
- setUser({
22994
- info,
22995
- ...tokens
22996
- });
22997
- } else {
22998
- setIsOTPVerified(false);
22999
- setOTPError(t("WRONG OTP"));
23000
- }
23001
- } catch (error) {
23002
- console.error("Error verifying OTP:", error);
23003
- setIsOTPVerified(false);
23004
- setOTPError(t("Error verifying OTP"));
23005
- }
23006
- };
23007
23100
  function routeTo(jumpTo) {
23008
23101
  window.open(jumpTo, "_blank");
23009
23102
  }
@@ -23015,14 +23108,56 @@ const BpaApplicationDetail = () => {
23015
23108
  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
23016
23109
  };
23017
23110
  });
23111
+ const documentsColumnsOwner = [{
23112
+ Header: t("BPA_OWNER_DETAILS_LABEL"),
23113
+ accessor: "title",
23114
+ Cell: ({
23115
+ value
23116
+ }) => t(value) || t("CS_NA")
23117
+ }, {
23118
+ Header: t(" "),
23119
+ accessor: "fileUrl",
23120
+ Cell: ({
23121
+ value
23122
+ }) => value ? /*#__PURE__*/React.createElement(LinkButton, {
23123
+ style: {
23124
+ float: "right",
23125
+ display: "inline",
23126
+ background: "#fff"
23127
+ },
23128
+ label: t("View"),
23129
+ onClick: () => routeTo(value)
23130
+ }) : t("CS_NA")
23131
+ }];
23018
23132
  const documentsColumns = [{
23019
- Header: t("BPA_DOCUMENT_NAME"),
23133
+ Header: t("BPA_DOCUMENT_DETAILS_LABEL"),
23020
23134
  accessor: "title",
23021
23135
  Cell: ({
23022
23136
  value
23023
23137
  }) => t(value) || t("CS_NA")
23024
23138
  }, {
23025
- Header: t("BPA_DOCUMENT_FILE"),
23139
+ Header: t(" "),
23140
+ accessor: "fileUrl",
23141
+ Cell: ({
23142
+ value
23143
+ }) => value ? /*#__PURE__*/React.createElement(LinkButton, {
23144
+ style: {
23145
+ float: "right",
23146
+ display: "inline",
23147
+ background: "#fff"
23148
+ },
23149
+ label: t("View"),
23150
+ onClick: () => routeTo(value)
23151
+ }) : t("CS_NA")
23152
+ }];
23153
+ const documentsColumnsECBC = [{
23154
+ Header: t("BPA_ECBC_DETAILS_LABEL"),
23155
+ accessor: "title",
23156
+ Cell: ({
23157
+ value
23158
+ }) => t(value) || t("CS_NA")
23159
+ }, {
23160
+ Header: t(" "),
23026
23161
  accessor: "fileUrl",
23027
23162
  Cell: ({
23028
23163
  value
@@ -23043,7 +23178,7 @@ const BpaApplicationDetail = () => {
23043
23178
  value
23044
23179
  }) => t(value) || t("CS_NA")
23045
23180
  }, {
23046
- Header: t("BPA_DOCUMENT_FILE"),
23181
+ Header: t(" "),
23047
23182
  accessor: "value",
23048
23183
  Cell: ({
23049
23184
  value
@@ -23331,7 +23466,35 @@ const BpaApplicationDetail = () => {
23331
23466
  setShowTermsModal(false);
23332
23467
  };
23333
23468
  function onActionSelect(action) {
23469
+ var _workflowDetails6, _workflowDetails6$dat, _workflowDetails6$dat2;
23334
23470
  console.log("SelectedAction", action);
23471
+ const isCitizenConsentIncluded = ((_workflowDetails6 = workflowDetails) === null || _workflowDetails6 === void 0 ? void 0 : (_workflowDetails6$dat = _workflowDetails6.data) === null || _workflowDetails6$dat === void 0 ? void 0 : (_workflowDetails6$dat2 = _workflowDetails6$dat.actionState) === null || _workflowDetails6$dat2 === void 0 ? void 0 : _workflowDetails6$dat2.state) === "CITIZEN_APPROVAL_PENDING" && isUserCitizen;
23472
+ if (isCitizenConsentIncluded) {
23473
+ if (!agree) {
23474
+ setIsEnableLoader(false);
23475
+ setShowToast({
23476
+ key: "error",
23477
+ action: t("Citizen_Consent_was_not_accepted")
23478
+ });
23479
+ return;
23480
+ }
23481
+ if (!otpVerifiedTimestamp) {
23482
+ setIsEnableLoader(false);
23483
+ setShowToast({
23484
+ key: "error",
23485
+ action: t("Not_OTP_VERIFIED")
23486
+ });
23487
+ return;
23488
+ }
23489
+ if (!sessionStorage.getItem("CitizenConsentdocFilestoreid")) {
23490
+ setIsEnableLoader(false);
23491
+ setShowToast({
23492
+ key: "error",
23493
+ action: t("Citizen_Consent_was_not_uploaded")
23494
+ });
23495
+ return;
23496
+ }
23497
+ }
23335
23498
  if (action === "FORWARD") {
23336
23499
  var _data$applicationData65, _data$applicationData66;
23337
23500
  history.replace(`/digit-ui/citizen/obps/sendbacktocitizen/ocbpa/${data === null || data === void 0 ? void 0 : (_data$applicationData65 = data.applicationData) === null || _data$applicationData65 === void 0 ? void 0 : _data$applicationData65.tenantId}/${data === null || data === void 0 ? void 0 : (_data$applicationData66 = data.applicationData) === null || _data$applicationData66 === void 0 ? void 0 : _data$applicationData66.applicationNo}/check`, {
@@ -23432,13 +23595,13 @@ const BpaApplicationDetail = () => {
23432
23595
  return true;
23433
23596
  };
23434
23597
  const submitAction = workflow => {
23435
- var _app$additionalDetail, _workflowDetails6, _workflowDetails6$dat, _workflowDetails6$dat2, _workflowDetails7, _workflowDetails7$dat, _workflowDetails7$dat2;
23598
+ var _app$additionalDetail, _workflowDetails7, _workflowDetails7$dat, _workflowDetails7$dat2, _workflowDetails8, _workflowDetails8$dat, _workflowDetails8$dat2;
23436
23599
  setIsEnableLoader(true);
23437
23600
  const app = (data === null || data === void 0 ? void 0 : data.applicationData) || {};
23438
23601
  app.riskType = app === null || app === void 0 ? void 0 : (_app$additionalDetail = app.additionalDetails) === null || _app$additionalDetail === void 0 ? void 0 : _app$additionalDetail.riskType;
23439
23602
  const docs = Array.isArray(app.documents) ? app.documents : [];
23440
- const isCitizenConsentIncluded = ((_workflowDetails6 = workflowDetails) === null || _workflowDetails6 === void 0 ? void 0 : (_workflowDetails6$dat = _workflowDetails6.data) === null || _workflowDetails6$dat === void 0 ? void 0 : (_workflowDetails6$dat2 = _workflowDetails6$dat.actionState) === null || _workflowDetails6$dat2 === void 0 ? void 0 : _workflowDetails6$dat2.state) === "CITIZEN_APPROVAL_PENDING" && isUserCitizen;
23441
- const isArchitectSubmissionPending = ((_workflowDetails7 = workflowDetails) === null || _workflowDetails7 === void 0 ? void 0 : (_workflowDetails7$dat = _workflowDetails7.data) === null || _workflowDetails7$dat === void 0 ? void 0 : (_workflowDetails7$dat2 = _workflowDetails7$dat.actionState) === null || _workflowDetails7$dat2 === void 0 ? void 0 : _workflowDetails7$dat2.state) === "INPROGRESS" && !isUserCitizen;
23603
+ const isCitizenConsentIncluded = ((_workflowDetails7 = workflowDetails) === null || _workflowDetails7 === void 0 ? void 0 : (_workflowDetails7$dat = _workflowDetails7.data) === null || _workflowDetails7$dat === void 0 ? void 0 : (_workflowDetails7$dat2 = _workflowDetails7$dat.actionState) === null || _workflowDetails7$dat2 === void 0 ? void 0 : _workflowDetails7$dat2.state) === "CITIZEN_APPROVAL_PENDING" && isUserCitizen;
23604
+ const isArchitectSubmissionPending = ((_workflowDetails8 = workflowDetails) === null || _workflowDetails8 === void 0 ? void 0 : (_workflowDetails8$dat = _workflowDetails8.data) === null || _workflowDetails8$dat === void 0 ? void 0 : (_workflowDetails8$dat2 = _workflowDetails8$dat.actionState) === null || _workflowDetails8$dat2 === void 0 ? void 0 : _workflowDetails8$dat2.state) === "INPROGRESS" && !isUserCitizen;
23442
23605
  const dedupedDocs = Array.from(docs.reduce((map, doc) => {
23443
23606
  const key = doc === null || doc === void 0 ? void 0 : doc.documentType;
23444
23607
  if (!key) return map;
@@ -23461,19 +23624,19 @@ const BpaApplicationDetail = () => {
23461
23624
  let updatedDocuments;
23462
23625
  let additionalDetails;
23463
23626
  if (isCitizenConsentIncluded) {
23464
- if (!isOTPVerified) {
23627
+ if (!agree) {
23465
23628
  setIsEnableLoader(false);
23466
23629
  setShowToast({
23467
23630
  key: "error",
23468
- action: t("Not_OTP_VERIFIED")
23631
+ action: t("Citizen_Consent_was_not_accepted")
23469
23632
  });
23470
23633
  return;
23471
23634
  }
23472
- if (!agree) {
23635
+ if (!otpVerifiedTimestamp) {
23473
23636
  setIsEnableLoader(false);
23474
23637
  setShowToast({
23475
23638
  key: "error",
23476
- action: t("Citizen_Consent_was_not_accepted")
23639
+ action: t("Not_OTP_VERIFIED")
23477
23640
  });
23478
23641
  return;
23479
23642
  }
@@ -23545,15 +23708,15 @@ const BpaApplicationDetail = () => {
23545
23708
  }
23546
23709
  });
23547
23710
  };
23548
- if (((_workflowDetails8 = workflowDetails) === null || _workflowDetails8 === void 0 ? void 0 : (_workflowDetails8$dat = _workflowDetails8.data) === null || _workflowDetails8$dat === void 0 ? void 0 : (_workflowDetails8$dat2 = _workflowDetails8$dat.nextActions) === null || _workflowDetails8$dat2 === void 0 ? void 0 : _workflowDetails8$dat2.length) > 0 && (data === null || data === void 0 ? void 0 : (_data$applicationData67 = data.applicationData) === null || _data$applicationData67 === void 0 ? void 0 : _data$applicationData67.status) == "CITIZEN_APPROVAL_INPROCESS") {
23711
+ if (((_workflowDetails9 = workflowDetails) === null || _workflowDetails9 === void 0 ? void 0 : (_workflowDetails9$dat = _workflowDetails9.data) === null || _workflowDetails9$dat === void 0 ? void 0 : (_workflowDetails9$dat2 = _workflowDetails9$dat.nextActions) === null || _workflowDetails9$dat2 === void 0 ? void 0 : _workflowDetails9$dat2.length) > 0 && (data === null || data === void 0 ? void 0 : (_data$applicationData67 = data.applicationData) === null || _data$applicationData67 === void 0 ? void 0 : _data$applicationData67.status) == "CITIZEN_APPROVAL_INPROCESS") {
23549
23712
  var _userInfo$info2, _data$applicationData68, _data$applicationData69;
23550
23713
  const userInfo = Digit.UserService.getUser();
23551
23714
  const rolearray = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : _userInfo$info2.roles;
23552
23715
  if ((data === null || data === void 0 ? void 0 : (_data$applicationData68 = data.applicationData) === null || _data$applicationData68 === void 0 ? void 0 : _data$applicationData68.status) == "CITIZEN_APPROVAL_INPROCESS") {
23553
23716
  var _rolearray$;
23554
23717
  if ((rolearray === null || rolearray === void 0 ? void 0 : rolearray.length) == 1 && (rolearray === null || rolearray === void 0 ? void 0 : (_rolearray$ = rolearray[0]) === null || _rolearray$ === void 0 ? void 0 : _rolearray$.code) == "CITIZEN") {
23555
- var _workflowDetails9, _workflowDetails9$dat;
23556
- workflowDetails.data.nextActions = (_workflowDetails9 = workflowDetails) === null || _workflowDetails9 === void 0 ? void 0 : (_workflowDetails9$dat = _workflowDetails9.data) === null || _workflowDetails9$dat === void 0 ? void 0 : _workflowDetails9$dat.nextActions;
23718
+ var _workflowDetails0, _workflowDetails0$dat;
23719
+ workflowDetails.data.nextActions = (_workflowDetails0 = workflowDetails) === null || _workflowDetails0 === void 0 ? void 0 : (_workflowDetails0$dat = _workflowDetails0.data) === null || _workflowDetails0$dat === void 0 ? void 0 : _workflowDetails0$dat.nextActions;
23557
23720
  } else {
23558
23721
  workflowDetails.data.nextActions = [];
23559
23722
  }
@@ -23576,31 +23739,31 @@ const BpaApplicationDetail = () => {
23576
23739
  });
23577
23740
  }
23578
23741
  if (isArchitect) {
23579
- var _workflowDetails0, _workflowDetails0$dat;
23580
- workflowDetails.data.nextActions = (_workflowDetails0 = workflowDetails) === null || _workflowDetails0 === void 0 ? void 0 : (_workflowDetails0$dat = _workflowDetails0.data) === null || _workflowDetails0$dat === void 0 ? void 0 : _workflowDetails0$dat.nextActions;
23742
+ var _workflowDetails1, _workflowDetails1$dat;
23743
+ workflowDetails.data.nextActions = (_workflowDetails1 = workflowDetails) === null || _workflowDetails1 === void 0 ? void 0 : (_workflowDetails1$dat = _workflowDetails1.data) === null || _workflowDetails1$dat === void 0 ? void 0 : _workflowDetails1$dat.nextActions;
23581
23744
  } else {
23582
23745
  workflowDetails.data.nextActions = [];
23583
23746
  }
23584
23747
  }
23585
23748
  }
23586
- if (((_workflowDetails1 = workflowDetails) === null || _workflowDetails1 === void 0 ? void 0 : (_workflowDetails1$dat = _workflowDetails1.data) === null || _workflowDetails1$dat === void 0 ? void 0 : (_workflowDetails1$dat2 = _workflowDetails1$dat.processInstances) === null || _workflowDetails1$dat2 === void 0 ? void 0 : (_workflowDetails1$dat3 = _workflowDetails1$dat2[0]) === null || _workflowDetails1$dat3 === void 0 ? void 0 : _workflowDetails1$dat3.action) === "SEND_BACK_TO_CITIZEN") {
23749
+ if (((_workflowDetails10 = workflowDetails) === null || _workflowDetails10 === void 0 ? void 0 : (_workflowDetails10$da = _workflowDetails10.data) === null || _workflowDetails10$da === void 0 ? void 0 : (_workflowDetails10$da2 = _workflowDetails10$da.processInstances) === null || _workflowDetails10$da2 === void 0 ? void 0 : (_workflowDetails10$da3 = _workflowDetails10$da2[0]) === null || _workflowDetails10$da3 === void 0 ? void 0 : _workflowDetails10$da3.action) === "SEND_BACK_TO_CITIZEN") {
23587
23750
  var _userInfo$info3;
23588
23751
  if (isTocAccepted) setIsTocAccepted(true);
23589
23752
  isFromSendBack = true;
23590
23753
  const userInfo = Digit.UserService.getUser();
23591
23754
  const rolearray = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info3 = userInfo.info) === null || _userInfo$info3 === void 0 ? void 0 : _userInfo$info3.roles;
23592
23755
  if ((rolearray === null || rolearray === void 0 ? void 0 : rolearray.length) !== 1) {
23593
- var _workflowDetails10, _workflowDetails11;
23756
+ var _workflowDetails11, _workflowDetails12;
23594
23757
  workflowDetails = {
23595
23758
  ...workflowDetails,
23596
23759
  data: {
23597
- ...((_workflowDetails10 = workflowDetails) === null || _workflowDetails10 === void 0 ? void 0 : _workflowDetails10.data),
23760
+ ...((_workflowDetails11 = workflowDetails) === null || _workflowDetails11 === void 0 ? void 0 : _workflowDetails11.data),
23598
23761
  actionState: {
23599
23762
  nextActions: []
23600
23763
  }
23601
23764
  },
23602
23765
  data: {
23603
- ...((_workflowDetails11 = workflowDetails) === null || _workflowDetails11 === void 0 ? void 0 : _workflowDetails11.data),
23766
+ ...((_workflowDetails12 = workflowDetails) === null || _workflowDetails12 === void 0 ? void 0 : _workflowDetails12.data),
23604
23767
  nextActions: []
23605
23768
  }
23606
23769
  };
@@ -23742,11 +23905,11 @@ const BpaApplicationDetail = () => {
23742
23905
  });
23743
23906
  }
23744
23907
  dowloadOptions.sort((a, b) => a.order - b.order);
23745
- if (((_workflowDetails12 = workflowDetails) === null || _workflowDetails12 === void 0 ? void 0 : (_workflowDetails12$da = _workflowDetails12.data) === null || _workflowDetails12$da === void 0 ? void 0 : (_workflowDetails12$da2 = _workflowDetails12$da.nextActions) === null || _workflowDetails12$da2 === void 0 ? void 0 : _workflowDetails12$da2.length) > 0) {
23746
- var _workflowDetails13, _workflowDetails13$da, _workflowDetails13$da2, _workflowDetails14, _workflowDetails14$da, _workflowDetails14$da2, _workflowDetails15, _workflowDetails15$da, _workflowDetails15$da2;
23747
- workflowDetails.data.nextActions = (_workflowDetails13 = workflowDetails) === null || _workflowDetails13 === void 0 ? void 0 : (_workflowDetails13$da = _workflowDetails13.data) === null || _workflowDetails13$da === void 0 ? void 0 : (_workflowDetails13$da2 = _workflowDetails13$da.nextActions) === null || _workflowDetails13$da2 === void 0 ? void 0 : _workflowDetails13$da2.filter(actn => actn.action !== "INITIATE");
23748
- workflowDetails.data.nextActions = (_workflowDetails14 = workflowDetails) === null || _workflowDetails14 === void 0 ? void 0 : (_workflowDetails14$da = _workflowDetails14.data) === null || _workflowDetails14$da === void 0 ? void 0 : (_workflowDetails14$da2 = _workflowDetails14$da.nextActions) === null || _workflowDetails14$da2 === void 0 ? void 0 : _workflowDetails14$da2.filter(actn => actn.action !== "ADHOC");
23749
- workflowDetails.data.nextActions = (_workflowDetails15 = workflowDetails) === null || _workflowDetails15 === void 0 ? void 0 : (_workflowDetails15$da = _workflowDetails15.data) === null || _workflowDetails15$da === void 0 ? void 0 : (_workflowDetails15$da2 = _workflowDetails15$da.nextActions) === null || _workflowDetails15$da2 === void 0 ? void 0 : _workflowDetails15$da2.filter(actn => actn.action !== "SKIP_PAYMENT");
23908
+ if (((_workflowDetails13 = workflowDetails) === null || _workflowDetails13 === void 0 ? void 0 : (_workflowDetails13$da = _workflowDetails13.data) === null || _workflowDetails13$da === void 0 ? void 0 : (_workflowDetails13$da2 = _workflowDetails13$da.nextActions) === null || _workflowDetails13$da2 === void 0 ? void 0 : _workflowDetails13$da2.length) > 0) {
23909
+ var _workflowDetails14, _workflowDetails14$da, _workflowDetails14$da2, _workflowDetails15, _workflowDetails15$da, _workflowDetails15$da2, _workflowDetails16, _workflowDetails16$da, _workflowDetails16$da2;
23910
+ workflowDetails.data.nextActions = (_workflowDetails14 = workflowDetails) === null || _workflowDetails14 === void 0 ? void 0 : (_workflowDetails14$da = _workflowDetails14.data) === null || _workflowDetails14$da === void 0 ? void 0 : (_workflowDetails14$da2 = _workflowDetails14$da.nextActions) === null || _workflowDetails14$da2 === void 0 ? void 0 : _workflowDetails14$da2.filter(actn => actn.action !== "INITIATE");
23911
+ workflowDetails.data.nextActions = (_workflowDetails15 = workflowDetails) === null || _workflowDetails15 === void 0 ? void 0 : (_workflowDetails15$da = _workflowDetails15.data) === null || _workflowDetails15$da === void 0 ? void 0 : (_workflowDetails15$da2 = _workflowDetails15$da.nextActions) === null || _workflowDetails15$da2 === void 0 ? void 0 : _workflowDetails15$da2.filter(actn => actn.action !== "ADHOC");
23912
+ workflowDetails.data.nextActions = (_workflowDetails16 = workflowDetails) === null || _workflowDetails16 === void 0 ? void 0 : (_workflowDetails16$da = _workflowDetails16.data) === null || _workflowDetails16$da === void 0 ? void 0 : (_workflowDetails16$da2 = _workflowDetails16$da.nextActions) === null || _workflowDetails16$da2 === void 0 ? void 0 : _workflowDetails16$da2.filter(actn => actn.action !== "SKIP_PAYMENT");
23750
23913
  }
23751
23914
  if ((data === null || data === void 0 ? void 0 : (_data$applicationDeta = data.applicationDetails) === null || _data$applicationDeta === void 0 ? void 0 : _data$applicationDeta.length) > 0) {
23752
23915
  var _data$applicationDeta2, _data$applicationDeta3;
@@ -23820,7 +23983,7 @@ const BpaApplicationDetail = () => {
23820
23983
  var _Object$keys3;
23821
23984
  return ((_Object$keys3 = Object.keys(ob)) === null || _Object$keys3 === void 0 ? void 0 : _Object$keys3.length) > 0;
23822
23985
  }).map((detail, index, arr) => {
23823
- var _detail$additionalDet, _detail$values, _detail$values2, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _data$applicationData88, _data$applicationData89, _data$applicationData90, _data$applicationData91, _data$applicationData92, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _workflowDetails16, _workflowDetails16$da, _workflowDetails16$da2, _workflowDetails16$da3, _workflowDetails16$da4, _workflowDetails17, _workflowDetails17$da, _workflowDetails17$da2, _workflowDetails18, _workflowDetails18$da, _workflowDetails18$da2, _workflowDetails19, _workflowDetails20, _workflowDetails20$da, _workflowDetails20$da2, _workflowDetails21, _workflowDetails22, _workflowDetails22$da, _workflowDetails22$da2, _workflowDetails23, _workflowDetails23$da, _workflowDetails24, _workflowDetails24$da, _workflowDetails25, _workflowDetails26, _workflowDetails26$da, _workflowDetails26$da2, _workflowDetails27, _workflowDetails27$da, _workflowDetails27$da2, _workflowDetails27$da3, _workflowDetails28, _workflowDetails28$da, _workflowDetails28$da2, _workflowDetails28$da3, _workflowDetails29, _workflowDetails29$da, _workflowDetails29$da2, _workflowDetails29$da3;
23986
+ var _detail$additionalDet, _detail$values, _detail$values2, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _data$applicationData88, _data$applicationData89, _data$applicationData90, _data$applicationData91, _data$applicationData92, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _workflowDetails17, _workflowDetails17$da, _workflowDetails17$da2, _workflowDetails17$da3, _workflowDetails17$da4, _workflowDetails18, _workflowDetails18$da, _workflowDetails18$da2, _workflowDetails19, _workflowDetails19$da, _workflowDetails19$da2, _workflowDetails20, _workflowDetails21, _workflowDetails21$da, _workflowDetails21$da2, _workflowDetails22, _workflowDetails23, _workflowDetails23$da, _workflowDetails23$da2, _workflowDetails24, _workflowDetails24$da, _workflowDetails25, _workflowDetails25$da, _workflowDetails26, _workflowDetails27, _workflowDetails27$da, _workflowDetails27$da2, _workflowDetails28, _workflowDetails28$da, _workflowDetails28$da2, _workflowDetails28$da3, _workflowDetails29, _workflowDetails29$da, _workflowDetails29$da2, _workflowDetails29$da3, _workflowDetails30, _workflowDetails30$da, _workflowDetails30$da2, _workflowDetails30$da3;
23824
23987
  console.log("detailforme", detail);
23825
23988
  return /*#__PURE__*/React.createElement("div", {
23826
23989
  key: index
@@ -23833,7 +23996,8 @@ const BpaApplicationDetail = () => {
23833
23996
  } : {}
23834
23997
  }, !(detail !== null && detail !== void 0 && detail.isTitleVisible) ? /*#__PURE__*/React.createElement(CardSubHeader, {
23835
23998
  style: {
23836
- fontSize: "24px"
23999
+ fontSize: "20px",
24000
+ marginTop: "20px"
23837
24001
  }
23838
24002
  }, t(detail === null || detail === void 0 ? void 0 : detail.title)) : null, /*#__PURE__*/React.createElement("div", {
23839
24003
  style: detail !== null && detail !== void 0 && detail.isBackGroundColor ? {
@@ -23885,7 +24049,8 @@ const BpaApplicationDetail = () => {
23885
24049
  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")
23886
24050
  }) : null, !(detail !== null && detail !== void 0 && detail.isTitleRepeat) && value !== null && value !== void 0 && value.isHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
23887
24051
  style: {
23888
- fontSize: "20px"
24052
+ fontSize: "20px",
24053
+ marginTop: "20px"
23889
24054
  }
23890
24055
  }, t(value === null || value === void 0 ? void 0 : value.title)) : null)) : null, detail !== null && detail !== void 0 && detail.isSubOccupancyTable && detail !== null && detail !== void 0 && (_detail$additionalDet6 = detail.additionalDetails) !== null && _detail$additionalDet6 !== void 0 && _detail$additionalDet6.subOccupancyTableDetails ? /*#__PURE__*/React.createElement(SubOccupancyTable, {
23891
24056
  edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
@@ -23927,12 +24092,7 @@ const BpaApplicationDetail = () => {
23927
24092
  text: getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated) || t("CS_NA"),
23928
24093
  key: value === null || value === void 0 ? void 0 : value.title
23929
24094
  })));
23930
- }) : null, (detail === null || detail === void 0 ? void 0 : detail.title) === "BPA_DOCUMENT_DETAILS_LABEL" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_DOCUMENT_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
23931
- style: {
23932
- border: "0.5px solid #eaeaea",
23933
- margin: "0 0 16px 0"
23934
- }
23935
- }), pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
24095
+ }) : null, (detail === null || detail === void 0 ? void 0 : detail.title) === "BPA_DOCUMENT_DETAILS_LABEL" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
23936
24096
  className: "customTable table-border-style",
23937
24097
  t: t,
23938
24098
  data: documentsData,
@@ -23944,16 +24104,11 @@ const BpaApplicationDetail = () => {
23944
24104
  autoSort: true,
23945
24105
  manualPagination: false,
23946
24106
  isPaginationRequired: false
23947
- })), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
23948
- style: {
23949
- border: "0.5px solid #eaeaea",
23950
- margin: "0 0 16px 0"
23951
- }
23952
- }), pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
24107
+ })), /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
23953
24108
  className: "customTable table-border-style",
23954
24109
  t: t,
23955
24110
  data: ecbcDocumentsData,
23956
- columns: documentsColumns,
24111
+ columns: documentsColumnsECBC,
23957
24112
  getCellProps: () => ({
23958
24113
  style: {}
23959
24114
  }),
@@ -23961,16 +24116,11 @@ const BpaApplicationDetail = () => {
23961
24116
  autoSort: true,
23962
24117
  manualPagination: false,
23963
24118
  isPaginationRequired: false
23964
- })), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_OWNER_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
23965
- style: {
23966
- border: "0.5px solid #eaeaea",
23967
- margin: "0 0 16px 0"
23968
- }
23969
- }), pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
24119
+ })), /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
23970
24120
  className: "customTable table-border-style",
23971
24121
  t: t,
23972
24122
  data: ownerDocumentsData,
23973
- columns: documentsColumns,
24123
+ columns: documentsColumnsOwner,
23974
24124
  getCellProps: () => ({
23975
24125
  style: {}
23976
24126
  }),
@@ -24060,7 +24210,7 @@ const BpaApplicationDetail = () => {
24060
24210
  }, value === null || value === void 0 ? void 0 : value.title)) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : _detail$additionalDet24.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
24061
24211
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
24062
24212
  paymentsList: []
24063
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && (((_workflowDetails16 = workflowDetails) === null || _workflowDetails16 === void 0 ? void 0 : (_workflowDetails16$da = _workflowDetails16.data) === null || _workflowDetails16$da === void 0 ? void 0 : (_workflowDetails16$da2 = _workflowDetails16$da.actionState) === null || _workflowDetails16$da2 === void 0 ? void 0 : (_workflowDetails16$da3 = _workflowDetails16$da2.nextActions) === null || _workflowDetails16$da3 === void 0 ? void 0 : (_workflowDetails16$da4 = _workflowDetails16$da3[0]) === null || _workflowDetails16$da4 === void 0 ? void 0 : _workflowDetails16$da4.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || ((_workflowDetails17 = workflowDetails) === null || _workflowDetails17 === void 0 ? void 0 : (_workflowDetails17$da = _workflowDetails17.data) === null || _workflowDetails17$da === void 0 ? void 0 : (_workflowDetails17$da2 = _workflowDetails17$da.actionState) === null || _workflowDetails17$da2 === void 0 ? void 0 : _workflowDetails17$da2.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || ((_workflowDetails18 = workflowDetails) === null || _workflowDetails18 === void 0 ? void 0 : (_workflowDetails18$da = _workflowDetails18.data) === null || _workflowDetails18$da === void 0 ? void 0 : (_workflowDetails18$da2 = _workflowDetails18$da.actionState) === null || _workflowDetails18$da2 === void 0 ? void 0 : _workflowDetails18$da2.state) == "POST_PAYMENT_INPROGRESS") && /*#__PURE__*/React.createElement("div", {
24213
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && (((_workflowDetails17 = workflowDetails) === null || _workflowDetails17 === void 0 ? void 0 : (_workflowDetails17$da = _workflowDetails17.data) === null || _workflowDetails17$da === void 0 ? void 0 : (_workflowDetails17$da2 = _workflowDetails17$da.actionState) === null || _workflowDetails17$da2 === void 0 ? void 0 : (_workflowDetails17$da3 = _workflowDetails17$da2.nextActions) === null || _workflowDetails17$da3 === void 0 ? void 0 : (_workflowDetails17$da4 = _workflowDetails17$da3[0]) === null || _workflowDetails17$da4 === void 0 ? void 0 : _workflowDetails17$da4.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || ((_workflowDetails18 = workflowDetails) === null || _workflowDetails18 === void 0 ? void 0 : (_workflowDetails18$da = _workflowDetails18.data) === null || _workflowDetails18$da === void 0 ? void 0 : (_workflowDetails18$da2 = _workflowDetails18$da.actionState) === null || _workflowDetails18$da2 === void 0 ? void 0 : _workflowDetails18$da2.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || ((_workflowDetails19 = workflowDetails) === null || _workflowDetails19 === void 0 ? void 0 : (_workflowDetails19$da = _workflowDetails19.data) === null || _workflowDetails19$da === void 0 ? void 0 : (_workflowDetails19$da2 = _workflowDetails19$da.actionState) === null || _workflowDetails19$da2 === void 0 ? void 0 : _workflowDetails19$da2.state) == "POST_PAYMENT_INPROGRESS") && /*#__PURE__*/React.createElement("div", {
24064
24214
  style: {
24065
24215
  marginTop: "19px",
24066
24216
  background: "#FAFAFA",
@@ -24083,7 +24233,7 @@ const BpaApplicationDetail = () => {
24083
24233
  }, /*#__PURE__*/React.createElement(BPAApplicationTimeline, {
24084
24234
  application: data === null || data === void 0 ? void 0 : data.applicationData,
24085
24235
  id: id
24086
- }), !((_workflowDetails19 = workflowDetails) !== null && _workflowDetails19 !== void 0 && _workflowDetails19.isLoading) && ((_workflowDetails20 = workflowDetails) === null || _workflowDetails20 === void 0 ? void 0 : (_workflowDetails20$da = _workflowDetails20.data) === null || _workflowDetails20$da === void 0 ? void 0 : (_workflowDetails20$da2 = _workflowDetails20$da.nextActions) === null || _workflowDetails20$da2 === void 0 ? void 0 : _workflowDetails20$da2.length) > 0 && !isFromSendBack && checkBoxVisible && /*#__PURE__*/React.createElement(CheckBox, {
24236
+ }), !((_workflowDetails20 = workflowDetails) !== null && _workflowDetails20 !== void 0 && _workflowDetails20.isLoading) && ((_workflowDetails21 = workflowDetails) === null || _workflowDetails21 === void 0 ? void 0 : (_workflowDetails21$da = _workflowDetails21.data) === null || _workflowDetails21$da === void 0 ? void 0 : (_workflowDetails21$da2 = _workflowDetails21$da.nextActions) === null || _workflowDetails21$da2 === void 0 ? void 0 : _workflowDetails21$da2.length) > 0 && !isFromSendBack && checkBoxVisible && /*#__PURE__*/React.createElement(CheckBox, {
24087
24237
  styles: {
24088
24238
  margin: "20px 0 40px",
24089
24239
  paddingTop: "10px"
@@ -24094,25 +24244,25 @@ const BpaApplicationDetail = () => {
24094
24244
  setIsTocAccepted(!isTocAccepted);
24095
24245
  isTocAccepted ? setDisplayMenu(!isTocAccepted) : "";
24096
24246
  }
24097
- })), !((_workflowDetails21 = workflowDetails) !== null && _workflowDetails21 !== void 0 && _workflowDetails21.isLoading) && ((_workflowDetails22 = workflowDetails) === null || _workflowDetails22 === void 0 ? void 0 : (_workflowDetails22$da = _workflowDetails22.data) === null || _workflowDetails22$da === void 0 ? void 0 : (_workflowDetails22$da2 = _workflowDetails22$da.nextActions) === null || _workflowDetails22$da2 === void 0 ? void 0 : _workflowDetails22$da2.length) > 1 &&
24247
+ })), !((_workflowDetails22 = workflowDetails) !== null && _workflowDetails22 !== void 0 && _workflowDetails22.isLoading) && ((_workflowDetails23 = workflowDetails) === null || _workflowDetails23 === void 0 ? void 0 : (_workflowDetails23$da = _workflowDetails23.data) === null || _workflowDetails23$da === void 0 ? void 0 : (_workflowDetails23$da2 = _workflowDetails23$da.nextActions) === null || _workflowDetails23$da2 === void 0 ? void 0 : _workflowDetails23$da2.length) > 1 &&
24098
24248
  /*#__PURE__*/
24099
24249
  React.createElement(ActionBar, null, /*#__PURE__*/React.createElement("div", {
24100
24250
  style: {
24101
24251
  width: "100%"
24102
24252
  }
24103
- }, displayMenu && (_workflowDetails23 = workflowDetails) !== null && _workflowDetails23 !== void 0 && (_workflowDetails23$da = _workflowDetails23.data) !== null && _workflowDetails23$da !== void 0 && _workflowDetails23$da.nextActions ? /*#__PURE__*/React.createElement(Menu, {
24253
+ }, displayMenu && (_workflowDetails24 = workflowDetails) !== null && _workflowDetails24 !== void 0 && (_workflowDetails24$da = _workflowDetails24.data) !== null && _workflowDetails24$da !== void 0 && _workflowDetails24$da.nextActions ? /*#__PURE__*/React.createElement(Menu, {
24104
24254
  style: {
24105
24255
  minWidth: "310px"
24106
24256
  },
24107
24257
  localeKeyPrefix: "WF_BPA_ACTION",
24108
- options: (_workflowDetails24 = workflowDetails) === null || _workflowDetails24 === void 0 ? void 0 : (_workflowDetails24$da = _workflowDetails24.data) === null || _workflowDetails24$da === void 0 ? void 0 : _workflowDetails24$da.nextActions.map(action => action.action),
24258
+ options: (_workflowDetails25 = workflowDetails) === null || _workflowDetails25 === void 0 ? void 0 : (_workflowDetails25$da = _workflowDetails25.data) === null || _workflowDetails25$da === void 0 ? void 0 : _workflowDetails25$da.nextActions.map(action => action.action),
24109
24259
  t: t,
24110
24260
  onSelect: onActionSelect
24111
24261
  }) : null, /*#__PURE__*/React.createElement(SubmitBar, {
24112
24262
  disabled: false,
24113
24263
  label: t("ES_COMMON_TAKE_ACTION"),
24114
24264
  onSubmit: () => setDisplayMenu(!displayMenu)
24115
- }))), !((_workflowDetails25 = workflowDetails) !== null && _workflowDetails25 !== void 0 && _workflowDetails25.isLoading) && ((_workflowDetails26 = workflowDetails) === null || _workflowDetails26 === void 0 ? void 0 : (_workflowDetails26$da = _workflowDetails26.data) === null || _workflowDetails26$da === void 0 ? void 0 : (_workflowDetails26$da2 = _workflowDetails26$da.nextActions) === null || _workflowDetails26$da2 === void 0 ? void 0 : _workflowDetails26$da2.length) == 1 &&
24265
+ }))), !((_workflowDetails26 = workflowDetails) !== null && _workflowDetails26 !== void 0 && _workflowDetails26.isLoading) && ((_workflowDetails27 = workflowDetails) === null || _workflowDetails27 === void 0 ? void 0 : (_workflowDetails27$da = _workflowDetails27.data) === null || _workflowDetails27$da === void 0 ? void 0 : (_workflowDetails27$da2 = _workflowDetails27$da.nextActions) === null || _workflowDetails27$da2 === void 0 ? void 0 : _workflowDetails27$da2.length) == 1 &&
24116
24266
  /*#__PURE__*/
24117
24267
  React.createElement(ActionBar, null, /*#__PURE__*/React.createElement("div", {
24118
24268
  style: {
@@ -24125,12 +24275,12 @@ const BpaApplicationDetail = () => {
24125
24275
  },
24126
24276
  className: "submit-bar",
24127
24277
  disabled: false,
24128
- name: (_workflowDetails27 = workflowDetails) === null || _workflowDetails27 === void 0 ? void 0 : (_workflowDetails27$da = _workflowDetails27.data) === null || _workflowDetails27$da === void 0 ? void 0 : (_workflowDetails27$da2 = _workflowDetails27$da.nextActions) === null || _workflowDetails27$da2 === void 0 ? void 0 : (_workflowDetails27$da3 = _workflowDetails27$da2[0]) === null || _workflowDetails27$da3 === void 0 ? void 0 : _workflowDetails27$da3.action,
24129
- value: (_workflowDetails28 = workflowDetails) === null || _workflowDetails28 === void 0 ? void 0 : (_workflowDetails28$da = _workflowDetails28.data) === null || _workflowDetails28$da === void 0 ? void 0 : (_workflowDetails28$da2 = _workflowDetails28$da.nextActions) === null || _workflowDetails28$da2 === void 0 ? void 0 : (_workflowDetails28$da3 = _workflowDetails28$da2[0]) === null || _workflowDetails28$da3 === void 0 ? void 0 : _workflowDetails28$da3.action,
24278
+ name: (_workflowDetails28 = workflowDetails) === null || _workflowDetails28 === void 0 ? void 0 : (_workflowDetails28$da = _workflowDetails28.data) === null || _workflowDetails28$da === void 0 ? void 0 : (_workflowDetails28$da2 = _workflowDetails28$da.nextActions) === null || _workflowDetails28$da2 === void 0 ? void 0 : (_workflowDetails28$da3 = _workflowDetails28$da2[0]) === null || _workflowDetails28$da3 === void 0 ? void 0 : _workflowDetails28$da3.action,
24279
+ value: (_workflowDetails29 = workflowDetails) === null || _workflowDetails29 === void 0 ? void 0 : (_workflowDetails29$da = _workflowDetails29.data) === null || _workflowDetails29$da === void 0 ? void 0 : (_workflowDetails29$da2 = _workflowDetails29$da.nextActions) === null || _workflowDetails29$da2 === void 0 ? void 0 : (_workflowDetails29$da3 = _workflowDetails29$da2[0]) === null || _workflowDetails29$da3 === void 0 ? void 0 : _workflowDetails29$da3.action,
24130
24280
  onClick: e => {
24131
24281
  onActionSelect(e.target.value);
24132
24282
  }
24133
- }, t(`WF_BPA_${(_workflowDetails29 = workflowDetails) === null || _workflowDetails29 === void 0 ? void 0 : (_workflowDetails29$da = _workflowDetails29.data) === null || _workflowDetails29$da === void 0 ? void 0 : (_workflowDetails29$da2 = _workflowDetails29$da.nextActions) === null || _workflowDetails29$da2 === void 0 ? void 0 : (_workflowDetails29$da3 = _workflowDetails29$da2[0]) === null || _workflowDetails29$da3 === void 0 ? void 0 : _workflowDetails29$da3.action}`)))))));
24283
+ }, t(`WF_BPA_${(_workflowDetails30 = workflowDetails) === null || _workflowDetails30 === void 0 ? void 0 : (_workflowDetails30$da = _workflowDetails30.data) === null || _workflowDetails30$da === void 0 ? void 0 : (_workflowDetails30$da2 = _workflowDetails30$da.nextActions) === null || _workflowDetails30$da2 === void 0 ? void 0 : (_workflowDetails30$da3 = _workflowDetails30$da2[0]) === null || _workflowDetails30$da3 === void 0 ? void 0 : _workflowDetails30$da3.action}`)))))));
24134
24284
  }),
24135
24285
  /*#__PURE__*/
24136
24286
  React.createElement(Card, {
@@ -24161,43 +24311,7 @@ const BpaApplicationDetail = () => {
24161
24311
  setError: setError,
24162
24312
  adjustedAmounts: adjustedAmounts,
24163
24313
  setAdjustedAmounts: setAdjustedAmounts
24164
- })), ((_workflowDetails30 = workflowDetails) === null || _workflowDetails30 === void 0 ? void 0 : (_workflowDetails30$da = _workflowDetails30.data) === null || _workflowDetails30$da === void 0 ? void 0 : (_workflowDetails30$da2 = _workflowDetails30$da.actionState) === null || _workflowDetails30$da2 === void 0 ? void 0 : _workflowDetails30$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(LinkButton, {
24165
- label: t("BPA_VERIFY_BUTTON"),
24166
- onClick: handleVerifyClick
24167
- }), /*#__PURE__*/React.createElement("br", null), showMobileInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
24168
- t: t,
24169
- type: "tel",
24170
- isMandatory: true,
24171
- optionKey: "i18nKey",
24172
- name: "mobileNumber",
24173
- value: mobileNumber,
24174
- disable: true,
24175
- onChange: handleMobileNumberChange
24176
- }, {
24177
- required: true,
24178
- pattern: "[0-9]{10}",
24179
- type: "tel",
24180
- title: t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")
24181
- })), /*#__PURE__*/React.createElement(LinkButton, {
24182
- label: t("BPA_GET_OTP"),
24183
- onClick: handleGetOTPClick,
24184
- disabled: !isValidMobileNumber
24185
- })), showOTPInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_OTP")), /*#__PURE__*/React.createElement(OTPInput, {
24186
- length: 6,
24187
- onChange: value => setOTP(value),
24188
- value: otp
24189
- }), /*#__PURE__*/React.createElement(SubmitBar, {
24190
- label: t("VERIFY_OTP"),
24191
- onSubmit: handleVerifyOTPClick
24192
- }), otpError && /*#__PURE__*/React.createElement(CardLabel, {
24193
- style: {
24194
- color: "red"
24195
- }
24196
- }, t(otpError)), otpSuccess && /*#__PURE__*/React.createElement(CardLabel, {
24197
- style: {
24198
- color: "green"
24199
- }
24200
- }, t(otpSuccess)))), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
24314
+ })), ((_workflowDetails31 = workflowDetails) === null || _workflowDetails31 === void 0 ? void 0 : (_workflowDetails31$da = _workflowDetails31.data) === null || _workflowDetails31$da === void 0 ? void 0 : (_workflowDetails31$da2 = _workflowDetails31$da.actionState) === null || _workflowDetails31$da2 === void 0 ? void 0 : _workflowDetails31$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, {
24201
24315
  label: checkLabels(),
24202
24316
  onChange: setdeclarationhandler,
24203
24317
  styles: {
@@ -24225,7 +24339,7 @@ const BpaApplicationDetail = () => {
24225
24339
  id: id,
24226
24340
  closeModal: closeModal,
24227
24341
  submitAction: submitAction,
24228
- actionData: (_workflowDetails31 = workflowDetails) === null || _workflowDetails31 === void 0 ? void 0 : (_workflowDetails31$da = _workflowDetails31.data) === null || _workflowDetails31$da === void 0 ? void 0 : _workflowDetails31$da.timeline
24342
+ actionData: (_workflowDetails32 = workflowDetails) === null || _workflowDetails32 === void 0 ? void 0 : (_workflowDetails32$da = _workflowDetails32.data) === null || _workflowDetails32$da === void 0 ? void 0 : _workflowDetails32$da.timeline
24229
24343
  }) : null, showToast && /*#__PURE__*/React.createElement(Toast$1, {
24230
24344
  error: showToast.key === "error" ? true : false,
24231
24345
  label: t(showToast.key === "success" ? `ES_OBPS_${showToast.action}_UPDATE_SUCCESS` : showToast.action),
@@ -37003,9 +37117,10 @@ const Architectconcent = ({
37003
37117
  setShowTermsPopup,
37004
37118
  otpVerifiedTimestamp,
37005
37119
  currentStepData,
37006
- formData
37120
+ formData,
37121
+ onSelect
37007
37122
  }) => {
37008
- 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, _params$additionalDet, _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$crea29, _currentStepData$crea30, _currentStepData$crea31, _currentStepData$crea32, _currentStepData$crea33, _currentStepData$crea34, _currentStepData$crea35, _currentStepData$crea36, _currentStepData$crea37, _currentStepData$Plot, _currentStepData$Plot2, _currentStepData$Plot3, _currentStepData$Plot4, _user$info4;
37123
+ 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;
37009
37124
  const {
37010
37125
  state
37011
37126
  } = useLocation();
@@ -37015,6 +37130,12 @@ const Architectconcent = ({
37015
37130
  const user = Digit.UserService.getUser();
37016
37131
  const architecname = (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.name) || "";
37017
37132
  const architectmobileNumber = (user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.mobileNumber) || "";
37133
+ const [showOTPInput, setShowOTPInput] = useState(false);
37134
+ const [otp, setOTP] = useState("");
37135
+ const [otpError, setOTPError] = useState("");
37136
+ const [otpSuccess, setOTPSuccess] = useState("");
37137
+ const [setOtpLoading, setSetOtpLoading] = useState(false);
37138
+ const [getOtpLoading, setGetOtpLoading] = useState(false);
37018
37139
  const [params, setParams] = Digit.Hooks.useSessionStorage("BUILDING_PERMIT", state !== null && state !== void 0 && state.edcrNumber ? {
37019
37140
  data: {
37020
37141
  scrutinyNumber: {
@@ -37024,6 +37145,7 @@ const Architectconcent = ({
37024
37145
  } : {});
37025
37146
  const [isUploading, setIsUploading] = useState(false);
37026
37147
  const [isFileUploaded, setIsFileUploaded] = useState(false);
37148
+ const [userSelected, setUser] = useState(null);
37027
37149
  const architectid = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea = currentStepData.createdResponse) === null || _currentStepData$crea === void 0 ? void 0 : (_currentStepData$crea2 = _currentStepData$crea.additionalDetails) === null || _currentStepData$crea2 === void 0 ? void 0 : _currentStepData$crea2.architectid) || "";
37028
37150
  const ownername = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea3 = currentStepData.createdResponse) === null || _currentStepData$crea3 === void 0 ? void 0 : (_currentStepData$crea4 = _currentStepData$crea3.landInfo) === null || _currentStepData$crea4 === void 0 ? void 0 : (_currentStepData$crea5 = _currentStepData$crea4.owners) === null || _currentStepData$crea5 === void 0 ? void 0 : (_currentStepData$crea6 = _currentStepData$crea5[0]) === null || _currentStepData$crea6 === void 0 ? void 0 : _currentStepData$crea6.name) || "";
37029
37151
  const mobile = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea7 = currentStepData.createdResponse) === null || _currentStepData$crea7 === void 0 ? void 0 : (_currentStepData$crea8 = _currentStepData$crea7.landInfo) === null || _currentStepData$crea8 === void 0 ? void 0 : (_currentStepData$crea9 = _currentStepData$crea8.owners) === null || _currentStepData$crea9 === void 0 ? void 0 : (_currentStepData$crea0 = _currentStepData$crea9[0]) === null || _currentStepData$crea0 === void 0 ? void 0 : _currentStepData$crea0.mobileNumber) || "";
@@ -37034,7 +37156,8 @@ const Architectconcent = ({
37034
37156
  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) || "";
37035
37157
  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) || "";
37036
37158
  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) || "";
37037
- const TimeStamp = otpVerifiedTimestamp || (params === null || params === void 0 ? void 0 : (_params$additionalDet = params.additionalDetails) === null || _params$additionalDet === void 0 ? void 0 : _params$additionalDet.TimeStamp) || "";
37159
+ 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) || "");
37160
+ 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) || "");
37038
37161
  const DateOnly = TimeStamp ? (() => {
37039
37162
  const d = new Date(TimeStamp);
37040
37163
  const month = String(d.getMonth() + 1).padStart(2, "0");
@@ -37042,8 +37165,19 @@ const Architectconcent = ({
37042
37165
  const year = d.getFullYear();
37043
37166
  return `${day}/${month}/${year}`;
37044
37167
  })() : "";
37045
- const isArchitectDeclared = sessionStorage.getItem("ArchitectConsentdocFilestoreid");
37046
- console.log(params, "PARAM");
37168
+ console.log(currentStepData, isArchitectDeclared, TimeStamp, "PARAM");
37169
+ useEffect(() => {
37170
+ var _currentStepData$Time, _currentStepData$Time3;
37171
+ console.log("currentStepDataInArchitectConsent", currentStepData);
37172
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time = currentStepData.Timestamp) !== null && _currentStepData$Time !== void 0 && _currentStepData$Time.TimeStamp) {
37173
+ var _currentStepData$Time2;
37174
+ setTimeout(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time2 = currentStepData.Timestamp) === null || _currentStepData$Time2 === void 0 ? void 0 : _currentStepData$Time2.TimeStamp);
37175
+ }
37176
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time3 = currentStepData.Timestamp) !== null && _currentStepData$Time3 !== void 0 && _currentStepData$Time3.isArchitectDeclared) {
37177
+ var _currentStepData$Time4;
37178
+ setIsArchitectDeclared(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time4 = currentStepData.Timestamp) === null || _currentStepData$Time4 === void 0 ? void 0 : _currentStepData$Time4.isArchitectDeclared);
37179
+ }
37180
+ }, [currentStepData]);
37047
37181
  useEffect(() => {
37048
37182
  if (typeof setParams === "function" && params !== null && params !== void 0 && params.additionalDetails && !params.additionalDetails.TimeStamp && TimeStamp) {
37049
37183
  try {
@@ -37059,6 +37193,14 @@ const Architectconcent = ({
37059
37193
  }
37060
37194
  }
37061
37195
  }, [params, setParams, TimeStamp]);
37196
+ useEffect(() => {
37197
+ if (!userSelected) {
37198
+ return;
37199
+ }
37200
+ Digit.SessionStorage.set("citizen.userRequestObject", user);
37201
+ Digit.UserService.setUser(userSelected);
37202
+ setCitizenDetail(userSelected === null || userSelected === void 0 ? void 0 : userSelected.info, userSelected === null || userSelected === void 0 ? void 0 : userSelected.access_token, state);
37203
+ }, [userSelected]);
37062
37204
  const selfdeclarationform = `
37063
37205
  <div style="font-family: 'Times New Roman', Times, serif; color:#000; font-size:16px; line-height:1.18; padding:0; margin-top:-100px">
37064
37206
 
@@ -37080,11 +37222,11 @@ const Architectconcent = ({
37080
37222
  <p style="margin-top:-52px;margin-bottom:-32px;"><strong>Dear Sir/Madam,</strong></p>
37081
37223
 
37082
37224
  <p style="margin-top:-30px;margin-bottom:-32px;">
37083
- I, the undersigned Shri/Smt/Kum <b>${architecname}</b> <b>${architecttype}</b> having Registration No. ${architectid} is appointed by the owner <b>${ownername}</b> Mobile: <b>${mobile}</b> for the development on land bearing Kh. No <b>${khasranumber}</b> of <b>${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca7 = currentStepData.LocationDetails) === null || _currentStepData$Loca7 === void 0 ? void 0 : (_currentStepData$Loca8 = _currentStepData$Loca7.selectedCity) === null || _currentStepData$Loca8 === void 0 ? void 0 : (_currentStepData$Loca9 = _currentStepData$Loca8.city) === null || _currentStepData$Loca9 === void 0 ? void 0 : _currentStepData$Loca9.ulbType}</b> <b>${ulbname}</b> Area <b>${area}</b> (Sq.mts), address <b>${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea29 = currentStepData.createdResponse) === null || _currentStepData$crea29 === void 0 ? void 0 : (_currentStepData$crea30 = _currentStepData$crea29.landInfo) === null || _currentStepData$crea30 === void 0 ? void 0 : (_currentStepData$crea31 = _currentStepData$crea30.address) === null || _currentStepData$crea31 === void 0 ? void 0 : (_currentStepData$crea32 = _currentStepData$crea31.locality) === null || _currentStepData$crea32 === void 0 ? void 0 : (_currentStepData$crea33 = _currentStepData$crea32.name) === null || _currentStepData$crea33 === void 0 ? void 0 : (_currentStepData$crea34 = _currentStepData$crea33.split("-")) === null || _currentStepData$crea34 === void 0 ? void 0 : (_currentStepData$crea35 = _currentStepData$crea34[0]) === null || _currentStepData$crea35 === void 0 ? void 0 : _currentStepData$crea35.trim()) || "NA"}</b>.
37225
+ I, the undersigned Shri/Smt/Kum <b>${architecname}</b> <b>${architecttype}</b> having Registration No. ${architectid} is appointed by the owner <b>${ownername}</b> Mobile: <b>${mobile}</b> for the development on land bearing Kh. No <b>${khasranumber}</b> of <b>${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca7 = currentStepData.LocationDetails) === null || _currentStepData$Loca7 === void 0 ? void 0 : (_currentStepData$Loca8 = _currentStepData$Loca7.selectedCity) === null || _currentStepData$Loca8 === void 0 ? void 0 : (_currentStepData$Loca9 = _currentStepData$Loca8.city) === null || _currentStepData$Loca9 === void 0 ? void 0 : _currentStepData$Loca9.ulbType}</b> <b>${ulbname}</b> Area <b>${area}</b> (Sq.mts), address <b>${(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.planInformation) === null || _currentStepData$Basi4 === void 0 ? void 0 : _currentStepData$Basi4.plotNo) + " ," + (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea29 = currentStepData.createdResponse) === null || _currentStepData$crea29 === void 0 ? void 0 : (_currentStepData$crea30 = _currentStepData$crea29.additionalDetails) === null || _currentStepData$crea30 === void 0 ? void 0 : _currentStepData$crea30.registrationDetails) || "NA"}</b>.
37084
37226
  </p>
37085
37227
 
37086
37228
  <p style="margin-top:-52px;margin-bottom:-32px;">
37087
- This site falls in Ward Number <b>${ward}</b>, Zone Number <b>${zone}</b> in the Master plan of <b>${district}</b> and the proposed ${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea36 = currentStepData.createdResponse) === null || _currentStepData$crea36 === void 0 ? void 0 : (_currentStepData$crea37 = _currentStepData$crea36.additionalDetails) === null || _currentStepData$crea37 === void 0 ? void 0 : _currentStepData$crea37.usage) || '<Type of Construction>'} construction is permissible in this area.
37229
+ This site falls in Ward Number <b>${ward}</b>, Zone Number <b>${zone}</b> in the Master plan of <b>${district}</b> and the proposed ${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea31 = currentStepData.createdResponse) === null || _currentStepData$crea31 === void 0 ? void 0 : (_currentStepData$crea32 = _currentStepData$crea31.additionalDetails) === null || _currentStepData$crea32 === void 0 ? void 0 : _currentStepData$crea32.usage) || '<Type of Construction>'} construction is permissible in this area.
37088
37230
  </p>
37089
37231
 
37090
37232
  <p style="margin-top:-52px;margin-bottom:-32px;">
@@ -37112,7 +37254,7 @@ const Architectconcent = ({
37112
37254
 
37113
37255
 
37114
37256
  <!-- Signature / details table (dotted cells like your doc) -->
37115
- <table style="width:100%; border-collapse:collapse; margin-top:-52px; font-size:13px;">
37257
+ ${TimeStamp !== "" ? `<table style="width:100%; border-collapse:collapse; margin-top:-52px; font-size:13px;">
37116
37258
  <tr>
37117
37259
  <td style="width:48%; vertical-align:top; padding:6px; border:1px dotted #000;">
37118
37260
  <div style="font-weight:700; margin-bottom:6px;">Date:</div>
@@ -37146,33 +37288,54 @@ const Architectconcent = ({
37146
37288
  <td style="padding:6px; font-weight:700;">Signature:</td>
37147
37289
  <td style="padding:6px;">Verified through OTP on <b>${TimeStamp || '<date> <time>'}</b></td>
37148
37290
  </tr>
37149
- </table>
37291
+ </table>` : ""}
37150
37292
  </td>
37151
37293
  </tr>
37152
37294
  </table>
37153
37295
  </div>
37154
37296
  `;
37155
37297
  const closeModal = () => setShowTermsPopup(false);
37156
- const uploadSelfDeclaration = async () => {
37298
+ const setCitizenDetail = (userObject, token, tenantId) => {
37299
+ var _JSON$parse, _JSON$parse$value;
37300
+ let locale = (_JSON$parse = JSON.parse(sessionStorage.getItem("Digit.initData"))) === null || _JSON$parse === void 0 ? void 0 : (_JSON$parse$value = _JSON$parse.value) === null || _JSON$parse$value === void 0 ? void 0 : _JSON$parse$value.selectedLanguage;
37301
+ localStorage.setItem("Citizen.tenant-id", tenantId);
37302
+ localStorage.setItem("tenant-id", tenantId);
37303
+ localStorage.setItem("citizen.userRequestObject", JSON.stringify(userObject));
37304
+ localStorage.setItem("locale", locale);
37305
+ localStorage.setItem("Citizen.locale", locale);
37306
+ localStorage.setItem("token", token);
37307
+ localStorage.setItem("Citizen.token", token);
37308
+ localStorage.setItem("user-info", JSON.stringify(userObject));
37309
+ localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
37310
+ };
37311
+ const uploadSelfDeclaration = async event => {
37157
37312
  try {
37158
- var _currentStepData$crea38, _currentStepData$Basi, _result$filestoreIds;
37313
+ var _currentStepData$crea33, _currentStepData$Basi5, _result$filestoreIds;
37314
+ const timestamp = await handleVerifyOTPClick(event);
37315
+ if (timestamp === "") {
37316
+ return;
37317
+ }
37159
37318
  setIsUploading(true);
37160
37319
  const paramsWithTimestamp = {
37161
37320
  ...(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse),
37162
37321
  additionalDetails: {
37163
- ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea38 = currentStepData.createdResponse) === null || _currentStepData$crea38 === void 0 ? void 0 : _currentStepData$crea38.additionalDetails),
37164
- TimeStamp
37322
+ ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea33 = currentStepData.createdResponse) === null || _currentStepData$crea33 === void 0 ? void 0 : _currentStepData$crea33.additionalDetails),
37323
+ timestamp
37165
37324
  },
37166
37325
  edcrDetail: {
37167
- ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi = currentStepData.BasicDetails) === null || _currentStepData$Basi === void 0 ? void 0 : _currentStepData$Basi.edcrDetail)
37326
+ ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi5 = currentStepData.BasicDetails) === null || _currentStepData$Basi5 === void 0 ? void 0 : _currentStepData$Basi5.edcrDetail)
37168
37327
  }
37169
37328
  };
37170
37329
  const result = await Digit.PaymentService.generatePdf(Digit.ULBService.getStateId(), {
37171
37330
  Bpa: [paramsWithTimestamp]
37172
37331
  }, "architectconsent");
37173
37332
  if (result !== null && result !== void 0 && (_result$filestoreIds = result.filestoreIds) !== null && _result$filestoreIds !== void 0 && _result$filestoreIds[0]) {
37333
+ var _result$filestoreIds2;
37174
37334
  alert("File Uploaded Successfully");
37175
- sessionStorage.setItem("ArchitectConsentdocFilestoreid", result.filestoreIds[0]);
37335
+ onSelect({
37336
+ isArchitectDeclared: result === null || result === void 0 ? void 0 : (_result$filestoreIds2 = result.filestoreIds) === null || _result$filestoreIds2 === void 0 ? void 0 : _result$filestoreIds2[0],
37337
+ TimeStamp: timestamp
37338
+ });
37176
37339
  setIsFileUploaded(true);
37177
37340
  } else {
37178
37341
  alert("File Upload Failed");
@@ -37184,6 +37347,75 @@ const Architectconcent = ({
37184
37347
  setIsUploading(false);
37185
37348
  }
37186
37349
  };
37350
+ const handleGetOTPClick = async e => {
37351
+ e.preventDefault();
37352
+ try {
37353
+ var _user$info5, _user$info6;
37354
+ setGetOtpLoading(true);
37355
+ const response = await Digit.UserService.sendOtp({
37356
+ otp: {
37357
+ mobileNumber: architectmobileNumber || "",
37358
+ tenantId: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.tenantId,
37359
+ userType: user === null || user === void 0 ? void 0 : (_user$info6 = user.info) === null || _user$info6 === void 0 ? void 0 : _user$info6.type,
37360
+ type: "login"
37361
+ }
37362
+ });
37363
+ if (response.isSuccessful) {
37364
+ setGetOtpLoading(false);
37365
+ setShowOTPInput(true);
37366
+ } else {
37367
+ console.error("Error sending OTP Response is false:", response.error);
37368
+ alert("Something Went Wrong");
37369
+ setGetOtpLoading(false);
37370
+ }
37371
+ } catch (error) {
37372
+ console.error("Error sending OTP:", error);
37373
+ alert("Something went wrong");
37374
+ setGetOtpLoading(false);
37375
+ }
37376
+ };
37377
+ const handleVerifyOTPClick = async e => {
37378
+ var _user$info7, _user$info8;
37379
+ e.preventDefault();
37380
+ console.log("OTP++++++++>");
37381
+ const requestData = {
37382
+ username: architectmobileNumber || "",
37383
+ password: otp,
37384
+ tenantId: user === null || user === void 0 ? void 0 : (_user$info7 = user.info) === null || _user$info7 === void 0 ? void 0 : _user$info7.tenantId,
37385
+ userType: user === null || user === void 0 ? void 0 : (_user$info8 = user.info) === null || _user$info8 === void 0 ? void 0 : _user$info8.type
37386
+ };
37387
+ try {
37388
+ setSetOtpLoading(true);
37389
+ const {
37390
+ ResponseInfo,
37391
+ UserRequest: info,
37392
+ ...tokens
37393
+ } = await Digit.UserService.authenticate(requestData);
37394
+ if (ResponseInfo.status === "Access Token generated successfully") {
37395
+ setOTPSuccess(t("VERIFIED"));
37396
+ setOTPError(false);
37397
+ const currentTimestamp = new Date();
37398
+ setOTPVerifiedTimestamp(currentTimestamp);
37399
+ sessionStorage.setItem("otpVerifiedTimestamp", currentTimestamp.toISOString());
37400
+ setSetOtpLoading(false);
37401
+ setUser({
37402
+ info,
37403
+ ...tokens
37404
+ });
37405
+ return currentTimestamp;
37406
+ } else {
37407
+ setOTPError(t("WRONG OTP"));
37408
+ setSetOtpLoading(false);
37409
+ return "";
37410
+ }
37411
+ } catch (error) {
37412
+ console.error("Error verifying OTP:", error);
37413
+ alert("OTP Verification Error ");
37414
+ setOTPError(t("OTP Verification Error"));
37415
+ setSetOtpLoading(false);
37416
+ return "";
37417
+ }
37418
+ };
37187
37419
  const modalStyles = {
37188
37420
  overlay: {
37189
37421
  position: "fixed",
@@ -37243,7 +37475,7 @@ const Architectconcent = ({
37243
37475
  dangerouslySetInnerHTML: {
37244
37476
  __html: selfdeclarationform
37245
37477
  }
37246
- })), !isArchitectDeclared && /*#__PURE__*/React.createElement("div", {
37478
+ })), isUploading || setOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement("div", null, isArchitectDeclared === "" && /*#__PURE__*/React.createElement("div", {
37247
37479
  style: {
37248
37480
  display: "flex",
37249
37481
  justifyContent: "flex-end",
@@ -37255,9 +37487,9 @@ const Architectconcent = ({
37255
37487
  onSubmit: closeModal
37256
37488
  }), /*#__PURE__*/React.createElement(SubmitBar, {
37257
37489
  label: t("BPA_UPLOAD"),
37258
- onSubmit: uploadSelfDeclaration,
37259
- disabled: isUploading || isFileUploaded
37260
- })), isArchitectDeclared && /*#__PURE__*/React.createElement("div", {
37490
+ onSubmit: handleGetOTPClick,
37491
+ disabled: getOtpLoading
37492
+ })), !(isArchitectDeclared === "") && /*#__PURE__*/React.createElement("div", {
37261
37493
  style: {
37262
37494
  display: "flex",
37263
37495
  justifyContent: "flex-end",
@@ -37267,7 +37499,22 @@ const Architectconcent = ({
37267
37499
  }, /*#__PURE__*/React.createElement(SubmitBar, {
37268
37500
  label: t("BPA_CLOSE"),
37269
37501
  onSubmit: closeModal
37270
- })))));
37502
+ })), showOTPInput && !TimeStamp && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_OTP")), /*#__PURE__*/React.createElement(OTPInput, {
37503
+ length: 6,
37504
+ onChange: value => setOTP(value),
37505
+ value: otp
37506
+ }), setOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SubmitBar, {
37507
+ label: t("VERIFY_OTP"),
37508
+ onSubmit: uploadSelfDeclaration
37509
+ }), otpError && /*#__PURE__*/React.createElement(CardLabel, {
37510
+ style: {
37511
+ color: "red"
37512
+ }
37513
+ }, t(otpError)), otpSuccess && /*#__PURE__*/React.createElement(CardLabel, {
37514
+ style: {
37515
+ color: "green"
37516
+ }
37517
+ }, t(otpSuccess)))))));
37271
37518
  };
37272
37519
 
37273
37520
  var bind = function bind(fn, thisArg) {
@@ -49250,7 +49497,7 @@ const SummaryDetails = ({
49250
49497
  currentStepData,
49251
49498
  onGoBack
49252
49499
  }) => {
49253
- var _user$info, _currentStepData$crea12, _currentStepData$crea33, _currentStepData$crea36, _currentStepData$crea37, _currentStepData$crea38, _currentStepData$crea39, _currentStepData$crea40, _pdfDetails$pdfFiles, _user$info4, _user$info5, _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$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$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _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$crea72, _currentStepData$crea73, _currentStepData$crea74, _currentStepData$crea75, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$crea80, _currentStepData$Loca, _currentStepData$Loca2, _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$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _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, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
49500
+ 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$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$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _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$crea72, _currentStepData$crea73, _currentStepData$crea74, _currentStepData$crea75, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$crea80, _currentStepData$Loca, _currentStepData$Loca2, _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$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _currentStepData$crea113, _currentStepData$crea114, _currentStepData$crea115, _currentStepData$crea116, _currentStepData$crea117, _currentStepData$crea118, _currentStepData$crea119, _currentStepData$crea120, _currentStepData$crea121, _currentStepData$crea122, _currentStepData$crea123, _currentStepData$crea124, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
49254
49501
  const {
49255
49502
  t
49256
49503
  } = useTranslation();
@@ -49261,7 +49508,7 @@ const SummaryDetails = ({
49261
49508
  const [showMobileInput, setShowMobileInput] = useState(false);
49262
49509
  const architectmobilenumber = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.mobileNumber;
49263
49510
  const [mobileNumber, setMobileNumber] = useState(() => architectmobilenumber || "");
49264
- const isArchitectDeclared = sessionStorage.getItem("ArchitectConsentdocFilestoreid");
49511
+ const [isArchitectDeclared, setIsArchitectDeclared] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time = currentStepData.Timestamp) === null || _currentStepData$Time === void 0 ? void 0 : _currentStepData$Time.isArchitectDeclared) || "");
49265
49512
  const [isSubmitting, setIsSubmitting] = useState(false);
49266
49513
  const [apiLoading, setApiLoading] = useState(false);
49267
49514
  const tenantId = localStorage.getItem("CITIZEN.CITY");
@@ -49357,7 +49604,7 @@ const SummaryDetails = ({
49357
49604
  localStorage.setItem("Citizen.user-info", JSON.stringify(userObject));
49358
49605
  };
49359
49606
  useEffect(() => {
49360
- var _currentStepData$crea27;
49607
+ var _currentStepData$crea27, _currentStepData$Time2, _currentStepData$Time4;
49361
49608
  if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea27 = currentStepData.createdResponse) !== null && _currentStepData$crea27 !== void 0 && _currentStepData$crea27.additionalDetails) {
49362
49609
  var _currentStepData$crea28, _currentStepData$crea29, _currentStepData$crea30;
49363
49610
  const selfCert = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea28 = currentStepData.createdResponse) === null || _currentStepData$crea28 === void 0 ? void 0 : (_currentStepData$crea29 = _currentStepData$crea28.additionalDetails) === null || _currentStepData$crea29 === void 0 ? void 0 : _currentStepData$crea29.selfCertificationCharges) || {};
@@ -49372,6 +49619,14 @@ const SummaryDetails = ({
49372
49619
  setOtherChargesDisc(otherDetails.otherFeesDiscription || "");
49373
49620
  setUploadedFileLess(otherDetails.lessAdjustmentFeeFiles || []);
49374
49621
  }
49622
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time2 = currentStepData.Timestamp) !== null && _currentStepData$Time2 !== void 0 && _currentStepData$Time2.isArchitectDeclared) {
49623
+ var _currentStepData$Time3;
49624
+ setIsArchitectDeclared(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time3 = currentStepData.Timestamp) === null || _currentStepData$Time3 === void 0 ? void 0 : _currentStepData$Time3.isArchitectDeclared);
49625
+ }
49626
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time4 = currentStepData.Timestamp) !== null && _currentStepData$Time4 !== void 0 && _currentStepData$Time4.TimeStamp) {
49627
+ var _currentStepData$Time5;
49628
+ setOTPVerifiedTimestamp(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time5 = currentStepData.Timestamp) === null || _currentStepData$Time5 === void 0 ? void 0 : _currentStepData$Time5.TimeStamp);
49629
+ }
49375
49630
  }, [currentStepData]);
49376
49631
  useEffect(() => {
49377
49632
  if (!uploadedFile && (uploadedFileLess === null || uploadedFileLess === void 0 ? void 0 : uploadedFileLess.length) > 0) {
@@ -49448,10 +49703,7 @@ const SummaryDetails = ({
49448
49703
  });
49449
49704
  const [otpError, setOTPError] = useState("");
49450
49705
  const [otpSuccess, setOTPSuccess] = useState("");
49451
- const [otpVerifiedTimestamp, setOTPVerifiedTimestamp] = useState(() => {
49452
- const stored = sessionStorage.getItem("otpVerifiedTimestamp");
49453
- return stored ? new Date(stored) : null;
49454
- });
49706
+ const [otpVerifiedTimestamp, setOTPVerifiedTimestamp] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time6 = currentStepData.TimeStamp) === null || _currentStepData$Time6 === void 0 ? void 0 : _currentStepData$Time6.TimeStamp) || "");
49455
49707
  const [agree, setAgree] = useState(() => {
49456
49708
  const stored = sessionStorage.getItem("professionalAgree");
49457
49709
  return stored === "true";
@@ -49587,30 +49839,17 @@ const SummaryDetails = ({
49587
49839
  }));
49588
49840
  }, [fileUrls, t]);
49589
49841
  const handleTermsLinkClick = e => {
49590
- e.preventDefault();
49591
- if (isOTPVerified) {
49592
- setShowTermsPopup(true);
49593
- } else {
49594
- alert("Please verify yourself");
49595
- }
49842
+ setShowTermsPopup(true);
49596
49843
  };
49597
49844
  const setdeclarationhandler = e => {
49598
- if (!isOTPVerified) {
49845
+ if (!otpVerifiedTimestamp || otpVerifiedTimestamp === "") {
49599
49846
  console.log("setdeclarationhandler", e, isOTPVerified);
49600
- setShowMobileInput(true);
49601
- } else {
49602
- setAgree(!agree);
49847
+ setShowTermsPopup(true);
49848
+ setAgree(true);
49603
49849
  }
49604
49850
  };
49605
49851
  const checkLabels = () => {
49606
- return /*#__PURE__*/React.createElement("div", null, t("I_AGREE_TO_BELOW_UNDERTAKING"), /*#__PURE__*/React.createElement("br", null), !isArchitectDeclared && /*#__PURE__*/React.createElement(LinkButton, {
49607
- style: {
49608
- marginLeft: "-55px",
49609
- background: "#fff"
49610
- },
49611
- label: t("DECLARATION_UNDER_SELF_CERTIFICATION_SCHEME"),
49612
- onClick: handleTermsLinkClick
49613
- }), isArchitectDeclared && /*#__PURE__*/React.createElement("div", {
49852
+ return /*#__PURE__*/React.createElement("div", null, t("I_AGREE_TO_BELOW_UNDERTAKING"), /*#__PURE__*/React.createElement("br", null), isArchitectDeclared && /*#__PURE__*/React.createElement("div", {
49614
49853
  onClick: handleTermsLinkClick,
49615
49854
  style: {
49616
49855
  color: "green"
@@ -49650,7 +49889,7 @@ const SummaryDetails = ({
49650
49889
  value
49651
49890
  }) => value || t("CS_NA")
49652
49891
  }, {
49653
- Header: t("BPA_DOCUMENT_FILE"),
49892
+ Header: t(""),
49654
49893
  accessor: "fileUrl",
49655
49894
  Cell: ({
49656
49895
  value
@@ -49664,77 +49903,6 @@ const SummaryDetails = ({
49664
49903
  onClick: () => routeTo(value)
49665
49904
  }) : t("CS_NA")
49666
49905
  }];
49667
- const handleMobileNumberChange = e => {
49668
- setMobileNumber(e.target.value);
49669
- };
49670
- const handleGetOTPClick = async e => {
49671
- e.preventDefault();
49672
- try {
49673
- var _user$info2, _user$info3;
49674
- setGetOtpLoading(true);
49675
- const response = await Digit.UserService.sendOtp({
49676
- otp: {
49677
- mobileNumber: mobileNumber,
49678
- tenantId: user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.tenantId,
49679
- userType: user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.type,
49680
- type: "login"
49681
- }
49682
- });
49683
- if (response.isSuccessful) {
49684
- setGetOtpLoading(false);
49685
- setShowOTPInput(true);
49686
- } else {
49687
- console.error("Error sending OTP Response is false:", response.error);
49688
- alert("Something Went Wrong");
49689
- setGetOtpLoading(false);
49690
- }
49691
- } catch (error) {
49692
- console.error("Error sending OTP:", error);
49693
- alert("Something went wrong");
49694
- setGetOtpLoading(false);
49695
- }
49696
- };
49697
- const requestData = {
49698
- username: mobileNumber,
49699
- password: otp,
49700
- tenantId: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.tenantId,
49701
- userType: user === null || user === void 0 ? void 0 : (_user$info5 = user.info) === null || _user$info5 === void 0 ? void 0 : _user$info5.type
49702
- };
49703
- const handleVerifyOTPClick = async e => {
49704
- e.preventDefault();
49705
- console.log("OTP++++++++>");
49706
- try {
49707
- setSetOtpLoading(true);
49708
- const {
49709
- ResponseInfo,
49710
- UserRequest: info,
49711
- ...tokens
49712
- } = await Digit.UserService.authenticate(requestData);
49713
- if (ResponseInfo.status === "Access Token generated successfully") {
49714
- setIsOTPVerified(true);
49715
- setOTPSuccess(t("VERIFIED"));
49716
- setOTPError(false);
49717
- const currentTimestamp = new Date();
49718
- setOTPVerifiedTimestamp(currentTimestamp);
49719
- sessionStorage.setItem("otpVerifiedTimestamp", currentTimestamp.toISOString());
49720
- setSetOtpLoading(false);
49721
- setUser({
49722
- info,
49723
- ...tokens
49724
- });
49725
- } else {
49726
- setIsOTPVerified(false);
49727
- setOTPError(t("WRONG OTP"));
49728
- setSetOtpLoading(false);
49729
- }
49730
- } catch (error) {
49731
- console.error("Error verifying OTP:", error);
49732
- alert("OTP Verification Error ");
49733
- setIsOTPVerified(false);
49734
- setOTPError(t("OTP Verification Error"));
49735
- setSetOtpLoading(false);
49736
- }
49737
- };
49738
49906
  const isValidMobileNumber = mobileNumber.length === 10 && /^[0-9]+$/.test(mobileNumber);
49739
49907
  const workflowDetails = Digit.Hooks.useWorkflowDetails({
49740
49908
  tenantId: tenantId,
@@ -49822,29 +49990,29 @@ const SummaryDetails = ({
49822
49990
  }
49823
49991
  }
49824
49992
  async function onActionSelect(action) {
49825
- console.log("Selected Action", action === null || action === void 0 ? void 0 : action.action);
49826
- if ((action === null || action === void 0 ? void 0 : action.action) !== "SAVE_AS_DRAFT" && (!agree || !isOTPVerified || !isArchitectDeclared)) {
49827
- if (!isOTPVerified) {
49993
+ console.log("Selected Action", action === null || action === void 0 ? void 0 : action.action, otpVerifiedTimestamp, isArchitectDeclared, agree);
49994
+ if ((action === null || action === void 0 ? void 0 : action.action) !== "SAVE_AS_DRAFT" && (!agree || otpVerifiedTimestamp === "" || isArchitectDeclared === "")) {
49995
+ if (!agree) {
49828
49996
  setShowToast({
49829
49997
  key: "true",
49830
49998
  error: true,
49831
- message: t("User OTP Not Verified")
49999
+ message: t("Professinal Undertaking is not Agreed")
49832
50000
  });
49833
50001
  return;
49834
50002
  }
49835
- if (!isArchitectDeclared) {
50003
+ if (otpVerifiedTimestamp === "") {
49836
50004
  setShowToast({
49837
50005
  key: "true",
49838
50006
  error: true,
49839
- message: t("Professinal Undertaking is not Uploaded")
50007
+ message: t("User OTP Not Verified")
49840
50008
  });
49841
50009
  return;
49842
50010
  }
49843
- if (!agree) {
50011
+ if (isArchitectDeclared === "") {
49844
50012
  setShowToast({
49845
50013
  key: "true",
49846
50014
  error: true,
49847
- message: t("Professinal Undertaking is not Agreed")
50015
+ message: t("Professinal Undertaking is not Uploaded")
49848
50016
  });
49849
50017
  return;
49850
50018
  }
@@ -49982,12 +50150,10 @@ const SummaryDetails = ({
49982
50150
  border: "1px solid #f0f0f0",
49983
50151
  background: "#fff"
49984
50152
  }
49985
- }, /*#__PURE__*/React.createElement(CardHeader, {
50153
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
49986
50154
  style: {
49987
- fontSize: "16px",
49988
- fontWeight: "600",
49989
- marginBottom: "12px",
49990
- color: "#333"
50155
+ fontSize: "20px",
50156
+ marginTop: "20px"
49991
50157
  }
49992
50158
  }, t(`BPA_BASIC_DETAILS_TITLE`)), /*#__PURE__*/React.createElement("hr", {
49993
50159
  style: {
@@ -50023,19 +50189,17 @@ const SummaryDetails = ({
50023
50189
  border: "1px solid #f0f0f0",
50024
50190
  background: "#fff"
50025
50191
  }
50026
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, {
50192
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50027
50193
  style: {
50028
- fontSize: "16px",
50029
- fontWeight: "600",
50030
- marginBottom: "12px",
50031
- color: "#333"
50194
+ fontSize: "20px",
50195
+ marginTop: "20px"
50032
50196
  }
50033
50197
  }, t("BPA_PLOT_DETAILS_TITLE")), /*#__PURE__*/React.createElement("hr", {
50034
50198
  style: {
50035
50199
  border: "0.5px solid #eaeaea",
50036
50200
  margin: "0 0 16px 0"
50037
50201
  }
50038
- }), /*#__PURE__*/React.createElement(Row, {
50202
+ }), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50039
50203
  className: "border-none",
50040
50204
  label: t(`BPA_BOUNDARY_PLOT_AREA_LABEL`),
50041
50205
  text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi6 = currentStepData.BasicDetails) !== null && _currentStepData$Basi6 !== void 0 && (_currentStepData$Basi7 = _currentStepData$Basi6.edcrDetails) !== null && _currentStepData$Basi7 !== void 0 && (_currentStepData$Basi8 = _currentStepData$Basi7.planDetail) !== null && _currentStepData$Basi8 !== void 0 && (_currentStepData$Basi9 = _currentStepData$Basi8.planInformation) !== null && _currentStepData$Basi9 !== void 0 && _currentStepData$Basi9.plotArea ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi0 = currentStepData.BasicDetails) === null || _currentStepData$Basi0 === void 0 ? void 0 : (_currentStepData$Basi1 = _currentStepData$Basi0.edcrDetails) === null || _currentStepData$Basi1 === void 0 ? void 0 : (_currentStepData$Basi10 = _currentStepData$Basi1.planDetail) === null || _currentStepData$Basi10 === void 0 ? void 0 : (_currentStepData$Basi11 = _currentStepData$Basi10.planInformation) === null || _currentStepData$Basi11 === void 0 ? void 0 : _currentStepData$Basi11.plotArea} ${t(`BPA_SQ_MTRS_LABEL`)}` : t("CS_NA")
@@ -50063,14 +50227,20 @@ const SummaryDetails = ({
50063
50227
  className: "border-none",
50064
50228
  label: t(`BPA_WARD_NUMBER_LABEL`),
50065
50229
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea70 = currentStepData.createdResponse) === null || _currentStepData$crea70 === void 0 ? void 0 : (_currentStepData$crea71 = _currentStepData$crea70.additionalDetails) === null || _currentStepData$crea71 === void 0 ? void 0 : _currentStepData$crea71.wardnumber) || t("CS_NA")
50066
- }))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_STEPPER_SCRUTINY_DETAILS_HEADER")), /*#__PURE__*/React.createElement("hr", {
50230
+ }))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
50231
+ style: {
50232
+ fontSize: "20px",
50233
+ marginTop: "20px"
50234
+ }
50235
+ }, t("BPA_STEPPER_SCRUTINY_DETAILS_HEADER")), /*#__PURE__*/React.createElement("hr", {
50067
50236
  style: {
50068
50237
  border: "0.5px solid #eaeaea",
50069
50238
  margin: "0 0 16px 0"
50070
50239
  }
50071
50240
  }), /*#__PURE__*/React.createElement(CardSubHeader, {
50072
50241
  style: {
50073
- fontSize: "20px"
50242
+ fontSize: "20px",
50243
+ marginTop: "20px"
50074
50244
  }
50075
50245
  }, t("BPA_EDCR_DETAILS")), /*#__PURE__*/React.createElement("div", {
50076
50246
  style: {
@@ -50149,7 +50319,8 @@ const SummaryDetails = ({
50149
50319
  }
50150
50320
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
50151
50321
  style: {
50152
- fontSize: "20px"
50322
+ fontSize: "20px",
50323
+ marginTop: "20px"
50153
50324
  }
50154
50325
  }, t("BPA_PLAN_INFORMATION_PROPERTIES")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50155
50326
  className: "border-none",
@@ -50163,32 +50334,32 @@ const SummaryDetails = ({
50163
50334
  className: "border-none",
50164
50335
  label: t("BPA_DISTRICT"),
50165
50336
  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")
50166
- }), /*#__PURE__*/React.createElement(Row, {
50167
- className: "border-none",
50168
- label: t("BPA_MAUZA"),
50169
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi52 = currentStepData.BasicDetails) === null || _currentStepData$Basi52 === void 0 ? void 0 : (_currentStepData$Basi53 = _currentStepData$Basi52.edcrDetails) === null || _currentStepData$Basi53 === void 0 ? void 0 : (_currentStepData$Basi54 = _currentStepData$Basi53.planDetail) === null || _currentStepData$Basi54 === void 0 ? void 0 : (_currentStepData$Basi55 = _currentStepData$Basi54.planInfoProperties) === null || _currentStepData$Basi55 === void 0 ? void 0 : _currentStepData$Basi55.MAUZA) || t("CS_NA")
50170
50337
  }), /*#__PURE__*/React.createElement(Row, {
50171
50338
  className: "border-none",
50172
50339
  label: t("BPA_AREA_TYPE"),
50173
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi56 = currentStepData.BasicDetails) === null || _currentStepData$Basi56 === void 0 ? void 0 : (_currentStepData$Basi57 = _currentStepData$Basi56.edcrDetails) === null || _currentStepData$Basi57 === void 0 ? void 0 : (_currentStepData$Basi58 = _currentStepData$Basi57.planDetail) === null || _currentStepData$Basi58 === void 0 ? void 0 : (_currentStepData$Basi59 = _currentStepData$Basi58.planInfoProperties) === null || _currentStepData$Basi59 === void 0 ? void 0 : _currentStepData$Basi59.AREA_TYPE) || t("CS_NA")
50340
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi52 = currentStepData.BasicDetails) === null || _currentStepData$Basi52 === void 0 ? void 0 : (_currentStepData$Basi53 = _currentStepData$Basi52.edcrDetails) === null || _currentStepData$Basi53 === void 0 ? void 0 : (_currentStepData$Basi54 = _currentStepData$Basi53.planDetail) === null || _currentStepData$Basi54 === void 0 ? void 0 : (_currentStepData$Basi55 = _currentStepData$Basi54.planInfoProperties) === null || _currentStepData$Basi55 === void 0 ? void 0 : _currentStepData$Basi55.AREA_TYPE) || t("CS_NA")
50174
50341
  }), /*#__PURE__*/React.createElement(Row, {
50175
50342
  className: "border-none",
50176
50343
  label: t("BPA_LAND_USE_ZONE"),
50177
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi60 = currentStepData.BasicDetails) === null || _currentStepData$Basi60 === void 0 ? void 0 : (_currentStepData$Basi61 = _currentStepData$Basi60.edcrDetails) === null || _currentStepData$Basi61 === void 0 ? void 0 : (_currentStepData$Basi62 = _currentStepData$Basi61.planDetail) === null || _currentStepData$Basi62 === void 0 ? void 0 : (_currentStepData$Basi63 = _currentStepData$Basi62.planInfoProperties) === null || _currentStepData$Basi63 === void 0 ? void 0 : _currentStepData$Basi63.LAND_USE_ZONE) || t("CS_NA")
50344
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi56 = currentStepData.BasicDetails) === null || _currentStepData$Basi56 === void 0 ? void 0 : (_currentStepData$Basi57 = _currentStepData$Basi56.edcrDetails) === null || _currentStepData$Basi57 === void 0 ? void 0 : (_currentStepData$Basi58 = _currentStepData$Basi57.planDetail) === null || _currentStepData$Basi58 === void 0 ? void 0 : (_currentStepData$Basi59 = _currentStepData$Basi58.planInfoProperties) === null || _currentStepData$Basi59 === void 0 ? void 0 : _currentStepData$Basi59.LAND_USE_ZONE) || t("CS_NA")
50178
50345
  }), /*#__PURE__*/React.createElement(Row, {
50179
50346
  className: "border-none",
50180
50347
  label: t("BPA_NUMBER_OF_FLOORS"),
50181
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi64 = currentStepData.BasicDetails) === null || _currentStepData$Basi64 === void 0 ? void 0 : (_currentStepData$Basi65 = _currentStepData$Basi64.edcrDetails) === null || _currentStepData$Basi65 === void 0 ? void 0 : (_currentStepData$Basi66 = _currentStepData$Basi65.planDetail) === null || _currentStepData$Basi66 === void 0 ? void 0 : (_currentStepData$Basi67 = _currentStepData$Basi66.planInfoProperties) === null || _currentStepData$Basi67 === void 0 ? void 0 : _currentStepData$Basi67.NUMBER_OF_FLOORS) || t("CS_NA")
50348
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi60 = currentStepData.BasicDetails) === null || _currentStepData$Basi60 === void 0 ? void 0 : (_currentStepData$Basi61 = _currentStepData$Basi60.edcrDetails) === null || _currentStepData$Basi61 === void 0 ? void 0 : (_currentStepData$Basi62 = _currentStepData$Basi61.planDetail) === null || _currentStepData$Basi62 === void 0 ? void 0 : (_currentStepData$Basi63 = _currentStepData$Basi62.planInfoProperties) === null || _currentStepData$Basi63 === void 0 ? void 0 : _currentStepData$Basi63.NUMBER_OF_FLOORS) || t("CS_NA")
50182
50349
  }), /*#__PURE__*/React.createElement(Row, {
50183
50350
  className: "border-none",
50184
50351
  label: t("BPA_ULB_TYPE"),
50185
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi68 = currentStepData.BasicDetails) === null || _currentStepData$Basi68 === void 0 ? void 0 : (_currentStepData$Basi69 = _currentStepData$Basi68.edcrDetails) === null || _currentStepData$Basi69 === void 0 ? void 0 : (_currentStepData$Basi70 = _currentStepData$Basi69.planDetail) === null || _currentStepData$Basi70 === void 0 ? void 0 : (_currentStepData$Basi71 = _currentStepData$Basi70.planInfoProperties) === null || _currentStepData$Basi71 === void 0 ? void 0 : _currentStepData$Basi71.ULB_TYPE) || t("CS_NA")
50186
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
50352
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi64 = currentStepData.BasicDetails) === null || _currentStepData$Basi64 === void 0 ? void 0 : (_currentStepData$Basi65 = _currentStepData$Basi64.edcrDetails) === null || _currentStepData$Basi65 === void 0 ? void 0 : (_currentStepData$Basi66 = _currentStepData$Basi65.planDetail) === null || _currentStepData$Basi66 === void 0 ? void 0 : (_currentStepData$Basi67 = _currentStepData$Basi66.planInfoProperties) === null || _currentStepData$Basi67 === void 0 ? void 0 : _currentStepData$Basi67.ULB_TYPE) || t("CS_NA")
50353
+ }), /*#__PURE__*/React.createElement(Row, {
50354
+ className: "border-none",
50355
+ label: t("BPA_MAUZA"),
50356
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi68 = currentStepData.BasicDetails) === null || _currentStepData$Basi68 === void 0 ? void 0 : (_currentStepData$Basi69 = _currentStepData$Basi68.edcrDetails) === null || _currentStepData$Basi69 === void 0 ? void 0 : (_currentStepData$Basi70 = _currentStepData$Basi69.planDetail) === null || _currentStepData$Basi70 === void 0 ? void 0 : (_currentStepData$Basi71 = _currentStepData$Basi70.planInfoProperties) === null || _currentStepData$Basi71 === void 0 ? void 0 : _currentStepData$Basi71.MAUZA) || t("CS_NA")
50357
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
50187
50358
  style: {
50188
- fontSize: "18px",
50359
+ fontSize: "20px",
50189
50360
  marginTop: "20px"
50190
50361
  }
50191
- }, t("BPA_PLOT_DIMENSIONS")), /*#__PURE__*/React.createElement(Row, {
50362
+ }, t("BPA_PLOT_DIMENSIONS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50192
50363
  className: "border-none",
50193
50364
  label: t("BPA_AVG_PLOT_DEPTH"),
50194
50365
  text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi72 = currentStepData.BasicDetails) === null || _currentStepData$Basi72 === void 0 ? void 0 : (_currentStepData$Basi73 = _currentStepData$Basi72.edcrDetails) === null || _currentStepData$Basi73 === void 0 ? void 0 : (_currentStepData$Basi74 = _currentStepData$Basi73.planDetail) === null || _currentStepData$Basi74 === void 0 ? void 0 : (_currentStepData$Basi75 = _currentStepData$Basi74.planInfoProperties) === null || _currentStepData$Basi75 === void 0 ? void 0 : _currentStepData$Basi75.AVG_PLOT_DEPTH
@@ -50196,12 +50367,12 @@ const SummaryDetails = ({
50196
50367
  className: "border-none",
50197
50368
  label: t("BPA_AVG_PLOT_WIDTH"),
50198
50369
  text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi76 = currentStepData.BasicDetails) === null || _currentStepData$Basi76 === void 0 ? void 0 : (_currentStepData$Basi77 = _currentStepData$Basi76.edcrDetails) === null || _currentStepData$Basi77 === void 0 ? void 0 : (_currentStepData$Basi78 = _currentStepData$Basi77.planDetail) === null || _currentStepData$Basi78 === void 0 ? void 0 : (_currentStepData$Basi79 = _currentStepData$Basi78.planInfoProperties) === null || _currentStepData$Basi79 === void 0 ? void 0 : _currentStepData$Basi79.AVG_PLOT_WIDTH
50199
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
50370
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
50200
50371
  style: {
50201
- fontSize: "18px",
50372
+ fontSize: "20px",
50202
50373
  marginTop: "20px"
50203
50374
  }
50204
- }, t("BPA_ROAD_DETAILS")), /*#__PURE__*/React.createElement(Row, {
50375
+ }, t("BPA_ROAD_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50205
50376
  className: "border-none",
50206
50377
  label: t("BPA_ROAD_TYPE"),
50207
50378
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi80 = currentStepData.BasicDetails) === null || _currentStepData$Basi80 === void 0 ? void 0 : (_currentStepData$Basi81 = _currentStepData$Basi80.edcrDetails) === null || _currentStepData$Basi81 === void 0 ? void 0 : (_currentStepData$Basi82 = _currentStepData$Basi81.planDetail) === null || _currentStepData$Basi82 === void 0 ? void 0 : (_currentStepData$Basi83 = _currentStepData$Basi82.planInfoProperties) === null || _currentStepData$Basi83 === void 0 ? void 0 : _currentStepData$Basi83.ROAD_TYPE) || t("CS_NA")
@@ -50209,12 +50380,12 @@ const SummaryDetails = ({
50209
50380
  className: "border-none",
50210
50381
  label: t("BPA_ROAD_WIDTH"),
50211
50382
  text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi84 = currentStepData.BasicDetails) === null || _currentStepData$Basi84 === void 0 ? void 0 : (_currentStepData$Basi85 = _currentStepData$Basi84.edcrDetails) === null || _currentStepData$Basi85 === void 0 ? void 0 : (_currentStepData$Basi86 = _currentStepData$Basi85.planDetail) === null || _currentStepData$Basi86 === void 0 ? void 0 : (_currentStepData$Basi87 = _currentStepData$Basi86.planInfoProperties) === null || _currentStepData$Basi87 === void 0 ? void 0 : _currentStepData$Basi87.ROAD_WIDTH
50212
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
50383
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
50213
50384
  style: {
50214
- fontSize: "18px",
50385
+ fontSize: "20px",
50215
50386
  marginTop: "20px"
50216
50387
  }
50217
- }, t("BPA_SUSTAINABILITY_FEATURES")), /*#__PURE__*/React.createElement(Row, {
50388
+ }, t("BPA_SUSTAINABILITY_FEATURES")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50218
50389
  className: "border-none",
50219
50390
  label: t("BPA_GREEN_BUILDINGS_SUSTAINABILITY"),
50220
50391
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi88 = currentStepData.BasicDetails) === null || _currentStepData$Basi88 === void 0 ? void 0 : (_currentStepData$Basi89 = _currentStepData$Basi88.edcrDetails) === null || _currentStepData$Basi89 === void 0 ? void 0 : (_currentStepData$Basi90 = _currentStepData$Basi89.planDetail) === null || _currentStepData$Basi90 === void 0 ? void 0 : (_currentStepData$Basi91 = _currentStepData$Basi90.planInfoProperties) === null || _currentStepData$Basi91 === void 0 ? void 0 : _currentStepData$Basi91.PROVISION_FOR_GREEN_BUILDINGS_AND_SUSTAINABILITY) || t("CS_NA")
@@ -50225,7 +50396,8 @@ const SummaryDetails = ({
50225
50396
  }
50226
50397
  }), /*#__PURE__*/React.createElement(CardSubHeader, {
50227
50398
  style: {
50228
- fontSize: "20px"
50399
+ fontSize: "20px",
50400
+ marginTop: "20px"
50229
50401
  }
50230
50402
  }, t("BPA_OCC_SUBOCC_HEADER")), currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi92 = currentStepData.BasicDetails) === null || _currentStepData$Basi92 === void 0 ? void 0 : (_currentStepData$Basi93 = _currentStepData$Basi92.edcrDetails) === null || _currentStepData$Basi93 === void 0 ? void 0 : (_currentStepData$Basi94 = _currentStepData$Basi93.planDetail) === null || _currentStepData$Basi94 === void 0 ? void 0 : (_currentStepData$Basi95 = _currentStepData$Basi94.blocks) === null || _currentStepData$Basi95 === void 0 ? void 0 : _currentStepData$Basi95.map((block, index) => {
50231
50403
  var _currentStepData$Basi96, _currentStepData$Basi97, _currentStepData$Basi98, _currentStepData$Basi99;
@@ -50243,8 +50415,8 @@ const SummaryDetails = ({
50243
50415
  } : {}
50244
50416
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
50245
50417
  style: {
50246
- marginTop: "15px",
50247
- fontSize: "18px"
50418
+ fontSize: "20px",
50419
+ marginTop: "20px"
50248
50420
  }
50249
50421
  }, t("BPA_BLOCK_SUBHEADER"), " ", index + 1), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50250
50422
  className: "border-none",
@@ -50281,19 +50453,17 @@ const SummaryDetails = ({
50281
50453
  }
50282
50454
  }), /*#__PURE__*/React.createElement(CardSubHeader, {
50283
50455
  style: {
50284
- fontSize: "20px"
50285
- }
50286
- }, t("BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, {
50287
- style: {
50288
- border: "none"
50456
+ fontSize: "20px",
50457
+ marginTop: "20px"
50289
50458
  }
50290
- }, /*#__PURE__*/React.createElement(Row, {
50459
+ }, t("BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50291
50460
  className: "border-none",
50292
50461
  label: t("BPA_APPLICATION_DEMOLITION_AREA_LABEL"),
50293
50462
  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")
50294
50463
  })), /*#__PURE__*/React.createElement(CardSubHeader, {
50295
50464
  style: {
50296
- fontSize: "20px"
50465
+ fontSize: "20px",
50466
+ marginTop: "20px"
50297
50467
  }
50298
50468
  }, t("BPA_APP_DETAILS_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50299
50469
  className: "border-none",
@@ -50316,12 +50486,17 @@ const SummaryDetails = ({
50316
50486
  border: "1px solid #f0f0f0",
50317
50487
  background: "#fff"
50318
50488
  }
50319
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50489
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50490
+ style: {
50491
+ fontSize: "20px",
50492
+ marginTop: "20px"
50493
+ }
50494
+ }, t("BPA_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50320
50495
  style: {
50321
50496
  border: "0.5px solid #eaeaea",
50322
50497
  margin: "0 0 16px 0"
50323
50498
  }
50324
- }), pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50499
+ }), /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50325
50500
  className: "customTable table-border-style",
50326
50501
  t: t,
50327
50502
  data: ecbcDocumentsData,
@@ -50342,12 +50517,17 @@ const SummaryDetails = ({
50342
50517
  border: "1px solid #f0f0f0",
50343
50518
  background: "#fff"
50344
50519
  }
50345
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_NEW_TRADE_DETAILS_HEADER_DETAILS")), /*#__PURE__*/React.createElement("hr", {
50520
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50521
+ style: {
50522
+ fontSize: "20px",
50523
+ marginTop: "20px"
50524
+ }
50525
+ }, t("BPA_NEW_TRADE_DETAILS_HEADER_DETAILS")), /*#__PURE__*/React.createElement("hr", {
50346
50526
  style: {
50347
50527
  border: "0.5px solid #eaeaea",
50348
50528
  margin: "0 0 16px 0"
50349
50529
  }
50350
- }), /*#__PURE__*/React.createElement(Row, {
50530
+ }), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50351
50531
  className: "border-none",
50352
50532
  label: t(`BPA_DETAILS_PIN_LABEL`),
50353
50533
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea78 = currentStepData.createdResponse) === null || _currentStepData$crea78 === void 0 ? void 0 : (_currentStepData$crea79 = _currentStepData$crea78.landInfo) === null || _currentStepData$crea79 === void 0 ? void 0 : (_currentStepData$crea80 = _currentStepData$crea79.address) === null || _currentStepData$crea80 === void 0 ? void 0 : _currentStepData$crea80.pincode) || t("CS_NA")
@@ -50368,12 +50548,17 @@ const SummaryDetails = ({
50368
50548
  border: "1px solid #f0f0f0",
50369
50549
  background: "#fff"
50370
50550
  }
50371
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_APPLICANT_DETAILS_HEADER")), /*#__PURE__*/React.createElement("hr", {
50551
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50552
+ style: {
50553
+ fontSize: "20px",
50554
+ marginTop: "20px"
50555
+ }
50556
+ }, t("BPA_APPLICANT_DETAILS_HEADER")), /*#__PURE__*/React.createElement("hr", {
50372
50557
  style: {
50373
50558
  border: "0.5px solid #eaeaea",
50374
50559
  margin: "0 0 16px 0"
50375
50560
  }
50376
- }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea85 = currentStepData.createdResponse) === null || _currentStepData$crea85 === void 0 ? void 0 : (_currentStepData$crea86 = _currentStepData$crea85.landInfo) === null || _currentStepData$crea86 === void 0 ? void 0 : _currentStepData$crea86.owners) && (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.owners) === null || _currentStepData$crea89 === void 0 ? void 0 : _currentStepData$crea89.length) > 0 && (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea90 = currentStepData.createdResponse) === null || _currentStepData$crea90 === void 0 ? void 0 : (_currentStepData$crea91 = _currentStepData$crea90.landInfo) === null || _currentStepData$crea91 === void 0 ? void 0 : (_currentStepData$crea92 = _currentStepData$crea91.owners) === null || _currentStepData$crea92 === void 0 ? void 0 : _currentStepData$crea92.map((ob, index) => {
50561
+ }), /*#__PURE__*/React.createElement(StatusTable, null, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea85 = currentStepData.createdResponse) === null || _currentStepData$crea85 === void 0 ? void 0 : (_currentStepData$crea86 = _currentStepData$crea85.landInfo) === null || _currentStepData$crea86 === void 0 ? void 0 : _currentStepData$crea86.owners) && (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.owners) === null || _currentStepData$crea89 === void 0 ? void 0 : _currentStepData$crea89.length) > 0 && (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea90 = currentStepData.createdResponse) === null || _currentStepData$crea90 === void 0 ? void 0 : (_currentStepData$crea91 = _currentStepData$crea90.landInfo) === null || _currentStepData$crea91 === void 0 ? void 0 : (_currentStepData$crea92 = _currentStepData$crea91.owners) === null || _currentStepData$crea92 === void 0 ? void 0 : _currentStepData$crea92.map((ob, index) => {
50377
50562
  var _currentStepData$crea93, _currentStepData$crea94, _currentStepData$crea95, _currentStepData$crea96, _ob$gender;
50378
50563
  return /*#__PURE__*/React.createElement("div", {
50379
50564
  key: index,
@@ -50387,7 +50572,12 @@ const SummaryDetails = ({
50387
50572
  maxWidth: "960px",
50388
50573
  minWidth: "280px"
50389
50574
  } : {}
50390
- }, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea95 = currentStepData.createdResponse) === null || _currentStepData$crea95 === void 0 ? void 0 : (_currentStepData$crea96 = _currentStepData$crea95.landInfo) === null || _currentStepData$crea96 === void 0 ? void 0 : _currentStepData$crea96.owners.length) > 1 && /*#__PURE__*/React.createElement(CardSubHeader, null, t("COMMON_OWNER"), " ", index + 1), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50575
+ }, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea95 = currentStepData.createdResponse) === null || _currentStepData$crea95 === void 0 ? void 0 : (_currentStepData$crea96 = _currentStepData$crea95.landInfo) === null || _currentStepData$crea96 === void 0 ? void 0 : _currentStepData$crea96.owners.length) > 1 && /*#__PURE__*/React.createElement(CardSubHeader, {
50576
+ style: {
50577
+ fontSize: "20px",
50578
+ marginTop: "20px"
50579
+ }
50580
+ }, t("COMMON_OWNER"), " ", index + 1), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50391
50581
  className: "border-none",
50392
50582
  label: t(`CORE_COMMON_NAME`),
50393
50583
  text: (ob === null || ob === void 0 ? void 0 : ob.name) || "N/A"
@@ -50408,12 +50598,17 @@ const SummaryDetails = ({
50408
50598
  label: t(`BPA_IS_PRIMARY_OWNER_LABEL`),
50409
50599
  text: `${(ob === null || ob === void 0 ? void 0 : ob.isPrimaryOwner) === true ? "Yes" : "No"}`
50410
50600
  })));
50411
- }))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_OWNER_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50601
+ }))), /*#__PURE__*/React.createElement(CardSubHeader, {
50602
+ style: {
50603
+ fontSize: "20px",
50604
+ marginTop: "20px"
50605
+ }
50606
+ }, t("BPA_OWNER_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50412
50607
  style: {
50413
50608
  border: "0.5px solid #eaeaea",
50414
50609
  margin: "0 0 16px 0"
50415
50610
  }
50416
- }), pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50611
+ }), /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50417
50612
  className: "customTable table-border-style",
50418
50613
  t: t,
50419
50614
  data: ownerDocumentsData,
@@ -50434,12 +50629,17 @@ const SummaryDetails = ({
50434
50629
  border: "1px solid #f0f0f0",
50435
50630
  background: "#fff"
50436
50631
  }
50437
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_ADDITIONAL_BUILDING_DETAILS")), /*#__PURE__*/React.createElement("hr", {
50632
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50633
+ style: {
50634
+ fontSize: "20px",
50635
+ marginTop: "20px"
50636
+ }
50637
+ }, t("BPA_ADDITIONAL_BUILDING_DETAILS")), /*#__PURE__*/React.createElement("hr", {
50438
50638
  style: {
50439
50639
  border: "0.5px solid #eaeaea",
50440
50640
  margin: "0 0 16px 0"
50441
50641
  }
50442
- }), /*#__PURE__*/React.createElement(Row, {
50642
+ }), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
50443
50643
  className: "border-none",
50444
50644
  label: t(`BPA_APPROVED_COLONY_LABEL`),
50445
50645
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea97 = currentStepData.createdResponse) === null || _currentStepData$crea97 === void 0 ? void 0 : (_currentStepData$crea98 = _currentStepData$crea97.additionalDetails) === null || _currentStepData$crea98 === void 0 ? void 0 : _currentStepData$crea98.approvedColony) || t("CS_NA")
@@ -50500,12 +50700,17 @@ const SummaryDetails = ({
50500
50700
  border: "1px solid #f0f0f0",
50501
50701
  background: "#fff"
50502
50702
  }
50503
- }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_DOCUMENT_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50703
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
50704
+ style: {
50705
+ fontSize: "20px",
50706
+ marginTop: "20px"
50707
+ }
50708
+ }, t("BPA_DOCUMENT_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
50504
50709
  style: {
50505
50710
  border: "0.5px solid #eaeaea",
50506
50711
  margin: "0 0 16px 0"
50507
50712
  }
50508
- }), pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50713
+ }), /*#__PURE__*/React.createElement(StatusTable, null, pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
50509
50714
  className: "customTable table-border-style",
50510
50715
  t: t,
50511
50716
  data: documentsData,
@@ -50540,44 +50745,12 @@ const SummaryDetails = ({
50540
50745
  border: "1px solid #f0f0f0",
50541
50746
  background: "#fff"
50542
50747
  }
50543
- }, ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea123 = currentStepData.createdResponse) === null || _currentStepData$crea123 === void 0 ? void 0 : _currentStepData$crea123.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea124 = currentStepData.createdResponse) === null || _currentStepData$crea124 === void 0 ? void 0 : _currentStepData$crea124.status) === "BLOCKED") && /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_Profesion_Consent_Form")), ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea125 = currentStepData.createdResponse) === null || _currentStepData$crea125 === void 0 ? void 0 : _currentStepData$crea125.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea126 = currentStepData.createdResponse) === null || _currentStepData$crea126 === void 0 ? void 0 : _currentStepData$crea126.status) === "BLOCKED") && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("br", null), showMobileInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_ARCHITECT_MOBILE_NUMBER")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
50544
- t: t,
50545
- type: "tel",
50546
- isMandatory: true,
50547
- optionKey: "i18nKey",
50548
- disable: true,
50549
- name: "mobileNumber",
50550
- value: mobileNumber,
50551
- onChange: handleMobileNumberChange
50552
- }, {
50553
- required: true,
50554
- pattern: "[0-9]{10}",
50555
- type: "tel",
50556
- title: t("CORE_COMMON_APPLICANT_MOBILE_NUMBER_INVALID")
50557
- })), getOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(LinkButton, {
50558
- style: {
50559
- display: "inline",
50560
- background: "#fff"
50561
- },
50562
- label: t("BPA_GET_OTP"),
50563
- onClick: handleGetOTPClick,
50564
- disabled: !isValidMobileNumber
50565
- })), /*#__PURE__*/React.createElement("br", null), showOTPInput && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, t("BPA_OTP")), /*#__PURE__*/React.createElement(OTPInput, {
50566
- length: 6,
50567
- onChange: value => setOTP(value),
50568
- value: otp
50569
- }), setOtpLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(SubmitBar, {
50570
- label: t("VERIFY_OTP"),
50571
- onSubmit: handleVerifyOTPClick
50572
- }), otpError && /*#__PURE__*/React.createElement(CardLabel, {
50573
- style: {
50574
- color: "red"
50575
- }
50576
- }, t(otpError)), otpSuccess && /*#__PURE__*/React.createElement(CardLabel, {
50748
+ }, ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea123 = currentStepData.createdResponse) === null || _currentStepData$crea123 === void 0 ? void 0 : _currentStepData$crea123.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea124 = currentStepData.createdResponse) === null || _currentStepData$crea124 === void 0 ? void 0 : _currentStepData$crea124.status) === "BLOCKED") && /*#__PURE__*/React.createElement(CardSubHeader, {
50577
50749
  style: {
50578
- color: "green"
50750
+ fontSize: "20px",
50751
+ marginTop: "20px"
50579
50752
  }
50580
- }, t(otpSuccess)))), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
50753
+ }, t("BPA_Profesion_Consent_Form")), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
50581
50754
  label: checkLabels(),
50582
50755
  onChange: setdeclarationhandler,
50583
50756
  styles: {
@@ -50589,7 +50762,8 @@ const SummaryDetails = ({
50589
50762
  setShowTermsPopup: setShowTermsPopup,
50590
50763
  otpVerifiedTimestamp: otpVerifiedTimestamp,
50591
50764
  currentStepData: currentStepData,
50592
- formData: formData
50765
+ formData: formData,
50766
+ onSelect: onSelect
50593
50767
  })), /*#__PURE__*/React.createElement("hr", {
50594
50768
  style: {
50595
50769
  border: "0.5px solid #eaeaea",
@@ -50676,8 +50850,7 @@ const NewSelfCertificationStepFormEight = ({
50676
50850
  });
50677
50851
  function goNext(data) {
50678
50852
  console.log("NewSelfCertificationStepFormFour", data);
50679
- dispatch(UPDATE_OBPS_FORM(config.key, data));
50680
- onGoNext();
50853
+ dispatch(UPDATE_OBPS_FORM("Timestamp", data));
50681
50854
  }
50682
50855
  function onGoBack(data) {
50683
50856
  onBackClick(config.key, data);