@djb25/digit-ui-module-commonpt 1.0.12 → 1.0.14
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 +284 -343
- 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, Header, ResponseComposer, Table, Modal, KeyNote, Dropdown, Localities, OTPInput, CardLabelError, FormStep, UploadFile, RadioButtons, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, TelePhone, DisplayPhotos,
|
|
1
|
+
import { Loader, VerticalTimeline, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, LayoutWrapper, Header, ResponseComposer, Table, Modal, KeyNote, Dropdown, InfoBannerIcon, Localities, OTPInput, CardLabelError, FormStep, UploadFile, RadioButtons, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, ViewsIcon, BreakLine, TelePhone, DisplayPhotos, EditIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CollapsibleCardPage, AddressDetails, DeleteIcon, MobileNumber, RadioOrSelect, TextArea, SearchForm, SearchField, DetailsCard, TickMark, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useRef, useLayoutEffect, useMemo, 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';
|
|
@@ -43,24 +43,6 @@ const newConfig = [{
|
|
|
43
43
|
withoutLabel: true,
|
|
44
44
|
colSpan: "span 2"
|
|
45
45
|
}]
|
|
46
|
-
}, {
|
|
47
|
-
head: "PT_OWNERSHIP_DETAILS",
|
|
48
|
-
body: [{
|
|
49
|
-
type: "component",
|
|
50
|
-
route: "institutional-owner-address",
|
|
51
|
-
isMandatory: false,
|
|
52
|
-
component: "CPTPropertyOwnerDetails",
|
|
53
|
-
texts: {
|
|
54
|
-
headerCaption: "PT_OWNERS_DETAILS",
|
|
55
|
-
header: "PT_OWNERS_ADDRESS",
|
|
56
|
-
cardText: "",
|
|
57
|
-
submitBarLabel: "PT_COMMON_NEXT"
|
|
58
|
-
},
|
|
59
|
-
key: "owners",
|
|
60
|
-
withoutLabel: true,
|
|
61
|
-
nextStep: "institutional-proof-of-identity",
|
|
62
|
-
colSpan: "span 2"
|
|
63
|
-
}]
|
|
64
46
|
}];
|
|
65
47
|
|
|
66
48
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -6246,9 +6228,9 @@ const CreatePropertyForm = ({
|
|
|
6246
6228
|
} = useTranslation();
|
|
6247
6229
|
const location = useLocation();
|
|
6248
6230
|
const [canSubmit, setCanSubmit] = useState(true);
|
|
6249
|
-
const defaultValues = {
|
|
6231
|
+
const defaultValues = React.useMemo(() => ({
|
|
6250
6232
|
...value
|
|
6251
|
-
};
|
|
6233
|
+
}), []);
|
|
6252
6234
|
const history = useHistory();
|
|
6253
6235
|
const match = useRouteMatch();
|
|
6254
6236
|
sessionStorage.setItem("VisitedCommonPTSearch", true);
|
|
@@ -6328,17 +6310,34 @@ const CreatePropertyForm = ({
|
|
|
6328
6310
|
}
|
|
6329
6311
|
const onSubmit = async () => {
|
|
6330
6312
|
var _formValue$owners, _formValue$owners$own, _formValue$owners2, _formValue$owners2$, _formValue$owners2$$o, _formValue$owners2$$o2, _formValue$owners3;
|
|
6331
|
-
|
|
6313
|
+
let ownersArray = owners && owners.length > 0 ? owners : formValue === null || formValue === void 0 ? void 0 : formValue.owners;
|
|
6314
|
+
if (!ownersArray || ownersArray.length === 0) {
|
|
6315
|
+
var _Digit$UserService$ge;
|
|
6316
|
+
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
6317
|
+
ownersArray = [{
|
|
6318
|
+
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.name) || "Citizen",
|
|
6319
|
+
mobileNumber: userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber,
|
|
6320
|
+
gender: {
|
|
6321
|
+
code: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.gender) || "MALE",
|
|
6322
|
+
name: (userInfo === null || userInfo === void 0 ? void 0 : userInfo.gender) || "Male"
|
|
6323
|
+
},
|
|
6324
|
+
fatherOrHusbandName: "NA",
|
|
6325
|
+
relationship: {
|
|
6326
|
+
code: "FATHER",
|
|
6327
|
+
name: "Father"
|
|
6328
|
+
},
|
|
6329
|
+
ownerType: {
|
|
6330
|
+
code: "NONE",
|
|
6331
|
+
name: "None"
|
|
6332
|
+
},
|
|
6333
|
+
ownershipCategory: "INDIVIDUAL.SINGLEOWNER"
|
|
6334
|
+
}];
|
|
6335
|
+
}
|
|
6332
6336
|
if ((formValue !== null && formValue !== void 0 && (_formValue$owners = formValue.owners) !== null && _formValue$owners !== void 0 && (_formValue$owners$own = _formValue$owners.ownershipCategory) !== null && _formValue$owners$own !== void 0 && _formValue$owners$own.includes("MULTIPLEOWNERS") || formValue !== null && formValue !== void 0 && (_formValue$owners2 = formValue.owners) !== null && _formValue$owners2 !== void 0 && (_formValue$owners2$ = _formValue$owners2[0]) !== null && _formValue$owners2$ !== void 0 && (_formValue$owners2$$o = _formValue$owners2$.ownershipCategory) !== null && _formValue$owners2$$o !== void 0 && (_formValue$owners2$$o2 = _formValue$owners2$$o.code) !== null && _formValue$owners2$$o2 !== void 0 && _formValue$owners2$$o2.includes("MULTIPLEOWNERS")) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$owners3 = formValue.owners) === null || _formValue$owners3 === void 0 ? void 0 : _formValue$owners3.length) == 1) {
|
|
6333
6337
|
setShowToast({
|
|
6334
6338
|
key: true,
|
|
6335
6339
|
label: "PT_COMMON_ONE_MORE_OWNER_INFROMATION_REQUIRED"
|
|
6336
6340
|
});
|
|
6337
|
-
} else if (!ownersArray || ownersArray.length === 0) {
|
|
6338
|
-
setShowToast({
|
|
6339
|
-
key: true,
|
|
6340
|
-
label: t("PT_COMMON_OWNER_DETAILS_REQUIRED")
|
|
6341
|
-
});
|
|
6342
6341
|
} else {
|
|
6343
6342
|
const payload = convertToPropertyLightWeight({
|
|
6344
6343
|
...formValue,
|
|
@@ -6460,7 +6459,7 @@ const PTAcknowledgement = ({
|
|
|
6460
6459
|
redirectUrl,
|
|
6461
6460
|
userType
|
|
6462
6461
|
}) => {
|
|
6463
|
-
var _location$state, _location$state2, _formData$cptNewPrope2, _formData$cptNewPrope3, _mdmsConfig$PropertyT, _data, _data$locationDet, _data$locationDet2, _data$locationDet2$ci, _data2, _data2$locationDet, _data$locationDet3, _data$locationDet3$ci, _responseData$
|
|
6462
|
+
var _location$state, _location$state2, _formData$cptNewPrope2, _formData$cptNewPrope3, _mdmsConfig$PropertyT, _data, _data$locationDet, _data$locationDet2, _data$locationDet2$ci, _data2, _data2$locationDet, _data$locationDet3, _data$locationDet3$ci, _responseData$Propert6;
|
|
6464
6463
|
const {
|
|
6465
6464
|
t
|
|
6466
6465
|
} = useTranslation();
|
|
@@ -6534,13 +6533,24 @@ const PTAcknowledgement = ({
|
|
|
6534
6533
|
Properties: [propertyFromState]
|
|
6535
6534
|
} : mutation.data;
|
|
6536
6535
|
const onNext = () => {
|
|
6537
|
-
if (
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6536
|
+
if (isMutationSuccess) {
|
|
6537
|
+
var _responseData$Propert, _responseData$Propert2;
|
|
6538
|
+
sessionStorage.setItem("Digit_OBPS_PT", JSON.stringify(responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert = responseData.Properties) === null || _responseData$Propert === void 0 ? void 0 : _responseData$Propert[0]));
|
|
6539
|
+
sessionStorage.setItem("Digit_FSM_PT", JSON.stringify(responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert2 = responseData.Properties) === null || _responseData$Propert2 === void 0 ? void 0 : _responseData$Propert2[0]));
|
|
6540
|
+
const queryParams = new URLSearchParams(location.search);
|
|
6541
|
+
const redirectUrlFromQuery = queryParams.get("redirectToUrl");
|
|
6542
|
+
const finalRedirectUrl = redirectUrl && redirectUrl !== "undefined" ? redirectUrl : redirectUrlFromQuery && redirectUrlFromQuery !== "undefined" ? redirectUrlFromQuery : null;
|
|
6543
|
+
if (finalRedirectUrl) {
|
|
6544
|
+
var _responseData$Propert3, _responseData$Propert4, _location$state3;
|
|
6545
|
+
history.push(`${finalRedirectUrl}?propertyId=${responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert3 = responseData.Properties[0]) === null || _responseData$Propert3 === void 0 ? void 0 : _responseData$Propert3.propertyId}&tenantId=${responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert4 = responseData.Properties[0]) === null || _responseData$Propert4 === void 0 ? void 0 : _responseData$Propert4.tenantId}`, {
|
|
6546
|
+
...(location === null || location === void 0 ? void 0 : (_location$state3 = location.state) === null || _location$state3 === void 0 ? void 0 : _location$state3.prevState)
|
|
6547
|
+
});
|
|
6548
|
+
return;
|
|
6549
|
+
}
|
|
6550
|
+
if (onSelect) {
|
|
6551
|
+
var _responseData$Propert5;
|
|
6542
6552
|
onSelect("cpt", {
|
|
6543
|
-
details: responseData === null || responseData === void 0 ? void 0 : (_responseData$
|
|
6553
|
+
details: responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert5 = responseData.Properties) === null || _responseData$Propert5 === void 0 ? void 0 : _responseData$Propert5[0]
|
|
6544
6554
|
});
|
|
6545
6555
|
}
|
|
6546
6556
|
}
|
|
@@ -6554,7 +6564,7 @@ const PTAcknowledgement = ({
|
|
|
6554
6564
|
rowContainerStyle: rowContainerStyle,
|
|
6555
6565
|
last: true,
|
|
6556
6566
|
label: t("PT_COMMON_TABLE_COL_PT_ID"),
|
|
6557
|
-
text: responseData === null || responseData === void 0 ? void 0 : (_responseData$
|
|
6567
|
+
text: responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert6 = responseData.Properties[0]) === null || _responseData$Propert6 === void 0 ? void 0 : _responseData$Propert6.propertyId,
|
|
6558
6568
|
textStyle: {
|
|
6559
6569
|
whiteSpace: "pre",
|
|
6560
6570
|
width: "200%"
|
|
@@ -6569,10 +6579,12 @@ const PTAcknowledgement = ({
|
|
|
6569
6579
|
const redirectUrlFromQuery = queryParams.get("redirectToUrl");
|
|
6570
6580
|
const finalRedirectUrl = redirectUrl && redirectUrl !== "undefined" ? redirectUrl : redirectUrlFromQuery && redirectUrlFromQuery !== "undefined" ? redirectUrlFromQuery : null;
|
|
6571
6581
|
if (finalRedirectUrl) {
|
|
6572
|
-
var _responseData$
|
|
6573
|
-
history.push(`${finalRedirectUrl}?propertyId=${responseData === null || responseData === void 0 ? void 0 : (_responseData$
|
|
6574
|
-
...(location === null || location === void 0 ? void 0 : (_location$
|
|
6582
|
+
var _responseData$Propert7, _responseData$Propert8, _location$state4;
|
|
6583
|
+
history.push(`${finalRedirectUrl}?propertyId=${responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert7 = responseData.Properties[0]) === null || _responseData$Propert7 === void 0 ? void 0 : _responseData$Propert7.propertyId}&tenantId=${responseData === null || responseData === void 0 ? void 0 : (_responseData$Propert8 = responseData.Properties[0]) === null || _responseData$Propert8 === void 0 ? void 0 : _responseData$Propert8.tenantId}`, {
|
|
6584
|
+
...(location === null || location === void 0 ? void 0 : (_location$state4 = location.state) === null || _location$state4 === void 0 ? void 0 : _location$state4.prevState)
|
|
6575
6585
|
});
|
|
6586
|
+
} else {
|
|
6587
|
+
history.push(window.location.href.includes("/employee/") ? "/digit-ui/employee" : "/digit-ui/citizen");
|
|
6576
6588
|
}
|
|
6577
6589
|
}
|
|
6578
6590
|
})));
|
|
@@ -6599,8 +6611,14 @@ const CreateProperty = ({
|
|
|
6599
6611
|
} = Digit.Hooks.pt.useMDMS(stateId, "PropertyTax", "CommonFieldsConfig");
|
|
6600
6612
|
const search = useLocation().search;
|
|
6601
6613
|
const redirectUrl = new URLSearchParams(search).get('redirectUrl');
|
|
6602
|
-
const createProperty = async () => {
|
|
6603
|
-
history.push(
|
|
6614
|
+
const createProperty = async (key, data) => {
|
|
6615
|
+
history.push({
|
|
6616
|
+
pathname: `${match.path}/save-property`,
|
|
6617
|
+
search: search,
|
|
6618
|
+
state: {
|
|
6619
|
+
property: data === null || data === void 0 ? void 0 : data.property
|
|
6620
|
+
}
|
|
6621
|
+
});
|
|
6604
6622
|
};
|
|
6605
6623
|
const onSuccess = () => {
|
|
6606
6624
|
clearParams();
|
|
@@ -6612,11 +6630,13 @@ const CreateProperty = ({
|
|
|
6612
6630
|
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
|
|
6613
6631
|
exact: true,
|
|
6614
6632
|
path: `${match.path}`
|
|
6633
|
+
}, /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
6634
|
+
layoutClass: "action"
|
|
6615
6635
|
}, /*#__PURE__*/React.createElement(CreatePropertyForm, {
|
|
6616
|
-
|
|
6636
|
+
onSelect: createProperty,
|
|
6617
6637
|
value: params,
|
|
6618
6638
|
userType: "citizen"
|
|
6619
|
-
})), /*#__PURE__*/React.createElement(Route, {
|
|
6639
|
+
}))), /*#__PURE__*/React.createElement(Route, {
|
|
6620
6640
|
exact: true,
|
|
6621
6641
|
path: `${match.path}/save-property`
|
|
6622
6642
|
}, /*#__PURE__*/React.createElement(PTAcknowledgement, {
|
|
@@ -7620,12 +7640,10 @@ const PropertySearchResults = ({
|
|
|
7620
7640
|
t1 = 5;
|
|
7621
7641
|
}
|
|
7622
7642
|
let filter1 = !isNaN(parseInt(OfsetForSearch)) ? {
|
|
7623
|
-
limit: "5",
|
|
7624
7643
|
sortOrder: "ASC",
|
|
7625
7644
|
sortBy: "createdTime",
|
|
7626
7645
|
offset: off
|
|
7627
7646
|
} : {
|
|
7628
|
-
limit: "5",
|
|
7629
7647
|
sortOrder: "ASC",
|
|
7630
7648
|
sortBy: "createdTime",
|
|
7631
7649
|
offset: "0"
|
|
@@ -7846,10 +7864,21 @@ const PropertySearchResults = ({
|
|
|
7846
7864
|
data: searchResults,
|
|
7847
7865
|
totalCount: searchResults === null || searchResults === void 0 ? void 0 : searchResults.length,
|
|
7848
7866
|
totalRecords: searchResults === null || searchResults === void 0 ? void 0 : searchResults.length,
|
|
7867
|
+
manualPagination: false,
|
|
7868
|
+
disableSort: true,
|
|
7849
7869
|
columns: [{
|
|
7850
7870
|
Header: t("PT_PROPERTY_PTUID"),
|
|
7851
7871
|
disableSortBy: true,
|
|
7852
|
-
accessor: "property_id"
|
|
7872
|
+
accessor: "property_id",
|
|
7873
|
+
Cell: ({
|
|
7874
|
+
row
|
|
7875
|
+
}) => {
|
|
7876
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
|
|
7877
|
+
className: "link"
|
|
7878
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
7879
|
+
to: `/digit-ui/citizen/commonpt/view-property?propertyId=${row.original.property_id}&tenantId=${tenantId}`
|
|
7880
|
+
}, row.original.property_id)));
|
|
7881
|
+
}
|
|
7853
7882
|
}, {
|
|
7854
7883
|
Header: t("PT_OWNER_NAME"),
|
|
7855
7884
|
disableSortBy: true,
|
|
@@ -7931,14 +7960,14 @@ const SearchProperty = ({
|
|
|
7931
7960
|
} = Digit.Hooks.useQueryParams();
|
|
7932
7961
|
const [searchData, setSearchData] = useState(() => {
|
|
7933
7962
|
var _Digit$UserService$ge, _Digit$UserService$ge2;
|
|
7934
|
-
const isFirstVisit = sessionStorage.getItem("VisitedCitizenSearchRedirect");
|
|
7935
7963
|
const mobileNumber = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.mobileNumber;
|
|
7936
|
-
|
|
7937
|
-
|
|
7964
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || Digit.ULBService.getStateId() || "dl";
|
|
7965
|
+
if (mobileNumber && window.location.href.includes("digit-ui/citizen/commonpt/property/citizen-search")) {
|
|
7938
7966
|
return {
|
|
7939
7967
|
filters: {
|
|
7940
7968
|
mobileNumber
|
|
7941
|
-
}
|
|
7969
|
+
},
|
|
7970
|
+
city: tenantId
|
|
7942
7971
|
};
|
|
7943
7972
|
}
|
|
7944
7973
|
return {};
|
|
@@ -8179,6 +8208,35 @@ const SearchProperty = ({
|
|
|
8179
8208
|
validation: mobileNumber === null || mobileNumber === void 0 ? void 0 : mobileNumber.validation
|
|
8180
8209
|
},
|
|
8181
8210
|
isMandatory: false
|
|
8211
|
+
}, {
|
|
8212
|
+
label: "",
|
|
8213
|
+
labelChildren: /*#__PURE__*/React.createElement("div", {
|
|
8214
|
+
className: "tooltip"
|
|
8215
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8216
|
+
style: {
|
|
8217
|
+
display: "flex",
|
|
8218
|
+
gap: "0 4px"
|
|
8219
|
+
}
|
|
8220
|
+
}, /*#__PURE__*/React.createElement("h2", null, t(property.label)), /*#__PURE__*/React.createElement(InfoBannerIcon, {
|
|
8221
|
+
fill: "#0b0c0c"
|
|
8222
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
8223
|
+
className: "tooltiptext",
|
|
8224
|
+
style: {
|
|
8225
|
+
position: "absolute",
|
|
8226
|
+
width: "72%",
|
|
8227
|
+
marginLeft: "50%",
|
|
8228
|
+
fontSize: "medium"
|
|
8229
|
+
}
|
|
8230
|
+
}, t(property.description) + " " + "PG-PT-xxxx-xxxxxx"))),
|
|
8231
|
+
type: property.type,
|
|
8232
|
+
populators: {
|
|
8233
|
+
name: property.name,
|
|
8234
|
+
defaultValue: "",
|
|
8235
|
+
validation: property === null || property === void 0 ? void 0 : property.validation
|
|
8236
|
+
},
|
|
8237
|
+
isMandatory: false,
|
|
8238
|
+
isInsideBox: true,
|
|
8239
|
+
placementinbox: 1
|
|
8182
8240
|
}],
|
|
8183
8241
|
body1: [{
|
|
8184
8242
|
label: "PT_SELECT_CITY",
|
|
@@ -8470,8 +8528,20 @@ const SearchProperty = ({
|
|
|
8470
8528
|
fontWeight: action == 0 ? "bold" : "normal"
|
|
8471
8529
|
},
|
|
8472
8530
|
onClick: () => {
|
|
8531
|
+
var _Digit$UserService$ge5, _Digit$UserService$ge6;
|
|
8473
8532
|
history.replace(`${history.location.pathname}?action=0`);
|
|
8474
|
-
|
|
8533
|
+
const mobileNumber = (_Digit$UserService$ge5 = Digit.UserService.getUser()) === null || _Digit$UserService$ge5 === void 0 ? void 0 : (_Digit$UserService$ge6 = _Digit$UserService$ge5.info) === null || _Digit$UserService$ge6 === void 0 ? void 0 : _Digit$UserService$ge6.mobileNumber;
|
|
8534
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || Digit.ULBService.getStateId() || "dl";
|
|
8535
|
+
if (mobileNumber) {
|
|
8536
|
+
setSearchData({
|
|
8537
|
+
filters: {
|
|
8538
|
+
mobileNumber
|
|
8539
|
+
},
|
|
8540
|
+
city: tenantId
|
|
8541
|
+
});
|
|
8542
|
+
} else {
|
|
8543
|
+
setSearchData({});
|
|
8544
|
+
}
|
|
8475
8545
|
}
|
|
8476
8546
|
}, t("PT_KNOW_PTID")), /*#__PURE__*/React.createElement("div", {
|
|
8477
8547
|
className: `search-tab ${action == 1 ? "active" : ""}`,
|
|
@@ -8483,8 +8553,20 @@ const SearchProperty = ({
|
|
|
8483
8553
|
fontWeight: action == 1 ? "bold" : "normal"
|
|
8484
8554
|
},
|
|
8485
8555
|
onClick: () => {
|
|
8556
|
+
var _Digit$UserService$ge7, _Digit$UserService$ge8;
|
|
8486
8557
|
history.replace(`${history.location.pathname}?action=1`);
|
|
8487
|
-
|
|
8558
|
+
const mobileNumber = (_Digit$UserService$ge7 = Digit.UserService.getUser()) === null || _Digit$UserService$ge7 === void 0 ? void 0 : (_Digit$UserService$ge8 = _Digit$UserService$ge7.info) === null || _Digit$UserService$ge8 === void 0 ? void 0 : _Digit$UserService$ge8.mobileNumber;
|
|
8559
|
+
const tenantId = Digit.ULBService.getCurrentTenantId() || Digit.ULBService.getStateId() || "dl";
|
|
8560
|
+
if (mobileNumber) {
|
|
8561
|
+
setSearchData({
|
|
8562
|
+
filters: {
|
|
8563
|
+
mobileNumber
|
|
8564
|
+
},
|
|
8565
|
+
city: tenantId
|
|
8566
|
+
});
|
|
8567
|
+
} else {
|
|
8568
|
+
setSearchData({});
|
|
8569
|
+
}
|
|
8488
8570
|
}
|
|
8489
8571
|
}, t("PT_SEARCH_DOOR_NO")), /*#__PURE__*/React.createElement("div", {
|
|
8490
8572
|
style: {
|
|
@@ -14001,7 +14083,7 @@ function PropertyDocuments({
|
|
|
14001
14083
|
}));
|
|
14002
14084
|
};
|
|
14003
14085
|
const renderDocumentRow = (value, index) => {
|
|
14004
|
-
var _pdfFiles$value$fileS, _value$originalDoc, _value$
|
|
14086
|
+
var _pdfFiles$value$fileS, _value$originalDoc, _value$originalDoc2, _value$originalDoc3;
|
|
14005
14087
|
const fileUrl = (_pdfFiles$value$fileS = pdfFiles[value.fileStoreId]) === null || _pdfFiles$value$fileS === void 0 ? void 0 : _pdfFiles$value$fileS.split(",")[0];
|
|
14006
14088
|
const docSubType = getDocSubType(value === null || value === void 0 ? void 0 : value.documentType);
|
|
14007
14089
|
const docUid = (value === null || value === void 0 ? void 0 : value.documentUid) || "";
|
|
@@ -14084,19 +14166,17 @@ function PropertyDocuments({
|
|
|
14084
14166
|
margin: 0
|
|
14085
14167
|
}
|
|
14086
14168
|
}, /*#__PURE__*/React.createElement("input", {
|
|
14169
|
+
key: `chk-${value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.id}-${value === null || value === void 0 ? void 0 : (_value$originalDoc2 = value.originalDoc) === null || _value$originalDoc2 === void 0 ? void 0 : _value$originalDoc2.isVerified}`,
|
|
14087
14170
|
type: "checkbox",
|
|
14088
14171
|
style: {
|
|
14089
14172
|
width: "18px",
|
|
14090
14173
|
height: "18px",
|
|
14091
14174
|
accentColor: "#F47738"
|
|
14092
14175
|
},
|
|
14093
|
-
defaultChecked: value === null || value === void 0 ? void 0 : (_value$
|
|
14176
|
+
defaultChecked: value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified,
|
|
14094
14177
|
onChange: e => {
|
|
14095
14178
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
14096
|
-
|
|
14097
|
-
value.originalDoc.additionalDetails = {};
|
|
14098
|
-
}
|
|
14099
|
-
value.originalDoc.additionalDetails.isDocumentVerified = e.target.checked;
|
|
14179
|
+
value.originalDoc.isVerified = e.target.checked;
|
|
14100
14180
|
}
|
|
14101
14181
|
}
|
|
14102
14182
|
}), "Check Verified"))
|
|
@@ -14352,131 +14432,6 @@ function PropertyFloors({
|
|
|
14352
14432
|
}));
|
|
14353
14433
|
}
|
|
14354
14434
|
|
|
14355
|
-
function PropertyOwners({
|
|
14356
|
-
owners
|
|
14357
|
-
}) {
|
|
14358
|
-
let ownerSequences = {};
|
|
14359
|
-
if (window.location.href.includes("/employee/pt/")) {
|
|
14360
|
-
ownerSequences = owners.slice().reverse();
|
|
14361
|
-
} else {
|
|
14362
|
-
ownerSequences = owners;
|
|
14363
|
-
}
|
|
14364
|
-
const {
|
|
14365
|
-
t
|
|
14366
|
-
} = useTranslation();
|
|
14367
|
-
const checkOwnerLength = (owners === null || owners === void 0 ? void 0 : owners.length) || 1;
|
|
14368
|
-
let cardStyles = {
|
|
14369
|
-
marginTop: "19px"
|
|
14370
|
-
};
|
|
14371
|
-
let statusTableStyles = {
|
|
14372
|
-
position: "relative",
|
|
14373
|
-
padding: "8px"
|
|
14374
|
-
};
|
|
14375
|
-
let rowContainerStyle = {
|
|
14376
|
-
justifyContent: "space-between",
|
|
14377
|
-
fontSize: "16px",
|
|
14378
|
-
lineHeight: "19px",
|
|
14379
|
-
color: "#0B0C0C"
|
|
14380
|
-
};
|
|
14381
|
-
if ( Number(checkOwnerLength) > 1) {
|
|
14382
|
-
cardStyles = {
|
|
14383
|
-
marginTop: "19px",
|
|
14384
|
-
background: "#FAFAFA",
|
|
14385
|
-
border: "1px solid #D6D5D4",
|
|
14386
|
-
borderRadius: "4px",
|
|
14387
|
-
padding: "8px",
|
|
14388
|
-
lineHeight: "19px",
|
|
14389
|
-
maxWidth: "600px",
|
|
14390
|
-
minWidth: "280px"
|
|
14391
|
-
};
|
|
14392
|
-
} else if ( !(Number(checkOwnerLength) > 1)) {
|
|
14393
|
-
cardStyles = {
|
|
14394
|
-
marginTop: "19px",
|
|
14395
|
-
lineHeight: "19px",
|
|
14396
|
-
maxWidth: "600px",
|
|
14397
|
-
minWidth: "280px"
|
|
14398
|
-
};
|
|
14399
|
-
statusTableStyles = {
|
|
14400
|
-
position: "relative",
|
|
14401
|
-
marginTop: "19px"
|
|
14402
|
-
};
|
|
14403
|
-
}
|
|
14404
|
-
if (window.location.href.includes("obps")) {
|
|
14405
|
-
cardStyles = {
|
|
14406
|
-
...cardStyles,
|
|
14407
|
-
maxWidth: "950px"
|
|
14408
|
-
};
|
|
14409
|
-
cardStyles = {
|
|
14410
|
-
...cardStyles,
|
|
14411
|
-
maxWidth: "950px"
|
|
14412
|
-
};
|
|
14413
|
-
rowContainerStyle = {};
|
|
14414
|
-
}
|
|
14415
|
-
let owners1 = owners.sort((item, item2) => {
|
|
14416
|
-
var _item$additionalDetai, _item2$additionalDeta;
|
|
14417
|
-
return (item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.ownerSequence) - (item2 === null || item2 === void 0 ? void 0 : (_item2$additionalDeta = item2.additionalDetails) === null || _item2$additionalDeta === void 0 ? void 0 : _item2$additionalDeta.ownerSequence);
|
|
14418
|
-
});
|
|
14419
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14420
|
-
className: "owner-details"
|
|
14421
|
-
}, ownerSequences.map((owner, index) => {
|
|
14422
|
-
var _owner$values;
|
|
14423
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14424
|
-
key: t(owner === null || owner === void 0 ? void 0 : owner.title),
|
|
14425
|
-
style: cardStyles,
|
|
14426
|
-
className: "owner-details-child"
|
|
14427
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
14428
|
-
style: Number(checkOwnerLength) > 1 ? {
|
|
14429
|
-
marginBottom: "8px",
|
|
14430
|
-
paddingBottom: "9px",
|
|
14431
|
-
color: "#0B0C0C",
|
|
14432
|
-
fontSize: "16px",
|
|
14433
|
-
lineHeight: "19px"
|
|
14434
|
-
} : {
|
|
14435
|
-
marginBottom: "8px",
|
|
14436
|
-
color: "#505A5F",
|
|
14437
|
-
fontSize: "24px"
|
|
14438
|
-
}
|
|
14439
|
-
}, Number(checkOwnerLength) > 1 ? `${t(owner === null || owner === void 0 ? void 0 : owner.title)} ${index + 1}` : t(owner === null || owner === void 0 ? void 0 : owner.title)), /*#__PURE__*/React.createElement(React.Fragment, {
|
|
14440
|
-
key: index
|
|
14441
|
-
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
14442
|
-
style: statusTableStyles
|
|
14443
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14444
|
-
style: {
|
|
14445
|
-
maxWidth: "640px",
|
|
14446
|
-
top: 0,
|
|
14447
|
-
left: 0,
|
|
14448
|
-
bottom: 0,
|
|
14449
|
-
right: 0,
|
|
14450
|
-
width: "auto"
|
|
14451
|
-
}
|
|
14452
|
-
}), owner === null || owner === void 0 ? void 0 : (_owner$values = owner.values) === null || _owner$values === void 0 ? void 0 : _owner$values.map((value, index) => {
|
|
14453
|
-
var _value$values;
|
|
14454
|
-
if (value.map === true && value.value !== "N/A") {
|
|
14455
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
14456
|
-
key: t(value.title),
|
|
14457
|
-
label: t(value.title),
|
|
14458
|
-
text: /*#__PURE__*/React.createElement("img", {
|
|
14459
|
-
src: t(value.value),
|
|
14460
|
-
alt: "",
|
|
14461
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy
|
|
14462
|
-
})
|
|
14463
|
-
});
|
|
14464
|
-
}
|
|
14465
|
-
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Row, {
|
|
14466
|
-
key: t(value.title),
|
|
14467
|
-
label: `${t(value.title)}`,
|
|
14468
|
-
text: t(value.value) || "N/A",
|
|
14469
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
14470
|
-
caption: value.caption,
|
|
14471
|
-
className: "border-none",
|
|
14472
|
-
textStyle: value.textStyle,
|
|
14473
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy,
|
|
14474
|
-
rowContainerStyle: rowContainerStyle
|
|
14475
|
-
}));
|
|
14476
|
-
}))));
|
|
14477
|
-
})));
|
|
14478
|
-
}
|
|
14479
|
-
|
|
14480
14435
|
const ScruntinyDetails = ({
|
|
14481
14436
|
scrutinyDetails,
|
|
14482
14437
|
paymentsList: _paymentsList = []
|
|
@@ -16278,7 +16233,7 @@ function ApplicationDetailsContent({
|
|
|
16278
16233
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
16279
16234
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
16280
16235
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
16281
|
-
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9,
|
|
16236
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27;
|
|
16282
16237
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16283
16238
|
key: index
|
|
16284
16239
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16476,53 +16431,51 @@ function ApplicationDetailsContent({
|
|
|
16476
16431
|
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.fieldinspection_pending
|
|
16477
16432
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
|
|
16478
16433
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
16479
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.
|
|
16480
|
-
|
|
16481
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.
|
|
16482
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.
|
|
16483
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.
|
|
16484
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
|
|
16485
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
16434
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.units) && /*#__PURE__*/React.createElement(TLTradeUnits, {
|
|
16435
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units
|
|
16436
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.accessories) && /*#__PURE__*/React.createElement(TLTradeAccessories, {
|
|
16437
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories
|
|
16438
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React.createElement(PermissionCheck, {
|
|
16486
16439
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16487
16440
|
t: t,
|
|
16488
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16489
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16441
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions
|
|
16442
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.obpsDocuments) && /*#__PURE__*/React.createElement(BPADocuments, {
|
|
16490
16443
|
t: t,
|
|
16491
16444
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16492
16445
|
docs: detail.additionalDetails.obpsDocuments,
|
|
16493
16446
|
bpaActionsDetails: workflowDetails
|
|
16494
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16447
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.noc) && /*#__PURE__*/React.createElement(NOCDocuments, {
|
|
16495
16448
|
t: t,
|
|
16496
16449
|
isNoc: true,
|
|
16497
16450
|
NOCdata: detail.values,
|
|
16498
16451
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16499
16452
|
docs: detail.additionalDetails.noc,
|
|
16500
|
-
noc: (_detail$
|
|
16453
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
16501
16454
|
bpaActionsDetails: workflowDetails
|
|
16502
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16455
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
16503
16456
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
16504
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16457
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
16505
16458
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
16506
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16459
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
|
|
16507
16460
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
16508
16461
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
16509
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16510
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16511
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16512
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16513
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16514
|
-
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16462
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
|
|
16463
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl
|
|
16464
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React.createElement(PropertyDocuments, {
|
|
16465
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents
|
|
16466
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.taxHeadEstimatesCalculation) && /*#__PURE__*/React.createElement(PropertyEstimates, {
|
|
16467
|
+
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.taxHeadEstimatesCalculation
|
|
16515
16468
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
16516
16469
|
wsAdditionalDetails: detail,
|
|
16517
16470
|
oldValue: oldValue
|
|
16518
|
-
}), (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$
|
|
16519
|
-
to: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16471
|
+
}), (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$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
16472
|
+
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : (_detail$additionalDet23 = _detail$additionalDet22.redirectUrl) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.url
|
|
16520
16473
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16521
16474
|
className: "add-details-link hover-button"
|
|
16522
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16475
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
16523
16476
|
wsAdditionalDetails: detail,
|
|
16524
16477
|
workflowDetails: workflowDetails
|
|
16525
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16478
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
16526
16479
|
wsAdditionalDetails: detail,
|
|
16527
16480
|
workflowDetails: workflowDetails
|
|
16528
16481
|
}));
|
|
@@ -17132,7 +17085,7 @@ const ViewProperty = () => {
|
|
|
17132
17085
|
history.replace("/digit-ui/employee");
|
|
17133
17086
|
} else sessionStorage.removeItem("isCreateEnabledEmployee");
|
|
17134
17087
|
});
|
|
17135
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
17088
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ApplicationDetails, {
|
|
17136
17089
|
applicationDetails: applicationDetails,
|
|
17137
17090
|
isLoading: isLoading,
|
|
17138
17091
|
isDataLoading: isLoading,
|
|
@@ -17191,21 +17144,22 @@ const App = ({
|
|
|
17191
17144
|
style: {
|
|
17192
17145
|
width: "100%"
|
|
17193
17146
|
}
|
|
17194
|
-
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(
|
|
17147
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17195
17148
|
path: `${path}/search`,
|
|
17196
17149
|
component: SearchProperty$1
|
|
17197
|
-
}), /*#__PURE__*/React.createElement(
|
|
17150
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17198
17151
|
path: `${path}/property/citizen-search`,
|
|
17199
17152
|
component: SearchProperty$1
|
|
17153
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17154
|
+
path: `${path}/property/search-results`,
|
|
17155
|
+
component: props => /*#__PURE__*/React.createElement(SearchResultsComponent, Object.assign({}, props, {
|
|
17156
|
+
stateCode: stateCode
|
|
17157
|
+
}))
|
|
17200
17158
|
}), /*#__PURE__*/React.createElement(Route, {
|
|
17201
|
-
path: `${path}/property/search-results`
|
|
17202
|
-
}, /*#__PURE__*/React.createElement(SearchResultsComponent, {
|
|
17203
|
-
stateCode: stateCode
|
|
17204
|
-
})), /*#__PURE__*/React.createElement(Route, {
|
|
17205
17159
|
path: `${path}/property/citizen-otp`
|
|
17206
17160
|
}, /*#__PURE__*/React.createElement(CitizenOtp, {
|
|
17207
17161
|
stateCode: stateCode
|
|
17208
|
-
})
|
|
17162
|
+
})), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17209
17163
|
path: `${path}/property/link-success/:propertyIds`,
|
|
17210
17164
|
component: PropertyLinkSuccess
|
|
17211
17165
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
@@ -17213,7 +17167,7 @@ const App = ({
|
|
|
17213
17167
|
component: CreateProperty
|
|
17214
17168
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17215
17169
|
path: `${path}/view-property`,
|
|
17216
|
-
component:
|
|
17170
|
+
component: ViewProperty
|
|
17217
17171
|
})))))));
|
|
17218
17172
|
};
|
|
17219
17173
|
|
|
@@ -17238,8 +17192,14 @@ const NewApplication = ({
|
|
|
17238
17192
|
} = Digit.Hooks.pt.useMDMS(stateId, "PropertyTax", "CommonFieldsConfig");
|
|
17239
17193
|
const search = useLocation().search;
|
|
17240
17194
|
const redirectUrl = new URLSearchParams(search).get('redirectToUrl');
|
|
17241
|
-
const createProperty = async () => {
|
|
17242
|
-
history.push(
|
|
17195
|
+
const createProperty = async (key, data) => {
|
|
17196
|
+
history.push({
|
|
17197
|
+
pathname: `${match.path}/save-property`,
|
|
17198
|
+
search: search,
|
|
17199
|
+
state: {
|
|
17200
|
+
property: data === null || data === void 0 ? void 0 : data.property
|
|
17201
|
+
}
|
|
17202
|
+
});
|
|
17243
17203
|
};
|
|
17244
17204
|
const onSuccess = () => {
|
|
17245
17205
|
clearParams();
|
|
@@ -17252,7 +17212,7 @@ const NewApplication = ({
|
|
|
17252
17212
|
exact: true,
|
|
17253
17213
|
path: `${match.path}`
|
|
17254
17214
|
}, /*#__PURE__*/React.createElement(CreatePropertyForm, {
|
|
17255
|
-
|
|
17215
|
+
onSelect: createProperty,
|
|
17256
17216
|
value: params,
|
|
17257
17217
|
userType: "employee"
|
|
17258
17218
|
})), /*#__PURE__*/React.createElement(Route, {
|
|
@@ -17416,7 +17376,7 @@ const Search = ({
|
|
|
17416
17376
|
}
|
|
17417
17377
|
});
|
|
17418
17378
|
if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
|
|
17419
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
17379
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(SearchComponent, {
|
|
17420
17380
|
t: t,
|
|
17421
17381
|
payload: formData,
|
|
17422
17382
|
searchBy: searchBy,
|
|
@@ -17425,7 +17385,7 @@ const Search = ({
|
|
|
17425
17385
|
tenantId: tenantId,
|
|
17426
17386
|
onSubmit: onSubmit,
|
|
17427
17387
|
onReset: onReset
|
|
17428
|
-
}), Object.keys(payload).length > 0 && /*#__PURE__*/React.createElement(SearchResultComponent, {
|
|
17388
|
+
})), Object.keys(payload).length > 0 && /*#__PURE__*/React.createElement(SearchResultComponent, {
|
|
17429
17389
|
t: t,
|
|
17430
17390
|
showToast: showToast,
|
|
17431
17391
|
setShowToast: setShowToast,
|
|
@@ -17895,8 +17855,8 @@ const PropertyLocationDetails = ({
|
|
|
17895
17855
|
}
|
|
17896
17856
|
}, [showToast]);
|
|
17897
17857
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
17898
|
-
title: t("PT_LOCATION_DETAILS"),
|
|
17899
|
-
defaultOpen: true
|
|
17858
|
+
title: t("PT_LOCATION_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
|
|
17859
|
+
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true
|
|
17900
17860
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17901
17861
|
style: {
|
|
17902
17862
|
boxShadow: "none",
|
|
@@ -18582,8 +18542,8 @@ const PropertyWaterConnection = ({
|
|
|
18582
18542
|
marginTop: "-21px"
|
|
18583
18543
|
};
|
|
18584
18544
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
18585
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"),
|
|
18586
|
-
defaultOpen: true,
|
|
18545
|
+
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS") + (config !== null && config !== void 0 && config.isAutomaticFill ? " (Automatic Fill by Property )" : ""),
|
|
18546
|
+
defaultOpen: config !== null && config !== void 0 && config.isAutomaticFill ? false : true,
|
|
18587
18547
|
style: props.style
|
|
18588
18548
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18589
18549
|
className: "formcomposer-section-grid"
|
|
@@ -18775,17 +18735,34 @@ const PropertyWaterConnection = ({
|
|
|
18775
18735
|
|
|
18776
18736
|
const SwitchComponent = props => {
|
|
18777
18737
|
return /*#__PURE__*/React.createElement("div", {
|
|
18778
|
-
className: "
|
|
18779
|
-
|
|
18780
|
-
|
|
18781
|
-
|
|
18782
|
-
|
|
18783
|
-
|
|
18784
|
-
|
|
18785
|
-
props.onSwitch(key);
|
|
18786
|
-
props.onReset();
|
|
18738
|
+
className: "search-tabs-container PropertySearchFormSwitcher",
|
|
18739
|
+
style: {
|
|
18740
|
+
marginBottom: "16px",
|
|
18741
|
+
display: "flex",
|
|
18742
|
+
gap: "24px",
|
|
18743
|
+
justifyContent: "flex-start",
|
|
18744
|
+
borderBottom: "1px solid #ccc"
|
|
18787
18745
|
}
|
|
18788
|
-
}, props.
|
|
18746
|
+
}, props.keys.map(key => {
|
|
18747
|
+
const isSelected = props.searchBy === key;
|
|
18748
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
18749
|
+
key: key,
|
|
18750
|
+
className: `search-tab ${isSelected ? "active" : ""}`,
|
|
18751
|
+
style: {
|
|
18752
|
+
padding: "8px 16px",
|
|
18753
|
+
cursor: "pointer",
|
|
18754
|
+
borderBottom: isSelected ? "2px solid #f47738" : "2px solid transparent",
|
|
18755
|
+
color: isSelected ? "#f47738" : "#0b0c0c",
|
|
18756
|
+
fontWeight: isSelected ? "bold" : "normal"
|
|
18757
|
+
},
|
|
18758
|
+
onClick: () => {
|
|
18759
|
+
key === "searchDetail" && !sessionStorage.getItem("searchDetailValue") ? sessionStorage.setItem("searchDetailValue", 1) : "";
|
|
18760
|
+
key === "searchId" && sessionStorage.getItem("searchDetailValue") == 1 ? sessionStorage.setItem("searchDetailValue", 2) : "";
|
|
18761
|
+
props.onSwitch(key);
|
|
18762
|
+
props.onReset();
|
|
18763
|
+
}
|
|
18764
|
+
}, props.t(`PT_SEARCH_BY_${key === null || key === void 0 ? void 0 : key.toUpperCase()}`));
|
|
18765
|
+
}));
|
|
18789
18766
|
};
|
|
18790
18767
|
const SearchPTID = ({
|
|
18791
18768
|
tenantId,
|
|
@@ -18869,16 +18846,26 @@ const SearchPTID = ({
|
|
|
18869
18846
|
})), /*#__PURE__*/React.createElement("div", {
|
|
18870
18847
|
className: "formcomposer-section-button",
|
|
18871
18848
|
style: {
|
|
18872
|
-
marginTop: "16px"
|
|
18849
|
+
marginTop: "16px",
|
|
18850
|
+
display: "flex",
|
|
18851
|
+
justifyContent: "space-between",
|
|
18852
|
+
alignItems: "center",
|
|
18853
|
+
width: "100%"
|
|
18854
|
+
}
|
|
18855
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
18856
|
+
className: "pt-search-action-reset generic-button clear-search",
|
|
18857
|
+
style: {
|
|
18858
|
+
margin: 0
|
|
18873
18859
|
}
|
|
18874
|
-
}, /*#__PURE__*/React.createElement(SearchField, {
|
|
18875
|
-
className: "pt-search-action-reset generic-button clear-search"
|
|
18876
18860
|
}, /*#__PURE__*/React.createElement("p", {
|
|
18877
18861
|
onClick: () => {
|
|
18878
18862
|
onReset({});
|
|
18879
18863
|
}
|
|
18880
|
-
}, t(`
|
|
18881
|
-
className: "pt-search-action-submit submit-bar generic-button"
|
|
18864
|
+
}, t(`ES_COMMON_CLEAR_SEARCH`))), /*#__PURE__*/React.createElement("div", {
|
|
18865
|
+
className: "pt-search-action-submit submit-bar generic-button",
|
|
18866
|
+
style: {
|
|
18867
|
+
margin: 0
|
|
18868
|
+
}
|
|
18882
18869
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
18883
18870
|
label: t("ES_COMMON_SEARCH"),
|
|
18884
18871
|
submit: true
|
|
@@ -19303,7 +19290,7 @@ const PropertySearchNSummary = ({
|
|
|
19303
19290
|
formState,
|
|
19304
19291
|
clearErrors
|
|
19305
19292
|
}) => {
|
|
19306
|
-
var _formData$cptId, _formData$
|
|
19293
|
+
var _formData$cptId, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _formData$cpt, _formData$cpt3, _formData$cpt3$detail, _propertyDetails$Prop2, _formData$tradedetils, _formData$tradedetils2, _formData$tradedetils3, _activeProperty$owner, _activeProperty$owner2;
|
|
19307
19294
|
const {
|
|
19308
19295
|
t
|
|
19309
19296
|
} = useTranslation();
|
|
@@ -19321,33 +19308,40 @@ const PropertySearchNSummary = ({
|
|
|
19321
19308
|
const urlPropertyId = new URLSearchParams(search).get("propertyId");
|
|
19322
19309
|
const [propertyId, setPropertyId] = useState((formData === null || formData === void 0 ? void 0 : (_formData$cptId = formData.cptId) === null || _formData$cptId === void 0 ? void 0 : _formData$cptId.id) || (urlPropertyId !== "null" ? urlPropertyId : "") || "");
|
|
19323
19310
|
const [searchPropertyId, setSearchPropertyId] = useState(urlPropertyId !== "null" ? urlPropertyId : "");
|
|
19311
|
+
const [mobileNumber, setMobileNumber] = useState("");
|
|
19312
|
+
const [searchMobileNumber, setSearchMobileNumber] = useState("");
|
|
19324
19313
|
const [showToast, setShowToast] = useState(null);
|
|
19325
19314
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
19326
|
-
const
|
|
19315
|
+
const userMobileNumber = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.mobileNumber;
|
|
19316
|
+
const isCitizen = ((_Digit$UserService$ge3 = Digit.UserService.getUser()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.info) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.type) === "CITIZEN";
|
|
19317
|
+
const isWsApplication = window.location.href.includes("/ws/");
|
|
19318
|
+
const [selectedProperty, setSelectedProperty] = useState((formData === null || formData === void 0 ? void 0 : (_formData$cpt = formData.cpt) === null || _formData$cpt === void 0 ? void 0 : _formData$cpt.details) || null);
|
|
19319
|
+
const searchFilters = isCitizen && isWsApplication ? {
|
|
19320
|
+
mobileNumber: userMobileNumber
|
|
19321
|
+
} : searchMobileNumber ? {
|
|
19322
|
+
mobileNumber: searchMobileNumber
|
|
19323
|
+
} : {
|
|
19324
|
+
propertyIds: searchPropertyId
|
|
19325
|
+
};
|
|
19327
19326
|
const {
|
|
19328
19327
|
isLoading,
|
|
19329
19328
|
isError,
|
|
19330
19329
|
error,
|
|
19331
19330
|
data: propertyDetails
|
|
19332
19331
|
} = Digit.Hooks.pt.usePropertySearch({
|
|
19333
|
-
filters:
|
|
19334
|
-
propertyIds: searchPropertyId
|
|
19335
|
-
},
|
|
19332
|
+
filters: searchFilters,
|
|
19336
19333
|
tenantId: tenantId
|
|
19337
19334
|
}, {
|
|
19338
|
-
filters:
|
|
19339
|
-
propertyIds: searchPropertyId
|
|
19340
|
-
},
|
|
19335
|
+
filters: searchFilters,
|
|
19341
19336
|
tenantId: tenantId,
|
|
19342
|
-
enabled: searchPropertyId ? true : false,
|
|
19337
|
+
enabled: isCitizen && isWsApplication && userMobileNumber || !isCitizen && (searchPropertyId || searchMobileNumber) || isCitizen && !isWsApplication && (searchPropertyId || searchMobileNumber) ? true : false,
|
|
19343
19338
|
privacy: Digit.Utils.getPrivacyObject()
|
|
19344
19339
|
});
|
|
19345
19340
|
useEffect(() => {
|
|
19346
19341
|
if (propertyId && (window.location.href.includes("/renew-application-details/") || window.location.href.includes("/edit-application-details/"))) setSearchPropertyId(propertyId);
|
|
19347
19342
|
}, [propertyId]);
|
|
19348
19343
|
useEffect(() => {
|
|
19349
|
-
|
|
19350
|
-
if (isLoading == false && error && error == true || (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop.length) == 0) {
|
|
19344
|
+
if (isLoading == false && error && error == true) {
|
|
19351
19345
|
setShowToast({
|
|
19352
19346
|
error: true,
|
|
19353
19347
|
label: "PT_ENTER_VALID_PROPERTY_ID"
|
|
@@ -19355,53 +19349,48 @@ const PropertySearchNSummary = ({
|
|
|
19355
19349
|
}
|
|
19356
19350
|
}, [error, propertyDetails]);
|
|
19357
19351
|
useEffect(() => {
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19352
|
+
var _formData$cpt2, _formData$cpt2$detail, _propertyDetails$Prop;
|
|
19353
|
+
const currentCptId = formData === null || formData === void 0 ? void 0 : (_formData$cpt2 = formData.cpt) === null || _formData$cpt2 === void 0 ? void 0 : (_formData$cpt2$detail = _formData$cpt2.details) === null || _formData$cpt2$detail === void 0 ? void 0 : _formData$cpt2$detail.propertyId;
|
|
19354
|
+
if ((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop.length) > 0) {
|
|
19355
|
+
if (urlPropertyId && (!selectedProperty || selectedProperty.propertyId !== urlPropertyId)) {
|
|
19356
|
+
const matchingProp = propertyDetails.Properties.find(p => p.propertyId === urlPropertyId);
|
|
19357
|
+
if (matchingProp) {
|
|
19358
|
+
setSelectedProperty(matchingProp);
|
|
19359
|
+
if (currentCptId !== urlPropertyId) {
|
|
19360
|
+
onSelect("cpt", {
|
|
19361
|
+
details: matchingProp
|
|
19362
|
+
});
|
|
19363
|
+
sessionStorage.setItem("Digit_FSM_PT", JSON.stringify(matchingProp));
|
|
19364
|
+
localStorage.setItem("pgrProperty", JSON.stringify(matchingProp));
|
|
19365
|
+
}
|
|
19366
|
+
return;
|
|
19367
|
+
}
|
|
19368
|
+
}
|
|
19369
|
+
if (propertyDetails.Properties.length === 1 && !selectedProperty) {
|
|
19370
|
+
const fetchedId = propertyDetails.Properties[0].propertyId;
|
|
19371
|
+
setSelectedProperty(propertyDetails.Properties[0]);
|
|
19372
|
+
if (currentCptId !== fetchedId) {
|
|
19373
|
+
onSelect("cpt", {
|
|
19374
|
+
details: propertyDetails.Properties[0]
|
|
19375
|
+
});
|
|
19376
|
+
sessionStorage.setItem("Digit_FSM_PT", JSON.stringify(propertyDetails.Properties[0]));
|
|
19377
|
+
localStorage.setItem("pgrProperty", JSON.stringify(propertyDetails.Properties[0]));
|
|
19378
|
+
}
|
|
19379
|
+
}
|
|
19370
19380
|
}
|
|
19371
|
-
|
|
19372
|
-
if (window.location.pathname.includes("/tl/new-application")) {
|
|
19373
|
-
history.push(`/digit-ui/employee/tl/new-application?propertyId=${propertyId}`);
|
|
19374
|
-
const scrollConst = 1600;
|
|
19375
|
-
setTimeout(() => window.scrollTo(0, scrollConst), 0);
|
|
19376
|
-
} else if (window.location.pathname.includes("/ws/new-application")) history.push(`/digit-ui/employee/ws/new-application?propertyId=${propertyId}`);
|
|
19377
|
-
};
|
|
19378
|
-
const clearSearch = () => {
|
|
19379
|
-
setPropertyId("");
|
|
19380
|
-
setSearchPropertyId("");
|
|
19381
|
-
onSelect(config === null || config === void 0 ? void 0 : config.key, {
|
|
19382
|
-
id: ""
|
|
19383
|
-
});
|
|
19384
|
-
onSelect("cpt", null);
|
|
19385
|
-
};
|
|
19381
|
+
}, [propertyDetails, pathname, isCitizen, isWsApplication, formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.propertyId, urlPropertyId, selectedProperty]);
|
|
19386
19382
|
if (isEditScreen) {
|
|
19387
19383
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
19388
19384
|
}
|
|
19389
19385
|
let propertyAddress = "";
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
propertyAddress = getAddress(
|
|
19386
|
+
const activeProperty = selectedProperty ? selectedProperty : (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : _propertyDetails$Prop2.length) === 1 ? propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.Properties[0] : null;
|
|
19387
|
+
if (activeProperty) {
|
|
19388
|
+
propertyAddress = getAddress(activeProperty === null || activeProperty === void 0 ? void 0 : activeProperty.address, t);
|
|
19393
19389
|
}
|
|
19394
|
-
const getInputStyles = () => {
|
|
19395
|
-
if (window.location.href.includes("/ws/")) {
|
|
19396
|
-
return {
|
|
19397
|
-
fontWeight: "700"
|
|
19398
|
-
};
|
|
19399
|
-
} else return {};
|
|
19400
|
-
};
|
|
19401
19390
|
const getOwnerNames = propertyData => {
|
|
19402
19391
|
var _propertyData$owners, _getActiveOwners$sort, _getActiveOwners$sort2;
|
|
19403
19392
|
const getActiveOwners = propertyData === null || propertyData === void 0 ? void 0 : (_propertyData$owners = propertyData.owners) === null || _propertyData$owners === void 0 ? void 0 : _propertyData$owners.filter(owner => owner === null || owner === void 0 ? void 0 : owner.active);
|
|
19404
|
-
const getOwnersList = (_getActiveOwners$sort = getActiveOwners.sort((a, b) => {
|
|
19393
|
+
const getOwnersList = getActiveOwners === null || getActiveOwners === void 0 ? void 0 : (_getActiveOwners$sort = getActiveOwners.sort((a, b) => {
|
|
19405
19394
|
var _a$additionalDetails, _b$additionalDetails;
|
|
19406
19395
|
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
19407
19396
|
})) === null || _getActiveOwners$sort === void 0 ? void 0 : (_getActiveOwners$sort2 = _getActiveOwners$sort.map(activeOwner => activeOwner === null || activeOwner === void 0 ? void 0 : activeOwner.name)) === null || _getActiveOwners$sort2 === void 0 ? void 0 : _getActiveOwners$sort2.join(",");
|
|
@@ -19411,57 +19400,9 @@ const PropertySearchNSummary = ({
|
|
|
19411
19400
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
19412
19401
|
title: t("PT_PROPERTY_SEARCH"),
|
|
19413
19402
|
defaultOpen: true
|
|
19414
|
-
}, (window.location.href.includes("/tl/") ? !((formData === null || formData === void 0 ? void 0 : (_formData$tradedetils = formData.tradedetils) === null || _formData$tradedetils === void 0 ? void 0 : (_formData$tradedetils2 = _formData$tradedetils[0]) === null || _formData$tradedetils2 === void 0 ? void 0 : (_formData$tradedetils3 = _formData$tradedetils2.structureType) === null || _formData$tradedetils3 === void 0 ? void 0 : _formData$tradedetils3.code) === "MOVABLE") && (isEmpNewApplication || isEmpRenewLicense) : true) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
19415
|
-
style: getInputStyles()
|
|
19416
|
-
}, `${t(`PROPERTY_ID`)}`), /*#__PURE__*/React.createElement("div", {
|
|
19417
|
-
style: {
|
|
19418
|
-
display: "flex",
|
|
19419
|
-
gap: "12px"
|
|
19420
|
-
}
|
|
19421
|
-
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19422
|
-
key: config === null || config === void 0 ? void 0 : config.key,
|
|
19423
|
-
value: propertyId,
|
|
19424
|
-
onChange: e => {
|
|
19425
|
-
setPropertyId(e.target.value);
|
|
19426
|
-
onSelect(config === null || config === void 0 ? void 0 : config.key, {
|
|
19427
|
-
id: e.target.value
|
|
19428
|
-
});
|
|
19429
|
-
},
|
|
19430
|
-
style: {
|
|
19431
|
-
width: "80%",
|
|
19432
|
-
float: "left"
|
|
19433
|
-
},
|
|
19434
|
-
placeholder: `${t("PT_ENTER_PROPERTY_ID")}`
|
|
19435
|
-
}), /*#__PURE__*/React.createElement("button", {
|
|
19436
|
-
className: "submit-bar",
|
|
19437
|
-
type: "button",
|
|
19438
|
-
style: {
|
|
19439
|
-
color: "white"
|
|
19440
|
-
},
|
|
19441
|
-
onClick: searchProperty
|
|
19442
|
-
}, `${t("PT_SEARCH")}`), /*#__PURE__*/React.createElement("button", {
|
|
19443
|
-
className: "submit-bar",
|
|
19444
|
-
type: "button",
|
|
19445
|
-
style: {
|
|
19446
|
-
color: "white"
|
|
19447
|
-
},
|
|
19448
|
-
onClick: clearSearch
|
|
19449
|
-
}, `${t("CLEAR")}`), /*#__PURE__*/React.createElement("span", {
|
|
19450
|
-
onClick: () => history.push(`/digit-ui/${userType}/${pathname.split("/")[3]}/create-application/create-property`, {
|
|
19451
|
-
...state,
|
|
19452
|
-
...formData
|
|
19453
|
-
})
|
|
19454
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19455
|
-
className: "submit-bar",
|
|
19456
|
-
type: "button",
|
|
19457
|
-
style: {
|
|
19458
|
-
color: "white"
|
|
19459
|
-
}
|
|
19460
|
-
}, t("CPT_CREATE_PROPERTY"))))), searchPropertyId && propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
|
|
19403
|
+
}, (window.location.href.includes("/tl/") ? !((formData === null || formData === void 0 ? void 0 : (_formData$tradedetils = formData.tradedetils) === null || _formData$tradedetils === void 0 ? void 0 : (_formData$tradedetils2 = _formData$tradedetils[0]) === null || _formData$tradedetils2 === void 0 ? void 0 : (_formData$tradedetils3 = _formData$tradedetils2.structureType) === null || _formData$tradedetils3 === void 0 ? void 0 : _formData$tradedetils3.code) === "MOVABLE") && (isEmpNewApplication || isEmpRenewLicense) : true) && /*#__PURE__*/React.createElement(React.Fragment, null, activeProperty ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
|
|
19461
19404
|
className: "card-with-background",
|
|
19462
19405
|
style: {
|
|
19463
|
-
margin: "16px 0px",
|
|
19464
|
-
padding: "20px",
|
|
19465
19406
|
boxShadow: "none"
|
|
19466
19407
|
}
|
|
19467
19408
|
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
@@ -19485,7 +19426,7 @@ const PropertySearchNSummary = ({
|
|
|
19485
19426
|
color: "#000"
|
|
19486
19427
|
},
|
|
19487
19428
|
label: t(`PROPERTY_ID`),
|
|
19488
|
-
text:
|
|
19429
|
+
text: activeProperty === null || activeProperty === void 0 ? void 0 : activeProperty.propertyId
|
|
19489
19430
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19490
19431
|
className: "border-none",
|
|
19491
19432
|
labelStyle: isMobile ? {
|
|
@@ -19499,7 +19440,7 @@ const PropertySearchNSummary = ({
|
|
|
19499
19440
|
color: "#000"
|
|
19500
19441
|
},
|
|
19501
19442
|
label: t(`OWNER_NAME`),
|
|
19502
|
-
text: getOwnerNames(
|
|
19443
|
+
text: getOwnerNames(activeProperty)
|
|
19503
19444
|
}), /*#__PURE__*/React.createElement(Row, {
|
|
19504
19445
|
className: "border-none",
|
|
19505
19446
|
labelStyle: isMobile ? {
|
|
@@ -19516,7 +19457,7 @@ const PropertySearchNSummary = ({
|
|
|
19516
19457
|
label: t(`PROPERTY_ADDRESS`),
|
|
19517
19458
|
text: propertyAddress,
|
|
19518
19459
|
privacy: {
|
|
19519
|
-
uuid:
|
|
19460
|
+
uuid: activeProperty === null || activeProperty === void 0 ? void 0 : (_activeProperty$owner = activeProperty.owners) === null || _activeProperty$owner === void 0 ? void 0 : (_activeProperty$owner2 = _activeProperty$owner[0]) === null || _activeProperty$owner2 === void 0 ? void 0 : _activeProperty$owner2.uuid,
|
|
19520
19461
|
fieldName: ["doorNo", "street", "landmark"],
|
|
19521
19462
|
model: "Property",
|
|
19522
19463
|
showValue: true,
|
|
@@ -19524,8 +19465,8 @@ const PropertySearchNSummary = ({
|
|
|
19524
19465
|
serviceName: "/property-services/property/_search",
|
|
19525
19466
|
requestBody: {},
|
|
19526
19467
|
requestParam: {
|
|
19527
|
-
tenantId:
|
|
19528
|
-
propertyIds:
|
|
19468
|
+
tenantId: activeProperty === null || activeProperty === void 0 ? void 0 : activeProperty.tenantId,
|
|
19469
|
+
propertyIds: activeProperty === null || activeProperty === void 0 ? void 0 : activeProperty.propertyId
|
|
19529
19470
|
},
|
|
19530
19471
|
jsonPath: "Properties[0].address.street",
|
|
19531
19472
|
d: res => {
|