@mseva/digit-ui-module-ptr 1.3.8 → 1.3.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.
@@ -17041,7 +17041,7 @@ function NewApplicationTimeline({
17041
17041
  }))), /*#__PURE__*/React.createElement("div", {
17042
17042
  className: "custom-timeline-entries"
17043
17043
  }, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
17044
- 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;
17044
+ 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;
17045
17045
  return /*#__PURE__*/React.createElement("div", {
17046
17046
  key: index,
17047
17047
  className: "custom-timeline-entry"
@@ -17078,9 +17078,13 @@ function NewApplicationTimeline({
17078
17078
  className: "custom-officer-info"
17079
17079
  }, /*#__PURE__*/React.createElement("div", {
17080
17080
  className: "custom-officer-name"
17081
- }, (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", {
17081
+ }, (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", {
17082
17082
  className: "custom-officer-name"
17083
- }, 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", {
17083
+ }, "- ", 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", {
17084
+ className: "custom-officer-email"
17085
+ }, /*#__PURE__*/React.createElement("span", {
17086
+ className: "custom-email-label"
17087
+ }, 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", {
17084
17088
  className: "custom-card-column custom-card-column-mid"
17085
17089
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
17086
17090
  className: "custom-action-title"
@@ -17093,7 +17097,7 @@ function NewApplicationTimeline({
17093
17097
  }, /*#__PURE__*/React.createElement("h3", {
17094
17098
  className: "custom-action-title"
17095
17099
  }, t("Action")), /*#__PURE__*/React.createElement("div", {
17096
- className: "custom-status-text"
17100
+ className: `custom-status-text ${(item === null || item === void 0 ? void 0 : item.performedAction) === "OBSERVATION" ? "chb-slot-status--unavailable" : ""}`
17097
17101
  }, t((item === null || item === void 0 ? void 0 : item.performedAction) || "CS_COMMON_NA")))), (item === null || item === void 0 ? void 0 : item.wfComment) && (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment.length) > 0 && (item === null || item === void 0 ? void 0 : (_item$wfComment2 = item.wfComment) === null || _item$wfComment2 === void 0 ? void 0 : _item$wfComment2.some(c => c === null || c === void 0 ? void 0 : c.trim())) && /*#__PURE__*/React.createElement("div", {
17098
17102
  className: "custom-comments-section container-full-width"
17099
17103
  }, /*#__PURE__*/React.createElement("div", {
@@ -20068,7 +20072,7 @@ var toString_1$1 = renderCanvas.bind(null, function (data, _, opts) {
20068
20072
  });
20069
20073
 
20070
20074
  const PTRApplicationDetails = () => {
20071
- var _pet_details$addition, _reciept_data$Payment2, _reciept_data$Payment3, _pet_details$owner, _pet_details$owner2, _pet_details$owner3, _pet_details$owner4, _pet_details$owner5, _pet_details$address, _pet_details$address2, _pet_details$petDetai, _pet_details$petDetai2, _pet_details$petDetai3, _pet_details$petDetai4, _pet_details$petDetai5, _pet_details$petDetai6, _pet_details$petDetai8, _pet_details$petDetai9, _pet_details$petDetai0;
20075
+ var _pet_details$addition, _reciept_data$Payment, _reciept_data$Payment2, _pet_details$owner, _pet_details$owner2, _pet_details$owner3, _pet_details$owner4, _pet_details$owner5, _pet_details$address, _pet_details$address2, _pet_details$petDetai, _pet_details$petDetai2, _pet_details$petDetai3, _pet_details$petDetai4, _pet_details$petDetai5, _pet_details$petDetai6, _pet_details$petDetai8, _pet_details$petDetai9, _pet_details$petDetai0;
20072
20076
  const {
20073
20077
  t
20074
20078
  } = useTranslation();
@@ -20202,38 +20206,35 @@ const PTRApplicationDetails = () => {
20202
20206
  const dowloadOptions = [];
20203
20207
  dowloadOptions.push({
20204
20208
  label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
20205
- onClick: () => {
20206
- var _reciept_data$Payment;
20207
- return getRecieptSearch({
20208
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.tenantId,
20209
- payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20210
- pdfkey: "petacknowledgement"
20211
- });
20212
- }
20209
+ onClick: () => getRecieptSearch({
20210
+ tenantId: tenantId,
20211
+ payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20212
+ pdfkey: "petacknowledgement"
20213
+ })
20213
20214
  });
20214
- if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.paymentStatus) === "NEW" || (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.paymentStatus) === "DEPOSITED") {
20215
+ if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.paymentStatus) === "NEW" || (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.paymentStatus) === "DEPOSITED") {
20215
20216
  dowloadOptions.push({
20216
20217
  label: t("PTR_CERTIFICATE"),
20217
20218
  onClick: () => {
20218
- var _reciept_data$Payment4;
20219
+ var _reciept_data$Payment3;
20219
20220
  return getRecieptSearch({
20220
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment4 = reciept_data.Payments[0]) === null || _reciept_data$Payment4 === void 0 ? void 0 : _reciept_data$Payment4.tenantId,
20221
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.tenantId,
20221
20222
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20222
20223
  pdfkey: "petcertificatenew"
20223
20224
  });
20224
20225
  }
20225
20226
  });
20226
20227
  } else {
20227
- var _reciept_data$Payment5;
20228
- console.log("Certificate not available. Payment status:", reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment5 = reciept_data.Payments[0]) === null || _reciept_data$Payment5 === void 0 ? void 0 : _reciept_data$Payment5.paymentStatus);
20228
+ var _reciept_data$Payment4;
20229
+ console.log("Certificate not available. Payment status:", reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment4 = reciept_data.Payments[0]) === null || _reciept_data$Payment4 === void 0 ? void 0 : _reciept_data$Payment4.paymentStatus);
20229
20230
  }
20230
20231
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
20231
20232
  dowloadOptions.push({
20232
20233
  label: t("PTR_FEE_RECIEPT"),
20233
20234
  onClick: () => {
20234
- var _reciept_data$Payment6;
20235
+ var _reciept_data$Payment5;
20235
20236
  return getRecieptSearch({
20236
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment6 = reciept_data.Payments[0]) === null || _reciept_data$Payment6 === void 0 ? void 0 : _reciept_data$Payment6.tenantId,
20237
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment5 = reciept_data.Payments[0]) === null || _reciept_data$Payment5 === void 0 ? void 0 : _reciept_data$Payment5.tenantId,
20237
20238
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20238
20239
  pdfkey: "petservice-receipt"
20239
20240
  });
@@ -22133,7 +22134,7 @@ const NewApplication = () => {
22133
22134
  };
22134
22135
 
22135
22136
  const ApplicationDetails = () => {
22136
- var _pet_details$addition, _user$info, _reciept_data$Payment2, _reciept_data$Payment3, _pet_details$owner, _pet_details$owner2, _pet_details$owner3, _pet_details$owner4, _pet_details$owner5, _pet_details$address, _pet_details$address2, _pet_details$petDetai, _pet_details$petDetai2, _pet_details$petDetai3, _pet_details$petDetai4, _pet_details$petDetai5, _pet_details$petDetai6, _pet_details$petDetai8, _pet_details$petDetai9, _pet_details$petDetai0;
22137
+ var _pet_details$addition, _user$info, _reciept_data$Payment, _reciept_data$Payment2, _pet_details$owner, _pet_details$owner2, _pet_details$owner3, _pet_details$owner4, _pet_details$owner5, _pet_details$address, _pet_details$address2, _pet_details$petDetai, _pet_details$petDetai2, _pet_details$petDetai3, _pet_details$petDetai4, _pet_details$petDetai5, _pet_details$petDetai6, _pet_details$petDetai8, _pet_details$petDetai9, _pet_details$petDetai0;
22137
22138
  const {
22138
22139
  t
22139
22140
  } = useTranslation();
@@ -22281,38 +22282,35 @@ const ApplicationDetails = () => {
22281
22282
  const isCemp = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.roles.filter(role => role.code === "CEMP");
22282
22283
  dowloadOptions.push({
22283
22284
  label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
22284
- onClick: () => {
22285
- var _reciept_data$Payment;
22286
- return getRecieptSearch({
22287
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.tenantId,
22288
- payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22289
- pdfkey: "petacknowledgement"
22290
- });
22291
- }
22285
+ onClick: () => getRecieptSearch({
22286
+ tenantId: tenantId,
22287
+ payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22288
+ pdfkey: "petacknowledgement"
22289
+ })
22292
22290
  });
22293
- if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.paymentStatus) === "NEW" || (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.paymentStatus) === "DEPOSITED") {
22291
+ if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.paymentStatus) === "NEW" || (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.paymentStatus) === "DEPOSITED") {
22294
22292
  dowloadOptions.push({
22295
22293
  label: t("PTR_CERTIFICATE"),
22296
22294
  onClick: () => {
22297
- var _reciept_data$Payment4;
22295
+ var _reciept_data$Payment3;
22298
22296
  return getRecieptSearch({
22299
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment4 = reciept_data.Payments[0]) === null || _reciept_data$Payment4 === void 0 ? void 0 : _reciept_data$Payment4.tenantId,
22297
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.tenantId,
22300
22298
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22301
22299
  pdfkey: "petcertificatenew"
22302
22300
  });
22303
22301
  }
22304
22302
  });
22305
22303
  } else {
22306
- var _reciept_data$Payment5;
22307
- console.log("Certificate not available. Payment status:", reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment5 = reciept_data.Payments[0]) === null || _reciept_data$Payment5 === void 0 ? void 0 : _reciept_data$Payment5.paymentStatus);
22304
+ var _reciept_data$Payment4;
22305
+ console.log("Certificate not available. Payment status:", reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment4 = reciept_data.Payments[0]) === null || _reciept_data$Payment4 === void 0 ? void 0 : _reciept_data$Payment4.paymentStatus);
22308
22306
  }
22309
22307
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
22310
22308
  dowloadOptions.push({
22311
22309
  label: t("PTR_FEE_RECIEPT"),
22312
22310
  onClick: () => {
22313
- var _reciept_data$Payment6;
22311
+ var _reciept_data$Payment5;
22314
22312
  return getRecieptSearch({
22315
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment6 = reciept_data.Payments[0]) === null || _reciept_data$Payment6 === void 0 ? void 0 : _reciept_data$Payment6.tenantId,
22313
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment5 = reciept_data.Payments[0]) === null || _reciept_data$Payment5 === void 0 ? void 0 : _reciept_data$Payment5.tenantId,
22316
22314
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22317
22315
  pdfkey: "pet-receipt-employee"
22318
22316
  });