@mseva/digit-ui-module-noc 1.0.79-dev.8 → 1.0.79-dev.9

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.
@@ -10835,12 +10835,21 @@ const ActionModal$a = ({
10835
10835
  };
10836
10836
 
10837
10837
  const ActionModal$b = props => {
10838
+ var _props$action;
10838
10839
  if (props !== null && props !== void 0 && props.businessService.includes("PT")) {
10839
10840
  return /*#__PURE__*/React.createElement(ActionModal, props);
10840
10841
  }
10841
10842
  if (props !== null && props !== void 0 && props.businessService.includes("ptr")) {
10842
10843
  return /*#__PURE__*/React.createElement(ActionModal$6, props);
10843
10844
  }
10845
+ if ((props === null || props === void 0 ? void 0 : (_props$action = props.action) === null || _props$action === void 0 ? void 0 : _props$action.action) === "DIRECT_RENEWAL_BUTTON") {
10846
+ return /*#__PURE__*/React.createElement(ActionModal$7, Object.assign({}, props, {
10847
+ applicationData: {
10848
+ ...props.applicationData,
10849
+ workflowCode: "DIRECTRENEWAL"
10850
+ }
10851
+ }));
10852
+ }
10844
10853
  if (props !== null && props !== void 0 && props.businessService.includes("NewTL") || props !== null && props !== void 0 && props.businessService.includes("TL") || props !== null && props !== void 0 && props.businessService.includes("EDITRENEWAL")) {
10845
10854
  return /*#__PURE__*/React.createElement(ActionModal$1, props);
10846
10855
  }
@@ -15231,6 +15240,17 @@ const ApplicationDetails = props => {
15231
15240
  }
15232
15241
  if (action.action == "PAY" && window.location.href.includes("tl")) {
15233
15242
  history.push(`/digit-ui/employee/payment/collect/${applicationDetails.applicationData.businessService}/${applicationDetails.applicationData.applicationNumber}`);
15243
+ }
15244
+ if (action !== null && action !== void 0 && action.isToast) {
15245
+ console.log("➡️ isToast triggered — blocking action:", action === null || action === void 0 ? void 0 : action.action, "message:", action === null || action === void 0 ? void 0 : action.toastMessage);
15246
+ setShowToast({
15247
+ key: "error",
15248
+ error: {
15249
+ message: action === null || action === void 0 ? void 0 : action.toastMessage
15250
+ }
15251
+ });
15252
+ setTimeout(closeToast, 5000);
15253
+ return;
15234
15254
  } else if (action !== null && action !== void 0 && action.isWarningPopUp) {
15235
15255
  setWarningPopUp(true);
15236
15256
  } else if (action !== null && action !== void 0 && action.redirectionUrll) {
@@ -19413,8 +19433,14 @@ const PdfPreviewModal = ({
19413
19433
  headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
19414
19434
  onClick: onClose
19415
19435
  }),
19416
- className: className || "noc-popupStyles",
19417
- hideSubmit: true
19436
+ hideSubmit: true,
19437
+ popupStyles: {
19438
+ backgroundColor: "#fff",
19439
+ position: 'relative',
19440
+ maxHeight: '90vh',
19441
+ width: '80%',
19442
+ overflowY: 'auto'
19443
+ }
19418
19444
  }, url ? /*#__PURE__*/React.createElement("div", {
19419
19445
  style: {
19420
19446
  height: "80vh",