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

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.
@@ -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, _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;
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;
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$find = _user$info.roles.find(role => role.code === "CEMP")) === null || _user$info$roles$find === void 0 ? void 0 : _user$info$roles$find.code;
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");
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 && ((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, {
23454
+ }, t("CS_APPLICATION_DETAILS")), isCemp && dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
23455
23455
  className: "multilinkWrapper",
23456
23456
  onHeadClick: () => setShowOptions(!showOptions),
23457
23457
  displayOptions: showOptions,