@mseva/digit-ui-module-noc 1.0.87 → 1.0.89
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 +61 -68
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -7713,6 +7713,7 @@ const Response = props => {
|
|
|
7713
7713
|
};
|
|
7714
7714
|
const onGoToNOC = () => {
|
|
7715
7715
|
history.push(`/digit-ui/employee/noc/inbox`);
|
|
7716
|
+
window.location.reload();
|
|
7716
7717
|
};
|
|
7717
7718
|
const onViewApplication = () => {
|
|
7718
7719
|
history.push(`/digit-ui/citizen/noc/search/application-overview/${nocCode}`);
|
|
@@ -8325,9 +8326,9 @@ const configBPAApproverApplication = ({
|
|
|
8325
8326
|
},
|
|
8326
8327
|
form: [{
|
|
8327
8328
|
body: [{
|
|
8328
|
-
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
|
|
8329
|
+
label: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_ZONE" ? null : t(assigneeLabel || `WF_ROLE_${(_action$assigneeRoles = action.assigneeRoles) === null || _action$assigneeRoles === void 0 ? void 0 : _action$assigneeRoles[0]}`),
|
|
8329
8330
|
type: "dropdown",
|
|
8330
|
-
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
|
|
8331
|
+
populators: action.isTerminateState || isRejectOrRevocate || (action === null || action === void 0 ? void 0 : action.action) == "BLOCK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFY" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_FOR_INSPECTION_REPORT" || (action === null || action === void 0 ? void 0 : action.action) == "ESIGN" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_FEE" || (action === null || action === void 0 ? void 0 : action.action) == "SEND_BACK" || (action === null || action === void 0 ? void 0 : action.action) == "UPDATE_ZONE" ? null : /*#__PURE__*/React.createElement(DropdownWithDesignation, {
|
|
8331
8332
|
option: approvers,
|
|
8332
8333
|
autoComplete: "off",
|
|
8333
8334
|
optionKey: "name",
|
|
@@ -9081,7 +9082,7 @@ const ActionModal$1 = ({
|
|
|
9081
9082
|
};
|
|
9082
9083
|
}));
|
|
9083
9084
|
}
|
|
9084
|
-
}, [approverData
|
|
9085
|
+
}, [approverData]);
|
|
9085
9086
|
function selectFile(e) {
|
|
9086
9087
|
setFile(e.target.files[0]);
|
|
9087
9088
|
}
|
|
@@ -12237,7 +12238,11 @@ const SubOccupancyTable = ({
|
|
|
12237
12238
|
const accessData = plot => {
|
|
12238
12239
|
const name = plot;
|
|
12239
12240
|
return (originalRow, rowIndex, columns) => {
|
|
12240
|
-
return
|
|
12241
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12242
|
+
style: {
|
|
12243
|
+
overflowWrap: "break-word"
|
|
12244
|
+
}
|
|
12245
|
+
}, originalRow[name]);
|
|
12241
12246
|
};
|
|
12242
12247
|
};
|
|
12243
12248
|
const tableColumns = useMemo(() => {
|
|
@@ -14145,7 +14150,7 @@ function NewApplicationTimeline({
|
|
|
14145
14150
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
14146
14151
|
className: "custom-timeline-entries"
|
|
14147
14152
|
}, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
|
|
14148
|
-
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;
|
|
14153
|
+
var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$assigner5, _item$assigner6, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
|
|
14149
14154
|
return /*#__PURE__*/React.createElement("div", {
|
|
14150
14155
|
key: index,
|
|
14151
14156
|
className: "custom-timeline-entry"
|
|
@@ -14182,9 +14187,13 @@ function NewApplicationTimeline({
|
|
|
14182
14187
|
className: "custom-officer-info"
|
|
14183
14188
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14184
14189
|
className: "custom-officer-name"
|
|
14185
|
-
}, (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")
|
|
14190
|
+
}, (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("span", {
|
|
14186
14191
|
className: "custom-officer-name"
|
|
14187
|
-
}, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))
|
|
14192
|
+
}, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
|
|
14193
|
+
className: "custom-officer-email"
|
|
14194
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
14195
|
+
className: "custom-email-label"
|
|
14196
|
+
}, 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", {
|
|
14188
14197
|
className: "custom-card-column custom-card-column-mid"
|
|
14189
14198
|
}, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
|
|
14190
14199
|
className: "custom-action-title"
|
|
@@ -16585,7 +16594,7 @@ const NOCFeeTable = ({
|
|
|
16585
16594
|
window.addEventListener("resize", checkMobile);
|
|
16586
16595
|
return () => window.removeEventListener("resize", checkMobile);
|
|
16587
16596
|
}, []);
|
|
16588
|
-
console.log(
|
|
16597
|
+
console.log("feeHistory", feeHistory);
|
|
16589
16598
|
const columns = [{
|
|
16590
16599
|
key: "title",
|
|
16591
16600
|
label: "BPA_TAXHEAD_CODE",
|
|
@@ -16597,6 +16606,7 @@ const NOCFeeTable = ({
|
|
|
16597
16606
|
headerLabel: "BPA_AMOUNT",
|
|
16598
16607
|
type: "custom",
|
|
16599
16608
|
render: (row, rowIndex, t) => {
|
|
16609
|
+
var _feeData$row$index, _feeData$row$index2;
|
|
16600
16610
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16601
16611
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
|
|
16602
16612
|
style: {
|
|
@@ -16615,7 +16625,7 @@ const NOCFeeTable = ({
|
|
|
16615
16625
|
t: t,
|
|
16616
16626
|
type: "number",
|
|
16617
16627
|
isMandatory: false,
|
|
16618
|
-
value: feeData[row.index]
|
|
16628
|
+
value: ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.adjustedAmount) === 0 ? "" : ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.adjustedAmount) || row.amount || "",
|
|
16619
16629
|
onChange: e => {
|
|
16620
16630
|
let val = e.target.value;
|
|
16621
16631
|
if (val.length > 1 && val.startsWith("0")) {
|
|
@@ -16634,20 +16644,20 @@ const NOCFeeTable = ({
|
|
|
16634
16644
|
headerLabel: "BPA_REMARKS",
|
|
16635
16645
|
type: "custom",
|
|
16636
16646
|
render: (row, rowIndex, t) => {
|
|
16637
|
-
var _feeData$row$
|
|
16647
|
+
var _feeData$row$index4;
|
|
16638
16648
|
if (row.taxHeadCode === "NOC_TOTAL") {
|
|
16639
16649
|
return " ";
|
|
16640
16650
|
}
|
|
16641
16651
|
if (disable) {
|
|
16642
|
-
var _feeData$row$
|
|
16643
|
-
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$
|
|
16652
|
+
var _feeData$row$index3;
|
|
16653
|
+
return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || /*#__PURE__*/React.createElement(TextArea, {
|
|
16644
16654
|
placeholder: "Enter remarks",
|
|
16645
16655
|
disabled: true,
|
|
16646
16656
|
className: "custom-fee-table-textarea"
|
|
16647
16657
|
}));
|
|
16648
16658
|
}
|
|
16649
16659
|
return /*#__PURE__*/React.createElement(TextArea, {
|
|
16650
|
-
value: ((_feeData$row$
|
|
16660
|
+
value: ((_feeData$row$index4 = feeData[row.index]) === null || _feeData$row$index4 === void 0 ? void 0 : _feeData$row$index4.remark) || "",
|
|
16651
16661
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16652
16662
|
disabled: false,
|
|
16653
16663
|
className: "custom-fee-table-textarea",
|
|
@@ -16715,7 +16725,7 @@ const NOCFeeTable = ({
|
|
|
16715
16725
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
16716
16726
|
className: "custom-fee-mobile-cards"
|
|
16717
16727
|
}, feeDataWithTotal.map((row, i) => {
|
|
16718
|
-
var _feeData$row$
|
|
16728
|
+
var _feeData$row$index5, _feeData$row$index6, _feeData$row$index7;
|
|
16719
16729
|
return /*#__PURE__*/React.createElement("div", {
|
|
16720
16730
|
key: row.index || i,
|
|
16721
16731
|
className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
|
|
@@ -16735,7 +16745,7 @@ const NOCFeeTable = ({
|
|
|
16735
16745
|
t: t,
|
|
16736
16746
|
type: "text",
|
|
16737
16747
|
isMandatory: false,
|
|
16738
|
-
value: feeData[row.index]
|
|
16748
|
+
value: ((_feeData$row$index5 = feeData[row.index]) === null || _feeData$row$index5 === void 0 ? void 0 : _feeData$row$index5.adjustedAmount) === 0 ? "" : ((_feeData$row$index6 = feeData[row.index]) === null || _feeData$row$index6 === void 0 ? void 0 : _feeData$row$index6.adjustedAmount) || row.amount || "",
|
|
16739
16749
|
onChange: e => {
|
|
16740
16750
|
let val = e.target.value;
|
|
16741
16751
|
if (/^\d*\.?\d*$/.test(val)) {
|
|
@@ -16762,7 +16772,7 @@ const NOCFeeTable = ({
|
|
|
16762
16772
|
}, /*#__PURE__*/React.createElement("label", {
|
|
16763
16773
|
className: "custom-fee-card-label"
|
|
16764
16774
|
}, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
|
|
16765
|
-
value: ((_feeData$row$
|
|
16775
|
+
value: ((_feeData$row$index7 = feeData[row.index]) === null || _feeData$row$index7 === void 0 ? void 0 : _feeData$row$index7.remark) || "",
|
|
16766
16776
|
onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
|
|
16767
16777
|
disabled: disable,
|
|
16768
16778
|
className: "custom-fee-table-textarea",
|
|
@@ -17554,7 +17564,7 @@ const DigitCameraCapture = ({
|
|
|
17554
17564
|
const mediaStream = await navigator.mediaDevices.getUserMedia({
|
|
17555
17565
|
video: {
|
|
17556
17566
|
facingMode: {
|
|
17557
|
-
|
|
17567
|
+
exact: "environment"
|
|
17558
17568
|
}
|
|
17559
17569
|
},
|
|
17560
17570
|
audio: false
|
|
@@ -17981,39 +17991,19 @@ function PTRSelectDocument({
|
|
|
17981
17991
|
display: "inline"
|
|
17982
17992
|
}
|
|
17983
17993
|
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
17984
|
-
|
|
17985
|
-
marginBottom: "8px",
|
|
17986
|
-
width: "auto"
|
|
17987
|
-
}
|
|
17994
|
+
className: "bpa-owner-cardlabel-negative-margin ads-search-container"
|
|
17988
17995
|
}, t(doc === null || doc === void 0 ? void 0 : doc.code), " ", /*#__PURE__*/React.createElement("span", {
|
|
17989
17996
|
style: {
|
|
17990
17997
|
color: "red"
|
|
17991
17998
|
}
|
|
17992
17999
|
}, " ", (doc === null || doc === void 0 ? void 0 : doc.required) && " *")), /*#__PURE__*/React.createElement("div", {
|
|
17993
|
-
className: "field"
|
|
17994
|
-
style: {
|
|
17995
|
-
width: "100%"
|
|
17996
|
-
}
|
|
18000
|
+
className: "field payment-form-text-input-correction"
|
|
17997
18001
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17998
18002
|
className: `upload-file upload-file-max-width`
|
|
17999
18003
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18000
|
-
|
|
18001
|
-
display: "flex",
|
|
18002
|
-
justifyContent: "flex-start",
|
|
18003
|
-
alignItems: "center",
|
|
18004
|
-
flexWrap: "wrap",
|
|
18005
|
-
margin: "0px",
|
|
18006
|
-
padding: "0px"
|
|
18007
|
-
}
|
|
18004
|
+
className: "obps-document-detail-item zero-margin-padding"
|
|
18008
18005
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18009
|
-
|
|
18010
|
-
height: "auto",
|
|
18011
|
-
minHeight: "40px",
|
|
18012
|
-
width: "43%",
|
|
18013
|
-
maxHeight: "40px",
|
|
18014
|
-
margin: "5px",
|
|
18015
|
-
padding: "0px"
|
|
18016
|
-
}
|
|
18006
|
+
className: "auto-height-box-43"
|
|
18017
18007
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18018
18008
|
label: t("CAPTURE_IMAGE"),
|
|
18019
18009
|
onSubmit: () => {
|
|
@@ -18024,19 +18014,9 @@ function PTRSelectDocument({
|
|
|
18024
18014
|
}
|
|
18025
18015
|
}
|
|
18026
18016
|
})), uploadedFile && /*#__PURE__*/React.createElement("div", {
|
|
18027
|
-
|
|
18028
|
-
margin: "0px",
|
|
18029
|
-
display: "flex",
|
|
18030
|
-
justifyContent: "center",
|
|
18031
|
-
padding: "0px",
|
|
18032
|
-
width: "46%"
|
|
18033
|
-
} : {
|
|
18034
|
-
width: "80%",
|
|
18035
|
-
display: "flex",
|
|
18036
|
-
marginBottom: "10px",
|
|
18037
|
-
justifyContent: "center"
|
|
18038
|
-
}
|
|
18017
|
+
className: !mobile ? "center-flex-desktop" : "center-flex-mobile"
|
|
18039
18018
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18019
|
+
className: "view-button",
|
|
18040
18020
|
onSubmit: () => {
|
|
18041
18021
|
routeTo(uploadedFile);
|
|
18042
18022
|
},
|
|
@@ -18520,7 +18500,6 @@ const InspectionReport$1 = ({
|
|
|
18520
18500
|
sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
|
|
18521
18501
|
}, [FieldReports]);
|
|
18522
18502
|
useEffect$1(() => {
|
|
18523
|
-
console.log("useffect 2INSPECTION_REPORT_PENDING");
|
|
18524
18503
|
let ques = [];
|
|
18525
18504
|
let documentlist = [];
|
|
18526
18505
|
bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
|
|
@@ -18995,15 +18974,15 @@ const getSiteDetails = (appData, t) => {
|
|
|
18995
18974
|
}, {
|
|
18996
18975
|
title: t("NOC_ROAD_TYPE_LABEL"),
|
|
18997
18976
|
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"
|
|
18998
|
-
}, {
|
|
18999
|
-
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
19000
|
-
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"
|
|
19001
18977
|
}, {
|
|
19002
18978
|
title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
|
|
19003
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18979
|
+
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.areaLeftForRoadWidening) || "N/A"
|
|
19004
18980
|
}, {
|
|
19005
18981
|
title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
|
|
19006
|
-
value: (appData === null || appData === void 0 ? void 0 : (_appData$
|
|
18982
|
+
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.netPlotAreaAfterWidening) || "N/A"
|
|
18983
|
+
}, {
|
|
18984
|
+
title: t("NOC_NET_TOTAL_AREA_LABEL"),
|
|
18985
|
+
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"
|
|
19007
18986
|
}, {
|
|
19008
18987
|
title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
|
|
19009
18988
|
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"
|
|
@@ -19231,7 +19210,6 @@ const getJESiteImages = async (appData, t, stateCode) => {
|
|
|
19231
19210
|
const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
|
|
19232
19211
|
const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
|
|
19233
19212
|
const exifData = await getExifDataFromUrl(exiflink);
|
|
19234
|
-
console.log("exifData in siteImages", exifData);
|
|
19235
19213
|
if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
|
|
19236
19214
|
exifData.Orientation = 1;
|
|
19237
19215
|
}
|
|
@@ -21241,6 +21219,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21241
21219
|
pdfkey = "noc-sanctionletter",
|
|
21242
21220
|
...params
|
|
21243
21221
|
}) {
|
|
21222
|
+
const prevGetLang = Digit.StoreData.getCurrentLanguage;
|
|
21244
21223
|
try {
|
|
21245
21224
|
var _applicationDetails$N16, _application$nocDetai, _application$nocDetai2;
|
|
21246
21225
|
setLoader(true);
|
|
@@ -21248,6 +21227,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21248
21227
|
let fileStoreId = application === null || application === void 0 ? void 0 : (_application$nocDetai = application.nocDetails) === null || _application$nocDetai === void 0 ? void 0 : (_application$nocDetai2 = _application$nocDetai.additionalDetails) === null || _application$nocDetai2 === void 0 ? void 0 : _application$nocDetai2.sanctionLetterFilestoreId;
|
|
21249
21228
|
if (!fileStoreId) {
|
|
21250
21229
|
const nocSanctionData = await getNOCSanctionLetter(application, t, EmpData, finalComment);
|
|
21230
|
+
Digit.StoreData.getCurrentLanguage = () => "pn_IN";
|
|
21251
21231
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
21252
21232
|
Payments: [{
|
|
21253
21233
|
...payments,
|
|
@@ -21261,6 +21241,7 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21261
21241
|
console.error("Sanction Letter download error:", error);
|
|
21262
21242
|
} finally {
|
|
21263
21243
|
setLoader(false);
|
|
21244
|
+
Digit.StoreData.getCurrentLanguage = prevGetLang;
|
|
21264
21245
|
}
|
|
21265
21246
|
}
|
|
21266
21247
|
const printCertificateWithESign = async () => {
|
|
@@ -21617,12 +21598,12 @@ const NOCEmployeeApplicationOverview = () => {
|
|
|
21617
21598
|
}
|
|
21618
21599
|
}
|
|
21619
21600
|
const additionalRemarks = fieldInspectionPending === null || fieldInspectionPending === void 0 ? void 0 : (_fieldInspectionPendi5 = fieldInspectionPending[0]) === null || _fieldInspectionPendi5 === void 0 ? void 0 : _fieldInspectionPendi5["Remarks_19"];
|
|
21620
|
-
if (additionalRemarks && additionalRemarks.trim().
|
|
21601
|
+
if (additionalRemarks && additionalRemarks.trim().length < 20) {
|
|
21621
21602
|
closeModal();
|
|
21622
21603
|
setShowToast({
|
|
21623
21604
|
key: "true",
|
|
21624
21605
|
error: true,
|
|
21625
|
-
message: "Additional remarks must be at least 20
|
|
21606
|
+
message: "Additional remarks must be at least 20 characters long"
|
|
21626
21607
|
});
|
|
21627
21608
|
return;
|
|
21628
21609
|
}
|
|
@@ -26098,7 +26079,7 @@ const NewNOCStepFormOne = ({
|
|
|
26098
26079
|
onGoNext,
|
|
26099
26080
|
onBackClick
|
|
26100
26081
|
}) => {
|
|
26101
|
-
var _currentStepData$appl, _userInfo$info, _userInfo$info$roles;
|
|
26082
|
+
var _currentStepData$appl, _userInfo$info, _userInfo$info$roles, _userInfo$info2, _userInfo$info2$roles;
|
|
26102
26083
|
const dispatch = useDispatch();
|
|
26103
26084
|
const {
|
|
26104
26085
|
t
|
|
@@ -26116,6 +26097,7 @@ const NewNOCStepFormOne = ({
|
|
|
26116
26097
|
const ownerPhotos = useSelector(function (state) {
|
|
26117
26098
|
return state.noc.NOCNewApplicationFormReducer.ownerPhotos;
|
|
26118
26099
|
});
|
|
26100
|
+
const tenantId = localStorage.getItem("CITIZEN.CITY");
|
|
26119
26101
|
console.log("ownerIds", ownerIds);
|
|
26120
26102
|
console.log("ownerPhotos", ownerPhotos);
|
|
26121
26103
|
React.useEffect(() => {
|
|
@@ -26269,6 +26251,10 @@ const NewNOCStepFormOne = ({
|
|
|
26269
26251
|
const stateCode = Digit.ULBService.getStateId();
|
|
26270
26252
|
const [stakeHolderRoles, setStakeholderRoles] = useState(false);
|
|
26271
26253
|
const userRoles = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : (_userInfo$info$roles = _userInfo$info.roles) === null || _userInfo$info$roles === void 0 ? void 0 : _userInfo$info$roles.map(roleData => roleData.code);
|
|
26254
|
+
const userRolesMapped = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : (_userInfo$info2$roles = _userInfo$info2.roles) === null || _userInfo$info2$roles === void 0 ? void 0 : _userInfo$info2$roles.map(roleData => ({
|
|
26255
|
+
role: roleData === null || roleData === void 0 ? void 0 : roleData.code,
|
|
26256
|
+
tenantId: roleData === null || roleData === void 0 ? void 0 : roleData.tenantId
|
|
26257
|
+
}));
|
|
26272
26258
|
const {
|
|
26273
26259
|
data: stakeHolderDetails,
|
|
26274
26260
|
isLoading: stakeHolderDetailsLoading
|
|
@@ -26286,7 +26272,9 @@ const NewNOCStepFormOne = ({
|
|
|
26286
26272
|
});
|
|
26287
26273
|
const uniqueRoles = roles === null || roles === void 0 ? void 0 : roles.filter((item, i, ar) => ar.indexOf(item) === i);
|
|
26288
26274
|
uniqueRoles === null || uniqueRoles === void 0 ? void 0 : uniqueRoles.map(unRole => {
|
|
26289
|
-
if (userRoles !== null && userRoles !== void 0 && userRoles.includes(
|
|
26275
|
+
if (userRoles !== null && userRoles !== void 0 && userRoles.includes("BPA_ARCHITECT")) {
|
|
26276
|
+
setIsRegisteredStakeHolder(true);
|
|
26277
|
+
} else if (userRolesMapped !== null && userRolesMapped !== void 0 && userRolesMapped.find(userRole => (userRole === null || userRole === void 0 ? void 0 : userRole.role) === unRole && (userRole === null || userRole === void 0 ? void 0 : userRole.tenantId) === tenantId)) {
|
|
26290
26278
|
setIsRegisteredStakeHolder(true);
|
|
26291
26279
|
}
|
|
26292
26280
|
});
|
|
@@ -28058,8 +28046,6 @@ function NOCSummary({
|
|
|
28058
28046
|
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;
|
|
28059
28047
|
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;
|
|
28060
28048
|
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();
|
|
28061
|
-
console.log('applicationNo, submittedOn', applicationNo, submittedOn);
|
|
28062
|
-
console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
|
|
28063
28049
|
return /*#__PURE__*/React.createElement("div", {
|
|
28064
28050
|
className: "employee-main-application-details"
|
|
28065
28051
|
}, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
|
|
@@ -29755,8 +29741,9 @@ const MyApplications = ({
|
|
|
29755
29741
|
row
|
|
29756
29742
|
}) => {
|
|
29757
29743
|
var _row$original, _row$original$Applica, _row$original2, _row$original2$Applic;
|
|
29744
|
+
const encodedAppNo = encodeURIComponentCustom$1((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$Applica = _row$original.Applications) === null || _row$original$Applica === void 0 ? void 0 : _row$original$Applica.applicationNo);
|
|
29758
29745
|
return /*#__PURE__*/React.createElement(Link, {
|
|
29759
|
-
to: `/digit-ui/citizen/noc/search/application-overview/${
|
|
29746
|
+
to: `/digit-ui/citizen/noc/search/application-overview/${encodedAppNo}`
|
|
29760
29747
|
}, /*#__PURE__*/React.createElement("b", null, GetCell((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$Applic = _row$original2.Applications) === null || _row$original2$Applic === void 0 ? void 0 : _row$original2$Applic.applicationNo)));
|
|
29761
29748
|
}
|
|
29762
29749
|
}, {
|
|
@@ -29769,7 +29756,7 @@ const MyApplications = ({
|
|
|
29769
29756
|
Header: t("NOC_APPLICATION_STATUS"),
|
|
29770
29757
|
accessor: row => {
|
|
29771
29758
|
var _row$Applications3;
|
|
29772
|
-
return row === null || row === void 0 ? void 0 : (_row$Applications3 = row.Applications) === null || _row$Applications3 === void 0 ? void 0 : _row$Applications3.applicationStatus;
|
|
29759
|
+
return t(row === null || row === void 0 ? void 0 : (_row$Applications3 = row.Applications) === null || _row$Applications3 === void 0 ? void 0 : _row$Applications3.applicationStatus);
|
|
29773
29760
|
},
|
|
29774
29761
|
Cell: ({
|
|
29775
29762
|
row
|
|
@@ -30045,6 +30032,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30045
30032
|
pdfkey = "noc-sanctionletter",
|
|
30046
30033
|
...params
|
|
30047
30034
|
}) {
|
|
30035
|
+
const prevGetLang = Digit.StoreData.getCurrentLanguage;
|
|
30048
30036
|
try {
|
|
30049
30037
|
var _applicationDetails$N14, _applicationDetails$N15, _applicationDetails$N16, _applicationDetails$N17, _applicationDetails$N18;
|
|
30050
30038
|
setLoading(true);
|
|
@@ -30053,6 +30041,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30053
30041
|
if (!fileStoreId) {
|
|
30054
30042
|
var _applicationDetails$N19, _application$nocDetai;
|
|
30055
30043
|
const nocSanctionData = await getNOCSanctionLetter(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N19 = applicationDetails.Noc) === null || _applicationDetails$N19 === void 0 ? void 0 : _applicationDetails$N19[0], t, EmpData, finalComment);
|
|
30044
|
+
Digit.StoreData.getCurrentLanguage = () => "pn_IN";
|
|
30056
30045
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
30057
30046
|
Payments: [{
|
|
30058
30047
|
...payments,
|
|
@@ -30085,6 +30074,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30085
30074
|
await downloadPdfFromURL(receiptUrl);
|
|
30086
30075
|
} catch (error) {} finally {
|
|
30087
30076
|
setLoading(false);
|
|
30077
|
+
Digit.StoreData.getCurrentLanguage = prevGetLang;
|
|
30088
30078
|
}
|
|
30089
30079
|
}
|
|
30090
30080
|
async function getRejectionLetterReceipt({
|
|
@@ -30094,11 +30084,13 @@ const CitizenApplicationOverview = () => {
|
|
|
30094
30084
|
pdfkey = "noc-rejectionletter",
|
|
30095
30085
|
...params
|
|
30096
30086
|
}) {
|
|
30087
|
+
const prevGetLang = Digit.StoreData.getCurrentLanguage;
|
|
30097
30088
|
try {
|
|
30098
30089
|
var _applicationDetails$N20;
|
|
30099
30090
|
setLoading(true);
|
|
30100
30091
|
let fileStoreId = null;
|
|
30101
30092
|
const nocSanctionData = await getNOCSanctionLetter(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$N20 = applicationDetails.Noc) === null || _applicationDetails$N20 === void 0 ? void 0 : _applicationDetails$N20[0], t, EmpData, finalComment);
|
|
30093
|
+
Digit.StoreData.getCurrentLanguage = () => "pn_IN";
|
|
30102
30094
|
const response = await Digit.PaymentService.generatePdf(tenantId, {
|
|
30103
30095
|
Payments: [{
|
|
30104
30096
|
...payments,
|
|
@@ -30116,6 +30108,7 @@ const CitizenApplicationOverview = () => {
|
|
|
30116
30108
|
console.error("rejection Letter download error:", error);
|
|
30117
30109
|
} finally {
|
|
30118
30110
|
setLoading(false);
|
|
30111
|
+
Digit.StoreData.getCurrentLanguage = prevGetLang;
|
|
30119
30112
|
}
|
|
30120
30113
|
}
|
|
30121
30114
|
const dowloadOptions = [];
|