@mseva/digit-ui-module-noc 1.0.79-dev.11 → 1.0.79-dev.12

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.
@@ -8285,7 +8285,10 @@ const configBPAApproverApplication = ({
8285
8285
  if ((action === null || action === void 0 ? void 0 : action.action) == "REVOCATE" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || action.action == "SKIP_PAYMENT" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK_TO_CITIZEN" || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE") {
8286
8286
  isRejectOrRevocate = true;
8287
8287
  }
8288
- console.log("actionInModal", action);
8288
+ let isCondittionalComentsRequired = false;
8289
+ if ((action === null || action === void 0 ? void 0 : action.action) == "APPROVE") {
8290
+ isCondittionalComentsRequired = true;
8291
+ }
8289
8292
  return {
8290
8293
  label: {
8291
8294
  heading: `WF_${action === null || action === void 0 ? void 0 : action.action}_APPLICATION`,
@@ -8317,7 +8320,13 @@ const configBPAApproverApplication = ({
8317
8320
  selected: selectedBlockReason,
8318
8321
  isMandatory: true
8319
8322
  }) : null
8320
- }, {
8323
+ }, ...(isCondittionalComentsRequired ? [{
8324
+ label: t("WF_CONDITIONAL_COMMENTS_LABEL"),
8325
+ type: "textarea",
8326
+ populators: {
8327
+ name: "conditionalComments"
8328
+ }
8329
+ }] : []), {
8321
8330
  label: t("WF_COMMON_COMMENTS"),
8322
8331
  type: "textarea",
8323
8332
  isMandatory: true,
@@ -9499,7 +9508,13 @@ const ActionModal$3 = ({
9499
9508
  return result;
9500
9509
  };
9501
9510
  async function submit(data) {
9502
- var _applicationData7, _applicationData8, _data$comments, _data$comments2, _workflowDetails$data6, _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, _applicationData9, _applicationData9$add, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _applicationData0, _applicationData0$add, _applicationData0$add2, _applicationData1, _applicationData1$add, _applicationData1$add2, _applicationData10, _applicationData10$ad, _applicationData10$ad2, _applicationData11, _applicationData11$ad, _applicationData11$ad2;
9511
+ var _data$comments, _data$conditionalComm, _applicationData7, _applicationData8, _data$comments2, _data$comments3, _workflowDetails$data6, _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, _applicationData9, _applicationData9$add, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27, _applicationData0, _applicationData0$add, _applicationData0$add2, _applicationData1, _applicationData1$add, _applicationData1$add2, _applicationData10, _applicationData10$ad, _applicationData10$ad2, _applicationData11, _applicationData11$ad, _applicationData11$ad2;
9512
+ const commentsText = data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.toString().trim();
9513
+ const conditionalText = data === null || data === void 0 ? void 0 : (_data$conditionalComm = data.conditionalComments) === null || _data$conditionalComm === void 0 ? void 0 : _data$conditionalComm.trim();
9514
+ let finalComments = commentsText;
9515
+ if ((action === null || action === void 0 ? void 0 : action.action) === "APPROVE" && conditionalText) {
9516
+ finalComments = `${commentsText}[#?..**]${conditionalText || ""}`;
9517
+ }
9503
9518
  applicationData = {
9504
9519
  ...applicationData,
9505
9520
  documents: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : _applicationData7.documents,
@@ -9511,8 +9526,8 @@ const ActionModal$3 = ({
9511
9526
  },
9512
9527
  workflow: {
9513
9528
  action: action === null || action === void 0 ? void 0 : action.action,
9514
- comment: (data === null || data === void 0 ? void 0 : (_data$comments = data.comments) === null || _data$comments === void 0 ? void 0 : _data$comments.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + (data === null || data === void 0 ? void 0 : data.comments) : data === null || data === void 0 ? void 0 : data.comments : null,
9515
- comments: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + (data === null || data === void 0 ? void 0 : data.comments) : data === null || data === void 0 ? void 0 : data.comments : null,
9529
+ comment: (data === null || data === void 0 ? void 0 : (_data$comments2 = data.comments) === null || _data$comments2 === void 0 ? void 0 : _data$comments2.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + finalComments : finalComments : null,
9530
+ comments: (data === null || data === void 0 ? void 0 : (_data$comments3 = data.comments) === null || _data$comments3 === void 0 ? void 0 : _data$comments3.length) > 0 ? selectedBlockReason !== null && selectedBlockReason !== void 0 && selectedBlockReason.name ? (selectedBlockReason === null || selectedBlockReason === void 0 ? void 0 : selectedBlockReason.name) + " - " + finalComments : finalComments : null,
9516
9531
  assignee: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.processInstances) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7[0]) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.state) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0.processInstances) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1[0]) === null || _workflowDetails$data10 === void 0 ? void 0 : (_workflowDetails$data11 = _workflowDetails$data10.assigner) === null || _workflowDetails$data11 === void 0 ? void 0 : _workflowDetails$data11.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
9517
9532
  assignes: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data12 = workflowDetails.data) === null || _workflowDetails$data12 === void 0 ? void 0 : (_workflowDetails$data13 = _workflowDetails$data12.processInstances) === null || _workflowDetails$data13 === void 0 ? void 0 : (_workflowDetails$data14 = _workflowDetails$data13[0]) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14.state) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.applicationStatus) === "FIELDINSPECTION_INPROGRESS" ? [workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data16 = workflowDetails.data) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16.processInstances) === null || _workflowDetails$data17 === void 0 ? void 0 : (_workflowDetails$data18 = _workflowDetails$data17[0]) === null || _workflowDetails$data18 === void 0 ? void 0 : (_workflowDetails$data19 = _workflowDetails$data18.assigner) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.uuid] : !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? null : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
9518
9533
  varificationDocuments: uploadedFile ? [{
@@ -14102,7 +14117,7 @@ function NewApplicationTimeline({
14102
14117
  }))), /*#__PURE__*/React.createElement("div", {
14103
14118
  className: "custom-timeline-entries"
14104
14119
  }, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
14105
- var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$assigner5, _item$assigner6, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
14120
+ var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
14106
14121
  return /*#__PURE__*/React.createElement("div", {
14107
14122
  key: index,
14108
14123
  className: "custom-timeline-entry"
@@ -14139,13 +14154,9 @@ function NewApplicationTimeline({
14139
14154
  className: "custom-officer-info"
14140
14155
  }, /*#__PURE__*/React.createElement("div", {
14141
14156
  className: "custom-officer-name"
14142
- }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
14157
+ }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("div", {
14143
14158
  className: "custom-officer-name"
14144
- }, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
14145
- className: "custom-officer-email"
14146
- }, /*#__PURE__*/React.createElement("span", {
14147
- className: "custom-email-label"
14148
- }, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
14159
+ }, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))), /*#__PURE__*/React.createElement("div", {
14149
14160
  className: "custom-card-column custom-card-column-mid"
14150
14161
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
14151
14162
  className: "custom-action-title"
@@ -16537,7 +16548,7 @@ const NOCFeeTable = ({
16537
16548
  window.addEventListener("resize", checkMobile);
16538
16549
  return () => window.removeEventListener("resize", checkMobile);
16539
16550
  }, []);
16540
- console.log("feeHistory", feeHistory);
16551
+ console.log('feeHistory', feeHistory);
16541
16552
  const columns = [{
16542
16553
  key: "title",
16543
16554
  label: "BPA_TAXHEAD_CODE",
@@ -16549,7 +16560,6 @@ const NOCFeeTable = ({
16549
16560
  headerLabel: "BPA_AMOUNT",
16550
16561
  type: "custom",
16551
16562
  render: (row, rowIndex, t) => {
16552
- var _feeData$row$index, _feeData$row$index2;
16553
16563
  if (row.taxHeadCode === "NOC_TOTAL") {
16554
16564
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
16555
16565
  style: {
@@ -16568,7 +16578,7 @@ const NOCFeeTable = ({
16568
16578
  t: t,
16569
16579
  type: "number",
16570
16580
  isMandatory: false,
16571
- value: ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.adjustedAmount) === 0 ? "" : ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.adjustedAmount) || row.amount || "",
16581
+ value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount || row.amount || "",
16572
16582
  onChange: e => {
16573
16583
  let val = e.target.value;
16574
16584
  if (val.length > 1 && val.startsWith("0")) {
@@ -16587,20 +16597,20 @@ const NOCFeeTable = ({
16587
16597
  headerLabel: "BPA_REMARKS",
16588
16598
  type: "custom",
16589
16599
  render: (row, rowIndex, t) => {
16590
- var _feeData$row$index4;
16600
+ var _feeData$row$index2;
16591
16601
  if (row.taxHeadCode === "NOC_TOTAL") {
16592
16602
  return " ";
16593
16603
  }
16594
16604
  if (disable) {
16595
- var _feeData$row$index3;
16596
- return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || /*#__PURE__*/React.createElement(TextArea, {
16605
+ var _feeData$row$index;
16606
+ return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.remark) || /*#__PURE__*/React.createElement(TextArea, {
16597
16607
  placeholder: "Enter remarks",
16598
16608
  disabled: true,
16599
16609
  className: "custom-fee-table-textarea"
16600
16610
  }));
16601
16611
  }
16602
16612
  return /*#__PURE__*/React.createElement(TextArea, {
16603
- value: ((_feeData$row$index4 = feeData[row.index]) === null || _feeData$row$index4 === void 0 ? void 0 : _feeData$row$index4.remark) || "",
16613
+ value: ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.remark) || "",
16604
16614
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16605
16615
  disabled: false,
16606
16616
  className: "custom-fee-table-textarea",
@@ -16668,7 +16678,7 @@ const NOCFeeTable = ({
16668
16678
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
16669
16679
  className: "custom-fee-mobile-cards"
16670
16680
  }, feeDataWithTotal.map((row, i) => {
16671
- var _feeData$row$index5, _feeData$row$index6, _feeData$row$index7;
16681
+ var _feeData$row$index3;
16672
16682
  return /*#__PURE__*/React.createElement("div", {
16673
16683
  key: row.index || i,
16674
16684
  className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
@@ -16688,7 +16698,7 @@ const NOCFeeTable = ({
16688
16698
  t: t,
16689
16699
  type: "text",
16690
16700
  isMandatory: false,
16691
- value: ((_feeData$row$index5 = feeData[row.index]) === null || _feeData$row$index5 === void 0 ? void 0 : _feeData$row$index5.adjustedAmount) === 0 ? "" : ((_feeData$row$index6 = feeData[row.index]) === null || _feeData$row$index6 === void 0 ? void 0 : _feeData$row$index6.adjustedAmount) || row.amount || "",
16701
+ value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount !== null && feeData[row.index].adjustedAmount !== undefined ? feeData[row.index].adjustedAmount : row.amount !== null && row.amount !== undefined ? row.amount : "",
16692
16702
  onChange: e => {
16693
16703
  let val = e.target.value;
16694
16704
  if (/^\d*\.?\d*$/.test(val)) {
@@ -16715,7 +16725,7 @@ const NOCFeeTable = ({
16715
16725
  }, /*#__PURE__*/React.createElement("label", {
16716
16726
  className: "custom-fee-card-label"
16717
16727
  }, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
16718
- value: ((_feeData$row$index7 = feeData[row.index]) === null || _feeData$row$index7 === void 0 ? void 0 : _feeData$row$index7.remark) || "",
16728
+ value: ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || "",
16719
16729
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16720
16730
  disabled: disable,
16721
16731
  className: "custom-fee-table-textarea",
@@ -18473,6 +18483,7 @@ const InspectionReport$1 = ({
18473
18483
  sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
18474
18484
  }, [FieldReports]);
18475
18485
  useEffect$1(() => {
18486
+ console.log("useffect 2INSPECTION_REPORT_PENDING");
18476
18487
  let ques = [];
18477
18488
  let documentlist = [];
18478
18489
  bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
@@ -18947,15 +18958,15 @@ const getSiteDetails = (appData, t) => {
18947
18958
  }, {
18948
18959
  title: t("NOC_ROAD_TYPE_LABEL"),
18949
18960
  value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails16 = appData.nocDetails) === null || _appData$nocDetails16 === void 0 ? void 0 : (_appData$nocDetails17 = _appData$nocDetails16.additionalDetails) === null || _appData$nocDetails17 === void 0 ? void 0 : (_appData$nocDetails18 = _appData$nocDetails17.siteDetails) === null || _appData$nocDetails18 === void 0 ? void 0 : (_appData$nocDetails19 = _appData$nocDetails18.roadType) === null || _appData$nocDetails19 === void 0 ? void 0 : _appData$nocDetails19.name) || (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails20 = appData.nocDetails) === null || _appData$nocDetails20 === void 0 ? void 0 : (_appData$nocDetails21 = _appData$nocDetails20.additionalDetails) === null || _appData$nocDetails21 === void 0 ? void 0 : (_appData$nocDetails22 = _appData$nocDetails21.siteDetails) === null || _appData$nocDetails22 === void 0 ? void 0 : _appData$nocDetails22.roadType) || "N/A"
18961
+ }, {
18962
+ title: t("NOC_NET_TOTAL_AREA_LABEL"),
18963
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.netTotalArea) || "N/A"
18950
18964
  }, {
18951
18965
  title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
18952
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.areaLeftForRoadWidening) || "N/A"
18966
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.areaLeftForRoadWidening) || "N/A"
18953
18967
  }, {
18954
18968
  title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
18955
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.netPlotAreaAfterWidening) || "N/A"
18956
- }, {
18957
- title: t("NOC_NET_TOTAL_AREA_LABEL"),
18958
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netTotalArea) || "N/A"
18969
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netPlotAreaAfterWidening) || "N/A"
18959
18970
  }, {
18960
18971
  title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
18961
18972
  value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.roadWidthAtSite) || "N/A"
@@ -19183,6 +19194,7 @@ const getJESiteImages = async (appData, t, stateCode) => {
19183
19194
  const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
19184
19195
  const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
19185
19196
  const exifData = await getExifDataFromUrl(exiflink);
19197
+ console.log("exifData in siteImages", exifData);
19186
19198
  if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
19187
19199
  exifData.Orientation = 1;
19188
19200
  }
@@ -19444,8 +19456,14 @@ const PdfPreviewModal = ({
19444
19456
  headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
19445
19457
  onClick: onClose
19446
19458
  }),
19447
- className: className || "noc-popupStyles",
19448
- hideSubmit: true
19459
+ hideSubmit: true,
19460
+ popupStyles: {
19461
+ backgroundColor: "#fff",
19462
+ position: 'relative',
19463
+ maxHeight: '90vh',
19464
+ width: '80%',
19465
+ overflowY: 'auto'
19466
+ }
19449
19467
  }, url ? /*#__PURE__*/React.createElement("div", {
19450
19468
  style: {
19451
19469
  height: "80vh",
@@ -21214,10 +21232,12 @@ const NOCEmployeeApplicationOverview = () => {
21214
21232
  });
21215
21233
  const application = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N17 = applicationDetails.Noc) === null || _applicationDetails$N17 === void 0 ? void 0 : _applicationDetails$N17[0];
21216
21234
  const callbackUrl = `${window.location.origin}/digit-ui/employee/noc/esign/complete/${id}`;
21235
+ const authToken = localStorage.getItem('token');
21217
21236
  eSignCertificate({
21218
21237
  fileStoreId,
21219
21238
  tenantId,
21220
- callbackUrl
21239
+ callbackUrl,
21240
+ authToken
21221
21241
  }, {
21222
21242
  onSuccess: () => console.log("✅ eSign initiated successfully"),
21223
21243
  onError: error => {
@@ -27888,6 +27908,8 @@ function NOCSummary({
27888
27908
  const propertyId = formData === null || formData === void 0 ? void 0 : (_formData$application3 = formData.applicationDetails) === null || _formData$application3 === void 0 ? void 0 : (_formData$application4 = _formData$application3.owners) === null || _formData$application4 === void 0 ? void 0 : (_formData$application5 = _formData$application4[0]) === null || _formData$application5 === void 0 ? void 0 : _formData$application5.propertyId;
27889
27909
  const applicationNo = formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$Noc = _formData$apiData.Noc) === null || _formData$apiData$Noc === void 0 ? void 0 : (_formData$apiData$Noc2 = _formData$apiData$Noc[0]) === null || _formData$apiData$Noc2 === void 0 ? void 0 : _formData$apiData$Noc2.applicationNo;
27890
27910
  const submittedOn = (formData === null || formData === void 0 ? void 0 : (_formData$apiData2 = formData.apiData) === null || _formData$apiData2 === void 0 ? void 0 : (_formData$apiData2$No = _formData$apiData2.Noc) === null || _formData$apiData2$No === void 0 ? void 0 : (_formData$apiData2$No2 = _formData$apiData2$No[0]) === null || _formData$apiData2$No2 === void 0 ? void 0 : (_formData$apiData2$No3 = _formData$apiData2$No2.nocDetails) === null || _formData$apiData2$No3 === void 0 ? void 0 : (_formData$apiData2$No4 = _formData$apiData2$No3.additionalDetails) === null || _formData$apiData2$No4 === void 0 ? void 0 : _formData$apiData2$No4.SubmittedOn) || Date.now();
27911
+ console.log('applicationNo, submittedOn', applicationNo, submittedOn);
27912
+ console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
27891
27913
  return /*#__PURE__*/React.createElement("div", {
27892
27914
  className: "employee-main-application-details"
27893
27915
  }, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {