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

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