@mseva/digit-ui-module-engagement 1.1.22 → 1.1.23

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.
@@ -6077,7 +6077,7 @@ const ActionModal$3 = ({
6077
6077
  return result;
6078
6078
  };
6079
6079
  async function submit(data) {
6080
- var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _workflowDetails$data29, _workflowDetails$data30, _applicationData4, _applicationData4$add, _applicationData4$add2, _applicationData5, _applicationData5$add, _applicationData5$add2, _applicationData6, _applicationData6$add, _applicationData6$add2, _applicationData7, _applicationData7$add, _applicationData7$add2;
6080
+ var _applicationData3, _data$comments, _data$comments2, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data28, _applicationData4, _applicationData4$add, _applicationData4$add2, _applicationData5, _applicationData5$add, _applicationData5$add2, _applicationData6, _applicationData6$add, _applicationData6$add2, _applicationData7, _applicationData7$add, _applicationData7$add2;
6081
6081
  applicationData = {
6082
6082
  ...applicationData,
6083
6083
  documents: getDocuments(),
@@ -6091,8 +6091,8 @@ const ActionModal$3 = ({
6091
6091
  action: action === null || action === void 0 ? void 0 : action.action,
6092
6092
  comment: (data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
6093
6093
  comments: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? data === null || data === void 0 ? void 0 : data.comments : null,
6094
- assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.processInstances) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data9.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.processInstances) === null || _workflowDetails$data12 === void 0 ? void 0 : (_workflowDetails$data13 = _workflowDetails$data12[0]) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.assigner) === null || _workflowDetails$data14 === void 0 ? void 0 : _workflowDetails$data14.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6095
- assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.processInstances) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17.state) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.processInstances) === null || _workflowDetails$data20 === void 0 ? void 0 : (_workflowDetails$data21 = _workflowDetails$data20[0]) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.assigner) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6094
+ assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.processInstances) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.state) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data1 = workflowDetails.data) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.processInstances) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10[0]) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.assigner) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6095
+ assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13.processInstances) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14[0]) === null || _workflowDetails$data15 === void 0 ? void 0 : (_workflowDetails$data16 = _workflowDetails$data15.state) === null || _workflowDetails$data16 === void 0 ? void 0 : _workflowDetails$data16.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data17 = workflowDetails.data) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17.processInstances) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18[0]) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.assigner) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6096
6096
  varificationDocuments: uploadedFile ? [{
6097
6097
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
6098
6098
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -6101,7 +6101,7 @@ const ActionModal$3 = ({
6101
6101
  },
6102
6102
  action: action === null || action === void 0 ? void 0 : action.action,
6103
6103
  comment: data === null || data === void 0 ? void 0 : data.comments,
6104
- assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data23 = workflowDetails.data) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.processInstances) === null || _workflowDetails$data24 === void 0 ? void 0 : (_workflowDetails$data25 = _workflowDetails$data24[0]) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25.state) === null || _workflowDetails$data26 === void 0 ? void 0 : _workflowDetails$data26.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data27 = workflowDetails.data) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.processInstances) === null || _workflowDetails$data28 === void 0 ? void 0 : (_workflowDetails$data29 = _workflowDetails$data28[0]) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.assigner) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6104
+ assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.processInstances) === null || _workflowDetails$data22 === void 0 ? void 0 : (_workflowDetails$data23 = _workflowDetails$data22[0]) === null || _workflowDetails$data23 === void 0 ? void 0 : (_workflowDetails$data24 = _workflowDetails$data23.state) === null || _workflowDetails$data24 === void 0 ? void 0 : _workflowDetails$data24.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data25 = workflowDetails.data) === null || _workflowDetails$data25 === void 0 ? void 0 : (_workflowDetails$data26 = _workflowDetails$data25.processInstances) === null || _workflowDetails$data26 === void 0 ? void 0 : (_workflowDetails$data27 = _workflowDetails$data26[0]) === null || _workflowDetails$data27 === void 0 ? void 0 : (_workflowDetails$data28 = _workflowDetails$data27.assigner) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
6105
6105
  wfDocuments: uploadedFile ? [{
6106
6106
  documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
6107
6107
  fileName: file === null || file === void 0 ? void 0 : file.name,
@@ -7645,7 +7645,7 @@ const ActionModal$5 = ({
7645
7645
  })();
7646
7646
  }, [file]);
