@mseva/digit-ui-module-ptr 1.3.4-dev.1.8 → 1.3.4-dev.2.0

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.
@@ -7785,9 +7785,9 @@ const PTRCitizenPet = ({
7785
7785
  petDetails: {
7786
7786
  ...existing.petDetails,
7787
7787
  petName: pick(data.petName, (_existing$petDetails = existing.petDetails) === null || _existing$petDetails === void 0 ? void 0 : _existing$petDetails.petName),
7788
- petType: pick(((_data$petType2 = data.petType) === null || _data$petType2 === void 0 ? void 0 : _data$petType2.name) ?? ((_data$petType3 = data.petType) === null || _data$petType3 === void 0 ? void 0 : _data$petType3.code), (_existing$petDetails2 = existing.petDetails) === null || _existing$petDetails2 === void 0 ? void 0 : _existing$petDetails2.petType),
7789
- breedType: pick(((_data$breedType2 = data.breedType) === null || _data$breedType2 === void 0 ? void 0 : _data$breedType2.name) ?? ((_data$breedType3 = data.breedType) === null || _data$breedType3 === void 0 ? void 0 : _data$breedType3.code), (_existing$petDetails3 = existing.petDetails) === null || _existing$petDetails3 === void 0 ? void 0 : _existing$petDetails3.breedType),
7790
- petGender: pick(((_data$petGender2 = data.petGender) === null || _data$petGender2 === void 0 ? void 0 : _data$petGender2.name) ?? ((_data$petGender3 = data.petGender) === null || _data$petGender3 === void 0 ? void 0 : _data$petGender3.code), (_existing$petDetails4 = existing.petDetails) === null || _existing$petDetails4 === void 0 ? void 0 : _existing$petDetails4.petGender),
7788
+ petType: pick(((_data$petType2 = data.petType) === null || _data$petType2 === void 0 ? void 0 : _data$petType2.name) || ((_data$petType3 = data.petType) === null || _data$petType3 === void 0 ? void 0 : _data$petType3.code), (_existing$petDetails2 = existing.petDetails) === null || _existing$petDetails2 === void 0 ? void 0 : _existing$petDetails2.petType),
7789
+ breedType: pick(((_data$breedType2 = data.breedType) === null || _data$breedType2 === void 0 ? void 0 : _data$breedType2.name) || ((_data$breedType3 = data.breedType) === null || _data$breedType3 === void 0 ? void 0 : _data$breedType3.code), (_existing$petDetails3 = existing.petDetails) === null || _existing$petDetails3 === void 0 ? void 0 : _existing$petDetails3.breedType),
7790
+ petGender: pick(((_data$petGender2 = data.petGender) === null || _data$petGender2 === void 0 ? void 0 : _data$petGender2.name) || ((_data$petGender3 = data.petGender) === null || _data$petGender3 === void 0 ? void 0 : _data$petGender3.code), (_existing$petDetails4 = existing.petDetails) === null || _existing$petDetails4 === void 0 ? void 0 : _existing$petDetails4.petGender),
7791
7791
  petColor: pick(data.petColor, (_existing$petDetails5 = existing.petDetails) === null || _existing$petDetails5 === void 0 ? void 0 : _existing$petDetails5.petColor),
7792
7792
  lastVaccineDate: pick(toEpochMilliseconds(data.lastVaccineDate), (_existing$petDetails6 = existing.petDetails) === null || _existing$petDetails6 === void 0 ? void 0 : _existing$petDetails6.lastVaccineDate),
7793
7793
  petAge: pick(data.petAge, (_existing$petDetails7 = existing.petDetails) === null || _existing$petDetails7 === void 0 ? void 0 : _existing$petDetails7.petAge),
@@ -16216,8 +16216,8 @@ const PTRSelectProofIdentity = ({
16216
16216
  useEffect(() => {
16217
16217
  if (Array.isArray(apiDataCheck) && apiDataCheck.length > 0 && Array.isArray(apiDataCheck[0].documents)) {
16218
16218
  const docs = apiDataCheck[0].documents.map(d => {
16219
- const fileId = (d === null || d === void 0 ? void 0 : d.fileStoreId) ?? (d === null || d === void 0 ? void 0 : d.filestoreId) ?? (d === null || d === void 0 ? void 0 : d.filestoreId) ?? (d === null || d === void 0 ? void 0 : d.documentUid) ?? null;
16220
- const documentType = (d === null || d === void 0 ? void 0 : d.documentType) ?? (d === null || d === void 0 ? void 0 : d.type) ?? (d === null || d === void 0 ? void 0 : d.code) ?? null;
16219
+ const fileId = (d === null || d === void 0 ? void 0 : d.fileStoreId) || (d === null || d === void 0 ? void 0 : d.filestoreId) || (d === null || d === void 0 ? void 0 : d.filestoreId) || (d === null || d === void 0 ? void 0 : d.documentUid) || null;
16220
+ const documentType = (d === null || d === void 0 ? void 0 : d.documentType) || (d === null || d === void 0 ? void 0 : d.type) || (d === null || d === void 0 ? void 0 : d.code) || null;
16221
16221
  return {
16222
16222
  documentType,
16223
16223
  filestoreId: fileId,
@@ -17159,7 +17159,7 @@ const PTRWFApplicationTimeline = props => {
17159
17159
  ...workflowDetails.data
17160
17160
  };
17161
17161
  }
17162
- console.log("data ==== ??Asdasdsadbkahjsdb", workflowDetails);
17162
+ console.log("data ==== ||Asdasdsadbkahjsdb", workflowDetails);
17163
17163
  const isCitizen = window.location.href.includes("citizen");
17164
17164
  const showNextActions = nextActions => {
17165
17165
  var _nextAction, _props$application5, _props$application6, _props$application7;
@@ -22675,7 +22675,7 @@ const NewApplication = () => {
22675
22675
  };
22676
22676
 
22677
22677
  const ApplicationDetails = () => {
22678
- var _tenantInfo$city, _tenantInfo$city2, _pet_details$addition, _user$info, _reciept_data$Payment7, _reciept_data$Payment8, _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;
22678
+ var _tenantInfo$city, _tenantInfo$city2, _pet_details$addition, _user$info, _user$info$roles$find, _reciept_data$Payment7, _reciept_data$Payment8, _reciept_data$Payment1, _reciept_data$Payment10, _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;
22679
22679
  const {
22680
22680
  t
22681
22681
  } = useTranslation();
@@ -23392,7 +23392,7 @@ const ApplicationDetails = () => {
23392
23392
  }
23393
23393
  let dowloadOptions = [];
23394
23394
  let user = Digit.UserService.getUser();
23395
- 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");
23395
+ const isCemp = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles$find = _user$info.roles.find(role => role.code === "PET_REG_EMPLOYEE")) === null || _user$info$roles$find === void 0 ? void 0 : _user$info$roles$find.code;
23396
23396
  dowloadOptions.push({
23397
23397
  label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
23398
23398
  onClick: () => downloadAcknowledgement()
@@ -23451,7 +23451,7 @@ const ApplicationDetails = () => {
23451
23451
  styles: {
23452
23452
  fontSize: "32px"
23453
23453
  }
23454
- }, t("CS_APPLICATION_DETAILS")), isCemp && dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
23454
+ }, t("CS_APPLICATION_DETAILS")), isCemp && ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment1 = reciept_data.Payments[0]) === null || _reciept_data$Payment1 === void 0 ? void 0 : _reciept_data$Payment1.paymentStatus) === "NEW" || (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment10 = reciept_data.Payments[0]) === null || _reciept_data$Payment10 === void 0 ? void 0 : _reciept_data$Payment10.paymentStatus) === "DEPOSITED") && dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
23455
23455
  className: "multilinkWrapper",
23456
23456
  onHeadClick: () => setShowOptions(!showOptions),
23457
23457
  displayOptions: showOptions,