@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.js
CHANGED
|
@@ -34143,12 +34143,13 @@ var Download = {
|
|
|
34143
34143
|
});
|
|
34144
34144
|
},
|
|
34145
34145
|
Excel: function Excel(data, filename) {
|
|
34146
|
+
var file = filename.substring(0, 30);
|
|
34146
34147
|
var wb = XLSX.utils.book_new();
|
|
34147
34148
|
var ws = null;
|
|
34148
34149
|
ws = XLSX.utils.json_to_sheet(data);
|
|
34149
|
-
wb.SheetNames.push(
|
|
34150
|
-
wb.Sheets[
|
|
34151
|
-
XLSX.writeFile(wb,
|
|
34150
|
+
wb.SheetNames.push(file);
|
|
34151
|
+
wb.Sheets[file] = ws;
|
|
34152
|
+
XLSX.writeFile(wb, file + ".xlsx");
|
|
34152
34153
|
},
|
|
34153
34154
|
PDF: function PDF(node, fileName, share, resolve) {
|
|
34154
34155
|
if (resolve === void 0) {
|
|
@@ -37132,14 +37133,18 @@ var UrlShortener = function UrlShortener(fileStoreId) {
|
|
|
37132
37133
|
});
|
|
37133
37134
|
};
|
|
37134
37135
|
|
|
37136
|
+
var isMobileOrTablet = function isMobileOrTablet() {
|
|
37137
|
+
return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
|
|
37138
|
+
};
|
|
37139
|
+
|
|
37135
37140
|
var ShareFiles = {
|
|
37136
37141
|
targetLink: function targetLink(target, shortUrl) {
|
|
37137
37142
|
switch (target) {
|
|
37138
37143
|
case "mail":
|
|
37139
|
-
return window.open("mailto:?body=" + shortUrl, "_blank");
|
|
37144
|
+
return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
|
|
37140
37145
|
|
|
37141
37146
|
case "whatsapp":
|
|
37142
|
-
|
|
37147
|
+
return window.open('https://' + (isMobileOrTablet() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
|
|
37143
37148
|
|
|
37144
37149
|
default:
|
|
37145
37150
|
return window.open(shortUrl, "_blank");
|
|
@@ -37163,7 +37168,7 @@ var ShareFiles = {
|
|
|
37163
37168
|
files: [pdfData],
|
|
37164
37169
|
title: filename
|
|
37165
37170
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, pdfData)).then(function (shortUrl) {
|
|
37166
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37171
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37167
37172
|
});
|
|
37168
37173
|
});
|
|
37169
37174
|
} catch (e) {
|
|
@@ -37179,7 +37184,7 @@ var ShareFiles = {
|
|
|
37179
37184
|
files: [imageData],
|
|
37180
37185
|
title: filename
|
|
37181
37186
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37182
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37187
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37183
37188
|
});
|
|
37184
37189
|
});
|
|
37185
37190
|
} catch (e) {
|
|
@@ -37195,7 +37200,7 @@ var ShareFiles = {
|
|
|
37195
37200
|
files: [imageData],
|
|
37196
37201
|
title: filename
|
|
37197
37202
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37198
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37203
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37199
37204
|
});
|
|
37200
37205
|
});
|
|
37201
37206
|
} catch (e) {
|
|
@@ -37211,7 +37216,7 @@ var ShareFiles = {
|
|
|
37211
37216
|
files: [imageData],
|
|
37212
37217
|
title: filename
|
|
37213
37218
|
}) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
|
|
37214
|
-
ShareFiles.targetLink(target, shortUrl);
|
|
37219
|
+
return ShareFiles.targetLink(target, shortUrl);
|
|
37215
37220
|
});
|
|
37216
37221
|
});
|
|
37217
37222
|
} catch (e) {
|
|
@@ -42495,6 +42500,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
|
|
|
42495
42500
|
}
|
|
42496
42501
|
};
|
|
42497
42502
|
|
|
42503
|
+
var getAddress = function getAddress(address, t) {
|
|
42504
|
+
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 : " ");
|
|
42505
|
+
};
|
|
42506
|
+
|
|
42498
42507
|
var TLSearch = {
|
|
42499
42508
|
all: function (tenantId, filters) {
|
|
42500
42509
|
if (filters === void 0) {
|
|
@@ -42552,68 +42561,14 @@ var TLSearch = {
|
|
|
42552
42561
|
|
|
42553
42562
|
function _temp3(propertyDetails) {
|
|
42554
42563
|
function _temp2() {
|
|
42555
|
-
var
|
|
42564
|
+
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;
|
|
42556
42565
|
|
|
42557
42566
|
var propertyAddress = "";
|
|
42558
42567
|
|
|
42559
|
-
if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 &&
|
|
42560
|
-
var _propertyDetails$
|
|
42561
|
-
|
|
42562
|
-
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) {
|
|
42563
|
-
var _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7;
|
|
42564
|
-
|
|
42565
|
-
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;
|
|
42566
|
-
|
|
42567
|
-
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) {
|
|
42568
|
-
propertyAddress += ", ";
|
|
42569
|
-
}
|
|
42570
|
-
}
|
|
42568
|
+
if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
|
|
42569
|
+
var _propertyDetails$Prop;
|
|
42571
42570
|
|
|
42572
|
-
|
|
42573
|
-
var _propertyDetails$Prop10, _propertyDetails$Prop11, _propertyDetails$Prop12, _propertyDetails$Prop13;
|
|
42574
|
-
|
|
42575
|
-
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;
|
|
42576
|
-
|
|
42577
|
-
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) {
|
|
42578
|
-
propertyAddress += ", ";
|
|
42579
|
-
}
|
|
42580
|
-
}
|
|
42581
|
-
|
|
42582
|
-
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) {
|
|
42583
|
-
var _propertyDetails$Prop16, _propertyDetails$Prop17, _propertyDetails$Prop18, _propertyDetails$Prop19, _propertyDetails$Prop20;
|
|
42584
|
-
|
|
42585
|
-
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;
|
|
42586
|
-
|
|
42587
|
-
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) {
|
|
42588
|
-
propertyAddress += ", ";
|
|
42589
|
-
}
|
|
42590
|
-
}
|
|
42591
|
-
|
|
42592
|
-
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) {
|
|
42593
|
-
var _propertyDetails$Prop24, _propertyDetails$Prop25, _propertyDetails$Prop26, _propertyDetails$Prop27, _propertyDetails$Prop28;
|
|
42594
|
-
|
|
42595
|
-
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;
|
|
42596
|
-
|
|
42597
|
-
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) {
|
|
42598
|
-
propertyAddress += ", ";
|
|
42599
|
-
}
|
|
42600
|
-
}
|
|
42601
|
-
|
|
42602
|
-
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) {
|
|
42603
|
-
var _propertyDetails$Prop31, _propertyDetails$Prop32, _propertyDetails$Prop33, _propertyDetails$Prop34;
|
|
42604
|
-
|
|
42605
|
-
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;
|
|
42606
|
-
|
|
42607
|
-
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) {
|
|
42608
|
-
propertyAddress += ", ";
|
|
42609
|
-
}
|
|
42610
|
-
}
|
|
42611
|
-
|
|
42612
|
-
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) {
|
|
42613
|
-
var _propertyDetails$Prop37, _propertyDetails$Prop38;
|
|
42614
|
-
|
|
42615
|
-
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;
|
|
42616
|
-
}
|
|
42571
|
+
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);
|
|
42617
42572
|
}
|
|
42618
42573
|
|
|
42619
42574
|
var employeeResponse = [];
|
|
@@ -42713,16 +42668,16 @@ var TLSearch = {
|
|
|
42713
42668
|
title: "PT_DETAILS",
|
|
42714
42669
|
values: [{
|
|
42715
42670
|
title: "TL_PROPERTY_ID",
|
|
42716
|
-
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42671
|
+
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"
|
|
42717
42672
|
}, {
|
|
42718
42673
|
title: "PT_OWNER_NAME",
|
|
42719
|
-
value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42674
|
+
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"
|
|
42720
42675
|
}, {
|
|
42721
42676
|
title: "PROPERTY_ADDRESS",
|
|
42722
42677
|
value: propertyAddress || "NA"
|
|
42723
42678
|
}, {
|
|
42724
42679
|
title: "TL_VIEW_PROPERTY_DETAIL",
|
|
42725
|
-
to: "/digit-ui/employee/commonpt/view-property?propertyId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42680
|
+
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",
|
|
42726
42681
|
value: "",
|
|
42727
42682
|
isLink: true
|
|
42728
42683
|
}]
|
|
@@ -42866,8 +42821,8 @@ var TLSearch = {
|
|
|
42866
42821
|
response && employeeResponse.push(tradedetails);
|
|
42867
42822
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens57 = response.tradeLicenseDetail) === null || _response$tradeLicens57 === void 0 ? void 0 : _response$tradeLicens57.tradeUnits) && employeeResponse.push(tradeUnits);
|
|
42868
42823
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens58 = response.tradeLicenseDetail) === null || _response$tradeLicens58 === void 0 ? void 0 : _response$tradeLicens58.accessories) && employeeResponse.push(accessories);
|
|
42869
|
-
(propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42870
|
-
response && !((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$
|
|
42824
|
+
(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);
|
|
42825
|
+
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);
|
|
42871
42826
|
(response === null || response === void 0 ? void 0 : (_response$tradeLicens59 = response.tradeLicenseDetail) === null || _response$tradeLicens59 === void 0 ? void 0 : _response$tradeLicens59.owners) && employeeResponse.push(owners);
|
|
42872
42827
|
return {
|
|
42873
42828
|
tenantId: response.tenantId,
|
|
@@ -46184,7 +46139,7 @@ var getDate = function getDate(epochdate) {
|
|
|
46184
46139
|
return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
|
|
46185
46140
|
};
|
|
46186
46141
|
|
|
46187
|
-
var getAddress = function getAddress(address, t) {
|
|
46142
|
+
var getAddress$1 = function getAddress(address, t) {
|
|
46188
46143
|
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 : " ");
|
|
46189
46144
|
};
|
|
46190
46145
|
|
|
@@ -46201,7 +46156,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
|
|
|
46201
46156
|
})[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) {
|
|
46202
46157
|
return ow.name;
|
|
46203
46158
|
}).join(","),
|
|
46204
|
-
Address: getAddress(properties.filter(function (prop) {
|
|
46159
|
+
Address: getAddress$1(properties.filter(function (prop) {
|
|
46205
46160
|
return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
|
|
46206
46161
|
})[0].address, t),
|
|
46207
46162
|
AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
|
|
@@ -46285,7 +46240,7 @@ var getDate$1 = function getDate(epochdate) {
|
|
|
46285
46240
|
return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
|
|
46286
46241
|
};
|
|
46287
46242
|
|
|
46288
|
-
var getAddress$
|
|
46243
|
+
var getAddress$2 = function getAddress(address, t) {
|
|
46289
46244
|
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 : " ");
|
|
46290
46245
|
};
|
|
46291
46246
|
|
|
@@ -46302,7 +46257,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
|
|
|
46302
46257
|
})[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) {
|
|
46303
46258
|
return ow.name;
|
|
46304
46259
|
}).join(","),
|
|
46305
|
-
Address: getAddress$
|
|
46260
|
+
Address: getAddress$2(properties.filter(function (prop) {
|
|
46306
46261
|
return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
|
|
46307
46262
|
})[0].address, t),
|
|
46308
46263
|
AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {
|