@mseva/digit-ui-module-noc 1.0.86 → 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",
@@ -17559,7 +17560,7 @@ const DigitCameraCapture = ({
17559
17560
  const mediaStream = await navigator.mediaDevices.getUserMedia({
17560
17561
  video: {
17561
17562
  facingMode: {
17562
- ideal: "environment"
17563
+ exact: "environment"
17563
17564
  }
17564
17565
  },
17565
17566
  audio: false
@@ -17986,39 +17987,19 @@ function PTRSelectDocument({
17986
17987
  display: "inline"
17987
17988
  }
17988
17989
  }, /*#__PURE__*/React.createElement(CardLabel, {
17989
- style: {
17990
- marginBottom: "8px",
17991
- width: "auto"
17992
- }
17990
+ className: "bpa-owner-cardlabel-negative-margin ads-search-container"
17993
17991
  }, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", /*#__PURE__*/React.createElement("span", {
17994
17992
  style: {
17995
17993
  color: "red"
17996
17994
  }
17997
17995
  }, " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *")), /*#__PURE__*/React.createElement("div", {
17998
- className: "field",
17999
- style: {
18000
- width: "100%"
18001
- }
17996
+ className: "field payment-form-text-input-correction"
18002
17997
  }, /*#__PURE__*/React.createElement("div", {
18003
17998
  className: `upload-file upload-file-max-width`
18004
17999
  }, /*#__PURE__*/React.createElement("div", {
18005
- style: {
18006
- display: "flex",
18007
- justifyContent: "flex-start",
18008
- alignItems: "center",
18009
- flexWrap: "wrap",
18010
- margin: "0px",
18011
- padding: "0px"
18012
- }
18000
+ className: "obps-document-detail-item zero-margin-padding"
18013
18001
  }, /*#__PURE__*/React.createElement("div", {
18014
- style: {
18015
- height: "auto",
18016
- minHeight: "40px",
18017
- width: "43%",
18018
- maxHeight: "40px",
18019
- margin: "5px",
18020
- padding: "0px"
18021
- }
18002
+ className: "auto-height-box-43"
18022
18003
  }, /*#__PURE__*/React.createElement(SubmitBar, {
18023
18004
  label: t("CAPTURE_IMAGE"),
18024
18005
  onSubmit: () => {
@@ -18029,19 +18010,9 @@ function PTRSelectDocument({
18029
18010
  }
18030
18011
  }
18031
18012
  })), uploadedFile && /*#__PURE__*/React.createElement("div", {
18032
- style: !mobile ? {
18033
- margin: "0px",
18034
- display: "flex",
18035
- justifyContent: "center",
18036
- padding: "0px",
18037
- width: "46%"
18038
- } : {
18039
- width: "80%",
18040
- display: "flex",
18041
- marginBottom: "10px",
18042
- justifyContent: "center"
18043
- }
18013
+ className: !mobile ? "center-flex-desktop" : "center-flex-mobile"
18044
18014
  }, /*#__PURE__*/React.createElement(SubmitBar, {
18015
+ className: "view-button",
18045
18016
  onSubmit: () => {
18046
18017
  routeTo(uploadedFile);
18047
18018
  },
@@ -21244,6 +21215,7 @@ const NOCEmployeeApplicationOverview = () => {
21244
21215
  pdfkey = "noc-sanctionletter",
21245
21216
  ...params
21246
21217
  }) {
21218
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
21247
21219
  try {
21248
21220
  var _applicationDetails$N16, _application$nocDetai, _application$nocDetai2;
21249
21221
  setLoader(true);
@@ -21251,6 +21223,7 @@ const NOCEmployeeApplicationOverview = () => {
21251
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;
21252
21224
  if (!fileStoreId) {
21253
21225
  const nocSanctionData = await getNOCSanctionLetter(application, t, EmpData, finalComment);
21226
+ Digit.StoreData.getCurrentLanguage = () => "pn_IN";
21254
21227
  const response = await Digit.PaymentService.generatePdf(tenantId, {
21255
21228
  Payments: [{
21256
21229
  ...payments,
@@ -21264,6 +21237,7 @@ const NOCEmployeeApplicationOverview = () => {
21264
21237
  console.error("Sanction Letter download error:", error);
21265
21238
  } finally {
21266
21239
  setLoader(false);
21240
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
21267
21241
  }
21268
21242
  }
21269
21243
  const printCertificateWithESign = async () => {
@@ -21620,12 +21594,12 @@ const NOCEmployeeApplicationOverview = () => {
21620
21594
  }
21621
21595
  }
21622
21596
  const additionalRemarks = fieldInspectionPending === null || fieldInspectionPending === void 0 ? void 0 : (_fieldInspectionPendi5 = fieldInspectionPending[0]) === null || _fieldInspectionPendi5 === void 0 ? void 0 : _fieldInspectionPendi5["Remarks_19"];
21623
- if (additionalRemarks && additionalRemarks.trim().split(/\s+/).filter(Boolean).length < 20) {
21597
+ if (additionalRemarks && additionalRemarks.trim().length < 20) {
21624
21598
  closeModal();
21625
21599
  setShowToast({
21626
21600
  key: "true",
21627
21601
  error: true,
21628
- message: "Additional remarks must be at least 20 words long"
21602
+ message: "Additional remarks must be at least 20 characters long"
21629
21603
  });
21630
21604
  return;
21631
21605
  }
@@ -30046,6 +30020,7 @@ const CitizenApplicationOverview = () => {
30046
30020
  pdfkey = "noc-sanctionletter",
30047
30021
  ...params
30048
30022
  }) {
30023
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
30049
30024
  try {
30050
30025
  var _applicationDetails$N14, _applicationDetails$N15, _applicationDetails$N16, _applicationDetails$N17, _applicationDetails$N18;
30051
30026
  setLoading(true);
@@ -30054,6 +30029,7 @@ const CitizenApplicationOverview = () => {
30054
30029
  if (!fileStoreId) {
30055
30030
  var _applicationDetails$N19, _application$nocDetai;
30056
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";
30057
30033
  const response = await Digit.PaymentService.generatePdf(tenantId, {
30058
30034
  Payments: [{
30059
30035
  ...payments,
@@ -30086,6 +30062,7 @@ const CitizenApplicationOverview = () => {
30086
30062
  await downloadPdfFromURL(receiptUrl);
30087
30063
  } catch (error) {} finally {
30088
30064
  setLoading(false);
30065
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
30089
30066
  }
30090
30067
  }
30091
30068
  async function getRejectionLetterReceipt({
@@ -30095,11 +30072,13 @@ const CitizenApplicationOverview = () => {
30095
30072
  pdfkey = "noc-rejectionletter",
30096
30073
  ...params
30097
30074
  }) {
30075
+ const prevGetLang = Digit.StoreData.getCurrentLanguage;
30098
30076
  try {
30099
30077
  var _applicationDetails$N20;
30100
30078
  setLoading(true);
30101
30079
  let fileStoreId = null;
30102
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";
30103
30082
  const response = await Digit.PaymentService.generatePdf(tenantId, {
30104
30083
  Payments: [{
30105
30084
  ...payments,
@@ -30117,6 +30096,7 @@ const CitizenApplicationOverview = () => {
30117
30096
  console.error("rejection Letter download error:", error);
30118
30097
  } finally {
30119
30098
  setLoading(false);
30099
+ Digit.StoreData.getCurrentLanguage = prevGetLang;
30120
30100
  }
30121
30101
  }
30122
30102
  const dowloadOptions = [];