@djb25/digit-ui-module-commonpt 1.0.1 → 1.0.3
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 +274 -241
- 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, Header, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, ViewsIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, AppContainer, BackButton, PrivateRoute, BreadCrumb, DeleteIcon, MobileNumber, TextArea, RadioOrSelect, SearchForm, SearchField, DetailsCard, TickMark, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
|
|
1
|
+
import { Loader, Header, FormComposer, Toast, Card, CardText, StatusTable, Row, SubmitBar, Banner, RadioButtons, Dropdown, InfoBannerIcon, Localities, ResponseComposer, Modal, KeyNote, OTPInput, CardLabelError, FormStep, UploadFile, DatePicker, CardSubHeader, PDFSvg, LabelFieldPair, CardLabel, MultiUploadWrapper, CardHeader, CardSectionHeader, CheckBox, TextInput, LinkButton, Close as Close$e, BreakLine, Table, TelePhone, DisplayPhotos, EditIcon, ViewsIcon, CheckPoint, ConnectingCheckPoints, ActionBar, Menu, ButtonSelector, AppContainer, BackButton, PrivateRoute, BreadCrumb, DeleteIcon, MobileNumber, TextArea, RadioOrSelect, SearchForm, SearchField, DetailsCard, TickMark, Label, PropertyHouse, EmployeeModuleCard, CitizenHomeCard, PTIcon } from '@djb25/digit-ui-react-components';
|
|
2
2
|
import React, { useState, useEffect, useLayoutEffect, useMemo, useRef, Fragment as Fragment$1, memo, useCallback } from 'react';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import { useLocation, useHistory, useRouteMatch, Switch, Route, Link, useParams } from 'react-router-dom';
|
|
@@ -6054,7 +6054,7 @@ const setAddressDetailsLW = data => {
|
|
|
6054
6054
|
return data;
|
|
6055
6055
|
};
|
|
6056
6056
|
const setOwnerDetailsLW = data => {
|
|
6057
|
-
var _data$owners, _data$owners
|
|
6057
|
+
var _data$owners, _data$owners$, _data$ownershipCatego3;
|
|
6058
6058
|
const {
|
|
6059
6059
|
locationDet,
|
|
6060
6060
|
owners
|
|
@@ -6063,7 +6063,8 @@ const setOwnerDetailsLW = data => {
|
|
|
6063
6063
|
owner = [],
|
|
6064
6064
|
document = [];
|
|
6065
6065
|
data.ownershipCategory = data === null || data === void 0 ? void 0 : (_data$owners = data.owners) === null || _data$owners === void 0 ? void 0 : (_data$owners$ = _data$owners[0]) === null || _data$owners$ === void 0 ? void 0 : _data$owners$.ownershipCategory;
|
|
6066
|
-
|
|
6066
|
+
const ownershipCategoryCode = typeof data.ownershipCategory === "string" ? data.ownershipCategory : (_data$ownershipCatego3 = data.ownershipCategory) === null || _data$ownershipCatego3 === void 0 ? void 0 : _data$ownershipCatego3.code;
|
|
6067
|
+
if (ownershipCategoryCode !== null && ownershipCategoryCode !== void 0 && ownershipCategoryCode.includes("INSTITUTIONALPRIVATE") || ownershipCategoryCode !== null && ownershipCategoryCode !== void 0 && ownershipCategoryCode.includes("INSTITUTIONALGOVERNMENT")) {
|
|
6067
6068
|
var _owners$14, _owners$15, _owners$16, _owners$16$institutio, _owners$16$institutio2, _owners$16$institutio3, _owners$17, _locationDet$cityCode2, _owners$18, _owners$19, _owners$20, _owners$21, _owners$22, _owners$23, _owners$24;
|
|
6068
6069
|
institution.designation = owners === null || owners === void 0 ? void 0 : (_owners$14 = owners[0]) === null || _owners$14 === void 0 ? void 0 : _owners$14.designation;
|
|
6069
6070
|
institution.name = owners === null || owners === void 0 ? void 0 : (_owners$15 = owners[0]) === null || _owners$15 === void 0 ? void 0 : _owners$15.institutionName;
|
|
@@ -6142,7 +6143,7 @@ const convertToPropertyLightWeight = (data = {}) => {
|
|
|
6142
6143
|
address: data.address,
|
|
6143
6144
|
propertyType: propertyType,
|
|
6144
6145
|
...data.propertyDetails,
|
|
6145
|
-
ownershipCategory: ownershipCategory,
|
|
6146
|
+
ownershipCategory: typeof ownershipCategory === "string" ? ownershipCategory : ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code,
|
|
6146
6147
|
usageCategory: (_data2 = data) === null || _data2 === void 0 ? void 0 : (_data2$assemblyDet = _data2.assemblyDet) === null || _data2$assemblyDet === void 0 ? void 0 : (_data2$assemblyDet$us = _data2$assemblyDet.usageCategoryMajor) === null || _data2$assemblyDet$us === void 0 ? void 0 : _data2$assemblyDet$us.code,
|
|
6147
6148
|
owners: [...data.owners.map((owner, index) => {
|
|
6148
6149
|
var _owner$gender, _owner$ownerType, _owner$relationship, _owner$inistitutetype;
|
|
@@ -6205,14 +6206,15 @@ const convertToPropertyLightWeight = (data = {}) => {
|
|
|
6205
6206
|
channel: "SYSTEM"
|
|
6206
6207
|
}
|
|
6207
6208
|
};
|
|
6208
|
-
|
|
6209
|
+
const ownershipCategoryCode = typeof ownershipCategory === "string" ? ownershipCategory : ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code;
|
|
6210
|
+
if (ownershipCategoryCode !== null && ownershipCategoryCode !== void 0 && ownershipCategoryCode.includes("INSTITUTIONALPRIVATE") || ownershipCategoryCode !== null && ownershipCategoryCode !== void 0 && ownershipCategoryCode.includes("INSTITUTIONALGOVERNMENT")) {
|
|
6209
6211
|
var _data3;
|
|
6210
6212
|
formdata.Property.institution = (_data3 = data) === null || _data3 === void 0 ? void 0 : _data3.institution;
|
|
6211
6213
|
}
|
|
6212
6214
|
return formdata;
|
|
6213
6215
|
};
|
|
6214
6216
|
const convertToUpdatePropertyLightWeight = (data = {}) => {
|
|
6215
|
-
var _data4, _formdata$Property,
|
|
6217
|
+
var _data4, _data5, _data6, _data6$ownershipCateg, _formdata$Property, _data7, _formdata$Property3;
|
|
6216
6218
|
let propertyType = data.PropertyType;
|
|
6217
6219
|
let noOfFloors = 1;
|
|
6218
6220
|
data = setOwnerDetailsLW(data);
|
|
@@ -6228,7 +6230,7 @@ const convertToUpdatePropertyLightWeight = (data = {}) => {
|
|
|
6228
6230
|
tenantId: data.tenantId,
|
|
6229
6231
|
address: data.address,
|
|
6230
6232
|
propertyType: propertyType,
|
|
6231
|
-
ownershipCategory: (_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.ownershipCategory,
|
|
6233
|
+
ownershipCategory: typeof ((_data4 = data) === null || _data4 === void 0 ? void 0 : _data4.ownershipCategory) === "string" ? (_data5 = data) === null || _data5 === void 0 ? void 0 : _data5.ownershipCategory : (_data6 = data) === null || _data6 === void 0 ? void 0 : (_data6$ownershipCateg = _data6.ownershipCategory) === null || _data6$ownershipCateg === void 0 ? void 0 : _data6$ownershipCateg.code,
|
|
6232
6234
|
owners: [...data.owners.map((owner, index) => {
|
|
6233
6235
|
var _owner$gender3, _owner$ownerType3, _owner$relationship3, _owner$inistitutetype3;
|
|
6234
6236
|
return {
|
|
@@ -6293,7 +6295,7 @@ const convertToUpdatePropertyLightWeight = (data = {}) => {
|
|
|
6293
6295
|
}
|
|
6294
6296
|
};
|
|
6295
6297
|
let propertyInitialObject = JSON.parse(sessionStorage.getItem("propertyInitialObject"));
|
|
6296
|
-
if (checkArrayLength(propertyInitialObject === null || propertyInitialObject === void 0 ? void 0 : propertyInitialObject.units) && checkIsAnArray((_formdata$Property = formdata.Property) === null || _formdata$Property === void 0 ? void 0 : _formdata$Property.units) && (
|
|
6298
|
+
if (checkArrayLength(propertyInitialObject === null || propertyInitialObject === void 0 ? void 0 : propertyInitialObject.units) && checkIsAnArray((_formdata$Property = formdata.Property) === null || _formdata$Property === void 0 ? void 0 : _formdata$Property.units) && (_data7 = data) !== null && _data7 !== void 0 && _data7.isEditProperty) {
|
|
6297
6299
|
var _formdata$Property2;
|
|
6298
6300
|
propertyInitialObject.units = propertyInitialObject.units.filter(unit => unit.active);
|
|
6299
6301
|
let oldUnits = propertyInitialObject.units.map(unit => {
|
|
@@ -7653,7 +7655,7 @@ const SearchProperty = ({
|
|
|
7653
7655
|
} = Digit.Hooks.pt.usePropertySearchWithDue({
|
|
7654
7656
|
tenantId: searchData === null || searchData === void 0 ? void 0 : searchData.city,
|
|
7655
7657
|
filters: searchData === null || searchData === void 0 ? void 0 : searchData.filters,
|
|
7656
|
-
auth:
|
|
7658
|
+
auth: false,
|
|
7657
7659
|
configs: {
|
|
7658
7660
|
enabled: Object.keys(searchData).length > 0,
|
|
7659
7661
|
retry: false,
|
|
@@ -8293,7 +8295,7 @@ const PropertySearchResults = ({
|
|
|
8293
8295
|
redirectToUrl,
|
|
8294
8296
|
searchQuery
|
|
8295
8297
|
}) => {
|
|
8296
|
-
var _result$data, _result$
|
|
8298
|
+
var _result$data, _result$data2, _properties$map, _paymentDetails$data, _paymentDetails$data$, _ref, _modalData$total_due;
|
|
8297
8299
|
const {
|
|
8298
8300
|
t
|
|
8299
8301
|
} = useTranslation();
|
|
@@ -8304,6 +8306,7 @@ const PropertySearchResults = ({
|
|
|
8304
8306
|
oldPropertyIds,
|
|
8305
8307
|
locality,
|
|
8306
8308
|
city,
|
|
8309
|
+
tenantId: tId,
|
|
8307
8310
|
doorNo,
|
|
8308
8311
|
name,
|
|
8309
8312
|
PToffset
|
|
@@ -8335,17 +8338,21 @@ const PropertySearchResults = ({
|
|
|
8335
8338
|
setShowModal(false);
|
|
8336
8339
|
};
|
|
8337
8340
|
Digit.Hooks.useClickOutside(modalRef, closeModal, modalData);
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
+
const sbm = (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.mobileNumber) || (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.mobileNo);
|
|
8342
|
+
const spi = (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.propertyIds) || (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.propertyId);
|
|
8343
|
+
const sop = (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.oldPropertyIds) || (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.oldPropertyId);
|
|
8344
|
+
if (mobileNumber || sbm) filters.mobileNumber = mobileNumber ? mobileNumber : sbm;
|
|
8345
|
+
if (propertyIds || spi) filters.propertyIds = propertyIds ? propertyIds : spi;
|
|
8346
|
+
if (oldPropertyIds || sop) filters.oldPropertyIds = oldPropertyIds ? oldPropertyIds : sop;
|
|
8341
8347
|
if (locality || searchQuery && searchQuery.locality) filters.locality = locality ? locality : searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.locality;
|
|
8342
8348
|
if (doorNo || searchQuery && searchQuery.doorNo) filters.doorNo = doorNo ? doorNo : searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.doorNo;
|
|
8343
8349
|
if (name || searchQuery && searchQuery.name) filters.name = name ? name : searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.name;
|
|
8344
|
-
|
|
8345
|
-
|
|
8346
|
-
|
|
8347
|
-
|
|
8348
|
-
|
|
8350
|
+
filters.limit = filter1.limit;
|
|
8351
|
+
filters.sortOrder = filter1.sortOrder;
|
|
8352
|
+
filters.sortBy = filter1.sortBy;
|
|
8353
|
+
filters.offset = filter1.offset;
|
|
8354
|
+
if (!filters.status) {
|
|
8355
|
+
filters.status = "ACTIVE,INWORKFLOW";
|
|
8349
8356
|
}
|
|
8350
8357
|
const [owners, setOwners, clearOwners] = Digit.Hooks.useSessionStorage("PT_MUTATE_MULTIPLE_OWNERS", null);
|
|
8351
8358
|
const [lastPath, setLastPath, clearLastPath] = Digit.Hooks.useSessionStorage("PT_MUTATE_MULTIPLE_OWNERS_LAST_PATH", null);
|
|
@@ -8359,9 +8366,9 @@ const PropertySearchResults = ({
|
|
|
8359
8366
|
_clearParams();
|
|
8360
8367
|
setLastPath("");
|
|
8361
8368
|
}, []);
|
|
8362
|
-
const auth =
|
|
8369
|
+
const auth = false;
|
|
8363
8370
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
8364
|
-
const scity = city
|
|
8371
|
+
const scity = city || tId || (searchQuery === null || searchQuery === void 0 ? void 0 : searchQuery.city) || tenantId;
|
|
8365
8372
|
const searchArgs = scity ? {
|
|
8366
8373
|
tenantId: scity,
|
|
8367
8374
|
filters,
|
|
@@ -8373,8 +8380,11 @@ const PropertySearchResults = ({
|
|
|
8373
8380
|
const result = Digit.Hooks.pt.usePropertySearch(searchArgs, {
|
|
8374
8381
|
privacy: Digit.Utils.getPrivacyObject()
|
|
8375
8382
|
});
|
|
8376
|
-
const
|
|
8377
|
-
|
|
8383
|
+
const properties = (result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.Properties) || (result === null || result === void 0 ? void 0 : (_result$data2 = result.data) === null || _result$data2 === void 0 ? void 0 : _result$data2.properties) || (Array.isArray(result === null || result === void 0 ? void 0 : result.data) ? result === null || result === void 0 ? void 0 : result.data : []);
|
|
8384
|
+
const consumerCode = properties === null || properties === void 0 ? void 0 : (_properties$map = properties.map) === null || _properties$map === void 0 ? void 0 : _properties$map.call(properties, a => a.propertyId || a.id).filter(id => id).join(",");
|
|
8385
|
+
if (result.isSuccess && (!properties || properties.length === 0)) {
|
|
8386
|
+
console.warn("Property Search: No properties found in result.data", result.data);
|
|
8387
|
+
}
|
|
8378
8388
|
const fetchBillParams = mobileNumber ? {
|
|
8379
8389
|
mobileNumber,
|
|
8380
8390
|
consumerCode
|
|
@@ -8386,7 +8396,7 @@ const PropertySearchResults = ({
|
|
|
8386
8396
|
...fetchBillParams,
|
|
8387
8397
|
tenantId: scity
|
|
8388
8398
|
}, {
|
|
8389
|
-
enabled: consumerCode
|
|
8399
|
+
enabled: !!(consumerCode && scity),
|
|
8390
8400
|
retry: false
|
|
8391
8401
|
});
|
|
8392
8402
|
const history = useHistory();
|
|
@@ -8398,7 +8408,7 @@ const PropertySearchResults = ({
|
|
|
8398
8408
|
if (paymentDetails.isLoading || result.isLoading) {
|
|
8399
8409
|
return /*#__PURE__*/React.createElement(Loader, null);
|
|
8400
8410
|
}
|
|
8401
|
-
if (result.error || !
|
|
8411
|
+
if (result.error || result.isSuccess && (!properties || properties.length === 0)) {
|
|
8402
8412
|
return /*#__PURE__*/React.createElement("div", {
|
|
8403
8413
|
style: {
|
|
8404
8414
|
height: "150px"
|
|
@@ -8421,18 +8431,16 @@ const PropertySearchResults = ({
|
|
|
8421
8431
|
};
|
|
8422
8432
|
}
|
|
8423
8433
|
});
|
|
8424
|
-
const
|
|
8425
|
-
|
|
8426
|
-
const searchResults = arr === null || arr === void 0 ? void 0 : arr.map(property => {
|
|
8427
|
-
var _sort, _sort$, _addr$locality, _payment$property$pro, _payment$property$pro2, _2, _property$owners, _property$owners$;
|
|
8434
|
+
const searchResults = (_ref = properties || []) === null || _ref === void 0 ? void 0 : _ref.map(property => {
|
|
8435
|
+
var _sort, _sort$, _addr$locality, _addr$locality2, _addr$locality3, _addr$locality4, _payment$property$pro, _payment$property$pro2, _2, _property$owners, _property$owners$;
|
|
8428
8436
|
let addr = (property === null || property === void 0 ? void 0 : property.address) || {};
|
|
8429
8437
|
return {
|
|
8430
8438
|
property_id: property === null || property === void 0 ? void 0 : property.propertyId,
|
|
8431
8439
|
owner_name: (_sort = ((property === null || property === void 0 ? void 0 : property.owners) || []).sort((a, b) => {
|
|
8432
8440
|
var _a$additionalDetails, _b$additionalDetails;
|
|
8433
|
-
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);
|
|
8441
|
+
return ((a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) || 0) - ((b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence) || 0);
|
|
8434
8442
|
})) === null || _sort === void 0 ? void 0 : (_sort$ = _sort[0]) === null || _sort$ === void 0 ? void 0 : _sort$.name,
|
|
8435
|
-
property_address: [addr.doorNo || "", addr.buildingName || "", addr.street || "", t(`TENANTS_MOHALLA_${(_addr$locality = addr.locality) === null || _addr$locality === void 0 ? void 0 : _addr$locality.code}`) || "", t(addr.tenantId) || ""].filter(a => a).join(", "),
|
|
8443
|
+
property_address: [addr.doorNo || "", addr.buildingName || "", addr.street || "", t(`TENANTS_MOHALLA_${(_addr$locality = addr.locality) === null || _addr$locality === void 0 ? void 0 : _addr$locality.code}`) !== `TENANTS_MOHALLA_${(_addr$locality2 = addr.locality) === null || _addr$locality2 === void 0 ? void 0 : _addr$locality2.code}` ? t(`TENANTS_MOHALLA_${(_addr$locality3 = addr.locality) === null || _addr$locality3 === void 0 ? void 0 : _addr$locality3.code}`) : ((_addr$locality4 = addr.locality) === null || _addr$locality4 === void 0 ? void 0 : _addr$locality4.name) || "", t(addr.tenantId) || ""].filter(a => a).join(", "),
|
|
8436
8444
|
total_due: ((_payment$property$pro = payment[property === null || property === void 0 ? void 0 : property.propertyId]) === null || _payment$property$pro === void 0 ? void 0 : _payment$property$pro.total_due) || 0,
|
|
8437
8445
|
bil_due__date: ((_payment$property$pro2 = payment[property === null || property === void 0 ? void 0 : property.propertyId]) === null || _payment$property$pro2 === void 0 ? void 0 : _payment$property$pro2.bil_due__date) || t("N/A"),
|
|
8438
8446
|
status: t(property.status),
|
|
@@ -8525,7 +8533,7 @@ const PropertySearchResults = ({
|
|
|
8525
8533
|
style: {
|
|
8526
8534
|
marginLeft: "8px"
|
|
8527
8535
|
}
|
|
8528
|
-
}, t(header), " (", searchResults === null || searchResults === void 0 ? void 0 : searchResults.length, ")"), /*#__PURE__*/React.createElement(PrivacyInfoLabel, {
|
|
8536
|
+
}, t(header), " (", searchResults === null || searchResults === void 0 ? void 0 : searchResults.length, ")"), PrivacyInfoLabel && /*#__PURE__*/React.createElement(PrivacyInfoLabel, {
|
|
8529
8537
|
t: t
|
|
8530
8538
|
}), /*#__PURE__*/React.createElement(ResponseComposer, {
|
|
8531
8539
|
data: searchResults,
|
|
@@ -8558,7 +8566,7 @@ const PropertySearchResults = ({
|
|
|
8558
8566
|
width: "100%"
|
|
8559
8567
|
},
|
|
8560
8568
|
label: t("PT_PROCEED_PAYMENT")
|
|
8561
|
-
}))) : null,
|
|
8569
|
+
}))) : null, (searchResults === null || searchResults === void 0 ? void 0 : searchResults.length) === 0 && /*#__PURE__*/React.createElement("p", {
|
|
8562
8570
|
style: {
|
|
8563
8571
|
marginLeft: "16px",
|
|
8564
8572
|
marginTop: "16px"
|
|
@@ -11772,7 +11780,11 @@ const ActionModal$5 = ({
|
|
|
11772
11780
|
actionData,
|
|
11773
11781
|
applicationData,
|
|
11774
11782
|
businessService,
|
|
11775
|
-
moduleCode
|
|
11783
|
+
moduleCode,
|
|
11784
|
+
cardClassName,
|
|
11785
|
+
cardFormWrapperClassName,
|
|
11786
|
+
cardFormClassName,
|
|
11787
|
+
formClassName
|
|
11776
11788
|
}) => {
|
|
11777
11789
|
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
11778
11790
|
const {
|
|
@@ -12020,7 +12032,11 @@ const ActionModal$5 = ({
|
|
|
12020
12032
|
childrenAtTheBottom: true,
|
|
12021
12033
|
onSubmit: submit,
|
|
12022
12034
|
defaultValues: defaultValues,
|
|
12023
|
-
formId: "modal-action"
|
|
12035
|
+
formId: "modal-action",
|
|
12036
|
+
cardFormClassName: cardFormClassName,
|
|
12037
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
12038
|
+
cardClassName: cardClassName,
|
|
12039
|
+
formClassName: formClassName
|
|
12024
12040
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
12025
12041
|
};
|
|
12026
12042
|
|
|
@@ -12204,7 +12220,11 @@ const ActionModal$7 = ({
|
|
|
12204
12220
|
actionData,
|
|
12205
12221
|
applicationData,
|
|
12206
12222
|
businessService,
|
|
12207
|
-
moduleCode
|
|
12223
|
+
moduleCode,
|
|
12224
|
+
cardClassName,
|
|
12225
|
+
cardFormWrapperClassName,
|
|
12226
|
+
cardFormClassName,
|
|
12227
|
+
formClassName
|
|
12208
12228
|
}) => {
|
|
12209
12229
|
var _action$roles, _action$roles$, _action$roles$$map;
|
|
12210
12230
|
const {
|
|
@@ -12284,7 +12304,11 @@ const ActionModal$7 = ({
|
|
|
12284
12304
|
childrenAtTheBottom: true,
|
|
12285
12305
|
onSubmit: submit,
|
|
12286
12306
|
defaultValues: defaultValues,
|
|
12287
|
-
formId: "modal-action"
|
|
12307
|
+
formId: "modal-action",
|
|
12308
|
+
cardFormClassName: cardFormClassName,
|
|
12309
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
12310
|
+
cardClassName: cardClassName,
|
|
12311
|
+
formClassName: formClassName
|
|
12288
12312
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
12289
12313
|
};
|
|
12290
12314
|
|
|
@@ -12770,7 +12794,7 @@ const configWTApproverApplication = ({
|
|
|
12770
12794
|
required: true
|
|
12771
12795
|
}
|
|
12772
12796
|
}
|
|
12773
|
-
}, (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" ? {
|
|
12797
|
+
}, (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" && (action === null || action === void 0 ? void 0 : action.action) !== "ASSIGN_VEHICLE_DRIVER" ? {
|
|
12774
12798
|
label: t("RS_ASSIGN"),
|
|
12775
12799
|
type: "dropdown",
|
|
12776
12800
|
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
@@ -12780,7 +12804,7 @@ const configWTApproverApplication = ({
|
|
|
12780
12804
|
select: setSelectedVendor,
|
|
12781
12805
|
selected: selectedVendor
|
|
12782
12806
|
})
|
|
12783
|
-
} : "null", (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" ? {
|
|
12807
|
+
} : "null", (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER" ? {
|
|
12784
12808
|
label: t("RS_REGISTRATION_NUMBER"),
|
|
12785
12809
|
type: "dropdown",
|
|
12786
12810
|
populators: /*#__PURE__*/React.createElement(Dropdown, {
|
|
@@ -12837,9 +12861,13 @@ const ActionModal$b = ({
|
|
|
12837
12861
|
actionData,
|
|
12838
12862
|
applicationData,
|
|
12839
12863
|
businessService,
|
|
12840
|
-
moduleCode
|
|
12864
|
+
moduleCode,
|
|
12865
|
+
cardClassName,
|
|
12866
|
+
cardFormWrapperClassName,
|
|
12867
|
+
cardFormClassName,
|
|
12868
|
+
formClassName
|
|
12841
12869
|
}) => {
|
|
12842
|
-
var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle
|
|
12870
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _dsoData$vendor, _vehicleData$vehicle, _vehicleData$vehicle$;
|
|
12843
12871
|
const {
|
|
12844
12872
|
data: approverData,
|
|
12845
12873
|
isLoading: PTALoading
|
|
@@ -12860,17 +12888,19 @@ const ActionModal$b = ({
|
|
|
12860
12888
|
} = Digit.Hooks.fsm.useVendorSearch({
|
|
12861
12889
|
tenantId,
|
|
12862
12890
|
config: {
|
|
12863
|
-
enabled: (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN"
|
|
12891
|
+
enabled: (action === null || action === void 0 ? void 0 : action.state) === "PENDING_FOR_VEHICLE_DRIVER_ASSIGN" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER"
|
|
12864
12892
|
}
|
|
12865
12893
|
});
|
|
12866
12894
|
let vendorDescription = [];
|
|
12867
|
-
dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.
|
|
12868
|
-
var _item$additionalDetai;
|
|
12869
|
-
if ((item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.description) === "WT") {
|
|
12895
|
+
dsoData === null || dsoData === void 0 ? void 0 : (_dsoData$vendor = dsoData.vendor) === null || _dsoData$vendor === void 0 ? void 0 : _dsoData$vendor.forEach(item => {
|
|
12896
|
+
var _item$additionalDetai, _item$additionalDetai2;
|
|
12897
|
+
if ((item === null || item === void 0 ? void 0 : (_item$additionalDetai = item.additionalDetails) === null || _item$additionalDetai === void 0 ? void 0 : _item$additionalDetai.description) === "WT" || (item === null || item === void 0 ? void 0 : (_item$additionalDetai2 = item.additionalDetails) === null || _item$additionalDetai2 === void 0 ? void 0 : _item$additionalDetai2.serviceType) === "WT") {
|
|
12898
|
+
var _item$owner;
|
|
12899
|
+
const displayLabel = `${item === null || item === void 0 ? void 0 : item.name} (${item === null || item === void 0 ? void 0 : (_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.mobileNumber})`;
|
|
12870
12900
|
vendorDescription.push({
|
|
12871
12901
|
code: item === null || item === void 0 ? void 0 : item.name,
|
|
12872
|
-
name:
|
|
12873
|
-
i18nKey:
|
|
12902
|
+
name: displayLabel,
|
|
12903
|
+
i18nKey: displayLabel,
|
|
12874
12904
|
vendorId: item === null || item === void 0 ? void 0 : item.id
|
|
12875
12905
|
});
|
|
12876
12906
|
}
|
|
@@ -12881,17 +12911,22 @@ const ActionModal$b = ({
|
|
|
12881
12911
|
} = Digit.Hooks.fsm.useVehiclesSearch({
|
|
12882
12912
|
tenantId,
|
|
12883
12913
|
config: {
|
|
12884
|
-
enabled: (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING"
|
|
12914
|
+
enabled: (action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING" || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER"
|
|
12885
12915
|
}
|
|
12886
12916
|
});
|
|
12887
12917
|
let vehicleDescription = [];
|
|
12888
|
-
vehicleData === null || vehicleData === void 0 ? void 0 : (_vehicleData$vehicle = vehicleData.vehicle) === null || _vehicleData$vehicle === void 0 ? void 0 : _vehicleData$vehicle.
|
|
12918
|
+
vehicleData === null || vehicleData === void 0 ? void 0 : (_vehicleData$vehicle = vehicleData.vehicle) === null || _vehicleData$vehicle === void 0 ? void 0 : (_vehicleData$vehicle$ = _vehicleData$vehicle.filter(item => {
|
|
12919
|
+
var _item$driverData, _item$driver;
|
|
12920
|
+
return (item === null || item === void 0 ? void 0 : (_item$driverData = item.driverData) === null || _item$driverData === void 0 ? void 0 : _item$driverData.id) || (item === null || item === void 0 ? void 0 : (_item$driver = item.driver) === null || _item$driver === void 0 ? void 0 : _item$driver.id);
|
|
12921
|
+
})) === null || _vehicleData$vehicle$ === void 0 ? void 0 : _vehicleData$vehicle$.map(item => {
|
|
12922
|
+
var _item$driverData2, _item$driver2;
|
|
12889
12923
|
vehicleDescription.push({
|
|
12890
12924
|
code: item === null || item === void 0 ? void 0 : item.registrationNumber,
|
|
12891
12925
|
name: item === null || item === void 0 ? void 0 : item.registrationNumber,
|
|
12892
12926
|
i18nKey: item === null || item === void 0 ? void 0 : item.registrationNumber,
|
|
12893
12927
|
tankerCapacity: item === null || item === void 0 ? void 0 : item.tankCapacity,
|
|
12894
|
-
vehicleId: item === null || item === void 0 ? void 0 : item.id
|
|
12928
|
+
vehicleId: item === null || item === void 0 ? void 0 : item.id,
|
|
12929
|
+
driverId: (item === null || item === void 0 ? void 0 : (_item$driverData2 = item.driverData) === null || _item$driverData2 === void 0 ? void 0 : _item$driverData2.ownerId) || (item === null || item === void 0 ? void 0 : (_item$driver2 = item.driver) === null || _item$driver2 === void 0 ? void 0 : _item$driver2.ownerId)
|
|
12895
12930
|
});
|
|
12896
12931
|
});
|
|
12897
12932
|
const [config, setConfig] = useState({});
|
|
@@ -12956,6 +12991,10 @@ const ActionModal$b = ({
|
|
|
12956
12991
|
if ((action === null || action === void 0 ? void 0 : action.state) === "DELIVERY_PENDING") {
|
|
12957
12992
|
applicationData.vehicleId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.vehicleId;
|
|
12958
12993
|
}
|
|
12994
|
+
if ((action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER") {
|
|
12995
|
+
applicationData.vehicleId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.vehicleId;
|
|
12996
|
+
applicationData.driverId = selectVehicle === null || selectVehicle === void 0 ? void 0 : selectVehicle.driverId;
|
|
12997
|
+
}
|
|
12959
12998
|
let requestPayload = businessService === "watertanker" ? {
|
|
12960
12999
|
waterTankerBookingDetail: {
|
|
12961
13000
|
...applicationData,
|
|
@@ -12980,7 +13019,7 @@ const ActionModal$b = ({
|
|
|
12980
13019
|
selectedVendor,
|
|
12981
13020
|
setSelectedVendor,
|
|
12982
13021
|
vendorDescription: dsoData ? vendorDescription : undefined,
|
|
12983
|
-
vehicleDescription: vehicleData ? vehicleDescription : undefined,
|
|
13022
|
+
vehicleDescription: vehicleData || (action === null || action === void 0 ? void 0 : action.action) === "ASSIGN_VEHICLE_DRIVER" ? vehicleDescription : undefined,
|
|
12984
13023
|
selectVehicle,
|
|
12985
13024
|
setSelectVehicle
|
|
12986
13025
|
}));
|
|
@@ -13005,7 +13044,11 @@ const ActionModal$b = ({
|
|
|
13005
13044
|
childrenAtTheBottom: true,
|
|
13006
13045
|
onSubmit: submit,
|
|
13007
13046
|
defaultValues: defaultValues,
|
|
13008
|
-
formId: "modal-action"
|
|
13047
|
+
formId: "modal-action",
|
|
13048
|
+
cardFormClassName: cardFormClassName,
|
|
13049
|
+
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
13050
|
+
cardClassName: cardClassName,
|
|
13051
|
+
formClassName: formClassName
|
|
13009
13052
|
})) : /*#__PURE__*/React.createElement(Loader, null);
|
|
13010
13053
|
};
|
|
13011
13054
|
|
|
@@ -13705,7 +13748,7 @@ const NOCDocuments = ({
|
|
|
13705
13748
|
}
|
|
13706
13749
|
}, [nocDocs, commonDocMaping]);
|
|
13707
13750
|
useEffect(() => {
|
|
13708
|
-
if (bpaApplicationStatus ===
|
|
13751
|
+
if (bpaApplicationStatus === "NOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
|
|
13709
13752
|
}, [applicationData, bpaActionsDetails]);
|
|
13710
13753
|
return /*#__PURE__*/React.createElement("div", {
|
|
13711
13754
|
style: {
|
|
@@ -13730,9 +13773,9 @@ const NOCDocuments = ({
|
|
|
13730
13773
|
label: isEmployee ? `${t(noc === null || noc === void 0 ? void 0 : noc.title)}` : t(noc === null || noc === void 0 ? void 0 : noc.title),
|
|
13731
13774
|
text: noc !== null && noc !== void 0 && noc.value ? t(noc === null || noc === void 0 ? void 0 : noc.value) : t("CS_NA"),
|
|
13732
13775
|
textStyle: (noc === null || noc === void 0 ? void 0 : noc.value) == "APPROVED" || (noc === null || noc === void 0 ? void 0 : noc.value) == "AUTO_APPROVED" ? {
|
|
13733
|
-
color: "#
|
|
13776
|
+
color: "#2E9E8F"
|
|
13734
13777
|
} : {
|
|
13735
|
-
color: "#
|
|
13778
|
+
color: "#D83A2F"
|
|
13736
13779
|
}
|
|
13737
13780
|
});
|
|
13738
13781
|
} else {
|
|
@@ -14284,7 +14327,7 @@ const ScruntinyDetails = ({
|
|
|
14284
14327
|
const getTextValues = data => {
|
|
14285
14328
|
if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return /*#__PURE__*/React.createElement("span", {
|
|
14286
14329
|
style: {
|
|
14287
|
-
color: "#
|
|
14330
|
+
color: "#2E9E8F"
|
|
14288
14331
|
}
|
|
14289
14332
|
}, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
|
|
14290
14333
|
};
|
|
@@ -14554,8 +14597,9 @@ const TLCaption = ({
|
|
|
14554
14597
|
}), /*#__PURE__*/React.createElement("p", null, "\xA0\xA0\xA0\xA0")), data.source && /*#__PURE__*/React.createElement("p", null, t("ES_APPLICATION_DETAILS_APPLICATION_CHANNEL_" + data.source.toUpperCase())), data.comment && /*#__PURE__*/React.createElement(Reason, {
|
|
14555
14598
|
otherComment: data === null || data === void 0 ? void 0 : data.otherComment,
|
|
14556
14599
|
headComment: data === null || data === void 0 ? void 0 : data.comment
|
|
14557
|
-
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map(e => /*#__PURE__*/React.createElement("div", {
|
|
14558
|
-
className: "TLComments"
|
|
14600
|
+
}), data !== null && data !== void 0 && data.wfComment ? /*#__PURE__*/React.createElement("div", null, data === null || data === void 0 ? void 0 : (_data$wfComment = data.wfComment) === null || _data$wfComment === void 0 ? void 0 : _data$wfComment.map((e, index) => /*#__PURE__*/React.createElement("div", {
|
|
14601
|
+
className: "TLComments",
|
|
14602
|
+
key: index
|
|
14559
14603
|
}, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
|
|
14560
14604
|
style: {
|
|
14561
14605
|
overflowX: "scroll"
|
|
@@ -14760,7 +14804,7 @@ const WSAdditonalDetails = ({
|
|
|
14760
14804
|
connectionDetails: [],
|
|
14761
14805
|
plumberDetails: []
|
|
14762
14806
|
};
|
|
14763
|
-
return /*#__PURE__*/React.createElement(Fragment
|
|
14807
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
14764
14808
|
style: {
|
|
14765
14809
|
lineHeight: "19px",
|
|
14766
14810
|
maxWidth: "950px",
|
|
@@ -14771,7 +14815,9 @@ const WSAdditonalDetails = ({
|
|
|
14771
14815
|
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14772
14816
|
className: "connection-details-new-value-wrapper"
|
|
14773
14817
|
}, connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.map((value, index) => {
|
|
14774
|
-
return /*#__PURE__*/React.createElement("div",
|
|
14818
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
14819
|
+
key: index
|
|
14820
|
+
}, /*#__PURE__*/React.createElement(Row, {
|
|
14775
14821
|
className: "border-none",
|
|
14776
14822
|
key: `${value.title}`,
|
|
14777
14823
|
label: `${t(`${value.title}`)}`,
|
|
@@ -14793,9 +14839,10 @@ const WSAdditonalDetails = ({
|
|
|
14793
14839
|
style: cardSubHeaderStyles()
|
|
14794
14840
|
}, t("WS_ROAD_CUTTING_DETAILS")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
14795
14841
|
className: "plumber-details-new-value-wrapper"
|
|
14796
|
-
}, roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.map(value => {
|
|
14842
|
+
}, roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.map((value, index) => {
|
|
14797
14843
|
var _value$values;
|
|
14798
14844
|
return /*#__PURE__*/React.createElement("div", {
|
|
14845
|
+
key: index,
|
|
14799
14846
|
style: (roadCuttingDetails === null || roadCuttingDetails === void 0 ? void 0 : roadCuttingDetails.length) > 1 ? {
|
|
14800
14847
|
border: "1px solid #D6D5D4",
|
|
14801
14848
|
background: "#FAFAFA",
|
|
@@ -14960,7 +15007,7 @@ const WSFeeEstimation = ({
|
|
|
14960
15007
|
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
14961
15008
|
result === null || result === void 0 ? void 0 : (_result$Calculation2 = result.Calculation) === null || _result$Calculation2 === void 0 ? void 0 : (_result$Calculation2$ = _result$Calculation2[0]) === null || _result$Calculation2$ === void 0 ? void 0 : (_result$Calculation2$2 = _result$Calculation2$.taxHeadEstimates) === null || _result$Calculation2$2 === void 0 ? void 0 : _result$Calculation2$2.forEach(data => data.amount = data.estimateAmount);
|
|
14962
15009
|
}
|
|
14963
|
-
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates,
|
|
15010
|
+
result.Calculation[0].billSlabData = _.groupBy(result === null || result === void 0 ? void 0 : (_result$Calculation3 = result.Calculation) === null || _result$Calculation3 === void 0 ? void 0 : (_result$Calculation3$ = _result$Calculation3[0]) === null || _result$Calculation3$ === void 0 ? void 0 : _result$Calculation3$.taxHeadEstimates, "category");
|
|
14964
15011
|
const values = [{
|
|
14965
15012
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
14966
15013
|
value: (_result$Calculation4 = result.Calculation) === null || _result$Calculation4 === void 0 ? void 0 : (_result$Calculation4$ = _result$Calculation4[0]) === null || _result$Calculation4$ === void 0 ? void 0 : _result$Calculation4$.fee
|
|
@@ -15006,7 +15053,7 @@ const WSFeeEstimation = ({
|
|
|
15006
15053
|
if (targetValueSign == 1) {
|
|
15007
15054
|
values[value] = e.target.value;
|
|
15008
15055
|
} else {
|
|
15009
|
-
values[value] =
|
|
15056
|
+
values[value] = "";
|
|
15010
15057
|
}
|
|
15011
15058
|
} else if (isDropDownValue) {
|
|
15012
15059
|
values[`${value}_data`] = e;
|
|
@@ -15021,7 +15068,7 @@ const WSFeeEstimation = ({
|
|
|
15021
15068
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
15022
15069
|
style: {
|
|
15023
15070
|
lineHeight: "19px",
|
|
15024
|
-
maxWidth: "
|
|
15071
|
+
maxWidth: "100%",
|
|
15025
15072
|
minWidth: "280px"
|
|
15026
15073
|
}
|
|
15027
15074
|
}, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
@@ -15052,15 +15099,16 @@ const WSFeeEstimation = ({
|
|
|
15052
15099
|
label: `${t(`CS_INBOX_STATUS_FILTER`)}`,
|
|
15053
15100
|
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
15054
15101
|
textStyle: !isPaid ? {
|
|
15055
|
-
color: "#
|
|
15102
|
+
color: "#D83A2F"
|
|
15056
15103
|
} : {
|
|
15057
|
-
color: "#
|
|
15104
|
+
color: "#2E9E8F"
|
|
15058
15105
|
}
|
|
15059
15106
|
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
|
|
15060
15107
|
onClick: e => {
|
|
15061
15108
|
showPopUp(true);
|
|
15062
15109
|
}
|
|
15063
15110
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15111
|
+
className: "add-details-link hover-button",
|
|
15064
15112
|
style: {
|
|
15065
15113
|
cursor: "pointer",
|
|
15066
15114
|
color: "#a82227"
|
|
@@ -15084,14 +15132,16 @@ const WSFeeEstimation = ({
|
|
|
15084
15132
|
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
15085
15133
|
hideSubmit: false,
|
|
15086
15134
|
popupStyles: {
|
|
15087
|
-
overflowY: "auto"
|
|
15135
|
+
overflowY: "auto",
|
|
15136
|
+
background: "#f0f3f7"
|
|
15088
15137
|
}
|
|
15089
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
15138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15090
15139
|
style: {
|
|
15091
|
-
|
|
15092
|
-
|
|
15140
|
+
display: "flex",
|
|
15141
|
+
flexDirection: "column",
|
|
15142
|
+
gap: "16px"
|
|
15093
15143
|
}
|
|
15094
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15144
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15095
15145
|
style: {
|
|
15096
15146
|
fontSize: "16px",
|
|
15097
15147
|
fontWeight: "700",
|
|
@@ -15099,7 +15149,7 @@ const WSFeeEstimation = ({
|
|
|
15099
15149
|
padding: "0px",
|
|
15100
15150
|
margin: "0px 0px 10px 0px"
|
|
15101
15151
|
}
|
|
15102
|
-
}, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
15152
|
+
}, t("PT_AD_PENALTY")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
15103
15153
|
className: "field"
|
|
15104
15154
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
15105
15155
|
isMandatory: true,
|
|
@@ -15110,9 +15160,7 @@ const WSFeeEstimation = ({
|
|
|
15110
15160
|
isPropertyAssess: true,
|
|
15111
15161
|
name: "adhocPenaltyReason_data",
|
|
15112
15162
|
t: t
|
|
15113
|
-
})), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("div", {
|
|
15114
|
-
className: "field"
|
|
15115
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
|
|
15163
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocPenaltyR = fields.adhocPenaltyReason_data) === null || _fields$adhocPenaltyR === void 0 ? void 0 : _fields$adhocPenaltyR.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement("div", {
|
|
15116
15164
|
className: "field"
|
|
15117
15165
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15118
15166
|
style: {
|
|
@@ -15129,7 +15177,7 @@ const WSFeeEstimation = ({
|
|
|
15129
15177
|
pattern: "^[a-zA-Z ]*$",
|
|
15130
15178
|
type: "text",
|
|
15131
15179
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
15132
|
-
})))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
15180
|
+
})))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
15133
15181
|
className: "field"
|
|
15134
15182
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15135
15183
|
style: {
|
|
@@ -15145,12 +15193,7 @@ const WSFeeEstimation = ({
|
|
|
15145
15193
|
isRequired: true,
|
|
15146
15194
|
pattern: "^[1-9]+[0-9]*$",
|
|
15147
15195
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
15148
|
-
})))), /*#__PURE__*/React.createElement(Card, {
|
|
15149
|
-
style: {
|
|
15150
|
-
padding: "10px 10px 1px 10px",
|
|
15151
|
-
margin: "0px 0px 15px 0px"
|
|
15152
|
-
}
|
|
15153
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15196
|
+
}))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15154
15197
|
style: {
|
|
15155
15198
|
fontSize: "16px",
|
|
15156
15199
|
fontWeight: "700",
|
|
@@ -15158,7 +15201,7 @@ const WSFeeEstimation = ({
|
|
|
15158
15201
|
padding: "0px",
|
|
15159
15202
|
margin: "0px 0px 10px 0px"
|
|
15160
15203
|
}
|
|
15161
|
-
}, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
15204
|
+
}, t("PT_AD_REBATE")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_TX_HEADS")), /*#__PURE__*/React.createElement("div", {
|
|
15162
15205
|
className: "field"
|
|
15163
15206
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
15164
15207
|
isMandatory: true,
|
|
@@ -15169,9 +15212,7 @@ const WSFeeEstimation = ({
|
|
|
15169
15212
|
name: "adhocRebateReason_data",
|
|
15170
15213
|
isPropertyAssess: true,
|
|
15171
15214
|
t: t
|
|
15172
|
-
})), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement("
|
|
15173
|
-
className: "field"
|
|
15174
|
-
}, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15215
|
+
}))), (fields === null || fields === void 0 ? void 0 : (_fields$adhocRebateRe = fields.adhocRebateReason_data) === null || _fields$adhocRebateRe === void 0 ? void 0 : _fields$adhocRebateRe.title) === "PT_OTHERS" && /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_REASON")), /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15175
15216
|
style: {
|
|
15176
15217
|
background: "#FAFAFA"
|
|
15177
15218
|
},
|
|
@@ -15186,7 +15227,7 @@ const WSFeeEstimation = ({
|
|
|
15186
15227
|
pattern: "^[a-zA-Z ]*$",
|
|
15187
15228
|
type: "text",
|
|
15188
15229
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
15189
|
-
}))), /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
15230
|
+
}))), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_HEAD_AMT")), /*#__PURE__*/React.createElement("div", {
|
|
15190
15231
|
className: "field"
|
|
15191
15232
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15192
15233
|
style: {
|
|
@@ -15202,7 +15243,7 @@ const WSFeeEstimation = ({
|
|
|
15202
15243
|
isRequired: true,
|
|
15203
15244
|
pattern: "^[1-9]+[0-9]*$",
|
|
15204
15245
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
15205
|
-
})))))
|
|
15246
|
+
}))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
15206
15247
|
style: {
|
|
15207
15248
|
zIndex: "10000"
|
|
15208
15249
|
},
|
|
@@ -15316,10 +15357,7 @@ const ViewBreakup = ({
|
|
|
15316
15357
|
marginTop: "12px"
|
|
15317
15358
|
}
|
|
15318
15359
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15319
|
-
|
|
15320
|
-
cursor: "pointer",
|
|
15321
|
-
color: "#a82227"
|
|
15322
|
-
}
|
|
15360
|
+
className: "add-details-link hover-button"
|
|
15323
15361
|
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15324
15362
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
15325
15363
|
label: t("WS_CALCULATION_BREAKUP")
|
|
@@ -15761,20 +15799,14 @@ function ApplicationDetailsContent({
|
|
|
15761
15799
|
oldValue,
|
|
15762
15800
|
isInfoLabel = false
|
|
15763
15801
|
}) {
|
|
15764
|
-
var _applicationDetails$a,
|
|
15802
|
+
var _applicationDetails$a, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data19, _workflowDetails$data20;
|
|
15765
15803
|
const {
|
|
15766
15804
|
t
|
|
15767
15805
|
} = useTranslation();
|
|
15768
|
-
const history = useHistory();
|
|
15769
|
-
const location = useLocation();
|
|
15770
15806
|
const [showPopup, setShowPopup] = useState(false);
|
|
15771
|
-
const [selectedData, setSelectedData] = useState(null);
|
|
15772
|
-
const searchParams = new URLSearchParams(location.search);
|
|
15773
15807
|
let {
|
|
15774
15808
|
id: applicationNo
|
|
15775
15809
|
} = useParams();
|
|
15776
|
-
const ownersSequences = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.owners;
|
|
15777
|
-
console.log("ownersSequences:- ", ownersSequences);
|
|
15778
15810
|
function OpenImage(imageSource, index, thumbnailsToShow) {
|
|
15779
15811
|
var _thumbnailsToShow$ful;
|
|
15780
15812
|
window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
|
|
@@ -15807,7 +15839,7 @@ function ApplicationDetailsContent({
|
|
|
15807
15839
|
loaded: false,
|
|
15808
15840
|
canLoad: false
|
|
15809
15841
|
});
|
|
15810
|
-
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
15842
|
+
if ((applicationData === null || applicationData === void 0 ? void 0 : applicationData.status) === "ACTIVE" && !billData.loading && !billData.loaded && !billData.canLoad) {
|
|
15811
15843
|
updateCanFetchBillData({
|
|
15812
15844
|
loading: false,
|
|
15813
15845
|
loaded: false,
|
|
@@ -15823,7 +15855,7 @@ function ApplicationDetailsContent({
|
|
|
15823
15855
|
setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
|
|
15824
15856
|
}
|
|
15825
15857
|
const convertEpochToDateDMY = dateEpoch => {
|
|
15826
|
-
if (dateEpoch == null || dateEpoch
|
|
15858
|
+
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
15827
15859
|
return "NA";
|
|
15828
15860
|
}
|
|
15829
15861
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -15907,7 +15939,6 @@ function ApplicationDetailsContent({
|
|
|
15907
15939
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc");
|
|
15908
15940
|
const isNocLocation = window.location.href.includes("employee/noc");
|
|
15909
15941
|
const isBPALocation = window.location.href.includes("employee/obps");
|
|
15910
|
-
const isWS = window.location.href.includes("employee/ws");
|
|
15911
15942
|
const getRowStyles = () => {
|
|
15912
15943
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
15913
15944
|
return {
|
|
@@ -15946,13 +15977,13 @@ function ApplicationDetailsContent({
|
|
|
15946
15977
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
|
|
15947
15978
|
return {
|
|
15948
15979
|
lineHeight: "19px",
|
|
15949
|
-
maxWidth: "
|
|
15980
|
+
maxWidth: "100%",
|
|
15950
15981
|
minWidth: "280px"
|
|
15951
15982
|
};
|
|
15952
15983
|
} else if (checkLocation) {
|
|
15953
15984
|
return {
|
|
15954
15985
|
lineHeight: "19px",
|
|
15955
|
-
maxWidth: "
|
|
15986
|
+
maxWidth: "100%",
|
|
15956
15987
|
minWidth: "280px"
|
|
15957
15988
|
};
|
|
15958
15989
|
} else {
|
|
@@ -15983,7 +16014,6 @@ function ApplicationDetailsContent({
|
|
|
15983
16014
|
const openFilePDF = fileId => {
|
|
15984
16015
|
Digit.UploadServices.Filefetch([fileId], Digit.ULBService.getStateId()).then(res => {
|
|
15985
16016
|
var _res$data, _res$data$fileStoreId, _res$data$fileStoreId2;
|
|
15986
|
-
console.log("Response of file:", res);
|
|
15987
16017
|
const concatenatedUrls = res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$fileStoreId = _res$data.fileStoreIds) === null || _res$data$fileStoreId === void 0 ? void 0 : (_res$data$fileStoreId2 = _res$data$fileStoreId[0]) === null || _res$data$fileStoreId2 === void 0 ? void 0 : _res$data$fileStoreId2.url;
|
|
15988
16018
|
if (concatenatedUrls) {
|
|
15989
16019
|
const urlArray = concatenatedUrls.split(",");
|
|
@@ -16001,7 +16031,6 @@ function ApplicationDetailsContent({
|
|
|
16001
16031
|
});
|
|
16002
16032
|
};
|
|
16003
16033
|
const handleViewClick = data => {
|
|
16004
|
-
setSelectedData(data);
|
|
16005
16034
|
setShowPopup(true);
|
|
16006
16035
|
};
|
|
16007
16036
|
return /*#__PURE__*/React.createElement(Card, {
|
|
@@ -16016,19 +16045,19 @@ function ApplicationDetailsContent({
|
|
|
16016
16045
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
16017
16046
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
16018
16047
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
16019
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
16020
|
-
var _detail$values, _detail$additionalDet, _applicationDetails$
|
|
16048
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
16049
|
+
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, _detail$additionalDet0, _detail$additionalDet1, _workflowDetails$data, _workflowDetails$data2, _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, _detail$additionalDet28, _detail$additionalDet29;
|
|
16021
16050
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16022
16051
|
key: index
|
|
16023
16052
|
}, /*#__PURE__*/React.createElement("div", {
|
|
16024
16053
|
style: getMainDivStyles()
|
|
16025
|
-
}, index === 0 && !detail.asSectionHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
16054
|
+
}, (detail === null || detail === void 0 ? void 0 : (_detail$title = detail.title) === null || _detail$title === void 0 ? void 0 : _detail$title.trim()) && (index === 0 && !detail.asSectionHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
|
|
16026
16055
|
style: {
|
|
16027
16056
|
marginBottom: "16px",
|
|
16028
16057
|
fontSize: "24px"
|
|
16029
16058
|
}
|
|
16030
|
-
}, t(detail.title)) : /*#__PURE__*/React.createElement(
|
|
16031
|
-
style: index
|
|
16059
|
+
}, t(detail.title)) : /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
16060
|
+
style: index === 0 && checkLocation ? {
|
|
16032
16061
|
marginBottom: "16px",
|
|
16033
16062
|
fontSize: "24px"
|
|
16034
16063
|
} : {
|
|
@@ -16036,26 +16065,28 @@ function ApplicationDetailsContent({
|
|
|
16036
16065
|
marginTop: "32px",
|
|
16037
16066
|
fontSize: "24px"
|
|
16038
16067
|
}
|
|
16039
|
-
},
|
|
16068
|
+
}, t(detail.title), detail !== null && detail !== void 0 && detail.Component ? /*#__PURE__*/React.createElement(detail.Component, null) : null)), (detail === null || detail === void 0 ? void 0 : detail.isTable) && /*#__PURE__*/React.createElement("table", {
|
|
16040
16069
|
style: {
|
|
16041
16070
|
tableLayout: "fixed",
|
|
16042
16071
|
width: "100%",
|
|
16043
16072
|
borderCollapse: "collapse",
|
|
16044
|
-
borderCollapse: "collapse",
|
|
16045
16073
|
border: "1px solid black"
|
|
16046
16074
|
}
|
|
16047
16075
|
}, /*#__PURE__*/React.createElement("tr", {
|
|
16048
16076
|
style: {
|
|
16049
16077
|
textAlign: "left"
|
|
16050
16078
|
}
|
|
16051
|
-
}, detail === null || detail === void 0 ? void 0 : detail.headers.map(header => /*#__PURE__*/React.createElement("th", {
|
|
16079
|
+
}, detail === null || detail === void 0 ? void 0 : detail.headers.map((header, index) => /*#__PURE__*/React.createElement("th", {
|
|
16052
16080
|
style: {
|
|
16053
16081
|
padding: "10px",
|
|
16054
16082
|
paddingLeft: "5px",
|
|
16055
16083
|
border: "1px solid black"
|
|
16056
|
-
}
|
|
16084
|
+
},
|
|
16085
|
+
key: index
|
|
16057
16086
|
}, t(header)))), detail === null || detail === void 0 ? void 0 : detail.tableRows.map((row, index) => {
|
|
16058
|
-
return /*#__PURE__*/React.createElement("tr",
|
|
16087
|
+
return /*#__PURE__*/React.createElement("tr", {
|
|
16088
|
+
key: index
|
|
16089
|
+
}, row.map((element, idx) => Array.isArray(element) && element.length > 1 && detail.isMaintenance === true ? /*#__PURE__*/React.createElement("td", {
|
|
16059
16090
|
style: {
|
|
16060
16091
|
paddingTop: "20px",
|
|
16061
16092
|
textAlign: "left",
|
|
@@ -16069,7 +16100,9 @@ function ApplicationDetailsContent({
|
|
|
16069
16100
|
flexWrap: "nowrap",
|
|
16070
16101
|
gap: "5px"
|
|
16071
16102
|
}
|
|
16072
|
-
}, element.map((file, fileIndex) =>
|
|
16103
|
+
}, element.map((file, fileIndex) =>
|
|
16104
|
+
/*#__PURE__*/
|
|
16105
|
+
React.createElement("a", {
|
|
16073
16106
|
key: fileIndex,
|
|
16074
16107
|
onClick: () => openFilePDF(file.fileStoreId),
|
|
16075
16108
|
rel: "noopener noreferrer",
|
|
@@ -16091,7 +16124,7 @@ function ApplicationDetailsContent({
|
|
|
16091
16124
|
border: "1px solid black",
|
|
16092
16125
|
verticalAlign: "middle"
|
|
16093
16126
|
}
|
|
16094
|
-
},
|
|
16127
|
+
}, element && element.editButton === true ? /*#__PURE__*/React.createElement("span", {
|
|
16095
16128
|
style: {
|
|
16096
16129
|
display: "inline-flex",
|
|
16097
16130
|
gap: "10px",
|
|
@@ -16106,7 +16139,7 @@ function ApplicationDetailsContent({
|
|
|
16106
16139
|
}
|
|
16107
16140
|
}, /*#__PURE__*/React.createElement("button", null, " ", /*#__PURE__*/React.createElement(EditIcon, null), " ")), /*#__PURE__*/React.createElement("div", {
|
|
16108
16141
|
key: index,
|
|
16109
|
-
onClick: () => handleViewClick(
|
|
16142
|
+
onClick: () => handleViewClick(),
|
|
16110
16143
|
style: {
|
|
16111
16144
|
cursor: "pointer"
|
|
16112
16145
|
}
|
|
@@ -16132,7 +16165,7 @@ function ApplicationDetailsContent({
|
|
|
16132
16165
|
})
|
|
16133
16166
|
});
|
|
16134
16167
|
}
|
|
16135
|
-
if ((value === null || value === void 0 ? void 0 : value.isLink)
|
|
16168
|
+
if ((value === null || value === void 0 ? void 0 : value.isLink) === true) {
|
|
16136
16169
|
var _detail$values2;
|
|
16137
16170
|
return /*#__PURE__*/React.createElement(Row, {
|
|
16138
16171
|
key: t(value.title),
|
|
@@ -16168,7 +16201,9 @@ function ApplicationDetailsContent({
|
|
|
16168
16201
|
}
|
|
16169
16202
|
});
|
|
16170
16203
|
}
|
|
16171
|
-
return /*#__PURE__*/React.createElement("div",
|
|
16204
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16205
|
+
key: index
|
|
16206
|
+
}, window.location.href.includes("modify") ? /*#__PURE__*/React.createElement(Row, {
|
|
16172
16207
|
className: "border-none",
|
|
16173
16208
|
key: `${value.title}`,
|
|
16174
16209
|
label: `${t(`${value.title}`)}`,
|
|
@@ -16205,8 +16240,8 @@ function ApplicationDetailsContent({
|
|
|
16205
16240
|
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
|
|
16206
16241
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
16207
16242
|
paymentsList: paymentsList
|
|
16208
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
16209
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
16243
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationData) === null || _applicationDetails$a2 === void 0 ? void 0 : (_applicationDetails$a3 = _applicationDetails$a2.additionalDetails) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.fieldinspection_pending) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
|
|
16244
|
+
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
|
|
16210
16245
|
}), (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, {
|
|
16211
16246
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
16212
16247
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
|
|
@@ -16248,21 +16283,11 @@ function ApplicationDetailsContent({
|
|
|
16248
16283
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
16249
16284
|
wsAdditionalDetails: detail,
|
|
16250
16285
|
oldValue: oldValue
|
|
16251
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(
|
|
16252
|
-
style: {
|
|
16253
|
-
fontSize: "16px",
|
|
16254
|
-
lineHeight: "24px",
|
|
16255
|
-
fontWeight: "400",
|
|
16256
|
-
padding: "10px 0px"
|
|
16257
|
-
}
|
|
16258
|
-
}, /*#__PURE__*/React.createElement(Link, {
|
|
16286
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(Link, {
|
|
16259
16287
|
to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet24 = detail.additionalDetails) === null || _detail$additionalDet24 === void 0 ? void 0 : (_detail$additionalDet25 = _detail$additionalDet24.redirectUrl) === null || _detail$additionalDet25 === void 0 ? void 0 : _detail$additionalDet25.url
|
|
16260
16288
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16261
|
-
className: "link"
|
|
16262
|
-
|
|
16263
|
-
color: "#a82227"
|
|
16264
|
-
}
|
|
16265
|
-
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
16289
|
+
className: "add-details-link hover-button"
|
|
16290
|
+
}, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet26 = detail.additionalDetails) === null || _detail$additionalDet26 === void 0 ? void 0 : (_detail$additionalDet27 = _detail$additionalDet26.redirectUrl) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.title)), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.estimationDetails) && /*#__PURE__*/React.createElement(WSFeeEstimation, {
|
|
16266
16291
|
wsAdditionalDetails: detail,
|
|
16267
16292
|
workflowDetails: workflowDetails
|
|
16268
16293
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet29 = detail.additionalDetails) === null || _detail$additionalDet29 === void 0 ? void 0 : _detail$additionalDet29.estimationDetails) && /*#__PURE__*/React.createElement(ViewBreakup, {
|
|
@@ -16285,7 +16310,7 @@ function ApplicationDetailsContent({
|
|
|
16285
16310
|
let timelineStatusPostfix = "";
|
|
16286
16311
|
if (window.location.href.includes("/obps/")) {
|
|
16287
16312
|
var _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17;
|
|
16288
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index
|
|
16313
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.timeline[index - 1]) !== null && _workflowDetails$data13 !== void 0 && (_workflowDetails$data14 = _workflowDetails$data13.state) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data15 = workflowDetails.data) !== null && _workflowDetails$data15 !== void 0 && (_workflowDetails$data16 = _workflowDetails$data15.timeline[index - 1]) !== null && _workflowDetails$data16 !== void 0 && (_workflowDetails$data17 = _workflowDetails$data16.state) !== null && _workflowDetails$data17 !== void 0 && _workflowDetails$data17.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index === 0 ? "" : `_DONE`;
|
|
16289
16314
|
}
|
|
16290
16315
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16291
16316
|
key: index
|
|
@@ -16815,7 +16840,8 @@ const ApplicationDetails = props => {
|
|
|
16815
16840
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
16816
16841
|
businessService: businessService,
|
|
16817
16842
|
workflowDetails: workflowDetails,
|
|
16818
|
-
moduleCode: moduleCode
|
|
16843
|
+
moduleCode: moduleCode,
|
|
16844
|
+
cardFormWrapperClassName: "modal-form"
|
|
16819
16845
|
}) : null, isWarningPop ? /*#__PURE__*/React.createElement(ApplicationDetailsWarningPopup, {
|
|
16820
16846
|
action: selectedAction,
|
|
16821
16847
|
workflowDetails: workflowDetails,
|
|
@@ -17240,33 +17266,35 @@ const PropertyAssemblyDetails = ({
|
|
|
17240
17266
|
setError,
|
|
17241
17267
|
clearErrors
|
|
17242
17268
|
}) => {
|
|
17243
|
-
var _formData$usageCatego, _formData$usageCatego2, _Menu$PropertyTax, _Menu1$PropertyTax, _errors$BuildingType, _errors$floorarea, _errors$constructionA, _errors$usageCategory;
|
|
17269
|
+
var _formData$usageCatego, _formData$usageCatego2, _Menu$PropertyTax, _Menu1$PropertyTax, _errors$BuildingType, _errors$BuildingType2, _errors$floorarea, _errors$floorarea2, _errors$constructionA, _errors$constructionA2, _errors$usageCategory, _errors$usageCategory2;
|
|
17244
17270
|
const [assemblyDetails, setAssemblyDetails] = React.useState({
|
|
17245
17271
|
...formData.assemblyDet,
|
|
17246
|
-
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17272
|
+
BuildingType: formData === null || formData === void 0 ? void 0 : formData.PropertyType,
|
|
17273
|
+
floorarea: formData === null || formData === void 0 ? void 0 : formData.landArea,
|
|
17274
|
+
constructionArea: formData === null || formData === void 0 ? void 0 : formData.constructionArea,
|
|
17275
|
+
usageCategoryMajor: formData !== null && formData !== void 0 && formData.usageCategoryMajor && (formData === null || formData === void 0 ? void 0 : (_formData$usageCatego = formData.usageCategoryMajor) === null || _formData$usageCatego === void 0 ? void 0 : _formData$usageCatego.code) === "NONRESIDENTIAL.OTHERS" ? {
|
|
17250
17276
|
code: `${formData === null || formData === void 0 ? void 0 : (_formData$usageCatego2 = formData.usageCategoryMajor) === null || _formData$usageCatego2 === void 0 ? void 0 : _formData$usageCatego2.code}`,
|
|
17251
17277
|
i18nKey: `PROPERTYTAX_BILLING_SLAB_OTHERS`
|
|
17252
17278
|
} : formData === null || formData === void 0 ? void 0 : formData.usageCategoryMajor
|
|
17253
17279
|
});
|
|
17254
17280
|
const [focusField, setFocusField] = React.useState("");
|
|
17255
|
-
|
|
17281
|
+
let tenantId = "dl.djb";
|
|
17256
17282
|
const [isErrors, setIsErrors] = useState(false);
|
|
17257
17283
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
17258
17284
|
let proptype = [];
|
|
17285
|
+
console.log("Calling usePropertyMDMS with tenantId:", tenantId);
|
|
17259
17286
|
const {
|
|
17260
|
-
data: Menu =
|
|
17287
|
+
data: Menu = [],
|
|
17261
17288
|
isLoading
|
|
17262
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17263
|
-
|
|
17289
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", "PTPropertyType") || {};
|
|
17290
|
+
console.log("PropertyType Menu Data (transformed):", Menu);
|
|
17291
|
+
proptype = (Menu === null || Menu === void 0 ? void 0 : (_Menu$PropertyTax = Menu.PropertyTax) === null || _Menu$PropertyTax === void 0 ? void 0 : _Menu$PropertyTax.PropertyType) || (Array.isArray(Menu) ? Menu : []);
|
|
17264
17292
|
const {
|
|
17265
|
-
data: Menu1 =
|
|
17293
|
+
data: Menu1 = [],
|
|
17266
17294
|
isLoading: menuLoading
|
|
17267
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17268
|
-
|
|
17269
|
-
usagecat = (Menu1 === null || Menu1 === void 0 ? void 0 : (_Menu1$PropertyTax = Menu1.PropertyTax) === null || _Menu1$PropertyTax === void 0 ? void 0 : _Menu1$PropertyTax.UsageCategory) || [];
|
|
17295
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", "UsageCategory") || {};
|
|
17296
|
+
console.log("UsageCategory Menu Data (transformed):", Menu1);
|
|
17297
|
+
let usagecat = (Menu1 === null || Menu1 === void 0 ? void 0 : (_Menu1$PropertyTax = Menu1.PropertyTax) === null || _Menu1$PropertyTax === void 0 ? void 0 : _Menu1$PropertyTax.UsageCategory) || (Array.isArray(Menu1) ? Menu1 : []);
|
|
17270
17298
|
function getPropertyTypeMenu(proptype) {
|
|
17271
17299
|
if (userType === "employee") {
|
|
17272
17300
|
var _proptype$filter, _proptype$filter$map;
|
|
@@ -17275,9 +17303,10 @@ const PropertyAssemblyDetails = ({
|
|
|
17275
17303
|
code: item === null || item === void 0 ? void 0 : item.code
|
|
17276
17304
|
}))) === null || _proptype$filter$map === void 0 ? void 0 : _proptype$filter$map.sort((a, b) => a.i18nKey.split("_").pop().localeCompare(b.i18nKey.split("_").pop()));
|
|
17277
17305
|
} else {
|
|
17306
|
+
let menu = [];
|
|
17278
17307
|
if (Array.isArray(proptype) && proptype.length > 0) {
|
|
17279
|
-
for (i = 0; i < proptype.length; i++) {
|
|
17280
|
-
if (i != 1 && i != 4
|
|
17308
|
+
for (let i = 0; i < proptype.length; i++) {
|
|
17309
|
+
if (i != 1 && i != 4) menu.push({
|
|
17281
17310
|
i18nKey: "COMMON_PROPTYPE_" + stringReplaceAll(proptype[i].code, ".", "_"),
|
|
17282
17311
|
code: proptype[i].code
|
|
17283
17312
|
});
|
|
@@ -17302,8 +17331,10 @@ const PropertyAssemblyDetails = ({
|
|
|
17302
17331
|
});
|
|
17303
17332
|
return catMenu;
|
|
17304
17333
|
} else {
|
|
17305
|
-
|
|
17306
|
-
|
|
17334
|
+
let menu = [];
|
|
17335
|
+
for (let i = 0; i < usagecat.length; i++) {
|
|
17336
|
+
var _usagecat$i, _usagecat$i$code, _usagecat$i$code$spli, _usagecat$i2, _usagecat$i2$code, _usagecat$i2$code$spl;
|
|
17337
|
+
if (Array.isArray(usagecat) && usagecat.length > 0 && ((_usagecat$i = usagecat[i]) === null || _usagecat$i === void 0 ? void 0 : (_usagecat$i$code = _usagecat$i.code) === null || _usagecat$i$code === void 0 ? void 0 : (_usagecat$i$code$spli = _usagecat$i$code.split) === null || _usagecat$i$code$spli === void 0 ? void 0 : _usagecat$i$code$spli.call(_usagecat$i$code, ".")[0]) == "NONRESIDENTIAL" && ((_usagecat$i2 = usagecat[i]) === null || _usagecat$i2 === void 0 ? void 0 : (_usagecat$i2$code = _usagecat$i2.code) === null || _usagecat$i2$code === void 0 ? void 0 : (_usagecat$i2$code$spl = _usagecat$i2$code.split) === null || _usagecat$i2$code$spl === void 0 ? void 0 : _usagecat$i2$code$spl.call(_usagecat$i2$code, ".").length) == 2) {
|
|
17307
17338
|
menu.push({
|
|
17308
17339
|
i18nKey: "PROPERTYTAX_BILLING_SLAB_" + usagecat[i].code.split(".")[1],
|
|
17309
17340
|
code: usagecat[i].code
|
|
@@ -17370,8 +17401,8 @@ const PropertyAssemblyDetails = ({
|
|
|
17370
17401
|
clearErrors(config.key);
|
|
17371
17402
|
}
|
|
17372
17403
|
}, [errors]);
|
|
17373
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(
|
|
17374
|
-
|
|
17404
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_PROP_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17405
|
+
className: "form-field"
|
|
17375
17406
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17376
17407
|
name: "BuildingType",
|
|
17377
17408
|
control: control,
|
|
@@ -17391,7 +17422,7 @@ const PropertyAssemblyDetails = ({
|
|
|
17391
17422
|
props.onChange(value);
|
|
17392
17423
|
setAssemblyDetails({
|
|
17393
17424
|
...assemblyDetails,
|
|
17394
|
-
[
|
|
17425
|
+
["BuildingType"]: value
|
|
17395
17426
|
});
|
|
17396
17427
|
setFocusField("BuildingType");
|
|
17397
17428
|
},
|
|
@@ -17400,9 +17431,9 @@ const PropertyAssemblyDetails = ({
|
|
|
17400
17431
|
t: t
|
|
17401
17432
|
});
|
|
17402
17433
|
}
|
|
17403
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17434
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.BuildingType) && (errors === null || errors === void 0 ? void 0 : (_errors$BuildingType = errors.BuildingType) === null || _errors$BuildingType === void 0 ? void 0 : _errors$BuildingType.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17404
17435
|
style: errorStyle
|
|
17405
|
-
},
|
|
17436
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$BuildingType2 = errors.BuildingType) === null || _errors$BuildingType2 === void 0 ? void 0 : _errors$BuildingType2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_TOT_LAND_AREA")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17406
17437
|
className: "form-field"
|
|
17407
17438
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17408
17439
|
name: "floorarea",
|
|
@@ -17425,15 +17456,15 @@ const PropertyAssemblyDetails = ({
|
|
|
17425
17456
|
props === null || props === void 0 ? void 0 : props.onChange(ev.target.value);
|
|
17426
17457
|
setAssemblyDetails({
|
|
17427
17458
|
...assemblyDetails,
|
|
17428
|
-
[
|
|
17459
|
+
["floorarea"]: ev.target.value
|
|
17429
17460
|
});
|
|
17430
17461
|
setFocusField("floorarea");
|
|
17431
17462
|
},
|
|
17432
17463
|
onBlur: props === null || props === void 0 ? void 0 : props.onBlur
|
|
17433
17464
|
})
|
|
17434
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17465
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.floorarea) && (errors === null || errors === void 0 ? void 0 : (_errors$floorarea = errors.floorarea) === null || _errors$floorarea === void 0 ? void 0 : _errors$floorarea.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17435
17466
|
style: errorStyle
|
|
17436
|
-
},
|
|
17467
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$floorarea2 = errors.floorarea) === null || _errors$floorarea2 === void 0 ? void 0 : _errors$floorarea2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_TOT_CONSTRUCTION_AREA")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17437
17468
|
className: "form-field"
|
|
17438
17469
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17439
17470
|
name: "constructionArea",
|
|
@@ -17457,19 +17488,19 @@ const PropertyAssemblyDetails = ({
|
|
|
17457
17488
|
setFocusField("constructionArea");
|
|
17458
17489
|
setAssemblyDetails({
|
|
17459
17490
|
...assemblyDetails,
|
|
17460
|
-
[
|
|
17491
|
+
["constructionArea"]: ev.target.value
|
|
17461
17492
|
});
|
|
17462
17493
|
},
|
|
17463
17494
|
onBlur: props === null || props === void 0 ? void 0 : props.onBlur
|
|
17464
17495
|
})
|
|
17465
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17496
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.constructionArea) && (errors === null || errors === void 0 ? void 0 : (_errors$constructionA = errors.constructionArea) === null || _errors$constructionA === void 0 ? void 0 : _errors$constructionA.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17466
17497
|
style: isMobile ? {
|
|
17467
17498
|
...errorStyle,
|
|
17468
17499
|
marginLeft: "0px"
|
|
17469
17500
|
} : {
|
|
17470
17501
|
...errorStyle
|
|
17471
17502
|
}
|
|
17472
|
-
},
|
|
17503
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$constructionA2 = errors.constructionArea) === null || _errors$constructionA2 === void 0 ? void 0 : _errors$constructionA2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_ASSESMENT_INFO_USAGE_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17473
17504
|
className: "form-field"
|
|
17474
17505
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17475
17506
|
name: "usageCategoryMajor",
|
|
@@ -17491,7 +17522,7 @@ const PropertyAssemblyDetails = ({
|
|
|
17491
17522
|
setFocusField("usageCategoryMajor");
|
|
17492
17523
|
setAssemblyDetails({
|
|
17493
17524
|
...assemblyDetails,
|
|
17494
|
-
[
|
|
17525
|
+
["usageCategoryMajor"]: value
|
|
17495
17526
|
});
|
|
17496
17527
|
},
|
|
17497
17528
|
optionKey: "i18nKey",
|
|
@@ -17499,9 +17530,9 @@ const PropertyAssemblyDetails = ({
|
|
|
17499
17530
|
t: t
|
|
17500
17531
|
});
|
|
17501
17532
|
}
|
|
17502
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17533
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.usageCategoryMajor) && (errors === null || errors === void 0 ? void 0 : (_errors$usageCategory = errors.usageCategoryMajor) === null || _errors$usageCategory === void 0 ? void 0 : _errors$usageCategory.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17503
17534
|
style: errorStyle
|
|
17504
|
-
},
|
|
17535
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$usageCategory2 = errors.usageCategoryMajor) === null || _errors$usageCategory2 === void 0 ? void 0 : _errors$usageCategory2.message));
|
|
17505
17536
|
};
|
|
17506
17537
|
|
|
17507
17538
|
const PropertyLocationDetails = ({
|
|
@@ -17515,7 +17546,7 @@ const PropertyLocationDetails = ({
|
|
|
17515
17546
|
setError,
|
|
17516
17547
|
clearErrors
|
|
17517
17548
|
}) => {
|
|
17518
|
-
var _Digit$UserService$ge, _errors$cityCode, _errors$locality, _errors$houseDoorNo, _errors$buildingColon, _errors$landmarkName;
|
|
17549
|
+
var _Digit$UserService$ge, _errors$cityCode, _errors$cityCode2, _errors$locality, _errors$locality2, _errors$houseDoorNo, _errors$houseDoorNo2, _errors$buildingColon, _errors$buildingColon2, _errors$landmarkName, _errors$landmarkName2;
|
|
17519
17550
|
let validation = {};
|
|
17520
17551
|
let allCities = Digit.Hooks.pt.useTenants() ? Digit.Hooks.pt.useTenants() : Digit.Hooks.tl.useTenants();
|
|
17521
17552
|
if (window.location.href.includes("obps")) {
|
|
@@ -17527,13 +17558,12 @@ const PropertyLocationDetails = ({
|
|
|
17527
17558
|
}
|
|
17528
17559
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
17529
17560
|
userType = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) == "EMPLOYEE" ? "employee" : "citizen";
|
|
17530
|
-
const cityId = userInfo === null || userInfo === void 0 ? void 0 : userInfo.tenantId;
|
|
17531
17561
|
const cityName = 'TENANT_TENANTS_' + (userInfo === null || userInfo === void 0 ? void 0 : userInfo.tenantId.replace('.', '_').toUpperCase());
|
|
17532
|
-
const cityObj =
|
|
17533
|
-
code:
|
|
17534
|
-
name: t(
|
|
17535
|
-
i18nKey:
|
|
17536
|
-
}
|
|
17562
|
+
const cityObj = (allCities || []).find(city => city.code === ((userInfo === null || userInfo === void 0 ? void 0 : userInfo.tenantId) || "dl.djb")) || {
|
|
17563
|
+
code: "dl.djb",
|
|
17564
|
+
name: t("TENANT_TENANTS_DL_DJB"),
|
|
17565
|
+
i18nKey: "TENANT_TENANTS_DL_DJB"
|
|
17566
|
+
};
|
|
17537
17567
|
const [locationDetails, setLocationDetails] = React.useState({
|
|
17538
17568
|
...(formData === null || formData === void 0 ? void 0 : formData.locationDet),
|
|
17539
17569
|
cityCode: cityObj,
|
|
@@ -17600,8 +17630,10 @@ const PropertyLocationDetails = ({
|
|
|
17600
17630
|
fontSize: "12px",
|
|
17601
17631
|
marginTop: "-21px"
|
|
17602
17632
|
};
|
|
17603
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t('PT_PROP_CITY')}*`), /*#__PURE__*/React.createElement(
|
|
17604
|
-
|
|
17633
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t('PT_PROP_CITY')}*`), /*#__PURE__*/React.createElement("div", {
|
|
17634
|
+
className: "form-field"
|
|
17635
|
+
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17636
|
+
name: "cityCode",
|
|
17605
17637
|
defaultValue: locationDetails === null || locationDetails === void 0 ? void 0 : locationDetails.cityCode,
|
|
17606
17638
|
control: control,
|
|
17607
17639
|
rules: {
|
|
@@ -17612,10 +17644,9 @@ const PropertyLocationDetails = ({
|
|
|
17612
17644
|
onBlur,
|
|
17613
17645
|
onChange
|
|
17614
17646
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
17615
|
-
className: "form-field",
|
|
17616
17647
|
selected: value,
|
|
17617
|
-
disable:
|
|
17618
|
-
option: allCities.sort((a, b) => a.name > b.name ? 1 : b.name > a.name ? -1 : 0),
|
|
17648
|
+
disable: true,
|
|
17649
|
+
option: (allCities || []).sort((a, b) => a.name > b.name ? 1 : b.name > a.name ? -1 : 0),
|
|
17619
17650
|
select: value => {
|
|
17620
17651
|
onChange(value);
|
|
17621
17652
|
setLocationDetails({
|
|
@@ -17627,9 +17658,9 @@ const PropertyLocationDetails = ({
|
|
|
17627
17658
|
onBlur: onBlur,
|
|
17628
17659
|
t: t
|
|
17629
17660
|
})
|
|
17630
|
-
})), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17661
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.cityCode) && (errors === null || errors === void 0 ? void 0 : (_errors$cityCode = errors.cityCode) === null || _errors$cityCode === void 0 ? void 0 : _errors$cityCode.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17631
17662
|
style: errorStyle
|
|
17632
|
-
},
|
|
17663
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$cityCode2 = errors.cityCode) === null || _errors$cityCode2 === void 0 ? void 0 : _errors$cityCode2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_PROP_LOCALITY")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17633
17664
|
className: "form-field"
|
|
17634
17665
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17635
17666
|
name: "locality",
|
|
@@ -17666,9 +17697,9 @@ const PropertyLocationDetails = ({
|
|
|
17666
17697
|
onBlur: onBlur
|
|
17667
17698
|
});
|
|
17668
17699
|
}
|
|
17669
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17700
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.locality) && (errors === null || errors === void 0 ? void 0 : (_errors$locality = errors.locality) === null || _errors$locality === void 0 ? void 0 : _errors$locality.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17670
17701
|
style: errorStyle
|
|
17671
|
-
},
|
|
17702
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$locality2 = errors.locality) === null || _errors$locality2 === void 0 ? void 0 : _errors$locality2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_HOUSE_DOOR_NO")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17672
17703
|
className: "form-field"
|
|
17673
17704
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17674
17705
|
name: "houseDoorNo",
|
|
@@ -17701,9 +17732,9 @@ const PropertyLocationDetails = ({
|
|
|
17701
17732
|
pattern: "^([a-zA-Z0-9 !@#$%^&*()_+\-={};':\\\\|,.<>/?]){1,64}$",
|
|
17702
17733
|
title: t("PT_HOUSE_DOOR_NO_ERROR_MESSAGE")
|
|
17703
17734
|
}))
|
|
17704
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17735
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.houseDoorNo) && (errors === null || errors === void 0 ? void 0 : (_errors$houseDoorNo = errors.houseDoorNo) === null || _errors$houseDoorNo === void 0 ? void 0 : _errors$houseDoorNo.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17705
17736
|
style: errorStyle
|
|
17706
|
-
},
|
|
17737
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$houseDoorNo2 = errors.houseDoorNo) === null || _errors$houseDoorNo2 === void 0 ? void 0 : _errors$houseDoorNo2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_PROPERTY_ADDRESS_STREET_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
17707
17738
|
className: "form-field"
|
|
17708
17739
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17709
17740
|
name: "buildingColonyName",
|
|
@@ -17732,9 +17763,9 @@ const PropertyLocationDetails = ({
|
|
|
17732
17763
|
},
|
|
17733
17764
|
onBlur: onBlur
|
|
17734
17765
|
})
|
|
17735
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17766
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.buildingColonyName) && (errors === null || errors === void 0 ? void 0 : (_errors$buildingColon = errors.buildingColonyName) === null || _errors$buildingColon === void 0 ? void 0 : _errors$buildingColon.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17736
17767
|
style: errorStyle
|
|
17737
|
-
},
|
|
17768
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$buildingColon2 = errors.buildingColonyName) === null || _errors$buildingColon2 === void 0 ? void 0 : _errors$buildingColon2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_LANDMARK_NAME")}`), /*#__PURE__*/React.createElement("div", {
|
|
17738
17769
|
className: "form-field"
|
|
17739
17770
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17740
17771
|
name: "landmarkName",
|
|
@@ -17761,9 +17792,9 @@ const PropertyLocationDetails = ({
|
|
|
17761
17792
|
},
|
|
17762
17793
|
onBlur: onBlur
|
|
17763
17794
|
})
|
|
17764
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17795
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched.landmarkName) && (errors === null || errors === void 0 ? void 0 : (_errors$landmarkName = errors.landmarkName) === null || _errors$landmarkName === void 0 ? void 0 : _errors$landmarkName.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
17765
17796
|
style: errorStyle
|
|
17766
|
-
},
|
|
17797
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$landmarkName2 = errors.landmarkName) === null || _errors$landmarkName2 === void 0 ? void 0 : _errors$landmarkName2.message));
|
|
17767
17798
|
};
|
|
17768
17799
|
|
|
17769
17800
|
const getAddress = (address, t) => {
|
|
@@ -17780,7 +17811,7 @@ const PropertyOwnerDetails = ({
|
|
|
17780
17811
|
setError,
|
|
17781
17812
|
clearErrors
|
|
17782
17813
|
}) => {
|
|
17783
|
-
var _formData$owners, _formData$owners2, _formData$owners3, _formData$owners4, _formData$owners5, _formData$owners$inde, _formData$owners6, _formData$owners7, _formData$owners8, _formData$owners9, _ownershipCategory$co, _ownershipCategory$co2, _formState$errors, _formState$errors$mul;
|
|
17814
|
+
var _formData$owners, _formData$owners2, _formData$owners3, _formData$owners4, _formData$owners5, _formData$owners$inde, _formData$owners6, _formData$owners7, _formData$owners8, _rawMenu1$PropertyTax, _formData$owners9, _ownershipCategory$co, _ownershipCategory$co2, _formState$errors, _formState$errors$mul;
|
|
17784
17815
|
const {
|
|
17785
17816
|
pathname: url
|
|
17786
17817
|
} = useLocation();
|
|
@@ -17807,6 +17838,7 @@ const PropertyOwnerDetails = ({
|
|
|
17807
17838
|
const isUpdateProperty = (formData === null || formData === void 0 ? void 0 : formData.isUpdateProperty) || false;
|
|
17808
17839
|
let isEditProperty = (formData === null || formData === void 0 ? void 0 : formData.isEditProperty) || false;
|
|
17809
17840
|
const stateId = Digit.ULBService.getStateId();
|
|
17841
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
17810
17842
|
const {
|
|
17811
17843
|
data: Menu
|
|
17812
17844
|
} = Digit.Hooks.pt.useGenderMDMS(stateId, "common-masters", "GenderType");
|
|
@@ -17819,18 +17851,14 @@ const PropertyOwnerDetails = ({
|
|
|
17819
17851
|
});
|
|
17820
17852
|
});
|
|
17821
17853
|
const {
|
|
17822
|
-
data:
|
|
17823
|
-
} = Digit.Hooks.tl.useTradeLicenseMDMS(stateId, "common-masters", "TLOwnerTypeWithSubtypes", {
|
|
17824
|
-
userType
|
|
17825
|
-
});
|
|
17826
|
-
const {
|
|
17827
|
-
data: Menu1,
|
|
17854
|
+
data: rawMenu1,
|
|
17828
17855
|
isLoading
|
|
17829
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17856
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", "OwnerType");
|
|
17857
|
+
const Menu1 = (rawMenu1 === null || rawMenu1 === void 0 ? void 0 : (_rawMenu1$PropertyTax = rawMenu1.PropertyTax) === null || _rawMenu1$PropertyTax === void 0 ? void 0 : _rawMenu1$PropertyTax.OwnerType) || (Array.isArray(rawMenu1) ? rawMenu1 : []);
|
|
17830
17858
|
const {
|
|
17831
17859
|
data: mdmsData,
|
|
17832
17860
|
isLoading: isMdmsDataLoading
|
|
17833
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17861
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", ["OwnerShipCategory"]);
|
|
17834
17862
|
const [isCorrespondenceAddress, setIsCorrespondenceAddress] = useState(formData === null || formData === void 0 ? void 0 : (_formData$owners9 = formData.owners) === null || _formData$owners9 === void 0 ? void 0 : _formData$owners9.isCorrespondenceAddress);
|
|
17835
17863
|
function setCorrespondenceAddress(e, ind) {
|
|
17836
17864
|
let address = "";
|
|
@@ -17894,7 +17922,7 @@ const PropertyOwnerDetails = ({
|
|
|
17894
17922
|
setIsErrors(hasErrors);
|
|
17895
17923
|
onSelect(config === null || config === void 0 ? void 0 : config.key, ownerDetails.map(own => ({
|
|
17896
17924
|
...own,
|
|
17897
|
-
ownershipCategory: ownershipCategory
|
|
17925
|
+
ownershipCategory: ownershipCategory
|
|
17898
17926
|
})));
|
|
17899
17927
|
}, [ownerDetails]);
|
|
17900
17928
|
useEffect(() => {
|
|
@@ -17917,10 +17945,17 @@ const PropertyOwnerDetails = ({
|
|
|
17917
17945
|
};
|
|
17918
17946
|
}));
|
|
17919
17947
|
};
|
|
17948
|
+
const ownershipCategoryMenu = useMemo(() => {
|
|
17949
|
+
var _mdmsData$PropertyTax, _mdmsData$PropertyTax2, _mdmsData$PropertyTax3;
|
|
17950
|
+
return mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$PropertyTax = mdmsData.PropertyTax) === null || _mdmsData$PropertyTax === void 0 ? void 0 : (_mdmsData$PropertyTax2 = _mdmsData$PropertyTax.OwnerShipCategory) === null || _mdmsData$PropertyTax2 === void 0 ? void 0 : (_mdmsData$PropertyTax3 = _mdmsData$PropertyTax2.filter(e => e.code === "INDIVIDUAL.SINGLEOWNER" || e.code === "INDIVIDUAL.MULTIPLEOWNERS" || e.code.split(".").length === 1 && e.code.includes("INSTITUTIONAL"))) === null || _mdmsData$PropertyTax3 === void 0 ? void 0 : _mdmsData$PropertyTax3.map(item => ({
|
|
17951
|
+
...item,
|
|
17952
|
+
i18nKey: `PT_OWNERSHIP_CATEGORY_${item.code.replaceAll(".", "_")}`
|
|
17953
|
+
}));
|
|
17954
|
+
}, [mdmsData]);
|
|
17920
17955
|
const institutionTypeMenu = useMemo(() => {
|
|
17921
|
-
var _mdmsData$
|
|
17956
|
+
var _mdmsData$PropertyTax4, _mdmsData$PropertyTax5;
|
|
17922
17957
|
const code = ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code;
|
|
17923
|
-
const arr = mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$
|
|
17958
|
+
const arr = mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$PropertyTax4 = mdmsData.PropertyTax) === null || _mdmsData$PropertyTax4 === void 0 ? void 0 : (_mdmsData$PropertyTax5 = _mdmsData$PropertyTax4.OwnerShipCategory) === null || _mdmsData$PropertyTax5 === void 0 ? void 0 : _mdmsData$PropertyTax5.filter(e => {
|
|
17924
17959
|
var _e$code;
|
|
17925
17960
|
return (e === null || e === void 0 ? void 0 : (_e$code = e.code) === null || _e$code === void 0 ? void 0 : _e$code.split(".")[0]) == (code === null || code === void 0 ? void 0 : code.split(".")[0]);
|
|
17926
17961
|
});
|
|
@@ -17929,10 +17964,10 @@ const PropertyOwnerDetails = ({
|
|
|
17929
17964
|
return data === null || data === void 0 ? void 0 : (_data$code = data.code) === null || _data$code === void 0 ? void 0 : (_data$code$split = _data$code.split(".")) === null || _data$code$split === void 0 ? void 0 : _data$code$split[1];
|
|
17930
17965
|
});
|
|
17931
17966
|
return arraData === null || arraData === void 0 ? void 0 : arraData.map(e => {
|
|
17932
|
-
var _e$code2, _e$code2$split, _e$code3
|
|
17967
|
+
var _e$code2, _e$code2$split, _e$code3;
|
|
17933
17968
|
return ((_e$code2 = e.code) === null || _e$code2 === void 0 ? void 0 : (_e$code2$split = _e$code2.split(".")) === null || _e$code2$split === void 0 ? void 0 : _e$code2$split[1]) && {
|
|
17934
17969
|
...e,
|
|
17935
|
-
i18nKey: `
|
|
17970
|
+
i18nKey: `PT_OWNERSHIP_CATEGORY_${(_e$code3 = e.code) === null || _e$code3 === void 0 ? void 0 : _e$code3.replaceAll(".", "_")}`
|
|
17936
17971
|
};
|
|
17937
17972
|
});
|
|
17938
17973
|
}, [mdmsData, ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code]);
|
|
@@ -17960,7 +17995,7 @@ const PropertyOwnerDetails = ({
|
|
|
17960
17995
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
17961
17996
|
className: "form-field",
|
|
17962
17997
|
selected: value,
|
|
17963
|
-
option:
|
|
17998
|
+
option: ownershipCategoryMenu,
|
|
17964
17999
|
select: value => {
|
|
17965
18000
|
var _value$code;
|
|
17966
18001
|
if (!(value !== null && value !== void 0 && (_value$code = value.code) !== null && _value$code !== void 0 && _value$code.includes("MULTIPLEOWNERS")) && (ownerDetails === null || ownerDetails === void 0 ? void 0 : ownerDetails.length) > 1) {
|
|
@@ -17974,7 +18009,7 @@ const PropertyOwnerDetails = ({
|
|
|
17974
18009
|
t: t
|
|
17975
18010
|
})
|
|
17976
18011
|
})), ownerDetails === null || ownerDetails === void 0 ? void 0 : ownerDetails.map((owner, index) => {
|
|
17977
|
-
var _errors, _errors2, _errors3, _errors4, _errors5, _errors6, _ownerDetails$index, _ownerDetails$index3, _ownerDetails$index4, _ownerDetails$index5,
|
|
18012
|
+
var _errors, _errors2, _errors3, _errors4, _errors5, _errors6, _errors7, _errors8, _errors9, _errors0, _errors1, _errors10, _ownerDetails$index, _ownerDetails$index3, _ownerDetails$index4, _ownerDetails$index5, _errors11, _errors12, _errors13, _errors14, _errors15, _errors16, _errors17, _errors18, _errors19, _errors20, _errors21, _errors22, _ownerDetails$index6, _ownerDetails$index8, _ownerDetails$index9, _ownerDetails$index0;
|
|
17978
18013
|
return /*#__PURE__*/React.createElement("div", {
|
|
17979
18014
|
style: {
|
|
17980
18015
|
border: "1px solid #D6D5D4",
|
|
@@ -18033,9 +18068,9 @@ const PropertyOwnerDetails = ({
|
|
|
18033
18068
|
disable: isUpdateProperty || isEditProperty,
|
|
18034
18069
|
onBlur: onBlur
|
|
18035
18070
|
})
|
|
18036
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18071
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["institutionName" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors = errors["institutionName" + index]) === null || _errors === void 0 ? void 0 : _errors.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18037
18072
|
style: errorStyle
|
|
18038
|
-
},
|
|
18073
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors2 = errors["institutionName" + index]) === null || _errors2 === void 0 ? void 0 : _errors2.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18039
18074
|
className: ""
|
|
18040
18075
|
}, `${t("PT_INSTITUTION_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18041
18076
|
className: "form-field"
|
|
@@ -18052,7 +18087,7 @@ const PropertyOwnerDetails = ({
|
|
|
18052
18087
|
onChange,
|
|
18053
18088
|
onBlur
|
|
18054
18089
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
18055
|
-
selected: (institutionTypeMenu === null || institutionTypeMenu === void 0 ? void 0 : institutionTypeMenu.length) === 1 ?
|
|
18090
|
+
selected: (institutionTypeMenu === null || institutionTypeMenu === void 0 ? void 0 : institutionTypeMenu.length) === 1 ? institutionTypeMenu[0] : value,
|
|
18056
18091
|
disable: (institutionTypeMenu === null || institutionTypeMenu === void 0 ? void 0 : institutionTypeMenu.length) === 1 || editScreen,
|
|
18057
18092
|
option: institutionTypeMenu ? institutionTypeMenu.sort((a, b) => a.name.localeCompare(b.name)) : [],
|
|
18058
18093
|
select: value => {
|
|
@@ -18063,9 +18098,9 @@ const PropertyOwnerDetails = ({
|
|
|
18063
18098
|
t: t,
|
|
18064
18099
|
onBlur: onBlur
|
|
18065
18100
|
})
|
|
18066
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18101
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["institutionType" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors3 = errors["institutionType" + index]) === null || _errors3 === void 0 ? void 0 : _errors3.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18067
18102
|
style: errorStyle
|
|
18068
|
-
},
|
|
18103
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors4 = errors["institutionType" + index]) === null || _errors4 === void 0 ? void 0 : _errors4.message), /*#__PURE__*/React.createElement(CardSectionHeader, null, t("TL_AUTHORIZED_PERSON_DETAILS")), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_OWNER_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18069
18104
|
className: "form-field"
|
|
18070
18105
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18071
18106
|
key: "name" + index,
|
|
@@ -18096,9 +18131,9 @@ const PropertyOwnerDetails = ({
|
|
|
18096
18131
|
disable: isUpdateProperty || isEditProperty,
|
|
18097
18132
|
onBlur: onBlur
|
|
18098
18133
|
})
|
|
18099
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18134
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["name" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors5 = errors["name" + index]) === null || _errors5 === void 0 ? void 0 : _errors5.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18100
18135
|
style: errorStyle
|
|
18101
|
-
},
|
|
18136
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors6 = errors["name" + index]) === null || _errors6 === void 0 ? void 0 : _errors6.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_LANDLINE_NUMBER_FLOATING_LABEL")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18102
18137
|
className: "form-field"
|
|
18103
18138
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18104
18139
|
key: "altContactNumber" + index,
|
|
@@ -18130,9 +18165,9 @@ const PropertyOwnerDetails = ({
|
|
|
18130
18165
|
},
|
|
18131
18166
|
onBlur: onBlur
|
|
18132
18167
|
})
|
|
18133
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18168
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["altContactNumber" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors7 = errors["altContactNumber" + index]) === null || _errors7 === void 0 ? void 0 : _errors7.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18134
18169
|
style: errorStyle
|
|
18135
|
-
},
|
|
18170
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors8 = errors["altContactNumber" + index]) === null || _errors8 === void 0 ? void 0 : _errors8.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_FORM3_MOBILE_NUMBER")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18136
18171
|
className: "form-field"
|
|
18137
18172
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18138
18173
|
key: "mobileNumber" + index,
|
|
@@ -18181,9 +18216,9 @@ const PropertyOwnerDetails = ({
|
|
|
18181
18216
|
onClick: e => {
|
|
18182
18217
|
setOwnerDetails([...ownerDetails.filter((own, ind) => ind != index)]);
|
|
18183
18218
|
}
|
|
18184
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18219
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["mobileNumber" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors9 = errors["mobileNumber" + index]) === null || _errors9 === void 0 ? void 0 : _errors9.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18185
18220
|
style: errorStyle
|
|
18186
|
-
},
|
|
18221
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors0 = errors["mobileNumber" + index]) === null || _errors0 === void 0 ? void 0 : _errors0.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("TL_NEW_DESIG_OWNER_LABEL")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18187
18222
|
className: "form-field"
|
|
18188
18223
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18189
18224
|
key: "designation" + index,
|
|
@@ -18214,9 +18249,9 @@ const PropertyOwnerDetails = ({
|
|
|
18214
18249
|
disable: isUpdateProperty || isEditProperty,
|
|
18215
18250
|
onBlur: onBlur
|
|
18216
18251
|
})
|
|
18217
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18252
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["designation" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors1 = errors["designation" + index]) === null || _errors1 === void 0 ? void 0 : _errors1.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18218
18253
|
style: errorStyle
|
|
18219
|
-
},
|
|
18254
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors10 = errors["designation" + index]) === null || _errors10 === void 0 ? void 0 : _errors10.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_CORRESPONDANCE_ADDRESS")), /*#__PURE__*/React.createElement("div", {
|
|
18220
18255
|
className: "form-field"
|
|
18221
18256
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
18222
18257
|
isMandatory: false,
|
|
@@ -18289,9 +18324,9 @@ const PropertyOwnerDetails = ({
|
|
|
18289
18324
|
onClick: e => {
|
|
18290
18325
|
setOwnerDetails([...ownerDetails.filter((own, ind) => ind != index)]);
|
|
18291
18326
|
}
|
|
18292
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18327
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["mobileNumber" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors11 = errors["mobileNumber" + index]) === null || _errors11 === void 0 ? void 0 : _errors11.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18293
18328
|
style: errorStyle
|
|
18294
|
-
},
|
|
18329
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors12 = errors["mobileNumber" + index]) === null || _errors12 === void 0 ? void 0 : _errors12.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_OWNER_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18295
18330
|
className: "form-field"
|
|
18296
18331
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18297
18332
|
key: "name" + index,
|
|
@@ -18322,9 +18357,9 @@ const PropertyOwnerDetails = ({
|
|
|
18322
18357
|
disable: isUpdateProperty || isEditProperty,
|
|
18323
18358
|
onBlur: onBlur
|
|
18324
18359
|
})
|
|
18325
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18360
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["name" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors13 = errors["name" + index]) === null || _errors13 === void 0 ? void 0 : _errors13.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18326
18361
|
style: errorStyle
|
|
18327
|
-
},
|
|
18362
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors14 = errors["name" + index]) === null || _errors14 === void 0 ? void 0 : _errors14.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_FORM3_GENDER")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18328
18363
|
className: "form-field"
|
|
18329
18364
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18330
18365
|
key: "gender" + index,
|
|
@@ -18352,9 +18387,9 @@ const PropertyOwnerDetails = ({
|
|
|
18352
18387
|
isDropDown: window.location.href.includes("/employee") ? true : false,
|
|
18353
18388
|
onBlur: onBlur
|
|
18354
18389
|
})
|
|
18355
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18390
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["gender" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors15 = errors["gender" + index]) === null || _errors15 === void 0 ? void 0 : _errors15.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18356
18391
|
style: errorStyle
|
|
18357
|
-
},
|
|
18392
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors16 = errors["gender" + index]) === null || _errors16 === void 0 ? void 0 : _errors16.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_FORM3_GUARDIAN_NAME")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18358
18393
|
className: "form-field"
|
|
18359
18394
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18360
18395
|
key: "fatherOrHusbandName" + index,
|
|
@@ -18383,9 +18418,9 @@ const PropertyOwnerDetails = ({
|
|
|
18383
18418
|
disable: isUpdateProperty || isEditProperty,
|
|
18384
18419
|
onBlur: onBlur
|
|
18385
18420
|
})
|
|
18386
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18421
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["fatherOrHusbandName" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors17 = errors["fatherOrHusbandName" + index]) === null || _errors17 === void 0 ? void 0 : _errors17.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18387
18422
|
style: errorStyle
|
|
18388
|
-
},
|
|
18423
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors18 = errors["fatherOrHusbandName" + index]) === null || _errors18 === void 0 ? void 0 : _errors18.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("PT_FORM3_RELATIONSHIP")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18389
18424
|
className: "form-field"
|
|
18390
18425
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18391
18426
|
key: "relationship" + index,
|
|
@@ -18413,9 +18448,9 @@ const PropertyOwnerDetails = ({
|
|
|
18413
18448
|
isDropDown: window.location.href.includes("/employee") ? true : false,
|
|
18414
18449
|
onBlur: onBlur
|
|
18415
18450
|
})
|
|
18416
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18451
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["relationship" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors19 = errors["relationship" + index]) === null || _errors19 === void 0 ? void 0 : _errors19.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18417
18452
|
style: errorStyle
|
|
18418
|
-
},
|
|
18453
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors20 = errors["relationship" + index]) === null || _errors20 === void 0 ? void 0 : _errors20.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18419
18454
|
className: ""
|
|
18420
18455
|
}, `${t("PT_SPECIAL_APPLICANT_CATEGORY")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18421
18456
|
className: "form-field"
|
|
@@ -18443,9 +18478,9 @@ const PropertyOwnerDetails = ({
|
|
|
18443
18478
|
t: t,
|
|
18444
18479
|
onBlur: onBlur
|
|
18445
18480
|
})
|
|
18446
|
-
}))), /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18481
|
+
}))), (touched === null || touched === void 0 ? void 0 : touched["ownerType" + index]) && (errors === null || errors === void 0 ? void 0 : (_errors21 = errors["ownerType" + index]) === null || _errors21 === void 0 ? void 0 : _errors21.message) && /*#__PURE__*/React.createElement(CardLabelError, {
|
|
18447
18482
|
style: errorStyle
|
|
18448
|
-
},
|
|
18483
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors22 = errors["ownerType" + index]) === null || _errors22 === void 0 ? void 0 : _errors22.message), /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("PT_CORRESPONDANCE_ADDRESS")), /*#__PURE__*/React.createElement("div", {
|
|
18449
18484
|
className: "form-field"
|
|
18450
18485
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
18451
18486
|
isMandatory: false,
|
|
@@ -19139,14 +19174,14 @@ const PropertySearchNSummary = ({
|
|
|
19139
19174
|
return getOwnersList ? getOwnersList : t("NA");
|
|
19140
19175
|
};
|
|
19141
19176
|
if (window.location.href.includes("/ws/")) ;
|
|
19142
|
-
return /*#__PURE__*/React.createElement(
|
|
19143
|
-
className: "
|
|
19177
|
+
return /*#__PURE__*/React.createElement(Card, {
|
|
19178
|
+
className: "no-shadow"
|
|
19179
|
+
}, (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(LabelFieldPair, null, /*#__PURE__*/React.createElement(Label, {
|
|
19144
19180
|
style: getInputStyles()
|
|
19145
19181
|
}, `${t(`PROPERTY_ID`)}`), /*#__PURE__*/React.createElement("div", {
|
|
19146
|
-
className: "field",
|
|
19147
19182
|
style: {
|
|
19148
|
-
|
|
19149
|
-
|
|
19183
|
+
display: "flex",
|
|
19184
|
+
gap: "12px"
|
|
19150
19185
|
}
|
|
19151
19186
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
19152
19187
|
key: config.key,
|
|
@@ -19159,8 +19194,7 @@ const PropertySearchNSummary = ({
|
|
|
19159
19194
|
},
|
|
19160
19195
|
style: {
|
|
19161
19196
|
width: "80%",
|
|
19162
|
-
float: "left"
|
|
19163
|
-
marginRight: "20px"
|
|
19197
|
+
float: "left"
|
|
19164
19198
|
}
|
|
19165
19199
|
}), /*#__PURE__*/React.createElement("button", {
|
|
19166
19200
|
className: "submit-bar",
|
|
@@ -19196,9 +19230,8 @@ const PropertySearchNSummary = ({
|
|
|
19196
19230
|
marginTop: "20px"
|
|
19197
19231
|
}
|
|
19198
19232
|
}, t("PT_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", {
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
}
|
|
19233
|
+
className: "formcomposer-section-grid",
|
|
19234
|
+
style: isMobile ? {} : {}
|
|
19202
19235
|
}, /*#__PURE__*/React.createElement(Row, {
|
|
19203
19236
|
className: "border-none",
|
|
19204
19237
|
labelStyle: isMobile ? {
|