@mseva/digit-ui-module-ptr 1.3.4-dev.2.10 → 1.3.4-dev.2.11

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.
@@ -17093,7 +17093,7 @@ function NewApplicationTimeline({
17093
17093
  }, /*#__PURE__*/React.createElement("h3", {
17094
17094
  className: "custom-action-title"
17095
17095
  }, t("Action")), /*#__PURE__*/React.createElement("div", {
17096
- className: "custom-status-text"
17096
+ className: `custom-status-text ${(item === null || item === void 0 ? void 0 : item.performedAction) === "OBSERVATION" ? "chb-slot-status--unavailable" : ""}`
17097
17097
  }, 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
17098
  className: "custom-comments-section container-full-width"
17099
17099
  }, /*#__PURE__*/React.createElement("div", {
@@ -20068,7 +20068,7 @@ var toString_1$1 = renderCanvas.bind(null, function (data, _, opts) {
20068
20068
  });
20069
20069
 
20070
20070
  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;
20071
+ 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
20072
  const {
20073
20073
  t
20074
20074
  } = useTranslation();
@@ -20202,38 +20202,35 @@ const PTRApplicationDetails = () => {
20202
20202
  const dowloadOptions = [];
20203
20203
  dowloadOptions.push({
20204
20204
  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
- }
20205
+ onClick: () => getRecieptSearch({
20206
+ tenantId: tenantId,
20207
+ payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20208
+ pdfkey: "petacknowledgement"
20209
+ })
20213
20210
  });
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") {
20211
+ 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
20212
  dowloadOptions.push({
20216
20213
  label: t("PTR_CERTIFICATE"),
20217
20214
  onClick: () => {
20218
- var _reciept_data$Payment4;
20215
+ var _reciept_data$Payment3;
20219
20216
  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,
20217
+ 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
20218
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20222
20219
  pdfkey: "petcertificatenew"
20223
20220
  });
20224
20221
  }
20225
20222
  });
20226
20223
  } 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);
20224
+ var _reciept_data$Payment4;
20225
+ 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
20226
  }
20230
20227
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
20231
20228
  dowloadOptions.push({
20232
20229
  label: t("PTR_FEE_RECIEPT"),
20233
20230
  onClick: () => {
20234
- var _reciept_data$Payment6;
20231
+ var _reciept_data$Payment5;
20235
20232
  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,
20233
+ 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
20234
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
20238
20235
  pdfkey: "petservice-receipt"
20239
20236
  });
@@ -22133,7 +22130,7 @@ const NewApplication = () => {
22133
22130
  };
22134
22131
 
22135
22132
  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;
22133
+ 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
22134
  const {
22138
22135
  t
22139
22136
  } = useTranslation();
@@ -22281,38 +22278,35 @@ const ApplicationDetails = () => {
22281
22278
  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
22279
  dowloadOptions.push({
22283
22280
  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
- }
22281
+ onClick: () => getRecieptSearch({
22282
+ tenantId: tenantId,
22283
+ payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22284
+ pdfkey: "petacknowledgement"
22285
+ })
22292
22286
  });
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") {
22287
+ 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
22288
  dowloadOptions.push({
22295
22289
  label: t("PTR_CERTIFICATE"),
22296
22290
  onClick: () => {
22297
- var _reciept_data$Payment4;
22291
+ var _reciept_data$Payment3;
22298
22292
  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,
22293
+ 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
22294
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22301
22295
  pdfkey: "petcertificatenew"
22302
22296
  });
22303
22297
  }
22304
22298
  });
22305
22299
  } 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);
22300
+ var _reciept_data$Payment4;
22301
+ 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
22302
  }
22309
22303
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && !recieptDataLoading) {
22310
22304
  dowloadOptions.push({
22311
22305
  label: t("PTR_FEE_RECIEPT"),
22312
22306
  onClick: () => {
22313
- var _reciept_data$Payment6;
22307
+ var _reciept_data$Payment5;
22314
22308
  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,
22309
+ 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
22310
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0],
22317
22311
  pdfkey: "pet-receipt-employee"
22318
22312
  });