@mseva/digit-ui-module-rentandlease 1.0.21 → 1.0.22

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.
@@ -6164,9 +6164,6 @@ const getAcknowledgementData = async (application, tenantInfo, t) => {
6164
6164
  details.push({
6165
6165
  title: t("PT_PROPERTY_DETAILS"),
6166
6166
  values: [{
6167
- title: t("STATUS"),
6168
- value: t(application === null || application === void 0 ? void 0 : application.status) || "NA"
6169
- }, {
6170
6167
  title: t("PROPERTY_ID"),
6171
6168
  value: t(application === null || application === void 0 ? void 0 : (_application$addition = application.additionalDetails) === null || _application$addition === void 0 ? void 0 : _application$addition.propertyId) || "NA"
6172
6169
  }, {
@@ -7563,7 +7560,7 @@ const RALApplicationDetails = () => {
7563
7560
  })), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
7564
7561
  className: "ral-card-subheader-24"
7565
7562
  }, 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) => {
7566
- var _applicationData$Owne2, _owner$correspondence, _owner$permanentAddre, _owner$correspondence2, _owner$permanentAddre2;
7563
+ var _applicationData$Owne2, _owner$correspondence, _owner$permanentAddre;
7567
7564
  const multipleOwners = (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$Owne2 = applicationData.OwnerInfo) === null || _applicationData$Owne2 === void 0 ? void 0 : _applicationData$Owne2.length) > 1;
7568
7565
  return /*#__PURE__*/React.createElement(React.Fragment, {
7569
7566
  key: owner.ownerId || index
@@ -7578,12 +7575,9 @@ const RALApplicationDetails = () => {
7578
7575
  }), /*#__PURE__*/React.createElement(Row, {
7579
7576
  label: t("CORE_MOBILE_NUMBER"),
7580
7577
  text: (owner === null || owner === void 0 ? void 0 : owner.mobileNo) || t("CS_NA")
7581
- }), /*#__PURE__*/React.createElement(Row, {
7582
- label: t("PT_COMMON_COL_ADDRESS"),
7583
- text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence = owner.correspondenceAddress) === null || _owner$correspondence === void 0 ? void 0 : _owner$correspondence.addressId) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre = owner.permanentAddress) === null || _owner$permanentAddre === void 0 ? void 0 : _owner$permanentAddre.addressId) || t("CS_NA")
7584
7578
  }), /*#__PURE__*/React.createElement(Row, {
7585
7579
  label: t("CORE_COMMON_PINCODE"),
7586
- text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence2 = owner.correspondenceAddress) === null || _owner$correspondence2 === void 0 ? void 0 : _owner$correspondence2.pincode) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre2 = owner.permanentAddress) === null || _owner$permanentAddre2 === void 0 ? void 0 : _owner$permanentAddre2.pincode) || t("CS_NA")
7580
+ text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence = owner.correspondenceAddress) === null || _owner$correspondence === void 0 ? void 0 : _owner$correspondence.pincode) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre = owner.permanentAddress) === null || _owner$permanentAddre === void 0 ? void 0 : _owner$permanentAddre.pincode) || t("CS_NA")
7587
7581
  }));