7647
7647
  function submit(data) {
7648
- var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData10, _applicationData10$pr, _applicationData12, _applicationData13;
7648
+ var _applicationData, _applicationData7, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$pro, _applicationData0, _applicationData0$pro, _applicationData10, _applicationData11;
7649
7649
  if ((_applicationData = applicationData) !== null && _applicationData !== void 0 && _applicationData.isBillAmend) {
7650
7650
  var _applicationData2, _applicationData2$bil, _applicationData3, _applicationData4, _applicationData4$bil, _applicationData5, _applicationData5$app, _applicationData6, _applicationData6$app;
7651
7651
  const comments = data !== null && data !== void 0 && data.comments ? data.comments : null;
@@ -7730,38 +7730,38 @@ const ActionModal$5 = ({
7730
7730
  const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
7731
7731
  applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
7732
7732
  }
7733
- if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : (_applicationData10$pr = _applicationData10.processInstance) === null || _applicationData10$pr === void 0 ? void 0 : _applicationData10$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
7734
- var _applicationData11;
7735
- ((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.serviceType) == "WATER" ? submitAction({
7733
+ if (((_applicationData9 = applicationData) === null || _applicationData9 === void 0 ? void 0 : (_applicationData9$pro = _applicationData9.processInstance) === null || _applicationData9$pro === void 0 ? void 0 : _applicationData9$pro.businessService) == "DisconnectWSConnection" || ((_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : (_applicationData0$pro = _applicationData0.processInstance) === null || _applicationData0$pro === void 0 ? void 0 : _applicationData0$pro.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
7734
+ var _applicationData1;
7735
+ ((_applicationData1 = applicationData) === null || _applicationData1 === void 0 ? void 0 : _applicationData1.serviceType) == "WATER" ? submitAction({
7736
7736
  WaterConnection: applicationData,
7737
7737
  disconnectRequest: true
7738
7738
  }) : submitAction({
7739
7739
  SewerageConnection: applicationData,
7740
7740
  disconnectRequest: true
7741
7741
  });
7742
- } else if (((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.applicationType) == "SEWERAGE_RECONNECTION") {
7742
+ } else if (((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : _applicationData10.applicationType) == "SEWERAGE_RECONNECTION") {
7743
7743
  submitAction({
7744
7744
  SewerageConnection: applicationData,
7745
7745
  disconnectRequest: false,
7746
7746
  reconnectRequest: true
7747
7747
  });
7748
- } else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "WATER_RECONNECTION") {
7748
+ } else if (((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : _applicationData11.applicationType) == "WATER_RECONNECTION") {
7749
7749
  submitAction({
7750
7750
  WaterConnection: applicationData,
7751
7751
  disconnectRequest: false,
7752
7752
  reconnectRequest: true
7753
7753
  });
7754
7754
  } else {
7755
- var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat10, _parsedAdhocRebateDat11, _parsedAdhocRebateDat12, _applicationData14;
7755
+ var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData12;
7756
7756
  const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
7757
7757
  const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
7758
7758
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
7759
7759
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat3 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat3 !== void 0 && _parsedAdhocRebateDat3.adhocPenaltyComment) applicationData.additionalDetails.adhocPenaltyComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat4 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat4 === void 0 ? void 0 : _parsedAdhocRebateDat4.adhocPenaltyComment) || "";
7760
7760
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat5 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat5 !== void 0 && _parsedAdhocRebateDat5.adhocPenaltyReason) applicationData.additionalDetails.adhocPenaltyReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat6 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat6 === void 0 ? void 0 : _parsedAdhocRebateDat6.adhocPenaltyReason) || "";
7761
7761
  if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
7762
- if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateComment) || "";
7763
- if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat11 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat11 !== void 0 && _parsedAdhocRebateDat11.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat12 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat12 === void 0 ? void 0 : _parsedAdhocRebateDat12.adhocRebateReason) || "";
7764
- ((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.serviceType) == "WATER" ? submitAction({
7762
+ if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
7763
+ if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
7764
+ ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
7765
7765
  WaterConnection: applicationData,
7766
7766
  disconnectRequest: false,
7767
7767
  reconnectRequest: false
@@ -7773,8 +7773,8 @@ const ActionModal$5 = ({
7773
7773
  }
7774
7774
  }
7775
7775
  useEffect(() => {
7776
- var _applicationData15, _applicationData15$pr, _applicationData16, _applicationData16$pr;
7777
- if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : (_applicationData15$pr = _applicationData15.processInstance) === null || _applicationData15$pr === void 0 ? void 0 : _applicationData15$pr.businessService) == "DisconnectWSConnection" || ((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectSWConnection") {
7776
+ var _applicationData13, _applicationData13$pr, _applicationData14, _applicationData14$pr;
7777
+ if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : (_applicationData13$pr = _applicationData13.processInstance) === null || _applicationData13$pr === void 0 ? void 0 : _applicationData13$pr.businessService) == "DisconnectWSConnection" || ((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : (_applicationData14$pr = _applicationData14.processInstance) === null || _applicationData14$pr === void 0 ? void 0 : _applicationData14$pr.businessService) == "DisconnectSWConnection") {
7778
7778
  if (action) {
7779
7779
  setConfig(configWSDisConnectApplication({
7780
7780
  t,
@@ -15683,7 +15683,7 @@ const ScruntinyDetails = ({
15683
15683
  additionalDetails,
15684
15684
  applicationData
15685
15685
  }) => {
15686
- var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$se11, _additionalDetails$se12, _additionalDetails$se13, _additionalDetails$se14, _additionalDetails$se15, _additionalDetails$se16, _additionalDetails$se17, _additionalDetails$se18, _docLessAdjustment$fi, _additionalDetails$se19, _docLessAdjustment$fi2, _additionalDetails$se20, _docLessAdjustment$fi3, _docLessAdjustment$fi4, _additionalDetails$se21, _additionalDetails$se22, _additionalDetails$se23, _additionalDetails$se24, _scrutinyDetails$scru;
15686
+ var _scrutinyDetails$valu, _scrutinyDetails$perm, _scrutinyDetails$valu2, _scrutinyDetails$valu3, _additionalDetails$se1, _additionalDetails$se10, _additionalDetails$se11, _additionalDetails$se12, _additionalDetails$se13, _additionalDetails$se14, _additionalDetails$se15, _additionalDetails$se16, _docLessAdjustment$fi, _additionalDetails$se17, _docLessAdjustment$fi2, _additionalDetails$se18, _docLessAdjustment$fi3, _docLessAdjustment$fi4, _additionalDetails$se19, _additionalDetails$se20, _additionalDetails$se21, _additionalDetails$se22, _scrutinyDetails$scru;
15687
15687
  const isEditApplication = (window.location.href.includes("editApplication") || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) == "FIELDINSPECTION_INPROGRESS") && window.location.href.includes("bpa");
15688
15688
  const [development, setDevelopment] = useState();
15689
15689
  const [otherCharges, setOtherCharges] = useState();
@@ -15786,8 +15786,8 @@ const ScruntinyDetails = ({
15786
15786
  }
15787
15787
  function setLessAdjusmentVal(value) {
15788
15788
  if (/^[0-9]*$/.test(value)) {
15789
- var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$se10;
15790
- if (parseFloat(value) > (parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se7 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se7 === void 0 ? void 0 : _additionalDetails$se7.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se8 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se8 === void 0 ? void 0 : _additionalDetails$se8.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se9 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se9 === void 0 ? void 0 : _additionalDetails$se9.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se10 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se10 === void 0 ? void 0 : _additionalDetails$se10.BPA_GAUSHALA_CHARGES_CESS)) {
15789
+ var _additionalDetails$se7, _additionalDetails$se8, _additionalDetails$se9, _additionalDetails$se0;
15790
+ if (parseFloat(value) > (parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se7 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se7 === void 0 ? void 0 : _additionalDetails$se7.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se8 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se8 === void 0 ? void 0 : _additionalDetails$se8.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se9 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se9 === void 0 ? void 0 : _additionalDetails$se9.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se0 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se0 === void 0 ? void 0 : _additionalDetails$se0.BPA_GAUSHALA_CHARGES_CESS)) {
15791
15791
  alert("Less adjustment fees cannot be grater than Total of other P2 fees");
15792
15792
  } else {
15793
15793
  setLessAdjusment(value);
@@ -15901,26 +15901,26 @@ const ScruntinyDetails = ({
15901
15901
  }, t("HIDE_P2_FEES_DETAILS"))), showSanctionFee && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardSubHeader$1, null, t("BPA_P2_SUMMARY_FEE_EST")), /*#__PURE__*/React.createElement(Row, {
15902
15902
  className: "border-none",
15903
15903
  label: t(`BPA_COMMON_MALBA_AMT`),
15904
- text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se11 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se11 === void 0 ? void 0 : _additionalDetails$se11.BPA_MALBA_CHARGES}`
15904
+ text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se1 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se1 === void 0 ? void 0 : _additionalDetails$se1.BPA_MALBA_CHARGES}`
15905
15905
  }), /*#__PURE__*/React.createElement(Row, {
15906
15906
  className: "border-none",
15907
15907
  label: t(`BPA_COMMON_LABOUR_AMT`),
15908
- text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se12 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se12 === void 0 ? void 0 : _additionalDetails$se12.BPA_LABOUR_CESS}`
15908
+ text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se10 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se10 === void 0 ? void 0 : _additionalDetails$se10.BPA_LABOUR_CESS}`
15909
15909
  }), /*#__PURE__*/React.createElement(Row, {
15910
15910
  className: "border-none",
15911
15911
  label: t(`BPA_COMMON_WATER_AMT`),
15912
- text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se13 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se13 === void 0 ? void 0 : _additionalDetails$se13.BPA_WATER_CHARGES}`
15912
+ text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se11 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se11 === void 0 ? void 0 : _additionalDetails$se11.BPA_WATER_CHARGES}`
15913
15913
  }), /*#__PURE__*/React.createElement(Row, {
15914
15914
  className: "border-none",
15915
15915
  label: t(`BPA_COMMON_GAUSHALA_AMT`),
15916
- text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se14 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se14 === void 0 ? void 0 : _additionalDetails$se14.BPA_GAUSHALA_CHARGES_CESS}`
15916
+ text: `₹ ${additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se12 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se12 === void 0 ? void 0 : _additionalDetails$se12.BPA_GAUSHALA_CHARGES_CESS}`
15917
15917
  }), /*#__PURE__*/React.createElement(CardSubHeader$1, null, t("BPA_P2_SUMMARY_FEE_EST_MANUAL")), /*#__PURE__*/React.createElement(CardLabel$1, null, t("BPA_COMMON_DEVELOPMENT_AMT")), /*#__PURE__*/React.createElement(TextInput$1, Object.assign({
15918
15918
  t: t,
15919
15919
  type: "text",
15920
15920
  isMandatory: false,
15921
15921
  optionKey: "i18nKey",
15922
15922
  name: "development",
15923
- defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se15 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se15 === void 0 ? void 0 : _additionalDetails$se15.BPA_DEVELOPMENT_CHARGES) || 0,
15923
+ defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se13 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se13 === void 0 ? void 0 : _additionalDetails$se13.BPA_DEVELOPMENT_CHARGES) || 0,
15924
15924
  value: development,
15925
15925
  disabled: !isEditApplication,
15926
15926
  onChange: e => {
@@ -15936,7 +15936,7 @@ const ScruntinyDetails = ({
15936
15936
  isMandatory: false,
15937
15937
  optionKey: "i18nKey",
15938
15938
  name: "otherCharges",
15939
- defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se16 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se16 === void 0 ? void 0 : _additionalDetails$se16.BPA_OTHER_CHARGES) || 0,
15939
+ defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se14 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se14 === void 0 ? void 0 : _additionalDetails$se14.BPA_OTHER_CHARGES) || 0,
15940
15940
  value: otherCharges,
15941
15941
  disabled: !isEditApplication,
15942
15942
  onChange: e => {
@@ -15950,7 +15950,7 @@ const ScruntinyDetails = ({
15950
15950
  t: t,
15951
15951
  type: "text",
15952
15952
  name: "otherChargesDiscription",
15953
- defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se17 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se17 === void 0 ? void 0 : _additionalDetails$se17.BPA_COMMON_OTHER_AMT_DISCRIPTION,
15953
+ defaultValue: additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se15 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se15 === void 0 ? void 0 : _additionalDetails$se15.BPA_COMMON_OTHER_AMT_DISCRIPTION,
15954
15954
  value: otherChargesDisc,
15955
15955
  disabled: !isEditApplication,
15956
15956
  onChange: e => {
@@ -15964,7 +15964,7 @@ const ScruntinyDetails = ({
15964
15964
  isMandatory: false,
15965
15965
  optionKey: "i18nKey",
15966
15966
  name: "lessAdjusment",
15967
- defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se18 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se18 === void 0 ? void 0 : _additionalDetails$se18.BPA_LESS_ADJUSMENT_PLOT) || "",
15967
+ defaultValue: (additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se16 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se16 === void 0 ? void 0 : _additionalDetails$se16.BPA_LESS_ADJUSMENT_PLOT) || "",
15968
15968
  value: lessAdjusment,
15969
15969
  disabled: !isEditApplication,
15970
15970
  onChange: e => {
@@ -15988,11 +15988,11 @@ const ScruntinyDetails = ({
15988
15988
  message: uploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
15989
15989
  error: errorFile,
15990
15990
  uploadMessage: uploadMessage
15991
- })) : null, (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi === void 0 ? void 0 : _docLessAdjustment$fi.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se19 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se19 === void 0 ? void 0 : _additionalDetails$se19.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React.createElement(CardLabel$1, {
15991
+ })) : null, (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi === void 0 ? void 0 : _docLessAdjustment$fi.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se17 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se17 === void 0 ? void 0 : _additionalDetails$se17.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React.createElement(CardLabel$1, {
15992
15992
  style: {
15993
15993
  marginTop: "15px"
15994
15994
  }
15995
- }, t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")), (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi2 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi2 === void 0 ? void 0 : _docLessAdjustment$fi2.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se20 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se20 === void 0 ? void 0 : _additionalDetails$se20.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React.createElement("a", {
15995
+ }, t("BPA_COMMON_LESS_AMT_PREVIOUS_FILE")), (docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi2 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi2 === void 0 ? void 0 : _docLessAdjustment$fi2.length) && parseInt(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se18 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se18 === void 0 ? void 0 : _additionalDetails$se18.BPA_LESS_ADJUSMENT_PLOT) > 0 && /*#__PURE__*/React.createElement("a", {
15996
15996
  target: "_blank",
15997
15997
  href: docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi3 = docLessAdjustment.fileStoreIds[(docLessAdjustment === null || docLessAdjustment === void 0 ? void 0 : (_docLessAdjustment$fi4 = docLessAdjustment.fileStoreIds) === null || _docLessAdjustment$fi4 === void 0 ? void 0 : _docLessAdjustment$fi4.length) - 1]) === null || _docLessAdjustment$fi3 === void 0 ? void 0 : _docLessAdjustment$fi3.url
15998
15998
  }, /*#__PURE__*/React.createElement(PDFSvg, null)), /*#__PURE__*/React.createElement(Row, {
@@ -16000,7 +16000,7 @@ const ScruntinyDetails = ({
16000
16000
  }), /*#__PURE__*/React.createElement(Row, {
16001
16001
  className: "border-none",
16002
16002
  label: t(`BPA_P2_TOTAL_FEE`),
16003
- text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se21 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se21 === void 0 ? void 0 : _additionalDetails$se21.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se22 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se22 === void 0 ? void 0 : _additionalDetails$se22.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se23 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se23 === void 0 ? void 0 : _additionalDetails$se23.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se24 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se24 === void 0 ? void 0 : _additionalDetails$se24.BPA_GAUSHALA_CHARGES_CESS) - (parseFloat(lessAdjusment) ? parseFloat(lessAdjusment) : 0)}`
16003
+ text: `₹ ${(parseFloat(development) ? parseFloat(development) : 0) + parseFloat(otherCharges ? parseFloat(otherCharges) : 0) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se19 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se19 === void 0 ? void 0 : _additionalDetails$se19.BPA_MALBA_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se20 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se20 === void 0 ? void 0 : _additionalDetails$se20.BPA_LABOUR_CESS) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se21 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se21 === void 0 ? void 0 : _additionalDetails$se21.BPA_WATER_CHARGES) + parseFloat(additionalDetails === null || additionalDetails === void 0 ? void 0 : (_additionalDetails$se22 = additionalDetails.selfCertificationCharges) === null || _additionalDetails$se22 === void 0 ? void 0 : _additionalDetails$se22.BPA_GAUSHALA_CHARGES_CESS) - (parseFloat(lessAdjusment) ? parseFloat(lessAdjusment) : 0)}`
16004
16004
  }))), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
16005
16005
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
16006
16006
  className: "border-none",
@@ -16542,7 +16542,7 @@ const WSFeeEstimation = ({
16542
16542
  wsAdditionalDetails,
16543
16543
  workflowDetails
16544
16544
  }) => {
16545
- var _wsAdditionalDetails$, _wsAdditionalDetails$20, _fields$adhocPenaltyR, _fields$adhocRebateRe;
16545
+ var _wsAdditionalDetails$, _wsAdditionalDetails$18, _fields$adhocPenaltyR, _fields$adhocRebateRe;
16546
16546
  const {
16547
16547
  t
16548
16548
  } = useTranslation();
@@ -16622,16 +16622,16 @@ const WSFeeEstimation = ({
16622
16622
  message: t("ERR_WS_REBATE_GREATER_THAN_AMOUNT")
16623
16623
  });
16624
16624
  } else {
16625
- var _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17, _wsAdditionalDetails$18, _wsAdditionalDetails$19;
16626
- const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.applicationNo;
16627
- const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.tenantId;
16625
+ var _wsAdditionalDetails$0, _wsAdditionalDetails$1, _wsAdditionalDetails$10, _wsAdditionalDetails$11, _wsAdditionalDetails$12, _wsAdditionalDetails$13, _wsAdditionalDetails$14, _wsAdditionalDetails$15, _wsAdditionalDetails$16, _wsAdditionalDetails$17;
16626
+ const applicationNo = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$0 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$0 === void 0 ? void 0 : (_wsAdditionalDetails$1 = _wsAdditionalDetails$0.appDetails) === null || _wsAdditionalDetails$1 === void 0 ? void 0 : _wsAdditionalDetails$1.applicationNo;
16627
+ const tenantId = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$10 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$10 === void 0 ? void 0 : (_wsAdditionalDetails$11 = _wsAdditionalDetails$10.appDetails) === null || _wsAdditionalDetails$11 === void 0 ? void 0 : _wsAdditionalDetails$11.tenantId;
16628
16628
  const appAdditionalDetails = {
16629
- ...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.additionalDetails),
16629
+ ...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$12 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$12 === void 0 ? void 0 : (_wsAdditionalDetails$13 = _wsAdditionalDetails$12.appDetails) === null || _wsAdditionalDetails$13 === void 0 ? void 0 : _wsAdditionalDetails$13.additionalDetails),
16630
16630
  ...fields
16631
16631
  };
16632
16632
  wsAdditionalDetails.additionalDetails.appDetails.additionalDetails = appAdditionalDetails;
16633
16633
  const data = {
16634
- CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? [{
16634
+ CalculationCriteria: (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$14 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$14 === void 0 ? void 0 : (_wsAdditionalDetails$15 = _wsAdditionalDetails$14.appDetails) === null || _wsAdditionalDetails$15 === void 0 ? void 0 : _wsAdditionalDetails$15.service) == "WATER" ? [{
16635
16635
  applicationNo: applicationNo,
16636
16636
  tenantId: tenantId,
16637
16637
  waterConnection: wsAdditionalDetails.additionalDetails.appDetails
@@ -16642,7 +16642,7 @@ const WSFeeEstimation = ({
16642
16642
  }],
16643
16643
  isconnectionCalculation: false
16644
16644
  };
16645
- let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$18 === void 0 ? void 0 : (_wsAdditionalDetails$19 = _wsAdditionalDetails$18.appDetails) === null || _wsAdditionalDetails$19 === void 0 ? void 0 : _wsAdditionalDetails$19.service) == "WATER" ? "WS" : "SW";
16645
+ let businessService = (wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$16 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$16 === void 0 ? void 0 : (_wsAdditionalDetails$17 = _wsAdditionalDetails$16.appDetails) === null || _wsAdditionalDetails$17 === void 0 ? void 0 : _wsAdditionalDetails$17.service) == "WATER" ? "WS" : "SW";
16646
16646
  Digit.WSService.wsCalculationEstimate(data, businessService).then((result, err) => {
16647
16647
  var _result$Calculation, _result$Calculation$, _result$Calculation$$, _result$Calculation3, _result$Calculation3$, _result$Calculation4, _result$Calculation4$, _result$Calculation5, _result$Calculation5$, _result$Calculation6, _result$Calculation6$, _result$Calculation7;
16648
16648
  if ((result === null || result === void 0 ? void 0 : (_result$Calculation = result.Calculation) === null || _result$Calculation === void 0 ? void 0 : (_result$Calculation$ = _result$Calculation[0]) === null || _result$Calculation$ === void 0 ? void 0 : (_result$Calculation$$ = _result$Calculation$.taxHeadEstimates) === null || _result$Calculation$$ === void 0 ? void 0 : _result$Calculation$$.length) > 0) {
@@ -16745,7 +16745,7 @@ const WSFeeEstimation = ({
16745
16745
  } : {
16746
16746
  color: "#00703C"
16747
16747
  }
16748
- }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$20 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$20 !== void 0 && _wsAdditionalDetails$20.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
16748
+ }))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
16749
16749
  onClick: e => {
16750
16750
  showPopUp(true);
16751
16751
  }
@@ -17382,7 +17382,7 @@ function ApplicationDetailsContent({
17382
17382
  oldValue,
17383
17383
  isInfoLabel = false
17384
17384
  }) {
17385
- var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data21, _workflowDetails$data22;
17385
+ var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
17386
17386
  const {
17387
17387
  t
17388
17388
  } = useTranslation();
@@ -17496,12 +17496,12 @@ function ApplicationDetailsContent({
17496
17496
  privacy: privacy
17497
17497
  });
17498
17498
  } else {
17499
- var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes10, _checkpoint$assignes11;
17499
+ var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes0, _checkpoint$assignes1;
17500
17500
  const caption = {
17501
17501
  date: convertEpochToDateDMY(applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi2 = applicationData.auditDetails) === null || _applicationData$audi2 === void 0 ? void 0 : _applicationData$audi2.lastModifiedTime),
17502
17502
  name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes8 = checkpoint.assignes) === null || _checkpoint$assignes8 === void 0 ? void 0 : (_checkpoint$assignes9 = _checkpoint$assignes8[0]) === null || _checkpoint$assignes9 === void 0 ? void 0 : _checkpoint$assignes9.name,
17503
17503
  wfComment: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment,
17504
- mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes10 = checkpoint.assignes) === null || _checkpoint$assignes10 === void 0 ? void 0 : (_checkpoint$assignes11 = _checkpoint$assignes10[0]) === null || _checkpoint$assignes11 === void 0 ? void 0 : _checkpoint$assignes11.mobileNumber
17504
+ mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes0 = checkpoint.assignes) === null || _checkpoint$assignes0 === void 0 ? void 0 : (_checkpoint$assignes1 = _checkpoint$assignes0[0]) === null || _checkpoint$assignes1 === void 0 ? void 0 : _checkpoint$assignes1.mobileNumber
17505
17505
  };
17506
17506
  return /*#__PURE__*/React.createElement(TLCaption, {
17507
17507
  data: caption
@@ -17630,7 +17630,7 @@ function ApplicationDetailsContent({
17630
17630
  infoClickInfoLabel: getClickInfoDetails(),
17631
17631
  infoClickInfoLabel1: getClickInfoDetails1()
17632
17632
  }) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
17633
- var _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet2, _applicationDetails$a7, _applicationDetails$a8, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet10, _detail$additionalDet11, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29, _detail$additionalDet30, _detail$additionalDet31;
17633
+ var _detail$values, _detail$additionalDet, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet2, _applicationDetails$a7, _applicationDetails$a8, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
17634
17634
  return /*#__PURE__*/React.createElement(React.Fragment, {
17635
17635
  key: index
17636
17636
  }, /*#__PURE__*/React.createElement("div", {
@@ -17785,12 +17785,12 @@ function ApplicationDetailsContent({
17785
17785
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
17786
17786
  units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.units
17787
17787
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
17788
- units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.accessories
17789
- }), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
17788
+ units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
17789
+ }), !isEditApplication && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
17790
17790
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
17791
17791
  t: t,
17792
- permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.permissions
17793
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.obpsDocuments) && /*#__PURE__*/React.createElement("div", {
17792
+ permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.permissions
17793
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.obpsDocuments) && /*#__PURE__*/React.createElement("div", {
17794
17794
  style: {
17795
17795
  display: "flex"
17796
17796
  }
@@ -17799,31 +17799,31 @@ function ApplicationDetailsContent({
17799
17799
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
17800
17800
  docs: detail.additionalDetails.obpsDocuments,
17801
17801
  bpaActionsDetails: workflowDetails
17802
- })), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
17802
+ })), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
17803
17803
  t: t,
17804
17804
  isNoc: true,
17805
17805
  NOCdata: detail.values,
17806
17806
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
17807
17807
  docs: detail.additionalDetails.noc,
17808
- noc: (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.data,
17808
+ noc: (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.data,
17809
17809
  bpaActionsDetails: workflowDetails
17810
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
17810
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
17811
17811
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
17812
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
17812
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
17813
17813
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
17814
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
17814
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
17815
17815
  edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
17816
17816
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
17817
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
17818
- documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documentsWithUrl
17819
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
17820
- documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.documents
17821
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
17822
- taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : _detail$additionalDet24.taxHeadEstimatesCalculation
17817
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
17818
+ documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documentsWithUrl
17819
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
17820
+ documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents
17821
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
17822
+ taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
17823
17823
  }), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
17824
17824
  wsAdditionalDetails: detail,
17825
17825
  oldValue: oldValue
17826
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.redirectUrl) && /*#__PURE__*/React.createElement("div", {
17826
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement("div", {
17827
17827
  style: {
17828
17828
  fontSize: "16px",
17829
17829
  lineHeight: "24px",
@@ -17831,16 +17831,16 @@ function ApplicationDetailsContent({
17831
17831
  padding: "10px 0px"
17832
17832
  }
17833
17833
  }, /*#__PURE__*/React.createElement(Link, {
17834
- to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.url
17834
+ to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
17835
17835
  }, /*#__PURE__*/React.createElement("span", {
17836
17836
  className: "link",
17837
17837
  style: {
17838
17838
  color: "#a82227"
17839
17839
  }
17840
- }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : (_detail$additionalDet29 = _detail$additionalDet28.redirectUrl) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet30 = detail.additionalDetails) === null || _detail$additionalDet30 === void 0 ? void 0 : _detail$additionalDet30.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
17840
+ }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
17841
17841
  wsAdditionalDetails: detail,
17842
17842
  workflowDetails: workflowDetails
17843
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet31 = detail.additionalDetails) === null || _detail$additionalDet31 === void 0 ? void 0 : _detail$additionalDet31.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
17843
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
17844
17844
  wsAdditionalDetails: detail,
17845
17845
  workflowDetails: workflowDetails
17846
17846
  }));
@@ -17854,13 +17854,13 @@ function ApplicationDetailsContent({
17854
17854
  }, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data5 = workflowDetails.data) !== null && _workflowDetails$data5 !== void 0 && _workflowDetails$data5.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.timeline) === null || _workflowDetails$data7 === void 0 ? void 0 : _workflowDetails$data7.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
17855
17855
  isCompleted: true,
17856
17856
  label: t(`${timelineStatusPrefix}${workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.timeline[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.state}`),
17857
- customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.timeline)
17858
- }) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data13 = workflowDetails.data) === null || _workflowDetails$data13 === void 0 ? void 0 : _workflowDetails$data13.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
17859
- var _workflowDetails$data20;
17857
+ customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data1 = workflowDetails.data) === null || _workflowDetails$data1 === void 0 ? void 0 : _workflowDetails$data1.timeline)
17858
+ }) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data10 = workflowDetails.data) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
17859
+ var _workflowDetails$data18;
17860
17860
  let timelineStatusPostfix = "";
17861
17861
  if (window.location.href.includes("/obps/")) {
17862
- var _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19;
17863
- if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && (_workflowDetails$data15 = _workflowDetails$data14.timeline[index - 1]) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.state) !== null && _workflowDetails$data16 !== void 0 && _workflowDetails$data16.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data17 = workflowDetails.data) !== null && _workflowDetails$data17 !== void 0 && (_workflowDetails$data18 = _workflowDetails$data17.timeline[index - 1]) !== null && _workflowDetails$data18 !== void 0 && (_workflowDetails$data19 = _workflowDetails$data18.state) !== null && _workflowDetails$data19 !== void 0 && _workflowDetails$data19.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index == 0 ? "" : `_DONE`;
17862
+ var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17;
17863
+ if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index == 0 ? "" : `_DONE`;
17864
17864
  }
