@mseva/digit-ui-module-rentandlease 1.0.9 → 1.0.11

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.
@@ -6189,6 +6189,7 @@ const downloadAndPrintReciept = async (bussinessService, consumerCode, mode) =>
6189
6189
  consumerCodes: consumerCode
6190
6190
  });
6191
6191
  const payments = data === null || data === void 0 ? void 0 : data.Payments[0];
6192
+ console.log("payments", payments);
6192
6193
  let response = null;
6193
6194
  if (payments !== null && payments !== void 0 && payments.fileStoreId) {
6194
6195
  response = {
@@ -9238,6 +9239,7 @@ const RALApplicationDetails = () => {
9238
9239
  } = useParams();
9239
9240
  const [loader, setLoader] = useState(false);
9240
9241
  const [applicationData, setApplicationData] = useState();
9242
+ console.log("applicationData", applicationData);
9241
9243
  const fetchApplications = async filters => {
9242
9244
  setLoader(true);
9243
9245
  try {
@@ -9246,8 +9248,11 @@ const RALApplicationDetails = () => {
9246
9248
  tenantId,
9247
9249
  filters
9248
9250
  });
9251
+ console.log("search ", responseData);
9249
9252
  setApplicationData(responseData === null || responseData === void 0 ? void 0 : (_responseData$Allotme = responseData.AllotmentDetails) === null || _responseData$Allotme === void 0 ? void 0 : _responseData$Allotme[0]);
9250
- } catch (error) {} finally {
9253
+ } catch (error) {
9254
+ console.log("error", error);
9255
+ } finally {
9251
9256
  setLoader(false);
9252
9257
  }
9253
9258
  };
@@ -9265,6 +9270,7 @@ const RALApplicationDetails = () => {
9265
9270
  moduleCode: "RENT_N_LEASE_NEW",
9266
9271
  role: "EMPLOYEE"
9267
9272
  });
9273
+ console.log("workflowDetails", workflowDetails);
9268
9274
  const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
9269
9275
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
9270
9276
  className: "cardHeaderWithOptions",
