@mseva/digit-ui-module-ptr 1.0.40 → 1.0.42
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 +591 -345
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +584 -344
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -16036,8 +16036,8 @@ ListCache.prototype.has = _listCacheHas;
|
|
|
16036
16036
|
ListCache.prototype.set = _listCacheSet;
|
|
16037
16037
|
var _ListCache = ListCache;
|
|
16038
16038
|
|
|
16039
|
-
var Map = _getNative(_root, 'Map');
|
|
16040
|
-
var _Map = Map;
|
|
16039
|
+
var Map$1 = _getNative(_root, 'Map');
|
|
16040
|
+
var _Map = Map$1;
|
|
16041
16041
|
|
|
16042
16042
|
function mapCacheClear() {
|
|
16043
16043
|
this.size = 0;
|
|
@@ -16550,13 +16550,7 @@ const InboxLinks = _ref => {
|
|
|
16550
16550
|
roles: []
|
|
16551
16551
|
}, {
|
|
16552
16552
|
text: "PTR_SEARCH_PET",
|
|
16553
|
-
link: `/digit-ui/employee/ptr/search`,
|
|
16554
|
-
businessService: "ptr",
|
|
16555
|
-
roles: []
|
|
16556
|
-
}, {
|
|
16557
|
-
text: "PTR_COMMON_APPLICATION_SEARCH",
|
|
16558
|
-
link: `/digit-ui/employee/ptr/application-search`,
|
|
16559
|
-
businessService: "ptr",
|
|
16553
|
+
link: `/digit-ui/employee/ptr/petservice/search`,
|
|
16560
16554
|
roles: []
|
|
16561
16555
|
}];
|
|
16562
16556
|
const [links, setLinks] = React.useState([]);
|
|
@@ -22967,162 +22961,6 @@ const PermissionCheck = _ref => {
|
|
|
22967
22961
|
}));
|
|
22968
22962
|
};
|
|
22969
22963
|
|
|
22970
|
-
function PropertyDocuments(_ref) {
|
|
22971
|
-
let {
|
|
22972
|
-
documents,
|
|
22973
|
-
svgStyles = {},
|
|
22974
|
-
isSendBackFlow = false
|
|
22975
|
-
} = _ref;
|
|
22976
|
-
const {
|
|
22977
|
-
t
|
|
22978
|
-
} = reactI18next.useTranslation();
|
|
22979
|
-
const [filesArray, setFilesArray] = React.useState(() => []);
|
|
22980
|
-
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
22981
|
-
const [pdfFiles, setPdfFiles] = React.useState({});
|
|
22982
|
-
React.useEffect(() => {
|
|
22983
|
-
var _acc;
|
|
22984
|
-
let acc = [];
|
|
22985
|
-
documents === null || documents === void 0 ? void 0 : documents.forEach((element, index, array) => {
|
|
22986
|
-
acc = [...acc, ...(element.values ? element.values : [])];
|
|
22987
|
-
});
|
|
22988
|
-
setFilesArray((_acc = acc) === null || _acc === void 0 ? void 0 : _acc.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId));
|
|
22989
|
-
}, [documents]);
|
|
22990
|
-
React.useEffect(() => {
|
|
22991
|
-
var _documents$;
|
|
22992
|
-
if (filesArray !== null && filesArray !== void 0 && filesArray.length && (documents === null || documents === void 0 ? void 0 : (_documents$ = documents[0]) === null || _documents$ === void 0 ? void 0 : _documents$.BS) === "BillAmend") {
|
|
22993
|
-
Digit.UploadServices.Filefetch(filesArray, Digit.ULBService.getCurrentTenantId()).then(res => {
|
|
22994
|
-
setPdfFiles(res === null || res === void 0 ? void 0 : res.data);
|
|
22995
|
-
});
|
|
22996
|
-
} else if (filesArray !== null && filesArray !== void 0 && filesArray.length) {
|
|
22997
|
-
Digit.UploadServices.Filefetch(filesArray, Digit.ULBService.getStateId()).then(res => {
|
|
22998
|
-
setPdfFiles(res === null || res === void 0 ? void 0 : res.data);
|
|
22999
|
-
});
|
|
23000
|
-
}
|
|
23001
|
-
}, [filesArray]);
|
|
23002
|
-
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
23003
|
-
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
23004
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
23005
|
-
style: {
|
|
23006
|
-
marginTop: "19px"
|
|
23007
|
-
}
|
|
23008
|
-
}, !isStakeholderApplication && (documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
23009
|
-
var _document$values;
|
|
23010
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23011
|
-
key: index
|
|
23012
|
-
}, document !== null && document !== void 0 && document.title ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
23013
|
-
style: checkLocation ? {
|
|
23014
|
-
marginTop: "32px",
|
|
23015
|
-
marginBottom: "18px",
|
|
23016
|
-
color: "#0B0C0C, 100%",
|
|
23017
|
-
fontSize: "24px",
|
|
23018
|
-
lineHeight: "30px"
|
|
23019
|
-
} : {
|
|
23020
|
-
marginTop: "32px",
|
|
23021
|
-
marginBottom: "8px",
|
|
23022
|
-
color: "#505A5F",
|
|
23023
|
-
fontSize: "24px"
|
|
23024
|
-
}
|
|
23025
|
-
}, t(document === null || document === void 0 ? void 0 : document.title)) : null, /*#__PURE__*/React__default.createElement("div", {
|
|
23026
|
-
style: {
|
|
23027
|
-
display: "flex",
|
|
23028
|
-
flexWrap: "wrap",
|
|
23029
|
-
justifyContent: "flex-start"
|
|
23030
|
-
}
|
|
23031
|
-
}, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.map((value, index) => {
|
|
23032
|
-
var _pdfFiles$value$fileS, _value$documentType;
|
|
23033
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
23034
|
-
target: "_",
|
|
23035
|
-
href: (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0],
|
|
23036
|
-
style: {
|
|
23037
|
-
minWidth: "80px",
|
|
23038
|
-
marginRight: "10px",
|
|
23039
|
-
maxWidth: "100px",
|
|
23040
|
-
height: "auto"
|
|
23041
|
-
},
|
|
23042
|
-
key: index
|
|
23043
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
23044
|
-
style: {
|
|
23045
|
-
display: "flex",
|
|
23046
|
-
justifyContent: "center"
|
|
23047
|
-
}
|
|
23048
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PDFSvg, null)), /*#__PURE__*/React__default.createElement("p", {
|
|
23049
|
-
style: checkLocation ? {
|
|
23050
|
-
marginTop: "8px",
|
|
23051
|
-
fontWeight: "bold",
|
|
23052
|
-
fontSize: "16px",
|
|
23053
|
-
lineHeight: "19px",
|
|
23054
|
-
color: "#505A5F",
|
|
23055
|
-
textAlign: "center"
|
|
23056
|
-
} : {
|
|
23057
|
-
marginTop: "8px",
|
|
23058
|
-
fontWeight: "bold"
|
|
23059
|
-
}
|
|
23060
|
-
}, t(value === null || value === void 0 ? void 0 : value.title)), isSendBackFlow ? value !== null && value !== void 0 && (_value$documentType = value.documentType) !== null && _value$documentType !== void 0 && _value$documentType.includes("NOC") ? /*#__PURE__*/React__default.createElement("p", {
|
|
23061
|
-
style: {
|
|
23062
|
-
textAlign: "center"
|
|
23063
|
-
}
|
|
23064
|
-
}, t(value === null || value === void 0 ? void 0 : value.documentType.split(".")[1])) : /*#__PURE__*/React__default.createElement("p", {
|
|
23065
|
-
style: {
|
|
23066
|
-
textAlign: "center"
|
|
23067
|
-
}
|
|
23068
|
-
}, t(value === null || value === void 0 ? void 0 : value.documentType)) : "");
|
|
23069
|
-
}) : !window.location.href.includes("citizen") && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
|
|
23070
|
-
})), isStakeholderApplication && (documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
|
|
23071
|
-
var _document$values2;
|
|
23072
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
23073
|
-
key: index
|
|
23074
|
-
}, document !== null && document !== void 0 && document.title ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
23075
|
-
style: {
|
|
23076
|
-
marginTop: "32px",
|
|
23077
|
-
marginBottom: "8px",
|
|
23078
|
-
color: "#505A5F",
|
|
23079
|
-
fontSize: "24px"
|
|
23080
|
-
}
|
|
23081
|
-
}, t(document === null || document === void 0 ? void 0 : document.title)) : null, /*#__PURE__*/React__default.createElement("div", null, document !== null && document !== void 0 && document.values && (document === null || document === void 0 ? void 0 : document.values.length) > 0 ? document === null || document === void 0 ? void 0 : (_document$values2 = document.values) === null || _document$values2 === void 0 ? void 0 : _document$values2.map((value, index) => {
|
|
23082
|
-
var _pdfFiles$value$fileS2;
|
|
23083
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
23084
|
-
target: "_",
|
|
23085
|
-
href: (_pdfFiles$value$fileS2 = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS2 === void 0 ? void 0 : _pdfFiles$value$fileS2.split(",")[0],
|
|
23086
|
-
style: {
|
|
23087
|
-
minWidth: svgStyles !== null && svgStyles !== void 0 && svgStyles.minWidth ? svgStyles === null || svgStyles === void 0 ? void 0 : svgStyles.minWidth : "160px",
|
|
23088
|
-
marginRight: "20px"
|
|
23089
|
-
},
|
|
23090
|
-
key: index
|
|
23091
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
23092
|
-
style: {
|
|
23093
|
-
maxWidth: "940px",
|
|
23094
|
-
padding: "8px",
|
|
23095
|
-
borderRadius: "4px",
|
|
23096
|
-
border: "1px solid #D6D5D4",
|
|
23097
|
-
background: "#FAFAFA"
|
|
23098
|
-
}
|
|
23099
|
-
}, /*#__PURE__*/React__default.createElement("p", {
|
|
23100
|
-
style: {
|
|
23101
|
-
marginTop: "8px",
|
|
23102
|
-
fontWeight: "bold",
|
|
23103
|
-
marginBottom: "10px"
|
|
23104
|
-
}
|
|
23105
|
-
}, t(value === null || value === void 0 ? void 0 : value.title)), value !== null && value !== void 0 && value.docInfo ? /*#__PURE__*/React__default.createElement("div", {
|
|
23106
|
-
style: {
|
|
23107
|
-
fontSize: "12px",
|
|
23108
|
-
color: "#505A5F",
|
|
23109
|
-
fontWeight: 400,
|
|
23110
|
-
lineHeight: "15px",
|
|
23111
|
-
marginBottom: "10px"
|
|
23112
|
-
}
|
|
23113
|
-
}, `${t(value === null || value === void 0 ? void 0 : value.docInfo)}`) : null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.PDFSvg, null), /*#__PURE__*/React__default.createElement("p", {
|
|
23114
|
-
style: {
|
|
23115
|
-
marginTop: "8px",
|
|
23116
|
-
fontSize: "16px",
|
|
23117
|
-
lineHeight: "19px",
|
|
23118
|
-
color: "#505A5F",
|
|
23119
|
-
fontWeight: "400"
|
|
23120
|
-
}
|
|
23121
|
-
}, `${t(value === null || value === void 0 ? void 0 : value.title)}`)));
|
|
23122
|
-
}) : !window.location.href.includes("citizen") && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
|
|
23123
|
-
})));
|
|
23124
|
-
}
|
|
23125
|
-
|
|
23126
22964
|
function PropertyEstimates(_ref) {
|
|
23127
22965
|
let {
|
|
23128
22966
|
taxHeadEstimatesCalculation
|
|
@@ -25107,169 +24945,404 @@ const ArrearSummary = _ref => {
|
|
|
25107
24945
|
}, t("CS_HIDE_CARD"))));
|
|
25108
24946
|
};
|
|
25109
24947
|
|
|
25110
|
-
const
|
|
24948
|
+
const AssessmentHistory = _ref => {
|
|
25111
24949
|
let {
|
|
25112
|
-
|
|
25113
|
-
totalDemandTax,
|
|
25114
|
-
totalDemandInterest,
|
|
25115
|
-
totalDemandPenality,
|
|
25116
|
-
totalCollectionTax,
|
|
25117
|
-
totalCollectionInterest,
|
|
25118
|
-
totalCollectionPenality,
|
|
25119
|
-
totalBalanceTax,
|
|
25120
|
-
totalBalancePenality,
|
|
25121
|
-
totalBalanceInterest
|
|
24950
|
+
assessmentData
|
|
25122
24951
|
} = _ref;
|
|
25123
|
-
const
|
|
25124
|
-
|
|
25125
|
-
|
|
24952
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
24953
|
+
const toggleAccordion = () => {
|
|
24954
|
+
setIsOpen(!isOpen);
|
|
24955
|
+
};
|
|
24956
|
+
function formatAssessmentDate(timestamp) {
|
|
24957
|
+
const date = new Date(timestamp);
|
|
24958
|
+
const options = {
|
|
24959
|
+
day: '2-digit',
|
|
24960
|
+
month: 'short',
|
|
24961
|
+
year: 'numeric'
|
|
24962
|
+
};
|
|
24963
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
24964
|
+
}
|
|
24965
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24966
|
+
className: "accordion",
|
|
24967
|
+
style: {
|
|
25126
24968
|
width: "100%",
|
|
25127
|
-
|
|
24969
|
+
margin: "auto",
|
|
24970
|
+
fontFamily: "Roboto, sans-serif",
|
|
24971
|
+
border: "1px solid #ccc",
|
|
24972
|
+
borderRadius: "4px",
|
|
24973
|
+
marginBottom: '10px'
|
|
24974
|
+
}
|
|
24975
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24976
|
+
className: "accordion-header",
|
|
24977
|
+
style: {
|
|
24978
|
+
backgroundColor: "#f0f0f0",
|
|
24979
|
+
padding: "15px",
|
|
24980
|
+
cursor: "pointer"
|
|
25128
24981
|
},
|
|
25129
|
-
|
|
25130
|
-
|
|
25131
|
-
|
|
25132
|
-
|
|
24982
|
+
onClick: toggleAccordion
|
|
24983
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24984
|
+
style: {
|
|
24985
|
+
display: "flex",
|
|
24986
|
+
justifyContent: "space-between",
|
|
24987
|
+
alignItems: 'center'
|
|
24988
|
+
}
|
|
24989
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
24990
|
+
style: {
|
|
24991
|
+
color: '#0d43a7',
|
|
24992
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
24993
|
+
fontSize: '24px',
|
|
24994
|
+
fontWeight: '500'
|
|
24995
|
+
}
|
|
24996
|
+
}, "Assessment History"), /*#__PURE__*/React__default.createElement("span", {
|
|
24997
|
+
style: {
|
|
24998
|
+
fontSize: '1.2em'
|
|
24999
|
+
}
|
|
25000
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React__default.createElement("div", {
|
|
25001
|
+
className: "accordion-body",
|
|
25002
|
+
style: {
|
|
25003
|
+
padding: " 15px",
|
|
25004
|
+
backgroundColor: "#fff"
|
|
25005
|
+
}
|
|
25006
|
+
}, assessmentData.map((assessment, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
25007
|
+
key: index,
|
|
25008
|
+
className: "assessment-item",
|
|
25009
|
+
style: {
|
|
25010
|
+
marginBottom: "15px"
|
|
25011
|
+
}
|
|
25012
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25013
|
+
className: "assessment-row",
|
|
25014
|
+
style: {
|
|
25015
|
+
display: "flex",
|
|
25016
|
+
gap: "100px",
|
|
25017
|
+
marginBottom: "8px"
|
|
25018
|
+
}
|
|
25019
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25020
|
+
style: {
|
|
25021
|
+
fontWeight: "bold",
|
|
25022
|
+
minWidth: '60px',
|
|
25023
|
+
color: 'black'
|
|
25024
|
+
}
|
|
25025
|
+
}, "Assessment Date"), /*#__PURE__*/React__default.createElement("span", {
|
|
25026
|
+
style: {
|
|
25027
|
+
flex: '1',
|
|
25028
|
+
color: 'black'
|
|
25029
|
+
}
|
|
25030
|
+
}, formatAssessmentDate(assessment.assessmentDate))), /*#__PURE__*/React__default.createElement("div", {
|
|
25031
|
+
className: "assessment-row",
|
|
25032
|
+
style: {
|
|
25033
|
+
display: "flex",
|
|
25034
|
+
gap: "100px",
|
|
25035
|
+
marginBottom: "8px",
|
|
25036
|
+
color: 'black'
|
|
25037
|
+
}
|
|
25038
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25039
|
+
className: "label",
|
|
25040
|
+
style: {
|
|
25041
|
+
fontWeight: "bold",
|
|
25042
|
+
minWidth: '60px',
|
|
25043
|
+
color: 'black'
|
|
25044
|
+
}
|
|
25045
|
+
}, "Assessment Year"), /*#__PURE__*/React__default.createElement("span", {
|
|
25046
|
+
className: "value",
|
|
25047
|
+
style: {
|
|
25048
|
+
flex: '1',
|
|
25049
|
+
color: 'black'
|
|
25050
|
+
}
|
|
25051
|
+
}, assessment.financialYear)), /*#__PURE__*/React__default.createElement("div", {
|
|
25052
|
+
className: "assessment-row with-buttons",
|
|
25053
|
+
style: {
|
|
25054
|
+
display: "flex",
|
|
25055
|
+
marginBottom: "8px",
|
|
25056
|
+
justifyContent: "space-between",
|
|
25057
|
+
alignItems: "center"
|
|
25058
|
+
}
|
|
25059
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25060
|
+
style: {
|
|
25061
|
+
display: 'flex',
|
|
25062
|
+
gap: '75px'
|
|
25063
|
+
}
|
|
25064
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25065
|
+
className: "label",
|
|
25066
|
+
style: {
|
|
25067
|
+
fontWeight: "bold",
|
|
25068
|
+
minWidth: '60px',
|
|
25069
|
+
color: 'black'
|
|
25070
|
+
}
|
|
25071
|
+
}, "Assessment Number"), /*#__PURE__*/React__default.createElement("span", {
|
|
25072
|
+
className: "value",
|
|
25073
|
+
style: {
|
|
25074
|
+
flex: '1',
|
|
25075
|
+
color: 'black'
|
|
25076
|
+
}
|
|
25077
|
+
}, assessment.assessmentNumber)), /*#__PURE__*/React__default.createElement("div", {
|
|
25078
|
+
className: "button-group",
|
|
25079
|
+
style: {
|
|
25080
|
+
display: 'flex',
|
|
25081
|
+
gap: '10px'
|
|
25082
|
+
}
|
|
25083
|
+
}, "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React__default.createElement("button", {
|
|
25084
|
+
style: {
|
|
25085
|
+
display: "flex",
|
|
25086
|
+
borderRadius: '8px',
|
|
25087
|
+
backgroundColor: '#2947a3',
|
|
25088
|
+
padding: '10px',
|
|
25089
|
+
color: 'white'
|
|
25133
25090
|
},
|
|
25134
|
-
|
|
25135
|
-
|
|
25136
|
-
|
|
25137
|
-
|
|
25091
|
+
onClick: () => alert(`Re-assessing ${assessment.number}`)
|
|
25092
|
+
}, "Re-assess"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ", /*#__PURE__*/React__default.createElement("button", {
|
|
25093
|
+
style: {
|
|
25094
|
+
display: "flex",
|
|
25095
|
+
borderRadius: '8px',
|
|
25096
|
+
border: '1px solid red',
|
|
25097
|
+
padding: '10px'
|
|
25098
|
+
},
|
|
25099
|
+
onClick: () => alert(`Cancelled ${assessment.number}`)
|
|
25100
|
+
}, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React__default.createElement("hr", null)))));
|
|
25101
|
+
};
|
|
25102
|
+
|
|
25103
|
+
const ApplicationHistory = _ref => {
|
|
25104
|
+
var _applicationData$audi;
|
|
25105
|
+
let {
|
|
25106
|
+
applicationData
|
|
25107
|
+
} = _ref;
|
|
25108
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
25109
|
+
const history = reactRouterDom.useHistory();
|
|
25110
|
+
const toggleAccordion = () => {
|
|
25111
|
+
setIsOpen(!isOpen);
|
|
25112
|
+
};
|
|
25113
|
+
function formatDate(timestamp) {
|
|
25114
|
+
const date = new Date(timestamp);
|
|
25115
|
+
const options = {
|
|
25116
|
+
day: '2-digit',
|
|
25117
|
+
month: 'short',
|
|
25118
|
+
year: 'numeric'
|
|
25119
|
+
};
|
|
25120
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
25121
|
+
}
|
|
25122
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25123
|
+
className: "accordion",
|
|
25124
|
+
style: {
|
|
25125
|
+
width: "100%",
|
|
25126
|
+
margin: "auto",
|
|
25127
|
+
fontFamily: "Roboto, sans-serif",
|
|
25128
|
+
border: "1px solid #ccc",
|
|
25129
|
+
borderRadius: "4px",
|
|
25130
|
+
marginBottom: '10px'
|
|
25131
|
+
}
|
|
25132
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25133
|
+
className: "accordion-header",
|
|
25134
|
+
style: {
|
|
25135
|
+
backgroundColor: "#f0f0f0",
|
|
25136
|
+
padding: "15px",
|
|
25137
|
+
cursor: "pointer"
|
|
25138
|
+
},
|
|
25139
|
+
onClick: toggleAccordion
|
|
25140
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25141
|
+
style: {
|
|
25142
|
+
display: "flex",
|
|
25143
|
+
justifyContent: "space-between",
|
|
25144
|
+
alignItems: 'center'
|
|
25145
|
+
}
|
|
25146
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
25147
|
+
style: {
|
|
25148
|
+
color: '#0d43a7',
|
|
25149
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
25150
|
+
fontSize: '24px',
|
|
25151
|
+
fontWeight: '500'
|
|
25152
|
+
}
|
|
25153
|
+
}, "Application History"), /*#__PURE__*/React__default.createElement("span", {
|
|
25154
|
+
style: {
|
|
25155
|
+
fontSize: '1.2em'
|
|
25156
|
+
}
|
|
25157
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React__default.createElement("div", {
|
|
25158
|
+
className: "accordion-body",
|
|
25159
|
+
style: {
|
|
25160
|
+
padding: " 15px",
|
|
25161
|
+
backgroundColor: "#fff"
|
|
25162
|
+
}
|
|
25163
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25164
|
+
className: "assessment-item",
|
|
25165
|
+
style: {
|
|
25166
|
+
marginBottom: "15px"
|
|
25167
|
+
}
|
|
25168
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25169
|
+
className: "assessment-row",
|
|
25170
|
+
style: {
|
|
25171
|
+
display: "flex",
|
|
25172
|
+
gap: "100px",
|
|
25173
|
+
marginBottom: "8px"
|
|
25174
|
+
}
|
|
25175
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25176
|
+
style: {
|
|
25177
|
+
fontWeight: "bold",
|
|
25178
|
+
minWidth: '60px',
|
|
25179
|
+
color: 'black'
|
|
25180
|
+
}
|
|
25181
|
+
}, "Application Number"), /*#__PURE__*/React__default.createElement("span", {
|
|
25182
|
+
style: {
|
|
25183
|
+
flex: '1',
|
|
25184
|
+
color: 'black'
|
|
25185
|
+
}
|
|
25186
|
+
}, applicationData.acknowldgementNumber)), /*#__PURE__*/React__default.createElement("div", {
|
|
25187
|
+
className: "assessment-row",
|
|
25188
|
+
style: {
|
|
25189
|
+
display: "flex",
|
|
25190
|
+
gap: "132px",
|
|
25191
|
+
marginBottom: "8px",
|
|
25192
|
+
color: 'black'
|
|
25193
|
+
}
|
|
25194
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25195
|
+
className: "label",
|
|
25196
|
+
style: {
|
|
25197
|
+
fontWeight: "bold",
|
|
25198
|
+
minWidth: '60px',
|
|
25199
|
+
color: 'black'
|
|
25200
|
+
}
|
|
25201
|
+
}, "Property ID No."), /*#__PURE__*/React__default.createElement("span", {
|
|
25202
|
+
className: "value",
|
|
25203
|
+
style: {
|
|
25204
|
+
flex: '1',
|
|
25205
|
+
color: 'black'
|
|
25206
|
+
}
|
|
25207
|
+
}, applicationData.propertyId)), /*#__PURE__*/React__default.createElement("div", {
|
|
25208
|
+
className: "assessment-row",
|
|
25209
|
+
style: {
|
|
25210
|
+
display: "flex",
|
|
25211
|
+
gap: "120px",
|
|
25212
|
+
marginBottom: "8px",
|
|
25213
|
+
color: 'black'
|
|
25214
|
+
}
|
|
25215
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25216
|
+
className: "label",
|
|
25217
|
+
style: {
|
|
25218
|
+
fontWeight: "bold",
|
|
25219
|
+
minWidth: '60px',
|
|
25220
|
+
color: 'black'
|
|
25221
|
+
}
|
|
25222
|
+
}, "Application Type"), /*#__PURE__*/React__default.createElement("span", {
|
|
25223
|
+
className: "value",
|
|
25224
|
+
style: {
|
|
25225
|
+
flex: '1',
|
|
25226
|
+
color: 'black'
|
|
25227
|
+
}
|
|
25228
|
+
}, "NEW PROPERTY")), /*#__PURE__*/React__default.createElement("div", {
|
|
25229
|
+
className: "assessment-row",
|
|
25230
|
+
style: {
|
|
25231
|
+
display: "flex",
|
|
25232
|
+
gap: "140px",
|
|
25233
|
+
marginBottom: "8px",
|
|
25234
|
+
color: 'black'
|
|
25235
|
+
}
|
|
25236
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25237
|
+
className: "label",
|
|
25238
|
+
style: {
|
|
25239
|
+
fontWeight: "bold",
|
|
25240
|
+
minWidth: '60px',
|
|
25241
|
+
color: 'black'
|
|
25242
|
+
}
|
|
25243
|
+
}, "Creation Date"), /*#__PURE__*/React__default.createElement("span", {
|
|
25244
|
+
className: "value",
|
|
25245
|
+
style: {
|
|
25246
|
+
flex: '1',
|
|
25247
|
+
color: 'black'
|
|
25138
25248
|
}
|
|
25249
|
+
}, formatDate((_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdTime))), /*#__PURE__*/React__default.createElement("div", {
|
|
25250
|
+
className: "assessment-row",
|
|
25251
|
+
style: {
|
|
25252
|
+
display: "flex",
|
|
25253
|
+
gap: "180px",
|
|
25254
|
+
marginBottom: "8px",
|
|
25255
|
+
color: 'black'
|
|
25256
|
+
}
|
|
25257
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25258
|
+
className: "label",
|
|
25259
|
+
style: {
|
|
25260
|
+
fontWeight: "bold",
|
|
25261
|
+
minWidth: '60px',
|
|
25262
|
+
color: 'black'
|
|
25263
|
+
}
|
|
25264
|
+
}, "Status"), /*#__PURE__*/React__default.createElement("span", {
|
|
25265
|
+
className: "value",
|
|
25266
|
+
style: {
|
|
25267
|
+
flex: '1',
|
|
25268
|
+
color: 'black'
|
|
25269
|
+
}
|
|
25270
|
+
}, applicationData.status)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
25271
|
+
to: {
|
|
25272
|
+
pathname: `/digit-ui/citizen/pt/property/application-preview/${applicationData.acknowldgementNumber}`,
|
|
25273
|
+
state: {
|
|
25274
|
+
propertyId: applicationData.propertyId
|
|
25275
|
+
}
|
|
25276
|
+
},
|
|
25277
|
+
style: {
|
|
25278
|
+
color: '#2947a3',
|
|
25279
|
+
display: 'inline',
|
|
25280
|
+
border: '1px solid',
|
|
25281
|
+
padding: '8px',
|
|
25282
|
+
borderRadius: '8px'
|
|
25283
|
+
}
|
|
25284
|
+
}, "View History")))));
|
|
25285
|
+
};
|
|
25286
|
+
|
|
25287
|
+
const PaymentHistory = _ref => {
|
|
25288
|
+
let {
|
|
25289
|
+
payments
|
|
25290
|
+
} = _ref;
|
|
25291
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
25292
|
+
const toggleAccordion = () => {
|
|
25293
|
+
setIsOpen(!isOpen);
|
|
25139
25294
|
};
|
|
25140
|
-
return /*#__PURE__*/React__default.createElement("div",
|
|
25295
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25296
|
+
className: "accordion",
|
|
25141
25297
|
style: {
|
|
25142
|
-
|
|
25143
|
-
|
|
25144
|
-
|
|
25298
|
+
width: "100%",
|
|
25299
|
+
margin: "auto",
|
|
25300
|
+
fontFamily: "Roboto, sans-serif",
|
|
25301
|
+
border: "1px solid #ccc",
|
|
25302
|
+
borderRadius: "4px",
|
|
25303
|
+
marginBottom: '10px'
|
|
25145
25304
|
}
|
|
25146
|
-
},
|
|
25147
|
-
|
|
25148
|
-
style:
|
|
25149
|
-
|
|
25150
|
-
|
|
25151
|
-
|
|
25152
|
-
|
|
25153
|
-
|
|
25154
|
-
},
|
|
25155
|
-
|
|
25156
|
-
|
|
25157
|
-
|
|
25158
|
-
|
|
25159
|
-
|
|
25160
|
-
},
|
|
25161
|
-
style:
|
|
25162
|
-
|
|
25163
|
-
|
|
25164
|
-
|
|
25165
|
-
|
|
25166
|
-
|
|
25167
|
-
|
|
25168
|
-
|
|
25169
|
-
|
|
25170
|
-
|
|
25171
|
-
|
|
25172
|
-
|
|
25173
|
-
style:
|
|
25174
|
-
|
|
25175
|
-
|
|
25176
|
-
|
|
25177
|
-
|
|
25178
|
-
|
|
25179
|
-
|
|
25180
|
-
|
|
25181
|
-
|
|
25182
|
-
}, "
|
|
25183
|
-
style: tableStyles.th
|
|
25184
|
-
}, "Advance"))), /*#__PURE__*/React__default.createElement("tbody", null, demandData === null || demandData === void 0 ? void 0 : demandData.map(item => {
|
|
25185
|
-
return /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
25186
|
-
style: tableStyles.td
|
|
25187
|
-
}, item.taxPeriodFrom, "-", item.taxPeriodTo), /*#__PURE__*/React__default.createElement("td", {
|
|
25188
|
-
style: tableStyles.td
|
|
25189
|
-
}, item.demandTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25190
|
-
style: tableStyles.td
|
|
25191
|
-
}, item.demandInterest), /*#__PURE__*/React__default.createElement("td", {
|
|
25192
|
-
style: tableStyles.td
|
|
25193
|
-
}, item.demandPenality), /*#__PURE__*/React__default.createElement("td", {
|
|
25194
|
-
style: tableStyles.td
|
|
25195
|
-
}, item.collectionTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25196
|
-
style: tableStyles.td
|
|
25197
|
-
}, item.collectionInterest), /*#__PURE__*/React__default.createElement("td", {
|
|
25198
|
-
style: tableStyles.td
|
|
25199
|
-
}, item.collectionPenality), /*#__PURE__*/React__default.createElement("td", {
|
|
25200
|
-
style: tableStyles.td
|
|
25201
|
-
}, item.balanceTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25202
|
-
style: tableStyles.td
|
|
25203
|
-
}, item.balanceInterest), /*#__PURE__*/React__default.createElement("td", {
|
|
25204
|
-
style: tableStyles.td
|
|
25205
|
-
}, item.balancePenality), /*#__PURE__*/React__default.createElement("td", {
|
|
25206
|
-
style: tableStyles.td
|
|
25207
|
-
}, item.advance));
|
|
25208
|
-
}), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
25209
|
-
style: tableStyles.th
|
|
25210
|
-
}, "Total"), /*#__PURE__*/React__default.createElement("td", {
|
|
25211
|
-
style: tableStyles.td
|
|
25212
|
-
}, totalDemandTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25213
|
-
style: tableStyles.td
|
|
25214
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25215
|
-
style: tableStyles.td
|
|
25216
|
-
}, totalDemandPenality), /*#__PURE__*/React__default.createElement("td", {
|
|
25217
|
-
style: tableStyles.td
|
|
25218
|
-
}, totalCollectionTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25219
|
-
style: tableStyles.td
|
|
25220
|
-
}, totalCollectionInterest), /*#__PURE__*/React__default.createElement("td", {
|
|
25221
|
-
style: tableStyles.td
|
|
25222
|
-
}, totalCollectionPenality), /*#__PURE__*/React__default.createElement("td", {
|
|
25223
|
-
style: tableStyles.td
|
|
25224
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25225
|
-
style: tableStyles.td
|
|
25226
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25227
|
-
style: tableStyles.td
|
|
25228
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25229
|
-
style: tableStyles.td
|
|
25230
|
-
})), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
25231
|
-
style: tableStyles.td
|
|
25232
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25233
|
-
style: tableStyles.td
|
|
25234
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25235
|
-
style: tableStyles.td
|
|
25236
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25237
|
-
style: tableStyles.td
|
|
25238
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25239
|
-
style: tableStyles.td
|
|
25240
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25241
|
-
style: tableStyles.td
|
|
25242
|
-
}), /*#__PURE__*/React__default.createElement("th", {
|
|
25243
|
-
style: tableStyles.th
|
|
25244
|
-
}, "Total"), /*#__PURE__*/React__default.createElement("td", {
|
|
25245
|
-
style: tableStyles.td
|
|
25246
|
-
}, totalBalanceTax), /*#__PURE__*/React__default.createElement("td", {
|
|
25247
|
-
style: tableStyles.td
|
|
25248
|
-
}, "0"), /*#__PURE__*/React__default.createElement("td", {
|
|
25249
|
-
style: tableStyles.td
|
|
25250
|
-
}, "0"), /*#__PURE__*/React__default.createElement("td", {
|
|
25251
|
-
style: tableStyles.td
|
|
25252
|
-
}, "0")), /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("td", {
|
|
25253
|
-
style: tableStyles.td
|
|
25254
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25255
|
-
style: tableStyles.td
|
|
25256
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25257
|
-
style: tableStyles.td
|
|
25258
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25259
|
-
style: tableStyles.td
|
|
25260
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25261
|
-
style: tableStyles.td
|
|
25262
|
-
}), /*#__PURE__*/React__default.createElement("td", {
|
|
25263
|
-
style: tableStyles.td
|
|
25264
|
-
}), /*#__PURE__*/React__default.createElement("th", {
|
|
25265
|
-
style: tableStyles.th
|
|
25266
|
-
}, "Total Balance"), /*#__PURE__*/React__default.createElement("td", {
|
|
25267
|
-
style: tableStyles.td
|
|
25268
|
-
})))));
|
|
25305
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25306
|
+
className: "accordion-header",
|
|
25307
|
+
style: {
|
|
25308
|
+
backgroundColor: "#f0f0f0",
|
|
25309
|
+
padding: "15px",
|
|
25310
|
+
cursor: "pointer"
|
|
25311
|
+
},
|
|
25312
|
+
onClick: toggleAccordion
|
|
25313
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25314
|
+
style: {
|
|
25315
|
+
display: "flex",
|
|
25316
|
+
justifyContent: "space-between",
|
|
25317
|
+
alignItems: 'center'
|
|
25318
|
+
}
|
|
25319
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
25320
|
+
style: {
|
|
25321
|
+
color: '#0d43a7',
|
|
25322
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
25323
|
+
fontSize: '24px',
|
|
25324
|
+
fontWeight: '500'
|
|
25325
|
+
}
|
|
25326
|
+
}, "Payment History"), /*#__PURE__*/React__default.createElement("span", {
|
|
25327
|
+
style: {
|
|
25328
|
+
fontSize: '1.2em'
|
|
25329
|
+
}
|
|
25330
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React__default.createElement("div", {
|
|
25331
|
+
className: "accordion-body",
|
|
25332
|
+
style: {
|
|
25333
|
+
padding: " 15px",
|
|
25334
|
+
backgroundColor: "#fff"
|
|
25335
|
+
}
|
|
25336
|
+
}, (payments === null || payments === void 0 ? void 0 : payments.length) === 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
25337
|
+
style: {
|
|
25338
|
+
color: 'red',
|
|
25339
|
+
fontSize: '16px'
|
|
25340
|
+
}
|
|
25341
|
+
}, "No Payemnts found")));
|
|
25269
25342
|
};
|
|
25270
25343
|
|
|
25271
25344
|
function ApplicationDetailsContent(_ref) {
|
|
25272
|
-
var _applicationDetails$a2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
25345
|
+
var _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a1, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
25273
25346
|
let {
|
|
25274
25347
|
applicationDetails,
|
|
25275
25348
|
demandData,
|
|
@@ -25284,11 +25357,16 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25284
25357
|
statusAttribute = "status",
|
|
25285
25358
|
paymentsList,
|
|
25286
25359
|
oldValue,
|
|
25287
|
-
isInfoLabel = false
|
|
25360
|
+
isInfoLabel = false,
|
|
25361
|
+
propertyId
|
|
25288
25362
|
} = _ref;
|
|
25289
25363
|
const {
|
|
25290
25364
|
t
|
|
25291
25365
|
} = reactI18next.useTranslation();
|
|
25366
|
+
const history = reactRouterDom.useHistory();
|
|
25367
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
25368
|
+
const [showToast, setShowToast] = React.useState(null);
|
|
25369
|
+
const [payments, setPayments] = React.useState([]);
|
|
25292
25370
|
let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
|
|
25293
25371
|
console.log("appl", applicationDetails);
|
|
25294
25372
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
@@ -25296,6 +25374,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25296
25374
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
25297
25375
|
}
|
|
25298
25376
|
const [fetchBillData, updatefetchBillData] = React.useState({});
|
|
25377
|
+
const [assessmentDetails, setAssessmentDetails] = React.useState();
|
|
25378
|
+
const [filtered, setFiltered] = React.useState([]);
|
|
25299
25379
|
const setBillData = function (tenantId, propertyIds, updatefetchBillData, updateCanFetchBillData) {
|
|
25300
25380
|
try {
|
|
25301
25381
|
return Promise.resolve(Digit.PTService.assessmentSearch({
|
|
@@ -25315,6 +25395,26 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25315
25395
|
let billData = {};
|
|
25316
25396
|
const _temp = function (_assessmentData$Asses) {
|
|
25317
25397
|
if ((assessmentData === null || assessmentData === void 0 ? void 0 : (_assessmentData$Asses = assessmentData.Assessments) === null || _assessmentData$Asses === void 0 ? void 0 : _assessmentData$Asses.length) > 0) {
|
|
25398
|
+
function normalizeDate(timestamp) {
|
|
25399
|
+
const date = new Date(timestamp);
|
|
25400
|
+
date.setHours(0, 0, 0, 0);
|
|
25401
|
+
return date.getTime();
|
|
25402
|
+
}
|
|
25403
|
+
const activeRecords = assessmentData.Assessments.filter(a => a.status === 'ACTIVE');
|
|
25404
|
+
const latestMap = new Map();
|
|
25405
|
+
activeRecords.forEach(record => {
|
|
25406
|
+
const normalizedDate = normalizeDate(record.assessmentDate);
|
|
25407
|
+
const key = `${normalizedDate}_${record.financialYear}`;
|
|
25408
|
+
const existing = latestMap.get(key);
|
|
25409
|
+
if (!existing || record.createdDate > existing.createdDate) {
|
|
25410
|
+
latestMap.set(key, record);
|
|
25411
|
+
}
|
|
25412
|
+
});
|
|
25413
|
+
console.log("grouped", latestMap);
|
|
25414
|
+
const filteredAssessment = Array.from(latestMap.values());
|
|
25415
|
+
setFiltered(filteredAssessment);
|
|
25416
|
+
console.log(filteredAssessment);
|
|
25417
|
+
setAssessmentDetails(assessmentData === null || assessmentData === void 0 ? void 0 : assessmentData.Assessments);
|
|
25318
25418
|
return Promise.resolve(Digit.PaymentService.fetchBill(tenantId, {
|
|
25319
25419
|
businessService: "PT",
|
|
25320
25420
|
consumerCode: propertyIds
|
|
@@ -25517,6 +25617,123 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25517
25617
|
const totalBalanceTax = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceTax, 0);
|
|
25518
25618
|
const totalBalanceInterest = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balanceInterest, 0);
|
|
25519
25619
|
const totalBalancePenality = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.balancePenality, 0);
|
|
25620
|
+
const closeToast = () => {
|
|
25621
|
+
setShowToast(null);
|
|
25622
|
+
};
|
|
25623
|
+
const updatePropertyStatus = function (propertyData, status, propertyIds) {
|
|
25624
|
+
try {
|
|
25625
|
+
const confirm = window.confirm(`Are you sure you want to make this property ${status}?`);
|
|
25626
|
+
if (!confirm) return Promise.resolve();
|
|
25627
|
+
const payload = {
|
|
25628
|
+
...propertyData,
|
|
25629
|
+
status: status,
|
|
25630
|
+
isactive: status === "ACTIVE",
|
|
25631
|
+
isinactive: status === "INACTIVE",
|
|
25632
|
+
creationReason: "STATUS",
|
|
25633
|
+
additionalDetails: {
|
|
25634
|
+
...propertyData.additionalDetails,
|
|
25635
|
+
propertytobestatus: status
|
|
25636
|
+
},
|
|
25637
|
+
workflow: {
|
|
25638
|
+
...propertyData.workflow,
|
|
25639
|
+
businessService: "PT.CREATE",
|
|
25640
|
+
action: "OPEN",
|
|
25641
|
+
moduleName: "PT"
|
|
25642
|
+
}
|
|
25643
|
+
};
|
|
25644
|
+
return Promise.resolve(Digit.PTService.updatePT({
|
|
25645
|
+
Property: {
|
|
25646
|
+
...payload
|
|
25647
|
+
}
|
|
25648
|
+
}, tenantId, propertyIds)).then(function (response) {
|
|
25649
|
+
console.log("response from inactive/active", response);
|
|
25650
|
+
});
|
|
25651
|
+
} catch (e) {
|
|
25652
|
+
return Promise.reject(e);
|
|
25653
|
+
}
|
|
25654
|
+
};
|
|
25655
|
+
const applicationData_pt = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
25656
|
+
const propertyIds = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId) || "";
|
|
25657
|
+
const checkPropertyStatus = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : _applicationDetails$a3.propertytobestatus;
|
|
25658
|
+
const PropertyInActive = () => {
|
|
25659
|
+
if (window.location.href.includes("employee")) {
|
|
25660
|
+
if (checkPropertyStatus == "ACTIVE") {
|
|
25661
|
+
updatePropertyStatus(applicationData_pt, "INACTIVE", propertyIds);
|
|
25662
|
+
} else {
|
|
25663
|
+
alert("Property is already inactive.");
|
|
25664
|
+
}
|
|
25665
|
+
} else {
|
|
25666
|
+
alert("You are not authorized to change the property status.");
|
|
25667
|
+
}
|
|
25668
|
+
};
|
|
25669
|
+
const PropertyActive = () => {
|
|
25670
|
+
if (window.location.href.includes("employee")) {
|
|
25671
|
+
if (checkPropertyStatus == "INACTIVE") {
|
|
25672
|
+
updatePropertyStatus(applicationData_pt, "ACTIVE", propertyIds);
|
|
25673
|
+
} else {
|
|
25674
|
+
alert("Property is already active.");
|
|
25675
|
+
}
|
|
25676
|
+
} else {
|
|
25677
|
+
alert("You are not authorized to change the property status.");
|
|
25678
|
+
}
|
|
25679
|
+
};
|
|
25680
|
+
const EditProperty = () => {
|
|
25681
|
+
var _applicationDetails$a4;
|
|
25682
|
+
const pID = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.propertyId;
|
|
25683
|
+
if (pID) {
|
|
25684
|
+
if (window.location.href.includes("employee")) {
|
|
25685
|
+
var _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7;
|
|
25686
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.status) === "INACTIVE") {
|
|
25687
|
+
alert("Property is inactive, cannot edit.");
|
|
25688
|
+
return;
|
|
25689
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.status) === "INWORKFLOW") {
|
|
25690
|
+
alert("Property is in workflow, cannot edit.");
|
|
25691
|
+
return;
|
|
25692
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.status) === "ACTIVE") {
|
|
25693
|
+
history.push({
|
|
25694
|
+
pathname: `/digit-ui/employee/pt/edit-application/${pID}`
|
|
25695
|
+
});
|
|
25696
|
+
}
|
|
25697
|
+
} else {
|
|
25698
|
+
var _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0;
|
|
25699
|
+
if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a8 = applicationDetails.applicationData) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.status) === "INACTIVE") {
|
|
25700
|
+
alert("Property is inactive, cannot edit.");
|
|
25701
|
+
return;
|
|
25702
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : _applicationDetails$a9.status) === "INWORKFLOW") {
|
|
25703
|
+
alert("Property is in workflow, cannot edit.");
|
|
25704
|
+
return;
|
|
25705
|
+
} else if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.status) === "ACTIVE") {
|
|
25706
|
+
history.push({
|
|
25707
|
+
pathname: `/digit-ui/citizen/pt/property/edit-application/${pID}`
|
|
25708
|
+
});
|
|
25709
|
+
}
|
|
25710
|
+
}
|
|
25711
|
+
}
|
|
25712
|
+
};
|
|
25713
|
+
const AccessProperty = () => {
|
|
25714
|
+
alert("access property");
|
|
25715
|
+
};
|
|
25716
|
+
console.log("applicationDetails?.applicationDetails", applicationDetails);
|
|
25717
|
+
console.log("infolabel", isInfoLabel);
|
|
25718
|
+
console.log("assessment details", assessmentDetails);
|
|
25719
|
+
React.useEffect(() => {
|
|
25720
|
+
try {
|
|
25721
|
+
let filters = {
|
|
25722
|
+
consumerCodes: propertyId
|
|
25723
|
+
};
|
|
25724
|
+
const auth = true;
|
|
25725
|
+
Digit.PTService.paymentsearch({
|
|
25726
|
+
tenantId: tenantId,
|
|
25727
|
+
filters: filters,
|
|
25728
|
+
auth: auth
|
|
25729
|
+
}).then(response => {
|
|
25730
|
+
setPayments(response === null || response === void 0 ? void 0 : response.Payments);
|
|
25731
|
+
console.log(response);
|
|
25732
|
+
});
|
|
25733
|
+
} catch (error) {
|
|
25734
|
+
console.log(error);
|
|
25735
|
+
}
|
|
25736
|
+
}, []);
|
|
25520
25737
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
25521
25738
|
style: {
|
|
25522
25739
|
position: "relative"
|
|
@@ -25529,8 +25746,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25529
25746
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
25530
25747
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
25531
25748
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
25532
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25533
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
25749
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a1 = applicationDetails.applicationDetails) === null || _applicationDetails$a1 === void 0 ? void 0 : _applicationDetails$a1.map((detail, index) => {
|
|
25750
|
+
var _detail$values, _detail$additionalDet, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _applicationDetails$a13, _detail$additionalDet2, _applicationDetails$a14, _applicationDetails$a15, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27;
|
|
25534
25751
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
25535
25752
|
key: index
|
|
25536
25753
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25674,10 +25891,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25674
25891
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
25675
25892
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
25676
25893
|
paymentsList: paymentsList,
|
|
25677
|
-
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25894
|
+
additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.additionalDetails,
|
|
25678
25895
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25679
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25680
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
25896
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationData) === null || _applicationDetails$a11 === void 0 ? void 0 : (_applicationDetails$a12 = _applicationDetails$a11.additionalDetails) === null || _applicationDetails$a12 === void 0 ? void 0 : (_applicationDetails$a13 = _applicationDetails$a12.fieldinspection_pending) === null || _applicationDetails$a13 === void 0 ? void 0 : _applicationDetails$a13.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React__default.createElement(InspectionReport, {
|
|
25897
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a14 = applicationDetails.applicationData) === null || _applicationDetails$a14 === void 0 ? void 0 : (_applicationDetails$a15 = _applicationDetails$a14.additionalDetails) === null || _applicationDetails$a15 === void 0 ? void 0 : _applicationDetails$a15.fieldinspection_pending
|
|
25681
25898
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React__default.createElement(PropertyFloors, {
|
|
25682
25899
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
25683
25900
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React__default.createElement(PropertyOwners, {
|
|
@@ -25716,14 +25933,12 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25716
25933
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25717
25934
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl) && /*#__PURE__*/React__default.createElement(DocumentsPreview, {
|
|
25718
25935
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documentsWithUrl
|
|
25719
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.
|
|
25720
|
-
|
|
25721
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
25722
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
25936
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
25937
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
25723
25938
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React__default.createElement(WSAdditonalDetails, {
|
|
25724
25939
|
wsAdditionalDetails: detail,
|
|
25725
25940
|
oldValue: oldValue
|
|
25726
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25941
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.redirectUrl) && /*#__PURE__*/React__default.createElement("div", {
|
|
25727
25942
|
style: {
|
|
25728
25943
|
fontSize: "16px",
|
|
25729
25944
|
lineHeight: "24px",
|
|
@@ -25731,19 +25946,25 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25731
25946
|
padding: "10px 0px"
|
|
25732
25947
|
}
|
|
25733
25948
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
25734
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25949
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : (_detail$additionalDet23 = _detail$additionalDet22.redirectUrl) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.url
|
|
25735
25950
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25736
25951
|
className: "link",
|
|
25737
25952
|
style: {
|
|
25738
25953
|
color: "#a82227"
|
|
25739
25954
|
}
|
|
25740
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25955
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.estimationDetails) && /*#__PURE__*/React__default.createElement(WSFeeEstimation, {
|
|
25741
25956
|
wsAdditionalDetails: detail,
|
|
25742
25957
|
workflowDetails: workflowDetails
|
|
25743
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
25958
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.estimationDetails) && /*#__PURE__*/React__default.createElement(ViewBreakup, {
|
|
25744
25959
|
wsAdditionalDetails: detail,
|
|
25745
25960
|
workflowDetails: workflowDetails
|
|
25746
25961
|
}));
|
|
25962
|
+
}), (assessmentDetails === null || assessmentDetails === void 0 ? void 0 : assessmentDetails.length) > 0 && /*#__PURE__*/React__default.createElement(AssessmentHistory, {
|
|
25963
|
+
assessmentData: filtered
|
|
25964
|
+
}), /*#__PURE__*/React__default.createElement(PaymentHistory, {
|
|
25965
|
+
payments: payments
|
|
25966
|
+
}), /*#__PURE__*/React__default.createElement(ApplicationHistory, {
|
|
25967
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
25747
25968
|
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.timeline) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
25748
25969
|
id: "timeline"
|
|
25749
25970
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
@@ -25774,17 +25995,40 @@ function ApplicationDetailsContent(_ref) {
|
|
|
25774
25995
|
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : (_workflowDetails$data20 = _workflowDetails$data19.timeline) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.length) > 2 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
25775
25996
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
25776
25997
|
onClick: toggleTimeline
|
|
25777
|
-
})))),
|
|
25778
|
-
|
|
25779
|
-
|
|
25780
|
-
|
|
25781
|
-
|
|
25782
|
-
|
|
25783
|
-
|
|
25784
|
-
|
|
25785
|
-
|
|
25786
|
-
|
|
25787
|
-
|
|
25998
|
+
})))), window.location.href.includes("/pt/") ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
25999
|
+
className: "clear-search-container",
|
|
26000
|
+
style: {
|
|
26001
|
+
display: "block"
|
|
26002
|
+
}
|
|
26003
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26004
|
+
label: "Make Property Active",
|
|
26005
|
+
style: {
|
|
26006
|
+
flex: 1
|
|
26007
|
+
},
|
|
26008
|
+
onSubmit: PropertyActive
|
|
26009
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26010
|
+
label: "Make Property Inactive",
|
|
26011
|
+
style: {
|
|
26012
|
+
marginLeft: "20px"
|
|
26013
|
+
},
|
|
26014
|
+
onSubmit: PropertyInActive
|
|
26015
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26016
|
+
label: "Edit Property",
|
|
26017
|
+
style: {
|
|
26018
|
+
marginLeft: "20px"
|
|
26019
|
+
},
|
|
26020
|
+
onSubmit: EditProperty
|
|
26021
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26022
|
+
label: "Access Property",
|
|
26023
|
+
style: {
|
|
26024
|
+
marginLeft: "20px"
|
|
26025
|
+
},
|
|
26026
|
+
onSubmit: AccessProperty
|
|
26027
|
+
})) : /*#__PURE__*/React__default.createElement("div", null), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
26028
|
+
error: showToast.isError,
|
|
26029
|
+
label: t(showToast.label),
|
|
26030
|
+
onClose: closeToast,
|
|
26031
|
+
isDleteBtn: "false"
|
|
25788
26032
|
}));
|
|
25789
26033
|
}
|
|
25790
26034
|
|
|
@@ -26103,7 +26347,8 @@ const ApplicationDetails = props => {
|
|
|
26103
26347
|
showTimeLine = true,
|
|
26104
26348
|
oldValue,
|
|
26105
26349
|
isInfoLabel = false,
|
|
26106
|
-
clearDataDetails
|
|
26350
|
+
clearDataDetails,
|
|
26351
|
+
propertyId
|
|
26107
26352
|
} = props;
|
|
26108
26353
|
React.useEffect(() => {
|
|
26109
26354
|
if (showToast) {
|
|
@@ -26366,7 +26611,8 @@ const ApplicationDetails = props => {
|
|
|
26366
26611
|
paymentsList: paymentsList,
|
|
26367
26612
|
showTimeLine: showTimeLine,
|
|
26368
26613
|
oldValue: oldValue,
|
|
26369
|
-
isInfoLabel: isInfoLabel
|
|
26614
|
+
isInfoLabel: isInfoLabel,
|
|
26615
|
+
propertyId: propertyId
|
|
26370
26616
|
}), showModal ? /*#__PURE__*/React__default.createElement(ActionModal$b, {
|
|
26371
26617
|
t: t,
|
|
26372
26618
|
action: selectedAction,
|
|
@@ -26393,7 +26639,7 @@ const ApplicationDetails = props => {
|
|
|
26393
26639
|
showToast: showToast,
|
|
26394
26640
|
closeToast: closeToast,
|
|
26395
26641
|
businessService: businessService
|
|
26396
|
-
}), !isEditApplication ? /*#__PURE__*/React__default.createElement(ApplicationDetailsActionBar, {
|
|
26642
|
+
}), !isEditApplication ? /*#__PURE__*/React__default.createElement("div", null, !(window.location.href.includes("citizen") && window.location.href.includes("/pt/")) && /*#__PURE__*/React__default.createElement(ApplicationDetailsActionBar, {
|
|
26397
26643
|
workflowDetails: workflowDetails,
|
|
26398
26644
|
displayMenu: displayMenu,
|
|
26399
26645
|
onActionSelect: onActionSelect,
|
|
@@ -26402,7 +26648,7 @@ const ApplicationDetails = props => {
|
|
|
26402
26648
|
forcedActionPrefix: forcedActionPrefix,
|
|
26403
26649
|
ActionBarStyle: ActionBarStyle,
|
|
26404
26650
|
MenuStyle: MenuStyle
|
|
26405
|
-
}) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26651
|
+
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
26406
26652
|
style: {
|
|
26407
26653
|
marginRight: 20
|
|
26408
26654
|
},
|