@mseva/digit-ui-module-sv 1.0.69 → 1.0.70
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.map +1 -1
- package/dist/index.modern.js +386 -26
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -18951,6 +18951,337 @@ const AssessmentHistory = ({
|
|
|
18951
18951
|
}, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React.createElement("hr", null)))));
|
|
18952
18952
|
};
|
|
18953
18953
|
|
|
18954
|
+
const ApplicationHistory = ({
|
|
18955
|
+
applicationData
|
|
18956
|
+
}) => {
|
|
18957
|
+
var _applicationData$audi;
|
|
18958
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
18959
|
+
const history = useHistory();
|
|
18960
|
+
const toggleAccordion = () => {
|
|
18961
|
+
setIsOpen(!isOpen);
|
|
18962
|
+
};
|
|
18963
|
+
function formatDate(timestamp) {
|
|
18964
|
+
const date = new Date(timestamp);
|
|
18965
|
+
const options = {
|
|
18966
|
+
day: '2-digit',
|
|
18967
|
+
month: 'short',
|
|
18968
|
+
year: 'numeric'
|
|
18969
|
+
};
|
|
18970
|
+
return date.toLocaleDateString('en-GB', options).replace(/ /g, '-');
|
|
18971
|
+
}
|
|
18972
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18973
|
+
className: "accordion",
|
|
18974
|
+
style: {
|
|
18975
|
+
width: "100%",
|
|
18976
|
+
margin: "auto",
|
|
18977
|
+
fontFamily: "Roboto, sans-serif",
|
|
18978
|
+
border: "1px solid #ccc",
|
|
18979
|
+
borderRadius: "4px",
|
|
18980
|
+
marginBottom: '10px'
|
|
18981
|
+
}
|
|
18982
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18983
|
+
className: "accordion-header",
|
|
18984
|
+
style: {
|
|
18985
|
+
backgroundColor: "#f0f0f0",
|
|
18986
|
+
padding: "15px",
|
|
18987
|
+
cursor: "pointer"
|
|
18988
|
+
},
|
|
18989
|
+
onClick: toggleAccordion
|
|
18990
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18991
|
+
style: {
|
|
18992
|
+
display: "flex",
|
|
18993
|
+
justifyContent: "space-between",
|
|
18994
|
+
alignItems: 'center'
|
|
18995
|
+
}
|
|
18996
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
18997
|
+
style: {
|
|
18998
|
+
color: '#0d43a7',
|
|
18999
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
19000
|
+
fontSize: '24px',
|
|
19001
|
+
fontWeight: '500'
|
|
19002
|
+
}
|
|
19003
|
+
}, "Application History"), /*#__PURE__*/React.createElement("span", {
|
|
19004
|
+
style: {
|
|
19005
|
+
fontSize: '1.2em'
|
|
19006
|
+
}
|
|
19007
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
19008
|
+
className: "accordion-body",
|
|
19009
|
+
style: {
|
|
19010
|
+
padding: " 15px",
|
|
19011
|
+
backgroundColor: "#fff"
|
|
19012
|
+
}
|
|
19013
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19014
|
+
className: "assessment-item",
|
|
19015
|
+
style: {
|
|
19016
|
+
marginBottom: "15px"
|
|
19017
|
+
}
|
|
19018
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19019
|
+
className: "assessment-row",
|
|
19020
|
+
style: {
|
|
19021
|
+
display: "flex",
|
|
19022
|
+
gap: "100px",
|
|
19023
|
+
marginBottom: "8px"
|
|
19024
|
+
}
|
|
19025
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19026
|
+
style: {
|
|
19027
|
+
fontWeight: "bold",
|
|
19028
|
+
minWidth: '60px',
|
|
19029
|
+
color: 'black'
|
|
19030
|
+
}
|
|
19031
|
+
}, "Application Number"), /*#__PURE__*/React.createElement("span", {
|
|
19032
|
+
style: {
|
|
19033
|
+
flex: '1',
|
|
19034
|
+
color: 'black'
|
|
19035
|
+
}
|
|
19036
|
+
}, applicationData.acknowldgementNumber)), /*#__PURE__*/React.createElement("div", {
|
|
19037
|
+
className: "assessment-row",
|
|
19038
|
+
style: {
|
|
19039
|
+
display: "flex",
|
|
19040
|
+
gap: "132px",
|
|
19041
|
+
marginBottom: "8px",
|
|
19042
|
+
color: 'black'
|
|
19043
|
+
}
|
|
19044
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19045
|
+
className: "label",
|
|
19046
|
+
style: {
|
|
19047
|
+
fontWeight: "bold",
|
|
19048
|
+
minWidth: '60px',
|
|
19049
|
+
color: 'black'
|
|
19050
|
+
}
|
|
19051
|
+
}, "Property ID No."), /*#__PURE__*/React.createElement("span", {
|
|
19052
|
+
className: "value",
|
|
19053
|
+
style: {
|
|
19054
|
+
flex: '1',
|
|
19055
|
+
color: 'black'
|
|
19056
|
+
}
|
|
19057
|
+
}, applicationData.propertyId)), /*#__PURE__*/React.createElement("div", {
|
|
19058
|
+
className: "assessment-row",
|
|
19059
|
+
style: {
|
|
19060
|
+
display: "flex",
|
|
19061
|
+
gap: "120px",
|
|
19062
|
+
marginBottom: "8px",
|
|
19063
|
+
color: 'black'
|
|
19064
|
+
}
|
|
19065
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19066
|
+
className: "label",
|
|
19067
|
+
style: {
|
|
19068
|
+
fontWeight: "bold",
|
|
19069
|
+
minWidth: '60px',
|
|
19070
|
+
color: 'black'
|
|
19071
|
+
}
|
|
19072
|
+
}, "Application Type"), /*#__PURE__*/React.createElement("span", {
|
|
19073
|
+
className: "value",
|
|
19074
|
+
style: {
|
|
19075
|
+
flex: '1',
|
|
19076
|
+
color: 'black'
|
|
19077
|
+
}
|
|
19078
|
+
}, "NEW PROPERTY")), /*#__PURE__*/React.createElement("div", {
|
|
19079
|
+
className: "assessment-row",
|
|
19080
|
+
style: {
|
|
19081
|
+
display: "flex",
|
|
19082
|
+
gap: "140px",
|
|
19083
|
+
marginBottom: "8px",
|
|
19084
|
+
color: 'black'
|
|
19085
|
+
}
|
|
19086
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19087
|
+
className: "label",
|
|
19088
|
+
style: {
|
|
19089
|
+
fontWeight: "bold",
|
|
19090
|
+
minWidth: '60px',
|
|
19091
|
+
color: 'black'
|
|
19092
|
+
}
|
|
19093
|
+
}, "Creation Date"), /*#__PURE__*/React.createElement("span", {
|
|
19094
|
+
className: "value",
|
|
19095
|
+
style: {
|
|
19096
|
+
flex: '1',
|
|
19097
|
+
color: 'black'
|
|
19098
|
+
}
|
|
19099
|
+
}, formatDate((_applicationData$audi = applicationData.auditDetails) === null || _applicationData$audi === void 0 ? void 0 : _applicationData$audi.createdTime))), /*#__PURE__*/React.createElement("div", {
|
|
19100
|
+
className: "assessment-row",
|
|
19101
|
+
style: {
|
|
19102
|
+
display: "flex",
|
|
19103
|
+
gap: "180px",
|
|
19104
|
+
marginBottom: "8px",
|
|
19105
|
+
color: 'black'
|
|
19106
|
+
}
|
|
19107
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19108
|
+
className: "label",
|
|
19109
|
+
style: {
|
|
19110
|
+
fontWeight: "bold",
|
|
19111
|
+
minWidth: '60px',
|
|
19112
|
+
color: 'black'
|
|
19113
|
+
}
|
|
19114
|
+
}, "Status"), /*#__PURE__*/React.createElement("span", {
|
|
19115
|
+
className: "value",
|
|
19116
|
+
style: {
|
|
19117
|
+
flex: '1',
|
|
19118
|
+
color: 'black'
|
|
19119
|
+
}
|
|
19120
|
+
}, applicationData.status)), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
|
|
19121
|
+
to: {
|
|
19122
|
+
pathname: `/digit-ui/citizen/pt/property/application-preview/${applicationData.acknowldgementNumber}`,
|
|
19123
|
+
state: {
|
|
19124
|
+
propertyId: applicationData.propertyId
|
|
19125
|
+
}
|
|
19126
|
+
},
|
|
19127
|
+
style: {
|
|
19128
|
+
color: '#2947a3',
|
|
19129
|
+
display: 'inline',
|
|
19130
|
+
border: '1px solid',
|
|
19131
|
+
padding: '8px',
|
|
19132
|
+
borderRadius: '8px'
|
|
19133
|
+
}
|
|
19134
|
+
}, "View History")))));
|
|
19135
|
+
};
|
|
19136
|
+
|
|
19137
|
+
const PaymentHistory = ({
|
|
19138
|
+
payments
|
|
19139
|
+
}) => {
|
|
19140
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
19141
|
+
const toggleAccordion = () => {
|
|
19142
|
+
setIsOpen(!isOpen);
|
|
19143
|
+
};
|
|
19144
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
19145
|
+
className: "accordion",
|
|
19146
|
+
style: {
|
|
19147
|
+
width: "100%",
|
|
19148
|
+
margin: "auto",
|
|
19149
|
+
fontFamily: "Roboto, sans-serif",
|
|
19150
|
+
border: "1px solid #ccc",
|
|
19151
|
+
borderRadius: "4px",
|
|
19152
|
+
marginBottom: '10px'
|
|
19153
|
+
}
|
|
19154
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19155
|
+
className: "accordion-header",
|
|
19156
|
+
style: {
|
|
19157
|
+
backgroundColor: "#f0f0f0",
|
|
19158
|
+
padding: "15px",
|
|
19159
|
+
cursor: "pointer"
|
|
19160
|
+
},
|
|
19161
|
+
onClick: toggleAccordion
|
|
19162
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
19163
|
+
style: {
|
|
19164
|
+
display: "flex",
|
|
19165
|
+
justifyContent: "space-between",
|
|
19166
|
+
alignItems: 'center'
|
|
19167
|
+
}
|
|
19168
|
+
}, /*#__PURE__*/React.createElement("h3", {
|
|
19169
|
+
style: {
|
|
19170
|
+
color: '#0d43a7',
|
|
19171
|
+
fontFamily: 'Noto Sans,sans-serif',
|
|
19172
|
+
fontSize: '24px',
|
|
19173
|
+
fontWeight: '500'
|
|
19174
|
+
}
|
|
19175
|
+
}, "Payment History"), /*#__PURE__*/React.createElement("span", {
|
|
19176
|
+
style: {
|
|
19177
|
+
fontSize: '1.2em'
|
|
19178
|
+
}
|
|
19179
|
+
}, isOpen ? "<" : ">"))), isOpen && /*#__PURE__*/React.createElement("div", {
|
|
19180
|
+
className: "accordion-body",
|
|
19181
|
+
style: {
|
|
19182
|
+
padding: " 15px",
|
|
19183
|
+
backgroundColor: "#fff"
|
|
19184
|
+
}
|
|
19185
|
+
}, (payments === null || payments === void 0 ? void 0 : payments.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
19186
|
+
style: {
|
|
19187
|
+
color: 'red',
|
|
19188
|
+
fontSize: '16px'
|
|
19189
|
+
}
|
|
19190
|
+
}, "No Payments found"), (payments === null || payments === void 0 ? void 0 : payments.length) > 0 && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("table", {
|
|
19191
|
+
style: {
|
|
19192
|
+
width: '100%',
|
|
19193
|
+
borderCollapse: 'collapse',
|
|
19194
|
+
marginTop: '10px'
|
|
19195
|
+
}
|
|
19196
|
+
}, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", {
|
|
19197
|
+
style: {
|
|
19198
|
+
backgroundColor: '#f5f5f5'
|
|
19199
|
+
}
|
|
19200
|
+
}, /*#__PURE__*/React.createElement("th", {
|
|
19201
|
+
style: {
|
|
19202
|
+
border: '1px solid #ddd',
|
|
19203
|
+
padding: '8px',
|
|
19204
|
+
textAlign: 'left'
|
|
19205
|
+
}
|
|
19206
|
+
}, "Receipt Number"), /*#__PURE__*/React.createElement("th", {
|
|
19207
|
+
style: {
|
|
19208
|
+
border: '1px solid #ddd',
|
|
19209
|
+
padding: '8px',
|
|
19210
|
+
textAlign: 'left'
|
|
19211
|
+
}
|
|
19212
|
+
}, "Transaction Date"), /*#__PURE__*/React.createElement("th", {
|
|
19213
|
+
style: {
|
|
19214
|
+
border: '1px solid #ddd',
|
|
19215
|
+
padding: '8px',
|
|
19216
|
+
textAlign: 'left'
|
|
19217
|
+
}
|
|
19218
|
+
}, "Amount Paid"), /*#__PURE__*/React.createElement("th", {
|
|
19219
|
+
style: {
|
|
19220
|
+
border: '1px solid #ddd',
|
|
19221
|
+
padding: '8px',
|
|
19222
|
+
textAlign: 'left'
|
|
19223
|
+
}
|
|
19224
|
+
}, "Payment Mode"), /*#__PURE__*/React.createElement("th", {
|
|
19225
|
+
style: {
|
|
19226
|
+
border: '1px solid #ddd',
|
|
19227
|
+
padding: '8px',
|
|
19228
|
+
textAlign: 'left'
|
|
19229
|
+
}
|
|
19230
|
+
}, "Transaction ID"), /*#__PURE__*/React.createElement("th", {
|
|
19231
|
+
style: {
|
|
19232
|
+
border: '1px solid #ddd',
|
|
19233
|
+
padding: '8px',
|
|
19234
|
+
textAlign: 'left'
|
|
19235
|
+
}
|
|
19236
|
+
}, "Status"))), /*#__PURE__*/React.createElement("tbody", null, payments.map((payment, index) => {
|
|
19237
|
+
var _payment$paymentDetai, _payment$paymentDetai2;
|
|
19238
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
19239
|
+
key: payment.id || index
|
|
19240
|
+
}, /*#__PURE__*/React.createElement("td", {
|
|
19241
|
+
style: {
|
|
19242
|
+
border: '1px solid #ddd',
|
|
19243
|
+
padding: '8px'
|
|
19244
|
+
}
|
|
19245
|
+
}, ((_payment$paymentDetai = payment.paymentDetails) === null || _payment$paymentDetai === void 0 ? void 0 : (_payment$paymentDetai2 = _payment$paymentDetai[0]) === null || _payment$paymentDetai2 === void 0 ? void 0 : _payment$paymentDetai2.receiptNumber) || payment.receiptNumber || 'N/A'), /*#__PURE__*/React.createElement("td", {
|
|
19246
|
+
style: {
|
|
19247
|
+
border: '1px solid #ddd',
|
|
19248
|
+
padding: '8px'
|
|
19249
|
+
}
|
|
19250
|
+
}, payment.transactionDate ? new Date(payment.transactionDate).toLocaleDateString() : 'N/A'), /*#__PURE__*/React.createElement("td", {
|
|
19251
|
+
style: {
|
|
19252
|
+
border: '1px solid #ddd',
|
|
19253
|
+
padding: '8px'
|
|
19254
|
+
}
|
|
19255
|
+
}, "\u20B9", payment.totalAmountPaid || payment.amount || '0'), /*#__PURE__*/React.createElement("td", {
|
|
19256
|
+
style: {
|
|
19257
|
+
border: '1px solid #ddd',
|
|
19258
|
+
padding: '8px'
|
|
19259
|
+
}
|
|
19260
|
+
}, payment.paymentMode || payment.instrumentType || 'N/A'), /*#__PURE__*/React.createElement("td", {
|
|
19261
|
+
style: {
|
|
19262
|
+
border: '1px solid #ddd',
|
|
19263
|
+
padding: '8px'
|
|
19264
|
+
}
|
|
19265
|
+
}, payment.transactionNumber || payment.instrumentNumber || 'N/A'), /*#__PURE__*/React.createElement("td", {
|
|
19266
|
+
style: {
|
|
19267
|
+
border: '1px solid #ddd',
|
|
19268
|
+
padding: '8px'
|
|
19269
|
+
}
|
|
19270
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
19271
|
+
style: {
|
|
19272
|
+
color: payment.paymentStatus === 'NEW' || payment.paymentStatus === 'SUCCESSFUL' ? 'green' : payment.paymentStatus === 'FAILED' ? 'red' : 'orange',
|
|
19273
|
+
fontWeight: 'bold'
|
|
19274
|
+
}
|
|
19275
|
+
}, payment.paymentStatus || 'N/A')));
|
|
19276
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
19277
|
+
style: {
|
|
19278
|
+
marginTop: '10px',
|
|
19279
|
+
fontSize: '14px',
|
|
19280
|
+
color: '#666'
|
|
19281
|
+
}
|
|
19282
|
+
}, "Total Payments: ", payments.length))));
|
|
19283
|
+
};
|
|
19284
|
+
|
|
18954
19285
|
function ApplicationDetailsContent({
|
|
18955
19286
|
applicationDetails,
|
|
18956
19287
|
demandData,
|
|
@@ -18978,7 +19309,30 @@ function ApplicationDetailsContent({
|
|
|
18978
19309
|
const [showToast, setShowToast] = useState(null);
|
|
18979
19310
|
const [payments, setPayments] = useState([]);
|
|
18980
19311
|
let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
|
|
18981
|
-
|
|
19312
|
+
useEffect(() => {
|
|
19313
|
+
const fetchPaymentHistory = async () => {
|
|
19314
|
+
if (window.location.href.includes("employee/ws") && applicationData !== null && applicationData !== void 0 && applicationData.connectionNo) {
|
|
19315
|
+
try {
|
|
19316
|
+
const businessService = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) === "SEWERAGE" ? "SW" : "WS";
|
|
19317
|
+
const requestParams = {
|
|
19318
|
+
tenantId: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId,
|
|
19319
|
+
consumerCodes: applicationData === null || applicationData === void 0 ? void 0 : applicationData.connectionNo,
|
|
19320
|
+
businessService: businessService,
|
|
19321
|
+
consumerCode: applicationData === null || applicationData === void 0 ? void 0 : applicationData.connectionNo
|
|
19322
|
+
};
|
|
19323
|
+
const paymentData = await Digit.WSService.paymentsearch(requestParams);
|
|
19324
|
+
if (Array.isArray(paymentData) && paymentData.length > 0) {
|
|
19325
|
+
setPayments(paymentData);
|
|
19326
|
+
} else if (paymentData !== null && paymentData !== void 0 && paymentData.Payments && paymentData.Payments.length > 0) {
|
|
19327
|
+
setPayments(paymentData.Payments);
|
|
19328
|
+
}
|
|
19329
|
+
} catch (error) {
|
|
19330
|
+
console.error("Payment fetch error:", error);
|
|
19331
|
+
}
|
|
19332
|
+
}
|
|
19333
|
+
};
|
|
19334
|
+
fetchPaymentHistory();
|
|
19335
|
+
}, [applicationData === null || applicationData === void 0 ? void 0 : applicationData.connectionNo, applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType, tenantId]);
|
|
18982
19336
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
18983
19337
|
var _thumbnailsToShow$ful;
|
|
18984
19338
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
@@ -18996,7 +19350,7 @@ function ApplicationDetailsContent({
|
|
|
18996
19350
|
});
|
|
18997
19351
|
let billData = {};
|
|
18998
19352
|
if ((assessmentData === null || assessmentData === void 0 ? void 0 : (_assessmentData$Asses = assessmentData.Assessments) === null || _assessmentData$Asses === void 0 ? void 0 : _assessmentData$Asses.length) > 0) {
|
|
18999
|
-
const activeRecords = assessmentData.Assessments.filter(a => a.status ===
|
|
19353
|
+
const activeRecords = assessmentData.Assessments.filter(a => a.status === "ACTIVE");
|
|
19000
19354
|
function normalizeDate(timestamp) {
|
|
19001
19355
|
const date = new Date(timestamp);
|
|
19002
19356
|
date.setHours(0, 0, 0, 0);
|
|
@@ -19011,10 +19365,8 @@ function ApplicationDetailsContent({
|
|
|
19011
19365
|
latestMap.set(key, record);
|
|
19012
19366
|
}
|
|
19013
19367
|
});
|
|
19014
|
-
console.log("grouped", latestMap);
|
|
19015
19368
|
const filteredAssessment = Array.from(latestMap.values());
|
|
19016
19369
|
setFiltered(filteredAssessment);
|
|
19017
|
-
console.log(filteredAssessment);
|
|
19018
19370
|
setAssessmentDetails(assessmentData === null || assessmentData === void 0 ? void 0 : assessmentData.Assessments);
|
|
19019
19371
|
billData = await Digit.PaymentService.fetchBill(tenantId, {
|
|
19020
19372
|
businessService: "PT",
|
|
@@ -19061,6 +19413,7 @@ function ApplicationDetailsContent({
|
|
|
19061
19413
|
return `${day}/${month}/${year}`;
|
|
19062
19414
|
};
|
|
19063
19415
|
const getTimelineCaptions = (checkpoint, index = 0, timeline) => {
|
|
19416
|
+
if (!checkpoint) return null;
|
|
19064
19417
|
if (checkpoint.state === "OPEN" || checkpoint.status === "INITIATED" && !window.location.href.includes("/obps/")) {
|
|
19065
19418
|
var _applicationData$audi;
|
|
19066
19419
|
const caption = {
|
|
@@ -19071,7 +19424,7 @@ function ApplicationDetailsContent({
|
|
|
19071
19424
|
data: caption
|
|
19072
19425
|
});
|
|
19073
19426
|
} else if (window.location.href.includes("/obps/") || window.location.href.includes("/noc/") || window.location.href.includes("/ws/")) {
|
|
19074
|
-
var _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$auditDeta, _checkpoint$assignes2, _checkpoint$assignes3;
|
|
19427
|
+
var _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$auditDeta, _checkpoint$assignes2, _checkpoint$assignes3, _applicationData$proc, _applicationData$proc2, _applicationData$proc3, _checkpoint$assignes4, _checkpoint$assignes5, _applicationData$proc4, _applicationData$proc5, _applicationData$proc6, _applicationData$proc7, _applicationData$proc8, _applicationData$proc9, _checkpoint$assignes6, _checkpoint$assignes7;
|
|
19075
19428
|
const privacy = {
|
|
19076
19429
|
uuid: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.uuid,
|
|
19077
19430
|
fieldName: "mobileNumber",
|
|
@@ -19094,13 +19447,14 @@ function ApplicationDetailsContent({
|
|
|
19094
19447
|
}
|
|
19095
19448
|
}
|
|
19096
19449
|
};
|
|
19097
|
-
const previousCheckpoint = timeline
|
|
19450
|
+
const previousCheckpoint = timeline && Array.isArray(timeline) && index > 0 && index - 1 < timeline.length ? timeline[index - 1] : null;
|
|
19098
19451
|
const caption = {
|
|
19099
19452
|
date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
|
|
19100
|
-
name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.name,
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19453
|
+
name: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.name) || "N/A",
|
|
19454
|
+
mobileNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$proc = applicationData.processInstance) === null || _applicationData$proc === void 0 ? void 0 : (_applicationData$proc2 = _applicationData$proc.assignes) === null || _applicationData$proc2 === void 0 ? void 0 : (_applicationData$proc3 = _applicationData$proc2[0]) === null || _applicationData$proc3 === void 0 ? void 0 : _applicationData$proc3.uuid) === (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes4 = checkpoint.assignes) === null || _checkpoint$assignes4 === void 0 ? void 0 : (_checkpoint$assignes5 = _checkpoint$assignes4[0]) === null || _checkpoint$assignes5 === void 0 ? void 0 : _checkpoint$assignes5.uuid) && applicationData !== null && applicationData !== void 0 && (_applicationData$proc4 = applicationData.processInstance) !== null && _applicationData$proc4 !== void 0 && (_applicationData$proc5 = _applicationData$proc4.assignes) !== null && _applicationData$proc5 !== void 0 && (_applicationData$proc6 = _applicationData$proc5[0]) !== null && _applicationData$proc6 !== void 0 && _applicationData$proc6.mobileNumber ? applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$proc7 = applicationData.processInstance) === null || _applicationData$proc7 === void 0 ? void 0 : (_applicationData$proc8 = _applicationData$proc7.assignes) === null || _applicationData$proc8 === void 0 ? void 0 : (_applicationData$proc9 = _applicationData$proc8[0]) === null || _applicationData$proc9 === void 0 ? void 0 : _applicationData$proc9.mobileNumber : (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes6 = checkpoint.assignes) === null || _checkpoint$assignes6 === void 0 ? void 0 : (_checkpoint$assignes7 = _checkpoint$assignes6[0]) === null || _checkpoint$assignes7 === void 0 ? void 0 : _checkpoint$assignes7.mobileNumber) || "N/A",
|
|
19455
|
+
comment: checkpoint !== null && checkpoint !== void 0 && checkpoint.comment ? t(checkpoint.comment) : "N/A",
|
|
19456
|
+
wfComment: previousCheckpoint ? previousCheckpoint.wfComment || [] : [],
|
|
19457
|
+
thumbnailsToShow: (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.thumbnailsToShow) || []
|
|
19104
19458
|
};
|
|
19105
19459
|
return /*#__PURE__*/React.createElement(TLCaption, {
|
|
19106
19460
|
data: caption,
|
|
@@ -19108,12 +19462,12 @@ function ApplicationDetailsContent({
|
|
|
19108
19462
|
privacy: privacy
|
|
19109
19463
|
});
|
|
19110
19464
|
} else {
|
|
19111
|
-
var _applicationData$audi2, _checkpoint$
|
|
19465
|
+
var _applicationData$audi2, _checkpoint$assignes8, _checkpoint$assignes9, _checkpoint$assignes0, _checkpoint$assignes1;
|
|
19112
19466
|
const caption = {
|
|
19113
19467
|
date: convertEpochToDateDMY(applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$audi2 = applicationData.auditDetails) === null || _applicationData$audi2 === void 0 ? void 0 : _applicationData$audi2.lastModifiedTime),
|
|
19114
|
-
name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
19115
|
-
wfComment: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment,
|
|
19116
|
-
mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$
|
|
19468
|
+
name: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes8 = checkpoint.assignes) === null || _checkpoint$assignes8 === void 0 ? void 0 : (_checkpoint$assignes9 = _checkpoint$assignes8[0]) === null || _checkpoint$assignes9 === void 0 ? void 0 : _checkpoint$assignes9.name) || "N/A",
|
|
19469
|
+
wfComment: (checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.wfComment) || [],
|
|
19470
|
+
mobileNumber: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes0 = checkpoint.assignes) === null || _checkpoint$assignes0 === void 0 ? void 0 : (_checkpoint$assignes1 = _checkpoint$assignes0[0]) === null || _checkpoint$assignes1 === void 0 ? void 0 : _checkpoint$assignes1.mobileNumber) || "N/A"
|
|
19117
19471
|
};
|
|
19118
19472
|
return /*#__PURE__*/React.createElement(TLCaption, {
|
|
19119
19473
|
data: caption
|
|
@@ -19203,7 +19557,6 @@ function ApplicationDetailsContent({
|
|
|
19203
19557
|
const toggleTimeline = () => {
|
|
19204
19558
|
setShowAllTimeline(prev => !prev);
|
|
19205
19559
|
};
|
|
19206
|
-
console.log("demand Data arr", demandData);
|
|
19207
19560
|
const totalDemandInterest = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.demandInterest, 0);
|
|
19208
19561
|
const totalDemandPenality = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.demandPenality, 0);
|
|
19209
19562
|
const totalCollectionTax = demandData === null || demandData === void 0 ? void 0 : demandData.reduce((sum, item) => sum + item.collectionTax, 0);
|
|
@@ -19240,7 +19593,6 @@ function ApplicationDetailsContent({
|
|
|
19240
19593
|
...payload
|
|
19241
19594
|
}
|
|
19242
19595
|
}, tenantId, propertyIds);
|
|
19243
|
-
console.log("response from inactive/active", response);
|
|
19244
19596
|
};
|
|
19245
19597
|
const applicationData_pt = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
19246
19598
|
const propertyIds = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.propertyId) || "";
|
|
@@ -19303,9 +19655,6 @@ function ApplicationDetailsContent({
|
|
|
19303
19655
|
const AccessProperty = () => {
|
|
19304
19656
|
alert("access property");
|
|
19305
19657
|
};
|
|
19306
|
-
console.log("applicationDetails?.applicationDetails", applicationDetails, businessService);
|
|
19307
|
-
console.log("infolabel", isInfoLabel);
|
|
19308
|
-
console.log("assessment details", assessmentDetails);
|
|
19309
19658
|
useEffect(() => {
|
|
19310
19659
|
try {
|
|
19311
19660
|
let filters = {
|
|
@@ -19328,12 +19677,9 @@ function ApplicationDetailsContent({
|
|
|
19328
19677
|
auth: auth
|
|
19329
19678
|
}).then(response => {
|
|
19330
19679
|
setPayments(response === null || response === void 0 ? void 0 : response.Payments);
|
|
19331
|
-
console.log(response);
|
|
19332
19680
|
});
|
|
19333
19681
|
}
|
|
19334
|
-
} catch (error) {
|
|
19335
|
-
console.log(error);
|
|
19336
|
-
}
|
|
19682
|
+
} catch (error) {}
|
|
19337
19683
|
}, []);
|
|
19338
19684
|
return /*#__PURE__*/React.createElement(Card, {
|
|
19339
19685
|
style: {
|
|
@@ -19562,6 +19908,10 @@ function ApplicationDetailsContent({
|
|
|
19562
19908
|
}));
|
|
19563
19909
|
}), (assessmentDetails === null || assessmentDetails === void 0 ? void 0 : assessmentDetails.length) > 0 && /*#__PURE__*/React.createElement(AssessmentHistory, {
|
|
19564
19910
|
assessmentData: filtered
|
|
19911
|
+
}), /*#__PURE__*/React.createElement(PaymentHistory, {
|
|
19912
|
+
payments: payments
|
|
19913
|
+
}), /*#__PURE__*/React.createElement(ApplicationHistory, {
|
|
19914
|
+
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
19565
19915
|
}), 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.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19566
19916
|
id: "timeline"
|
|
19567
19917
|
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
@@ -19888,7 +20238,6 @@ function ApplicationDetailsWarningPopup({
|
|
|
19888
20238
|
|
|
19889
20239
|
const ApplicationDetails = props => {
|
|
19890
20240
|
var _workflowDetails$data, _blockReason$BPA;
|
|
19891
|
-
console.log("props", props);
|
|
19892
20241
|
let isEditApplication = window.location.href.includes("editApplication") && window.location.href.includes("bpa");
|
|
19893
20242
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
19894
20243
|
const state = Digit.ULBService.getStateId();
|
|
@@ -19942,7 +20291,7 @@ const ApplicationDetails = props => {
|
|
|
19942
20291
|
propertyId
|
|
19943
20292
|
} = props;
|
|
19944
20293
|
useEffect(() => {
|
|
19945
|
-
if (showToast) {
|
|
20294
|
+
if (showToast && workflowDetails && workflowDetails.revalidate) {
|
|
19946
20295
|
workflowDetails.revalidate();
|
|
19947
20296
|
}
|
|
19948
20297
|
}, [showToast]);
|
|
@@ -19973,7 +20322,6 @@ const ApplicationDetails = props => {
|
|
|
19973
20322
|
} else if (!(action !== null && action !== void 0 && action.redirectionUrl) && (action === null || action === void 0 ? void 0 : action.action) != "EDIT PAY 2") {
|
|
19974
20323
|
setShowModal(true);
|
|
19975
20324
|
} else if ((action === null || action === void 0 ? void 0 : (_action$redirectionUr8 = action.redirectionUrl) === null || _action$redirectionUr8 === void 0 ? void 0 : (_action$redirectionUr9 = _action$redirectionUr8.state) === null || _action$redirectionUr9 === void 0 ? void 0 : (_action$redirectionUr0 = _action$redirectionUr9.applicationData) === null || _action$redirectionUr0 === void 0 ? void 0 : _action$redirectionUr0.workflowCode) === "DIRECTRENEWAL") {
|
|
19976
|
-
console.log("Got Inside Direct");
|
|
19977
20325
|
setShowModal(true);
|
|
19978
20326
|
} else {
|
|
19979
20327
|
var _action$redirectionUr1, _action$redirectionUr10;
|
|
@@ -20124,6 +20472,18 @@ const ApplicationDetails = props => {
|
|
|
20124
20472
|
});
|
|
20125
20473
|
clearDataDetails && setTimeout(clearDataDetails, 3000);
|
|
20126
20474
|
setTimeout(closeToast, 5000);
|
|
20475
|
+
try {
|
|
20476
|
+
const svc = (businessService || "").toUpperCase();
|
|
20477
|
+
const act = ((selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.action) || "").toUpperCase();
|
|
20478
|
+
if (svc.includes("DISCONNECT") && (act.includes("APPROVE") || act.includes("EXECUTE") || act.includes("APPROVE_CONNECTION"))) {
|
|
20479
|
+
setTimeout(() => {
|
|
20480
|
+
var _window;
|
|
20481
|
+
if ((_window = window) !== null && _window !== void 0 && _window.location) {
|
|
20482
|
+
window.location.href = "https://mseva.lgpunjab.gov.in/employee/inbox";
|
|
20483
|
+
}
|
|
20484
|
+
}, 3000);
|
|
20485
|
+
}
|
|
20486
|
+
} catch (e) {}
|
|
20127
20487
|
queryClient.clear();
|
|
20128
20488
|
queryClient.refetchQueries("APPLICATION_SEARCH");
|
|
20129
20489
|
}
|