@djb25/digit-ui-module-commonpt 1.0.2 → 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 -9
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +181 -189
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -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"
|
|
@@ -13740,7 +13748,7 @@ const NOCDocuments = ({
|
|
|
13740
13748
|
}
|
|
13741
13749
|
}, [nocDocs, commonDocMaping]);
|
|
13742
13750
|
useEffect(() => {
|
|
13743
|
-
if (bpaApplicationStatus ===
|
|
13751
|
+
if (bpaApplicationStatus === "NOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
|
|
13744
13752
|
}, [applicationData, bpaActionsDetails]);
|
|
13745
13753
|
return /*#__PURE__*/React.createElement("div", {
|
|
13746
13754
|
style: {
|
|
@@ -13765,9 +13773,9 @@ const NOCDocuments = ({
|
|
|
13765
13773
|
label: isEmployee ? `${t(noc === null || noc === void 0 ? void 0 : noc.title)}` : t(noc === null || noc === void 0 ? void 0 : noc.title),
|
|
13766
13774
|
text: noc !== null && noc !== void 0 && noc.value ? t(noc === null || noc === void 0 ? void 0 : noc.value) : t("CS_NA"),
|
|
13767
13775
|
textStyle: (noc === null || noc === void 0 ? void 0 : noc.value) == "APPROVED" || (noc === null || noc === void 0 ? void 0 : noc.value) == "AUTO_APPROVED" ? {
|
|
13768
|
-
color: "#
|
|
13776
|
+
color: "#2E9E8F"
|
|
13769
13777
|
} : {
|
|
13770
|
-
color: "#
|
|
13778
|
+
color: "#D83A2F"
|
|
13771
13779
|
}
|
|
13772
13780
|
});
|
|
13773
13781
|
} else {
|
|
@@ -14319,7 +14327,7 @@ const ScruntinyDetails = ({
|
|
|
14319
14327
|
const getTextValues = data => {
|
|
14320
14328
|
if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return /*#__PURE__*/React.createElement("span", {
|
|
14321
14329
|
style: {
|
|
14322
|
-
color: "#
|
|
14330
|
+
color: "#2E9E8F"
|
|
14323
14331
|
}
|
|
14324
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");
|
|
14325
14333
|
};
|
|
@@ -14999,7 +15007,7 @@ const WSFeeEstimation = ({
|
|
|
14999
15007
|
var _result$Calculation2, _result$Calculation2$, _result$Calculation2$2;
|
|
15000
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);
|
|
15001
15009
|
}
|
|
15002
|
-
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");
|
|
15003
15011
|
const values = [{
|
|
15004
15012
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
15005
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
|
|
@@ -15045,7 +15053,7 @@ const WSFeeEstimation = ({
|
|
|
15045
15053
|
if (targetValueSign == 1) {
|
|
15046
15054
|
values[value] = e.target.value;
|
|
15047
15055
|
} else {
|
|
15048
|
-
values[value] =
|
|
15056
|
+
values[value] = "";
|
|
15049
15057
|
}
|
|
15050
15058
|
} else if (isDropDownValue) {
|
|
15051
15059
|
values[`${value}_data`] = e;
|
|
@@ -15060,7 +15068,7 @@ const WSFeeEstimation = ({
|
|
|
15060
15068
|
return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
|
|
15061
15069
|
style: {
|
|
15062
15070
|
lineHeight: "19px",
|
|
15063
|
-
maxWidth: "
|
|
15071
|
+
maxWidth: "100%",
|
|
15064
15072
|
minWidth: "280px"
|
|
15065
15073
|
}
|
|
15066
15074
|
}, values && /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", null, values === null || values === void 0 ? void 0 : values.map((value, index) => {
|
|
@@ -15091,15 +15099,16 @@ const WSFeeEstimation = ({
|
|
|
15091
15099
|
label: `${t(`CS_INBOX_STATUS_FILTER`)}`,
|
|
15092
15100
|
text: isPaid ? t("WS_COMMON_PAID_LABEL") : t("WS_COMMON_NOT_PAID"),
|
|
15093
15101
|
textStyle: !isPaid ? {
|
|
15094
|
-
color: "#
|
|
15102
|
+
color: "#D83A2F"
|
|
15095
15103
|
} : {
|
|
15096
|
-
color: "#
|
|
15104
|
+
color: "#2E9E8F"
|
|
15097
15105
|
}
|
|
15098
15106
|
}))), wsAdditionalDetails !== null && wsAdditionalDetails !== void 0 && (_wsAdditionalDetails$18 = wsAdditionalDetails.additionalDetails) !== null && _wsAdditionalDetails$18 !== void 0 && _wsAdditionalDetails$18.isAdhocRebate ? /*#__PURE__*/React.createElement("div", {
|
|
15099
15107
|
onClick: e => {
|
|
15100
15108
|
showPopUp(true);
|
|
15101
15109
|
}
|
|
15102
15110
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15111
|
+
className: "add-details-link hover-button",
|
|
15103
15112
|
style: {
|
|
15104
15113
|
cursor: "pointer",
|
|
15105
15114
|
color: "#a82227"
|
|
@@ -15123,14 +15132,16 @@ const WSFeeEstimation = ({
|
|
|
15123
15132
|
actionSaveOnSubmit: e => addAdhocRebatePenality(),
|
|
15124
15133
|
hideSubmit: false,
|
|
15125
15134
|
popupStyles: {
|
|
15126
|
-
overflowY: "auto"
|
|
15135
|
+
overflowY: "auto",
|
|
15136
|
+
background: "#f0f3f7"
|
|
15127
15137
|
}
|
|
15128
|
-
}, /*#__PURE__*/React.createElement("div",
|
|
15138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
15129
15139
|
style: {
|
|
15130
|
-
|
|
15131
|
-
|
|
15140
|
+
display: "flex",
|
|
15141
|
+
flexDirection: "column",
|
|
15142
|
+
gap: "16px"
|
|
15132
15143
|
}
|
|
15133
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15144
|
+
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15134
15145
|
style: {
|
|
15135
15146
|
fontSize: "16px",
|
|
15136
15147
|
fontWeight: "700",
|
|
@@ -15138,7 +15149,7 @@ const WSFeeEstimation = ({
|
|
|
15138
15149
|
padding: "0px",
|
|
15139
15150
|
margin: "0px 0px 10px 0px"
|
|
15140
15151
|
}
|
|
15141
|
-
}, 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", {
|
|
15142
15153
|
className: "field"
|
|
15143
15154
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
15144
15155
|
isMandatory: true,
|
|
@@ -15149,9 +15160,7 @@ const WSFeeEstimation = ({
|
|
|
15149
15160
|
isPropertyAssess: true,
|
|
15150
15161
|
name: "adhocPenaltyReason_data",
|
|
15151
15162
|
t: t
|
|
15152
|
-
})), (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", {
|
|
15153
|
-
className: "field"
|
|
15154
|
-
}, /*#__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", {
|
|
15155
15164
|
className: "field"
|
|
15156
15165
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15157
15166
|
style: {
|
|
@@ -15168,7 +15177,7 @@ const WSFeeEstimation = ({
|
|
|
15168
15177
|
pattern: "^[a-zA-Z ]*$",
|
|
15169
15178
|
type: "text",
|
|
15170
15179
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
15171
|
-
})))), /*#__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", {
|
|
15172
15181
|
className: "field"
|
|
15173
15182
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15174
15183
|
style: {
|
|
@@ -15184,12 +15193,7 @@ const WSFeeEstimation = ({
|
|
|
15184
15193
|
isRequired: true,
|
|
15185
15194
|
pattern: "^[1-9]+[0-9]*$",
|
|
15186
15195
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
15187
|
-
})))), /*#__PURE__*/React.createElement(Card, {
|
|
15188
|
-
style: {
|
|
15189
|
-
padding: "10px 10px 1px 10px",
|
|
15190
|
-
margin: "0px 0px 15px 0px"
|
|
15191
|
-
}
|
|
15192
|
-
}, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15196
|
+
}))))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
|
|
15193
15197
|
style: {
|
|
15194
15198
|
fontSize: "16px",
|
|
15195
15199
|
fontWeight: "700",
|
|
@@ -15197,7 +15201,7 @@ const WSFeeEstimation = ({
|
|
|
15197
15201
|
padding: "0px",
|
|
15198
15202
|
margin: "0px 0px 10px 0px"
|
|
15199
15203
|
}
|
|
15200
|
-
}, 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", {
|
|
15201
15205
|
className: "field"
|
|
15202
15206
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
15203
15207
|
isMandatory: true,
|
|
@@ -15208,9 +15212,7 @@ const WSFeeEstimation = ({
|
|
|
15208
15212
|
name: "adhocRebateReason_data",
|
|
15209
15213
|
isPropertyAssess: true,
|
|
15210
15214
|
t: t
|
|
15211
|
-
})), (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("
|
|
15212
|
-
className: "field"
|
|
15213
|
-
}, /*#__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({
|
|
15214
15216
|
style: {
|
|
15215
15217
|
background: "#FAFAFA"
|
|
15216
15218
|
},
|
|
@@ -15225,7 +15227,7 @@ const WSFeeEstimation = ({
|
|
|
15225
15227
|
pattern: "^[a-zA-Z ]*$",
|
|
15226
15228
|
type: "text",
|
|
15227
15229
|
title: t("TL_NAME_ERROR_MESSAGE")
|
|
15228
|
-
}))), /*#__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", {
|
|
15229
15231
|
className: "field"
|
|
15230
15232
|
}, /*#__PURE__*/React.createElement(TextInput, Object.assign({
|
|
15231
15233
|
style: {
|
|
@@ -15241,7 +15243,7 @@ const WSFeeEstimation = ({
|
|
|
15241
15243
|
isRequired: true,
|
|
15242
15244
|
pattern: "^[1-9]+[0-9]*$",
|
|
15243
15245
|
title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
|
|
15244
|
-
})))))
|
|
15246
|
+
}))))))), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
15245
15247
|
style: {
|
|
15246
15248
|
zIndex: "10000"
|
|
15247
15249
|
},
|
|
@@ -15355,10 +15357,7 @@ const ViewBreakup = ({
|
|
|
15355
15357
|
marginTop: "12px"
|
|
15356
15358
|
}
|
|
15357
15359
|
}, /*#__PURE__*/React.createElement("span", {
|
|
15358
|
-
|
|
15359
|
-
cursor: "pointer",
|
|
15360
|
-
color: "#a82227"
|
|
15361
|
-
}
|
|
15360
|
+
className: "add-details-link hover-button"
|
|
15362
15361
|
}, t("WS_PAYMENT_VIEW_BREAKUP"))) : null, popup && /*#__PURE__*/React.createElement(Modal, {
|
|
15363
15362
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
15364
15363
|
label: t("WS_CALCULATION_BREAKUP")
|
|
@@ -15800,15 +15799,11 @@ function ApplicationDetailsContent({
|
|
|
15800
15799
|
oldValue,
|
|
15801
15800
|
isInfoLabel = false
|
|
15802
15801
|
}) {
|
|
15803
|
-
var _applicationDetails$
|
|
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;
|
|
15804
15803
|
const {
|
|
15805
15804
|
t
|
|
15806
15805
|
} = useTranslation();
|
|
15807
|
-
const history = useHistory();
|
|
15808
|
-
const location = useLocation();
|
|
15809
15806
|
const [showPopup, setShowPopup] = useState(false);
|
|
15810
|
-
const [selectedData, setSelectedData] = useState(null);
|
|
15811
|
-
const searchParams = new URLSearchParams(location.search);
|
|
15812
15807
|
let {
|
|
15813
15808
|
id: applicationNo
|
|
15814
15809
|
} = useParams();
|
|
@@ -15844,7 +15839,7 @@ function ApplicationDetailsContent({
|
|
|
15844
15839
|
loaded: false,
|
|
15845
15840
|
canLoad: false
|
|
15846
15841
|
});
|
|
15847
|
-
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) {
|
|
15848
15843
|
updateCanFetchBillData({
|
|
15849
15844
|
loading: false,
|
|
15850
15845
|
loaded: false,
|
|
@@ -15860,7 +15855,7 @@ function ApplicationDetailsContent({
|
|
|
15860
15855
|
setBillData((applicationData === null || applicationData === void 0 ? void 0 : applicationData.tenantId) || tenantId, applicationData === null || applicationData === void 0 ? void 0 : applicationData.propertyId, updatefetchBillData, updateCanFetchBillData);
|
|
15861
15856
|
}
|
|
15862
15857
|
const convertEpochToDateDMY = dateEpoch => {
|
|
15863
|
-
if (dateEpoch == null || dateEpoch
|
|
15858
|
+
if (dateEpoch == null || dateEpoch === undefined || dateEpoch === "") {
|
|
15864
15859
|
return "NA";
|
|
15865
15860
|
}
|
|
15866
15861
|
const dateFromApi = new Date(dateEpoch);
|
|
@@ -15944,7 +15939,6 @@ function ApplicationDetailsContent({
|
|
|
15944
15939
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc");
|
|
15945
15940
|
const isNocLocation = window.location.href.includes("employee/noc");
|
|
15946
15941
|
const isBPALocation = window.location.href.includes("employee/obps");
|
|
15947
|
-
const isWS = window.location.href.includes("employee/ws");
|
|
15948
15942
|
const getRowStyles = () => {
|
|
15949
15943
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
15950
15944
|
return {
|
|
@@ -15983,13 +15977,13 @@ function ApplicationDetailsContent({
|
|
|
15983
15977
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
|
|
15984
15978
|
return {
|
|
15985
15979
|
lineHeight: "19px",
|
|
15986
|
-
maxWidth: "
|
|
15980
|
+
maxWidth: "100%",
|
|
15987
15981
|
minWidth: "280px"
|
|
15988
15982
|
};
|
|
15989
15983
|
} else if (checkLocation) {
|
|
15990
15984
|
return {
|
|
15991
15985
|
lineHeight: "19px",
|
|
15992
|
-
maxWidth: "
|
|
15986
|
+
maxWidth: "100%",
|
|
15993
15987
|
minWidth: "280px"
|
|
15994
15988
|
};
|
|
15995
15989
|
} else {
|
|
@@ -16037,7 +16031,6 @@ function ApplicationDetailsContent({
|
|
|
16037
16031
|
});
|
|
16038
16032
|
};
|
|
16039
16033
|
const handleViewClick = data => {
|
|
16040
|
-
setSelectedData(data);
|
|
16041
16034
|
setShowPopup(true);
|
|
16042
16035
|
};
|
|
16043
16036
|
return /*#__PURE__*/React.createElement(Card, {
|
|
@@ -16052,8 +16045,8 @@ function ApplicationDetailsContent({
|
|
|
16052
16045
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
16053
16046
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
16054
16047
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
16055
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
16056
|
-
var _detail$title, _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;
|
|
16057
16050
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
16058
16051
|
key: index
|
|
16059
16052
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -16146,7 +16139,7 @@ function ApplicationDetailsContent({
|
|
|
16146
16139
|
}
|
|
16147
16140
|
}, /*#__PURE__*/React.createElement("button", null, " ", /*#__PURE__*/React.createElement(EditIcon, null), " ")), /*#__PURE__*/React.createElement("div", {
|
|
16148
16141
|
key: index,
|
|
16149
|
-
onClick: () => handleViewClick(
|
|
16142
|
+
onClick: () => handleViewClick(),
|
|
16150
16143
|
style: {
|
|
16151
16144
|
cursor: "pointer"
|
|
16152
16145
|
}
|
|
@@ -16247,8 +16240,8 @@ function ApplicationDetailsContent({
|
|
|
16247
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, {
|
|
16248
16241
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
16249
16242
|
paymentsList: paymentsList
|
|
16250
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
16251
|
-
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
|
|
16252
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, {
|
|
16253
16246
|
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
|
|
16254
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, {
|
|
@@ -16290,21 +16283,11 @@ function ApplicationDetailsContent({
|
|
|
16290
16283
|
}), (detail === null || detail === void 0 ? void 0 : detail.isWaterConnectionDetails) && /*#__PURE__*/React.createElement(WSAdditonalDetails, {
|
|
16291
16284
|
wsAdditionalDetails: detail,
|
|
16292
16285
|
oldValue: oldValue
|
|
16293
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : _detail$additionalDet23.redirectUrl) && /*#__PURE__*/React.createElement(
|
|
16294
|
-
style: {
|
|
16295
|
-
fontSize: "16px",
|
|
16296
|
-
lineHeight: "24px",
|
|
16297
|
-
fontWeight: "400",
|
|
16298
|
-
padding: "10px 0px"
|
|
16299
|
-
}
|
|
16300
|
-
}, /*#__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, {
|
|
16301
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
|
|
16302
16288
|
}, /*#__PURE__*/React.createElement("span", {
|
|
16303
|
-
className: "link"
|
|
16304
|
-
|
|
16305
|
-
color: "#a82227"
|
|
16306
|
-
}
|
|
16307
|
-
}, 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, {
|
|
16308
16291
|
wsAdditionalDetails: detail,
|
|
16309
16292
|
workflowDetails: workflowDetails
|
|
16310
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, {
|
|
@@ -17283,33 +17266,35 @@ const PropertyAssemblyDetails = ({
|
|
|
17283
17266
|
setError,
|
|
17284
17267
|
clearErrors
|
|
17285
17268
|
}) => {
|
|
17286
|
-
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;
|
|
17287
17270
|
const [assemblyDetails, setAssemblyDetails] = React.useState({
|
|
17288
17271
|
...formData.assemblyDet,
|
|
17289
|
-
|
|
17290
|
-
|
|
17291
|
-
|
|
17292
|
-
|
|
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" ? {
|
|
17293
17276
|
code: `${formData === null || formData === void 0 ? void 0 : (_formData$usageCatego2 = formData.usageCategoryMajor) === null || _formData$usageCatego2 === void 0 ? void 0 : _formData$usageCatego2.code}`,
|
|
17294
17277
|
i18nKey: `PROPERTYTAX_BILLING_SLAB_OTHERS`
|
|
17295
17278
|
} : formData === null || formData === void 0 ? void 0 : formData.usageCategoryMajor
|
|
17296
17279
|
});
|
|
17297
17280
|
const [focusField, setFocusField] = React.useState("");
|
|
17298
|
-
|
|
17281
|
+
let tenantId = "dl.djb";
|
|
17299
17282
|
const [isErrors, setIsErrors] = useState(false);
|
|
17300
17283
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
17301
17284
|
let proptype = [];
|
|
17285
|
+
console.log("Calling usePropertyMDMS with tenantId:", tenantId);
|
|
17302
17286
|
const {
|
|
17303
|
-
data: Menu =
|
|
17287
|
+
data: Menu = [],
|
|
17304
17288
|
isLoading
|
|
17305
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17306
|
-
|
|
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 : []);
|
|
17307
17292
|
const {
|
|
17308
|
-
data: Menu1 =
|
|
17293
|
+
data: Menu1 = [],
|
|
17309
17294
|
isLoading: menuLoading
|
|
17310
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17311
|
-
|
|
17312
|
-
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 : []);
|
|
17313
17298
|
function getPropertyTypeMenu(proptype) {
|
|
17314
17299
|
if (userType === "employee") {
|
|
17315
17300
|
var _proptype$filter, _proptype$filter$map;
|
|
@@ -17318,9 +17303,10 @@ const PropertyAssemblyDetails = ({
|
|
|
17318
17303
|
code: item === null || item === void 0 ? void 0 : item.code
|
|
17319
17304
|
}))) === null || _proptype$filter$map === void 0 ? void 0 : _proptype$filter$map.sort((a, b) => a.i18nKey.split("_").pop().localeCompare(b.i18nKey.split("_").pop()));
|
|
17320
17305
|
} else {
|
|
17306
|
+
let menu = [];
|
|
17321
17307
|
if (Array.isArray(proptype) && proptype.length > 0) {
|
|
17322
|
-
for (i = 0; i < proptype.length; i++) {
|
|
17323
|
-
if (i != 1 && i != 4
|
|
17308
|
+
for (let i = 0; i < proptype.length; i++) {
|
|
17309
|
+
if (i != 1 && i != 4) menu.push({
|
|
17324
17310
|
i18nKey: "COMMON_PROPTYPE_" + stringReplaceAll(proptype[i].code, ".", "_"),
|
|
17325
17311
|
code: proptype[i].code
|
|
17326
17312
|
});
|
|
@@ -17345,8 +17331,10 @@ const PropertyAssemblyDetails = ({
|
|
|
17345
17331
|
});
|
|
17346
17332
|
return catMenu;
|
|
17347
17333
|
} else {
|
|
17348
|
-
|
|
17349
|
-
|
|
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) {
|
|
17350
17338
|
menu.push({
|
|
17351
17339
|
i18nKey: "PROPERTYTAX_BILLING_SLAB_" + usagecat[i].code.split(".")[1],
|
|
17352
17340
|
code: usagecat[i].code
|
|
@@ -17413,8 +17401,8 @@ const PropertyAssemblyDetails = ({
|
|
|
17413
17401
|
clearErrors(config.key);
|
|
17414
17402
|
}
|
|
17415
17403
|
}, [errors]);
|
|
17416
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t(
|
|
17417
|
-
|
|
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"
|
|
17418
17406
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17419
17407
|
name: "BuildingType",
|
|
17420
17408
|
control: control,
|
|
@@ -17434,7 +17422,7 @@ const PropertyAssemblyDetails = ({
|
|
|
17434
17422
|
props.onChange(value);
|
|
17435
17423
|
setAssemblyDetails({
|
|
17436
17424
|
...assemblyDetails,
|
|
17437
|
-
[
|
|
17425
|
+
["BuildingType"]: value
|
|
17438
17426
|
});
|
|
17439
17427
|
setFocusField("BuildingType");
|
|
17440
17428
|
},
|
|
@@ -17443,9 +17431,9 @@ const PropertyAssemblyDetails = ({
|
|
|
17443
17431
|
t: t
|
|
17444
17432
|
});
|
|
17445
17433
|
}
|
|
17446
|
-
}))), /*#__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, {
|
|
17447
17435
|
style: errorStyle
|
|
17448
|
-
},
|
|
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", {
|
|
17449
17437
|
className: "form-field"
|
|
17450
17438
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17451
17439
|
name: "floorarea",
|
|
@@ -17468,15 +17456,15 @@ const PropertyAssemblyDetails = ({
|
|
|
17468
17456
|
props === null || props === void 0 ? void 0 : props.onChange(ev.target.value);
|
|
17469
17457
|
setAssemblyDetails({
|
|
17470
17458
|
...assemblyDetails,
|
|
17471
|
-
[
|
|
17459
|
+
["floorarea"]: ev.target.value
|
|
17472
17460
|
});
|
|
17473
17461
|
setFocusField("floorarea");
|
|
17474
17462
|
},
|
|
17475
17463
|
onBlur: props === null || props === void 0 ? void 0 : props.onBlur
|
|
17476
17464
|
})
|
|
17477
|
-
}))), /*#__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, {
|
|
17478
17466
|
style: errorStyle
|
|
17479
|
-
},
|
|
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", {
|
|
17480
17468
|
className: "form-field"
|
|
17481
17469
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17482
17470
|
name: "constructionArea",
|
|
@@ -17500,19 +17488,19 @@ const PropertyAssemblyDetails = ({
|
|
|
17500
17488
|
setFocusField("constructionArea");
|
|
17501
17489
|
setAssemblyDetails({
|
|
17502
17490
|
...assemblyDetails,
|
|
17503
|
-
[
|
|
17491
|
+
["constructionArea"]: ev.target.value
|
|
17504
17492
|
});
|
|
17505
17493
|
},
|
|
17506
17494
|
onBlur: props === null || props === void 0 ? void 0 : props.onBlur
|
|
17507
17495
|
})
|
|
17508
|
-
}))), /*#__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, {
|
|
17509
17497
|
style: isMobile ? {
|
|
17510
17498
|
...errorStyle,
|
|
17511
17499
|
marginLeft: "0px"
|
|
17512
17500
|
} : {
|
|
17513
17501
|
...errorStyle
|
|
17514
17502
|
}
|
|
17515
|
-
},
|
|
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", {
|
|
17516
17504
|
className: "form-field"
|
|
17517
17505
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17518
17506
|
name: "usageCategoryMajor",
|
|
@@ -17534,7 +17522,7 @@ const PropertyAssemblyDetails = ({
|
|
|
17534
17522
|
setFocusField("usageCategoryMajor");
|
|
17535
17523
|
setAssemblyDetails({
|
|
17536
17524
|
...assemblyDetails,
|
|
17537
|
-
[
|
|
17525
|
+
["usageCategoryMajor"]: value
|
|
17538
17526
|
});
|
|
17539
17527
|
},
|
|
17540
17528
|
optionKey: "i18nKey",
|
|
@@ -17542,9 +17530,9 @@ const PropertyAssemblyDetails = ({
|
|
|
17542
17530
|
t: t
|
|
17543
17531
|
});
|
|
17544
17532
|
}
|
|
17545
|
-
}))), /*#__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, {
|
|
17546
17534
|
style: errorStyle
|
|
17547
|
-
},
|
|
17535
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$usageCategory2 = errors.usageCategoryMajor) === null || _errors$usageCategory2 === void 0 ? void 0 : _errors$usageCategory2.message));
|
|
17548
17536
|
};
|
|
17549
17537
|
|
|
17550
17538
|
const PropertyLocationDetails = ({
|
|
@@ -17558,7 +17546,7 @@ const PropertyLocationDetails = ({
|
|
|
17558
17546
|
setError,
|
|
17559
17547
|
clearErrors
|
|
17560
17548
|
}) => {
|
|
17561
|
-
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;
|
|
17562
17550
|
let validation = {};
|
|
17563
17551
|
let allCities = Digit.Hooks.pt.useTenants() ? Digit.Hooks.pt.useTenants() : Digit.Hooks.tl.useTenants();
|
|
17564
17552
|
if (window.location.href.includes("obps")) {
|
|
@@ -17570,13 +17558,12 @@ const PropertyLocationDetails = ({
|
|
|
17570
17558
|
}
|
|
17571
17559
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
17572
17560
|
userType = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) == "EMPLOYEE" ? "employee" : "citizen";
|
|
17573
|
-
const cityId = userInfo === null || userInfo === void 0 ? void 0 : userInfo.tenantId;
|
|
17574
17561
|
const cityName = 'TENANT_TENANTS_' + (userInfo === null || userInfo === void 0 ? void 0 : userInfo.tenantId.replace('.', '_').toUpperCase());
|
|
17575
|
-
const cityObj =
|
|
17576
|
-
code:
|
|
17577
|
-
name: t(
|
|
17578
|
-
i18nKey:
|
|
17579
|
-
}
|
|
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
|
+
};
|
|
17580
17567
|
const [locationDetails, setLocationDetails] = React.useState({
|
|
17581
17568
|
...(formData === null || formData === void 0 ? void 0 : formData.locationDet),
|
|
17582
17569
|
cityCode: cityObj,
|
|
@@ -17643,8 +17630,10 @@ const PropertyLocationDetails = ({
|
|
|
17643
17630
|
fontSize: "12px",
|
|
17644
17631
|
marginTop: "-21px"
|
|
17645
17632
|
};
|
|
17646
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t('PT_PROP_CITY')}*`), /*#__PURE__*/React.createElement(
|
|
17647
|
-
|
|
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",
|
|
17648
17637
|
defaultValue: locationDetails === null || locationDetails === void 0 ? void 0 : locationDetails.cityCode,
|
|
17649
17638
|
control: control,
|
|
17650
17639
|
rules: {
|
|
@@ -17655,10 +17644,9 @@ const PropertyLocationDetails = ({
|
|
|
17655
17644
|
onBlur,
|
|
17656
17645
|
onChange
|
|
17657
17646
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
17658
|
-
className: "form-field",
|
|
17659
17647
|
selected: value,
|
|
17660
|
-
disable:
|
|
17661
|
-
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),
|
|
17662
17650
|
select: value => {
|
|
17663
17651
|
onChange(value);
|
|
17664
17652
|
setLocationDetails({
|
|
@@ -17670,9 +17658,9 @@ const PropertyLocationDetails = ({
|
|
|
17670
17658
|
onBlur: onBlur,
|
|
17671
17659
|
t: t
|
|
17672
17660
|
})
|
|
17673
|
-
})), /*#__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, {
|
|
17674
17662
|
style: errorStyle
|
|
17675
|
-
},
|
|
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", {
|
|
17676
17664
|
className: "form-field"
|
|
17677
17665
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17678
17666
|
name: "locality",
|
|
@@ -17709,9 +17697,9 @@ const PropertyLocationDetails = ({
|
|
|
17709
17697
|
onBlur: onBlur
|
|
17710
17698
|
});
|
|
17711
17699
|
}
|
|
17712
|
-
}))), /*#__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, {
|
|
17713
17701
|
style: errorStyle
|
|
17714
|
-
},
|
|
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", {
|
|
17715
17703
|
className: "form-field"
|
|
17716
17704
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17717
17705
|
name: "houseDoorNo",
|
|
@@ -17744,9 +17732,9 @@ const PropertyLocationDetails = ({
|
|
|
17744
17732
|
pattern: "^([a-zA-Z0-9 !@#$%^&*()_+\-={};':\\\\|,.<>/?]){1,64}$",
|
|
17745
17733
|
title: t("PT_HOUSE_DOOR_NO_ERROR_MESSAGE")
|
|
17746
17734
|
}))
|
|
17747
|
-
}))), /*#__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, {
|
|
17748
17736
|
style: errorStyle
|
|
17749
|
-
},
|
|
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", {
|
|
17750
17738
|
className: "form-field"
|
|
17751
17739
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17752
17740
|
name: "buildingColonyName",
|
|
@@ -17775,9 +17763,9 @@ const PropertyLocationDetails = ({
|
|
|
17775
17763
|
},
|
|
17776
17764
|
onBlur: onBlur
|
|
17777
17765
|
})
|
|
17778
|
-
}))), /*#__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, {
|
|
17779
17767
|
style: errorStyle
|
|
17780
|
-
},
|
|
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", {
|
|
17781
17769
|
className: "form-field"
|
|
17782
17770
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
17783
17771
|
name: "landmarkName",
|
|
@@ -17804,9 +17792,9 @@ const PropertyLocationDetails = ({
|
|
|
17804
17792
|
},
|
|
17805
17793
|
onBlur: onBlur
|
|
17806
17794
|
})
|
|
17807
|
-
}))), /*#__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, {
|
|
17808
17796
|
style: errorStyle
|
|
17809
|
-
},
|
|
17797
|
+
}, errors === null || errors === void 0 ? void 0 : (_errors$landmarkName2 = errors.landmarkName) === null || _errors$landmarkName2 === void 0 ? void 0 : _errors$landmarkName2.message));
|
|
17810
17798
|
};
|
|
17811
17799
|
|
|
17812
17800
|
const getAddress = (address, t) => {
|
|
@@ -17823,7 +17811,7 @@ const PropertyOwnerDetails = ({
|
|
|
17823
17811
|
setError,
|
|
17824
17812
|
clearErrors
|
|
17825
17813
|
}) => {
|
|
17826
|
-
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;
|
|
17827
17815
|
const {
|
|
17828
17816
|
pathname: url
|
|
17829
17817
|
} = useLocation();
|
|
@@ -17850,6 +17838,7 @@ const PropertyOwnerDetails = ({
|
|
|
17850
17838
|
const isUpdateProperty = (formData === null || formData === void 0 ? void 0 : formData.isUpdateProperty) || false;
|
|
17851
17839
|
let isEditProperty = (formData === null || formData === void 0 ? void 0 : formData.isEditProperty) || false;
|
|
17852
17840
|
const stateId = Digit.ULBService.getStateId();
|
|
17841
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
17853
17842
|
const {
|
|
17854
17843
|
data: Menu
|
|
17855
17844
|
} = Digit.Hooks.pt.useGenderMDMS(stateId, "common-masters", "GenderType");
|
|
@@ -17862,18 +17851,14 @@ const PropertyOwnerDetails = ({
|
|
|
17862
17851
|
});
|
|
17863
17852
|
});
|
|
17864
17853
|
const {
|
|
17865
|
-
data:
|
|
17866
|
-
} = Digit.Hooks.tl.useTradeLicenseMDMS(stateId, "common-masters", "TLOwnerTypeWithSubtypes", {
|
|
17867
|
-
userType
|
|
17868
|
-
});
|
|
17869
|
-
const {
|
|
17870
|
-
data: Menu1,
|
|
17854
|
+
data: rawMenu1,
|
|
17871
17855
|
isLoading
|
|
17872
|
-
} = 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 : []);
|
|
17873
17858
|
const {
|
|
17874
17859
|
data: mdmsData,
|
|
17875
17860
|
isLoading: isMdmsDataLoading
|
|
17876
|
-
} = Digit.Hooks.pt.usePropertyMDMS(
|
|
17861
|
+
} = Digit.Hooks.pt.usePropertyMDMS(tenantId, "PropertyTax", ["OwnerShipCategory"]);
|
|
17877
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);
|
|
17878
17863
|
function setCorrespondenceAddress(e, ind) {
|
|
17879
17864
|
let address = "";
|
|
@@ -17937,7 +17922,7 @@ const PropertyOwnerDetails = ({
|
|
|
17937
17922
|
setIsErrors(hasErrors);
|
|
17938
17923
|
onSelect(config === null || config === void 0 ? void 0 : config.key, ownerDetails.map(own => ({
|
|
17939
17924
|
...own,
|
|
17940
|
-
ownershipCategory: ownershipCategory
|
|
17925
|
+
ownershipCategory: ownershipCategory
|
|
17941
17926
|
})));
|
|
17942
17927
|
}, [ownerDetails]);
|
|
17943
17928
|
useEffect(() => {
|
|
@@ -17960,10 +17945,17 @@ const PropertyOwnerDetails = ({
|
|
|
17960
17945
|
};
|
|
17961
17946
|
}));
|
|
17962
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]);
|
|
17963
17955
|
const institutionTypeMenu = useMemo(() => {
|
|
17964
|
-
var _mdmsData$
|
|
17956
|
+
var _mdmsData$PropertyTax4, _mdmsData$PropertyTax5;
|
|
17965
17957
|
const code = ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code;
|
|
17966
|
-
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 => {
|
|
17967
17959
|
var _e$code;
|
|
17968
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]);
|
|
17969
17961
|
});
|
|
@@ -17972,10 +17964,10 @@ const PropertyOwnerDetails = ({
|
|
|
17972
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];
|
|
17973
17965
|
});
|
|
17974
17966
|
return arraData === null || arraData === void 0 ? void 0 : arraData.map(e => {
|
|
17975
|
-
var _e$code2, _e$code2$split, _e$code3
|
|
17967
|
+
var _e$code2, _e$code2$split, _e$code3;
|
|
17976
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]) && {
|
|
17977
17969
|
...e,
|
|
17978
|
-
i18nKey: `
|
|
17970
|
+
i18nKey: `PT_OWNERSHIP_CATEGORY_${(_e$code3 = e.code) === null || _e$code3 === void 0 ? void 0 : _e$code3.replaceAll(".", "_")}`
|
|
17979
17971
|
};
|
|
17980
17972
|
});
|
|
17981
17973
|
}, [mdmsData, ownershipCategory === null || ownershipCategory === void 0 ? void 0 : ownershipCategory.code]);
|
|
@@ -18003,7 +17995,7 @@ const PropertyOwnerDetails = ({
|
|
|
18003
17995
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
18004
17996
|
className: "form-field",
|
|
18005
17997
|
selected: value,
|
|
18006
|
-
option:
|
|
17998
|
+
option: ownershipCategoryMenu,
|
|
18007
17999
|
select: value => {
|
|
18008
18000
|
var _value$code;
|
|
18009
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) {
|
|
@@ -18017,7 +18009,7 @@ const PropertyOwnerDetails = ({
|
|
|
18017
18009
|
t: t
|
|
18018
18010
|
})
|
|
18019
18011
|
})), ownerDetails === null || ownerDetails === void 0 ? void 0 : ownerDetails.map((owner, index) => {
|
|
18020
|
-
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;
|
|
18021
18013
|
return /*#__PURE__*/React.createElement("div", {
|
|
18022
18014
|
style: {
|
|
18023
18015
|
border: "1px solid #D6D5D4",
|
|
@@ -18076,9 +18068,9 @@ const PropertyOwnerDetails = ({
|
|
|
18076
18068
|
disable: isUpdateProperty || isEditProperty,
|
|
18077
18069
|
onBlur: onBlur
|
|
18078
18070
|
})
|
|
18079
|
-
}))), /*#__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, {
|
|
18080
18072
|
style: errorStyle
|
|
18081
|
-
},
|
|
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, {
|
|
18082
18074
|
className: ""
|
|
18083
18075
|
}, `${t("PT_INSTITUTION_TYPE")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18084
18076
|
className: "form-field"
|
|
@@ -18095,7 +18087,7 @@ const PropertyOwnerDetails = ({
|
|
|
18095
18087
|
onChange,
|
|
18096
18088
|
onBlur
|
|
18097
18089
|
}) => /*#__PURE__*/React.createElement(Dropdown, {
|
|
18098
|
-
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,
|
|
18099
18091
|
disable: (institutionTypeMenu === null || institutionTypeMenu === void 0 ? void 0 : institutionTypeMenu.length) === 1 || editScreen,
|
|
18100
18092
|
option: institutionTypeMenu ? institutionTypeMenu.sort((a, b) => a.name.localeCompare(b.name)) : [],
|
|
18101
18093
|
select: value => {
|
|
@@ -18106,9 +18098,9 @@ const PropertyOwnerDetails = ({
|
|
|
18106
18098
|
t: t,
|
|
18107
18099
|
onBlur: onBlur
|
|
18108
18100
|
})
|
|
18109
|
-
}))), /*#__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, {
|
|
18110
18102
|
style: errorStyle
|
|
18111
|
-
},
|
|
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", {
|
|
18112
18104
|
className: "form-field"
|
|
18113
18105
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18114
18106
|
key: "name" + index,
|
|
@@ -18139,9 +18131,9 @@ const PropertyOwnerDetails = ({
|
|
|
18139
18131
|
disable: isUpdateProperty || isEditProperty,
|
|
18140
18132
|
onBlur: onBlur
|
|
18141
18133
|
})
|
|
18142
|
-
}))), /*#__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, {
|
|
18143
18135
|
style: errorStyle
|
|
18144
|
-
},
|
|
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", {
|
|
18145
18137
|
className: "form-field"
|
|
18146
18138
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18147
18139
|
key: "altContactNumber" + index,
|
|
@@ -18173,9 +18165,9 @@ const PropertyOwnerDetails = ({
|
|
|
18173
18165
|
},
|
|
18174
18166
|
onBlur: onBlur
|
|
18175
18167
|
})
|
|
18176
|
-
}))), /*#__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, {
|
|
18177
18169
|
style: errorStyle
|
|
18178
|
-
},
|
|
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", {
|
|
18179
18171
|
className: "form-field"
|
|
18180
18172
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18181
18173
|
key: "mobileNumber" + index,
|
|
@@ -18224,9 +18216,9 @@ const PropertyOwnerDetails = ({
|
|
|
18224
18216
|
onClick: e => {
|
|
18225
18217
|
setOwnerDetails([...ownerDetails.filter((own, ind) => ind != index)]);
|
|
18226
18218
|
}
|
|
18227
|
-
}))), /*#__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, {
|
|
18228
18220
|
style: errorStyle
|
|
18229
|
-
},
|
|
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", {
|
|
18230
18222
|
className: "form-field"
|
|
18231
18223
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18232
18224
|
key: "designation" + index,
|
|
@@ -18257,9 +18249,9 @@ const PropertyOwnerDetails = ({
|
|
|
18257
18249
|
disable: isUpdateProperty || isEditProperty,
|
|
18258
18250
|
onBlur: onBlur
|
|
18259
18251
|
})
|
|
18260
|
-
}))), /*#__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, {
|
|
18261
18253
|
style: errorStyle
|
|
18262
|
-
},
|
|
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", {
|
|
18263
18255
|
className: "form-field"
|
|
18264
18256
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
18265
18257
|
isMandatory: false,
|
|
@@ -18332,9 +18324,9 @@ const PropertyOwnerDetails = ({
|
|
|
18332
18324
|
onClick: e => {
|
|
18333
18325
|
setOwnerDetails([...ownerDetails.filter((own, ind) => ind != index)]);
|
|
18334
18326
|
}
|
|
18335
|
-
}))), /*#__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, {
|
|
18336
18328
|
style: errorStyle
|
|
18337
|
-
},
|
|
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", {
|
|
18338
18330
|
className: "form-field"
|
|
18339
18331
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18340
18332
|
key: "name" + index,
|
|
@@ -18365,9 +18357,9 @@ const PropertyOwnerDetails = ({
|
|
|
18365
18357
|
disable: isUpdateProperty || isEditProperty,
|
|
18366
18358
|
onBlur: onBlur
|
|
18367
18359
|
})
|
|
18368
|
-
}))), /*#__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, {
|
|
18369
18361
|
style: errorStyle
|
|
18370
|
-
},
|
|
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", {
|
|
18371
18363
|
className: "form-field"
|
|
18372
18364
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18373
18365
|
key: "gender" + index,
|
|
@@ -18395,9 +18387,9 @@ const PropertyOwnerDetails = ({
|
|
|
18395
18387
|
isDropDown: window.location.href.includes("/employee") ? true : false,
|
|
18396
18388
|
onBlur: onBlur
|
|
18397
18389
|
})
|
|
18398
|
-
}))), /*#__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, {
|
|
18399
18391
|
style: errorStyle
|
|
18400
|
-
},
|
|
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", {
|
|
18401
18393
|
className: "form-field"
|
|
18402
18394
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18403
18395
|
key: "fatherOrHusbandName" + index,
|
|
@@ -18426,9 +18418,9 @@ const PropertyOwnerDetails = ({
|
|
|
18426
18418
|
disable: isUpdateProperty || isEditProperty,
|
|
18427
18419
|
onBlur: onBlur
|
|
18428
18420
|
})
|
|
18429
|
-
}))), /*#__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, {
|
|
18430
18422
|
style: errorStyle
|
|
18431
|
-
},
|
|
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", {
|
|
18432
18424
|
className: "form-field"
|
|
18433
18425
|
}, /*#__PURE__*/React.createElement(Controller, {
|
|
18434
18426
|
key: "relationship" + index,
|
|
@@ -18456,9 +18448,9 @@ const PropertyOwnerDetails = ({
|
|
|
18456
18448
|
isDropDown: window.location.href.includes("/employee") ? true : false,
|
|
18457
18449
|
onBlur: onBlur
|
|
18458
18450
|
})
|
|
18459
|
-
}))), /*#__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, {
|
|
18460
18452
|
style: errorStyle
|
|
18461
|
-
},
|
|
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, {
|
|
18462
18454
|
className: ""
|
|
18463
18455
|
}, `${t("PT_SPECIAL_APPLICANT_CATEGORY")}*`), /*#__PURE__*/React.createElement("div", {
|
|
18464
18456
|
className: "form-field"
|
|
@@ -18486,9 +18478,9 @@ const PropertyOwnerDetails = ({
|
|
|
18486
18478
|
t: t,
|
|
18487
18479
|
onBlur: onBlur
|
|
18488
18480
|
})
|
|
18489
|
-
}))), /*#__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, {
|
|
18490
18482
|
style: errorStyle
|
|
18491
|
-
},
|
|
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", {
|
|
18492
18484
|
className: "form-field"
|
|
18493
18485
|
}, /*#__PURE__*/React.createElement(TextArea, {
|
|
18494
18486
|
isMandatory: false,
|