@djb25/digit-ui-module-commonpt 1.0.5 → 1.0.6
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 +241 -99
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Loader, VerticalTimeline, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, Header, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector,
|
|
1
|
+
import { Loader, VerticalTimeline, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, Header, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CollapsibleCardPage, AddressDetails, DeleteIcon, MobileNumber, RadioOrSelect, TextArea, SearchForm, SearchField, DetailsCard, TickMark, Label, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useLayoutEffect, useMemo, useRef, Fragment as Fragment$1, memo, useCallback } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useHistory, useRouteMatch, Switch, Route, Link, useParams } from 'react-router-dom';
|
|
@@ -6017,7 +6017,7 @@ const setPropertyDetailsLW = data => {
|
|
|
6017
6017
|
return data;
|
|
6018
6018
|
};
|
|
6019
6019
|
const convertToPropertyLightWeight = (data = {}) => {
|
|
6020
|
-
var _data$propertyDetails, _data$propertyDetails2, _data, _data$owners2, _data$owners2$, _data$propertyDetails3, _data$propertyDetails4, _data$waterConnection, _data$waterConnection2, _data$waterConnection3, _data$waterConnection4, _data$waterConnection5, _data$waterConnection6, _data$waterConnection7, _data$waterConnection8, _data$waterConnection9, _data$waterConnection0, _data$waterConnection1, _data$waterConnection10, _data$waterConnection11, _data$waterConnection12, _data$waterConnection13, _data$waterConnection14, _data$waterConnection15, _data$waterConnection16;
|
|
6020
|
+
var _data$propertyDetails, _data$propertyDetails2, _data, _data$owners2, _data$owners2$, _data$propertyDetails3, _data$propertyDetails4, _data$waterConnection, _data$waterConnection2, _data$waterConnection3, _data$useDetails, _data$useDetails$Wate, _data$waterConnection4, _data$waterConnection5, _data$waterConnection6, _data$useDetails2, _data$useDetails2$Sel, _data$waterConnection7, _data$waterConnection8, _data$useDetails3, _data$waterConnection9, _data$waterConnection0, _data$useDetails4, _data$waterConnection1, _data$waterConnection10, _data$waterConnection11, _data$useDetails5, _data$useDetails5$noO, _data$waterConnection12, _data$waterConnection13, _data$useDetails6, _data$waterConnection14, _data$waterConnection15, _data$useDetails7, _data$waterConnection16, _data$waterConnection17, _data$useDetails8;
|
|
6021
6021
|
data = setOwnerDetailsLW(data);
|
|
6022
6022
|
data = setAddressDetailsLW(data);
|
|
6023
6023
|
data = setPropertyDetailsLW(data);
|
|
@@ -6061,14 +6061,14 @@ const convertToPropertyLightWeight = (data = {}) => {
|
|
|
6061
6061
|
isRainwaterHarvesting: false,
|
|
6062
6062
|
propertyType: propertyType,
|
|
6063
6063
|
propertyCategory: (_data$propertyDetails4 = data.propertyDetails) === null || _data$propertyDetails4 === void 0 ? void 0 : _data$propertyDetails4.usageCategory,
|
|
6064
|
-
waterConnectionUsageType: (_data$waterConnection = data.waterConnection) === null || _data$waterConnection === void 0 ? void 0 : (_data$waterConnection2 = _data$waterConnection.useDetails) === null || _data$waterConnection2 === void 0 ? void 0 : (_data$waterConnection3 = _data$waterConnection2.WaterConnectionUsageType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code,
|
|
6065
|
-
yearOfConstruction: (_data$waterConnection4 = data.waterConnection) === null || _data$waterConnection4 === void 0 ? void 0 : (_data$waterConnection5 = _data$waterConnection4.useDetails) === null || _data$waterConnection5 === void 0 ? void 0 : (_data$waterConnection6 = _data$waterConnection5.SelectYearofConstruction) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.value,
|
|
6066
|
-
numberOfDwellingUnits: (_data$waterConnection7 = data.waterConnection) === null || _data$waterConnection7 === void 0 ? void 0 : (_data$waterConnection8 = _data$waterConnection7.useDetails) === null || _data$waterConnection8 === void 0 ? void 0 : _data$waterConnection8.NumberofDwellingUnits,
|
|
6067
|
-
numberOfRooms: (_data$waterConnection9 = data.waterConnection) === null || _data$waterConnection9 === void 0 ? void 0 : (_data$waterConnection0 = _data$waterConnection9.useDetails) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.NumberofRooms,
|
|
6068
|
-
numberOfFloors: (_data$waterConnection1 = data.waterConnection) === null || _data$waterConnection1 === void 0 ? void 0 : (_data$waterConnection10 = _data$waterConnection1.useDetails) === null || _data$waterConnection10 === void 0 ? void 0 : _data$waterConnection10.
|
|
6069
|
-
plotArea: (_data$
|
|
6070
|
-
builtUpArea: (_data$
|
|
6071
|
-
numberOfBeds: (_data$
|
|
6064
|
+
waterConnectionUsageType: ((_data$waterConnection = data.waterConnection) === null || _data$waterConnection === void 0 ? void 0 : (_data$waterConnection2 = _data$waterConnection.useDetails) === null || _data$waterConnection2 === void 0 ? void 0 : (_data$waterConnection3 = _data$waterConnection2.WaterConnectionUsageType) === null || _data$waterConnection3 === void 0 ? void 0 : _data$waterConnection3.code) || ((_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : (_data$useDetails$Wate = _data$useDetails.WaterConnectionUsageType) === null || _data$useDetails$Wate === void 0 ? void 0 : _data$useDetails$Wate.code),
|
|
6065
|
+
yearOfConstruction: ((_data$waterConnection4 = data.waterConnection) === null || _data$waterConnection4 === void 0 ? void 0 : (_data$waterConnection5 = _data$waterConnection4.useDetails) === null || _data$waterConnection5 === void 0 ? void 0 : (_data$waterConnection6 = _data$waterConnection5.SelectYearofConstruction) === null || _data$waterConnection6 === void 0 ? void 0 : _data$waterConnection6.value) || ((_data$useDetails2 = data.useDetails) === null || _data$useDetails2 === void 0 ? void 0 : (_data$useDetails2$Sel = _data$useDetails2.SelectYearofConstruction) === null || _data$useDetails2$Sel === void 0 ? void 0 : _data$useDetails2$Sel.value),
|
|
6066
|
+
numberOfDwellingUnits: ((_data$waterConnection7 = data.waterConnection) === null || _data$waterConnection7 === void 0 ? void 0 : (_data$waterConnection8 = _data$waterConnection7.useDetails) === null || _data$waterConnection8 === void 0 ? void 0 : _data$waterConnection8.NumberofDwellingUnits) || ((_data$useDetails3 = data.useDetails) === null || _data$useDetails3 === void 0 ? void 0 : _data$useDetails3.NumberofDwellingUnits),
|
|
6067
|
+
numberOfRooms: ((_data$waterConnection9 = data.waterConnection) === null || _data$waterConnection9 === void 0 ? void 0 : (_data$waterConnection0 = _data$waterConnection9.useDetails) === null || _data$waterConnection0 === void 0 ? void 0 : _data$waterConnection0.NumberofRooms) || ((_data$useDetails4 = data.useDetails) === null || _data$useDetails4 === void 0 ? void 0 : _data$useDetails4.NumberofRooms),
|
|
6068
|
+
numberOfFloors: ((_data$waterConnection1 = data.waterConnection) === null || _data$waterConnection1 === void 0 ? void 0 : (_data$waterConnection10 = _data$waterConnection1.useDetails) === null || _data$waterConnection10 === void 0 ? void 0 : (_data$waterConnection11 = _data$waterConnection10.noOfFloors) === null || _data$waterConnection11 === void 0 ? void 0 : _data$waterConnection11.code) || ((_data$useDetails5 = data.useDetails) === null || _data$useDetails5 === void 0 ? void 0 : (_data$useDetails5$noO = _data$useDetails5.noOfFloors) === null || _data$useDetails5$noO === void 0 ? void 0 : _data$useDetails5$noO.code) || 1,
|
|
6069
|
+
plotArea: ((_data$waterConnection12 = data.waterConnection) === null || _data$waterConnection12 === void 0 ? void 0 : (_data$waterConnection13 = _data$waterConnection12.useDetails) === null || _data$waterConnection13 === void 0 ? void 0 : _data$waterConnection13.plotArea) || ((_data$useDetails6 = data.useDetails) === null || _data$useDetails6 === void 0 ? void 0 : _data$useDetails6.plotArea),
|
|
6070
|
+
builtUpArea: ((_data$waterConnection14 = data.waterConnection) === null || _data$waterConnection14 === void 0 ? void 0 : (_data$waterConnection15 = _data$waterConnection14.useDetails) === null || _data$waterConnection15 === void 0 ? void 0 : _data$waterConnection15.builtUpArea) || ((_data$useDetails7 = data.useDetails) === null || _data$useDetails7 === void 0 ? void 0 : _data$useDetails7.builtUpArea),
|
|
6071
|
+
numberOfBeds: ((_data$waterConnection16 = data.waterConnection) === null || _data$waterConnection16 === void 0 ? void 0 : (_data$waterConnection17 = _data$waterConnection16.useDetails) === null || _data$waterConnection17 === void 0 ? void 0 : _data$waterConnection17.hospitalBeds) || ((_data$useDetails8 = data.useDetails) === null || _data$useDetails8 === void 0 ? void 0 : _data$useDetails8.hospitalBeds),
|
|
6072
6072
|
owners: [...(data.owners || []).map((owner, index) => {
|
|
6073
6073
|
var _owner$gender3, _owner$gender4, _owner$ownerType2, _owner$relationship2, _owner$inistitutetype2;
|
|
6074
6074
|
return {
|
|
@@ -6107,7 +6107,7 @@ const convertToPropertyLightWeight = (data = {}) => {
|
|
|
6107
6107
|
return formdata;
|
|
6108
6108
|
};
|
|
6109
6109
|
const convertToUpdatePropertyLightWeight = (data = {}) => {
|
|
6110
|
-
var _data$propertyDetails5, _data$propertyDetails6, _data$
|
|
6110
|
+
var _data$propertyDetails5, _data$propertyDetails6, _data$waterConnection18, _data$waterConnection19, _data$waterConnection20, _data$useDetails9, _data$useDetails9$Wat, _data$waterConnection21, _data$waterConnection22, _data$waterConnection23, _data$useDetails0, _data$useDetails0$Sel, _data$waterConnection24, _data$waterConnection25, _data$useDetails1, _data$waterConnection26, _data$waterConnection27, _data$useDetails10, _data$waterConnection28, _data$waterConnection29, _data$waterConnection30, _data$useDetails11, _data$useDetails11$no, _data$waterConnection31, _data$waterConnection32, _data$useDetails12, _data$waterConnection33, _data$waterConnection34, _data$useDetails13, _data$waterConnection35, _data$waterConnection36, _data$useDetails14, _formdata$Property, _data3, _formdata$Property3;
|
|
6111
6111
|
data = setOwnerDetailsLW(data);
|
|
6112
6112
|
data = setAddressDetailsLW(data);
|
|
6113
6113
|
data = setPropertyDetailsLW(data);
|
|
@@ -6153,11 +6153,14 @@ const convertToUpdatePropertyLightWeight = (data = {}) => {
|
|
|
6153
6153
|
noOfFloors: noOfFloors,
|
|
6154
6154
|
additionalDetails: {
|
|
6155
6155
|
isRainwaterHarvesting: false,
|
|
6156
|
-
waterConnectionUsageType: (_data$
|
|
6157
|
-
yearOfConstruction: (_data$
|
|
6158
|
-
numberOfDwellingUnits: (_data$
|
|
6159
|
-
numberOfRooms: (_data$
|
|
6160
|
-
|
|
6156
|
+
waterConnectionUsageType: ((_data$waterConnection18 = data.waterConnection) === null || _data$waterConnection18 === void 0 ? void 0 : (_data$waterConnection19 = _data$waterConnection18.useDetails) === null || _data$waterConnection19 === void 0 ? void 0 : (_data$waterConnection20 = _data$waterConnection19.WaterConnectionUsageType) === null || _data$waterConnection20 === void 0 ? void 0 : _data$waterConnection20.code) || ((_data$useDetails9 = data.useDetails) === null || _data$useDetails9 === void 0 ? void 0 : (_data$useDetails9$Wat = _data$useDetails9.WaterConnectionUsageType) === null || _data$useDetails9$Wat === void 0 ? void 0 : _data$useDetails9$Wat.code),
|
|
6157
|
+
yearOfConstruction: ((_data$waterConnection21 = data.waterConnection) === null || _data$waterConnection21 === void 0 ? void 0 : (_data$waterConnection22 = _data$waterConnection21.useDetails) === null || _data$waterConnection22 === void 0 ? void 0 : (_data$waterConnection23 = _data$waterConnection22.SelectYearofConstruction) === null || _data$waterConnection23 === void 0 ? void 0 : _data$waterConnection23.value) || ((_data$useDetails0 = data.useDetails) === null || _data$useDetails0 === void 0 ? void 0 : (_data$useDetails0$Sel = _data$useDetails0.SelectYearofConstruction) === null || _data$useDetails0$Sel === void 0 ? void 0 : _data$useDetails0$Sel.value),
|
|
6158
|
+
numberOfDwellingUnits: ((_data$waterConnection24 = data.waterConnection) === null || _data$waterConnection24 === void 0 ? void 0 : (_data$waterConnection25 = _data$waterConnection24.useDetails) === null || _data$waterConnection25 === void 0 ? void 0 : _data$waterConnection25.NumberofDwellingUnits) || ((_data$useDetails1 = data.useDetails) === null || _data$useDetails1 === void 0 ? void 0 : _data$useDetails1.NumberofDwellingUnits),
|
|
6159
|
+
numberOfRooms: ((_data$waterConnection26 = data.waterConnection) === null || _data$waterConnection26 === void 0 ? void 0 : (_data$waterConnection27 = _data$waterConnection26.useDetails) === null || _data$waterConnection27 === void 0 ? void 0 : _data$waterConnection27.NumberofRooms) || ((_data$useDetails10 = data.useDetails) === null || _data$useDetails10 === void 0 ? void 0 : _data$useDetails10.NumberofRooms),
|
|
6160
|
+
numberOfFloors: ((_data$waterConnection28 = data.waterConnection) === null || _data$waterConnection28 === void 0 ? void 0 : (_data$waterConnection29 = _data$waterConnection28.useDetails) === null || _data$waterConnection29 === void 0 ? void 0 : (_data$waterConnection30 = _data$waterConnection29.noOfFloors) === null || _data$waterConnection30 === void 0 ? void 0 : _data$waterConnection30.code) || ((_data$useDetails11 = data.useDetails) === null || _data$useDetails11 === void 0 ? void 0 : (_data$useDetails11$no = _data$useDetails11.noOfFloors) === null || _data$useDetails11$no === void 0 ? void 0 : _data$useDetails11$no.code) || 1,
|
|
6161
|
+
plotArea: ((_data$waterConnection31 = data.waterConnection) === null || _data$waterConnection31 === void 0 ? void 0 : (_data$waterConnection32 = _data$waterConnection31.useDetails) === null || _data$waterConnection32 === void 0 ? void 0 : _data$waterConnection32.plotArea) || ((_data$useDetails12 = data.useDetails) === null || _data$useDetails12 === void 0 ? void 0 : _data$useDetails12.plotArea),
|
|
6162
|
+
builtUpArea: ((_data$waterConnection33 = data.waterConnection) === null || _data$waterConnection33 === void 0 ? void 0 : (_data$waterConnection34 = _data$waterConnection33.useDetails) === null || _data$waterConnection34 === void 0 ? void 0 : _data$waterConnection34.builtUpArea) || ((_data$useDetails13 = data.useDetails) === null || _data$useDetails13 === void 0 ? void 0 : _data$useDetails13.builtUpArea),
|
|
6163
|
+
hospitalBeds: ((_data$waterConnection35 = data.waterConnection) === null || _data$waterConnection35 === void 0 ? void 0 : (_data$waterConnection36 = _data$waterConnection35.useDetails) === null || _data$waterConnection36 === void 0 ? void 0 : _data$waterConnection36.hospitalBeds) || ((_data$useDetails14 = data.useDetails) === null || _data$useDetails14 === void 0 ? void 0 : _data$useDetails14.hospitalBeds),
|
|
6161
6164
|
owners: [...data.owners.map((owner, index) => {
|
|
6162
6165
|
var _owner$gender6, _owner$ownerType4, _owner$relationship4, _owner$inistitutetype4;
|
|
6163
6166
|
return {
|
|
@@ -15979,6 +15982,122 @@ const RenewPopup = ({
|
|
|
15979
15982
|
})))));
|
|
15980
15983
|
};
|
|
15981
15984
|
|
|
15985
|
+
const DueVerification = () => {
|
|
15986
|
+
const {
|
|
15987
|
+
t
|
|
15988
|
+
} = useTranslation();
|
|
15989
|
+
const [kno, setKno] = useState("");
|
|
15990
|
+
const [tableData, setTableData] = useState([]);
|
|
15991
|
+
const columns = useMemo(() => [{
|
|
15992
|
+
Header: t("K No."),
|
|
15993
|
+
accessor: "kno"
|
|
15994
|
+
}, {
|
|
15995
|
+
Header: t("Full Name"),
|
|
15996
|
+
accessor: "fullName"
|
|
15997
|
+
}, {
|
|
15998
|
+
Header: t("Full Address"),
|
|
15999
|
+
accessor: "fullAddress"
|
|
16000
|
+
}, {
|
|
16001
|
+
Header: t("Due Amount"),
|
|
16002
|
+
accessor: "dueAmount"
|
|
16003
|
+
}, {
|
|
16004
|
+
Header: t("Total Amount"),
|
|
16005
|
+
accessor: "totalAmount"
|
|
16006
|
+
}], [t]);
|
|
16007
|
+
const handleAdd = () => {
|
|
16008
|
+
if (kno) {
|
|
16009
|
+
const mockData = {
|
|
16010
|
+
kno: kno,
|
|
16011
|
+
fullName: "John Doe",
|
|
16012
|
+
fullAddress: "123 Main St, New Delhi, Delhi 110001",
|
|
16013
|
+
dueAmount: "1500",
|
|
16014
|
+
totalAmount: "1500"
|
|
16015
|
+
};
|
|
16016
|
+
setTableData([...tableData, mockData]);
|
|
16017
|
+
setKno("");
|
|
16018
|
+
}
|
|
16019
|
+
};
|
|
16020
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16021
|
+
style: {
|
|
16022
|
+
marginBottom: "20px"
|
|
16023
|
+
}
|
|
16024
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
16025
|
+
style: {
|
|
16026
|
+
fontSize: "24px",
|
|
16027
|
+
fontWeight: "bold",
|
|
16028
|
+
color: "#4f6cfc",
|
|
16029
|
+
marginBottom: "16px"
|
|
16030
|
+
}
|
|
16031
|
+
}, t("Due Verification")), /*#__PURE__*/React.createElement("div", {
|
|
16032
|
+
style: {
|
|
16033
|
+
display: "flex",
|
|
16034
|
+
alignItems: "flex-end",
|
|
16035
|
+
gap: "20px",
|
|
16036
|
+
marginBottom: "20px"
|
|
16037
|
+
}
|
|
16038
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
16039
|
+
style: {
|
|
16040
|
+
flex: 1
|
|
16041
|
+
}
|
|
16042
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
16043
|
+
style: {
|
|
16044
|
+
fontSize: "16px",
|
|
16045
|
+
color: "#0B0C0C",
|
|
16046
|
+
marginBottom: "8px",
|
|
16047
|
+
display: "inline-block"
|
|
16048
|
+
}
|
|
16049
|
+
}, t("K No.(Existing KNo of same property)"), " ", /*#__PURE__*/React.createElement("span", {
|
|
16050
|
+
style: {
|
|
16051
|
+
color: "red"
|
|
16052
|
+
}
|
|
16053
|
+
}, "*")), /*#__PURE__*/React.createElement(TextInput, {
|
|
16054
|
+
type: "number",
|
|
16055
|
+
value: kno,
|
|
16056
|
+
onChange: e => setKno(e.target.value),
|
|
16057
|
+
style: {
|
|
16058
|
+
width: "100%",
|
|
16059
|
+
marginBottom: "0"
|
|
16060
|
+
}
|
|
16061
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
16062
|
+
style: {
|
|
16063
|
+
flex: 1,
|
|
16064
|
+
paddingBottom: "2px"
|
|
16065
|
+
}
|
|
16066
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
16067
|
+
type: "button",
|
|
16068
|
+
onClick: handleAdd,
|
|
16069
|
+
style: {
|
|
16070
|
+
backgroundColor: "#4f6cfc",
|
|
16071
|
+
color: "white",
|
|
16072
|
+
padding: "8px 24px",
|
|
16073
|
+
borderRadius: "4px",
|
|
16074
|
+
border: "none",
|
|
16075
|
+
cursor: "pointer"
|
|
16076
|
+
}
|
|
16077
|
+
}, t("Add")))), tableData.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
16078
|
+
style: {
|
|
16079
|
+
marginTop: "30px",
|
|
16080
|
+
overflowX: "auto"
|
|
16081
|
+
}
|
|
16082
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
16083
|
+
className: "customTable table-fixed-first-column table-border-style",
|
|
16084
|
+
t: t,
|
|
16085
|
+
disableSort: false,
|
|
16086
|
+
autoSort: true,
|
|
16087
|
+
manualPagination: false,
|
|
16088
|
+
isPaginationRequired: false,
|
|
16089
|
+
data: tableData,
|
|
16090
|
+
columns: columns,
|
|
16091
|
+
getCellProps: cellInfo => {
|
|
16092
|
+
return {
|
|
16093
|
+
style: {
|
|
16094
|
+
padding: "12px"
|
|
16095
|
+
}
|
|
16096
|
+
};
|
|
16097
|
+
}
|
|
16098
|
+
})));
|
|
16099
|
+
};
|
|
16100
|
+
|
|
15982
16101
|
function ApplicationDetailsContent({
|
|
15983
16102
|
applicationDetails,
|
|
15984
16103
|
workflowDetails,
|
|
@@ -16477,7 +16596,7 @@ function ApplicationDetailsContent({
|
|
|
16477
16596
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
16478
16597
|
wsAdditionalDetails: detail,
|
|
16479
16598
|
oldValue: oldValue
|
|
16480
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
16599
|
+
}), (detail === null || detail === void 0 ? void 0 : detail.isDueVerification) && (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION" && /*#__PURE__*/React.createElement(DueVerification, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
16481
16600
|
to: 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.url
|
|
16482
16601
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16483
16602
|
className: "add-details-link hover-button"
|
|
@@ -17116,17 +17235,46 @@ const ViewProperty = () => {
|
|
|
17116
17235
|
const App = ({
|
|
17117
17236
|
stateCode
|
|
17118
17237
|
}) => {
|
|
17238
|
+
const {
|
|
17239
|
+
t
|
|
17240
|
+
} = useTranslation();
|
|
17119
17241
|
const {
|
|
17120
17242
|
path,
|
|
17121
17243
|
url,
|
|
17122
17244
|
...match
|
|
17123
17245
|
} = useRouteMatch();
|
|
17124
|
-
|
|
17246
|
+
const getBreadcrumbLabel = () => {
|
|
17247
|
+
const pathname = location.pathname;
|
|
17248
|
+
if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
|
|
17249
|
+
return "ES_COMMON_INBOX";
|
|
17250
|
+
};
|
|
17251
|
+
const breadcrumbs = [{
|
|
17252
|
+
icon: HomeIcon,
|
|
17253
|
+
path: "/digit-ui/employee"
|
|
17254
|
+
}, {
|
|
17255
|
+
label: t(getBreadcrumbLabel())
|
|
17256
|
+
}];
|
|
17257
|
+
return /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
17258
|
+
className: "ground-container employee-app-container form-container"
|
|
17259
|
+
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
17260
|
+
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
17261
|
+
className: "icon"
|
|
17262
|
+
}), "Back"),
|
|
17263
|
+
onLeftClick: () => window.history.back(),
|
|
17264
|
+
breadcrumbs: breadcrumbs
|
|
17265
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17266
|
+
className: "employee-form"
|
|
17267
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
17268
|
+
className: "employee-form-content"
|
|
17269
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
17125
17270
|
className: "pt-citizen",
|
|
17126
17271
|
style: {
|
|
17127
17272
|
width: "100%"
|
|
17128
17273
|
}
|
|
17129
|
-
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(
|
|
17274
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
|
|
17275
|
+
path: `${path}/search`,
|
|
17276
|
+
component: SearchProperty$1
|
|
17277
|
+
}), /*#__PURE__*/React.createElement(Route, {
|
|
17130
17278
|
path: `${path}/property/citizen-search`,
|
|
17131
17279
|
component: SearchProperty$1
|
|
17132
17280
|
}), /*#__PURE__*/React.createElement(Route, {
|
|
@@ -17146,7 +17294,7 @@ const App = ({
|
|
|
17146
17294
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17147
17295
|
path: `${path}/view-property`,
|
|
17148
17296
|
component: () => /*#__PURE__*/React.createElement(ViewProperty, null)
|
|
17149
|
-
}))));
|
|
17297
|
+
})))))));
|
|
17150
17298
|
};
|
|
17151
17299
|
|
|
17152
17300
|
const NewApplication = ({
|
|
@@ -17388,45 +17536,30 @@ const EmployeeApp = ({
|
|
|
17388
17536
|
const location = useLocation();
|
|
17389
17537
|
const urlpropertyId = new URLSearchParams(useLocation().search).get("propertyId");
|
|
17390
17538
|
const urltenantId = new URLSearchParams(useLocation().search).get("tenantId");
|
|
17391
|
-
const
|
|
17392
|
-
|
|
17539
|
+
const getBreadcrumbLabel = () => {
|
|
17540
|
+
const pathname = location.pathname;
|
|
17541
|
+
if (pathname.includes("/commonpt/search")) return "SEARCH_PROPERTY";else if (pathname.includes("/view-property")) return "PT_PROPERTY_INFORMATION";
|
|
17542
|
+
return "ES_COMMON_INBOX";
|
|
17393
17543
|
};
|
|
17394
|
-
const
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
const search = useLocation().search;
|
|
17398
|
-
const redirectUrl = new URLSearchParams(search).get("redirectToUrl");
|
|
17399
|
-
const fromScreen = new URLSearchParams(search).get("from") || "";
|
|
17400
|
-
const crumbs = [{
|
|
17401
|
-
path: "/digit-ui/employee",
|
|
17402
|
-
content: t("ES_COMMON_HOME"),
|
|
17403
|
-
show: true
|
|
17544
|
+
const breadcrumbs = [{
|
|
17545
|
+
icon: HomeIcon,
|
|
17546
|
+
path: "/digit-ui/employee"
|
|
17404
17547
|
}, {
|
|
17405
|
-
|
|
17406
|
-
pathname: urlpropertyId ? `${redirectUrl}?propertyId=${urlpropertyId}&tenantId=${urltenantId}` : redirectUrl,
|
|
17407
|
-
state: {
|
|
17408
|
-
...location.state
|
|
17409
|
-
}
|
|
17410
|
-
},
|
|
17411
|
-
content: redirectUrl ? getRedirectBreadCrumb(redirectUrl) : fromScreen && t(fromScreen) || "NONE",
|
|
17412
|
-
show: (redirectUrl || fromScreen) && true,
|
|
17413
|
-
isBack: fromScreen && true,
|
|
17414
|
-
isredirected: true
|
|
17415
|
-
}, {
|
|
17416
|
-
path: "/digit-ui/employee/dss/drilldown",
|
|
17417
|
-
content: getBreadCrumb(),
|
|
17418
|
-
show: true
|
|
17548
|
+
label: t(getBreadcrumbLabel())
|
|
17419
17549
|
}];
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17550
|
+
return /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement("div", {
|
|
17551
|
+
className: "ground-container employee-app-container form-container"
|
|
17552
|
+
}, /*#__PURE__*/React.createElement(ModuleHeader, {
|
|
17553
|
+
leftContent: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ArrowLeft, {
|
|
17554
|
+
className: "icon"
|
|
17555
|
+
}), "Back"),
|
|
17556
|
+
onLeftClick: () => window.history.back(),
|
|
17557
|
+
breadcrumbs: breadcrumbs
|
|
17558
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
17559
|
+
className: "employee-form"
|
|
17423
17560
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
} : {}
|
|
17427
|
-
}, /*#__PURE__*/React.createElement(BreadCrumb, {
|
|
17428
|
-
crumbs: crumbs
|
|
17429
|
-
})), /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17561
|
+
className: "employee-form-content"
|
|
17562
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17430
17563
|
exact: true,
|
|
17431
17564
|
path: `${path}/`,
|
|
17432
17565
|
component: () => /*#__PURE__*/React.createElement(CommonPTLinks, {
|
|
@@ -17435,18 +17568,14 @@ const EmployeeApp = ({
|
|
|
17435
17568
|
})
|
|
17436
17569
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17437
17570
|
path: `${path}/new-application`,
|
|
17438
|
-
component:
|
|
17439
|
-
layoutClass: "action"
|
|
17440
|
-
}, /*#__PURE__*/React.createElement(NewApplication, {
|
|
17441
|
-
path: path
|
|
17442
|
-
}))
|
|
17571
|
+
component: NewApplication
|
|
17443
17572
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17444
17573
|
path: `${path}/search`,
|
|
17445
17574
|
component: Search
|
|
17446
17575
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17447
17576
|
path: `${path}/view-property`,
|
|
17448
17577
|
component: ViewProperty
|
|
17449
|
-
})));
|
|
17578
|
+
}))))));
|
|
17450
17579
|
};
|
|
17451
17580
|
|
|
17452
17581
|
const PropertyAssemblyDetails = ({
|
|
@@ -18341,11 +18470,29 @@ const PropertyWaterConnection = ({
|
|
|
18341
18470
|
}, [ptServicesMastersData]);
|
|
18342
18471
|
const propertyTypeOptions = useMemo(() => {
|
|
18343
18472
|
var _ptServicesMastersDat3, _ptServicesMastersDat4;
|
|
18344
|
-
|
|
18473
|
+
let options = (ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat3 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat3 === void 0 ? void 0 : (_ptServicesMastersDat4 = _ptServicesMastersDat3.PropertyType) === null || _ptServicesMastersDat4 === void 0 ? void 0 : _ptServicesMastersDat4.filter(item => item.active)) || [];
|
|
18474
|
+
if (watchPropertyCategory !== null && watchPropertyCategory !== void 0 && watchPropertyCategory.code) {
|
|
18475
|
+
var _watchPropertyCategor;
|
|
18476
|
+
if ((watchPropertyCategory === null || watchPropertyCategory === void 0 ? void 0 : (_watchPropertyCategor = watchPropertyCategory.code) === null || _watchPropertyCategor === void 0 ? void 0 : _watchPropertyCategor.toUpperCase()) !== "MIXED") {
|
|
18477
|
+
options = options.filter(item => {
|
|
18478
|
+
var _item$type, _watchPropertyCategor2;
|
|
18479
|
+
return ((_item$type = item.type) === null || _item$type === void 0 ? void 0 : _item$type.toUpperCase()) === ((_watchPropertyCategor2 = watchPropertyCategory.code) === null || _watchPropertyCategor2 === void 0 ? void 0 : _watchPropertyCategor2.toUpperCase());
|
|
18480
|
+
});
|
|
18481
|
+
}
|
|
18482
|
+
}
|
|
18483
|
+
return options.map(item => ({
|
|
18345
18484
|
code: item.code,
|
|
18346
18485
|
name: item.name
|
|
18347
|
-
}))
|
|
18348
|
-
}, [ptServicesMastersData]);
|
|
18486
|
+
}));
|
|
18487
|
+
}, [ptServicesMastersData, watchPropertyCategory]);
|
|
18488
|
+
useEffect(() => {
|
|
18489
|
+
if (watchPropertyCategory && watchPropertyType) {
|
|
18490
|
+
const isTypeValid = propertyTypeOptions.some(opt => opt.code === watchPropertyType.code);
|
|
18491
|
+
if (!isTypeValid) {
|
|
18492
|
+
setValue("useDetails.propertyType", null);
|
|
18493
|
+
}
|
|
18494
|
+
}
|
|
18495
|
+
}, [watchPropertyCategory, propertyTypeOptions, setValue, watchPropertyType]);
|
|
18349
18496
|
const usageTypeOptions = useMemo(() => {
|
|
18350
18497
|
var _ptServicesMastersDat5, _ptServicesMastersDat6;
|
|
18351
18498
|
return ptServicesMastersData === null || ptServicesMastersData === void 0 ? void 0 : (_ptServicesMastersDat5 = ptServicesMastersData.PropertyTax) === null || _ptServicesMastersDat5 === void 0 ? void 0 : (_ptServicesMastersDat6 = _ptServicesMastersDat5.PropertyNewUsageType) === null || _ptServicesMastersDat6 === void 0 ? void 0 : _ptServicesMastersDat6.filter(item => item.active).map(item => ({
|
|
@@ -18470,14 +18617,11 @@ const PropertyWaterConnection = ({
|
|
|
18470
18617
|
})
|
|
18471
18618
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails3 = errors.useDetails) === null || _errors$useDetails3 === void 0 ? void 0 : _errors$useDetails3.WaterConnectionUsageType) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18472
18619
|
style: errorStyle
|
|
18473
|
-
}, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}
|
|
18620
|
+
}, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}`), /*#__PURE__*/React.createElement("div", {
|
|
18474
18621
|
className: "form-field"
|
|
18475
18622
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18476
18623
|
control: control,
|
|
18477
18624
|
name: "useDetails.noOfFloors",
|
|
18478
|
-
rules: {
|
|
18479
|
-
required: t("REQUIRED_FIELD")
|
|
18480
|
-
},
|
|
18481
18625
|
render: props => /*#__PURE__*/React.createElement(Dropdown, {
|
|
18482
18626
|
option: floorOptions,
|
|
18483
18627
|
optionKey: "name",
|
|
@@ -18489,7 +18633,7 @@ const PropertyWaterConnection = ({
|
|
|
18489
18633
|
})
|
|
18490
18634
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails4 = errors.useDetails) === null || _errors$useDetails4 === void 0 ? void 0 : _errors$useDetails4.noOfFloors) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18491
18635
|
style: errorStyle
|
|
18492
|
-
}, errors.useDetails.noOfFloors.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PLOT_AREA")}
|
|
18636
|
+
}, errors.useDetails.noOfFloors.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_PLOT_AREA")}`), /*#__PURE__*/React.createElement("div", {
|
|
18493
18637
|
className: "form-field"
|
|
18494
18638
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
18495
18639
|
t: t,
|
|
@@ -18497,14 +18641,13 @@ const PropertyWaterConnection = ({
|
|
|
18497
18641
|
pattern: {
|
|
18498
18642
|
value: DECIMAL_PATTERN,
|
|
18499
18643
|
message: t("ERR_INVALID_DECIMAL")
|
|
18500
|
-
}
|
|
18501
|
-
required: t("REQUIRED_FIELD")
|
|
18644
|
+
}
|
|
18502
18645
|
}),
|
|
18503
18646
|
name: "useDetails.plotArea",
|
|
18504
18647
|
disabled: isPropertyFound
|
|
18505
18648
|
}))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails5 = errors.useDetails) === null || _errors$useDetails5 === void 0 ? void 0 : _errors$useDetails5.plotArea) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18506
18649
|
style: errorStyle
|
|
18507
|
-
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}
|
|
18650
|
+
}, errors.useDetails.plotArea.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("WS_BUILT_UP_AREA")}`), /*#__PURE__*/React.createElement("div", {
|
|
18508
18651
|
className: "form-field"
|
|
18509
18652
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
18510
18653
|
t: t,
|
|
@@ -18512,8 +18655,7 @@ const PropertyWaterConnection = ({
|
|
|
18512
18655
|
pattern: {
|
|
18513
18656
|
value: DECIMAL_PATTERN,
|
|
18514
18657
|
message: t("ERR_INVALID_DECIMAL")
|
|
18515
|
-
}
|
|
18516
|
-
required: t("REQUIRED_FIELD")
|
|
18658
|
+
}
|
|
18517
18659
|
}),
|
|
18518
18660
|
name: "useDetails.builtUpArea",
|
|
18519
18661
|
disabled: isPropertyFound
|
|
@@ -18643,7 +18785,9 @@ const SearchPTID = ({
|
|
|
18643
18785
|
onReset: onReset,
|
|
18644
18786
|
t: t,
|
|
18645
18787
|
onSwitch: setSearchBy
|
|
18646
|
-
}),
|
|
18788
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
18789
|
+
className: "formcomposer-section-grid"
|
|
18790
|
+
}, fields && Object.keys(fields).map(key => {
|
|
18647
18791
|
var _field$validation, _formState$errors, _formState$errors$key;
|
|
18648
18792
|
let field = fields[key];
|
|
18649
18793
|
let validation = (field === null || field === void 0 ? void 0 : field.validation) || {};
|
|
@@ -18676,22 +18820,20 @@ const SearchPTID = ({
|
|
|
18676
18820
|
shouldUnregister: true,
|
|
18677
18821
|
...validation
|
|
18678
18822
|
})
|
|
18679
|
-
})), /*#__PURE__*/React.createElement(CardLabelError,
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
}
|
|
18685
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
18686
|
-
className: "pt-search-action"
|
|
18823
|
+
})), /*#__PURE__*/React.createElement(CardLabelError, null, t(formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$key = _formState$errors[key]) === null || _formState$errors$key === void 0 ? void 0 : _formState$errors$key.message)));
|
|
18824
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
18825
|
+
className: "formcomposer-section-button",
|
|
18826
|
+
style: {
|
|
18827
|
+
marginTop: "16px"
|
|
18828
|
+
}
|
|
18687
18829
|
}, /*#__PURE__*/React.createElement(SearchField, {
|
|
18688
|
-
className: "pt-search-action-reset"
|
|
18830
|
+
className: "pt-search-action-reset generic-button clear-search"
|
|
18689
18831
|
}, /*#__PURE__*/React.createElement("p", {
|
|
18690
18832
|
onClick: () => {
|
|
18691
18833
|
onReset({});
|
|
18692
18834
|
}
|
|
18693
18835
|
}, t(`ES_COMMON_CLEAR_ALL`))), /*#__PURE__*/React.createElement(SearchField, {
|
|
18694
|
-
className: "pt-search-action-submit"
|
|
18836
|
+
className: "pt-search-action-submit submit-bar generic-button"
|
|
18695
18837
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18696
18838
|
label: t("ES_COMMON_SEARCH"),
|
|
18697
18839
|
submit: true
|
|
@@ -18747,7 +18889,8 @@ const SearchPTID$1 = ({
|
|
|
18747
18889
|
className: "link"
|
|
18748
18890
|
}, /*#__PURE__*/React.createElement("span", {
|
|
18749
18891
|
onClick: () => {
|
|
18750
|
-
|
|
18892
|
+
const userType = window.location.href.includes("/citizen/") ? "citizen" : "employee";
|
|
18893
|
+
history.push(`/digit-ui/${userType}/commonpt/view-property?propertyId=${row.original["propertyId"]}&tenantId=${tenantId}&redirectToUrl=${redirectToUrl}`, {
|
|
18751
18894
|
...state
|
|
18752
18895
|
});
|
|
18753
18896
|
}
|
|
@@ -18774,23 +18917,14 @@ const SearchPTID$1 = ({
|
|
|
18774
18917
|
return GetCell(t((row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.status) || "NA"));
|
|
18775
18918
|
},
|
|
18776
18919
|
disableSortBy: true
|
|
18777
|
-
}, {
|
|
18778
|
-
Header: t("PT_AMOUNT_DUE"),
|
|
18779
|
-
Cell: ({
|
|
18780
|
-
row
|
|
18781
|
-
}) => {
|
|
18782
|
-
var _row$original2, _row$original3;
|
|
18783
|
-
return GetCell(row !== null && row !== void 0 && (_row$original2 = row.original) !== null && _row$original2 !== void 0 && _row$original2.due ? `₹ ${row === null || row === void 0 ? void 0 : (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.due}` : t("PT_NA"));
|
|
18784
|
-
},
|
|
18785
|
-
disableSortBy: true
|
|
18786
18920
|
}, {
|
|
18787
18921
|
Header: t("ES_SEARCH_ACTION"),
|
|
18788
18922
|
disableSortBy: true,
|
|
18789
18923
|
Cell: ({
|
|
18790
18924
|
row
|
|
18791
18925
|
}) => {
|
|
18792
|
-
var _row$
|
|
18793
|
-
return /*#__PURE__*/React.createElement("div", null, (row === null || row === void 0 ? void 0 : (_row$
|
|
18926
|
+
var _row$original2;
|
|
18927
|
+
return /*#__PURE__*/React.createElement("div", null, (row === null || row === void 0 ? void 0 : (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.status) !== "INACTIVE" ? /*#__PURE__*/React.createElement("span", {
|
|
18794
18928
|
className: "link"
|
|
18795
18929
|
}, redirectToUrl ? /*#__PURE__*/React.createElement("span", {
|
|
18796
18930
|
onClick: () => {
|
|
@@ -19356,6 +19490,7 @@ const PropertySearchNSummary = ({
|
|
|
19356
19490
|
};
|
|
19357
19491
|
|
|
19358
19492
|
const CommonPTCard = () => {
|
|
19493
|
+
var _propsForModuleCard$l;
|
|
19359
19494
|
const {
|
|
19360
19495
|
t
|
|
19361
19496
|
} = useTranslation();
|
|
@@ -19367,10 +19502,17 @@ const CommonPTCard = () => {
|
|
|
19367
19502
|
value: 0
|
|
19368
19503
|
}],
|
|
19369
19504
|
links: [{
|
|
19370
|
-
label: t("
|
|
19505
|
+
label: t("PT_SEARCH"),
|
|
19371
19506
|
link: `/digit-ui/employee/commonpt/search`
|
|
19372
19507
|
}]
|
|
19373
19508
|
};
|
|
19509
|
+
const PT_CEMP = Digit.UserService.hasAccess(["PT_CEMP"]) || false;
|
|
19510
|
+
if (PT_CEMP && !((_propsForModuleCard$l = propsForModuleCard.links) !== null && _propsForModuleCard$l !== void 0 && _propsForModuleCard$l[1])) {
|
|
19511
|
+
propsForModuleCard.links.push({
|
|
19512
|
+
label: t("PT_CREATE_PROPERTY"),
|
|
19513
|
+
link: `/digit-ui/employee/commonpt/new-application`
|
|
19514
|
+
});
|
|
19515
|
+
}
|
|
19374
19516
|
return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
|
|
19375
19517
|
};
|
|
19376
19518
|
|
|
@@ -19382,7 +19524,7 @@ const CommonPTModule = ({
|
|
|
19382
19524
|
path,
|
|
19383
19525
|
url
|
|
19384
19526
|
} = useRouteMatch();
|
|
19385
|
-
const moduleCode = "PT";
|
|
19527
|
+
const moduleCode = ["PT", "ws"];
|
|
19386
19528
|
const language = Digit.StoreData.getCurrentLanguage();
|
|
19387
19529
|
const {
|
|
19388
19530
|
isLoading,
|