@mseva/digit-ui-module-ptr 1.3.7 → 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.
@@ -17097,7 +17097,7 @@ function NewApplicationTimeline({
17097
17097
  }, /*#__PURE__*/React.createElement("h3", {
17098
17098
  className: "custom-action-title"
17099
17099
  }, t("Action")), /*#__PURE__*/React.createElement("div", {
17100
- className: "custom-status-text"
17100
+ className: `custom-status-text ${(item === null || item === void 0 ? void 0 : item.performedAction) === "OBSERVATION" ? "chb-slot-status--unavailable" : ""}`
17101
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", {
17102
17102
  className: "custom-comments-section container-full-width"
17103
17103
  }, /*#__PURE__*/React.createElement("div", {
@@ -20072,7 +20072,7 @@ var toString_1$1 = renderCanvas.bind(null, function (data, _, opts) {
20072
20072
  });
20073
20073
 
20074
20074
  const PTRApplicationDetails = () => {
20075
- 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;
20076
20076
  const {
20077
20077
  t
20078
20078
  } = useTranslation();
@@ -20206,38 +20206,35 @@ const PTRApplicationDetails = () => {
20206
20206
  const dowloadOptions = [];
20207
20207
  dowloadOptions.push({
20208
20208
  label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
20209
- onClick: () => {
20210
- var _reciept_data$Payment;
20211
- return getRecieptSearch({
20212
- 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,
20213
- payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20214
- pdfkey: "petacknowledgement"
20215
- });
20216
- }
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
+ })
20217
20214
  });
20218
- 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") {
20219
20216
  dowloadOptions.push({
20220
20217
  label: t("PTR_CERTIFICATE"),
20221
20218
  onClick: () => {
20222
- var _reciept_data$Payment4;
20219
+ var _reciept_data$Payment3;
20223
20220
  return getRecieptSearch({
20224
- 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,
20225
20222
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20226
20223
  pdfkey: "petcertificatenew"
20227
20224
  });
20228
20225
  }
20229
20226
  });
20230
20227
  } else {
20231
- var _reciept_data$Payment5;
20232
- 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);
20233
20230
  }
20234
20231
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
20235
20232
  dowloadOptions.push({
20236
20233
  label: t("PTR_FEE_RECIEPT"),
20237
20234
  onClick: () => {
20238
- var _reciept_data$Payment6;
20235
+ var _reciept_data$Payment5;
20239
20236
  return getRecieptSearch({
20240
- 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,
20241
20238
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20242
20239
  pdfkey: "petservice-receipt"
20243
20240
  });
@@ -22137,7 +22134,7 @@ const NewApplication = () => {
22137
22134
  };
22138
22135
 
22139
22136
  const ApplicationDetails = () => {
22140
- 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;
22141
22138
  const {
22142
22139
  t
22143
22140
  } = useTranslation();
@@ -22285,38 +22282,35 @@ const ApplicationDetails = () => {
22285
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");
22286
22283
  dowloadOptions.push({
22287
22284
  label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
22288
- onClick: () => {
22289
- var _reciept_data$Payment;
22290
- return getRecieptSearch({
22291
- 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,
22292
- payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22293
- pdfkey: "petacknowledgement"
22294
- });
22295
- }
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
+ })
22296
22290
  });
22297
- 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") {
22298
22292
  dowloadOptions.push({
22299
22293
  label: t("PTR_CERTIFICATE"),
22300
22294
  onClick: () => {
22301
- var _reciept_data$Payment4;
22295
+ var _reciept_data$Payment3;
22302
22296
  return getRecieptSearch({
22303
- 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,
22304
22298
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22305
22299
  pdfkey: "petcertificatenew"
22306
22300
  });
22307
22301
  }
22308
22302
  });
22309
22303
  } else {
22310
- var _reciept_data$Payment5;
22311
- 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);
22312
22306
  }
22313
22307
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
22314
22308
  dowloadOptions.push({
22315
22309
  label: t("PTR_FEE_RECIEPT"),
22316
22310
  onClick: () => {
22317
- var _reciept_data$Payment6;
22311
+ var _reciept_data$Payment5;
22318
22312
  return getRecieptSearch({
22319
- 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,
22320
22314
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22321
22315
  pdfkey: "pet-receipt-employee"
22322
22316
  });