@egovernments/digit-ui-libraries 1.5.0-beta.4 → 1.5.0-beta.7
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 +31 -76
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +31 -76
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -34140,12 +34140,13 @@ var Download = {
|
|
|
34140
34140
|
});
|
|
34141
34141
|
},
|
|
34142
34142
|
Excel: function Excel(data, filename) {
|
|
34143
|
+
var file = filename.substring(0, 30);
|
|
34143
34144
|
var wb = XLSX.utils.book_new();
|
|
34144
34145
|
var ws = null;
|
|
34145
34146
|
ws = XLSX.utils.json_to_sheet(data);
|
|
34146
|
-
wb.SheetNames.push(
|
|
34147
|
-
wb.Sheets[
|
|
34148
|
-
XLSX.writeFile(wb,
|
|
34147
|
+
wb.SheetNames.push(file);
|
|
34148
|
+
wb.Sheets[file] = ws;
|
|
34149
|
+
XLSX.writeFile(wb, file + ".xlsx");
|
|
34149
34150
|
},
|
|
34150
34151
|
PDF: function PDF(node, fileName, share, resolve) {
|
|
34151
34152
|
if (resolve === void 0) {
|
|
@@ -37129,14 +37130,18 @@ var UrlShortener = function UrlShortener(fileStoreId) {
|
|
|
37129
37130
|
});
|
|
37130
37131
|
};
|
|
37131
37132
|
|
|
37133
|
+
var isMobileOrTablet = function isMobileOrTablet() {
|
|
37134
|
+
return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
|
|
37135
|
+
};
|
|
37136
|
+
|
|
37132
37137
|
var ShareFiles = {
|
|
37133
37138
|
targetLink: function targetLink(target, shortUrl) {
|
|
37134
37139
|
switch (target) {
|
|
37135
37140
|
case "mail":
|
|
37136
|
-
return window.open("mailto:?body=" + shortUrl, "_blank");
|
|
37141
|
+
return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
|
|
37137
37142
|
|
|
37138
37143
|
case "whatsapp":
|
|
37139
|
-
|
|
37144
|
+
return window.open('https://' + (isMobileOrTablet() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
|
|
37140
37145
|
|
|
37141
37146
|
default:
|
|
37142
37147
|
return window.open(shortUrl, "_blank");
|
|
@@ -37160,7 +37165,7 @@ var ShareFiles = {
|
|
|
37160
37165
|
files: [pdfData],
|
|
37161
37166
|
title: filename
|
|
37162
37167
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, pdfData)).then(function (shortUrl) {
|
|
37163
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37168
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37164
37169
|
});
|
|
37165
37170
|
});
|
|
37166
37171
|
} catch (e) {
|
|
@@ -37176,7 +37181,7 @@ var ShareFiles = {
|
|
|
37176
37181
|
files: [imageData],
|
|
37177
37182
|
title: filename
|
|
37178
37183
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37179
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37184
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37180
37185
|
});
|
|
37181
37186
|
});
|
|
37182
37187
|
} catch (e) {
|
|
@@ -37192,7 +37197,7 @@ var ShareFiles = {
|
|
|
37192
37197
|
files: [imageData],
|
|
37193
37198
|
title: filename
|
|
37194
37199
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37195
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37200
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37196
37201
|
});
|
|
37197
37202
|
});
|
|
37198
37203
|
} catch (e) {
|
|
@@ -37208,7 +37213,7 @@ var ShareFiles = {
|
|
|
37208
37213
|
files: [imageData],
|
|
37209
37214
|
title: filename
|
|
37210
37215
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37211
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37216
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37212
37217
|
});
|
|
37213
37218
|
});
|
|
37214
37219
|
} catch (e) {
|
|
@@ -42492,6 +42497,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
|
|
|
42492
42497
|
}
|
|
42493
42498
|
};
|
|
42494
42499
|
|
|
42500
|
+
var getAddress = function getAddress(address, t) {
|
|
42501
|
+
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId)) + ", " + t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId)) + (address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? ", " + address.pincode : " ");
|
|
42502
|
+
};
|
|
42503
|
+
|
|
42495
42504
|
var TLSearch = {
|
|
42496
42505
|
all: function (tenantId, filters) {
|
|
42497
42506
|
if (filters === void 0) {
|
|
@@ -42549,68 +42558,14 @@ var TLSearch = {
|
|
|
42549
42558
|
|
|
42550
42559
|
function _temp3(propertyDetails) {
|
|
42551
42560
|
function _temp2() {
|
|
42552
|
-
var
|
|
42561
|
+
var _response$tradeLicens2, _response$tradeLicens3, _response$tradeLicens4, _response$tradeLicens5, _response$tradeLicens6, _response$tradeLicens7, _response$tradeLicens8, _response$tradeLicens9, _response$tradeLicens10, _response$tradeLicens11, _response$tradeLicens12, _response$tradeLicens13, _response$tradeLicens14, _propertyDetails$Prop2, _propertyDetails$Prop3, _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7, _propertyDetails$Prop8, _propertyDetails$Prop9, _propertyDetails$Prop10, _response$tradeLicens15, _response$tradeLicens16, _response$tradeLicens17, _response$tradeLicens18, _response$tradeLicens19, _response$tradeLicens20, _response$tradeLicens21, _response$tradeLicens22, _response$tradeLicens23, _response$tradeLicens24, _response$tradeLicens25, _response$tradeLicens26, _response$tradeLicens27, _response$tradeLicens28, _response$tradeLicens29, _response$tradeLicens30, _response$tradeLicens31, _response$tradeLicens32, _response$tradeLicens47, _response$tradeLicens48, _response$tradeLicens49, _response$tradeLicens50, _response$tradeLicens53, _response$tradeLicens54, _response$tradeLicens57, _response$tradeLicens58, _propertyDetails$Prop11, _propertyDetails$Prop12, _response$tradeLicens59;
|
|
42553
42562
|
|
|
42554
42563
|
var propertyAddress = "";
|
|
42555
42564
|
|
|
42556
|
-
if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 &&
|
|
42557
|
-
var _propertyDetails$
|
|
42558
|
-
|
|
42559
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop2 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop2 !== void 0 && (_propertyDetails$Prop3 = _propertyDetails$Prop2.address) !== null && _propertyDetails$Prop3 !== void 0 && _propertyDetails$Prop3.doorNo) {
|
|
42560
|
-
var _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7;
|
|
42561
|
-
|
|
42562
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop4 === void 0 ? void 0 : (_propertyDetails$Prop5 = _propertyDetails$Prop4.address) === null || _propertyDetails$Prop5 === void 0 ? void 0 : _propertyDetails$Prop5.doorNo;
|
|
42563
|
-
|
|
42564
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop6 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop6 !== void 0 && (_propertyDetails$Prop7 = _propertyDetails$Prop6.address) !== null && _propertyDetails$Prop7 !== void 0 && _propertyDetails$Prop7.street) {
|
|
42565
|
-
propertyAddress += ", ";
|
|
42566
|
-
}
|
|
42567
|
-
}
|
|
42565
|
+
if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
|
|
42566
|
+
var _propertyDetails$Prop;
|
|
42568
42567
|
|
|
42569
|
-
|
|
42570
|
-
var _propertyDetails$Prop10, _propertyDetails$Prop11, _propertyDetails$Prop12, _propertyDetails$Prop13;
|
|
42571
|
-
|
|
42572
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop10 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop10 === void 0 ? void 0 : (_propertyDetails$Prop11 = _propertyDetails$Prop10.address) === null || _propertyDetails$Prop11 === void 0 ? void 0 : _propertyDetails$Prop11.street;
|
|
42573
|
-
|
|
42574
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop12 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop12 !== void 0 && (_propertyDetails$Prop13 = _propertyDetails$Prop12.address) !== null && _propertyDetails$Prop13 !== void 0 && _propertyDetails$Prop13.landmark) {
|
|
42575
|
-
propertyAddress += ", ";
|
|
42576
|
-
}
|
|
42577
|
-
}
|
|
42578
|
-
|
|
42579
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop14 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop14 !== void 0 && (_propertyDetails$Prop15 = _propertyDetails$Prop14.address) !== null && _propertyDetails$Prop15 !== void 0 && _propertyDetails$Prop15.landmark) {
|
|
42580
|
-
var _propertyDetails$Prop16, _propertyDetails$Prop17, _propertyDetails$Prop18, _propertyDetails$Prop19, _propertyDetails$Prop20;
|
|
42581
|
-
|
|
42582
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop16 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop16 === void 0 ? void 0 : (_propertyDetails$Prop17 = _propertyDetails$Prop16.address) === null || _propertyDetails$Prop17 === void 0 ? void 0 : _propertyDetails$Prop17.landmark;
|
|
42583
|
-
|
|
42584
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop18 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop18 !== void 0 && (_propertyDetails$Prop19 = _propertyDetails$Prop18.address) !== null && _propertyDetails$Prop19 !== void 0 && (_propertyDetails$Prop20 = _propertyDetails$Prop19.locality) !== null && _propertyDetails$Prop20 !== void 0 && _propertyDetails$Prop20.name) {
|
|
42585
|
-
propertyAddress += ", ";
|
|
42586
|
-
}
|
|
42587
|
-
}
|
|
42588
|
-
|
|
42589
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop21 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop21 !== void 0 && (_propertyDetails$Prop22 = _propertyDetails$Prop21.address) !== null && _propertyDetails$Prop22 !== void 0 && (_propertyDetails$Prop23 = _propertyDetails$Prop22.locality) !== null && _propertyDetails$Prop23 !== void 0 && _propertyDetails$Prop23.name) {
|
|
42590
|
-
var _propertyDetails$Prop24, _propertyDetails$Prop25, _propertyDetails$Prop26, _propertyDetails$Prop27, _propertyDetails$Prop28;
|
|
42591
|
-
|
|
42592
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop24 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop24 === void 0 ? void 0 : (_propertyDetails$Prop25 = _propertyDetails$Prop24.address) === null || _propertyDetails$Prop25 === void 0 ? void 0 : (_propertyDetails$Prop26 = _propertyDetails$Prop25.locality) === null || _propertyDetails$Prop26 === void 0 ? void 0 : _propertyDetails$Prop26.name;
|
|
42593
|
-
|
|
42594
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop27 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop27 !== void 0 && (_propertyDetails$Prop28 = _propertyDetails$Prop27.address) !== null && _propertyDetails$Prop28 !== void 0 && _propertyDetails$Prop28.city) {
|
|
42595
|
-
propertyAddress += ", ";
|
|
42596
|
-
}
|
|
42597
|
-
}
|
|
42598
|
-
|
|
42599
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop29 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop29 !== void 0 && (_propertyDetails$Prop30 = _propertyDetails$Prop29.address) !== null && _propertyDetails$Prop30 !== void 0 && _propertyDetails$Prop30.city) {
|
|
42600
|
-
var _propertyDetails$Prop31, _propertyDetails$Prop32, _propertyDetails$Prop33, _propertyDetails$Prop34;
|
|
42601
|
-
|
|
42602
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop31 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop31 === void 0 ? void 0 : (_propertyDetails$Prop32 = _propertyDetails$Prop31.address) === null || _propertyDetails$Prop32 === void 0 ? void 0 : _propertyDetails$Prop32.city;
|
|
42603
|
-
|
|
42604
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop33 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop33 !== void 0 && (_propertyDetails$Prop34 = _propertyDetails$Prop33.address) !== null && _propertyDetails$Prop34 !== void 0 && _propertyDetails$Prop34.pincode) {
|
|
42605
|
-
propertyAddress += ", ";
|
|
42606
|
-
}
|
|
42607
|
-
}
|
|
42608
|
-
|
|
42609
|
-
if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop35 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop35 !== void 0 && (_propertyDetails$Prop36 = _propertyDetails$Prop35.address) !== null && _propertyDetails$Prop36 !== void 0 && _propertyDetails$Prop36.pincode) {
|
|
42610
|
-
var _propertyDetails$Prop37, _propertyDetails$Prop38;
|
|
42611
|
-
|
|
42612
|
-
propertyAddress += propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop37 = propertyDetails.Properties[0]) === null || _propertyDetails$Prop37 === void 0 ? void 0 : (_propertyDetails$Prop38 = _propertyDetails$Prop37.address) === null || _propertyDetails$Prop38 === void 0 ? void 0 : _propertyDetails$Prop38.pincode;
|
|
42613
|
-
}
|
|
42568
|
+
propertyAddress = getAddress(propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties[0]) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop.address, t);
|
|
42614
42569
|
}
|
|
42615
42570
|
|
|
42616
42571
|
var employeeResponse = [];
|
|
@@ -42710,16 +42665,16 @@ var TLSearch = {
|
|
|
42710
42665
|
title: "PT_DETAILS",
|
|
42711
42666
|
values: [{
|
|
42712
42667
|
title: "TL_PROPERTY_ID",
|
|
42713
|
-
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42668
|
+
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : (_propertyDetails$Prop3 = _propertyDetails$Prop2[0]) === null || _propertyDetails$Prop3 === void 0 ? void 0 : _propertyDetails$Prop3.propertyId) || "NA"
|
|
42714
42669
|
}, {
|
|
42715
42670
|
title: "PT_OWNER_NAME",
|
|
42716
|
-
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42671
|
+
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties) === null || _propertyDetails$Prop4 === void 0 ? void 0 : (_propertyDetails$Prop5 = _propertyDetails$Prop4[0]) === null || _propertyDetails$Prop5 === void 0 ? void 0 : (_propertyDetails$Prop6 = _propertyDetails$Prop5.owners[0]) === null || _propertyDetails$Prop6 === void 0 ? void 0 : _propertyDetails$Prop6.name) || "NA"
|
|
42717
42672
|
}, {
|
|
42718
42673
|
title: "PROPERTY_ADDRESS",
|
|
42719
42674
|
value: propertyAddress || "NA"
|
|
42720
42675
|
}, {
|
|
42721
42676
|
title: "TL_VIEW_PROPERTY_DETAIL",
|
|
42722
|
-
to: "/digit-ui/employee/commonpt/view-property?propertyId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42677
|
+
to: "/digit-ui/employee/commonpt/view-property?propertyId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop7 = propertyDetails.Properties) === null || _propertyDetails$Prop7 === void 0 ? void 0 : (_propertyDetails$Prop8 = _propertyDetails$Prop7[0]) === null || _propertyDetails$Prop8 === void 0 ? void 0 : _propertyDetails$Prop8.propertyId) + "&tenantId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop9 = propertyDetails.Properties) === null || _propertyDetails$Prop9 === void 0 ? void 0 : (_propertyDetails$Prop10 = _propertyDetails$Prop9[0]) === null || _propertyDetails$Prop10 === void 0 ? void 0 : _propertyDetails$Prop10.tenantId) + "&from=TL_APPLICATION_DETAILS_LABEL",
|
|
42723
42678
|
value: "",
|
|
42724
42679
|
isLink: true
|
|
42725
42680
|
}]
|
|
@@ -42863,8 +42818,8 @@ var TLSearch = {
|
|
|
42863
42818
|
response && employeeResponse.push(tradedetails);
|
|
42864
42819
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens57 = response.tradeLicenseDetail) === null || _response$tradeLicens57 === void 0 ? void 0 : _response$tradeLicens57.tradeUnits) && employeeResponse.push(tradeUnits);
|
|
42865
42820
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens58 = response.tradeLicenseDetail) === null || _response$tradeLicens58 === void 0 ? void 0 : _response$tradeLicens58.accessories) && employeeResponse.push(accessories);
|
|
42866
|
-
(propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42867
|
-
response && !((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42821
|
+
(propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop11 = propertyDetails.Properties) === null || _propertyDetails$Prop11 === void 0 ? void 0 : _propertyDetails$Prop11.length) > 0 && employeeResponse.push(PropertyDetail);
|
|
42822
|
+
response && !((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop12 = propertyDetails.Properties) === null || _propertyDetails$Prop12 === void 0 ? void 0 : _propertyDetails$Prop12.length) > 0) && employeeResponse.push(tradeAddress);
|
|
42868
42823
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens59 = response.tradeLicenseDetail) === null || _response$tradeLicens59 === void 0 ? void 0 : _response$tradeLicens59.owners) && employeeResponse.push(owners);
|
|
42869
42824
|
return {
|
|
42870
42825
|
tenantId: response.tenantId,
|
|
@@ -46181,7 +46136,7 @@ var getDate = function getDate(epochdate) {
|
|
|
46181
46136
|
return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
|
|
46182
46137
|
};
|
|
46183
46138
|
|
|
46184
|
-
var getAddress = function getAddress(address, t) {
|
|
46139
|
+
var getAddress$1 = function getAddress(address, t) {
|
|
46185
46140
|
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(address === null || address === void 0 ? void 0 : address.locality.code) + ", " + t(address === null || address === void 0 ? void 0 : address.city.code) + "," + (t(address === null || address === void 0 ? void 0 : address.pincode) ? "" + address.pincode : " ");
|
|
46186
46141
|
};
|
|
46187
46142
|
|
|
@@ -46198,7 +46153,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
|
|
|
46198
46153
|
})[0]) === null || _properties$filter$ === void 0 ? void 0 : (_properties$filter$$o = _properties$filter$.owners) === null || _properties$filter$$o === void 0 ? void 0 : _properties$filter$$o.map(function (ow) {
|
|
46199
46154
|
return ow.name;
|
|
46200
46155
|
}).join(","),
|
|
46201
|
-
Address: getAddress(properties.filter(function (prop) {
|
|
46156
|
+
Address: getAddress$1(properties.filter(function (prop) {
|
|
46202
46157
|
return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
|
|
46203
46158
|
})[0].address, t),
|
|
46204
46159
|
AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
|
|
@@ -46282,7 +46237,7 @@ var getDate$1 = function getDate(epochdate) {
|
|
|
46282
46237
|
return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
|
|
46283
46238
|
};
|
|
46284
46239
|
|
|
46285
|
-
var getAddress$
|
|
46240
|
+
var getAddress$2 = function getAddress(address, t) {
|
|
46286
46241
|
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(address === null || address === void 0 ? void 0 : address.locality.code) + ", " + t(address === null || address === void 0 ? void 0 : address.city.code) + "," + (t(address === null || address === void 0 ? void 0 : address.pincode) ? "" + address.pincode : " ");
|
|
46287
46242
|
};
|
|
46288
46243
|
|
|
@@ -46299,7 +46254,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
|
|
|
46299
46254
|
})[0]) === null || _properties$filter$ === void 0 ? void 0 : (_properties$filter$$o = _properties$filter$.owners) === null || _properties$filter$$o === void 0 ? void 0 : _properties$filter$$o.map(function (ow) {
|
|
46300
46255
|
return ow.name;
|
|
46301
46256
|
}).join(","),
|
|
46302
|
-
Address: getAddress$
|
|
46257
|
+
Address: getAddress$2(properties.filter(function (prop) {
|
|
46303
46258
|
return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
|
|
46304
46259
|
})[0].address, t),
|
|
46305
46260
|
AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {
|