@@ -9283,11 +9289,11 @@ const RALApplicationDetails = () => {
9283
9289
  }, t("RENT_LEASE_OWNER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, applicationData !== null && applicationData !== void 0 && (_applicationData$Owne = applicationData.OwnerInfo) !== null && _applicationData$Owne !== void 0 && _applicationData$Owne.length ? applicationData.OwnerInfo.map((owner, index) => {
9284
9290
  var _owner$correspondence, _owner$permanentAddre;
9285
9291
  const multipleOwners = applicationData.OwnerInfo.length > 1;
9286
- const ownerLabelPrefix = multipleOwners ? `${t("RAL_OWNER")} ${index + 1}` : t("RAL_OWNER");
9292
+ const ownerLabelPrefix = multipleOwners ? `${t("OWNER")} ${index + 1}` : t("OWNER");
9287
9293
  return /*#__PURE__*/React.createElement(React.Fragment, {
9288
9294
  key: owner.ownerId || index
9289
9295
  }, /*#__PURE__*/React.createElement(Row, {
9290
- label: `${ownerLabelPrefix} ${t("PT_OWNERSHIP_INFO_NAME")}`,
9296
+ label: `${ownerLabelPrefix} ${t("ADS_APPLICANT_NAME")}`,
9291
9297
  text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
9292
9298
  }), /*#__PURE__*/React.createElement(Row, {
9293
9299
  label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
@@ -9316,7 +9322,7 @@ const RALApplicationDetails = () => {
9316
9322
  label: t("WS_PROPERTY_ADDRESS_LABEL"),
9317
9323
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
9318
9324
  }), /*#__PURE__*/React.createElement(Row, {
9319
- label: t("RAL_PROPERTY_AMOUNT"),
9325
+ label: t("BASE_RENT"),
9320
9326
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
9321
9327
  }), /*#__PURE__*/React.createElement(Row, {
9322
9328
  label: t("SECURITY_DEPOSIT"),
@@ -9325,7 +9331,7 @@ const RALApplicationDetails = () => {
9325
9331
  label: t("PROPERTY_SIZE"),
9326
9332
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
9327
9333
  }), /*#__PURE__*/React.createElement(Row, {
9328
- label: t("RENT_LEASE_LOCATION_TYPE"),
9334
+ label: t("LOCATION_TYPE"),
9329
9335
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
9330
9336
  })), /*#__PURE__*/React.createElement(CardSubHeader, {
9331
9337
  style: {
@@ -10823,6 +10829,7 @@ const SearchApplication = ({
10823
10829
  } = useForm({
10824
10830
  defaultValues: searchParams
10825
10831
  });
10832
+ console.log('searchFields', searchFields);
10826
10833
  const mobileView = innerWidth <= 640;
10827
10834
  const onSubmitInput = data => {
10828
10835
  if (!data.mobileNumber) {
@@ -10955,6 +10962,8 @@ const DesktopInbox = ({
10955
10962
  data,
10956
10963
  useNewInboxAPI
10957
10964
  } = props;
10965
+ console.log("data", data);
10966
+ console.log("props", props);
10958
10967
  const {
10959
10968
  t
10960
10969
  } = useTranslation();
@@ -10965,6 +10974,8 @@ const DesktopInbox = ({
10965
10974
  const [EmptyInboxComp, setEmptyInboxComp] = useState(() => {
10966
10975
  var _Digit$ComponentRegis2;
10967
10976
  const com = (_Digit$ComponentRegis2 = Digit.ComponentRegistryService) === null || _Digit$ComponentRegis2 === void 0 ? void 0 : _Digit$ComponentRegis2.getComponent(props.EmptyResultInboxComp);
10977
+ console.log("DesktopInbox - EmptyResultInboxComp prop:", props.EmptyResultInboxComp);
10978
+ console.log("DesktopInbox - Resolved Component:", com);
10968
10979
  return com;
10969
10980
  });
10970
10981
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
@@ -10979,6 +10990,7 @@ const DesktopInbox = ({
10979
10990
  row
10980
10991
  }) => {
10981
10992
  var _row$original, _row$original$searchD, _row$original2, _row$original2$search, _row$original3, _row$original3$search;
10993
+ console.log("row", row);
10982
10994
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
10983
10995
  className: "link"
10984
10996
  }, /*#__PURE__*/React.createElement(Link, {
@@ -11516,6 +11528,7 @@ const Inbox = ({
11516
11528
  refetchOnMount: "always"
11517
11529
  }
11518
11530
  });
11531
+ console.log("dataXXXXXX", data);
11519
11532
  useEffect(() => {
11520
11533
  var _data$challans2;
11521
11534
  async function fetchBills() {
@@ -11786,6 +11799,8 @@ const RALModal = ({
11786
11799
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
11787
11800
  const [formErrors, setFormErrors] = useState({});
11788
11801
  const allRolesNew = [...new Set(getEmployees === null || getEmployees === void 0 ? void 0 : getEmployees.flatMap(a => a.roles))];
11802
+ console.log("action123", action);
11803
+ console.log("allRolesNew", allRolesNew);
11789
11804
  const {
11790
11805
  data: approverData,
11791
11806
  isLoading: PTALoading
@@ -11962,6 +11977,7 @@ const RALApplicationDetails$1 = () => {
11962
11977
  const [error, setError] = useState(null);
11963
11978
  const history = useHistory();
11964
11979
  const [getWorkflowService, setWorkflowService] = useState([]);
11980
+ console.log("applicationData", applicationData);
11965
11981
  const isCitizen = window.location.href.includes("citizen");
11966
11982
  const fetchApplications = async filters => {
11967
11983
  setLoader(true);
@@ -11971,6 +11987,7 @@ const RALApplicationDetails$1 = () => {
11971
11987
  tenantId,
11972
11988
  filters
11973
11989
  });
11990
+ console.log("search ", responseData);
11974
11991
  setApplicationData(responseData === null || responseData === void 0 ? void 0 : (_responseData$Allotme = responseData.AllotmentDetails) === null || _responseData$Allotme === void 0 ? void 0 : _responseData$Allotme[0]);
11975
11992
  } catch (error) {
11976
11993
  console.log("error", error);
@@ -11992,6 +12009,7 @@ const RALApplicationDetails$1 = () => {
11992
12009
  moduleCode: "RENT_N_LEASE_NEW",
11993
12010
  role: "EMPLOYEE"
11994
12011
  });
12012
+ console.log("workflowDetails", workflowDetails);
11995
12013
  const propertyDetails = applicationData !== null && applicationData !== void 0 && applicationData.additionalDetails ? applicationData.additionalDetails : {};
11996
12014
  const showNextActions = nextActions => {
11997
12015
  var _nextAction;
@@ -12050,7 +12068,6 @@ const RALApplicationDetails$1 = () => {
12050
12068
  return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
12051
12069
  })) || !e.roles;
12052
12070
  }));
12053
- console.log('actions', actions);
12054
12071
  const closeToast = () => {
12055
12072
  setShowToast(null);
12056
12073
  };
@@ -12064,11 +12081,14 @@ const RALApplicationDetails$1 = () => {
12064
12081
  const payload = {
12065
12082
  action: [action]
12066
12083
  };
12084
+ console.log("action", action);
12067
12085
  const filterNexState = (_ref = (action === null || action === void 0 ? void 0 : action.actions) ?? (action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions)) === null || _ref === void 0 ? void 0 : _ref.filter(item => item.action === (action === null || action === void 0 ? void 0 : action.action));
12086
+ console.log("filterNexState", filterNexState);
12068
12087
  const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
12069
12088
  var _filterNexState$;
12070
12089
  return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
12071
12090
  });
12091
+ console.log("filterRoles", filterRoles);
12072
12092
  setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
12073
12093
  if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
12074
12094
  submitAction(payload);
@@ -12101,6 +12121,7 @@ const RALApplicationDetails$1 = () => {
12101
12121
  var _data$Licenses;
12102
12122
  filtData = data === null || data === void 0 ? void 0 : (_data$Licenses = data.Licenses) === null || _data$Licenses === void 0 ? void 0 : _data$Licenses[0];
12103
12123
  }
12124
+ console.log("filtData", filtData);
12104
12125
  updatedApplicant.workflow = {
12105
12126
  action: filtData.action,
12106
12127
  assignes: filtData.action === "SENDBACKTOCITIZEN" ? [applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdBy] : (_filtData = filtData) === null || _filtData === void 0 ? void 0 : _filtData.assignee,
@@ -12169,11 +12190,11 @@ const RALApplicationDetails$1 = () => {
12169
12190
  }, t("RENT_LEASE_OWNER_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, applicationData !== null && applicationData !== void 0 && (_applicationData$Owne = applicationData.OwnerInfo) !== null && _applicationData$Owne !== void 0 && _applicationData$Owne.length ? applicationData.OwnerInfo.map((owner, index) => {
12170
12191
  var _owner$correspondence, _owner$permanentAddre;
12171
12192
  const multipleOwners = applicationData.OwnerInfo.length > 1;
12172
- const ownerLabelPrefix = multipleOwners ? `${t("RAL_OWNER")} ${index + 1}` : t("RAL_OWNER");
12193
+ const ownerLabelPrefix = multipleOwners ? `${t("OWNER")} ${index + 1}` : t("OWNER");
12173
12194
  return /*#__PURE__*/React.createElement(React.Fragment, {
12174
12195
  key: owner.ownerId || index
12175
12196
  }, /*#__PURE__*/React.createElement(Row, {
12176
- label: `${ownerLabelPrefix} ${t("PT_OWNERSHIP_INFO_NAME")}`,
12197
+ label: `${ownerLabelPrefix} ${t("ADS_APPLICANT_NAME")}`,
12177
12198
  text: (owner === null || owner === void 0 ? void 0 : owner.name) || t("CS_NA")
12178
12199
  }), /*#__PURE__*/React.createElement(Row, {
12179
12200
  label: `${ownerLabelPrefix} ${t("CORE_COMMON_PROFILE_EMAIL")}`,
@@ -12202,7 +12223,7 @@ const RALApplicationDetails$1 = () => {
12202
12223
  label: t("WS_PROPERTY_ADDRESS_LABEL"),
12203
12224
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.address) || t("CS_NA")
12204
12225
  }), /*#__PURE__*/React.createElement(Row, {
12205
- label: t("RAL_PROPERTY_AMOUNT"),
12226
+ label: t("BASE_RENT"),
12206
12227
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
12207
12228
  }), /*#__PURE__*/React.createElement(Row, {
12208
12229
  label: t("SECURITY_DEPOSIT"),
@@ -12211,7 +12232,7 @@ const RALApplicationDetails$1 = () => {
12211
12232
  label: t("PROPERTY_SIZE"),
12212
12233
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.propertySizeOrArea) || t("CS_NA")
12213
12234
  }), /*#__PURE__*/React.createElement(Row, {
12214
- label: t("RENT_LEASE_LOCATION_TYPE"),
12235
+ label: t("LOCATION_TYPE"),
12215
12236
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.locationType) || t("CS_NA")
12216
12237
  })), /*#__PURE__*/React.createElement(CardSubHeader, {
12217
12238
  style: {
@@ -12284,6 +12305,7 @@ const EmployeeApp = ({
12284
12305
  t
12285
12306
  } = useTranslation();
12286
12307
  const location = useLocation();
12308
+ console.log("her here here here");
12287
12309
  const inboxInitialState = {
12288
12310
  searchParams: {
12289
12311
  uuid: {
@@ -12583,6 +12605,7 @@ const NewChallan = ({
12583
12605
  if (url.includes("modify-challan")) {
12584
12606
  isEdit = true;
12585
12607
  }
12608
+ console.log("here", ChallanData);
12586
12609
  const [canSubmit, setSubmitValve] = useState(false);
12587
12610
  const defaultValues = {};
12588
12611
  const history = useHistory();
@@ -12608,6 +12631,7 @@ const NewChallan = ({
12608
12631
  lastModTime
12609
12632
  }) : {};
12610
12633
  useEffect(() => {
12634
+ console.log("isEdit", isEdit, fetchBillData);
12611
12635
  if (isEdit) {
12612
12636
  let formdata = getformDataforEdit(ChallanData);
12613
12637
  setdefaultUpdatedValue(true);
@@ -12959,6 +12983,7 @@ const SearchReceipt = () => {
12959
12983
  var _data$businessService;
12960
12984
  setIsLoading(true);
12961
12985
  setHasSearched(true);
12986
+ console.log("data is here==========", data);
12962
12987
  const businessService = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessServices) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
12963
12988
  const filteredData = Object.entries(data).reduce((acc, [key, value]) => {
12964
12989
  if (value !== null && value !== undefined && !(typeof value === "string" && value.trim() === "") && !(Array.isArray(value) && value.length === 0)) {
@@ -12968,16 +12993,19 @@ const SearchReceipt = () => {
12968
12993
  }, {});
12969
12994
  try {
12970
12995
  const response = await Digit.ChallanGenerationService.recieptSearch(tenantId, businessService, filteredData);
12996
+ console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.Payments);
12971
12997
  setTableData(response === null || response === void 0 ? void 0 : response.Payments);
12972
12998
  setIsLoading(false);
12973
12999
  } catch (error) {
12974
13000
  setIsLoading(false);
13001
+ console.log("error", error);
12975
13002
  }
12976
13003
  };
12977
13004
  const closeToast = () => {
12978
13005
  setShowToast(null);
12979
13006
  };
12980
13007
  const downloadPDF = async rowData => {
13008
+ console.log("generating pdf here==========");
12981
13009
  setIsLoading(true);
12982
13010
  try {
12983
13011
  var _response$filestoreId;
@@ -12988,16 +13016,20 @@ const SearchReceipt = () => {
12988
13016
  }, "consolidatedreceiptold");
12989
13017
  setIsLoading(false);
12990
13018
  fileFetch(response === null || response === void 0 ? void 0 : (_response$filestoreId = response.filestoreIds) === null || _response$filestoreId === void 0 ? void 0 : _response$filestoreId[0]);
13019
+ console.log("✅ generating pdf response", response);
12991
13020
  } catch (error) {
12992
13021
  setIsLoading(false);
13022
+ console.log("error", error);
12993
13023
  }
12994
13024
  };
12995
13025
  const fileFetch = async fileStoreId => {
12996
13026
  setIsLoading(true);
13027
+ console.log("fetching file here==========");
12997
13028
  try {
12998
13029
  var _response$fileStoreId, _response$fileStoreId2;
12999
13030
  const response = await Digit.ChallanGenerationService.file_fetch(tenantId, fileStoreId);
13000
13031
  setIsLoading(false);
13032
+ console.log("✅ fetching file response", response);
13001
13033
  const fileUrl = (response === null || response === void 0 ? void 0 : response[fileStoreId]) || (response === null || response === void 0 ? void 0 : (_response$fileStoreId = response.fileStoreIds) === null || _response$fileStoreId === void 0 ? void 0 : (_response$fileStoreId2 = _response$fileStoreId[0]) === null || _response$fileStoreId2 === void 0 ? void 0 : _response$fileStoreId2.url);
13002
13034
  if (fileUrl) {
13003
13035
  window.open(fileUrl, "_blank");
@@ -13246,6 +13278,7 @@ const SearchReceipt = () => {
13246
13278
  };
13247
13279
 
13248
13280
  const SearchChallan$2 = props => {
13281
+ console.log("props", props);
13249
13282
  const {
13250
13283
  t
13251
13284
  } = useTranslation();
@@ -13292,6 +13325,7 @@ const SearchChallan$2 = props => {
13292
13325
  });
13293
13326
  return;
13294
13327
  }
13328
+ console.log("data is here==========", data);
13295
13329
  setIsLoading(true);
13296
13330
  const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businessService = data.businessService) === null || _data$businessService === void 0 ? void 0 : _data$businessService.code;
13297
13331
  const filters = Object.entries(data).reduce((acc, [key, value]) => {
@@ -13300,15 +13334,18 @@ const SearchChallan$2 = props => {
13300
13334
  }
13301
13335
  return acc;
13302
13336
  }, {});
13337
+ console.log("filters", filters);
13303
13338
  try {
13304
13339
  const response = await Digit.ChallanGenerationService.search({
13305
13340
  tenantId,
13306
13341
  filters
13307
13342
  });
13343
+ console.log("✅ recieptSearch response", response === null || response === void 0 ? void 0 : response.challans);
13308
13344
  setTableData(response === null || response === void 0 ? void 0 : response.challans);
13309
13345
  setIsLoading(false);
13310
13346
  } catch (error) {
13311
13347
  setIsLoading(false);
13348
+ console.log("error", error);
13312
13349
  }
13313
13350
  };
13314
13351
  const closeToast = () => {
@@ -13562,6 +13599,7 @@ const SearchBill = () => {
13562
13599
  var _data$businesService;
13563
13600
  setIsLoading(true);
13564
13601
  setHasSearched(true);
13602
+ console.log("data is here==========", data);
13565
13603
  const businessServiceData = data === null || data === void 0 ? void 0 : (_data$businesService = data.businesService) === null || _data$businesService === void 0 ? void 0 : _data$businesService.code;
13566
13604
  delete data["ULB"];
13567
13605
  data["url"] = "egov-searcher/bill-genie/mcollectbills/_get";
@@ -13571,12 +13609,15 @@ const SearchBill = () => {
13571
13609
  }
13572
13610
  return acc;
13573
13611
  }, {});
13612
+ console.log("filteredData", filteredData);
13574
13613
  try {
13575
13614
  const response = await Digit.ChallanGenerationService.search_bill(tenantId, filteredData);
13615
+ console.log("response", response === null || response === void 0 ? void 0 : response.Bills);
13576
13616
  setTableData(response === null || response === void 0 ? void 0 : response.Bills);
13577
13617
  setIsLoading(false);
13578
13618
  } catch (error) {
13579
13619
  setIsLoading(false);
13620
+ console.log("error", error);
13580
13621
  }
13581
13622
  };
13582
13623
  const closeToast = () => {
@@ -14759,6 +14800,7 @@ const RentAndLeasePropertyDetails = ({
14759
14800
  const {
14760
14801
  data: mdmsPropertyData
14761
14802
  } = Digit.Hooks.rentandlease.useRALPropertyMDMS(tenantId);
14803
+ console.log("mdmsPropertyData", mdmsPropertyData);
14762
14804
  const {
14763
14805
  triggerLoader
14764
14806
  } = config === null || config === void 0 ? void 0 : config.currStepConfig[0];
@@ -14823,6 +14865,7 @@ const RentAndLeasePropertyDetails = ({
14823
14865
  const selectedPropertySpecific = watch("propertySpecific");
14824
14866
  const selectedLocationType = watch("locationType");
14825
14867
  const [filteredProperties, setFilteredProperties] = useState([]);
14868
+ console.log("filteredProperties", filteredProperties);
14826
14869
  useEffect(() => {
14827
14870
  if (mdmsPropertyData) {
14828
14871
  let properties = mdmsPropertyData;
@@ -15258,6 +15301,7 @@ const RentAndLeaseCitizenDetails = ({
15258
15301
  code: "MULTIPLE",
15259
15302
  name: t("RAL_MULTIPLE")
15260
15303
  }];
15304
+ console.log("currentStepDataInSec", currentStepData);
15261
15305
  const {
15262
15306
  control,
15263
15307
  handleSubmit,
@@ -15325,6 +15369,7 @@ const RentAndLeaseCitizenDetails = ({
15325
15369
  };
15326
15370
  const onSubmit = async data => {
15327
15371
  var _currentStepData$Crea, _currentStepData$Crea2;
15372
+ console.log("dataInSubmit", data);
15328
15373
  if (validateStep) {
15329
15374
  var _Object$keys;
15330
15375
  const validationErrors = validateStep(data);
@@ -15346,6 +15391,7 @@ const RentAndLeaseCitizenDetails = ({
15346
15391
  goNext(data);
15347
15392
  return;
15348
15393
  }
15394
+ console.log('payload', payload);
15349
15395
  triggerLoader(true);
15350
15396
  try {
15351
15397
  var _response$responseInf;
@@ -15354,6 +15400,7 @@ const RentAndLeaseCitizenDetails = ({
15354
15400
  }, tenantId);
15355
15401
  const status = response === null || response === void 0 ? void 0 : (_response$responseInf = response.responseInfo) === null || _response$responseInf === void 0 ? void 0 : _response$responseInf.status;
15356
15402
  const isSuccess = typeof status === "string" && status.toLowerCase() === "successful";
15403
+ console.log("isSuccess", isSuccess);
15357
15404
  if (isSuccess) {
15358
15405
  const appData = Array.isArray(response === null || response === void 0 ? void 0 : response.allotment) ? response.allotment[0] : response === null || response === void 0 ? void 0 : response.allotment;
15359
15406
  dispatch(UPDATE_RENTANDLEASE_NEW_APPLICATION_FORM("CreatedResponse", appData || response));
@@ -15391,6 +15438,7 @@ const RentAndLeaseCitizenDetails = ({
15391
15438
  userType: "CITIZEN"
15392
15439
  }, {});
15393
15440
  const user = (userData === null || userData === void 0 ? void 0 : (_userData$user = userData.user) === null || _userData$user === void 0 ? void 0 : _userData$user[0]) || {};
15441
+ console.log("user", user);
15394
15442
  setValue(`applicants.${index}.name`, user.name || "", {
15395
15443
  shouldValidate: true
15396
15444
  });
@@ -15452,6 +15500,7 @@ const RentAndLeaseCitizenDetails = ({
15452
15500
  useEffect(() => {
15453
15501
  var _currentStepData$appl, _currentStepData$appl2;
15454
15502
  const applicantsData = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicantDetails) === null || _currentStepData$appl === void 0 ? void 0 : _currentStepData$appl.applicants) || [];
15503
+ console.log("applicantsData", applicantsData);
15455
15504
  const ownershipTypeData = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl2 = currentStepData.applicantDetails) === null || _currentStepData$appl2 === void 0 ? void 0 : _currentStepData$appl2.ownershipType) || "";
15456
15505
  if (Array.isArray(applicantsData) && applicantsData.length > 0) {
15457
15506
  reset({
@@ -15758,7 +15807,7 @@ const NewRentAndLeaseStepFormThree = ({
15758
15807
  function goNext(finaldata) {
15759
15808
  const missingFields = validation(finaldata);
15760
15809
  if (missingFields.length > 0) {
15761
- triggerToast(`${t(missingFields[0].replace(/\./g, "_").toUpperCase())} is required`, true);
15810
+ triggerToast(`${t("RAL_UPLOAD_MISSING_DOC_MSG")} ${t(missingFields[0].replace(/\./g, "_").toUpperCase())}`, true);
15762
15811
  return;
15763
15812
  }
15764
15813
  onGoNext();
@@ -15799,7 +15848,7 @@ const NewRentAndLeaseStepFormFour = ({
15799
15848
  onBackClick,
15800
15849
  t: tProp
15801
15850
  }) => {
15802
- var _currentStepData$Crea, _currentStepData$Crea2, _currentStepData$docu, _currentStepData$docu2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
15851
+ var _currentStepData$Crea, _currentStepData$Crea2, _currentStepData$docu, _currentStepData$docu2, _currentStepData$Crea3, _currentStepData$Crea4, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5;
15803
15852
  const dispatch = useDispatch();
15804
15853
  const {
15805
15854
  t: tHook
@@ -15815,9 +15864,11 @@ const NewRentAndLeaseStepFormFour = ({
15815
15864
  return ((_state$rentAndLease = state.rentAndLease) === null || _state$rentAndLease === void 0 ? void 0 : (_state$rentAndLease$R = _state$rentAndLease.RentAndLeaseNewApplicationFormReducer) === null || _state$rentAndLease$R === void 0 ? void 0 : _state$rentAndLease$R.formData) || {};
15816
15865
  });
15817
15866
  const applicationNumber = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Crea = currentStepData.CreatedResponse) === null || _currentStepData$Crea === void 0 ? void 0 : (_currentStepData$Crea2 = _currentStepData$Crea.AllotmentDetails) === null || _currentStepData$Crea2 === void 0 ? void 0 : _currentStepData$Crea2.applicationNumber;
15867
+ console.log("currentStepDataINFourth", currentStepData);
15818
15868
  const updatedApplicantDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.applicantDetails) || {};
15819
15869
  const updatedPropertyDetails = (currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.propertyDetails) || {};
15820
15870
  const updatedDocuments = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$docu = currentStepData.documents) === null || _currentStepData$docu === void 0 ? void 0 : (_currentStepData$docu2 = _currentStepData$docu.documents) === null || _currentStepData$docu2 === void 0 ? void 0 : _currentStepData$docu2.documents) || [];
15871
+ console.log("updatedDocuments", updatedDocuments);
15821
15872
  const onGoToRentAndLease = () => {
15822
15873
  history.push(`/digit-ui/employee/rentandlease/inbox`);
15823
15874
  };
@@ -15851,6 +15902,7 @@ const NewRentAndLeaseStepFormFour = ({
15851
15902
  }
15852
15903
  try {
15853
15904
  const res = await onSubmit(currentStepData, selectedAction);
15905
+ console.log("res", res);
15854
15906
  if (res !== null && res !== void 0 && res.isSuccess) {
15855
15907
  var _res$response, _res$response$Allotme, _res$response$Allotme2, _res$response2, _res$response2$Allotm;
15856
15908
  const action = res === null || res === void 0 ? void 0 : (_res$response = res.response) === null || _res$response === void 0 ? void 0 : (_res$response$Allotme = _res$response.AllotmentDetails) === null || _res$response$Allotme === void 0 ? void 0 : (_res$response$Allotme2 = _res$response$Allotme.workflow) === null || _res$response$Allotme2 === void 0 ? void 0 : _res$response$Allotme2.action;
@@ -15883,6 +15935,7 @@ const NewRentAndLeaseStepFormFour = ({
15883
15935
  const {
15884
15936
  CreatedResponse
15885
15937
  } = data;
15938
+ console.log("CreatedResponse", CreatedResponse);
15886
15939
  const {
15887
15940
  workflow: existingWorkflow
15888
15941
  } = CreatedResponse || {};
@@ -15984,6 +16037,7 @@ const NewRentAndLeaseStepFormFour = ({
15984
16037
  const response = await Digit.RentAndLeaseService.update({
15985
16038
  AllotmentDetails: formData
15986
16039
  }, tenantId);
16040
+ console.log("Update Response", response);
15987
16041
  if (response !== null && response !== void 0 && response.AllotmentDetails && (response === null || response === void 0 ? void 0 : response.AllotmentDetails.length) > 0) {
15988
16042
  return {
15989
16043
  isSuccess: true,
@@ -16014,11 +16068,13 @@ const NewRentAndLeaseStepFormFour = ({
16014
16068
  };
16015
16069
  Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
16016
16070
  const businessService = "RENT_N_LEASE_NEW";
16071
+ console.log(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Crea3 = currentStepData.CreatedResponse) === null || _currentStepData$Crea3 === void 0 ? void 0 : (_currentStepData$Crea4 = _currentStepData$Crea3.AllotmentDetails) === null || _currentStepData$Crea4 === void 0 ? void 0 : _currentStepData$Crea4.applicationNumber, " currentStepData?.CreatedResponse?.AllotmentDetails?.applicationNumber");
16017
16072
  const workflowDetails = Digit.Hooks.useWorkflowDetails({
16018
16073
  tenantId,
16019
16074
  id: applicationNumber,
16020
16075
  moduleCode: businessService
16021
16076
  });
16077
+ console.log("workflowDetails", workflowDetails);
16022
16078
  const userRoles = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.map(e => e.code);
16023
16079
  let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.actionState) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2.nextActions) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.filter(e => {
16024
16080
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
@@ -16034,6 +16090,7 @@ const NewRentAndLeaseStepFormFour = ({
16034
16090
  function onActionSelect(action) {
16035
16091
  goNext(action);
16036
16092
  }
16093
+ console.log("actions", actions);
16037
16094
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FormComposer$1, {
16038
16095
  defaultValues: currentStepData,
16039
16096
  config: config.currStepConfig,
@@ -16076,6 +16133,7 @@ const RentAndLeaseSelectProofIdentity = ({
16076
16133
  var _formData$documents;
16077
16134
  const stateId = Digit.ULBService.getStateId();
16078
16135
  const [formErrors, setFormErrors] = useState({});
16136
+ console.log("formErrors", formErrors);
16079
16137
  const {
16080
16138
  triggerToast
16081
16139
  } = config;
@@ -16314,6 +16372,7 @@ function RentAndLeaseSummary({
16314
16372
  });
16315
16373
  const applicantDetails = Array.isArray(formData === null || formData === void 0 ? void 0 : (_formData$applicantDe = formData.applicantDetails) === null || _formData$applicantDe === void 0 ? void 0 : _formData$applicantDe.applicants) ? (_formData$applicantDe2 = formData.applicantDetails) === null || _formData$applicantDe2 === void 0 ? void 0 : _formData$applicantDe2.applicants : formData !== null && formData !== void 0 && (_formData$applicantDe3 = formData.applicantDetails) !== null && _formData$applicantDe3 !== void 0 && _formData$applicantDe3.applicants ? [(_formData$applicantDe4 = formData.applicantDetails) === null || _formData$applicantDe4 === void 0 ? void 0 : _formData$applicantDe4.applicants] : [];
16316
16374
  const property = (formData === null || formData === void 0 ? void 0 : formData.propertyDetails) || {};
16375
+ console.log("property", property);
16317
16376
  const docs = (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : (_formData$documents$d = _formData$documents.documents) === null || _formData$documents$d === void 0 ? void 0 : _formData$documents$d.documents) || [];
16318
16377
  const sectionStyle = {
16319
16378
  backgroundColor: "#ffffff",
@@ -16331,8 +16390,7 @@ function RentAndLeaseSummary({
16331
16390
  };
16332
16391
  const headingStyle = {
16333
16392
  fontSize: "1.25rem",
16334
- color: "#0d43a7",
16335
- fontWeight: "500",
16393
+ color: "#2e4a66",
16336
16394
  margin: 0
16337
16395
  };
16338
16396
  const labelFieldPairStyle = {
@@ -16358,7 +16416,6 @@ function RentAndLeaseSummary({
16358
16416
  borderRadius: "6px"
16359
16417
  };
16360
16418
  const boldLabelStyle = {
16361
- width: "100%",
16362
16419
  fontWeight: "600",
16363
16420
  color: "#333"
16364
16421
  };
@@ -16370,7 +16427,7 @@ function RentAndLeaseSummary({
16370
16427
  gap: "0.5rem",
16371
16428
  alignItems: "center"
16372
16429
  }
16373
- }, /*#__PURE__*/React.createElement("h2", {
16430
+ }, /*#__PURE__*/React.createElement(CardLabel, {
16374
16431
  style: boldLabelStyle
16375
16432
  }, label)), /*#__PURE__*/React.createElement("div", {
16376
16433
  style: {