7588
7582
  }) : /*#__PURE__*/React.createElement(Row, {
7589
7583
  label: t("OWNER"),
@@ -7612,8 +7606,8 @@ const RALApplicationDetails = () => {
7612
7606
  label: t("RAL_PROPERTY_AMOUNT"),
7613
7607
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
7614
7608
  }), /*#__PURE__*/React.createElement(Row, {
7615
- label: t("PENALTY_TYPE"),
7616
- text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.penaltyType) || t("CS_NA")
7609
+ label: t("SECURITY_DEPOSIT"),
7610
+ text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) || t("CS_NA")
7617
7611
  }), /*#__PURE__*/React.createElement(Row, {
7618
7612
  label: t("RAL_FEE_CYCLE"),
7619
7613
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$fees = propertyDetails.feesPeriodCycle) === null || _propertyDetails$fees === void 0 ? void 0 : (_propertyDetails$fees2 = _propertyDetails$fees[0]) === null || _propertyDetails$fees2 === void 0 ? void 0 : _propertyDetails$fees2.toUpperCase()) + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$fees3 = propertyDetails.feesPeriodCycle) === null || _propertyDetails$fees3 === void 0 ? void 0 : (_propertyDetails$fees4 = _propertyDetails$fees3.slice(1)) === null || _propertyDetails$fees4 === void 0 ? void 0 : _propertyDetails$fees4.toLowerCase()) || t("CS_NA")
@@ -7629,18 +7623,6 @@ const RALApplicationDetails = () => {
7629
7623
  }), /*#__PURE__*/React.createElement(Row, {
7630
7624
  label: t("RAL_END_DATE"),
7631
7625
  text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) || t("CS_NA")
7632
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) > 0 && /*#__PURE__*/React.createElement(Row, {
7633
- label: t("RAL_PROPERTY_PENALTY"),
7634
- text: applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted
7635
- }), /*#__PURE__*/React.createElement(Row, {
7636
- label: t("SECURITY_DEPOSIT"),
7637
- text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) || t("CS_NA")
7638
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) - (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) > 0 && /*#__PURE__*/React.createElement(Row, {
7639
- label: t("RAL_AMOUNT_TO_TAKE_FROM_CITIZEN"),
7640
- text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) - (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit)
7641
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund) > 0 && /*#__PURE__*/React.createElement(Row, {
7642
- label: t("RAL_AMOUNT_TO_REFUND"),
7643
- text: applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund
7644
7626
  }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) && /*#__PURE__*/React.createElement(Row, {
7645
7627
  label: t("RENT_LEASE_TRADE_LICENSE_NUMBER"),
7646
7628
  text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) || t("CS_NA")
@@ -8678,7 +8660,7 @@ const ModalConfig = ({
8678
8660
  assigneeLabel,
8679
8661
  businessService
8680
8662
  }) => {
8681
- let checkAssigneeVisible = (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_APPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_DOCUMENT_VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "REQUEST_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) === "DISCONNECTION_FIELD_INSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT";
8663
+ let checkAssigneeVisible = (action === null || action === void 0 ? void 0 : action.action) === "SENDBACKTOOVERIFIER" || (action === null || action === void 0 ? void 0 : action.action) === "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARDFORFIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_APPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARDFORAPPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_DOCUMENT_VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "REQUEST_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) === "DISCONNECTION_FIELD_INSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT";
8682
8664
  if (action !== null && action !== void 0 && action.isTerminateState) checkAssigneeMandatory = false;
8683
8665
  if (action.isTerminateState) {
8684
8666
  checkAssigneeVisible = false;
@@ -8746,15 +8728,9 @@ const ModalConfig = ({
8746
8728
  onDelete: () => {
8747
8729
  setUploadedFile(null);
8748
8730
  },
8749
- message: uploadedFile ? `1 ${t("ES_PT_ACTION_FILEUPLOADED")}` : t("CS_ACTION_NO_FILEUPLOADED")
8731
+ message: uploadedFile ? `1 ${t(`ES_PT_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`)
8750
8732
  })
8751
- }, ...((action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT" ? [{
8752
- label: `${t("RAL_PROPERTY_DAMAGE_PENALTY")}`,
8753
- type: "number",
8754
- populators: {
8755
- name: "amountToBeDeducted"
8756
- }
8757
- }] : [])]
8733
+ }]
8758
8734
  }]
8759
8735
  };
8760
8736
  };
@@ -8905,8 +8881,7 @@ const RALModal = ({
8905
8881
  closeModal();
8906
8882
  return;
8907
8883
  }
8908
- if (action !== null && action !== void 0 && action.isTerminateState) checkCommentsMandatory = true;
8909
- let checkAssigneeMandatory = (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_APPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_DOCUMENT_VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "REQUEST_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT" || (action === null || action === void 0 ? void 0 : action.action) === "DISCONNECTION_FIELD_INSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_FIELDINSPECTION";
8884
+ let checkAssigneeMandatory = (action === null || action === void 0 ? void 0 : action.action) === "SENDBACKTOOVERIFIER" || (action === null || action === void 0 ? void 0 : action.action) === "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARDFORFIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_APPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARDFORAPPROVAL" || (action === null || action === void 0 ? void 0 : action.action) === "PENDING_FOR_DOCUMENT_VERIFY" || (action === null || action === void 0 ? void 0 : action.action) === "REQUEST_FOR_DISCONNECTION" || (action === null || action === void 0 ? void 0 : action.action) === "DISCONNECTION_FIELD_INSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOR_FIELDINSPECTION" || (action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT";
8910
8885
  if (action !== null && action !== void 0 && action.isTerminateState) checkAssigneeMandatory = false;
8911
8886
  if (checkAssigneeMandatory && !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid)) {
8912
8887
  setShowToast({
@@ -8925,7 +8900,6 @@ const RALModal = ({
8925
8900
  }
8926
8901
  applicationData = {
8927
8902
  ...applicationData,
8928
- ...data,
8929
8903
  action: action === null || action === void 0 ? void 0 : action.action,
8930
8904
  comment: data === null || data === void 0 ? void 0 : data.comments,
8931
8905
  assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
@@ -8954,13 +8928,6 @@ const RALModal = ({
8954
8928
  }));
8955
8929
  }
8956
8930
  }, [action, approvers, financialYears, uploadedFile]);
8957
- useEffect(() => {
8958
- if ((action === null || action === void 0 ? void 0 : action.action) === "FORWARD_FOT_SETLEMENT") {
8959
- setDefaultValues({
8960
- amountToBeDeducted: 0
8961
- });
8962
- }
8963
- }, [action]);
8964
8931
  if (!action || !config.form) return null;
8965
8932
  return /*#__PURE__*/React.createElement(Modal, {
8966
8933
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
@@ -8995,7 +8962,7 @@ const RALModal = ({
8995
8962
  };
8996
8963
 
8997
8964
  const RALApplicationDetails$1 = () => {
8998
- var _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _actions, _actions2, _applicationData$Owne, _propertyDetails$fees, _propertyDetails$fees2, _propertyDetails$fees3, _propertyDetails$fees4, _applicationData$Docu2, _actions3, _workflowDetails$data6;
8965
+ var _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _actions, _applicationData$Owne, _propertyDetails$fees, _propertyDetails$fees2, _propertyDetails$fees3, _propertyDetails$fees4, _applicationData$Docu2, _actions2, _workflowDetails$data6;
8999
8966
  const {
9000
8967
  t
9001
8968
  } = useTranslation();
@@ -9067,21 +9034,11 @@ const RALApplicationDetails$1 = () => {
9067
9034
  return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
9068
9035
  })) || !e.roles;
9069
9036
  }));
9070
- if ((_actions = actions) !== null && _actions !== void 0 && _actions.some(action => (action === null || action === void 0 ? void 0 : action.action) === "REQUEST_FOR_DISCONNECTION") && !(applicationData !== null && applicationData !== void 0 && applicationData.expireFlag) && Date.now() >= (applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) - 15 * 24 * 60 * 60 * 1000) {
9037
+ if ((_actions = actions) !== null && _actions !== void 0 && _actions.some(action => action.action === "REQUEST_FOR_DISCONNECTION") && Date.now() >= (applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) - 15 * 24 * 60 * 60 * 1000) {
9071
9038
  actions = [...(actions || []), {
9072
9039
  action: "RENEWAL"
9073
9040
  }];
9074
9041
  }
9075
- actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(action => {
9076
- if (action.action === "PAY_SETTLEMENT_AMOUNT") {
9077
- return (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) > 0 && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) - (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) > 0 && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund) == 0;
9078
- }
9079
- if (action.action === "CLOSE") {
9080
- return (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund) > 0;
9081
- }
9082
- return true;
9083
- });
9084
- console.log("actions", actions);
9085
9042
  const closeToast = () => {
9086
9043
  setShowToast(null);
9087
9044
  };
@@ -9104,9 +9061,9 @@ const RALApplicationDetails$1 = () => {
9104
9061
  return (item === null || item === void 0 ? void 0 : item.uuid) == (filterNexState === null || filterNexState === void 0 ? void 0 : (_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
9105
9062
  });
9106
9063
  setEmployees((filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions) || []);
9107
- if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || (action === null || action === void 0 ? void 0 : action.action) == "CLOSED" || (action === null || action === void 0 ? void 0 : action.action) == "CLOSE") {
9064
+ if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || (action === null || action === void 0 ? void 0 : action.action) == "CASH_REFUND") {
9108
9065
  submitAction(payload);
9109
- } else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY" || (action === null || action === void 0 ? void 0 : action.action) == "PAY_SETTLEMENT_AMOUNT") {
9066
+ } else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY") {
9110
9067
  const appNo = acknowledgementIds;
9111
9068
  history.push(`/digit-ui/employee/payment/collect/rl-services/${appNo}/${tenantId}`);
9112
9069
  } else if ((action === null || action === void 0 ? void 0 : action.action) === "RAL_RENEWAL") {
@@ -9118,7 +9075,7 @@ const RALApplicationDetails$1 = () => {
9118
9075
  }
9119
9076
  }
9120
9077
  const submitAction = async data => {
9121
- var _applicationData$audi, _filtData, _filtData2, _filtData3, _filtData4, _filtData5;
9078
+ var _applicationData$audi, _filtData, _filtData2, _filtData3, _filtData4;
9122
9079
  const payloadData = applicationData;
9123
9080
  const updatedApplicant = {
9124
9081
  ...payloadData,
@@ -9142,9 +9099,6 @@ const RALApplicationDetails$1 = () => {
9142
9099
  comments: (_filtData2 = filtData) === null || _filtData2 === void 0 ? void 0 : _filtData2.comment,
9143
9100
  documents: (_filtData3 = filtData) !== null && _filtData3 !== void 0 && _filtData3.wfDocuments ? (_filtData4 = filtData) === null || _filtData4 === void 0 ? void 0 : _filtData4.wfDocuments : null
9144
9101
  };
9145
- if (filtData.action === "FORWARD_FOT_SETLEMENT" && ((_filtData5 = filtData) === null || _filtData5 === void 0 ? void 0 : _filtData5.amountToBeDeducted) !== undefined) {
9146
- updatedApplicant.amountToBeDeducted = filtData.amountToBeDeducted;
9147
- }
9148
9102
  const finalPayload = {
9149
9103
  AllotmentDetails: updatedApplicant
9150
9104
  };
@@ -9211,7 +9165,6 @@ const RALApplicationDetails$1 = () => {
9211
9165
  previousApplicationNumber: data === null || data === void 0 ? void 0 : data.applicationNumber,
9212
9166
  OwnerInfo: sanitizedOwners,
9213
9167
  tradeLicenseNumber: data === null || data === void 0 ? void 0 : data.tradeLicenseNumber,
9214
- registrationNumber: data === null || data === void 0 ? void 0 : data.registrationNumber,
9215
9168
  additionalDetails: data === null || data === void 0 ? void 0 : data.additionalDetails,
9216
9169
  startDate: newStart.getTime(),
9217
9170
  endDate: newEnd.getTime(),
@@ -9277,7 +9230,7 @@ const RALApplicationDetails$1 = () => {
9277
9230
  }, t("RENT_LEASE_APPLICATION_DETAILS"))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
9278
9231
  className: "ral-card-subheader-24"
9279
9232
  }, 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) => {
9280
- var _owner$correspondence, _owner$permanentAddre, _owner$correspondence2, _owner$permanentAddre2;
9233
+ var _owner$correspondence, _owner$permanentAddre;
9281
9234
  const multipleOwners = applicationData.OwnerInfo.length > 1;
9282
9235
  return /*#__PURE__*/React.createElement(React.Fragment, {
9283
9236
  key: owner.ownerId || index
@@ -9292,12 +9245,9 @@ const RALApplicationDetails$1 = () => {
9292
9245
  }), /*#__PURE__*/React.createElement(Row, {
9293
9246
  label: t("CORE_MOBILE_NUMBER"),
9294
9247
  text: (owner === null || owner === void 0 ? void 0 : owner.mobileNo) || t("CS_NA")
9295
- }), /*#__PURE__*/React.createElement(Row, {
9296
- label: t("PT_COMMON_COL_ADDRESS"),
9297
- text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence = owner.correspondenceAddress) === null || _owner$correspondence === void 0 ? void 0 : _owner$correspondence.addressId) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre = owner.permanentAddress) === null || _owner$permanentAddre === void 0 ? void 0 : _owner$permanentAddre.addressId) || t("CS_NA")
9298
9248
  }), /*#__PURE__*/React.createElement(Row, {
9299
9249
  label: t("CORE_COMMON_PINCODE"),
9300
- text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence2 = owner.correspondenceAddress) === null || _owner$correspondence2 === void 0 ? void 0 : _owner$correspondence2.pincode) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre2 = owner.permanentAddress) === null || _owner$permanentAddre2 === void 0 ? void 0 : _owner$permanentAddre2.pincode) || t("CS_NA")
9250
+ text: (owner === null || owner === void 0 ? void 0 : (_owner$correspondence = owner.correspondenceAddress) === null || _owner$correspondence === void 0 ? void 0 : _owner$correspondence.pincode) || (owner === null || owner === void 0 ? void 0 : (_owner$permanentAddre = owner.permanentAddress) === null || _owner$permanentAddre === void 0 ? void 0 : _owner$permanentAddre.pincode) || t("CS_NA")
9301
9251
  }));
9302
9252
  }) : /*#__PURE__*/React.createElement(Row, {
9303
9253
  label: t("OWNER"),
@@ -9329,8 +9279,8 @@ const RALApplicationDetails$1 = () => {
9329
9279
  label: t("RAL_PROPERTY_AMOUNT"),
9330
9280
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.baseRent) || t("CS_NA")
9331
9281
  }), /*#__PURE__*/React.createElement(Row, {
9332
- label: t("PENALTY_TYPE"),
9333
- text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.penaltyType) || t("CS_NA")
9282
+ label: t("SECURITY_DEPOSIT"),
9283
+ text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) || t("CS_NA")
9334
9284
  }), /*#__PURE__*/React.createElement(Row, {
9335
9285
  label: t("RAL_FEE_CYCLE"),
9336
9286
  text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$fees = propertyDetails.feesPeriodCycle) === null || _propertyDetails$fees === void 0 ? void 0 : (_propertyDetails$fees2 = _propertyDetails$fees[0]) === null || _propertyDetails$fees2 === void 0 ? void 0 : _propertyDetails$fees2.toUpperCase()) + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$fees3 = propertyDetails.feesPeriodCycle) === null || _propertyDetails$fees3 === void 0 ? void 0 : (_propertyDetails$fees4 = _propertyDetails$fees3.slice(1)) === null || _propertyDetails$fees4 === void 0 ? void 0 : _propertyDetails$fees4.toLowerCase()) || t("CS_NA")
@@ -9346,18 +9296,6 @@ const RALApplicationDetails$1 = () => {
9346
9296
  }), /*#__PURE__*/React.createElement(Row, {
9347
9297
  label: t("RAL_END_DATE"),
9348
9298
  text: getDate(applicationData === null || applicationData === void 0 ? void 0 : applicationData.endDate) || t("CS_NA")
9349
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) > 0 && /*#__PURE__*/React.createElement(Row, {
9350
- label: t("RAL_PROPERTY_PENALTY"),
9351
- text: applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted
9352
- }), /*#__PURE__*/React.createElement(Row, {
9353
- label: t("SECURITY_DEPOSIT"),
9354
- text: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) || t("CS_NA")
9355
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) - (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit) > 0 && /*#__PURE__*/React.createElement(Row, {
9356
- label: t("RAL_AMOUNT_TO_TAKE_FROM_CITIZEN"),
9357
- text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeDeducted) - (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.securityDeposit)
9358
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund) > 0 && /*#__PURE__*/React.createElement(Row, {
9359
- label: t("RAL_AMOUNT_TO_REFUND"),
9360
- text: applicationData === null || applicationData === void 0 ? void 0 : applicationData.amountToBeRefund
9361
9299
  }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) && /*#__PURE__*/React.createElement(Row, {
9362
9300
  label: t("RENT_LEASE_TRADE_LICENSE_NUMBER"),
9363
9301
  text: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tradeLicenseNumber) || t("CS_NA")
@@ -9374,7 +9312,7 @@ const RALApplicationDetails$1 = () => {
9374
9312
  }), t(doc === null || doc === void 0 ? void 0 : doc.documentType))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), /*#__PURE__*/React.createElement(NewApplicationTimeline, {
9375
9313
  workflowDetails: workflowDetails,
9376
9314
  t: t
9377
- }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) != "INITIATED" && ((_actions3 = actions) === null || _actions3 === void 0 ? void 0 : _actions3.length) > 0 && !(applicationData !== null && applicationData !== void 0 && applicationData.expireFlag) && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement("div", {
9315
+ }), (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) != "INITIATED" && ((_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.length) > 0 && /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement("div", {
9378
9316
  ref: menuRef
9379
9317
  }, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
9380
9318
  localeKeyPrefix: `WF_EMPLOYEE_${"PTR"}`,
@@ -10192,7 +10130,6 @@ const RentAndLeasePropertyDetails = ({
10192
10130
  baseRent: "",
10193
10131
  securityDeposit: "",
10194
10132
  refundApplicableOnDiscontinuation: null,
10195
- penaltyType: "",
10196
10133
  startDate: "",
10197
10134
  endDate: "",
10198
10135
  incrementApplicable: "",
@@ -10223,7 +10160,7 @@ const RentAndLeasePropertyDetails = ({
10223
10160
  };
10224
10161
  const handlePropertySelect = property => {
10225
10162
  if (!property) return;
10226
- const fieldsToPrefill = ["propertyId", "propertyName", "baseRent", "securityDeposit", "refundApplicableOnDiscontinuation", "penaltyType"];
10163
+ const fieldsToPrefill = ["propertyId", "propertyName", "baseRent", "securityDeposit", "refundApplicableOnDiscontinuation"];
10227
10164
  setValue("selectedProperty", property);
10228
10165
  fieldsToPrefill === null || fieldsToPrefill === void 0 ? void 0 : fieldsToPrefill.forEach(field => {
10229
10166
  setValue(field, (property === null || property === void 0 ? void 0 : property[field]) ?? null, {
@@ -10505,27 +10442,7 @@ const RentAndLeasePropertyDetails = ({
10505
10442
  })
10506
10443
  }))), errors.baseRent && /*#__PURE__*/React.createElement(CardLabelError, {
10507
10444
  className: "ral-error-label"
10508
- }, getErrorMessage("baseRent")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
10509
- className: "card-label-smaller"
10510
- }, t("PENALTY_TYPE"), " ", /*#__PURE__*/React.createElement("span", null, "*")), /*#__PURE__*/React.createElement("div", {
10511
- className: "form-field"
10512
- }, /*#__PURE__*/React.createElement(Controller, {
10513
- control: control,
10514
- name: "penaltyType",
10515
- rules: {
10516
- required: t("PTR_FIELD_REQUIRED")
10517
- },
10518
- render: ({
10519
- value,
10520
- onChange
10521
- }) => /*#__PURE__*/React.createElement(TextInput, {
10522
- type: "text",
10523
- value: value || "",
10524
- onChange: e => onChange(e.target.value),
10525
- t: t,
10526
- disabled: true
10527
- })
10528
- }))), errors.penaltyType && /*#__PURE__*/React.createElement(CardLabelError, null, getErrorMessage("penaltyType")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("RAL_SECURITY_AMOUNT"), " ", /*#__PURE__*/React.createElement("span", null, "*")), /*#__PURE__*/React.createElement("div", {
10445
+ }, getErrorMessage("baseRent")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("RAL_SECURITY_AMOUNT"), " ", /*#__PURE__*/React.createElement("span", null, "*")), /*#__PURE__*/React.createElement("div", {
10529
10446
  className: "form-field"
10530
10447
  }, /*#__PURE__*/React.createElement(Controller, {
10531
10448
  control: control,
@@ -11646,8 +11563,7 @@ function RentAndLeaseSummary({
11646
11563
  baseRent: t("RENT_AMOUNT "),
11647
11564
  securityDeposit: t("SECURITY_DEPOSIT"),
11648
11565
  tax_applicable: t("GST_APPLICABLE"),
11649
- refundApplicableOnDiscontinuation: t("REFUND_APPLICABLE"),
11650
- penaltyType: t("PENALTY_TYPE")
11566
+ refundApplicableOnDiscontinuation: t("REFUND_APPLICABLE")
11651
11567
  };
11652
11568
  return /*#__PURE__*/React.createElement("div", {
11653
11569
  className: "application-summary"
@@ -13417,8 +13333,6 @@ const MyProperties = ({
13417
13333
  offset: 0,
13418
13334
  mobileNumber: userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : _userInfo$info.mobileNumber
13419
13335
  });
13420
- const [selectedProperty, setSelectedProperty] = useState(null);
13421
- const [showToast, setShowToast] = useState(null);
13422
13336
  const fetchProperties = async () => {
13423
13337
  setLoader(true);
13424
13338
  try {
@@ -13443,12 +13357,6 @@ const MyProperties = ({
13443
13357
  useEffect(() => {
13444
13358
  fetchProperties();
13445
13359
  }, [filters.offset]);
13446
- useEffect(() => {
13447
- if (showToast) {
13448
- const timer = setTimeout(() => setShowToast(null), 2000);
13449
- return () => clearTimeout(timer);
13450
- }
13451
- }, [showToast]);
13452
13360
  const handleLoadMore = () => {
13453
13361
  setFilters(prev => ({
13454
13362
  ...prev,
@@ -13458,51 +13366,12 @@ const MyProperties = ({
13458
13366
  const handleMakePayment = id => {
13459
13367
  history.push(`/digit-ui/citizen/payment/collect/rl-services/${id}/${tenantId}?tenantId=${tenantId}`);
13460
13368
  };
13461
- const submitAction = async (action, property) => {
13462
- const updatedApplicant = {
13463
- ...property,
13464
- workflow: {
13465
- action: action,
13466
- assignes: [],
13467
- comments: "",
13468
- documents: null
13469
- }
13470
- };
13471
- const finalPayload = {
13472
- AllotmentDetails: updatedApplicant
13473
- };
13474
- try {
13475
- var _response$ResponseInf;
13476
- setLoader(true);
13477
- const response = await Digit.RentAndLeaseService.update(finalPayload);
13478
- if ((response === null || response === void 0 ? void 0 : (_response$ResponseInf = response.ResponseInfo) === null || _response$ResponseInf === void 0 ? void 0 : _response$ResponseInf.status) == "successful") {
13479
- setShowToast({
13480
- key: false,
13481
- label: "Successfully updated the status"
13482
- });
13483
- setPropertiesData([]);
13484
- setFilters(prev => ({
13485
- ...prev,
13486
- offset: 0
13487
- }));
13488
- fetchProperties();
13489
- }
13490
- } catch (err) {
13491
- setShowToast({
13492
- key: true,
13493
- label: "Something went wrong"
13494
- });
13495
- } finally {
13496
- setLoader(false);
13497
- }
13498
- };
13499
13369
  return /*#__PURE__*/React.createElement("div", {
13500
13370
  className: "ral-my-properties-container"
13501
13371
  }, /*#__PURE__*/React.createElement("div", null, header && /*#__PURE__*/React.createElement(Header, {
13502
13372
  className: "ral-my-properties-header"
13503
13373
  }, t(header), " (", totalCount, ")"), getPropertiesData === null || getPropertiesData === void 0 ? void 0 : getPropertiesData.map((property, index) => {
13504
13374
  var _property$additionalD, _property$additionalD2;
13505
- console.log("property", property);
13506
13375
  return /*#__PURE__*/React.createElement(Card, {
13507
13376
  key: index
13508
13377
  }, (property === null || property === void 0 ? void 0 : property.registrationNumber) && /*#__PURE__*/React.createElement(KeyNote, {
@@ -13526,12 +13395,9 @@ const MyProperties = ({
13526
13395
  to: `/digit-ui/citizen/rentandlease/property/${property === null || property === void 0 ? void 0 : property.applicationNumber}/${property === null || property === void 0 ? void 0 : property.tenantId}`
13527
13396
  }, /*#__PURE__*/React.createElement(SubmitBar, {
13528
13397
  label: t("CS_VIEW_DETAILS")
13529
- })), ((property === null || property === void 0 ? void 0 : property.status) == "PENDINGPAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOR_PAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOT_SETLEMENT" && (property === null || property === void 0 ? void 0 : property.amountToBeDeducted) > 0) && /*#__PURE__*/React.createElement(SubmitBar, {
13398
+ })), ((property === null || property === void 0 ? void 0 : property.status) == "PENDINGPAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOR_PAYMENT" || (property === null || property === void 0 ? void 0 : property.status) == "PENDING_FOT_SETLEMENT") && /*#__PURE__*/React.createElement(SubmitBar, {
13530
13399
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
13531
13400
  onSubmit: () => handleMakePayment(property === null || property === void 0 ? void 0 : property.applicationNumber)
13532
- }), (property === null || property === void 0 ? void 0 : property.status) == "APPROVED" && /*#__PURE__*/React.createElement(SubmitBar, {
13533
- label: t("REQUEST_FOR_DISCONNECTION"),
13534
- onSubmit: () => submitAction("REQUEST_FOR_DISCONNECTION", property)
13535
13401
  })));
13536
13402
  }), (getPropertiesData === null || getPropertiesData === void 0 ? void 0 : getPropertiesData.length) === 0 && !loader && /*#__PURE__*/React.createElement("p", {
13537
13403
  className: "ral-my-properties-no-result"
@@ -13542,11 +13408,6 @@ const MyProperties = ({
13542
13408
  onClick: handleLoadMore
13543
13409
  }, t("CHB_LOAD_MORE_MSG")))), loader && /*#__PURE__*/React.createElement(Loader, {
13544
13410
  page: true
13545
- }), showToast && /*#__PURE__*/React.createElement(Toast, {
13546
- error: showToast.key,
13547
- label: t(showToast.label),
13548
- isDleteBtn: true,
13549
- onClose: () => setShowToast(null)
13550
13411
  }));
13551
13412
  };
13552
13413
  MyProperties.propTypes = {