@mseva/digit-ui-module-ptr 1.3.4-dev.1.1 → 1.3.4-dev.1.3
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.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -16922,7 +16922,9 @@ function NewApplicationTimeline({
|
|
|
16922
16922
|
workflowDetails,
|
|
16923
16923
|
t,
|
|
16924
16924
|
tenantId = Digit.ULBService.getCurrentTenantId(),
|
|
16925
|
-
timeObj
|
|
16925
|
+
timeObj,
|
|
16926
|
+
empUserName = null,
|
|
16927
|
+
handleSetEmpDesignation = () => {}
|
|
16926
16928
|
}) {
|
|
16927
16929
|
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _employeeData$data, _employeeData$data$Em;
|
|
16928
16930
|
const {
|
|
@@ -16997,6 +16999,9 @@ function NewApplicationTimeline({
|
|
|
16997
16999
|
const translationKey = `COMMON_MASTERS_DESIGNATION_${assignment === null || assignment === void 0 ? void 0 : assignment.designation}`;
|
|
16998
17000
|
deptMap[emp === null || emp === void 0 ? void 0 : emp.code] = translationKey;
|
|
16999
17001
|
});
|
|
17002
|
+
if (employeeData && empUserName) {
|
|
17003
|
+
handleSetEmpDesignation(t(deptMap[empUserName]));
|
|
17004
|
+
}
|
|
17000
17005
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
|
|
17001
17006
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
17002
17007
|
className: "custom-timeline-container"
|
|
@@ -22670,7 +22675,7 @@ const NewApplication = () => {
|
|
|
22670
22675
|
};
|
|
22671
22676
|
|
|
22672
22677
|
const ApplicationDetails = () => {
|
|
22673
|
-
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;
|
|
22674
22679
|
const {
|
|
22675
22680
|
t
|
|
22676
22681
|
} = useTranslation();
|
|
@@ -23387,7 +23392,7 @@ const ApplicationDetails = () => {
|
|
|
23387
23392
|
}
|
|
23388
23393
|
let dowloadOptions = [];
|
|
23389
23394
|
let user = Digit.UserService.getUser();
|
|
23390
|
-
const isCemp = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.roles.
|
|
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;
|
|
23391
23396
|
dowloadOptions.push({
|
|
23392
23397
|
label: t("PTR_PET_DOWNLOAD_ACK_FORM"),
|
|
23393
23398
|
onClick: () => downloadAcknowledgement()
|
|
@@ -23446,7 +23451,7 @@ const ApplicationDetails = () => {
|
|
|
23446
23451
|
styles: {
|
|
23447
23452
|
fontSize: "32px"
|
|
23448
23453
|
}
|
|
23449
|
-
}, 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, {
|
|
23450
23455
|
className: "multilinkWrapper",
|
|
23451
23456
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
23452
23457
|
displayOptions: showOptions,
|