@mseva/digit-ui-module-noc 1.0.87 → 1.0.88

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.
@@ -7713,6 +7713,7 @@ const Response = props => {
7713
7713
  };
7714
7714
  const onGoToNOC = () => {
7715
7715
  history.push(`/digit-ui/employee/noc/inbox`);
7716
+ window.location.reload();
7716
7717
  };
7717
7718
  const onViewApplication = () => {
7718
7719
  history.push(`/digit-ui/citizen/noc/search/application-overview/${nocCode}`);
@@ -8325,9 +8326,9 @@ const configBPAApproverApplication = ({
8325
8326
  },
8326
8327
  form: [{
8327
8328
  body: [{
8328
- label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
8329
+ label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
8329
8330
  type: "dropdown",
8330
- populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
8331
+ populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
8331
8332
  option: approvers,
8332
8333
  autoComplete: "off",
8333
8334
  optionKey: "name",
@@ -9081,7 +9082,7 @@ const ActionModal$1 = ({
9081
9082
  };
9082
9083
  }));
9083
9084
  }
9084
- }, [approverData, EmployeeStatusData]);
9085
+ }, [approverData]);
9085
9086
  function selectFile(e) {
9086
9087
  setFile(e.target.files[0]);
9087
9088
  }
@@ -14145,7 +14146,7 @@ function NewApplicationTimeline({
14145
14146
  }))), /*#__PURE__*/React.createElement("div", {
14146
14147
  className: "custom-timeline-entries"
14147
14148
  }, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
14148
- 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;
14149
+ 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;
14149
14150
  return /*#__PURE__*/React.createElement("div", {
14150
14151
  key: index,
14151
14152
  className: "custom-timeline-entry"
@@ -14182,9 +14183,13 @@ function NewApplicationTimeline({
14182
14183
  className: "custom-officer-info"
14183
14184
  }, /*#__PURE__*/React.createElement("div", {
14184
14185
  className: "custom-officer-name"
14185
- }, (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", {
14186
+ }, (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", {
14186
14187
  className: "custom-officer-name"
14187
- }, 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", {
14188
+ }, "- ", 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", {
14189
+ className: "custom-officer-email"
14190
+ }, /*#__PURE__*/React.createElement("span", {
14191
+ className: "custom-email-label"
14192
+ }, 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", {
14188
14193
  className: "custom-card-column custom-card-column-mid"
14189
14194
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
14190
14195
  className: "custom-action-title"
@@ -16585,7 +16590,7 @@ const NOCFeeTable = ({
16585
16590
  window.addEventListener("resize", checkMobile);
16586
16591
  return () => window.removeEventListener("resize", checkMobile);
16587
16592
  }, []);
16588
- console.log('feeHistory', feeHistory);
16593
+ console.log("feeHistory", feeHistory);
16589
16594
  const columns = [{
16590
16595
  key: "title",
16591
16596
  label: "BPA_TAXHEAD_CODE",
@@ -16597,6 +16602,7 @@ const NOCFeeTable = ({
16597
16602
  headerLabel: "BPA_AMOUNT",
16598
16603
  type: "custom",
16599
16604
  render: (row, rowIndex, t) => {
16605
+ var _feeData$row$index, _feeData$row$index2;
16600
16606
  if (row.taxHeadCode === "NOC_TOTAL") {
16601
16607
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
16602
16608
  style: {
@@ -16615,7 +16621,7 @@ const NOCFeeTable = ({
16615
16621
  t: t,
16616
16622
  type: "number",
16617
16623
  isMandatory: false,
16618
- value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount || row.amount || "",
16624
+ 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 || "",
16619
16625
  onChange: e => {
16620
16626
  let val = e.target.value;
16621
16627
  if (val.length > 1 && val.startsWith("0")) {
@@ -16634,20 +16640,20 @@ const NOCFeeTable = ({
16634
16640
  headerLabel: "BPA_REMARKS",
16635
16641
  type: "custom",
16636
16642
  render: (row, rowIndex, t) => {
16637
- var _feeData$row$index2;
16643
+ var _feeData$row$index4;
16638
16644
  if (row.taxHeadCode === "NOC_TOTAL") {
16639
16645
  return " ";
16640
16646
  }
16641
16647
  if (disable) {
16642
- var _feeData$row$index;
16643
- 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, {
16648
+ var _feeData$row$index3;
16649
+ 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, {
16644
16650
  placeholder: "Enter remarks",
16645
16651
  disabled: true,
16646
16652
  className: "custom-fee-table-textarea"
16647
16653
  }));
16648
16654
  }
16649
16655
  return /*#__PURE__*/React.createElement(TextArea, {
16650
- value: ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.remark) || "",
16656
+ value: ((_feeData$row$index4 = feeData[row.index]) === null || _feeData$row$index4 === void 0 ? void 0 : _feeData$row$index4.remark) || "",
16651
16657
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16652
16658
  disabled: false,
16653
16659
  className: "custom-fee-table-textarea",
@@ -16715,7 +16721,7 @@ const NOCFeeTable = ({
16715
16721
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
16716
16722
  className: "custom-fee-mobile-cards"
16717
16723
  }, feeDataWithTotal.map((row, i) => {
16718
- var _feeData$row$index3;
16724
+ var _feeData$row$index5, _feeData$row$index6, _feeData$row$index7;
16719
16725
  return /*#__PURE__*/React.createElement("div", {
16720
16726
  key: row.index || i,
16721
16727
  className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
@@ -16735,7 +16741,7 @@ const NOCFeeTable = ({
16735
16741
  t: t,
16736
16742
  type: "text",
16737
16743
  isMandatory: false,
16738
- 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 : "",
16744
+ 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 || "",
16739
16745
  onChange: e => {
16740
16746
  let val = e.target.value;
16741
16747
  if (/^\d*\.?\d*$/.test(val)) {
@@ -16762,7 +16768,7 @@ const NOCFeeTable = ({
16762
16768
  }, /*#__PURE__*/React.createElement("label", {
16763
16769
  className: "custom-fee-card-label"
16764
16770
  }, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
16765
- value: ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || "",
16771
+ value: ((_feeData$row$index7 = feeData[row.index]) === null || _feeData$row$index7 === void 0 ? void 0 : _feeData$row$index7.remark) || "",
16766
16772
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16767
16773
  disabled: disable,
16768
16774
  className: "custom-fee-table-textarea",
@@ -17554,7 +17560,7 @@ const DigitCameraCapture = ({
17554
17560
  const mediaStream = await navigator.mediaDevices.getUserMedia({
17555
17561
  video: {
17556
17562
  facingMode: {
17557
- ideal: "environment"
17563
+ exact: "environment"
17558
17564
  }
17559
17565
  },
17560
17566
  audio: false
@@ -17981,39 +17987,19 @@ function PTRSelectDocument({
17981
17987
  display: "inline"
17982
17988
  }
17983
17989
  }, /*#__PURE__*/React.createElement(CardLabel, {
17984
- style: {
17985
- marginBottom: "8px",
17986
- width: "auto"
17987
- }
17990
+ className: "bpa-owner-cardlabel-negative-margin ads-search-container"
17988
17991
  }, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", /*#__PURE__*/React.createElement("span", {
17989
17992
  style: {
17990
17993
  color: "red"
17991
17994
  }
17992
17995
  }, " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *")), /*#__PURE__*/React.createElement("div", {
17993
- className: "field",
17994
- style: {
17995
- width: "100%"
17996
- }
17996
+ className: "field payment-form-text-input-correction"
17997
17997
  }, /*#__PURE__*/React.createElement("div", {
17998
17998
  className: `upload-file upload-file-max-width`
17999
17999
  }, /*#__PURE__*/React.createElement("div", {
18000
- style: {
18001
- display: "flex",
18002
- justifyContent: "flex-start",
18003
- alignItems: "center",
18004
- flexWrap: "wrap",
18005
- margin: "0px",
18006
- padding: "0px"
18007
- }
18000
+ className: "obps-document-detail-item zero-margin-padding"
18008
18001
  }, /*#__PURE__*/React.createElement("div", {
18009
- style: {
18010
- height: "auto",
18011
- minHeight: "40px",
18012
- width: "43%",
18013
- maxHeight: "40px",
18014
- margin: "5px",
18015
- padding: "0px"
18016
- }
18002
+ className: "auto-height-box-43"
18017
18003
  }, /*#__PURE__*/React.createElement(SubmitBar, {
18018
18004
  label: t("CAPTURE_IMAGE"),
18019
18005
  onSubmit: () => {
@@ -18024,19 +18010,9 @@ function PTRSelectDocument({
18024
18010
  }
18025
18011
  }
18026
18012
  })), uploadedFile && /*#__PURE__*/React.createElement("div", {
18027
- style: !mobile ? {
18028
- margin: "0px",
18029
- display: "flex",
18030
- justifyContent: "center",
18031
- padding: "0px",
18032
- width: "46%"
18033
- } : {
18034
- width: "80%",
18035
- display: "flex",
18036
- marginBottom: "10px",
18037
- justifyContent: "center"
18038
- }
18013
+ className: !mobile ? "center-flex-desktop" : "center-flex-mobile"
18039
18014
  }, /*#__PURE__*/React.createElement(SubmitBar, {
18015
+ className: "view-button",
18040
18016
  onSubmit: () => {
18041
18017
  routeTo(uploadedFile);
18042
18018
  },
@@ -18520,7 +18496,6 @@ const InspectionReport$1 = ({
18520
18496
  sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
18521
18497
  }, [FieldReports]);
18522
18498
  useEffect$1(() => {
18523
- console.log("useffect 2INSPECTION_REPORT_PENDING");
18524
18499
  let ques = [];
18525
18500
  let documentlist = [];
18526
18501
  bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
@@ -18995,15 +18970,15 @@ const getSiteDetails = (appData, t) => {
18995
18970
  }, {
18996
18971
  title: t("NOC_ROAD_TYPE_LABEL"),
18997
18972
  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"
18998
- }, {
18999
- title: t("NOC_NET_TOTAL_AREA_LABEL"),
19000
- 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"
19001
18973
  }, {
19002
18974
  title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
19003
- 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"
18975
+ 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"
19004
18976
  }, {
19005
18977
  title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
19006
- 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"
18978
+ 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"
18979
+ }, {
18980
+ title: t("NOC_NET_TOTAL_AREA_LABEL"),
18981
+ 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"
19007
18982
  }, {
19008
18983
  title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
19009
18984
  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"
@@ -19231,7 +19206,6 @@ const getJESiteImages = async (appData, t, stateCode) => {
19231
19206
  const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
19232
19207
  const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
19233
19208
  const exifData = await getExifDataFromUrl(exiflink);
19234
- console.log("exifData in siteImages", exifData);
19235
19209
  if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
19236
19210
  exifData.Orientation = 1;
19237
19211
  }
@@ -21241,6 +21215,7 @@ const NOCEmployeeApplicationOverview = () => {
21241
21215
  pdfkey = "noc-sanctionletter",
21242
21216
  ...params
21243
21217
  }) {
21218
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
21244
21219
  try {
21245
21220
  var _applicationDetails$N16, _application$nocDetai, _application$nocDetai2;
21246
21221
  setLoader(true);
@@ -21248,6 +21223,7 @@ const NOCEmployeeApplicationOverview = () => {
21248
21223
  let fileStoreId = application === null || application === void 0 ? void 0 : (_application$nocDetai = application.nocDetails) === null || _application$nocDetai === void 0 ? void 0 : (_application$nocDetai2 = _application$nocDetai.additionalDetails) === null || _application$nocDetai2 === void 0 ? void 0 : _application$nocDetai2.sanctionLetterFilestoreId;
21249
21224
  if (!fileStoreId) {
21250
21225
  const nocSanctionData = await getNOCSanctionLetter(application, t, EmpData, finalComment);
21226
+ Digit.StoreData.getCurrentLanguage = () => "pn_IN";
21251
21227
  const response = await Digit.PaymentService.generatePdf(tenantId, {
21252
21228
  Payments: [{
21253
21229
  ...payments,
@@ -21261,6 +21237,7 @@ const NOCEmployeeApplicationOverview = () => {
21261
21237
  console.error("Sanction Letter download error:", error);
21262
21238
  } finally {
21263
21239
  setLoader(false);
21240
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
21264
21241
  }
21265
21242
  }
21266
21243
  const printCertificateWithESign = async () => {
@@ -21617,12 +21594,12 @@ const NOCEmployeeApplicationOverview = () => {
21617
21594
  }
21618
21595
  }
21619
21596
  const additionalRemarks = fieldInspectionPending === null || fieldInspectionPending === void 0 ? void 0 : (_fieldInspectionPendi5 = fieldInspectionPending[0]) === null || _fieldInspectionPendi5 === void 0 ? void 0 : _fieldInspectionPendi5["Remarks_19"];
21620
- if (additionalRemarks && additionalRemarks.trim().split(/\s+/).filter(Boolean).length < 20) {
21597
+ if (additionalRemarks && additionalRemarks.trim().length < 20) {
21621
21598
  closeModal();
21622
21599
  setShowToast({
21623
21600
  key: "true",
21624
21601
  error: true,
21625
- message: "Additional remarks must be at least 20 words long"
21602
+ message: "Additional remarks must be at least 20 characters long"
21626
21603
  });
21627
21604
  return;
21628
21605
  }
@@ -28058,8 +28035,6 @@ function NOCSummary({
28058
28035
  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;
28059
28036
  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;
28060
28037
  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();
28061
- console.log('applicationNo, submittedOn', applicationNo, submittedOn);
28062
- console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
28063
28038
  return /*#__PURE__*/React.createElement("div", {
28064
28039
  className: "employee-main-application-details"
28065
28040
  }, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
@@ -30045,6 +30020,7 @@ const CitizenApplicationOverview = () => {
30045
30020
  pdfkey = "noc-sanctionletter",
30046
30021
  ...params
30047
30022
  }) {
30023
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
30048
30024
  try {
30049
30025
  var _applicationDetails$N14, _applicationDetails$N15, _applicationDetails$N16, _applicationDetails$N17, _applicationDetails$N18;
30050
30026
  setLoading(true);
@@ -30053,6 +30029,7 @@ const CitizenApplicationOverview = () => {
30053
30029
  if (!fileStoreId) {
30054
30030
  var _applicationDetails$N19, _application$nocDetai;
30055
30031
  const nocSanctionData = await getNOCSanctionLetter(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N19 = applicationDetails.Noc) === null || _applicationDetails$N19 === void 0 ? void 0 : _applicationDetails$N19[0], t, EmpData, finalComment);
30032
+ Digit.StoreData.getCurrentLanguage = () => "pn_IN";
30056
30033
  const response = await Digit.PaymentService.generatePdf(tenantId, {
30057
30034
  Payments: [{
30058
30035
  ...payments,
@@ -30085,6 +30062,7 @@ const CitizenApplicationOverview = () => {
30085
30062
  await downloadPdfFromURL(receiptUrl);
30086
30063
  } catch (error) {} finally {
30087
30064
  setLoading(false);
30065
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
30088
30066
  }
30089
30067
  }
30090
30068
  async function getRejectionLetterReceipt({
@@ -30094,11 +30072,13 @@ const CitizenApplicationOverview = () => {
30094
30072
  pdfkey = "noc-rejectionletter",
30095
30073
  ...params
30096
30074
  }) {
30075
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
30097
30076
  try {
30098
30077
  var _applicationDetails$N20;
30099
30078
  setLoading(true);
30100
30079
  let fileStoreId = null;
30101
30080
  const nocSanctionData = await getNOCSanctionLetter(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N20 = applicationDetails.Noc) === null || _applicationDetails$N20 === void 0 ? void 0 : _applicationDetails$N20[0], t, EmpData, finalComment);
30081
+ Digit.StoreData.getCurrentLanguage = () => "pn_IN";
30102
30082
  const response = await Digit.PaymentService.generatePdf(tenantId, {
30103
30083
  Payments: [{
30104
30084
  ...payments,
@@ -30116,6 +30096,7 @@ const CitizenApplicationOverview = () => {
30116
30096
  console.error("rejection Letter download error:", error);
30117
30097
  } finally {
30118
30098
  setLoading(false);
30099
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
30119
30100
  }
30120
30101
  }
30121
30102
  const dowloadOptions = [];