17865
17865
  return /*#__PURE__*/React.createElement(React.Fragment, {
17866
17866
  key: index
@@ -17869,9 +17869,9 @@ function ApplicationDetailsContent({
17869
17869
  isCompleted: index === 0,
17870
17870
  info: checkpoint.comment,
17871
17871
  label: t(`${timelineStatusPrefix}${(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]}${timelineStatusPostfix}`),
17872
- customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.timeline)
17872
+ customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.timeline)
17873
17873
  }));
17874
- }))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : (_workflowDetails$data22 = _workflowDetails$data21.timeline) === null || _workflowDetails$data22 === void 0 ? void 0 : _workflowDetails$data22.length) > 2 && /*#__PURE__*/React.createElement(LinkButton$1, {
17874
+ }))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.timeline) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.length) > 2 && /*#__PURE__*/React.createElement(LinkButton$1, {
17875
17875
  label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
17876
17876
  onClick: toggleTimeline
17877
17877
  })))), /*#__PURE__*/React.createElement(CardSectionHeader$1, {
@@ -18011,7 +18011,7 @@ function ApplicationDetailsToast({
18011
18011
  closeToast,
18012
18012
  businessService
18013
18013
  }) {
18014
- var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$error10, _showToast$error11, _showToast$error12, _showToast$error13, _showToast$error14, _showToast$error15, _showToast$error16, _showToast$action4;
18014
+ var _showToast$error, _showToast$error2, _showToast$error3, _showToast$error4, _showToast$error5, _showToast$error6, _showToast$error7, _showToast$error8, _showToast$action2, _showToast$error9, _showToast$error0, _showToast$error1, _showToast$error10, _showToast$error11, _showToast$error12, _showToast$error13, _showToast$error14, _showToast$action4;
18015
18015
  if (businessService !== null && businessService !== void 0 && businessService.includes("NewTL") || businessService !== null && businessService !== void 0 && businessService.includes("TL") || businessService !== null && businessService !== void 0 && businessService.includes("EDITRENEWAL")) {
18016
18016
  var _showToast$action;
18017
18017
  let label = "";
@@ -18058,26 +18058,26 @@ function ApplicationDetailsToast({
18058
18058
  label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error9 = showToast.error) === null || _showToast$error9 === void 0 ? void 0 : _showToast$error9.message : getMessage(["BPA_APPROVAL_REVOCATED_MESSAGE_HEAD", "BPA_APPROVAL_OC_REVOCATED_MESSAGE_HEAD"]);
18059
18059
  break;
18060
18060
  case "VERIFY_AND_FORWARD":
18061
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error10 = showToast.error) === null || _showToast$error10 === void 0 ? void 0 : _showToast$error10.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
18061
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error0 = showToast.error) === null || _showToast$error0 === void 0 ? void 0 : _showToast$error0.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
18062
18062
  break;
18063
18063
  case "SEND_BACK_TO_CITIZEN":
18064
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error11 = showToast.error) === null || _showToast$error11 === void 0 ? void 0 : _showToast$error11.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
18064
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error1 = showToast.error) === null || _showToast$error1 === void 0 ? void 0 : _showToast$error1.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
18065
18065
  break;
18066
18066
  case "APPROVE":
18067
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error12 = showToast.error) === null || _showToast$error12 === void 0 ? void 0 : _showToast$error12.message : getMessage(["BPA_APPROVAL_CHECKLIST_MESSAGE_HEAD"]);
18067
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error10 = showToast.error) === null || _showToast$error10 === void 0 ? void 0 : _showToast$error10.message : getMessage(["BPA_APPROVAL_CHECKLIST_MESSAGE_HEAD"]);
18068
18068
  break;
18069
18069
  case "REJECT":
18070
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error13 = showToast.error) === null || _showToast$error13 === void 0 ? void 0 : _showToast$error13.message : getMessage(["BPA_APPROVAL_REJECTED_MESSAGE_HEAD", "BPA_OC_APPROVAL_REJECTED_MESSAGE_HEAD"]);
18070
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error11 = showToast.error) === null || _showToast$error11 === void 0 ? void 0 : _showToast$error11.message : getMessage(["BPA_APPROVAL_REJECTED_MESSAGE_HEAD", "BPA_OC_APPROVAL_REJECTED_MESSAGE_HEAD"]);
18071
18071
  break;
18072
18072
  case "FORWARD":
18073
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error14 = showToast.error) === null || _showToast$error14 === void 0 ? void 0 : _showToast$error14.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
18073
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error12 = showToast.error) === null || _showToast$error12 === void 0 ? void 0 : _showToast$error12.message : getMessage(["BPA_FORWARD_SUCCESS_MESSAGE_MAIN"]);
18074
18074
  break;
18075
18075
  case "SEND_BACK_FOR_DOCUMENT_VERIFICATION":
18076
18076
  case "SEND_BACK_FOR_FIELD_INSPECTION":
18077
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error15 = showToast.error) === null || _showToast$error15 === void 0 ? void 0 : _showToast$error15.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
18077
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error13 = showToast.error) === null || _showToast$error13 === void 0 ? void 0 : _showToast$error13.message : getMessage(["BPA_SENDBACK_SUCCESS_MESSAGE_MAIN"]);
18078
18078
  break;
18079
18079
  default:
