@mseva/digit-ui-module-noc 1.0.79-dev.14 → 1.0.79-dev.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +57 -39
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -9,7 +9,6 @@ import EXIF from 'exif-js';
|
|
|
9
9
|
import { combineReducers } from 'redux';
|
|
10
10
|
import { useDispatch, useSelector } from 'react-redux';
|
|
11
11
|
|
|
12
|
-
const SECRET_KEY = localStorage.getItem("token");
|
|
13
12
|
const convertEpochToDate = dateEpoch => {
|
|
14
13
|
if (dateEpoch) {
|
|
15
14
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -307,15 +306,26 @@ const downloadPdfFromURL = async receiptUrl => {
|
|
|
307
306
|
}
|
|
308
307
|
};
|
|
309
308
|
const encodeURIComponentCustom = text => {
|
|
309
|
+
const SECRET_KEY = localStorage.getItem("token");
|
|
310
|
+
if (!SECRET_KEY) {
|
|
311
|
+
console.error("SECRET_KEY (token) not found in localStorage");
|
|
312
|
+
return null;
|
|
313
|
+
}
|
|
310
314
|
const encrypted = CryptoJS.AES.encrypt(text, SECRET_KEY).toString();
|
|
311
315
|
return encrypted.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
312
316
|
};
|
|
313
317
|
const decodeURIComponentCustom = cipherText => {
|
|
314
318
|
try {
|
|
319
|
+
const SECRET_KEY = localStorage.getItem("token");
|
|
320
|
+
if (!SECRET_KEY) {
|
|
321
|
+
console.error("SECRET_KEY (token) not found in localStorage");
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
315
324
|
const base64 = cipherText.replace(/-/g, "+").replace(/_/g, "/");
|
|
316
325
|
const bytes = CryptoJS.AES.decrypt(base64, SECRET_KEY);
|
|
317
326
|
return bytes.toString(CryptoJS.enc.Utf8);
|
|
318
327
|
} catch (e) {
|
|
328
|
+
console.error("Error decrypting ID:", e);
|
|
319
329
|
return null;
|
|
320
330
|
}
|
|
321
331
|
};
|
|
@@ -13445,8 +13455,6 @@ const AssessmentHistory = ({
|
|
|
13445
13455
|
}, "Cancel"), "\xA0\xA0\xA0\xA0\xA0\xA0\xA0 ")), index !== assessmentData.length - 1 && /*#__PURE__*/React.createElement("hr", null)))));
|
|
13446
13456
|
};
|
|
13447
13457
|
|
|
13448
|
-
const SECRET_KEY$1 = localStorage.getItem("token");
|
|
13449
|
-
|
|
13450
13458
|
const ApplicationHistory = ({
|
|
13451
13459
|
applicationData
|
|
13452
13460
|
}) => {
|
|
@@ -14134,7 +14142,7 @@ function NewApplicationTimeline({
|
|
|
14134
14142
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
14135
14143
|
className: "custom-timeline-entries"
|
|
14136
14144
|
}, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
|
|
14137
|
-
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$
|
|
14145
|
+
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
14138
14146
|
return /*#__PURE__*/React.createElement("div", {
|
|
14139
14147
|
key: index,
|
|
14140
14148
|
className: "custom-timeline-entry"
|
|
@@ -14171,13 +14179,9 @@ function NewApplicationTimeline({
|
|
|
14171
14179
|
className: "custom-officer-info"
|
|
14172
14180
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14173
14181
|
className: "custom-officer-name"
|
|
14174
|
-
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("
|
|
14182
|
+
}, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("div", {
|
|
14175
14183
|
className: "custom-officer-name"
|
|
14176
|
-
},
|
|
14177
|
-
className: "custom-officer-email"
|
|
14178
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
14179
|
-
className: "custom-email-label"
|
|
14180
|
-
}, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
|
|
14184
|
+
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))), /*#__PURE__*/React.createElement("div", {
|
|
14181
14185
|
className: "custom-card-column custom-card-column-mid"
|
|
14182
14186
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
14183
14187
|
className: "custom-action-title"
|
|
@@ -14190,7 +14194,7 @@ function NewApplicationTimeline({
|
|
|
14190
14194
|
}, /*#__PURE__*/React.createElement("h3", {
|
|
14191
14195
|
className: "custom-action-title"
|
|
14192
14196
|
}, t("Action")), /*#__PURE__*/React.createElement("div", {
|
|
14193
|
-
className:
|
|
14197
|
+
className: `custom-status-text ${(item === null || item === void 0 ? void 0 : item.performedAction) === "OBSERVATION" ? "chb-slot-status--unavailable" : ""}`
|
|
14194
14198
|
}, t((item === null || item === void 0 ? void 0 : item.performedAction) || "CS_COMMON_NA")))), (item === null || item === void 0 ? void 0 : item.wfComment) && (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment.length) > 0 && (item === null || item === void 0 ? void 0 : (_item$wfComment2 = item.wfComment) === null || _item$wfComment2 === void 0 ? void 0 : _item$wfComment2.some(c => c === null || c === void 0 ? void 0 : c.trim())) && /*#__PURE__*/React.createElement("div", {
|
|
14195
14199
|
className: "custom-comments-section container-full-width"
|
|
14196
14200
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16578,7 +16582,7 @@ const NOCFeeTable = ({
|
|
|
16578
16582
|
window.addEventListener("resize", checkMobile);
|
|
16579
16583
|
return () => window.removeEventListener("resize", checkMobile);
|
|
16580
16584
|
}, []);
|
|
16581
|
-
console.log(
|
|
16585
|
+
console.log('feeHistory', feeHistory);
|
|
16582
16586
|
const columns = [{
|
|
16583
16587
|
key: "title",
|
|
16584
16588
|
label: "BPA_TAXHEAD_CODE",
|
|
@@ -16590,7 +16594,6 @@ const NOCFeeTable = ({
|
|
|
16590
16594
|
headerLabel: "BPA_AMOUNT",
|
|
16591
16595
|
type: "custom",
|
|
16592
16596
|
render: (row, rowIndex, t) => {
|
|
16593
|
-
var _feeData$row$index, _feeData$row$index2;
|
|
16594
16597
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16595
16598
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
|
|
16596
16599
|
style: {
|
|
@@ -16609,7 +16612,7 @@ const NOCFeeTable = ({
|
|
|
16609
16612
|
t: t,
|
|
16610
16613
|
type: "number",
|
|
16611
16614
|
isMandatory: false,
|
|
16612
|
-
value:
|
|
16615
|
+
value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount || row.amount || "",
|
|
16613
16616
|
onChange: e => {
|
|
16614
16617
|
let val = e.target.value;
|
|
16615
16618
|
if (val.length > 1 && val.startsWith("0")) {
|
|
@@ -16628,20 +16631,20 @@ const NOCFeeTable = ({
|
|
|
16628
16631
|
headerLabel: "BPA_REMARKS",
|
|
16629
16632
|
type: "custom",
|
|
16630
16633
|
render: (row, rowIndex, t) => {
|
|
16631
|
-
var _feeData$row$
|
|
16634
|
+
var _feeData$row$index2;
|
|
16632
16635
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16633
16636
|
return " ";
|
|
16634
16637
|
}
|
|
16635
16638
|
if (disable) {
|
|
16636
|
-
var _feeData$row$
|
|
16637
|
-
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$
|
|
16639
|
+
var _feeData$row$index;
|
|
16640
|
+
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.remark) || /*#__PURE__*/React.createElement(TextArea, {
|
|
16638
16641
|
placeholder: "Enter remarks",
|
|
16639
16642
|
disabled: true,
|
|
16640
16643
|
className: "custom-fee-table-textarea"
|
|
16641
16644
|
}));
|
|
16642
16645
|
}
|
|
16643
16646
|
return /*#__PURE__*/React.createElement(TextArea, {
|
|
16644
|
-
value: ((_feeData$row$
|
|
16647
|
+
value: ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.remark) || "",
|
|
16645
16648
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16646
16649
|
disabled: false,
|
|
16647
16650
|
className: "custom-fee-table-textarea",
|
|
@@ -16709,7 +16712,7 @@ const NOCFeeTable = ({
|
|
|
16709
16712
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16710
16713
|
className: "custom-fee-mobile-cards"
|
|
16711
16714
|
}, feeDataWithTotal.map((row, i) => {
|
|
16712
|
-
var _feeData$row$
|
|
16715
|
+
var _feeData$row$index3;
|
|
16713
16716
|
return /*#__PURE__*/React.createElement("div", {
|
|
16714
16717
|
key: row.index || i,
|
|
16715
16718
|
className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
|
|
@@ -16729,7 +16732,7 @@ const NOCFeeTable = ({
|
|
|
16729
16732
|
t: t,
|
|
16730
16733
|
type: "text",
|
|
16731
16734
|
isMandatory: false,
|
|
16732
|
-
value:
|
|
16735
|
+
value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount !== null && feeData[row.index].adjustedAmount !== undefined ? feeData[row.index].adjustedAmount : row.amount !== null && row.amount !== undefined ? row.amount : "",
|
|
16733
16736
|
onChange: e => {
|
|
16734
16737
|
let val = e.target.value;
|
|
16735
16738
|
if (/^\d*\.?\d*$/.test(val)) {
|
|
@@ -16756,7 +16759,7 @@ const NOCFeeTable = ({
|
|
|
16756
16759
|
}, /*#__PURE__*/React.createElement("label", {
|
|
16757
16760
|
className: "custom-fee-card-label"
|
|
16758
16761
|
}, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
|
|
16759
|
-
value: ((_feeData$row$
|
|
16762
|
+
value: ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || "",
|
|
16760
16763
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16761
16764
|
disabled: disable,
|
|
16762
16765
|
className: "custom-fee-table-textarea",
|
|
@@ -18514,6 +18517,7 @@ const InspectionReport$1 = ({
|
|
|
18514
18517
|
sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
|
|
18515
18518
|
}, [FieldReports]);
|
|
18516
18519
|
useEffect$1(() => {
|
|
18520
|
+
console.log("useffect 2INSPECTION_REPORT_PENDING");
|
|
18517
18521
|
let ques = [];
|
|
18518
18522
|
let documentlist = [];
|
|
18519
18523
|
bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
|
|
@@ -18988,15 +18992,15 @@ const getSiteDetails = (appData, t) => {
|
|
|
18988
18992
|
}, {
|
|
18989
18993
|
title: t("NOC_ROAD_TYPE_LABEL"),
|
|
18990
18994
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails16 = appData.nocDetails) === null || _appData$nocDetails16 === void 0 ? void 0 : (_appData$nocDetails17 = _appData$nocDetails16.additionalDetails) === null || _appData$nocDetails17 === void 0 ? void 0 : (_appData$nocDetails18 = _appData$nocDetails17.siteDetails) === null || _appData$nocDetails18 === void 0 ? void 0 : (_appData$nocDetails19 = _appData$nocDetails18.roadType) === null || _appData$nocDetails19 === void 0 ? void 0 : _appData$nocDetails19.name) || (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails20 = appData.nocDetails) === null || _appData$nocDetails20 === void 0 ? void 0 : (_appData$nocDetails21 = _appData$nocDetails20.additionalDetails) === null || _appData$nocDetails21 === void 0 ? void 0 : (_appData$nocDetails22 = _appData$nocDetails21.siteDetails) === null || _appData$nocDetails22 === void 0 ? void 0 : _appData$nocDetails22.roadType) || "N/A"
|
|
18995
|
+
}, {
|
|
18996
|
+
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18997
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.netTotalArea) || "N/A"
|
|
18991
18998
|
}, {
|
|
18992
18999
|
title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
|
|
18993
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
19000
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.areaLeftForRoadWidening) || "N/A"
|
|
18994
19001
|
}, {
|
|
18995
19002
|
title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
|
|
18996
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18997
|
-
}, {
|
|
18998
|
-
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18999
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netTotalArea) || "N/A"
|
|
19003
|
+
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netPlotAreaAfterWidening) || "N/A"
|
|
19000
19004
|
}, {
|
|
19001
19005
|
title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
|
|
19002
19006
|
value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.roadWidthAtSite) || "N/A"
|
|
@@ -19224,6 +19228,7 @@ const getJESiteImages = async (appData, t, stateCode) => {
|
|
|
19224
19228
|
const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
|
|
19225
19229
|
const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
|
|
19226
19230
|
const exifData = await getExifDataFromUrl(exiflink);
|
|
19231
|
+
console.log("exifData in siteImages", exifData);
|
|
19227
19232
|
if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
|
|
19228
19233
|
exifData.Orientation = 1;
|
|
19229
19234
|
}
|
|
@@ -21372,12 +21377,8 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21372
21377
|
}
|
|
21373
21378
|
const userRoles = (_user5 = user) === null || _user5 === void 0 ? void 0 : (_user5$info = _user5.info) === null || _user5$info === void 0 ? void 0 : (_user5$info$roles = _user5$info.roles) === null || _user5$info$roles === void 0 ? void 0 : _user5$info$roles.map(e => e.code);
|
|
21374
21379
|
useEffect$1(() => {
|
|
21375
|
-
|
|
21376
|
-
|
|
21377
|
-
}
|
|
21378
|
-
if (data) {
|
|
21379
|
-
data.revalidate();
|
|
21380
|
-
}
|
|
21380
|
+
refetch();
|
|
21381
|
+
workflowDetails.revalidate();
|
|
21381
21382
|
}, []);
|
|
21382
21383
|
let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.actionState) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.nextActions) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.filter(e => {
|
|
21383
21384
|
return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
|
|
@@ -22579,7 +22580,10 @@ const useInboxMobileCardsData = ({
|
|
|
22579
22580
|
[t("TL_COMMON_TABLE_COL_APP_DATE")]: format(new Date(date), 'dd/MM/yyyy'),
|
|
22580
22581
|
[t("NOC_PRIMARY_OWNER_NAME_LABEL")]: t(owner),
|
|
22581
22582
|
[t("PT_COMMON_TABLE_COL_STATUS_LABEL")]: t(status),
|
|
22582
|
-
"
|
|
22583
|
+
"Vehicle Log": {
|
|
22584
|
+
id: encodeURIComponentCustom(applicationId),
|
|
22585
|
+
hidden: true
|
|
22586
|
+
}
|
|
22583
22587
|
}));
|
|
22584
22588
|
const MobileSortFormValues = () => {
|
|
22585
22589
|
const sortOrderOptions = [{
|
|
@@ -22609,10 +22613,14 @@ const useInboxMobileCardsData = ({
|
|
|
22609
22613
|
})
|
|
22610
22614
|
}));
|
|
22611
22615
|
};
|
|
22616
|
+
const serviceRequestIdKeyFunction = object => {
|
|
22617
|
+
var _object$VehicleLog;
|
|
22618
|
+
return (_object$VehicleLog = object["Vehicle Log"]) === null || _object$VehicleLog === void 0 ? void 0 : _object$VehicleLog.id;
|
|
22619
|
+
};
|
|
22612
22620
|
return {
|
|
22613
22621
|
data: dataForMobileInboxCards,
|
|
22614
22622
|
linkPrefix: `${parentRoute}/inbox/application-overview/`,
|
|
22615
|
-
serviceRequestIdKey:
|
|
22623
|
+
serviceRequestIdKey: serviceRequestIdKeyFunction,
|
|
22616
22624
|
MobileSortFormValues
|
|
22617
22625
|
};
|
|
22618
22626
|
};
|
|
@@ -22779,7 +22787,8 @@ const Inbox = ({
|
|
|
22779
22787
|
console.log('employeeName, employeeRole', employeeName, employeeRole);
|
|
22780
22788
|
const {
|
|
22781
22789
|
isLoading: isInboxLoading,
|
|
22782
|
-
data
|
|
22790
|
+
data,
|
|
22791
|
+
refetch
|
|
22783
22792
|
} = Digit.Hooks.noc.useInbox({
|
|
22784
22793
|
tenantId,
|
|
22785
22794
|
filters: {
|
|
@@ -22787,9 +22796,7 @@ const Inbox = ({
|
|
|
22787
22796
|
}
|
|
22788
22797
|
});
|
|
22789
22798
|
useEffect$1(() => {
|
|
22790
|
-
|
|
22791
|
-
data.revalidate();
|
|
22792
|
-
}
|
|
22799
|
+
refetch();
|
|
22793
22800
|
}, []);
|
|
22794
22801
|
const [table, setTable] = useState([]);
|
|
22795
22802
|
const [statuses, setStatuses] = useState([]);
|
|
@@ -22984,6 +22991,13 @@ const NOCBreadCrumbs$1 = ({
|
|
|
22984
22991
|
t
|
|
22985
22992
|
} = useTranslation();
|
|
22986
22993
|
const getBreadcrumbs = () => {
|
|
22994
|
+
var _Digit$UserService, _user$info, _user$info$roles, _user$info2, _user$info2$roles;
|
|
22995
|
+
const tenantId = localStorage.getItem("CITIZEN.CITY");
|
|
22996
|
+
const user = (_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : _Digit$UserService.getUser();
|
|
22997
|
+
const isUserRegistered = (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.some(role => (role === null || role === void 0 ? void 0 : role.code) === "BPA_ARCHITECT")) || (user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : (_user$info2$roles = _user$info2.roles) === null || _user$info2$roles === void 0 ? void 0 : _user$info2$roles.some(role => {
|
|
22998
|
+
var _role$code;
|
|
22999
|
+
return (role === null || role === void 0 ? void 0 : (_role$code = role.code) === null || _role$code === void 0 ? void 0 : _role$code.includes("BPA")) && (role === null || role === void 0 ? void 0 : role.tenantId) === tenantId;
|
|
23000
|
+
}));
|
|
22987
23001
|
const breadcrumbs = [];
|
|
22988
23002
|
const hasSecondBreadcrumb = location.pathname.includes("/noc/new-application") || location.pathname.includes("noc/my-application") || location.pathname.includes("noc/search/application-overview/") || location.pathname.includes("noc/search-application");
|
|
22989
23003
|
breadcrumbs.push(/*#__PURE__*/React.createElement("span", {
|
|
@@ -23003,7 +23017,7 @@ const NOCBreadCrumbs$1 = ({
|
|
|
23003
23017
|
breadcrumbs.push(/*#__PURE__*/React.createElement("span", {
|
|
23004
23018
|
key: "noc"
|
|
23005
23019
|
}, /*#__PURE__*/React.createElement(Link, {
|
|
23006
|
-
to: "/digit-ui/citizen/noc-home",
|
|
23020
|
+
to: isUserRegistered ? "/digit-ui/citizen/obps/home" : "/digit-ui/citizen/noc-home",
|
|
23007
23021
|
style: {
|
|
23008
23022
|
textDecoration: "none"
|
|
23009
23023
|
}
|
|
@@ -27955,6 +27969,8 @@ function NOCSummary({
|
|
|
27955
27969
|
const propertyId = formData === null || formData === void 0 ? void 0 : (_formData$application3 = formData.applicationDetails) === null || _formData$application3 === void 0 ? void 0 : (_formData$application4 = _formData$application3.owners) === null || _formData$application4 === void 0 ? void 0 : (_formData$application5 = _formData$application4[0]) === null || _formData$application5 === void 0 ? void 0 : _formData$application5.propertyId;
|
|
27956
27970
|
const applicationNo = formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$Noc = _formData$apiData.Noc) === null || _formData$apiData$Noc === void 0 ? void 0 : (_formData$apiData$Noc2 = _formData$apiData$Noc[0]) === null || _formData$apiData$Noc2 === void 0 ? void 0 : _formData$apiData$Noc2.applicationNo;
|
|
27957
27971
|
const submittedOn = (formData === null || formData === void 0 ? void 0 : (_formData$apiData2 = formData.apiData) === null || _formData$apiData2 === void 0 ? void 0 : (_formData$apiData2$No = _formData$apiData2.Noc) === null || _formData$apiData2$No === void 0 ? void 0 : (_formData$apiData2$No2 = _formData$apiData2$No[0]) === null || _formData$apiData2$No2 === void 0 ? void 0 : (_formData$apiData2$No3 = _formData$apiData2$No2.nocDetails) === null || _formData$apiData2$No3 === void 0 ? void 0 : (_formData$apiData2$No4 = _formData$apiData2$No3.additionalDetails) === null || _formData$apiData2$No4 === void 0 ? void 0 : _formData$apiData2$No4.SubmittedOn) || Date.now();
|
|
27972
|
+
console.log('applicationNo, submittedOn', applicationNo, submittedOn);
|
|
27973
|
+
console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
|
|
27958
27974
|
return /*#__PURE__*/React.createElement("div", {
|
|
27959
27975
|
className: "employee-main-application-details"
|
|
27960
27976
|
}, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
|
|
@@ -29836,6 +29852,8 @@ const CitizenApplicationOverview = () => {
|
|
|
29836
29852
|
top: 0,
|
|
29837
29853
|
behavior: "smooth"
|
|
29838
29854
|
});
|
|
29855
|
+
refetch();
|
|
29856
|
+
workflowDetails.revalidate();
|
|
29839
29857
|
}, []);
|
|
29840
29858
|
useEffect$1(() => {
|
|
29841
29859
|
var _applicationDetails$N9;
|