@mseva/digit-ui-module-obps 1.1.35 → 1.1.37

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.
@@ -28314,7 +28314,7 @@ const BpaApplicationDetail = () => {
28314
28314
  async function getPermitOccupancyOrderSearch({
28315
28315
  tenantId
28316
28316
  }, order, mode = "download") {
28317
- var _data$applicationData52, _requestData$addition, _requestData$addition8, _data$applicationData53, _data$applicationData54;
28317
+ var _data$applicationData52, _requestData$addition, _requestData$addition8, _requestData$addition0, _requestData$addition10, _data$applicationData53, _data$applicationData54;
28318
28318
  const nowIST = new Date().toLocaleString('en-GB', {
28319
28319
  timeZone: 'Asia/Kolkata',
28320
28320
  hour12: false
@@ -28353,6 +28353,11 @@ const BpaApplicationDetail = () => {
28353
28353
  } else if ((requestData === null || requestData === void 0 ? void 0 : (_requestData$addition8 = requestData.additionalDetails) === null || _requestData$addition8 === void 0 ? void 0 : _requestData$addition8.approvedColony) == "YES") {
28354
28354
  var _requestData$addition9;
28355
28355
  requestData.additionalDetails.permitData = "The building plan falls under approved colony " + (requestData === null || requestData === void 0 ? void 0 : (_requestData$addition9 = requestData.additionalDetails) === null || _requestData$addition9 === void 0 ? void 0 : _requestData$addition9.nameofApprovedcolony);
28356
+ } else if ((requestData === null || requestData === void 0 ? void 0 : (_requestData$addition0 = requestData.additionalDetails) === null || _requestData$addition0 === void 0 ? void 0 : _requestData$addition0.approvedColony) == "Colony Prior to 1995 (colony name)") {
28357
+ var _requestData$addition1;
28358
+ requestData.additionalDetails.permitData = "The building plan falls under Colonies prior to 1995 " + (requestData === null || requestData === void 0 ? void 0 : (_requestData$addition1 = requestData.additionalDetails) === null || _requestData$addition1 === void 0 ? void 0 : _requestData$addition1.nameofApprovedcolony);
28359
+ } else if ((requestData === null || requestData === void 0 ? void 0 : (_requestData$addition10 = requestData.additionalDetails) === null || _requestData$addition10 === void 0 ? void 0 : _requestData$addition10.approvedColony) == "Stand Alone Projects") {
28360
+ requestData.additionalDetails.permitData = "The building plan falls under Stand-Alone Project.";
28356
28361
  } else {
28357
28362
  requestData.additionalDetails.permitData = "The building plan falls under Lal Lakir";
28358
28363
  }
@@ -44969,6 +44974,7 @@ const Urls = {
44969
44974
  create: "/rl-services/allotment/_create",
44970
44975
  update: "/rl-services/allotment/_update",
44971
44976
  search: "/rl-services/allotment/v1/_search",
44977
+ getReports: "/rl-services/property/_report",
44972
44978
  fetch_bill: "/billing-service/bill/v2/_fetchbill?",
44973
44979
  search_bill: "/egov-searcher/bill-genie/mcollectbills/_get",
44974
44980
  search_bill_pt: "/egov-searcher/bill-genie/billswithaddranduser/_get",
@@ -55058,10 +55064,24 @@ const CLUApplicantDetails = _props => {
55058
55064
  setLoader(false);
55059
55065
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
55060
55066
  const fileId = response.data.files[0].fileStoreId;
55061
- setOwnerIdList(prev => [...prev, {
55062
- fileStoreId: fileId,
55063
- fileName: file.name
55064
- }]);
55067
+ setOwnerIdList(prev => {
55068
+ const next = [...prev];
55069
+ const newItem = {
55070
+ fileStoreId: fileId,
55071
+ fileName: file.name
55072
+ };
55073
+ if (index <= (next === null || next === void 0 ? void 0 : next.length)) {
55074
+ next[index] = newItem;
55075
+ } else {
55076
+ next.push(newItem);
55077
+ }
55078
+ return next;
55079
+ });
55080
+ setShowToast({
55081
+ key: "true",
55082
+ success: true,
55083
+ message: t("FILE_UPLOAD_SUCCESS")
55084
+ });
55065
55085
  } else {
55066
55086
  setShowToast({
55067
55087
  key: "true",
@@ -55103,10 +55123,24 @@ const CLUApplicantDetails = _props => {
55103
55123
  setLoader(false);
55104
55124
  if ((response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.length) > 0) {
55105
55125
  const fileId = response.data.files[0].fileStoreId;
55106
- setOwnerPhotoList(prev => [...prev, {
55107
- fileStoreId: fileId,
55108
- fileName: file.name
55109
- }]);
55126
+ setOwnerPhotoList(prev => {
55127
+ const next = [...prev];
55128
+ const newItem = {
55129
+ fileStoreId: fileId,
55130
+ fileName: file.name
55131
+ };
55132
+ if (index <= (next === null || next === void 0 ? void 0 : next.length)) {
55133
+ next[index] = newItem;
55134
+ } else {
55135
+ next.push(newItem);
55136
+ }
55137
+ return next;
55138
+ });
55139
+ setShowToast({
55140
+ key: "true",
55141
+ success: true,
55142
+ message: t("FILE_UPLOAD_SUCCESS")
55143
+ });
55110
55144
  } else {
55111
55145
  setShowToast({
55112
55146
  key: "true",
@@ -55245,12 +55279,6 @@ const CLUApplicantDetails = _props => {
55245
55279
  deleteOwnerId(index);
55246
55280
  deleteOwnerPhoto(index);
55247
55281
  const filteredOwners = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$appl = currentStepData.applicationDetails) === null || _currentStepData$appl === void 0 ? void 0 : (_currentStepData$appl2 = _currentStepData$appl.owners) === null || _currentStepData$appl2 === void 0 ? void 0 : _currentStepData$appl2.filter((item, idx) => idx !== index);
55248
- if ((filteredOwners === null || filteredOwners === void 0 ? void 0 : filteredOwners.length) > 0) {
55249
- dispatch(UPDATE_OBPS_FORM("applicationDetails", {
55250
- ...(currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.applicationDetails),
55251
- owners: filteredOwners
55252
- }));
55253
- }
55254
55282
  remove(index);
55255
55283
  };
55256
55284
  console.log("ownerIdList (local)==>", ownerIdList);
@@ -55484,7 +55512,7 @@ const CLUApplicantDetails = _props => {
55484
55512
  }
55485
55513
  }, /*#__PURE__*/React.createElement(CustomUploadFile, {
55486
55514
  id: `passport-photo-${index}`,
55487
- onUpload: selectOwnerPhotoFile(),
55515
+ onUpload: selectOwnerPhotoFile(index),
55488
55516
  onDelete: () => {
55489
55517
  deleteOwnerPhoto(index);
55490
55518
  },
@@ -55506,7 +55534,7 @@ const CLUApplicantDetails = _props => {
55506
55534
  }
55507
55535
  }, /*#__PURE__*/React.createElement(CustomUploadFile, {
55508
55536
  id: `id-proof-${index}`,
55509
- onUpload: selectOwnerIdFile(),
55537
+ onUpload: selectOwnerIdFile(index),
55510
55538
  onDelete: () => {
55511
55539
  deleteOwnerId(index);
55512
55540
  },
@@ -55753,7 +55781,8 @@ const CLUProfessionalDetails = _props => {
55753
55781
  props.onBlur(e);
55754
55782
  },
55755
55783
  t: t,
55756
- disabled: "true"
55784
+ disabled: "true",
55785
+ disable: "true"
55757
55786
  })
55758
55787
  }))), /*#__PURE__*/React.createElement(CardLabelError, {
55759
55788
  style: errorStyle