18080
- label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error16 = showToast.error) === null || _showToast$error16 === void 0 ? void 0 : _showToast$error16.message : t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action4 = showToast.action) === null || _showToast$action4 === void 0 ? void 0 : _showToast$action4.action}_UPDATE_SUCCESS`);
18080
+ label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error14 = showToast.error) === null || _showToast$error14 === void 0 ? void 0 : _showToast$error14.message : t(`ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action4 = showToast.action) === null || _showToast$action4 === void 0 ? void 0 : _showToast$action4.action}_UPDATE_SUCCESS`);
18081
18081
  }
18082
18082
  return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast$1, {
18083
18083
  error: showToast.key === "error",
@@ -18085,8 +18085,8 @@ function ApplicationDetailsToast({
18085
18085
  onClose: closeToast
18086
18086
  }));
18087
18087
  } else {
18088
- var _showToast$error17, _showToast$action5;
18089
- const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error17 = showToast.error) === null || _showToast$error17 === void 0 ? void 0 : _showToast$error17.message : `ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action5 = showToast.action) === null || _showToast$action5 === void 0 ? void 0 : _showToast$action5.action}_UPDATE_SUCCESS`;
18088
+ var _showToast$error15, _showToast$action5;
18089
+ const label = (showToast === null || showToast === void 0 ? void 0 : showToast.key) === "error" ? showToast === null || showToast === void 0 ? void 0 : (_showToast$error15 = showToast.error) === null || _showToast$error15 === void 0 ? void 0 : _showToast$error15.message : `ES_${businessService}_${showToast === null || showToast === void 0 ? void 0 : (_showToast$action5 = showToast.action) === null || _showToast$action5 === void 0 ? void 0 : _showToast$action5.action}_UPDATE_SUCCESS`;
18090
18090
  return /*#__PURE__*/React.createElement(React.Fragment, null, showToast && /*#__PURE__*/React.createElement(Toast$1, {
18091
18091
  error: showToast.key === "error",
18092
18092
  label: t(label),
@@ -18322,7 +18322,7 @@ const ApplicationDetails = props => {
18322
18322
  }, [showToast]);
18323
18323
  function onActionSelect(action) {
18324
18324
  if (action) {
18325
- var _action$redirectionUr8, _action$redirectionUr9, _action$redirectionUr10;
18325
+ var _action$redirectionUr8, _action$redirectionUr9, _action$redirectionUr0;
18326
18326
  if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT PAY 2" && window.location.href.includes("bpa")) {
18327
18327
  window.location.assign(window.location.href.split("bpa")[0] + "editApplication/bpa" + window.location.href.split("bpa")[1]);
18328
18328
  }
@@ -18355,15 +18355,15 @@ const ApplicationDetails = props => {
18355
18355
  }
18356
18356
  } else if (!(action !== null && action !== void 0 && action.redirectionUrl) && (action === null || action === void 0 ? void 0 : action.action) != "EDIT PAY 2") {
18357
18357
  setShowModal(true);
18358
- } else if ((action === null || action === void 0 ? void 0 : (_action$redirectionUr8 = action.redirectionUrl) === null || _action$redirectionUr8 === void 0 ? void 0 : (_action$redirectionUr9 = _action$redirectionUr8.state) === null || _action$redirectionUr9 === void 0 ? void 0 : (_action$redirectionUr10 = _action$redirectionUr9.applicationData) === null || _action$redirectionUr10 === void 0 ? void 0 : _action$redirectionUr10.workflowCode) === "DIRECTRENEWAL") {
18358
+ } else if ((action === null || action === void 0 ? void 0 : (_action$redirectionUr8 = action.redirectionUrl) === null || _action$redirectionUr8 === void 0 ? void 0 : (_action$redirectionUr9 = _action$redirectionUr8.state) === null || _action$redirectionUr9 === void 0 ? void 0 : (_action$redirectionUr0 = _action$redirectionUr9.applicationData) === null || _action$redirectionUr0 === void 0 ? void 0 : _action$redirectionUr0.workflowCode) === "DIRECTRENEWAL") {
18359
18359
  console.log("Got Inside Direct");
18360
18360
  setShowModal(true);
18361
18361
  } else {
18362
- var _action$redirectionUr11, _action$redirectionUr12;
18362
+ var _action$redirectionUr1, _action$redirectionUr10;
18363
18363
  history.push({
18364
- pathname: (_action$redirectionUr11 = action.redirectionUrl) === null || _action$redirectionUr11 === void 0 ? void 0 : _action$redirectionUr11.pathname,
18364
+ pathname: (_action$redirectionUr1 = action.redirectionUrl) === null || _action$redirectionUr1 === void 0 ? void 0 : _action$redirectionUr1.pathname,
18365
18365
  state: {
18366
- ...((_action$redirectionUr12 = action.redirectionUrl) === null || _action$redirectionUr12 === void 0 ? void 0 : _action$redirectionUr12.state)
18366
+ ...((_action$redirectionUr10 = action.redirectionUrl) === null || _action$redirectionUr10 === void 0 ? void 0 : _action$redirectionUr10.state)
18367
18367
  }
18368
18368
  });
18369
18369
  }
@@ -18685,7 +18685,7 @@ const getUlbName = tenantId => {
18685
18685
  return ulbName;
18686
18686
  };
18687
18687
  const DocumentDetails = () => {
18688
- var _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16, _data$applicationData17, _data$applicationData18;
18688
+ var _data$applicationData, _data$applicationData2, _data$applicationData3, _data$applicationData4, _data$applicationData5, _data$applicationData6, _data$applicationData7, _data$applicationData8, _data$applicationData9, _data$applicationData0, _data$applicationData1, _data$applicationData10, _data$applicationData11, _data$applicationData12, _data$applicationData13, _data$applicationData14, _data$applicationData15, _data$applicationData16;
18689
18689
  let isMobile = window.Digit.Utils.browser.isMobile();
18690
18690
  const {
18691
18691
  id
@@ -18774,9 +18774,9 @@ const DocumentDetails = () => {
18774
18774
  className: "documentDetails_row_items"
18775
18775
  }, /*#__PURE__*/React.createElement("p", {
18776
18776
  className: "documentDetails_title"
18777
- }, `${t("EVENTS_TO_DATE_LABEL")}:`), " ", /*#__PURE__*/React.createElement("p", null, data !== null && data !== void 0 && (_data$applicationData10 = data.applicationData) !== null && _data$applicationData10 !== void 0 && (_data$applicationData11 = _data$applicationData10.eventDetails) !== null && _data$applicationData11 !== void 0 && _data$applicationData11.toDate ? format(new Date(data === null || data === void 0 ? void 0 : (_data$applicationData12 = data.applicationData) === null || _data$applicationData12 === void 0 ? void 0 : (_data$applicationData13 = _data$applicationData12.eventDetails) === null || _data$applicationData13 === void 0 ? void 0 : _data$applicationData13.toDate), 'dd/MM/yyyy') : null), " "), /*#__PURE__*/React.createElement("span", {
18777
+ }, `${t("EVENTS_TO_DATE_LABEL")}:`), " ", /*#__PURE__*/React.createElement("p", null, data !== null && data !== void 0 && (_data$applicationData0 = data.applicationData) !== null && _data$applicationData0 !== void 0 && (_data$applicationData1 = _data$applicationData0.eventDetails) !== null && _data$applicationData1 !== void 0 && _data$applicationData1.toDate ? format(new Date(data === null || data === void 0 ? void 0 : (_data$applicationData10 = data.applicationData) === null || _data$applicationData10 === void 0 ? void 0 : (_data$applicationData11 = _data$applicationData10.eventDetails) === null || _data$applicationData11 === void 0 ? void 0 : _data$applicationData11.toDate), 'dd/MM/yyyy') : null), " "), /*#__PURE__*/React.createElement("span", {
18778
18778
  className: "documentDetails_subheader"
18779
- }, `${t('CS_COMMON_DOCUMENTS')}`), data !== null && data !== void 0 && (_data$applicationData14 = data.applicationData) !== null && _data$applicationData14 !== void 0 && (_data$applicationData15 = _data$applicationData14.eventDetails) !== null && _data$applicationData15 !== void 0 && (_data$applicationData16 = _data$applicationData15.documents) !== null && _data$applicationData16 !== void 0 && _data$applicationData16.length ? renderMultipleDocuments(data === null || data === void 0 ? void 0 : (_data$applicationData17 = data.applicationData) === null || _data$applicationData17 === void 0 ? void 0 : (_data$applicationData18 = _data$applicationData17.eventDetails) === null || _data$applicationData18 === void 0 ? void 0 : _data$applicationData18.documents) : "NA")), /*#__PURE__*/React.createElement(ActionBar$1, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
18779
+ }, `${t('CS_COMMON_DOCUMENTS')}`), data !== null && data !== void 0 && (_data$applicationData12 = data.applicationData) !== null && _data$applicationData12 !== void 0 && (_data$applicationData13 = _data$applicationData12.eventDetails) !== null && _data$applicationData13 !== void 0 && (_data$applicationData14 = _data$applicationData13.documents) !== null && _data$applicationData14 !== void 0 && _data$applicationData14.length ? renderMultipleDocuments(data === null || data === void 0 ? void 0 : (_data$applicationData15 = data.applicationData) === null || _data$applicationData15 === void 0 ? void 0 : (_data$applicationData16 = _data$applicationData15.eventDetails) === null || _data$applicationData16 === void 0 ? void 0 : _data$applicationData16.documents) : "NA")), /*#__PURE__*/React.createElement(ActionBar$1, null, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
18780
18780
  style: {
18781
18781
  width: isMobile ? 'full' : '240px'
18782
18782
  },
@@ -20602,7 +20602,7 @@ const FillQuestions = props => {
20602
20602
  return () => clearInterval(interval);
20603
20603
  }, [formData]);
20604
20604
  const handleAutoSave = async () => {
20605
- var _prevProps$citizenDat6, _prevProps$citizenDat7, _prevProps$citizenDat8, _prevProps$citizenDat9, _prevProps$citizenDat10, _prevProps$citizenDat11, _prevProps$citizenDat12, _prevProps$citizenDat13, _prevProps$citizenDat14;
20605
+ var _prevProps$citizenDat6, _prevProps$citizenDat7, _prevProps$citizenDat8, _prevProps$citizenDat9, _prevProps$citizenDat0, _prevProps$citizenDat1, _prevProps$citizenDat10, _prevProps$citizenDat11, _prevProps$citizenDat12;
20606
20606
  setLoading(true);
20607
20607
  let answerArr = [];
20608
20608
  for (const sectionId in formData) {
@@ -20632,10 +20632,10 @@ const FillQuestions = props => {
20632
20632
  },
20633
20633
  SurveyResponse: {
20634
20634
  surveyUuid: data.uuid,
20635
- tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat9 = prevProps.citizenData) === null || _prevProps$citizenDat9 === void 0 ? void 0 : (_prevProps$citizenDat10 = _prevProps$citizenDat9.city) === null || _prevProps$citizenDat10 === void 0 ? void 0 : _prevProps$citizenDat10.code : localStorage.getItem("CITIZEN.CITY") : city,
20636
- city: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat11 = prevProps.citizenData) === null || _prevProps$citizenDat11 === void 0 ? void 0 : (_prevProps$citizenDat12 = _prevProps$citizenDat11.city) === null || _prevProps$citizenDat12 === void 0 ? void 0 : _prevProps$citizenDat12.code : localStorage.getItem("CITIZEN.CITY") : city,
20635
+ tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat9 = prevProps.citizenData) === null || _prevProps$citizenDat9 === void 0 ? void 0 : (_prevProps$citizenDat0 = _prevProps$citizenDat9.city) === null || _prevProps$citizenDat0 === void 0 ? void 0 : _prevProps$citizenDat0.code : localStorage.getItem("CITIZEN.CITY") : city,
20636
+ city: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat1 = prevProps.citizenData) === null || _prevProps$citizenDat1 === void 0 ? void 0 : (_prevProps$citizenDat10 = _prevProps$citizenDat1.city) === null || _prevProps$citizenDat10 === void 0 ? void 0 : _prevProps$citizenDat10.code : localStorage.getItem("CITIZEN.CITY") : city,
20637
20637
  locality: locality,
20638
- tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat13 = prevProps.citizenData) === null || _prevProps$citizenDat13 === void 0 ? void 0 : (_prevProps$citizenDat14 = _prevProps$citizenDat13.city) === null || _prevProps$citizenDat14 === void 0 ? void 0 : _prevProps$citizenDat14.code : localStorage.getItem("CITIZEN.CITY") : city,
20638
+ tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat11 = prevProps.citizenData) === null || _prevProps$citizenDat11 === void 0 ? void 0 : (_prevProps$citizenDat12 = _prevProps$citizenDat11.city) === null || _prevProps$citizenDat12 === void 0 ? void 0 : _prevProps$citizenDat12.code : localStorage.getItem("CITIZEN.CITY") : city,
20639
20639
  status: "Draft",
20640
20640
  coordinates: `${geoLocation.latitude},${geoLocation.longitude}`,
20641
20641
  answers: answerArr
@@ -20710,19 +20710,19 @@ const FillQuestions = props => {
20710
20710
  return Object.keys(newErrors).length === 0;
20711
20711
  };
20712
20712
  const handleSubmitSurvey = () => {
20713
- var _prevProps$citizenDat17, _prevProps$citizenDat18, _prevProps$citizenDat19, _prevProps$citizenDat20, _prevProps$citizenDat21, _prevProps$citizenDat22, _prevProps$citizenDat23;
20713
+ var _prevProps$citizenDat15, _prevProps$citizenDat16, _prevProps$citizenDat17, _prevProps$citizenDat18, _prevProps$citizenDat19, _prevProps$citizenDat20, _prevProps$citizenDat21;
20714
20714
  setLoading(true);
20715
20715
  let answerArr = [];
20716
20716
  for (const sectionId in formData) {
20717
20717
  for (const questionId in formData[sectionId]) {
20718
- var _formData$sectionId$q2, _prevProps$citizenDat15, _prevProps$citizenDat16;
20718
+ var _formData$sectionId$q2, _prevProps$citizenDat13, _prevProps$citizenDat14;
20719
20719
  answerArr.push({
20720
20720
  uuid: formData[sectionId][questionId].answerUuid,
20721
20721
  surveyUuid: data.uuid,
20722
20722
  questionUuid: questionId,
20723
20723
  sectionUuid: sectionId,
20724
20724
  comments: ((_formData$sectionId$q2 = formData[sectionId][questionId]) === null || _formData$sectionId$q2 === void 0 ? void 0 : _formData$sectionId$q2.comments) || "",
20725
- tenantId: window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat15 = prevProps.citizenData) === null || _prevProps$citizenDat15 === void 0 ? void 0 : (_prevProps$citizenDat16 = _prevProps$citizenDat15.city) === null || _prevProps$citizenDat16 === void 0 ? void 0 : _prevProps$citizenDat16.code : localStorage.getItem("CITIZEN.CITY"),
20725
+ tenantId: window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat13 = prevProps.citizenData) === null || _prevProps$citizenDat13 === void 0 ? void 0 : (_prevProps$citizenDat14 = _prevProps$citizenDat13.city) === null || _prevProps$citizenDat14 === void 0 ? void 0 : _prevProps$citizenDat14.code : localStorage.getItem("CITIZEN.CITY"),
20726
20726
  answerDetails: [{
20727
20727
  answerType: formData[sectionId][questionId].answerType,
20728
20728
  answerContent: formData[sectionId][questionId].answerType === "CHECKBOX_ANSWER_TYPE" ? formData[sectionId][questionId].answer.join(",") : formData[sectionId][questionId].answer,
@@ -20735,17 +20735,17 @@ const FillQuestions = props => {
20735
20735
  User: {
20736
20736
  type: prevProps.userInfo.type,
20737
20737
  uuid: prevProps.userInfo.uuid,
20738
- gender: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat17 = prevProps.citizenData) === null || _prevProps$citizenDat17 === void 0 ? void 0 : _prevProps$citizenDat17.gender : prevProps.userInfo.gender,
20739
- emailId: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat18 = prevProps.citizenData) === null || _prevProps$citizenDat18 === void 0 ? void 0 : _prevProps$citizenDat18.email : prevProps.userInfo.emailId,
20740
- dob: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat19 = prevProps.citizenData) === null || _prevProps$citizenDat19 === void 0 ? void 0 : _prevProps$citizenDat19.dob : prevProps.userInfo.dob
20738
+ gender: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat15 = prevProps.citizenData) === null || _prevProps$citizenDat15 === void 0 ? void 0 : _prevProps$citizenDat15.gender : prevProps.userInfo.gender,
20739
+ emailId: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat16 = prevProps.citizenData) === null || _prevProps$citizenDat16 === void 0 ? void 0 : _prevProps$citizenDat16.email : prevProps.userInfo.emailId,
20740
+ dob: (prevProps === null || prevProps === void 0 ? void 0 : prevProps.userType).toUpperCase() === "EMPLOYEE" ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat17 = prevProps.citizenData) === null || _prevProps$citizenDat17 === void 0 ? void 0 : _prevProps$citizenDat17.dob : prevProps.userInfo.dob
20741
20741
  },
20742
20742
  SurveyResponse: {
20743
20743
  surveyUuid: data.uuid,
20744
20744
  status: "Submit",
20745
20745
  locality: locality,
20746
20746
  coordinates: `${geoLocation.latitude},${geoLocation.longitude}`,
20747
- tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat20 = prevProps.citizenData) === null || _prevProps$citizenDat20 === void 0 ? void 0 : (_prevProps$citizenDat21 = _prevProps$citizenDat20.city) === null || _prevProps$citizenDat21 === void 0 ? void 0 : _prevProps$citizenDat21.code : localStorage.getItem("CITIZEN.CITY") : city,
20748
- city: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat22 = prevProps.citizenData) === null || _prevProps$citizenDat22 === void 0 ? void 0 : (_prevProps$citizenDat23 = _prevProps$citizenDat22.city) === null || _prevProps$citizenDat23 === void 0 ? void 0 : _prevProps$citizenDat23.code : localStorage.getItem("CITIZEN.CITY") : city,
20747
+ tenantId: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat18 = prevProps.citizenData) === null || _prevProps$citizenDat18 === void 0 ? void 0 : (_prevProps$citizenDat19 = _prevProps$citizenDat18.city) === null || _prevProps$citizenDat19 === void 0 ? void 0 : _prevProps$citizenDat19.code : localStorage.getItem("CITIZEN.CITY") : city,
20748
+ city: city === null ? window.location.href.includes("/employee") ? prevProps === null || prevProps === void 0 ? void 0 : (_prevProps$citizenDat20 = prevProps.citizenData) === null || _prevProps$citizenDat20 === void 0 ? void 0 : (_prevProps$citizenDat21 = _prevProps$citizenDat20.city) === null || _prevProps$citizenDat21 === void 0 ? void 0 : _prevProps$citizenDat21.code : localStorage.getItem("CITIZEN.CITY") : city,
20749
20749
  answers: answerArr
20750
20750
  }
20751
20751
  };
@@ -20793,7 +20793,7 @@ const FillQuestions = props => {
20793
20793
  }
20794
20794
  };
20795
20795
  const displayAnswerField = (answerType, question, section) => {
20796
- var _formData$section$uui2, _formData$section$uui3, _errors$section$uuid, _errors$section$uuid$, _errors$section$uuid2, _errors$section$uuid3, _errors$section$uuid4, _errors$section$uuid5, _errors$section$uuid6, _errors$section$uuid7, _formData$section$uui6, _formData$section$uui7, _errors$section$uuid8, _errors$section$uuid9, _errors$section$uuid10, _errors$section$uuid11, _formData$section$uui8, _formData$section$uui9, _errors$section$uuid12, _errors$section$uuid13, _errors$section$uuid14, _errors$section$uuid15, _errors$section$uuid16, _errors$section$uuid17, _errors$section$uuid18, _errors$section$uuid19, _formData$section$uui12, _formData$section$uui13, _errors$section$uuid20, _errors$section$uuid21, _errors$section$uuid22, _errors$section$uuid23, _formData$section$uui14, _formData$section$uui15, _errors$section$uuid24, _errors$section$uuid25, _errors$section$uuid26, _errors$section$uuid27, _errors$section$uuid28, _errors$section$uuid29, _errors$section$uuid30, _errors$section$uuid31, _formData$section$uui18, _formData$section$uui19, _errors$section$uuid32, _errors$section$uuid33, _errors$section$uuid34, _errors$section$uuid35, _errors$section$uuid36, _errors$section$uuid37, _errors$section$uuid38, _errors$section$uuid39, _errors$section$uuid40, _errors$section$uuid41, _errors$section$uuid42, _errors$section$uuid43, _formData$section$uui24, _formData$section$uui25, _errors$section$uuid44, _errors$section$uuid45, _errors$section$uuid46, _errors$section$uuid47, _errors$section$uuid48, _errors$section$uuid49, _errors$section$uuid50, _errors$section$uuid51, _errors$section$uuid52, _errors$section$uuid53, _errors$section$uuid54, _errors$section$uuid55, _formData$section$uui30, _formData$section$uui31, _errors$section$uuid56, _errors$section$uuid57, _errors$section$uuid58, _errors$section$uuid59, _formData$section$uui32, _formData$section$uui33, _errors$section$uuid60, _errors$section$uuid61, _errors$section$uuid62, _errors$section$uuid63, _errors$section$uuid64, _errors$section$uuid65, _errors$section$uuid66, _errors$section$uuid67, _formData$section$uui36, _formData$section$uui37, _errors$section$uuid68, _errors$section$uuid69, _errors$section$uuid70, _errors$section$uuid71, _formData$section$uui38, _formData$section$uui39, _errors$section$uuid72, _errors$section$uuid73, _errors$section$uuid74, _errors$section$uuid75, _errors$section$uuid76, _errors$section$uuid77, _errors$section$uuid78, _errors$section$uuid79, _formData$section$uui42, _formData$section$uui43, _errors$section$uuid80, _errors$section$uuid81, _errors$section$uuid82, _errors$section$uuid83;
20796
+ var _formData$section$uui2, _formData$section$uui3, _errors$section$uuid, _errors$section$uuid$, _errors$section$uuid2, _errors$section$uuid3, _errors$section$uuid4, _errors$section$uuid5, _errors$section$uuid6, _errors$section$uuid7, _formData$section$uui6, _formData$section$uui7, _errors$section$uuid8, _errors$section$uuid9, _errors$section$uuid0, _errors$section$uuid1, _formData$section$uui8, _formData$section$uui9, _errors$section$uuid10, _errors$section$uuid11, _errors$section$uuid12, _errors$section$uuid13, _errors$section$uuid14, _errors$section$uuid15, _errors$section$uuid16, _errors$section$uuid17, _formData$section$uui10, _formData$section$uui11, _errors$section$uuid18, _errors$section$uuid19, _errors$section$uuid20, _errors$section$uuid21, _formData$section$uui12, _formData$section$uui13, _errors$section$uuid22, _errors$section$uuid23, _errors$section$uuid24, _errors$section$uuid25, _errors$section$uuid26, _errors$section$uuid27, _errors$section$uuid28, _errors$section$uuid29, _formData$section$uui16, _formData$section$uui17, _errors$section$uuid30, _errors$section$uuid31, _errors$section$uuid32, _errors$section$uuid33, _errors$section$uuid34, _errors$section$uuid35, _errors$section$uuid36, _errors$section$uuid37, _errors$section$uuid38, _errors$section$uuid39, _errors$section$uuid40, _errors$section$uuid41, _formData$section$uui22, _formData$section$uui23, _errors$section$uuid42, _errors$section$uuid43, _errors$section$uuid44, _errors$section$uuid45, _errors$section$uuid46, _errors$section$uuid47, _errors$section$uuid48, _errors$section$uuid49, _errors$section$uuid50, _errors$section$uuid51, _errors$section$uuid52, _errors$section$uuid53, _formData$section$uui28, _formData$section$uui29, _errors$section$uuid54, _errors$section$uuid55, _errors$section$uuid56, _errors$section$uuid57, _formData$section$uui30, _formData$section$uui31, _errors$section$uuid58, _errors$section$uuid59, _errors$section$uuid60, _errors$section$uuid61, _errors$section$uuid62, _errors$section$uuid63, _errors$section$uuid64, _errors$section$uuid65, _formData$section$uui34, _formData$section$uui35, _errors$section$uuid66, _errors$section$uuid67, _errors$section$uuid68, _errors$section$uuid69, _formData$section$uui36, _formData$section$uui37, _errors$section$uuid70, _errors$section$uuid71, _errors$section$uuid72, _errors$section$uuid73, _errors$section$uuid74, _errors$section$uuid75, _errors$section$uuid76, _errors$section$uuid77, _formData$section$uui40, _formData$section$uui41, _errors$section$uuid78, _errors$section$uuid79, _errors$section$uuid80, _errors$section$uuid81;
20797
20797
  switch (answerType) {
20798
20798
  case "SHORT_ANSWER_TYPE":
20799
20799
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput$1, {
@@ -20850,7 +20850,7 @@ const FillQuestions = props => {
20850
20850
  color: "red",
20851
20851
  fontWeight: "500"
20852
20852
  }
20853
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid10 = errors[section.uuid]) === null || _errors$section$uuid10 === void 0 ? void 0 : (_errors$section$uuid11 = _errors$section$uuid10[question.uuid]) === null || _errors$section$uuid11 === void 0 ? void 0 : _errors$section$uuid11.commentsLength));
20853
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid0 = errors[section.uuid]) === null || _errors$section$uuid0 === void 0 ? void 0 : (_errors$section$uuid1 = _errors$section$uuid0[question.uuid]) === null || _errors$section$uuid1 === void 0 ? void 0 : _errors$section$uuid1.commentsLength));
20854
20854
  case "LONG_ANSWER_TYPE":
20855
20855
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextArea$1, {
20856
20856
  name: question.uuid,
@@ -20859,8 +20859,8 @@ const FillQuestions = props => {
20859
20859
  },
20860
20860
  value: (_formData$section$uui8 = formData[section.uuid]) === null || _formData$section$uui8 === void 0 ? void 0 : (_formData$section$uui9 = _formData$section$uui8[question.uuid]) === null || _formData$section$uui9 === void 0 ? void 0 : _formData$section$uui9.answer,
20861
20861
  onChange: e => {
20862
- var _formData$section$uui10, _formData$section$uui11;
20863
- return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui10 = formData[section.uuid]) === null || _formData$section$uui10 === void 0 ? void 0 : (_formData$section$uui11 = _formData$section$uui10[question.uuid]) === null || _formData$section$uui11 === void 0 ? void 0 : _formData$section$uui11.answerUuid);
20862
+ var _formData$section$uui0, _formData$section$uui1;
20863
+ return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui0 = formData[section.uuid]) === null || _formData$section$uui0 === void 0 ? void 0 : (_formData$section$uui1 = _formData$section$uui0[question.uuid]) === null || _formData$section$uui1 === void 0 ? void 0 : _formData$section$uui1.answerUuid);
20864
20864
  },
20865
20865
  inputRef: register({
20866
20866
  maxLength: {
@@ -20869,23 +20869,23 @@ const FillQuestions = props => {
20869
20869
  },
20870
20870
  required: question.required
20871
20871
  })
20872
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid12 = errors[section.uuid]) === null || _errors$section$uuid12 === void 0 ? void 0 : (_errors$section$uuid13 = _errors$section$uuid12[question.uuid]) === null || _errors$section$uuid13 === void 0 ? void 0 : _errors$section$uuid13.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20872
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid10 = errors[section.uuid]) === null || _errors$section$uuid10 === void 0 ? void 0 : (_errors$section$uuid11 = _errors$section$uuid10[question.uuid]) === null || _errors$section$uuid11 === void 0 ? void 0 : _errors$section$uuid11.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20873
20873
  style: {
20874
20874
  marginTop: "0px",
20875
20875
  marginBottom: "0px",
20876
20876
  color: "red",
20877
20877
  fontWeight: "500"
20878
20878
  }
20879
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid14 = errors[section.uuid]) === null || _errors$section$uuid14 === void 0 ? void 0 : (_errors$section$uuid15 = _errors$section$uuid14[question.uuid]) === null || _errors$section$uuid15 === void 0 ? void 0 : _errors$section$uuid15.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid16 = errors[section.uuid]) === null || _errors$section$uuid16 === void 0 ? void 0 : (_errors$section$uuid17 = _errors$section$uuid16[question.uuid]) === null || _errors$section$uuid17 === void 0 ? void 0 : _errors$section$uuid17.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20879
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid12 = errors[section.uuid]) === null || _errors$section$uuid12 === void 0 ? void 0 : (_errors$section$uuid13 = _errors$section$uuid12[question.uuid]) === null || _errors$section$uuid13 === void 0 ? void 0 : _errors$section$uuid13.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid14 = errors[section.uuid]) === null || _errors$section$uuid14 === void 0 ? void 0 : (_errors$section$uuid15 = _errors$section$uuid14[question.uuid]) === null || _errors$section$uuid15 === void 0 ? void 0 : _errors$section$uuid15.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20880
20880
  style: {
20881
20881
  marginTop: "0px",
20882
20882
  marginBottom: "0px",
20883
20883
  color: "red",
20884
20884
  fontWeight: "500"
20885
20885
  }
20886
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid18 = errors[section.uuid]) === null || _errors$section$uuid18 === void 0 ? void 0 : (_errors$section$uuid19 = _errors$section$uuid18[question.uuid]) === null || _errors$section$uuid19 === void 0 ? void 0 : _errors$section$uuid19.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
20886
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid16 = errors[section.uuid]) === null || _errors$section$uuid16 === void 0 ? void 0 : (_errors$section$uuid17 = _errors$section$uuid16[question.uuid]) === null || _errors$section$uuid17 === void 0 ? void 0 : _errors$section$uuid17.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
20887
20887
  name: question.uuid,
20888
- value: (_formData$section$uui12 = formData[section.uuid]) === null || _formData$section$uui12 === void 0 ? void 0 : (_formData$section$uui13 = _formData$section$uui12[question.uuid]) === null || _formData$section$uui13 === void 0 ? void 0 : _formData$section$uui13.comments,
20888
+ value: (_formData$section$uui10 = formData[section.uuid]) === null || _formData$section$uui10 === void 0 ? void 0 : (_formData$section$uui11 = _formData$section$uui10[question.uuid]) === null || _formData$section$uui11 === void 0 ? void 0 : _formData$section$uui11.comments,
20889
20889
  maxLength: 500,
20890
20890
  style: {
20891
20891
  maxWidth: "none",
@@ -20898,46 +20898,46 @@ const FillQuestions = props => {
20898
20898
  message: t("EXCEEDS_500_CHAR_LIMIT")
20899
20899
  }
20900
20900
  })
20901
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid20 = errors[section.uuid]) === null || _errors$section$uuid20 === void 0 ? void 0 : (_errors$section$uuid21 = _errors$section$uuid20[question.uuid]) === null || _errors$section$uuid21 === void 0 ? void 0 : _errors$section$uuid21.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20901
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid18 = errors[section.uuid]) === null || _errors$section$uuid18 === void 0 ? void 0 : (_errors$section$uuid19 = _errors$section$uuid18[question.uuid]) === null || _errors$section$uuid19 === void 0 ? void 0 : _errors$section$uuid19.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20902
20902
  style: {
20903
20903
  marginTop: "0px",
20904
20904
  marginBottom: "0px",
20905
20905
  color: "red",
20906
20906
  fontWeight: "500"
20907
20907
  }
20908
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid22 = errors[section.uuid]) === null || _errors$section$uuid22 === void 0 ? void 0 : (_errors$section$uuid23 = _errors$section$uuid22[question.uuid]) === null || _errors$section$uuid23 === void 0 ? void 0 : _errors$section$uuid23.commentsLength));
20908
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid20 = errors[section.uuid]) === null || _errors$section$uuid20 === void 0 ? void 0 : (_errors$section$uuid21 = _errors$section$uuid20[question.uuid]) === null || _errors$section$uuid21 === void 0 ? void 0 : _errors$section$uuid21.commentsLength));
20909
20909
  case "DROP_DOWN_MENU_ANSWER_TYPE":
20910
20910
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("select", {
20911
20911
  id: "dropdown",
20912
- value: (_formData$section$uui14 = formData[section.uuid]) === null || _formData$section$uui14 === void 0 ? void 0 : (_formData$section$uui15 = _formData$section$uui14[question.uuid]) === null || _formData$section$uui15 === void 0 ? void 0 : _formData$section$uui15.answer,
20912
+ value: (_formData$section$uui12 = formData[section.uuid]) === null || _formData$section$uui12 === void 0 ? void 0 : (_formData$section$uui13 = _formData$section$uui12[question.uuid]) === null || _formData$section$uui13 === void 0 ? void 0 : _formData$section$uui13.answer,
20913
20913
  onChange: e => {
20914
- var _formData$section$uui16, _formData$section$uui17;
20914
+ var _formData$section$uui14, _formData$section$uui15;
20915
20915
  const selectedOption = question.options.find(option => option.optionText === e.target.value);
20916
20916
  const optionWeightage = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.weightage) || 0;
20917
- handleInputChange(section.uuid, question.uuid, question.type, optionWeightage, e.target.value, (_formData$section$uui16 = formData[section.uuid]) === null || _formData$section$uui16 === void 0 ? void 0 : (_formData$section$uui17 = _formData$section$uui16[question.uuid]) === null || _formData$section$uui17 === void 0 ? void 0 : _formData$section$uui17.answerUuid);
20917
+ handleInputChange(section.uuid, question.uuid, question.type, optionWeightage, e.target.value, (_formData$section$uui14 = formData[section.uuid]) === null || _formData$section$uui14 === void 0 ? void 0 : (_formData$section$uui15 = _formData$section$uui14[question.uuid]) === null || _formData$section$uui15 === void 0 ? void 0 : _formData$section$uui15.answerUuid);
20918
20918
  }
20919
20919
  }, /*#__PURE__*/React.createElement("option", {
20920
20920
  value: ""
20921
20921
  }, "--Please choose an option--"), question.options.map((option, index) => /*#__PURE__*/React.createElement("option", {
20922
20922
  key: index,
20923
20923
  value: option === null || option === void 0 ? void 0 : option.optionText
20924
- }, option === null || option === void 0 ? void 0 : option.optionText))), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid24 = errors[section.uuid]) === null || _errors$section$uuid24 === void 0 ? void 0 : (_errors$section$uuid25 = _errors$section$uuid24[question.uuid]) === null || _errors$section$uuid25 === void 0 ? void 0 : _errors$section$uuid25.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20924
+ }, option === null || option === void 0 ? void 0 : option.optionText))), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid22 = errors[section.uuid]) === null || _errors$section$uuid22 === void 0 ? void 0 : (_errors$section$uuid23 = _errors$section$uuid22[question.uuid]) === null || _errors$section$uuid23 === void 0 ? void 0 : _errors$section$uuid23.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20925
20925
  style: {
20926
20926
  marginTop: "0px",
20927
20927
  marginBottom: "0px",
20928
20928
  color: "red",
20929
20929
  fontWeight: "500"
20930
20930
  }
20931
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid26 = errors[section.uuid]) === null || _errors$section$uuid26 === void 0 ? void 0 : (_errors$section$uuid27 = _errors$section$uuid26[question.uuid]) === null || _errors$section$uuid27 === void 0 ? void 0 : _errors$section$uuid27.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid28 = errors[section.uuid]) === null || _errors$section$uuid28 === void 0 ? void 0 : (_errors$section$uuid29 = _errors$section$uuid28[question.uuid]) === null || _errors$section$uuid29 === void 0 ? void 0 : _errors$section$uuid29.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20931
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid24 = errors[section.uuid]) === null || _errors$section$uuid24 === void 0 ? void 0 : (_errors$section$uuid25 = _errors$section$uuid24[question.uuid]) === null || _errors$section$uuid25 === void 0 ? void 0 : _errors$section$uuid25.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid26 = errors[section.uuid]) === null || _errors$section$uuid26 === void 0 ? void 0 : (_errors$section$uuid27 = _errors$section$uuid26[question.uuid]) === null || _errors$section$uuid27 === void 0 ? void 0 : _errors$section$uuid27.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20932
20932
  style: {
20933
20933
  marginTop: "0px",
20934
20934
  marginBottom: "0px",
20935
20935
  color: "red",
20936
20936
  fontWeight: "500"
20937
20937
  }
20938
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid30 = errors[section.uuid]) === null || _errors$section$uuid30 === void 0 ? void 0 : (_errors$section$uuid31 = _errors$section$uuid30[question.uuid]) === null || _errors$section$uuid31 === void 0 ? void 0 : _errors$section$uuid31.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
20938
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid28 = errors[section.uuid]) === null || _errors$section$uuid28 === void 0 ? void 0 : (_errors$section$uuid29 = _errors$section$uuid28[question.uuid]) === null || _errors$section$uuid29 === void 0 ? void 0 : _errors$section$uuid29.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
20939
20939
  name: question.uuid,
20940
- value: (_formData$section$uui18 = formData[section.uuid]) === null || _formData$section$uui18 === void 0 ? void 0 : (_formData$section$uui19 = _formData$section$uui18[question.uuid]) === null || _formData$section$uui19 === void 0 ? void 0 : _formData$section$uui19.comments,
20940
+ value: (_formData$section$uui16 = formData[section.uuid]) === null || _formData$section$uui16 === void 0 ? void 0 : (_formData$section$uui17 = _formData$section$uui16[question.uuid]) === null || _formData$section$uui17 === void 0 ? void 0 : _formData$section$uui17.comments,
20941
20941
  maxLength: 500,
20942
20942
  style: {
20943
20943
  maxWidth: "none",
@@ -20950,14 +20950,14 @@ const FillQuestions = props => {
20950
20950
  message: t("EXCEEDS_500_CHAR_LIMIT")
20951
20951
  }
20952
20952
  })
20953
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid32 = errors[section.uuid]) === null || _errors$section$uuid32 === void 0 ? void 0 : (_errors$section$uuid33 = _errors$section$uuid32[question.uuid]) === null || _errors$section$uuid33 === void 0 ? void 0 : _errors$section$uuid33.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20953
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid30 = errors[section.uuid]) === null || _errors$section$uuid30 === void 0 ? void 0 : (_errors$section$uuid31 = _errors$section$uuid30[question.uuid]) === null || _errors$section$uuid31 === void 0 ? void 0 : _errors$section$uuid31.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20954
20954
  style: {
20955
20955
  marginTop: "0px",
20956
20956
  marginBottom: "0px",
20957
20957
  color: "red",
20958
20958
  fontWeight: "500"
20959
20959
  }
20960
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid34 = errors[section.uuid]) === null || _errors$section$uuid34 === void 0 ? void 0 : (_errors$section$uuid35 = _errors$section$uuid34[question.uuid]) === null || _errors$section$uuid35 === void 0 ? void 0 : _errors$section$uuid35.commentsLength));
20960
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid32 = errors[section.uuid]) === null || _errors$section$uuid32 === void 0 ? void 0 : (_errors$section$uuid33 = _errors$section$uuid32[question.uuid]) === null || _errors$section$uuid33 === void 0 ? void 0 : _errors$section$uuid33.commentsLength));
20961
20961
  case "MULTIPLE_ANSWER_TYPE":
20962
20962
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
20963
20963
  style: {
@@ -20965,7 +20965,7 @@ const FillQuestions = props => {
20965
20965
  flexDirection: "column"
20966
20966
  }
20967
20967
  }, question.options.map(option => {
20968
- var _formData$section$uui20, _formData$section$uui21;
20968
+ var _formData$section$uui18, _formData$section$uui19;
20969
20969
  return /*#__PURE__*/React.createElement("h4", {
20970
20970
  key: option === null || option === void 0 ? void 0 : option.uuid,
20971
20971
  style: {
@@ -20978,10 +20978,10 @@ const FillQuestions = props => {
20978
20978
  type: "radio",
20979
20979
  name: question.uuid,
20980
20980
  value: option === null || option === void 0 ? void 0 : option.optionText,
20981
- checked: ((_formData$section$uui20 = formData[section.uuid]) === null || _formData$section$uui20 === void 0 ? void 0 : (_formData$section$uui21 = _formData$section$uui20[question.uuid]) === null || _formData$section$uui21 === void 0 ? void 0 : _formData$section$uui21.answer) === option.optionText,
20981
+ checked: ((_formData$section$uui18 = formData[section.uuid]) === null || _formData$section$uui18 === void 0 ? void 0 : (_formData$section$uui19 = _formData$section$uui18[question.uuid]) === null || _formData$section$uui19 === void 0 ? void 0 : _formData$section$uui19.answer) === option.optionText,
20982
20982
  onChange: e => {
20983
- var _formData$section$uui22, _formData$section$uui23;
20984
- return handleInputChange(section.uuid, question.uuid, question.type, option.weightage, e.target.value, (_formData$section$uui22 = formData[section.uuid]) === null || _formData$section$uui22 === void 0 ? void 0 : (_formData$section$uui23 = _formData$section$uui22[question.uuid]) === null || _formData$section$uui23 === void 0 ? void 0 : _formData$section$uui23.answerUuid);
20983
+ var _formData$section$uui20, _formData$section$uui21;
20984
+ return handleInputChange(section.uuid, question.uuid, question.type, option.weightage, e.target.value, (_formData$section$uui20 = formData[section.uuid]) === null || _formData$section$uui20 === void 0 ? void 0 : (_formData$section$uui21 = _formData$section$uui20[question.uuid]) === null || _formData$section$uui21 === void 0 ? void 0 : _formData$section$uui21.answerUuid);
20985
20985
  },
20986
20986
  required: true,
20987
20987
  style: {
@@ -20990,23 +20990,23 @@ const FillQuestions = props => {
20990
20990
  height: "25px"
20991
20991
  }
20992
20992
  }), option === null || option === void 0 ? void 0 : option.optionText);
20993
- })), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid36 = errors[section.uuid]) === null || _errors$section$uuid36 === void 0 ? void 0 : (_errors$section$uuid37 = _errors$section$uuid36[question.uuid]) === null || _errors$section$uuid37 === void 0 ? void 0 : _errors$section$uuid37.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20993
+ })), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid34 = errors[section.uuid]) === null || _errors$section$uuid34 === void 0 ? void 0 : (_errors$section$uuid35 = _errors$section$uuid34[question.uuid]) === null || _errors$section$uuid35 === void 0 ? void 0 : _errors$section$uuid35.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
20994
20994
  style: {
20995
20995
  marginTop: "0px",
20996
20996
  marginBottom: "0px",
20997
20997
  color: "red",
20998
20998
  fontWeight: "500"
20999
20999
  }
21000
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid38 = errors[section.uuid]) === null || _errors$section$uuid38 === void 0 ? void 0 : (_errors$section$uuid39 = _errors$section$uuid38[question.uuid]) === null || _errors$section$uuid39 === void 0 ? void 0 : _errors$section$uuid39.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid40 = errors[section.uuid]) === null || _errors$section$uuid40 === void 0 ? void 0 : (_errors$section$uuid41 = _errors$section$uuid40[question.uuid]) === null || _errors$section$uuid41 === void 0 ? void 0 : _errors$section$uuid41.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21000
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid36 = errors[section.uuid]) === null || _errors$section$uuid36 === void 0 ? void 0 : (_errors$section$uuid37 = _errors$section$uuid36[question.uuid]) === null || _errors$section$uuid37 === void 0 ? void 0 : _errors$section$uuid37.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid38 = errors[section.uuid]) === null || _errors$section$uuid38 === void 0 ? void 0 : (_errors$section$uuid39 = _errors$section$uuid38[question.uuid]) === null || _errors$section$uuid39 === void 0 ? void 0 : _errors$section$uuid39.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21001
21001
  style: {
21002
21002
  marginTop: "0px",
21003
21003
  marginBottom: "0px",
21004
21004
  color: "red",
21005
21005
  fontWeight: "500"
21006
21006
  }
21007
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid42 = errors[section.uuid]) === null || _errors$section$uuid42 === void 0 ? void 0 : (_errors$section$uuid43 = _errors$section$uuid42[question.uuid]) === null || _errors$section$uuid43 === void 0 ? void 0 : _errors$section$uuid43.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21007
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid40 = errors[section.uuid]) === null || _errors$section$uuid40 === void 0 ? void 0 : (_errors$section$uuid41 = _errors$section$uuid40[question.uuid]) === null || _errors$section$uuid41 === void 0 ? void 0 : _errors$section$uuid41.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21008
21008
  name: question.uuid,
21009
- value: (_formData$section$uui24 = formData[section.uuid]) === null || _formData$section$uui24 === void 0 ? void 0 : (_formData$section$uui25 = _formData$section$uui24[question.uuid]) === null || _formData$section$uui25 === void 0 ? void 0 : _formData$section$uui25.comments,
21009
+ value: (_formData$section$uui22 = formData[section.uuid]) === null || _formData$section$uui22 === void 0 ? void 0 : (_formData$section$uui23 = _formData$section$uui22[question.uuid]) === null || _formData$section$uui23 === void 0 ? void 0 : _formData$section$uui23.comments,
21010
21010
  maxLength: 500,
21011
21011
  style: {
21012
21012
  maxWidth: "none",
@@ -21019,14 +21019,14 @@ const FillQuestions = props => {
21019
21019
  message: t("EXCEEDS_500_CHAR_LIMIT")
21020
21020
  }
21021
21021
  })
21022
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid44 = errors[section.uuid]) === null || _errors$section$uuid44 === void 0 ? void 0 : (_errors$section$uuid45 = _errors$section$uuid44[question.uuid]) === null || _errors$section$uuid45 === void 0 ? void 0 : _errors$section$uuid45.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21022
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid42 = errors[section.uuid]) === null || _errors$section$uuid42 === void 0 ? void 0 : (_errors$section$uuid43 = _errors$section$uuid42[question.uuid]) === null || _errors$section$uuid43 === void 0 ? void 0 : _errors$section$uuid43.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21023
21023
  style: {
21024
21024
  marginTop: "0px",
21025
21025
  marginBottom: "0px",
21026
21026
  color: "red",
21027
21027
  fontWeight: "500"
21028
21028
  }
21029
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid46 = errors[section.uuid]) === null || _errors$section$uuid46 === void 0 ? void 0 : (_errors$section$uuid47 = _errors$section$uuid46[question.uuid]) === null || _errors$section$uuid47 === void 0 ? void 0 : _errors$section$uuid47.commentsLength));
21029
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid44 = errors[section.uuid]) === null || _errors$section$uuid44 === void 0 ? void 0 : (_errors$section$uuid45 = _errors$section$uuid44[question.uuid]) === null || _errors$section$uuid45 === void 0 ? void 0 : _errors$section$uuid45.commentsLength));
21030
21030
  case "CHECKBOX_ANSWER_TYPE":
21031
21031
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
21032
21032
  style: {
@@ -21034,7 +21034,7 @@ const FillQuestions = props => {
21034
21034
  flexDirection: "column"
21035
21035
  }
21036
21036
  }, question.options.map(option => {
21037
- var _formData$section$uui26, _formData$section$uui27;
21037
+ var _formData$section$uui24, _formData$section$uui25;
21038
21038
  return /*#__PURE__*/React.createElement("h4", {
21039
21039
  key: option === null || option === void 0 ? void 0 : option.uuid,
21040
21040
  style: {
@@ -21051,12 +21051,12 @@ const FillQuestions = props => {
21051
21051
  },
21052
21052
  type: "checkbox",
21053
21053
  value: option === null || option === void 0 ? void 0 : option.optionText,
21054
- checked: ((_formData$section$uui26 = formData[section.uuid]) === null || _formData$section$uui26 === void 0 ? void 0 : (_formData$section$uui27 = _formData$section$uui26[question.uuid]) === null || _formData$section$uui27 === void 0 ? void 0 : _formData$section$uui27.answer.includes(option.optionText)) || false,
21054
+ checked: ((_formData$section$uui24 = formData[section.uuid]) === null || _formData$section$uui24 === void 0 ? void 0 : (_formData$section$uui25 = _formData$section$uui24[question.uuid]) === null || _formData$section$uui25 === void 0 ? void 0 : _formData$section$uui25.answer.includes(option.optionText)) || false,
21055
21055
  onChange: e => {
21056
21056
  const value = e.target.value;
21057
21057
  const checked = e.target.checked;
21058
21058
  setFormData(prevData => {
21059
- var _prevData$section$uui, _prevData$section$uui2, _prevData$section$uui3, _prevData$section$uui4, _formData$section$uui28, _formData$section$uui29;
21059
+ var _prevData$section$uui, _prevData$section$uui2, _prevData$section$uui3, _prevData$section$uui4, _formData$section$uui26, _formData$section$uui27;
21060
21060
  const newValues = checked ? [...(((_prevData$section$uui = prevData[section.uuid]) === null || _prevData$section$uui === void 0 ? void 0 : (_prevData$section$uui2 = _prevData$section$uui[question.uuid]) === null || _prevData$section$uui2 === void 0 ? void 0 : _prevData$section$uui2.answer) || ""), value] : (((_prevData$section$uui3 = prevData[section.uuid]) === null || _prevData$section$uui3 === void 0 ? void 0 : (_prevData$section$uui4 = _prevData$section$uui3[question.uuid]) === null || _prevData$section$uui4 === void 0 ? void 0 : _prevData$section$uui4.answer) || "").filter(item => item !== value);
21061
21061
  return {
21062
21062
  ...prevData,
@@ -21064,7 +21064,7 @@ const FillQuestions = props => {
21064
21064
  ...prevData[section.uuid],
21065
21065
  [question.uuid]: {
21066
21066
  answer: newValues,
21067
- answerUuid: (_formData$section$uui28 = formData[section.uuid]) === null || _formData$section$uui28 === void 0 ? void 0 : (_formData$section$uui29 = _formData$section$uui28[question.uuid]) === null || _formData$section$uui29 === void 0 ? void 0 : _formData$section$uui29.answerUuid,
21067
+ answerUuid: (_formData$section$uui26 = formData[section.uuid]) === null || _formData$section$uui26 === void 0 ? void 0 : (_formData$section$uui27 = _formData$section$uui26[question.uuid]) === null || _formData$section$uui27 === void 0 ? void 0 : _formData$section$uui27.answerUuid,
21068
21068
  answerType: question.type,
21069
21069
  weightage: option.weightage
21070
21070
  }
@@ -21073,23 +21073,23 @@ const FillQuestions = props => {
21073
21073
  });
21074
21074
  }
21075
21075
  }), option.optionText);
21076
- })), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid48 = errors[section.uuid]) === null || _errors$section$uuid48 === void 0 ? void 0 : (_errors$section$uuid49 = _errors$section$uuid48[question.uuid]) === null || _errors$section$uuid49 === void 0 ? void 0 : _errors$section$uuid49.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21076
+ })), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid46 = errors[section.uuid]) === null || _errors$section$uuid46 === void 0 ? void 0 : (_errors$section$uuid47 = _errors$section$uuid46[question.uuid]) === null || _errors$section$uuid47 === void 0 ? void 0 : _errors$section$uuid47.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21077
21077
  style: {
21078
21078
  marginTop: "0px",
21079
21079
  marginBottom: "0px",
21080
21080
  color: "red",
21081
21081
  fontWeight: "500"
21082
21082
  }
21083
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid50 = errors[section.uuid]) === null || _errors$section$uuid50 === void 0 ? void 0 : (_errors$section$uuid51 = _errors$section$uuid50[question.uuid]) === null || _errors$section$uuid51 === void 0 ? void 0 : _errors$section$uuid51.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid52 = errors[section.uuid]) === null || _errors$section$uuid52 === void 0 ? void 0 : (_errors$section$uuid53 = _errors$section$uuid52[question.uuid]) === null || _errors$section$uuid53 === void 0 ? void 0 : _errors$section$uuid53.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21083
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid48 = errors[section.uuid]) === null || _errors$section$uuid48 === void 0 ? void 0 : (_errors$section$uuid49 = _errors$section$uuid48[question.uuid]) === null || _errors$section$uuid49 === void 0 ? void 0 : _errors$section$uuid49.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid50 = errors[section.uuid]) === null || _errors$section$uuid50 === void 0 ? void 0 : (_errors$section$uuid51 = _errors$section$uuid50[question.uuid]) === null || _errors$section$uuid51 === void 0 ? void 0 : _errors$section$uuid51.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21084
21084
  style: {
21085
21085
  marginTop: "0px",
21086
21086
  marginBottom: "0px",
21087
21087
  color: "red",
21088
21088
  fontWeight: "500"
21089
21089
  }
21090
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid54 = errors[section.uuid]) === null || _errors$section$uuid54 === void 0 ? void 0 : (_errors$section$uuid55 = _errors$section$uuid54[question.uuid]) === null || _errors$section$uuid55 === void 0 ? void 0 : _errors$section$uuid55.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21090
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid52 = errors[section.uuid]) === null || _errors$section$uuid52 === void 0 ? void 0 : (_errors$section$uuid53 = _errors$section$uuid52[question.uuid]) === null || _errors$section$uuid53 === void 0 ? void 0 : _errors$section$uuid53.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21091
21091
  name: question.uuid,
21092
- value: (_formData$section$uui30 = formData[section.uuid]) === null || _formData$section$uui30 === void 0 ? void 0 : (_formData$section$uui31 = _formData$section$uui30[question.uuid]) === null || _formData$section$uui31 === void 0 ? void 0 : _formData$section$uui31.comments,
21092
+ value: (_formData$section$uui28 = formData[section.uuid]) === null || _formData$section$uui28 === void 0 ? void 0 : (_formData$section$uui29 = _formData$section$uui28[question.uuid]) === null || _formData$section$uui29 === void 0 ? void 0 : _formData$section$uui29.comments,
21093
21093
  maxLength: 500,
21094
21094
  style: {
21095
21095
  maxWidth: "none",
@@ -21102,42 +21102,42 @@ const FillQuestions = props => {
21102
21102
  message: t("EXCEEDS_500_CHAR_LIMIT")
21103
21103
  }
21104
21104
  })
21105
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid56 = errors[section.uuid]) === null || _errors$section$uuid56 === void 0 ? void 0 : (_errors$section$uuid57 = _errors$section$uuid56[question.uuid]) === null || _errors$section$uuid57 === void 0 ? void 0 : _errors$section$uuid57.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21105
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid54 = errors[section.uuid]) === null || _errors$section$uuid54 === void 0 ? void 0 : (_errors$section$uuid55 = _errors$section$uuid54[question.uuid]) === null || _errors$section$uuid55 === void 0 ? void 0 : _errors$section$uuid55.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21106
21106
  style: {
21107
21107
  marginTop: "0px",
21108
21108
  marginBottom: "0px",
21109
21109
  color: "red",
21110
21110
  fontWeight: "500"
21111
21111
  }
21112
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid58 = errors[section.uuid]) === null || _errors$section$uuid58 === void 0 ? void 0 : (_errors$section$uuid59 = _errors$section$uuid58[question.uuid]) === null || _errors$section$uuid59 === void 0 ? void 0 : _errors$section$uuid59.commentsLength));
21112
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid56 = errors[section.uuid]) === null || _errors$section$uuid56 === void 0 ? void 0 : (_errors$section$uuid57 = _errors$section$uuid56[question.uuid]) === null || _errors$section$uuid57 === void 0 ? void 0 : _errors$section$uuid57.commentsLength));
21113
21113
  case "DATE_ANSWER_TYPE":
21114
21114
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput$1, {
21115
21115
  type: "date",
21116
21116
  textInputStyle: {
21117
21117
  maxWidth: "none"
21118
21118
  },
21119
- value: (_formData$section$uui32 = formData[section.uuid]) === null || _formData$section$uui32 === void 0 ? void 0 : (_formData$section$uui33 = _formData$section$uui32[question.uuid]) === null || _formData$section$uui33 === void 0 ? void 0 : _formData$section$uui33.answer,
21119
+ value: (_formData$section$uui30 = formData[section.uuid]) === null || _formData$section$uui30 === void 0 ? void 0 : (_formData$section$uui31 = _formData$section$uui30[question.uuid]) === null || _formData$section$uui31 === void 0 ? void 0 : _formData$section$uui31.answer,
21120
21120
  onChange: e => {
21121
- var _formData$section$uui34, _formData$section$uui35;
21122
- return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui34 = formData[section.uuid]) === null || _formData$section$uui34 === void 0 ? void 0 : (_formData$section$uui35 = _formData$section$uui34[question.uuid]) === null || _formData$section$uui35 === void 0 ? void 0 : _formData$section$uui35.answerUuid);
21121
+ var _formData$section$uui32, _formData$section$uui33;
21122
+ return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui32 = formData[section.uuid]) === null || _formData$section$uui32 === void 0 ? void 0 : (_formData$section$uui33 = _formData$section$uui32[question.uuid]) === null || _formData$section$uui33 === void 0 ? void 0 : _formData$section$uui33.answerUuid);
21123
21123
  }
21124
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid60 = errors[section.uuid]) === null || _errors$section$uuid60 === void 0 ? void 0 : (_errors$section$uuid61 = _errors$section$uuid60[question.uuid]) === null || _errors$section$uuid61 === void 0 ? void 0 : _errors$section$uuid61.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21124
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid58 = errors[section.uuid]) === null || _errors$section$uuid58 === void 0 ? void 0 : (_errors$section$uuid59 = _errors$section$uuid58[question.uuid]) === null || _errors$section$uuid59 === void 0 ? void 0 : _errors$section$uuid59.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21125
21125
  style: {
21126
21126
  marginTop: "0px",
21127
21127
  marginBottom: "0px",
21128
21128
  color: "red",
21129
21129
  fontWeight: "500"
21130
21130
  }
21131
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid62 = errors[section.uuid]) === null || _errors$section$uuid62 === void 0 ? void 0 : (_errors$section$uuid63 = _errors$section$uuid62[question.uuid]) === null || _errors$section$uuid63 === void 0 ? void 0 : _errors$section$uuid63.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid64 = errors[section.uuid]) === null || _errors$section$uuid64 === void 0 ? void 0 : (_errors$section$uuid65 = _errors$section$uuid64[question.uuid]) === null || _errors$section$uuid65 === void 0 ? void 0 : _errors$section$uuid65.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21131
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid60 = errors[section.uuid]) === null || _errors$section$uuid60 === void 0 ? void 0 : (_errors$section$uuid61 = _errors$section$uuid60[question.uuid]) === null || _errors$section$uuid61 === void 0 ? void 0 : _errors$section$uuid61.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid62 = errors[section.uuid]) === null || _errors$section$uuid62 === void 0 ? void 0 : (_errors$section$uuid63 = _errors$section$uuid62[question.uuid]) === null || _errors$section$uuid63 === void 0 ? void 0 : _errors$section$uuid63.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21132
21132
  style: {
21133
21133
  marginTop: "0px",
21134
21134
  marginBottom: "0px",
21135
21135
  color: "red",
21136
21136
  fontWeight: "500"
21137
21137
  }
21138
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid66 = errors[section.uuid]) === null || _errors$section$uuid66 === void 0 ? void 0 : (_errors$section$uuid67 = _errors$section$uuid66[question.uuid]) === null || _errors$section$uuid67 === void 0 ? void 0 : _errors$section$uuid67.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21138
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid64 = errors[section.uuid]) === null || _errors$section$uuid64 === void 0 ? void 0 : (_errors$section$uuid65 = _errors$section$uuid64[question.uuid]) === null || _errors$section$uuid65 === void 0 ? void 0 : _errors$section$uuid65.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21139
21139
  name: question.uuid,
21140
- value: (_formData$section$uui36 = formData[section.uuid]) === null || _formData$section$uui36 === void 0 ? void 0 : (_formData$section$uui37 = _formData$section$uui36[question.uuid]) === null || _formData$section$uui37 === void 0 ? void 0 : _formData$section$uui37.comments,
21140
+ value: (_formData$section$uui34 = formData[section.uuid]) === null || _formData$section$uui34 === void 0 ? void 0 : (_formData$section$uui35 = _formData$section$uui34[question.uuid]) === null || _formData$section$uui35 === void 0 ? void 0 : _formData$section$uui35.comments,
21141
21141
  maxLength: 500,
21142
21142
  style: {
21143
21143
  maxWidth: "none",
@@ -21150,42 +21150,42 @@ const FillQuestions = props => {
21150
21150
  message: t("EXCEEDS_500_CHAR_LIMIT")
21151
21151
  }
21152
21152
  })
21153
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid68 = errors[section.uuid]) === null || _errors$section$uuid68 === void 0 ? void 0 : (_errors$section$uuid69 = _errors$section$uuid68[question.uuid]) === null || _errors$section$uuid69 === void 0 ? void 0 : _errors$section$uuid69.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21153
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid66 = errors[section.uuid]) === null || _errors$section$uuid66 === void 0 ? void 0 : (_errors$section$uuid67 = _errors$section$uuid66[question.uuid]) === null || _errors$section$uuid67 === void 0 ? void 0 : _errors$section$uuid67.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21154
21154
  style: {
21155
21155
  marginTop: "0px",
21156
21156
  marginBottom: "0px",
21157
21157
  color: "red",
21158
21158
  fontWeight: "500"
21159
21159
  }
21160
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid70 = errors[section.uuid]) === null || _errors$section$uuid70 === void 0 ? void 0 : (_errors$section$uuid71 = _errors$section$uuid70[question.uuid]) === null || _errors$section$uuid71 === void 0 ? void 0 : _errors$section$uuid71.commentsLength));
21160
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid68 = errors[section.uuid]) === null || _errors$section$uuid68 === void 0 ? void 0 : (_errors$section$uuid69 = _errors$section$uuid68[question.uuid]) === null || _errors$section$uuid69 === void 0 ? void 0 : _errors$section$uuid69.commentsLength));
21161
21161
  case "TIME_ANSWER_TYPE":
21162
21162
  return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput$1, {
21163
21163
  type: "time",
21164
21164
  textInputStyle: {
21165
21165
  maxWidth: "none"
21166
21166
  },
21167
- value: (_formData$section$uui38 = formData[section.uuid]) === null || _formData$section$uui38 === void 0 ? void 0 : (_formData$section$uui39 = _formData$section$uui38[question.uuid]) === null || _formData$section$uui39 === void 0 ? void 0 : _formData$section$uui39.answer,
21167
+ value: (_formData$section$uui36 = formData[section.uuid]) === null || _formData$section$uui36 === void 0 ? void 0 : (_formData$section$uui37 = _formData$section$uui36[question.uuid]) === null || _formData$section$uui37 === void 0 ? void 0 : _formData$section$uui37.answer,
21168
21168
  onChange: e => {
21169
- var _formData$section$uui40, _formData$section$uui41;
21170
- return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui40 = formData[section.uuid]) === null || _formData$section$uui40 === void 0 ? void 0 : (_formData$section$uui41 = _formData$section$uui40[question.uuid]) === null || _formData$section$uui41 === void 0 ? void 0 : _formData$section$uui41.answerUuid);
21169
+ var _formData$section$uui38, _formData$section$uui39;
21170
+ return handleInputChange(section.uuid, question.uuid, question.type, null, e.target.value, (_formData$section$uui38 = formData[section.uuid]) === null || _formData$section$uui38 === void 0 ? void 0 : (_formData$section$uui39 = _formData$section$uui38[question.uuid]) === null || _formData$section$uui39 === void 0 ? void 0 : _formData$section$uui39.answerUuid);
21171
21171
  }
21172
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid72 = errors[section.uuid]) === null || _errors$section$uuid72 === void 0 ? void 0 : (_errors$section$uuid73 = _errors$section$uuid72[question.uuid]) === null || _errors$section$uuid73 === void 0 ? void 0 : _errors$section$uuid73.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21172
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid70 = errors[section.uuid]) === null || _errors$section$uuid70 === void 0 ? void 0 : (_errors$section$uuid71 = _errors$section$uuid70[question.uuid]) === null || _errors$section$uuid71 === void 0 ? void 0 : _errors$section$uuid71.answerRequired) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21173
21173
  style: {
21174
21174
  marginTop: "0px",
21175
21175
  marginBottom: "0px",
21176
21176
  color: "red",
21177
21177
  fontWeight: "500"
21178
21178
  }
21179
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid74 = errors[section.uuid]) === null || _errors$section$uuid74 === void 0 ? void 0 : (_errors$section$uuid75 = _errors$section$uuid74[question.uuid]) === null || _errors$section$uuid75 === void 0 ? void 0 : _errors$section$uuid75.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid76 = errors[section.uuid]) === null || _errors$section$uuid76 === void 0 ? void 0 : (_errors$section$uuid77 = _errors$section$uuid76[question.uuid]) === null || _errors$section$uuid77 === void 0 ? void 0 : _errors$section$uuid77.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21179
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid72 = errors[section.uuid]) === null || _errors$section$uuid72 === void 0 ? void 0 : (_errors$section$uuid73 = _errors$section$uuid72[question.uuid]) === null || _errors$section$uuid73 === void 0 ? void 0 : _errors$section$uuid73.answerRequired), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid74 = errors[section.uuid]) === null || _errors$section$uuid74 === void 0 ? void 0 : (_errors$section$uuid75 = _errors$section$uuid74[question.uuid]) === null || _errors$section$uuid75 === void 0 ? void 0 : _errors$section$uuid75.answerLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21180
21180
  style: {
21181
21181
  marginTop: "0px",
21182
21182
  marginBottom: "0px",
21183
21183
  color: "red",
21184
21184
  fontWeight: "500"
21185
21185
  }
21186
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid78 = errors[section.uuid]) === null || _errors$section$uuid78 === void 0 ? void 0 : (_errors$section$uuid79 = _errors$section$uuid78[question.uuid]) === null || _errors$section$uuid79 === void 0 ? void 0 : _errors$section$uuid79.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21186
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid76 = errors[section.uuid]) === null || _errors$section$uuid76 === void 0 ? void 0 : (_errors$section$uuid77 = _errors$section$uuid76[question.uuid]) === null || _errors$section$uuid77 === void 0 ? void 0 : _errors$section$uuid77.answerLength), /*#__PURE__*/React.createElement("div", null, " ", "Add Suggestions/Comments"), /*#__PURE__*/React.createElement(TextArea$1, {
21187
21187
  name: question.uuid,
21188
- value: (_formData$section$uui42 = formData[section.uuid]) === null || _formData$section$uui42 === void 0 ? void 0 : (_formData$section$uui43 = _formData$section$uui42[question.uuid]) === null || _formData$section$uui43 === void 0 ? void 0 : _formData$section$uui43.comments,
21188
+ value: (_formData$section$uui40 = formData[section.uuid]) === null || _formData$section$uui40 === void 0 ? void 0 : (_formData$section$uui41 = _formData$section$uui40[question.uuid]) === null || _formData$section$uui41 === void 0 ? void 0 : _formData$section$uui41.comments,
21189
21189
  maxLength: 500,
21190
21190
  style: {
21191
21191
  maxWidth: "none",
@@ -21198,14 +21198,14 @@ const FillQuestions = props => {
21198
21198
  message: t("EXCEEDS_500_CHAR_LIMIT")
21199
21199
  }
21200
21200
  })
21201
- }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid80 = errors[section.uuid]) === null || _errors$section$uuid80 === void 0 ? void 0 : (_errors$section$uuid81 = _errors$section$uuid80[question.uuid]) === null || _errors$section$uuid81 === void 0 ? void 0 : _errors$section$uuid81.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21201
+ }), errors && (errors === null || errors === void 0 ? void 0 : errors[section.uuid]) && (errors === null || errors === void 0 ? void 0 : (_errors$section$uuid78 = errors[section.uuid]) === null || _errors$section$uuid78 === void 0 ? void 0 : (_errors$section$uuid79 = _errors$section$uuid78[question.uuid]) === null || _errors$section$uuid79 === void 0 ? void 0 : _errors$section$uuid79.commentsLength) && /*#__PURE__*/React.createElement(CardLabelError$2, {
21202
21202
  style: {
21203
21203
  marginTop: "0px",
21204
21204
  marginBottom: "0px",
21205
21205
  color: "red",
21206
21206
  fontWeight: "500"
21207
21207
  }
21208
- }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid82 = errors[section.uuid]) === null || _errors$section$uuid82 === void 0 ? void 0 : (_errors$section$uuid83 = _errors$section$uuid82[question.uuid]) === null || _errors$section$uuid83 === void 0 ? void 0 : _errors$section$uuid83.commentsLength));
21208
+ }, errors === null || errors === void 0 ? void 0 : (_errors$section$uuid80 = errors[section.uuid]) === null || _errors$section$uuid80 === void 0 ? void 0 : (_errors$section$uuid81 = _errors$section$uuid80[question.uuid]) === null || _errors$section$uuid81 === void 0 ? void 0 : _errors$section$uuid81.commentsLength));
21209
21209
  default:
21210
21210
  return /*#__PURE__*/React.createElement(TextInput$1, {
21211
21211
  name: question.uuid,
@@ -23048,8 +23048,8 @@ const useInboxTableConfig = ({
23048
23048
  Cell: ({
23049
23049
  row
23050
23050
  }) => {
23051
- var _row$original10, _row$original10$audit, _row$original11, _row$original11$audit;
23052
- return (_row$original10 = row.original) !== null && _row$original10 !== void 0 && (_row$original10$audit = _row$original10.auditDetails) !== null && _row$original10$audit !== void 0 && _row$original10$audit.createdTime ? GetCell(format(new Date((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : (_row$original11$audit = _row$original11.auditDetails) === null || _row$original11$audit === void 0 ? void 0 : _row$original11$audit.createdTime), "dd/MM/yyyy")) : "";
23051
+ var _row$original0, _row$original0$auditD, _row$original1, _row$original1$auditD;
23052
+ return (_row$original0 = row.original) !== null && _row$original0 !== void 0 && (_row$original0$auditD = _row$original0.auditDetails) !== null && _row$original0$auditD !== void 0 && _row$original0$auditD.createdTime ? GetCell(format(new Date((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : (_row$original1$auditD = _row$original1.auditDetails) === null || _row$original1$auditD === void 0 ? void 0 : _row$original1$auditD.createdTime), "dd/MM/yyyy")) : "";
23053
23053
  }
23054
23054
  }, {
23055
23055
  Header: t("Last Updated On"),
@@ -23057,8 +23057,8 @@ const useInboxTableConfig = ({
23057
23057
  Cell: ({
23058
23058
  row
23059
23059
  }) => {
23060
- var _row$original12, _row$original12$audit, _row$original13, _row$original13$audit;
23061
- return (_row$original12 = row.original) !== null && _row$original12 !== void 0 && (_row$original12$audit = _row$original12.auditDetails) !== null && _row$original12$audit !== void 0 && _row$original12$audit.lastModifiedTime ? GetCell(format(new Date((_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : (_row$original13$audit = _row$original13.auditDetails) === null || _row$original13$audit === void 0 ? void 0 : _row$original13$audit.lastModifiedTime), "dd/MM/yyyy")) : "";
23060
+ var _row$original10, _row$original10$audit, _row$original11, _row$original11$audit;
23061
+ return (_row$original10 = row.original) !== null && _row$original10 !== void 0 && (_row$original10$audit = _row$original10.auditDetails) !== null && _row$original10$audit !== void 0 && _row$original10$audit.lastModifiedTime ? GetCell(format(new Date((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : (_row$original11$audit = _row$original11.auditDetails) === null || _row$original11$audit === void 0 ? void 0 : _row$original11$audit.lastModifiedTime), "dd/MM/yyyy")) : "";
23062
23062
  }
23063
23063
  }, {
23064
23064
  Header: t("Update Survey Status"),
@@ -23066,8 +23066,8 @@ const useInboxTableConfig = ({
23066
23066
  Cell: ({
23067
23067
  row
23068
23068
  }) => {
23069
- var _row$original14, _userInfo$info;
23070
- return (row === null || row === void 0 ? void 0 : (_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.tenantId) === (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : _userInfo$info.tenantId) ? /*#__PURE__*/React.createElement("div", {
23069
+ var _row$original12, _userInfo$info;
23070
+ return (row === null || row === void 0 ? void 0 : (_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.tenantId) === (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : _userInfo$info.tenantId) ? /*#__PURE__*/React.createElement("div", {
23071
23071
  className: "tooltip"
23072
23072
  }, /*#__PURE__*/React.createElement("div", {
23073
23073
  style: {
@@ -25705,8 +25705,8 @@ const useQuestionsInboxTableConfig = ({
25705
25705
  Cell: ({
25706
25706
  row
25707
25707
  }) => {
25708
- var _row$original9, _row$original9$auditD, _row$original10, _row$original10$audit;
25709
- return (_row$original9 = row.original) !== null && _row$original9 !== void 0 && (_row$original9$auditD = _row$original9.auditDetails) !== null && _row$original9$auditD !== void 0 && _row$original9$auditD.lastModifiedTime ? GetCell(format(new Date((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : (_row$original10$audit = _row$original10.auditDetails) === null || _row$original10$audit === void 0 ? void 0 : _row$original10$audit.lastModifiedTime), "dd/MM/yyyy")) : "";
25708
+ var _row$original9, _row$original9$auditD, _row$original0, _row$original0$auditD;
25709
+ return (_row$original9 = row.original) !== null && _row$original9 !== void 0 && (_row$original9$auditD = _row$original9.auditDetails) !== null && _row$original9$auditD !== void 0 && _row$original9$auditD.lastModifiedTime ? GetCell(format(new Date((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : (_row$original0$auditD = _row$original0.auditDetails) === null || _row$original0$auditD === void 0 ? void 0 : _row$original0$auditD.lastModifiedTime), "dd/MM/yyyy")) : "";
25710
25710
  }
25711
25711
  }, {
25712
25712
  Header: t("Update Question Status"),
@@ -28059,23 +28059,20 @@ const SurveyDetailsForms = ({
28059
28059
  isLoading
28060
28060
  } = Digit.Hooks.useTenants();
28061
28061
  console.log("cities", cities);
28062
- let cityName = "";
28063
28062
  useEffect(() => {
28064
- console.log("loading", isLoading);
28065
- if (!isLoading) {
28066
- console.log("tenantId", tenantId);
28067
- cities.map(item => {
28068
- if (item.code.toString() === tenantId.toString()) {
28069
- cityName = item;
28070
- return;
28071
- }
28072
- });
28063
+ if (!isLoading && cities !== null && cities !== void 0 && cities.length && !(surveyDetails !== null && surveyDetails !== void 0 && surveyDetails.ulb)) {
28064
+ const matchedCity = cities === null || cities === void 0 ? void 0 : cities.find(city => city.code === tenantId);
28065
+ if (matchedCity) {
28066
+ dispatch(fieldChange(surveyDetails.id, {
28067
+ ulb: matchedCity
28068
+ }));
28069
+ }
28073
28070
  }
28074
- }, [cities]);
28075
- console.log("cityName", cityName);
28071
+ }, [cities, isLoading, tenantId]);
28076
28072
  const userInfo = Digit.UserService.getUser().info;
28077
28073
  const dispatch = useDispatch();
28078
28074
  const surveyDetails = useSelector(state => state.engagement.surveyForm.surveyDetails[0]);
28075
+ console.log("surveyDetails====", surveyDetails);
28079
28076
  const userUlbs = ulbs.filter(ulb => {
28080
28077
  var _userInfo$roles;
28081
28078
  return userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => (role === null || role === void 0 ? void 0 : role.tenantId) === (ulb === null || ulb === void 0 ? void 0 : ulb.code));
@@ -28085,11 +28082,6 @@ const SurveyDetailsForms = ({
28085
28082
  const filtered = ulbs.filter(item => item.code === tenantId);
28086
28083
  return filtered;
28087
28084
  }, [ulbs]);
28088
- useEffect(() => {
28089
- dispatch(fieldChange(surveyDetails.id, {
28090
- ["ulb"]: cityName
28091
- }));
28092
- }, []);
28093
28085
  const handleFieldChange = e => {
28094
28086
  const {
28095
28087
  name,
@@ -28122,7 +28114,7 @@ const SurveyDetailsForms = ({
28122
28114
  placeholder: "Select City",
28123
28115
  optionKey: "i18nKey",
28124
28116
  t: t,
28125
- selected: surveyDetails.ulb || cityName
28117
+ selected: surveyDetails.ulb
28126
28118
  }), (surveyFormState === null || surveyFormState === void 0 ? void 0 : (_surveyFormState$erro = surveyFormState.errors) === null || _surveyFormState$erro === void 0 ? void 0 : _surveyFormState$erro.tenantIds) && /*#__PURE__*/React.createElement(CardLabelError$2, null, t("ES_ERROR_REQUIRED"))), /*#__PURE__*/React.createElement("div", {
28127
28119
  className: "survey-column"
28128
28120
  }, /*#__PURE__*/React.createElement("label", null, t("CS_SURVEY_NAME"), " ", /*#__PURE__*/React.createElement("span", {
@@ -28151,7 +28143,7 @@ const SurveyDetailsForms = ({
28151
28143
  }), (surveyFormState === null || surveyFormState === void 0 ? void 0 : (_surveyFormState$erro2 = surveyFormState.errors) === null || _surveyFormState$erro2 === void 0 ? void 0 : _surveyFormState$erro2.title) && /*#__PURE__*/React.createElement(CardLabelError$2, null, surveyFormState === null || surveyFormState === void 0 ? void 0 : (_surveyFormState$erro3 = surveyFormState.errors) === null || _surveyFormState$erro3 === void 0 ? void 0 : (_surveyFormState$erro4 = _surveyFormState$erro3["title"]) === null || _surveyFormState$erro4 === void 0 ? void 0 : _surveyFormState$erro4.message))), /*#__PURE__*/React.createElement("div", {
28152
28144
  className: "survey-column",
28153
28145
  style: {
28154
- width: '100%'
28146
+ width: "100%"
28155
28147
  }
28156
28148
  }, /*#__PURE__*/React.createElement("label", null, t("CS_SURVEY_DESCRIPTION")), /*#__PURE__*/React.createElement(TextInput$1, {
28157
28149
  name: "description",