@djb25/digit-ui-module-commonpt 1.0.13 → 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 +93 -342
- 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, 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,
|
|
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,
|
|
@@ -6631,11 +6630,13 @@ const CreateProperty = ({
|
|
|
6631
6630
|
return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(Route, {
|
|
6632
6631
|
exact: true,
|
|
6633
6632
|
path: `${match.path}`
|
|
6633
|
+
}, /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
6634
|
+
layoutClass: "action"
|
|
6634
6635
|
}, /*#__PURE__*/React.createElement(CreatePropertyForm, {
|
|
6635
6636
|
onSelect: createProperty,
|
|
6636
6637
|
value: params,
|
|
6637
6638
|
userType: "citizen"
|
|
6638
|
-
})), /*#__PURE__*/React.createElement(Route, {
|
|
6639
|
+
}))), /*#__PURE__*/React.createElement(Route, {
|
|
6639
6640
|
exact: true,
|
|
6640
6641
|
path: `${match.path}/save-property`
|
|
6641
6642
|
}, /*#__PURE__*/React.createElement(PTAcknowledgement, {
|
|
@@ -7868,7 +7869,16 @@ const PropertySearchResults = ({
|
|
|
7868
7869
|
columns: [{
|
|
7869
7870
|
Header: t("PT_PROPERTY_PTUID"),
|
|
7870
7871
|
disableSortBy: true,
|
|
7871
|
-
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
|
+
}
|
|
7872
7882
|
}, {
|
|
7873
7883
|
Header: t("PT_OWNER_NAME"),
|
|
7874
7884
|
disableSortBy: true,
|
|
@@ -14422,131 +14432,6 @@ function PropertyFloors({
|
|
|
14422
14432
|
}));
|
|
14423
14433
|
}
|
|
14424
14434
|
|
|
14425
|
-
function PropertyOwners({
|
|
14426
|
-
owners
|
|
14427
|
-
}) {
|
|
14428
|
-
let ownerSequences = {};
|
|
14429
|
-
if (window.location.href.includes("/employee/pt/")) {
|
|
14430
|
-
ownerSequences = owners.slice().reverse();
|
|
14431
|
-
} else {
|
|
14432
|
-
ownerSequences = owners;
|
|
14433
|
-
}
|
|
14434
|
-
const {
|
|
14435
|
-
t
|
|
14436
|
-
} = useTranslation();
|
|
14437
|
-
const checkOwnerLength = (owners === null || owners === void 0 ? void 0 : owners.length) || 1;
|
|
14438
|
-
let cardStyles = {
|
|
14439
|
-
marginTop: "19px"
|
|
14440
|
-
};
|
|
14441
|
-
let statusTableStyles = {
|
|
14442
|
-
position: "relative",
|
|
14443
|
-
padding: "8px"
|
|
14444
|
-
};
|
|
14445
|
-
let rowContainerStyle = {
|
|
14446
|
-
justifyContent: "space-between",
|
|
14447
|
-
fontSize: "16px",
|
|
14448
|
-
lineHeight: "19px",
|
|
14449
|
-
color: "#0B0C0C"
|
|
14450
|
-
};
|
|
14451
|
-
if ( Number(checkOwnerLength) > 1) {
|
|
14452
|
-
cardStyles = {
|
|
14453
|
-
marginTop: "19px",
|
|
14454
|
-
background: "#FAFAFA",
|
|
14455
|
-
border: "1px solid #D6D5D4",
|
|
14456
|
-
borderRadius: "4px",
|
|
14457
|
-
padding: "8px",
|
|
14458
|
-
lineHeight: "19px",
|
|
14459
|
-
maxWidth: "600px",
|
|
14460
|
-
minWidth: "280px"
|
|
14461
|
-
};
|
|
14462
|
-
} else if ( !(Number(checkOwnerLength) > 1)) {
|
|
14463
|
-
cardStyles = {
|
|
14464
|
-
marginTop: "19px",
|
|
14465
|
-
lineHeight: "19px",
|
|
14466
|
-
maxWidth: "600px",
|
|
14467
|
-
minWidth: "280px"
|
|
14468
|
-
};
|
|
14469
|
-
statusTableStyles = {
|
|
14470
|
-
position: "relative",
|
|
14471
|
-
marginTop: "19px"
|
|
14472
|
-
};
|
|
14473
|
-
}
|
|
14474
|
-
if (window.location.href.includes("obps")) {
|
|
14475
|
-
cardStyles = {
|
|
14476
|
-
...cardStyles,
|
|
14477
|
-
maxWidth: "950px"
|
|
14478
|
-
};
|
|
14479
|
-
cardStyles = {
|
|
14480
|
-
...cardStyles,
|
|
14481
|
-
maxWidth: "950px"
|
|
14482
|
-
};
|
|
14483
|
-
rowContainerStyle = {};
|
|
14484
|
-
}
|
|
14485
|
-
let owners1 = owners.sort((item, item2) => {
|
|
14486
|
-
var _item$additionalDetai, _item2$additionalDeta;
|
|
14487
|
-
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);
|
|
14488
|
-
});
|
|
14489
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14490
|
-
className: "owner-details"
|
|
14491
|
-
}, ownerSequences.map((owner, index) => {
|
|
14492
|
-
var _owner$values;
|
|
14493
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
14494
|
-
key: t(owner === null || owner === void 0 ? void 0 : owner.title),
|
|
14495
|
-
style: cardStyles,
|
|
14496
|
-
className: "owner-details-child"
|
|
14497
|
-
}, /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
14498
|
-
style: Number(checkOwnerLength) > 1 ? {
|
|
14499
|
-
marginBottom: "8px",
|
|
14500
|
-
paddingBottom: "9px",
|
|
14501
|
-
color: "#0B0C0C",
|
|
14502
|
-
fontSize: "16px",
|
|
14503
|
-
lineHeight: "19px"
|
|
14504
|
-
} : {
|
|
14505
|
-
marginBottom: "8px",
|
|
14506
|
-
color: "#505A5F",
|
|
14507
|
-
fontSize: "24px"
|
|
14508
|
-
}
|
|
14509
|
-
}, 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, {
|
|
14510
|
-
key: index
|
|
14511
|
-
}, /*#__PURE__*/React.createElement(StatusTable, {
|
|
14512
|
-
style: statusTableStyles
|
|
14513
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
14514
|
-
style: {
|
|
14515
|
-
maxWidth: "640px",
|
|
14516
|
-
top: 0,
|
|
14517
|
-
left: 0,
|
|
14518
|
-
bottom: 0,
|
|
14519
|
-
right: 0,
|
|
14520
|
-
width: "auto"
|
|
14521
|
-
}
|
|
14522
|
-
}), owner === null || owner === void 0 ? void 0 : (_owner$values = owner.values) === null || _owner$values === void 0 ? void 0 : _owner$values.map((value, index) => {
|
|
14523
|
-
var _value$values;
|
|
14524
|
-
if (value.map === true && value.value !== "N/A") {
|
|
14525
|
-
return /*#__PURE__*/React.createElement(Row, {
|
|
14526
|
-
key: t(value.title),
|
|
14527
|
-
label: t(value.title),
|
|
14528
|
-
text: /*#__PURE__*/React.createElement("img", {
|
|
14529
|
-
src: t(value.value),
|
|
14530
|
-
alt: "",
|
|
14531
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy
|
|
14532
|
-
})
|
|
14533
|
-
});
|
|
14534
|
-
}
|
|
14535
|
-
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Row, {
|
|
14536
|
-
key: t(value.title),
|
|
14537
|
-
label: `${t(value.title)}`,
|
|
14538
|
-
text: t(value.value) || "N/A",
|
|
14539
|
-
last: index === (value === null || value === void 0 ? void 0 : (_value$values = value.values) === null || _value$values === void 0 ? void 0 : _value$values.length) - 1,
|
|
14540
|
-
caption: value.caption,
|
|
14541
|
-
className: "border-none",
|
|
14542
|
-
textStyle: value.textStyle,
|
|
14543
|
-
privacy: value === null || value === void 0 ? void 0 : value.privacy,
|
|
14544
|
-
rowContainerStyle: rowContainerStyle
|
|
14545
|
-
}));
|
|
14546
|
-
}))));
|
|
14547
|
-
})));
|
|
14548
|
-
}
|
|
14549
|
-
|
|
14550
14435
|
const ScruntinyDetails = ({
|
|
14551
14436
|
scrutinyDetails,
|
|
14552
14437
|
paymentsList: _paymentsList = []
|
|
@@ -16348,7 +16233,7 @@ function ApplicationDetailsContent({
|
|
|
16348
16233
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
16349
16234
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
16350
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) => {
|
|
16351
|
-
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;
|
|
16352
16237
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16353
16238
|
key: index
|
|
16354
16239
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16546,53 +16431,51 @@ function ApplicationDetailsContent({
|
|
|
16546
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
|
|
16547
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, {
|
|
16548
16433
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
16549
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.
|
|
16550
|
-
|
|
16551
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.
|
|
16552
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.
|
|
16553
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.
|
|
16554
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.accessories
|
|
16555
|
-
}), (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, {
|
|
16556
16439
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16557
16440
|
t: t,
|
|
16558
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16559
|
-
}), (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, {
|
|
16560
16443
|
t: t,
|
|
16561
16444
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16562
16445
|
docs: detail.additionalDetails.obpsDocuments,
|
|
16563
16446
|
bpaActionsDetails: workflowDetails
|
|
16564
|
-
}), (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, {
|
|
16565
16448
|
t: t,
|
|
16566
16449
|
isNoc: true,
|
|
16567
16450
|
NOCdata: detail.values,
|
|
16568
16451
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
16569
16452
|
docs: detail.additionalDetails.noc,
|
|
16570
|
-
noc: (_detail$
|
|
16453
|
+
noc: (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.data,
|
|
16571
16454
|
bpaActionsDetails: workflowDetails
|
|
16572
|
-
}), (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, {
|
|
16573
16456
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
16574
|
-
}), (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, {
|
|
16575
16458
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
16576
|
-
}), (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, {
|
|
16577
16460
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
16578
16461
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
16579
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16580
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16581
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16582
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16583
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
16584
|
-
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
|
|
16585
16468
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
16586
16469
|
wsAdditionalDetails: detail,
|
|
16587
16470
|
oldValue: oldValue
|
|
16588
|
-
}), (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$
|
|
16589
|
-
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
|
|
16590
16473
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16591
16474
|
className: "add-details-link hover-button"
|
|
16592
|
-
}, 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, {
|
|
16593
16476
|
wsAdditionalDetails: detail,
|
|
16594
16477
|
workflowDetails: workflowDetails
|
|
16595
|
-
}), (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, {
|
|
16596
16479
|
wsAdditionalDetails: detail,
|
|
16597
16480
|
workflowDetails: workflowDetails
|
|
16598
16481
|
}));
|
|
@@ -17202,7 +17085,7 @@ const ViewProperty = () => {
|
|
|
17202
17085
|
history.replace("/digit-ui/employee");
|
|
17203
17086
|
} else sessionStorage.removeItem("isCreateEnabledEmployee");
|
|
17204
17087
|
});
|
|
17205
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(
|
|
17088
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ApplicationDetails, {
|
|
17206
17089
|
applicationDetails: applicationDetails,
|
|
17207
17090
|
isLoading: isLoading,
|
|
17208
17091
|
isDataLoading: isLoading,
|
|
@@ -17261,21 +17144,22 @@ const App = ({
|
|
|
17261
17144
|
style: {
|
|
17262
17145
|
width: "100%"
|
|
17263
17146
|
}
|
|
17264
|
-
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(
|
|
17147
|
+
}, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17265
17148
|
path: `${path}/search`,
|
|
17266
17149
|
component: SearchProperty$1
|
|
17267
|
-
}), /*#__PURE__*/React.createElement(
|
|
17150
|
+
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17268
17151
|
path: `${path}/property/citizen-search`,
|
|
17269
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
|
+
}))
|
|
17270
17158
|
}), /*#__PURE__*/React.createElement(Route, {
|
|
17271
|
-
path: `${path}/property/search-results`
|
|
17272
|
-
}, /*#__PURE__*/React.createElement(SearchResultsComponent, {
|
|
17273
|
-
stateCode: stateCode
|
|
17274
|
-
})), /*#__PURE__*/React.createElement(Route, {
|
|
17275
17159
|
path: `${path}/property/citizen-otp`
|
|
17276
17160
|
}, /*#__PURE__*/React.createElement(CitizenOtp, {
|
|
17277
17161
|
stateCode: stateCode
|
|
17278
|
-
})
|
|
17162
|
+
})), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17279
17163
|
path: `${path}/property/link-success/:propertyIds`,
|
|
17280
17164
|
component: PropertyLinkSuccess
|
|
17281
17165
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
@@ -17283,7 +17167,7 @@ const App = ({
|
|
|
17283
17167
|
component: CreateProperty
|
|
17284
17168
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
17285
17169
|
path: `${path}/view-property`,
|
|
17286
|
-
component:
|
|
17170
|
+
component: ViewProperty
|
|
17287
17171
|
})))))));
|
|
17288
17172
|
};
|
|
17289
17173
|
|
|
@@ -17971,8 +17855,8 @@ const PropertyLocationDetails = ({
|
|
|
17971
17855
|
}
|
|
17972
17856
|
}, [showToast]);
|
|
17973
17857
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
17974
|
-
title: t("PT_LOCATION_DETAILS"),
|
|
17975
|
-
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
|
|
17976
17860
|
}, /*#__PURE__*/React.createElement("div", {
|
|
17977
17861
|
style: {
|
|
17978
17862
|
boxShadow: "none",
|
|
@@ -18658,8 +18542,8 @@ const PropertyWaterConnection = ({
|
|
|
18658
18542
|
marginTop: "-21px"
|
|
18659
18543
|
};
|
|
18660
18544
|
return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
18661
|
-
title: t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS"),
|
|
18662
|
-
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,
|
|
18663
18547
|
style: props.style
|
|
18664
18548
|
}, /*#__PURE__*/React.createElement("div", {
|
|
18665
18549
|
className: "formcomposer-section-grid"
|
|
@@ -19406,7 +19290,7 @@ const PropertySearchNSummary = ({
|
|
|
19406
19290
|
formState,
|
|
19407
19291
|
clearErrors
|
|
19408
19292
|
}) => {
|
|
19409
|
-
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,
|
|
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;
|
|
19410
19294
|
const {
|
|
19411
19295
|
t
|
|
19412
19296
|
} = useTranslation();
|
|
@@ -19468,6 +19352,20 @@ const PropertySearchNSummary = ({
|
|
|
19468
19352
|
var _formData$cpt2, _formData$cpt2$detail, _propertyDetails$Prop;
|
|
19469
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;
|
|
19470
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
|
+
}
|
|
19471
19369
|
if (propertyDetails.Properties.length === 1 && !selectedProperty) {
|
|
19472
19370
|
const fetchedId = propertyDetails.Properties[0].propertyId;
|
|
19473
19371
|
setSelectedProperty(propertyDetails.Properties[0]);
|
|
@@ -19480,18 +19378,7 @@ const PropertySearchNSummary = ({
|
|
|
19480
19378
|
}
|
|
19481
19379
|
}
|
|
19482
19380
|
}
|
|
19483
|
-
}, [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]);
|
|
19484
|
-
const clearSearch = () => {
|
|
19485
|
-
setPropertyId("");
|
|
19486
|
-
setSearchPropertyId("");
|
|
19487
|
-
setMobileNumber("");
|
|
19488
|
-
setSearchMobileNumber("");
|
|
19489
|
-
setSelectedProperty(null);
|
|
19490
|
-
onSelect(config === null || config === void 0 ? void 0 : config.key, {
|
|
19491
|
-
id: ""
|
|
19492
|
-
});
|
|
19493
|
-
onSelect("cpt", null);
|
|
19494
|
-
};
|
|
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]);
|
|
19495
19382
|
if (isEditScreen) {
|
|
19496
19383
|
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
19497
19384
|
}
|
|
@@ -19500,13 +19387,6 @@ const PropertySearchNSummary = ({
|
|
|
19500
19387
|
if (activeProperty) {
|
|
19501
19388
|
propertyAddress = getAddress(activeProperty === null || activeProperty === void 0 ? void 0 : activeProperty.address, t);
|
|
19502
19389
|
}
|
|
19503
|
-
const getInputStyles = () => {
|
|
19504
|
-
if (window.location.href.includes("/ws/")) {
|
|
19505
|
-
return {
|
|
19506
|
-
fontWeight: "700"
|
|
19507
|
-
};
|
|
19508
|
-
} else return {};
|
|
19509
|
-
};
|
|
19510
19390
|
const getOwnerNames = propertyData => {
|
|
19511
19391
|
var _propertyData$owners, _getActiveOwners$sort, _getActiveOwners$sort2;
|
|
19512
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);
|
|
@@ -19517,141 +19397,12 @@ const PropertySearchNSummary = ({
|
|
|
19517
19397
|
return getOwnersList ? getOwnersList : t("NA");
|
|
19518
19398
|
};
|
|
19519
19399
|
if (window.location.href.includes("/ws/")) ;
|
|
19520
|
-
const onPropertySelect = property => {
|
|
19521
|
-
setSelectedProperty(property);
|
|
19522
|
-
onSelect("cpt", {
|
|
19523
|
-
details: property
|
|
19524
|
-
});
|
|
19525
|
-
sessionStorage.setItem("Digit_FSM_PT", JSON.stringify(property));
|
|
19526
|
-
localStorage.setItem("pgrProperty", JSON.stringify(property));
|
|
19527
|
-
};
|
|
19528
19400
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CollapsibleCardPage, {
|
|
19529
19401
|
title: t("PT_PROPERTY_SEARCH"),
|
|
19530
19402
|
defaultOpen: true
|
|
19531
|
-
}, (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,
|
|
19532
|
-
className: "formcomposer-section-grid",
|
|
19533
|
-
style: isMobile ? {} : {}
|
|
19534
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
19535
|
-
style: {
|
|
19536
|
-
marginBottom: "16px"
|
|
19537
|
-
}
|
|
19538
|
-
}, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(Label, {
|
|
19539
|
-
style: getInputStyles()
|
|
19540
|
-
}, `${t("PROPERTY_ID")}`), /*#__PURE__*/React.createElement("div", {
|
|
19541
|
-
style: {
|
|
19542
|
-
display: "flex",
|
|
19543
|
-
gap: "12px",
|
|
19544
|
-
width: "100%",
|
|
19545
|
-
flexDirection: "column"
|
|
19546
|
-
}
|
|
19547
|
-
}, isLoading ? /*#__PURE__*/React.createElement("div", null, t("CS_COMMON_LOADING")) : propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties && (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop3 = propertyDetails.Properties) === null || _propertyDetails$Prop3 === void 0 ? void 0 : _propertyDetails$Prop3.length) > 0 ? /*#__PURE__*/React.createElement(Dropdown, {
|
|
19548
|
-
option: propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.Properties,
|
|
19549
|
-
optionKey: "propertyId",
|
|
19550
|
-
id: "propertyId",
|
|
19551
|
-
selected: selectedProperty,
|
|
19552
|
-
select: onPropertySelect,
|
|
19553
|
-
t: t,
|
|
19554
|
-
placeholder: t("PT_SELECT_PROPERTY")
|
|
19555
|
-
}) : /*#__PURE__*/React.createElement("span", {
|
|
19556
|
-
onClick: () => history.push(`/digit-ui/${userType}/${pathname.split("/")[3]}/create-application/create-property?redirectToUrl=${window.location.pathname}`, {
|
|
19557
|
-
...state,
|
|
19558
|
-
...formData
|
|
19559
|
-
})
|
|
19560
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19561
|
-
className: "submit-bar",
|
|
19562
|
-
type: "button",
|
|
19563
|
-
style: {
|
|
19564
|
-
color: "white"
|
|
19565
|
-
}
|
|
19566
|
-
}, t("CPT_CREATE_PROPERTY"))))))) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
19567
|
-
style: {
|
|
19568
|
-
display: "flex",
|
|
19569
|
-
flexDirection: isMobile ? "column" : "row",
|
|
19570
|
-
gap: "16px",
|
|
19571
|
-
width: "100%",
|
|
19572
|
-
alignItems: "flex-end",
|
|
19573
|
-
marginBottom: "16px"
|
|
19574
|
-
}
|
|
19575
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
19576
|
-
style: {
|
|
19577
|
-
flex: 1
|
|
19578
|
-
}
|
|
19579
|
-
}, /*#__PURE__*/React.createElement(Label, null, `${t("CORE_COMMON_MOBILE_NUMBER")}`), /*#__PURE__*/React.createElement(TextInput, {
|
|
19580
|
-
value: mobileNumber,
|
|
19581
|
-
onChange: e => {
|
|
19582
|
-
const val = e.target.value;
|
|
19583
|
-
if (val.length <= 10) {
|
|
19584
|
-
setMobileNumber(val);
|
|
19585
|
-
if (val.length === 10) {
|
|
19586
|
-
setSearchMobileNumber(val);
|
|
19587
|
-
}
|
|
19588
|
-
}
|
|
19589
|
-
},
|
|
19590
|
-
style: {
|
|
19591
|
-
width: "100%"
|
|
19592
|
-
},
|
|
19593
|
-
placeholder: `${t("PT_ENTER_MOBILE_NUMBER")}`,
|
|
19594
|
-
maxLength: 10
|
|
19595
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
19596
|
-
style: {
|
|
19597
|
-
flex: 1
|
|
19598
|
-
}
|
|
19599
|
-
}, /*#__PURE__*/React.createElement(Label, null, `${t("PROPERTY_ID")}`), isLoading ? /*#__PURE__*/React.createElement("div", null, t("CS_COMMON_LOADING")) : /*#__PURE__*/React.createElement(Dropdown, {
|
|
19600
|
-
option: (propertyDetails === null || propertyDetails === void 0 ? void 0 : propertyDetails.Properties) || [],
|
|
19601
|
-
optionKey: "propertyId",
|
|
19602
|
-
id: "propertyId",
|
|
19603
|
-
selected: selectedProperty,
|
|
19604
|
-
select: onPropertySelect,
|
|
19605
|
-
t: t,
|
|
19606
|
-
placeholder: t("PT_SELECT_PROPERTY")
|
|
19607
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
19608
|
-
style: {
|
|
19609
|
-
flex: 1
|
|
19610
|
-
}
|
|
19611
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19612
|
-
className: "submit-bar",
|
|
19613
|
-
type: "button",
|
|
19614
|
-
style: {
|
|
19615
|
-
color: "white",
|
|
19616
|
-
width: "100%",
|
|
19617
|
-
margin: 0
|
|
19618
|
-
},
|
|
19619
|
-
onClick: clearSearch
|
|
19620
|
-
}, `${t("CLEAR")}`)), /*#__PURE__*/React.createElement("div", {
|
|
19621
|
-
style: {
|
|
19622
|
-
flex: 1
|
|
19623
|
-
}
|
|
19624
|
-
}, searchMobileNumber && (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties) === null || _propertyDetails$Prop4 === void 0 ? void 0 : _propertyDetails$Prop4.length) === 0 && /*#__PURE__*/React.createElement("div", {
|
|
19625
|
-
style: {
|
|
19626
|
-
display: "flex",
|
|
19627
|
-
flexDirection: "column",
|
|
19628
|
-
gap: "8px"
|
|
19629
|
-
}
|
|
19630
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
19631
|
-
style: {
|
|
19632
|
-
color: "#d60505",
|
|
19633
|
-
fontWeight: "bold",
|
|
19634
|
-
fontSize: "12px",
|
|
19635
|
-
lineHeight: "1"
|
|
19636
|
-
}
|
|
19637
|
-
}, "No property created this number"), /*#__PURE__*/React.createElement("span", {
|
|
19638
|
-
onClick: () => history.push(`/digit-ui/${userType}/${pathname.split("/")[3]}/create-application/create-property?redirectToUrl=${window.location.pathname}`, {
|
|
19639
|
-
...state,
|
|
19640
|
-
...formData
|
|
19641
|
-
})
|
|
19642
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
19643
|
-
className: "submit-bar",
|
|
19644
|
-
type: "button",
|
|
19645
|
-
style: {
|
|
19646
|
-
color: "white",
|
|
19647
|
-
width: "100%",
|
|
19648
|
-
margin: 0
|
|
19649
|
-
}
|
|
19650
|
-
}, t("CPT_CREATE_PROPERTY"))))))), activeProperty ? /*#__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, {
|
|
19651
19404
|
className: "card-with-background",
|
|
19652
19405
|
style: {
|
|
19653
|
-
margin: "16px 0px",
|
|
19654
|
-
padding: "20px",
|
|
19655
19406
|
boxShadow: "none"
|
|
19656
19407
|
}
|
|
19657
19408
|
}, /*#__PURE__*/React.createElement(StatusTable, {
|