@egovernments/digit-ui-libraries 1.5.0-beta.2 → 1.5.0-beta.25

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.
@@ -970,6 +970,8 @@ var LocalizationService = {
970
970
  locale: locale,
971
971
  tenantId: tenantId
972
972
  });
973
+ localStorage.setItem("Employee.locale", locale);
974
+ localStorage.setItem("Citizen.locale", locale);
973
975
  Digit.SessionStorage.set("locale", locale);
974
976
  i18next.changeLanguage(locale);
975
977
  },
@@ -34138,12 +34140,13 @@ var Download = {
34138
34140
  });
34139
34141
  },
34140
34142
  Excel: function Excel(data, filename) {
34143
+ var file = filename.substring(0, 30);
34141
34144
  var wb = XLSX.utils.book_new();
34142
34145
  var ws = null;
34143
34146
  ws = XLSX.utils.json_to_sheet(data);
34144
- wb.SheetNames.push(filename);
34145
- wb.Sheets[filename] = ws;
34146
- XLSX.writeFile(wb, filename + ".xlsx");
34147
+ wb.SheetNames.push(file);
34148
+ wb.Sheets[file] = ws;
34149
+ XLSX.writeFile(wb, file + ".xlsx");
34147
34150
  },
34148
34151
  PDF: function PDF(node, fileName, share, resolve) {
34149
34152
  if (resolve === void 0) {
@@ -34151,6 +34154,10 @@ var Download = {
34151
34154
  }
34152
34155
 
34153
34156
  var saveAs = function saveAs(uri, filename) {
34157
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34158
+ window.mSewaApp.downloadBase64File(uri, filename);
34159
+ }
34160
+
34154
34161
  var link = document.createElement("a");
34155
34162
 
34156
34163
  if (typeof link.download === "string") {
@@ -34207,6 +34214,10 @@ var Download = {
34207
34214
  }
34208
34215
 
34209
34216
  var saveAs = function saveAs(uri, filename) {
34217
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34218
+ window.mSewaApp.downloadBase64File(uri, filename);
34219
+ }
34220
+
34210
34221
  var link = document.createElement("a");
34211
34222
 
34212
34223
  if (typeof link.download === "string") {
@@ -37119,14 +37130,18 @@ var UrlShortener = function UrlShortener(fileStoreId) {
37119
37130
  });
37120
37131
  };
37121
37132
 
37133
+ var isMobileOrTablet = function isMobileOrTablet() {
37134
+ return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
37135
+ };
37136
+
37122
37137
  var ShareFiles = {
37123
37138
  targetLink: function targetLink(target, shortUrl) {
37124
37139
  switch (target) {
37125
37140
  case "mail":
37126
- return window.open("mailto:?body=" + shortUrl, "_blank");
37141
+ return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
37127
37142
 
37128
37143
  case "whatsapp":
37129
- return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37144
+ return window.open('https://' + (isMobileOrTablet() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
37130
37145
 
37131
37146
  default:
37132
37147
  return window.open(shortUrl, "_blank");
@@ -37150,7 +37165,7 @@ var ShareFiles = {
37150
37165
  files: [pdfData],
37151
37166
  title: filename
37152
37167
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, pdfData)).then(function (shortUrl) {
37153
- ShareFiles.targetLink(target, shortUrl);
37168
+ return ShareFiles.targetLink(target, shortUrl);
37154
37169
  });
37155
37170
  });
37156
37171
  } catch (e) {
@@ -37166,7 +37181,7 @@ var ShareFiles = {
37166
37181
  files: [imageData],
37167
37182
  title: filename
37168
37183
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37169
- ShareFiles.targetLink(target, shortUrl);
37184
+ return ShareFiles.targetLink(target, shortUrl);
37170
37185
  });
37171
37186
  });
37172
37187
  } catch (e) {
@@ -37182,7 +37197,7 @@ var ShareFiles = {
37182
37197
  files: [imageData],
37183
37198
  title: filename
37184
37199
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37185
- ShareFiles.targetLink(target, shortUrl);
37200
+ return ShareFiles.targetLink(target, shortUrl);
37186
37201
  });
37187
37202
  });
37188
37203
  } catch (e) {
@@ -37198,7 +37213,7 @@ var ShareFiles = {
37198
37213
  files: [imageData],
37199
37214
  title: filename
37200
37215
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37201
- ShareFiles.targetLink(target, shortUrl);
37216
+ return ShareFiles.targetLink(target, shortUrl);
37202
37217
  });
37203
37218
  });
37204
37219
  } catch (e) {
@@ -41332,7 +41347,7 @@ var PTSearch = {
41332
41347
  value: owner === null || owner === void 0 ? void 0 : owner.emailId
41333
41348
  }, {
41334
41349
  title: "PT_OWNERSHIP_INFO_CORR_ADDR",
41335
- value: owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress
41350
+ value: owner === null || owner === void 0 ? void 0 : owner.permanentAddress
41336
41351
  }]
41337
41352
  };
41338
41353
  })
@@ -42249,7 +42264,7 @@ var useTradeLicenseMDMS = function useTradeLicenseMDMS(tenantId, moduleCode, typ
42249
42264
  };
42250
42265
 
42251
42266
  var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42252
- var _data, _data$value, _data$value$owners, _data$value$owners$do, _data2, _data2$value, _data2$value$owners, _data2$value$owners$d, _data3, _data3$value, _data3$value$owners, _data3$value$owners$d;
42267
+ var _data, _data$value, _data$value$tradeLice, _data2, _data3, _data3$workflowDocs, _data4, _data4$value, _data4$value$owners, _data4$value$owners$d, _data5, _data5$value, _data5$value$owners, _data5$value$owners$d, _data6, _data6$value, _data6$value$owners, _data6$value$owners$d;
42253
42268
 
42254
42269
  if (data1 === void 0) {
42255
42270
  data1 = {};
@@ -42258,10 +42273,15 @@ var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42258
42273
  var client = useQueryClient();
42259
42274
  var tenantId = Digit.ULBService.getCurrentTenantId();
42260
42275
  var tenant = Digit.ULBService.getStateId();
42261
- var filesArray = [];
42262
- if ((_data = data1) !== null && _data !== void 0 && (_data$value = _data.value) !== null && _data$value !== void 0 && (_data$value$owners = _data$value.owners) !== null && _data$value$owners !== void 0 && (_data$value$owners$do = _data$value$owners.documents["OwnerPhotoProof"]) !== null && _data$value$owners$do !== void 0 && _data$value$owners$do.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
42263
- if ((_data2 = data1) !== null && _data2 !== void 0 && (_data2$value = _data2.value) !== null && _data2$value !== void 0 && (_data2$value$owners = _data2$value.owners) !== null && _data2$value$owners !== void 0 && (_data2$value$owners$d = _data2$value$owners.documents["ProofOfIdentity"]) !== null && _data2$value$owners$d !== void 0 && _data2$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
42264
- if ((_data3 = data1) !== null && _data3 !== void 0 && (_data3$value = _data3.value) !== null && _data3$value !== void 0 && (_data3$value$owners = _data3$value.owners) !== null && _data3$value$owners !== void 0 && (_data3$value$owners$d = _data3$value$owners.documents["ProofOfOwnership"]) !== null && _data3$value$owners$d !== void 0 && _data3$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
42276
+ var filesArray = window.location.href.includes("/tl/tradelicence/application/") ? (_data = data1) === null || _data === void 0 ? void 0 : (_data$value = _data.value) === null || _data$value === void 0 ? void 0 : (_data$value$tradeLice = _data$value.tradeLicenseDetail) === null || _data$value$tradeLice === void 0 ? void 0 : _data$value$tradeLice.applicationDocuments.map(function (ob) {
42277
+ return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
42278
+ }) : [];
42279
+ if ((_data2 = data1) !== null && _data2 !== void 0 && _data2.workflowDocs) filesArray = (_data3 = data1) === null || _data3 === void 0 ? void 0 : (_data3$workflowDocs = _data3.workflowDocs) === null || _data3$workflowDocs === void 0 ? void 0 : _data3$workflowDocs.map(function (ob) {
42280
+ return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
42281
+ });
42282
+ if ((_data4 = data1) !== null && _data4 !== void 0 && (_data4$value = _data4.value) !== null && _data4$value !== void 0 && (_data4$value$owners = _data4$value.owners) !== null && _data4$value$owners !== void 0 && (_data4$value$owners$d = _data4$value$owners.documents["OwnerPhotoProof"]) !== null && _data4$value$owners$d !== void 0 && _data4$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
42283
+ if ((_data5 = data1) !== null && _data5 !== void 0 && (_data5$value = _data5.value) !== null && _data5$value !== void 0 && (_data5$value$owners = _data5$value.owners) !== null && _data5$value$owners !== void 0 && (_data5$value$owners$d = _data5$value$owners.documents["ProofOfIdentity"]) !== null && _data5$value$owners$d !== void 0 && _data5$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
42284
+ if ((_data6 = data1) !== null && _data6 !== void 0 && (_data6$value = _data6.value) !== null && _data6$value !== void 0 && (_data6$value$owners = _data6$value.owners) !== null && _data6$value$owners !== void 0 && (_data6$value$owners$d = _data6$value$owners.documents["ProofOfOwnership"]) !== null && _data6$value$owners$d !== void 0 && _data6$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
42265
42285
 
42266
42286
  var _useQuery = useQuery(["tlDocuments-" + 1, filesArray], function () {
42267
42287
  return Digit.UploadServices.Filefetch(filesArray, tenant);
@@ -42482,6 +42502,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
42482
42502
  }
42483
42503
  };
42484
42504
 
42505
+ var getAddress = function getAddress(address, t) {
42506
+ 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 : " ");
42507
+ };
42508
+
42485
42509
  var TLSearch = {
42486
42510
  all: function (tenantId, filters) {
42487
42511
  if (filters === void 0) {
@@ -42539,68 +42563,14 @@ var TLSearch = {
42539
42563
 
42540
42564
  function _temp3(propertyDetails) {
42541
42565
  function _temp2() {
42542
- var _propertyDetails$Prop, _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$Prop39, _propertyDetails$Prop40, _propertyDetails$Prop41, _propertyDetails$Prop42, _propertyDetails$Prop43, _propertyDetails$Prop44, _propertyDetails$Prop45, _propertyDetails$Prop46, _propertyDetails$Prop47, _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$Prop48, _propertyDetails$Prop49, _response$tradeLicens59;
42566
+ 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;
42543
42567
 
42544
42568
  var propertyAddress = "";
42545
42569
 
42546
- if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop.length) {
42547
- var _propertyDetails$Prop2, _propertyDetails$Prop3, _propertyDetails$Prop8, _propertyDetails$Prop9, _propertyDetails$Prop14, _propertyDetails$Prop15, _propertyDetails$Prop21, _propertyDetails$Prop22, _propertyDetails$Prop23, _propertyDetails$Prop29, _propertyDetails$Prop30, _propertyDetails$Prop35, _propertyDetails$Prop36;
42548
-
42549
- 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) {
42550
- var _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7;
42551
-
42552
- 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;
42553
-
42554
- 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) {
42555
- propertyAddress += ", ";
42556
- }
42557
- }
42558
-
42559
- if (propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop8 = propertyDetails.Properties[0]) !== null && _propertyDetails$Prop8 !== void 0 && (_propertyDetails$Prop9 = _propertyDetails$Prop8.address) !== null && _propertyDetails$Prop9 !== void 0 && _propertyDetails$Prop9.street) {
42560
- var _propertyDetails$Prop10, _propertyDetails$Prop11, _propertyDetails$Prop12, _propertyDetails$Prop13;
42561
-
42562
- 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;
42563
-
42564
- 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) {
42565
- propertyAddress += ", ";
42566
- }
42567
- }
42568
-
42569
- 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) {
42570
- var _propertyDetails$Prop16, _propertyDetails$Prop17, _propertyDetails$Prop18, _propertyDetails$Prop19, _propertyDetails$Prop20;
42571
-
42572
- 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;
42570
+ if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
42571
+ var _propertyDetails$Prop;
42573
42572
 
42574
- 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) {
42575
- propertyAddress += ", ";
42576
- }
42577
- }
42578
-
42579
- 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) {
42580
- var _propertyDetails$Prop24, _propertyDetails$Prop25, _propertyDetails$Prop26, _propertyDetails$Prop27, _propertyDetails$Prop28;
42581
-
42582
- 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;
42583
-
42584
- 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) {
42585
- propertyAddress += ", ";
42586
- }
42587
- }
42588
-
42589
- 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) {
42590
- var _propertyDetails$Prop31, _propertyDetails$Prop32, _propertyDetails$Prop33, _propertyDetails$Prop34;
42591
-
42592
- 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;
42593
-
42594
- 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) {
42595
- propertyAddress += ", ";
42596
- }
42597
- }
42598
-
42599
- 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) {
42600
- var _propertyDetails$Prop37, _propertyDetails$Prop38;
42601
-
42602
- 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;
42603
- }
42573
+ 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);
42604
42574
  }
42605
42575
 
42606
42576
  var employeeResponse = [];
@@ -42621,7 +42591,7 @@ var TLSearch = {
42621
42591
  value: response !== null && response !== void 0 && (_response$tradeLicens2 = response.tradeLicenseDetail) !== null && _response$tradeLicens2 !== void 0 && _response$tradeLicens2.structureType ? "COMMON_MASTERS_STRUCTURETYPE_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens3 = response.tradeLicenseDetail) === null || _response$tradeLicens3 === void 0 ? void 0 : (_response$tradeLicens4 = _response$tradeLicens3.structureType) === null || _response$tradeLicens4 === void 0 ? void 0 : _response$tradeLicens4.split(".")[0]) : "NA"
42622
42592
  }, {
42623
42593
  title: "TL_NEW_TRADE_DETAILS_STRUCT_SUB_TYPE_LABEL",
42624
- value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "COMMON_MASTERS_STRUCTURETYPE_" + stringReplaceAll$2(response === null || response === void 0 ? void 0 : (_response$tradeLicens6 = response.tradeLicenseDetail) === null || _response$tradeLicens6 === void 0 ? void 0 : _response$tradeLicens6.structureType, ".", "_") : "NA"
42594
+ value: response !== null && response !== void 0 && (_response$tradeLicens5 = response.tradeLicenseDetail) !== null && _response$tradeLicens5 !== void 0 && _response$tradeLicens5.structureType ? "TL_" + (response === null || response === void 0 ? void 0 : (_response$tradeLicens6 = response.tradeLicenseDetail) === null || _response$tradeLicens6 === void 0 ? void 0 : _response$tradeLicens6.tradeType) : "NA"
42625
42595
  }, {
42626
42596
  title: "TL_NEW_TRADE_DETAILS_TRADE_COMM_DATE_LABEL",
42627
42597
  value: response !== null && response !== void 0 && response.commencementDate ? convertEpochToDate(response === null || response === void 0 ? void 0 : response.commencementDate) : "NA"
@@ -42700,16 +42670,16 @@ var TLSearch = {
42700
42670
  title: "PT_DETAILS",
42701
42671
  values: [{
42702
42672
  title: "TL_PROPERTY_ID",
42703
- value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop39 = propertyDetails.Properties) === null || _propertyDetails$Prop39 === void 0 ? void 0 : (_propertyDetails$Prop40 = _propertyDetails$Prop39[0]) === null || _propertyDetails$Prop40 === void 0 ? void 0 : _propertyDetails$Prop40.propertyId) || "NA"
42673
+ 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"
42704
42674
  }, {
42705
42675
  title: "PT_OWNER_NAME",
42706
- value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop41 = propertyDetails.Properties) === null || _propertyDetails$Prop41 === void 0 ? void 0 : (_propertyDetails$Prop42 = _propertyDetails$Prop41[0]) === null || _propertyDetails$Prop42 === void 0 ? void 0 : (_propertyDetails$Prop43 = _propertyDetails$Prop42.owners[0]) === null || _propertyDetails$Prop43 === void 0 ? void 0 : _propertyDetails$Prop43.name) || "NA"
42676
+ 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"
42707
42677
  }, {
42708
42678
  title: "PROPERTY_ADDRESS",
42709
42679
  value: propertyAddress || "NA"
42710
42680
  }, {
42711
42681
  title: "TL_VIEW_PROPERTY_DETAIL",
42712
- to: "/digit-ui/employee/commonpt/view-property?propertyId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop44 = propertyDetails.Properties) === null || _propertyDetails$Prop44 === void 0 ? void 0 : (_propertyDetails$Prop45 = _propertyDetails$Prop44[0]) === null || _propertyDetails$Prop45 === void 0 ? void 0 : _propertyDetails$Prop45.propertyId) + "&tenantId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop46 = propertyDetails.Properties) === null || _propertyDetails$Prop46 === void 0 ? void 0 : (_propertyDetails$Prop47 = _propertyDetails$Prop46[0]) === null || _propertyDetails$Prop47 === void 0 ? void 0 : _propertyDetails$Prop47.tenantId),
42682
+ 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",
42713
42683
  value: "",
42714
42684
  isLink: true
42715
42685
  }]
@@ -42853,8 +42823,8 @@ var TLSearch = {
42853
42823
  response && employeeResponse.push(tradedetails);
42854
42824
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens57 = response.tradeLicenseDetail) === null || _response$tradeLicens57 === void 0 ? void 0 : _response$tradeLicens57.tradeUnits) && employeeResponse.push(tradeUnits);
42855
42825
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens58 = response.tradeLicenseDetail) === null || _response$tradeLicens58 === void 0 ? void 0 : _response$tradeLicens58.accessories) && employeeResponse.push(accessories);
42856
- (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop48 = propertyDetails.Properties) === null || _propertyDetails$Prop48 === void 0 ? void 0 : _propertyDetails$Prop48.length) > 0 && employeeResponse.push(PropertyDetail);
42857
- response && !((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop49 = propertyDetails.Properties) === null || _propertyDetails$Prop49 === void 0 ? void 0 : _propertyDetails$Prop49.length) > 0) && employeeResponse.push(tradeAddress);
42826
+ (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);
42827
+ 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);
42858
42828
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens59 = response.tradeLicenseDetail) === null || _response$tradeLicens59 === void 0 ? void 0 : _response$tradeLicens59.owners) && employeeResponse.push(owners);
42859
42829
  return {
42860
42830
  tenantId: response.tenantId,
@@ -43890,7 +43860,7 @@ var OBPSService = {
43890
43860
  isEmployee: true
43891
43861
  })).then(function (paymentRes) {
43892
43862
  return Promise.resolve(MdmsService.getMultipleTypes(License === null || License === void 0 ? void 0 : License.tenantId, "StakeholderRegistraition", ["TradeTypetoRoleMapping"])).then(function (mdmsRes) {
43893
- var _License$tradeLicense, _License$tradeLicense2, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense8, _License$tradeLicense9, _License$tradeLicense10, _License$tradeLicense11, _License$tradeLicense12, _License$tradeLicense13, _License$tradeLicense14, _License$tradeLicense15, _License$tradeLicense16, _License$tradeLicense17, _License$tradeLicense18, _License$tradeLicense19, _License$tradeLicense20, _License$tradeLicense21, _License$tradeLicense22, _License$tradeLicense23, _License$tradeLicense24, _License$tradeLicense25, _License$tradeLicense26, _License$tradeLicense27, _License$tradeLicense28, _License$tradeLicense29, _License$tradeLicense30, _License$tradeLicense31, _License$tradeLicense32, _License$tradeLicense33, _License$tradeLicense34, _License$tradeLicense35, _License$tradeLicense36, _License$tradeLicense37, _License$tradeLicense38, _License$tradeLicense39, _License$tradeLicense40, _License$tradeLicense41, _License$tradeLicense42, _License$tradeLicense43, _paymentRes$Payments, _paymentRes$Payments2, _paymentRes$Payments3, _paymentRes$Payments4, _paymentRes$Payments5, _ref;
43863
+ var _License$tradeLicense, _License$tradeLicense2, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense8, _License$tradeLicense9;
43894
43864
 
43895
43865
  if (License !== null && License !== void 0 && (_License$tradeLicense = License.tradeLicenseDetail) !== null && _License$tradeLicense !== void 0 && (_License$tradeLicense2 = _License$tradeLicense.applicationDocuments) !== null && _License$tradeLicense2 !== void 0 && _License$tradeLicense2.length && (mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$StakeholderR = mdmsRes.StakeholderRegistraition) === null || _mdmsRes$StakeholderR === void 0 ? void 0 : (_mdmsRes$StakeholderR2 = _mdmsRes$StakeholderR.TradeTypetoRoleMapping) === null || _mdmsRes$StakeholderR2 === void 0 ? void 0 : _mdmsRes$StakeholderR2.length) > 0) {
43896
43866
  var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
@@ -43912,103 +43882,111 @@ var OBPSService = {
43912
43882
  });
43913
43883
  }
43914
43884
 
43915
- var details = [{
43916
- title: " ",
43917
- values: [{
43918
- title: "BPA_APPLICATION_NUMBER_LABEL",
43919
- value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43920
- }]
43921
- }, License !== null && License !== void 0 && (_License$tradeLicense8 = License.tradeLicenseDetail) !== null && _License$tradeLicense8 !== void 0 && (_License$tradeLicense9 = _License$tradeLicense8.tradeUnits) !== null && _License$tradeLicense9 !== void 0 && (_License$tradeLicense10 = _License$tradeLicense9[0]) !== null && _License$tradeLicense10 !== void 0 && _License$tradeLicense10.tradeType.includes("ARCHITECT") ? {
43922
- title: "BPA_LICENSE_DETAILS_LABEL",
43923
- asSectionHeader: true,
43924
- values: [{
43925
- title: "BPA_LICENSE_TYPE",
43926
- value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense11 = License.tradeLicenseDetail) === null || _License$tradeLicense11 === void 0 ? void 0 : (_License$tradeLicense12 = _License$tradeLicense11.tradeUnits) === null || _License$tradeLicense12 === void 0 ? void 0 : (_License$tradeLicense13 = _License$tradeLicense12[0]) === null || _License$tradeLicense13 === void 0 ? void 0 : (_License$tradeLicense14 = _License$tradeLicense13.tradeType) === null || _License$tradeLicense14 === void 0 ? void 0 : _License$tradeLicense14.split(".")[0]) || "NA"
43927
- }, {
43928
- title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43929
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense15 = License.tradeLicenseDetail) === null || _License$tradeLicense15 === void 0 ? void 0 : (_License$tradeLicense16 = _License$tradeLicense15.additionalDetail) === null || _License$tradeLicense16 === void 0 ? void 0 : _License$tradeLicense16.counsilForArchNo) || "NA"
43930
- }]
43931
- } : {
43932
- title: "BPA_LICENSE_DETAILS_LABEL",
43933
- asSectionHeader: true,
43934
- values: [{
43935
- title: "BPA_LICENSE_TYPE",
43936
- value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense17 = License.tradeLicenseDetail) === null || _License$tradeLicense17 === void 0 ? void 0 : (_License$tradeLicense18 = _License$tradeLicense17.tradeUnits) === null || _License$tradeLicense18 === void 0 ? void 0 : (_License$tradeLicense19 = _License$tradeLicense18[0]) === null || _License$tradeLicense19 === void 0 ? void 0 : (_License$tradeLicense20 = _License$tradeLicense19.tradeType) === null || _License$tradeLicense20 === void 0 ? void 0 : _License$tradeLicense20.split(".")[0]) || "NA"
43937
- }]
43938
- }, {
43939
- title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43940
- asSectionHeader: true,
43941
- values: [{
43942
- title: "BPA_APPLICANT_NAME_LABEL",
43943
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense21 = License.tradeLicenseDetail) === null || _License$tradeLicense21 === void 0 ? void 0 : (_License$tradeLicense22 = _License$tradeLicense21.owners) === null || _License$tradeLicense22 === void 0 ? void 0 : (_License$tradeLicense23 = _License$tradeLicense22[0]) === null || _License$tradeLicense23 === void 0 ? void 0 : _License$tradeLicense23.name) || "NA"
43944
- }, {
43945
- title: "BPA_APPLICANT_GENDER_LABEL",
43946
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense24 = License.tradeLicenseDetail) === null || _License$tradeLicense24 === void 0 ? void 0 : (_License$tradeLicense25 = _License$tradeLicense24.owners) === null || _License$tradeLicense25 === void 0 ? void 0 : (_License$tradeLicense26 = _License$tradeLicense25[0]) === null || _License$tradeLicense26 === void 0 ? void 0 : _License$tradeLicense26.gender) || "NA"
43947
- }, {
43948
- title: "BPA_OWNER_MOBILE_NO_LABEL",
43949
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense27 = License.tradeLicenseDetail) === null || _License$tradeLicense27 === void 0 ? void 0 : (_License$tradeLicense28 = _License$tradeLicense27.owners) === null || _License$tradeLicense28 === void 0 ? void 0 : (_License$tradeLicense29 = _License$tradeLicense28[0]) === null || _License$tradeLicense29 === void 0 ? void 0 : _License$tradeLicense29.mobileNumber) || "NA"
43885
+ var appDocumentFileStoreIds = License === null || License === void 0 ? void 0 : (_License$tradeLicense8 = License.tradeLicenseDetail) === null || _License$tradeLicense8 === void 0 ? void 0 : (_License$tradeLicense9 = _License$tradeLicense8.applicationDocuments) === null || _License$tradeLicense9 === void 0 ? void 0 : _License$tradeLicense9.map(function (appDoc) {
43886
+ return appDoc === null || appDoc === void 0 ? void 0 : appDoc.fileStoreId;
43887
+ });
43888
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
43889
+ var _License$tradeLicense10, _License$tradeLicense11, _License$tradeLicense12, _License$tradeLicense13, _License$tradeLicense14, _License$tradeLicense15, _License$tradeLicense16, _License$tradeLicense17, _License$tradeLicense18, _License$tradeLicense19, _License$tradeLicense20, _License$tradeLicense21, _License$tradeLicense22, _License$tradeLicense23, _License$tradeLicense24, _License$tradeLicense25, _License$tradeLicense26, _License$tradeLicense27, _License$tradeLicense28, _License$tradeLicense29, _License$tradeLicense30, _License$tradeLicense31, _License$tradeLicense32, _License$tradeLicense33, _License$tradeLicense34, _License$tradeLicense35, _License$tradeLicense36, _License$tradeLicense37, _License$tradeLicense38, _License$tradeLicense39, _License$tradeLicense40, _License$tradeLicense41, _License$tradeLicense42, _License$tradeLicense43, _License$tradeLicense44, _License$tradeLicense45, _paymentRes$Payments, _paymentRes$Payments2, _paymentRes$Payments3, _paymentRes$Payments4, _paymentRes$Payments5, _ref;
43890
+
43891
+ var details = [{
43892
+ title: " ",
43893
+ values: [{
43894
+ title: "BPA_APPLICATION_NUMBER_LABEL",
43895
+ value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43896
+ }]
43897
+ }, License !== null && License !== void 0 && (_License$tradeLicense10 = License.tradeLicenseDetail) !== null && _License$tradeLicense10 !== void 0 && (_License$tradeLicense11 = _License$tradeLicense10.tradeUnits) !== null && _License$tradeLicense11 !== void 0 && (_License$tradeLicense12 = _License$tradeLicense11[0]) !== null && _License$tradeLicense12 !== void 0 && _License$tradeLicense12.tradeType.includes("ARCHITECT") ? {
43898
+ title: "BPA_LICENSE_DETAILS_LABEL",
43899
+ asSectionHeader: true,
43900
+ values: [{
43901
+ title: "BPA_LICENSE_TYPE",
43902
+ value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense13 = License.tradeLicenseDetail) === null || _License$tradeLicense13 === void 0 ? void 0 : (_License$tradeLicense14 = _License$tradeLicense13.tradeUnits) === null || _License$tradeLicense14 === void 0 ? void 0 : (_License$tradeLicense15 = _License$tradeLicense14[0]) === null || _License$tradeLicense15 === void 0 ? void 0 : (_License$tradeLicense16 = _License$tradeLicense15.tradeType) === null || _License$tradeLicense16 === void 0 ? void 0 : _License$tradeLicense16.split(".")[0]) || "NA"
43903
+ }, {
43904
+ title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43905
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense17 = License.tradeLicenseDetail) === null || _License$tradeLicense17 === void 0 ? void 0 : (_License$tradeLicense18 = _License$tradeLicense17.additionalDetail) === null || _License$tradeLicense18 === void 0 ? void 0 : _License$tradeLicense18.counsilForArchNo) || "NA"
43906
+ }]
43907
+ } : {
43908
+ title: "BPA_LICENSE_DETAILS_LABEL",
43909
+ asSectionHeader: true,
43910
+ values: [{
43911
+ title: "BPA_LICENSE_TYPE",
43912
+ value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense19 = License.tradeLicenseDetail) === null || _License$tradeLicense19 === void 0 ? void 0 : (_License$tradeLicense20 = _License$tradeLicense19.tradeUnits) === null || _License$tradeLicense20 === void 0 ? void 0 : (_License$tradeLicense21 = _License$tradeLicense20[0]) === null || _License$tradeLicense21 === void 0 ? void 0 : (_License$tradeLicense22 = _License$tradeLicense21.tradeType) === null || _License$tradeLicense22 === void 0 ? void 0 : _License$tradeLicense22.split(".")[0]) || "NA"
43913
+ }]
43950
43914
  }, {
43951
- title: "BPA_APPLICANT_EMAIL_LABEL",
43952
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense30 = License.tradeLicenseDetail) === null || _License$tradeLicense30 === void 0 ? void 0 : (_License$tradeLicense31 = _License$tradeLicense30.owners) === null || _License$tradeLicense31 === void 0 ? void 0 : (_License$tradeLicense32 = _License$tradeLicense31[0]) === null || _License$tradeLicense32 === void 0 ? void 0 : _License$tradeLicense32.emailId) || "NA"
43915
+ title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43916
+ asSectionHeader: true,
43917
+ values: [{
43918
+ title: "BPA_APPLICANT_NAME_LABEL",
43919
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense23 = License.tradeLicenseDetail) === null || _License$tradeLicense23 === void 0 ? void 0 : (_License$tradeLicense24 = _License$tradeLicense23.owners) === null || _License$tradeLicense24 === void 0 ? void 0 : (_License$tradeLicense25 = _License$tradeLicense24[0]) === null || _License$tradeLicense25 === void 0 ? void 0 : _License$tradeLicense25.name) || "NA"
43920
+ }, {
43921
+ title: "BPA_APPLICANT_GENDER_LABEL",
43922
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense26 = License.tradeLicenseDetail) === null || _License$tradeLicense26 === void 0 ? void 0 : (_License$tradeLicense27 = _License$tradeLicense26.owners) === null || _License$tradeLicense27 === void 0 ? void 0 : (_License$tradeLicense28 = _License$tradeLicense27[0]) === null || _License$tradeLicense28 === void 0 ? void 0 : _License$tradeLicense28.gender) || "NA"
43923
+ }, {
43924
+ title: "BPA_OWNER_MOBILE_NO_LABEL",
43925
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense29 = License.tradeLicenseDetail) === null || _License$tradeLicense29 === void 0 ? void 0 : (_License$tradeLicense30 = _License$tradeLicense29.owners) === null || _License$tradeLicense30 === void 0 ? void 0 : (_License$tradeLicense31 = _License$tradeLicense30[0]) === null || _License$tradeLicense31 === void 0 ? void 0 : _License$tradeLicense31.mobileNumber) || "NA"
43926
+ }, {
43927
+ title: "BPA_APPLICANT_EMAIL_LABEL",
43928
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense32 = License.tradeLicenseDetail) === null || _License$tradeLicense32 === void 0 ? void 0 : (_License$tradeLicense33 = _License$tradeLicense32.owners) === null || _License$tradeLicense33 === void 0 ? void 0 : (_License$tradeLicense34 = _License$tradeLicense33[0]) === null || _License$tradeLicense34 === void 0 ? void 0 : _License$tradeLicense34.emailId) || "NA"
43929
+ }, {
43930
+ title: "BPA_APPLICANT_PAN_NO",
43931
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense35 = License.tradeLicenseDetail) === null || _License$tradeLicense35 === void 0 ? void 0 : (_License$tradeLicense36 = _License$tradeLicense35.owners) === null || _License$tradeLicense36 === void 0 ? void 0 : (_License$tradeLicense37 = _License$tradeLicense36[0]) === null || _License$tradeLicense37 === void 0 ? void 0 : _License$tradeLicense37.pan) || "NA"
43932
+ }]
43953
43933
  }, {
43954
- title: "BPA_APPLICANT_PAN_NO",
43955
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense33 = License.tradeLicenseDetail) === null || _License$tradeLicense33 === void 0 ? void 0 : (_License$tradeLicense34 = _License$tradeLicense33.owners) === null || _License$tradeLicense34 === void 0 ? void 0 : (_License$tradeLicense35 = _License$tradeLicense34[0]) === null || _License$tradeLicense35 === void 0 ? void 0 : _License$tradeLicense35.pan) || "NA"
43956
- }]
43957
- }, {
43958
- title: "BPA_PERMANANT_ADDRESS_LABEL",
43959
- asSectionHeader: true,
43960
- values: [{
43961
43934
  title: "BPA_PERMANANT_ADDRESS_LABEL",
43962
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense36 = License.tradeLicenseDetail) === null || _License$tradeLicense36 === void 0 ? void 0 : (_License$tradeLicense37 = _License$tradeLicense36.owners) === null || _License$tradeLicense37 === void 0 ? void 0 : (_License$tradeLicense38 = _License$tradeLicense37[0]) === null || _License$tradeLicense38 === void 0 ? void 0 : _License$tradeLicense38.permanentAddress) || "NA"
43963
- }]
43964
- }, {
43965
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43966
- asSectionHeader: true,
43967
- values: [{
43968
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43969
- value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense39 = License.tradeLicenseDetail) === null || _License$tradeLicense39 === void 0 ? void 0 : (_License$tradeLicense40 = _License$tradeLicense39.owners) === null || _License$tradeLicense40 === void 0 ? void 0 : (_License$tradeLicense41 = _License$tradeLicense40[0]) === null || _License$tradeLicense41 === void 0 ? void 0 : _License$tradeLicense41.correspondenceAddress) || "NA"
43970
- }]
43971
- }, {
43972
- title: "BPA_DOCUMENT_DETAILS_LABEL",
43973
- asSectionHeader: true,
43974
- additionalDetails: {
43975
- documents: [{
43976
- title: "",
43977
- values: License === null || License === void 0 ? void 0 : (_License$tradeLicense42 = License.tradeLicenseDetail) === null || _License$tradeLicense42 === void 0 ? void 0 : (_License$tradeLicense43 = _License$tradeLicense42.applicationDocuments) === null || _License$tradeLicense43 === void 0 ? void 0 : _License$tradeLicense43.map(function (doc) {
43978
- var _doc$documentType;
43979
-
43980
- return {
43981
- title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43982
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43983
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43984
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43985
- id: doc === null || doc === void 0 ? void 0 : doc.id,
43986
- docInfo: doc === null || doc === void 0 ? void 0 : doc.info
43987
- };
43988
- })
43935
+ asSectionHeader: true,
43936
+ values: [{
43937
+ title: "BPA_PERMANANT_ADDRESS_LABEL",
43938
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense38 = License.tradeLicenseDetail) === null || _License$tradeLicense38 === void 0 ? void 0 : (_License$tradeLicense39 = _License$tradeLicense38.owners) === null || _License$tradeLicense39 === void 0 ? void 0 : (_License$tradeLicense40 = _License$tradeLicense39[0]) === null || _License$tradeLicense40 === void 0 ? void 0 : _License$tradeLicense40.permanentAddress) || "NA"
43989
43939
  }]
43990
- }
43991
- }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43992
- title: "BPA_FEE_DETAILS_LABEL",
43993
- additionalDetails: {
43994
- inspectionReport: [],
43940
+ }, {
43941
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43942
+ asSectionHeader: true,
43995
43943
  values: [{
43996
- title: "BPAREG_FEES",
43997
- value: /*#__PURE__*/React.createElement("span", null, "\u20B9", paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments2 = paymentRes.Payments) === null || _paymentRes$Payments2 === void 0 ? void 0 : (_paymentRes$Payments3 = _paymentRes$Payments2[0]) === null || _paymentRes$Payments3 === void 0 ? void 0 : _paymentRes$Payments3.totalAmountPaid)
43998
- }, (_ref = {
43999
- title: "BPA_STATUS_LABEL",
44000
- isTransLate: true,
44001
- isStatus: true,
44002
- value: paymentRes !== null && paymentRes !== void 0 && (_paymentRes$Payments4 = paymentRes.Payments) !== null && _paymentRes$Payments4 !== void 0 && (_paymentRes$Payments5 = _paymentRes$Payments4[0]) !== null && _paymentRes$Payments5 !== void 0 && _paymentRes$Payments5.totalAmountPaid ? "WF_BPA_PAID" : "NA"
44003
- }, _ref["isTransLate"] = true, _ref)]
44004
- }
44005
- }];
44006
- return {
44007
- applicationData: License,
44008
- applicationDetails: details,
44009
- tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
44010
- payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
44011
- };
43944
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43945
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense41 = License.tradeLicenseDetail) === null || _License$tradeLicense41 === void 0 ? void 0 : (_License$tradeLicense42 = _License$tradeLicense41.owners) === null || _License$tradeLicense42 === void 0 ? void 0 : (_License$tradeLicense43 = _License$tradeLicense42[0]) === null || _License$tradeLicense43 === void 0 ? void 0 : _License$tradeLicense43.correspondenceAddress) || "NA"
43946
+ }]
43947
+ }, {
43948
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
43949
+ asSectionHeader: true,
43950
+ additionalDetails: {
43951
+ documentsWithUrl: [{
43952
+ title: "",
43953
+ values: License === null || License === void 0 ? void 0 : (_License$tradeLicense44 = License.tradeLicenseDetail) === null || _License$tradeLicense44 === void 0 ? void 0 : (_License$tradeLicense45 = _License$tradeLicense44.applicationDocuments) === null || _License$tradeLicense45 === void 0 ? void 0 : _License$tradeLicense45.map(function (doc) {
43954
+ var _doc$documentType, _fileDetails$data$doc;
43955
+
43956
+ return {
43957
+ title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43958
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43959
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43960
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43961
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
43962
+ docInfo: doc === null || doc === void 0 ? void 0 : doc.info,
43963
+ url: fileDetails !== null && fileDetails !== void 0 && fileDetails.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data$doc = fileDetails.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails$data$doc === void 0 ? void 0 : _fileDetails$data$doc.split(',')[0] : ""
43964
+ };
43965
+ })
43966
+ }]
43967
+ }
43968
+ }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43969
+ title: "BPA_FEE_DETAILS_LABEL",
43970
+ additionalDetails: {
43971
+ inspectionReport: [],
43972
+ values: [{
43973
+ title: "BPAREG_FEES",
43974
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments2 = paymentRes.Payments) === null || _paymentRes$Payments2 === void 0 ? void 0 : (_paymentRes$Payments3 = _paymentRes$Payments2[0]) === null || _paymentRes$Payments3 === void 0 ? void 0 : _paymentRes$Payments3.totalAmountPaid)
43975
+ }, (_ref = {
43976
+ title: "BPA_STATUS_LABEL",
43977
+ isTransLate: true,
43978
+ isStatus: true,
43979
+ value: paymentRes !== null && paymentRes !== void 0 && (_paymentRes$Payments4 = paymentRes.Payments) !== null && _paymentRes$Payments4 !== void 0 && (_paymentRes$Payments5 = _paymentRes$Payments4[0]) !== null && _paymentRes$Payments5 !== void 0 && _paymentRes$Payments5.totalAmountPaid ? "WF_BPA_PAID" : "NA"
43980
+ }, _ref["isTransLate"] = true, _ref)]
43981
+ }
43982
+ }];
43983
+ return {
43984
+ applicationData: License,
43985
+ applicationDetails: details,
43986
+ tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
43987
+ payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
43988
+ };
43989
+ });
44012
43990
  });
44013
43991
  });
44014
43992
  });
@@ -44019,16 +43997,27 @@ var OBPSService = {
44019
43997
  BPADetailsPage: function (tenantId, filters) {
44020
43998
  try {
44021
43999
  return Promise.resolve(OBPSService.BPASearch(tenantId, filters)).then(function (response) {
44022
- var _response$BPA, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA3, _response$BPA3$, _response$BPA3$$addit;
44000
+ var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _response$BPA5, _response$BPA5$, _response$BPA5$$addit;
44001
+
44002
+ var appDocumentFileStoreIds = response === null || response === void 0 ? void 0 : (_response$BPA = response.BPA) === null || _response$BPA === void 0 ? void 0 : (_response$BPA$ = _response$BPA[0]) === null || _response$BPA$ === void 0 ? void 0 : (_response$BPA$$docume = _response$BPA$.documents) === null || _response$BPA$$docume === void 0 ? void 0 : _response$BPA$$docume.map(function (docId) {
44003
+ return docId.fileStoreId;
44004
+ });
44005
+ response === null || response === void 0 ? void 0 : (_response$BPA2 = response.BPA) === null || _response$BPA2 === void 0 ? void 0 : (_response$BPA2$ = _response$BPA2[0]) === null || _response$BPA2$ === void 0 ? void 0 : (_response$BPA2$$addit = _response$BPA2$.additionalDetails) === null || _response$BPA2$$addit === void 0 ? void 0 : (_response$BPA2$$addit2 = _response$BPA2$$addit.fieldinspection_pending) === null || _response$BPA2$$addit2 === void 0 ? void 0 : _response$BPA2$$addit2.map(function (fiData) {
44006
+ var _fiData$docs;
44007
+
44008
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
44009
+ appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
44010
+ });
44011
+ });
44023
44012
 
44024
- if (!(response !== null && response !== void 0 && (_response$BPA = response.BPA) !== null && _response$BPA !== void 0 && _response$BPA.length)) {
44013
+ if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
44025
44014
  return;
44026
44015
  }
44027
44016
 
44028
- sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$BPA2 = response.BPA) !== null && _response$BPA2 !== void 0 && (_response$BPA2$ = _response$BPA2[0]) !== null && _response$BPA2$ !== void 0 && (_response$BPA2$$addit = _response$BPA2$.additionalDetails) !== null && _response$BPA2$$addit !== void 0 && _response$BPA2$$addit.typeOfArchitect ? response === null || response === void 0 ? void 0 : (_response$BPA3 = response.BPA) === null || _response$BPA3 === void 0 ? void 0 : (_response$BPA3$ = _response$BPA3[0]) === null || _response$BPA3$ === void 0 ? void 0 : (_response$BPA3$$addit = _response$BPA3$.additionalDetails) === null || _response$BPA3$$addit === void 0 ? void 0 : _response$BPA3$$addit.typeOfArchitect : "ARCHITECT"));
44017
+ sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$BPA4 = response.BPA) !== null && _response$BPA4 !== void 0 && (_response$BPA4$ = _response$BPA4[0]) !== null && _response$BPA4$ !== void 0 && (_response$BPA4$$addit = _response$BPA4$.additionalDetails) !== null && _response$BPA4$$addit !== void 0 && _response$BPA4$$addit.typeOfArchitect ? response === null || response === void 0 ? void 0 : (_response$BPA5 = response.BPA) === null || _response$BPA5 === void 0 ? void 0 : (_response$BPA5$ = _response$BPA5[0]) === null || _response$BPA5$ === void 0 ? void 0 : (_response$BPA5$$addit = _response$BPA5$.additionalDetails) === null || _response$BPA5$$addit === void 0 ? void 0 : _response$BPA5$$addit.typeOfArchitect : "ARCHITECT"));
44029
44018
 
44030
- var _response$BPA4 = response === null || response === void 0 ? void 0 : response.BPA,
44031
- BPA = _response$BPA4[0];
44019
+ var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
44020
+ BPA = _response$BPA6[0];
44032
44021
 
44033
44022
  return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
44034
44023
  edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
@@ -44055,491 +44044,523 @@ var OBPSService = {
44055
44044
  ocdcrNumber: BPA !== null && BPA !== void 0 && BPA.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA = bpaResponse.BPA) === null || _bpaResponse$BPA === void 0 ? void 0 : (_bpaResponse$BPA$ = _bpaResponse$BPA[0]) === null || _bpaResponse$BPA$ === void 0 ? void 0 : _bpaResponse$BPA$.edcrNumber,
44056
44045
  edcrNumber: bpaResponse !== null && bpaResponse !== void 0 && (_bpaResponse$BPA2 = bpaResponse.BPA) !== null && _bpaResponse$BPA2 !== void 0 && (_bpaResponse$BPA2$ = _bpaResponse$BPA2[0]) !== null && _bpaResponse$BPA2$ !== void 0 && _bpaResponse$BPA2$.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA3 = bpaResponse.BPA) === null || _bpaResponse$BPA3 === void 0 ? void 0 : (_bpaResponse$BPA3$ = _bpaResponse$BPA3[0]) === null || _bpaResponse$BPA3$ === void 0 ? void 0 : _bpaResponse$BPA3$.edcrNumber
44057
44046
  };
44047
+ return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44048
+ function _temp2() {
44049
+ var _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _BPA$additionalDetail6, _BPA$additionalDetail7, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail3, _edcr$planDetail3$pla, _edcr$planDetail4, _edcr$planDetail4$pla, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _BPA$additionalDetail11, _BPA$additionalDetail12, _edcr$planDetail8, _edcr$planDetail8$blo, _edcr$planDetail8$blo2, _edcr$planDetail8$blo3, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail10, _edcr$planDetail10$bl, _edcr$planDetail10$bl2, _edcr$planDetail10$bl3, _edcr$planDetail11, _edcr$planDetail11$pl, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo6, _BPA$landInfo6$owners, _BPA$landInfo7, _BPA$landInfo7$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$documents, _BPA$additionalDetail13, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _BPA$additionalDetail18, _BPA$additionalDetail19, _details;
44058
44050
 
44059
- function ConvertEpochToValidityDate(dateEpoch) {
44060
- if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44061
- return "NA";
44062
- }
44051
+ function ConvertEpochToValidityDate(dateEpoch) {
44052
+ if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44053
+ return "NA";
44054
+ }
44063
44055
 
44064
- var dateFromApi = new Date(dateEpoch);
44065
- var month = dateFromApi.getMonth() + 1;
44066
- var day = dateFromApi.getDate();
44067
- var year = dateFromApi.getFullYear() - 3;
44068
- month = (month > 9 ? "" : "0") + month;
44069
- day = (day > 9 ? "" : "0") + day;
44070
- return day + "/" + month + "/" + year;
44071
- }
44056
+ var dateFromApi = new Date(dateEpoch);
44057
+ var month = dateFromApi.getMonth() + 1;
44058
+ var day = dateFromApi.getDate();
44059
+ var year = dateFromApi.getFullYear() - 3;
44060
+ month = (month > 9 ? "" : "0") + month;
44061
+ day = (day > 9 ? "" : "0") + day;
44062
+ return day + "/" + month + "/" + year;
44063
+ }
44072
44064
 
44073
- return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44074
- var _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail3, _edcr$planDetail3$pla, _edcr$planDetail4, _edcr$planDetail4$pla, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _BPA$additionalDetail9, _BPA$additionalDetail10, _edcr$planDetail8, _edcr$planDetail8$blo, _edcr$planDetail8$blo2, _edcr$planDetail8$blo3, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail10, _edcr$planDetail10$bl, _edcr$planDetail10$bl2, _edcr$planDetail10$bl3, _edcr$planDetail11, _edcr$planDetail11$pl, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo6, _BPA$landInfo6$owners, _BPA$landInfo7, _BPA$landInfo7$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$documents, _BPA$additionalDetail11, _BPA$additionalDetail12, _BPA$additionalDetail13, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _details;
44065
+ BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail = BPA.additionalDetails) === null || _BPA$additionalDetail === void 0 ? void 0 : (_BPA$additionalDetail2 = _BPA$additionalDetail.fieldinspection_pending) === null || _BPA$additionalDetail2 === void 0 ? void 0 : _BPA$additionalDetail2.forEach(function (fiData) {
44066
+ var _fiData$docs2;
44075
44067
 
44076
- var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44077
- var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
44068
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
44069
+ var _fileDetails, _fileDetails2, _fileDetails2$data$fi;
44078
44070
 
44079
- return {
44080
- title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44081
- values: [{
44082
- title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44083
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44084
- isNotTranslated: true
44085
- }, {
44086
- title: "BPA_NOC_STATUS",
44087
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44088
- field: "STATUS"
44089
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44090
- title: "BPA_SUDMITTED_ON_LABEL",
44091
- value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona3 = nocDetails.additionalDetails) === null || _nocDetails$additiona3 === void 0 ? void 0 : _nocDetails$additiona3.SubmittedOn)), 'dd/MM/yyyy') : "NA",
44092
- isNotTranslated: true
44093
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44094
- title: "BPA_APPROVAL_NUMBER_LABEL",
44095
- value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44096
- isNotTranslated: true
44097
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44098
- title: "BPA_APPROVED_REJECTED_ON_LABEL",
44099
- value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "REJECTED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_REJECTED" ? format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$auditDeta = nocDetails.auditDetails) === null || _nocDetails$auditDeta === void 0 ? void 0 : _nocDetails$auditDeta.lastModifiedTime)), 'dd/MM/yyyy') : "NA",
44100
- isNotTranslated: true
44101
- }],
44102
- additionalDetails: {
44103
- data: nocDetails,
44104
- noc: [{
44105
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44106
- values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
44107
- var _doc$documentType2;
44108
-
44109
- return {
44110
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44111
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44112
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44113
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44114
- id: doc === null || doc === void 0 ? void 0 : doc.id
44115
- };
44116
- })
44117
- }]
44118
- }
44119
- };
44120
- });
44121
- var inspectionReport = [];
44122
- var checklist = [];
44123
- BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail = BPA.additionalDetails) === null || _BPA$additionalDetail === void 0 ? void 0 : (_BPA$additionalDetail2 = _BPA$additionalDetail.fieldinspection_pending) === null || _BPA$additionalDetail2 === void 0 ? void 0 : _BPA$additionalDetail2.filter(function (ob) {
44124
- return ob.docs && ob.docs.length > 0;
44125
- }).map(function (ob, ind) {
44126
- var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44127
-
44128
- checklist = [];
44129
- inspectionReport.push({
44130
- title: "BPA_FI_REPORT",
44131
- asSectionHeader: true,
44132
- values: [{
44133
- title: "BPA_FI_DATE_LABEL",
44134
- value: ob.date.includes("-") ? ((_ob$date = ob.date) === null || _ob$date === void 0 ? void 0 : _ob$date.split("-")[2]) + "/" + ((_ob$date2 = ob.date) === null || _ob$date2 === void 0 ? void 0 : _ob$date2.split("-")[1]) + "/" + ((_ob$date3 = ob.date) === null || _ob$date3 === void 0 ? void 0 : _ob$date3.split("-")[0]) : ob.date
44135
- }, {
44136
- title: "BPA_FI_TIME_LABEL",
44137
- value: ob.time
44138
- }]
44139
- });
44140
- ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44141
- checklist.push({
44142
- title: q.question,
44143
- value: q.value
44144
- });
44145
- checklist.push({
44146
- title: "BPA_ENTER_REMARKS",
44147
- value: q.remarks
44071
+ if ((_fileDetails = fileDetails) !== null && _fileDetails !== void 0 && _fileDetails.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) fiDoc.url = (_fileDetails2 = fileDetails) === null || _fileDetails2 === void 0 ? void 0 : (_fileDetails2$data$fi = _fileDetails2.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) === null || _fileDetails2$data$fi === void 0 ? void 0 : _fileDetails2$data$fi.split(',')[0];
44148
44072
  });
44149
44073
  });
44150
- inspectionReport.push({
44151
- title: "BPA_CHECK_LIST_DETAILS",
44152
- asSectionHeader: true,
44153
- values: checklist
44074
+ var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44075
+ var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
44076
+
44077
+ return {
44078
+ title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44079
+ values: [{
44080
+ title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44081
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44082
+ isNotTranslated: true
44083
+ }, {
44084
+ title: "BPA_NOC_STATUS",
44085
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44086
+ field: "STATUS"
44087
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44088
+ title: "BPA_SUDMITTED_ON_LABEL",
44089
+ value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona3 = nocDetails.additionalDetails) === null || _nocDetails$additiona3 === void 0 ? void 0 : _nocDetails$additiona3.SubmittedOn)), 'dd/MM/yyyy') : "NA",
44090
+ isNotTranslated: true
44091
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44092
+ title: "BPA_APPROVAL_NUMBER_LABEL",
44093
+ value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44094
+ isNotTranslated: true
44095
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44096
+ title: "BPA_APPROVED_REJECTED_ON_LABEL",
44097
+ value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "REJECTED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_APPROVED" || (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus) === "AUTO_REJECTED" ? format(new Date(Number(nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$auditDeta = nocDetails.auditDetails) === null || _nocDetails$auditDeta === void 0 ? void 0 : _nocDetails$auditDeta.lastModifiedTime)), 'dd/MM/yyyy') : "NA",
44098
+ isNotTranslated: true
44099
+ }],
44100
+ additionalDetails: {
44101
+ data: nocDetails,
44102
+ noc: [{
44103
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44104
+ values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
44105
+ var _doc$documentType2, _fileDetails3, _fileDetails3$data, _fileDetails4, _fileDetails4$data, _fileDetails4$data$do;
44106
+
44107
+ return {
44108
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44109
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44110
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44111
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44112
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44113
+ url: (_fileDetails3 = fileDetails) !== null && _fileDetails3 !== void 0 && (_fileDetails3$data = _fileDetails3.data) !== null && _fileDetails3$data !== void 0 && _fileDetails3$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails4 = fileDetails) === null || _fileDetails4 === void 0 ? void 0 : (_fileDetails4$data = _fileDetails4.data) === null || _fileDetails4$data === void 0 ? void 0 : (_fileDetails4$data$do = _fileDetails4$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails4$data$do === void 0 ? void 0 : _fileDetails4$data$do.split(',')[0] : ""
44114
+ };
44115
+ })
44116
+ }]
44117
+ }
44118
+ };
44154
44119
  });
44155
- inspectionReport.push({
44156
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44157
- asSectionHeader: true,
44158
- additionalDetails: {
44159
- obpsDocuments: [{
44160
- title: "",
44161
- values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44162
- var _doc$documentType3;
44163
-
44164
- return {
44165
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44166
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44167
- documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44168
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44169
- id: doc === null || doc === void 0 ? void 0 : doc.id
44170
- };
44171
- })
44120
+ var inspectionReport = [];
44121
+ var checklist = [];
44122
+ BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail3 = BPA.additionalDetails) === null || _BPA$additionalDetail3 === void 0 ? void 0 : (_BPA$additionalDetail4 = _BPA$additionalDetail3.fieldinspection_pending) === null || _BPA$additionalDetail4 === void 0 ? void 0 : _BPA$additionalDetail4.filter(function (ob) {
44123
+ return ob.docs && ob.docs.length > 0;
44124
+ }).map(function (ob, ind) {
44125
+ var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44126
+
44127
+ checklist = [];
44128
+ inspectionReport.push({
44129
+ title: "BPA_FI_REPORT",
44130
+ asSectionHeader: true,
44131
+ values: [{
44132
+ title: "BPA_FI_DATE_LABEL",
44133
+ value: ob.date.includes("-") ? ((_ob$date = ob.date) === null || _ob$date === void 0 ? void 0 : _ob$date.split("-")[2]) + "/" + ((_ob$date2 = ob.date) === null || _ob$date2 === void 0 ? void 0 : _ob$date2.split("-")[1]) + "/" + ((_ob$date3 = ob.date) === null || _ob$date3 === void 0 ? void 0 : _ob$date3.split("-")[0]) : ob.date
44134
+ }, {
44135
+ title: "BPA_FI_TIME_LABEL",
44136
+ value: ob.time
44172
44137
  }]
44173
- }
44138
+ });
44139
+ ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44140
+ checklist.push({
44141
+ title: q.question,
44142
+ value: q.value
44143
+ });
44144
+ checklist.push({
44145
+ title: "BPA_ENTER_REMARKS",
44146
+ value: q.remarks
44147
+ });
44148
+ });
44149
+ inspectionReport.push({
44150
+ title: "BPA_CHECK_LIST_DETAILS",
44151
+ asSectionHeader: true,
44152
+ values: checklist
44153
+ });
44154
+ inspectionReport.push({
44155
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44156
+ asSectionHeader: true,
44157
+ additionalDetails: {
44158
+ obpsDocuments: [{
44159
+ title: "",
44160
+ values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44161
+ var _doc$documentType3, _fileDetails5, _fileDetails5$data, _fileDetails6, _fileDetails6$data, _fileDetails6$data$do;
44162
+
44163
+ return {
44164
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44165
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44166
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44167
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44168
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44169
+ url: (_fileDetails5 = fileDetails) !== null && _fileDetails5 !== void 0 && (_fileDetails5$data = _fileDetails5.data) !== null && _fileDetails5$data !== void 0 && _fileDetails5$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails6 = fileDetails) === null || _fileDetails6 === void 0 ? void 0 : (_fileDetails6$data = _fileDetails6.data) === null || _fileDetails6$data === void 0 ? void 0 : (_fileDetails6$data$do = _fileDetails6$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails6$data$do === void 0 ? void 0 : _fileDetails6$data$do.split(',')[0] : ""
44170
+ };
44171
+ })
44172
+ }]
44173
+ }
44174
+ });
44174
44175
  });
44175
- });
44176
- var details = [];
44177
- var applicationDetailsInfo = {
44178
- title: " ",
44179
- isCommon: true,
44180
- values: [{
44181
- title: "BPA_APPLICATION_NUMBER_LABEL",
44182
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44183
- }]
44184
- };
44185
-
44186
- if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44187
- var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44176
+ var details = [];
44177
+ var applicationDetailsInfo = {
44178
+ title: " ",
44179
+ isCommon: true,
44180
+ values: [{
44181
+ title: "BPA_APPLICATION_NUMBER_LABEL",
44182
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44183
+ }]
44184
+ };
44188
44185
 
44189
- applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44190
- title: "BPA_PERMIT_APP_NUMBER",
44191
- to: "/digit-ui/employee/obps/bpa/" + (bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA4 = bpaResponse.BPA) === null || _bpaResponse$BPA4 === void 0 ? void 0 : (_bpaResponse$BPA4$ = _bpaResponse$BPA4[0]) === null || _bpaResponse$BPA4$ === void 0 ? void 0 : _bpaResponse$BPA4$.applicationNo),
44192
- value: bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA5 = bpaResponse.BPA) === null || _bpaResponse$BPA5 === void 0 ? void 0 : (_bpaResponse$BPA5$ = _bpaResponse$BPA5[0]) === null || _bpaResponse$BPA5$ === void 0 ? void 0 : _bpaResponse$BPA5$.applicationNo,
44193
- isLink: true
44194
- }]);
44195
- }
44186
+ if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44187
+ var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44196
44188
 
44197
- var permitcondn = [];
44198
- (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail3 = BPA.additionalDetails) === null || _BPA$additionalDetail3 === void 0 ? void 0 : _BPA$additionalDetail3.pendingapproval) && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail4 = BPA.additionalDetails) === null || _BPA$additionalDetail4 === void 0 ? void 0 : _BPA$additionalDetail4.pendingapproval.length) > 0 && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail5 = BPA.additionalDetails) === null || _BPA$additionalDetail5 === void 0 ? void 0 : _BPA$additionalDetail5.pendingapproval.map(function (ob, index) {
44199
- permitcondn.push({
44200
- title: index + 1 + ". " + ob,
44201
- value: ""
44202
- });
44203
- }));
44204
- var PermitConditions = {
44205
- title: "BPA_PERMIT_CONDITIONS",
44206
- isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44207
- isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44208
- additionalDetails: {
44209
- inspectionReport: [],
44210
- permit: [].concat(permitcondn)
44189
+ applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44190
+ title: "BPA_PERMIT_APP_NUMBER",
44191
+ to: "/digit-ui/employee/obps/bpa/" + (bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA4 = bpaResponse.BPA) === null || _bpaResponse$BPA4 === void 0 ? void 0 : (_bpaResponse$BPA4$ = _bpaResponse$BPA4[0]) === null || _bpaResponse$BPA4$ === void 0 ? void 0 : _bpaResponse$BPA4$.applicationNo),
44192
+ value: bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA5 = bpaResponse.BPA) === null || _bpaResponse$BPA5 === void 0 ? void 0 : (_bpaResponse$BPA5$ = _bpaResponse$BPA5[0]) === null || _bpaResponse$BPA5$ === void 0 ? void 0 : _bpaResponse$BPA5$.applicationNo,
44193
+ isLink: true
44194
+ }]);
44211
44195
  }
44212
- };
44213
- if (permitcondn.length == 0) PermitConditions = {};
44214
44196
 
44215
- if (riskType == "LOW" && permitcondn.length > 0) {
44216
- permitcondn = [];
44217
- PermitConditions = {};
44218
- }
44197
+ var permitcondn = [];
44198
+ (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail5 = BPA.additionalDetails) === null || _BPA$additionalDetail5 === void 0 ? void 0 : _BPA$additionalDetail5.pendingapproval) && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail6 = BPA.additionalDetails) === null || _BPA$additionalDetail6 === void 0 ? void 0 : _BPA$additionalDetail6.pendingapproval.length) > 0 && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail7 = BPA.additionalDetails) === null || _BPA$additionalDetail7 === void 0 ? void 0 : _BPA$additionalDetail7.pendingapproval.map(function (ob, index) {
44199
+ permitcondn.push({
44200
+ title: index + 1 + ". " + ob,
44201
+ value: ""
44202
+ });
44203
+ }));
44204
+ var PermitConditions = {
44205
+ title: "BPA_PERMIT_CONDITIONS",
44206
+ isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44207
+ isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44208
+ additionalDetails: {
44209
+ inspectionReport: [],
44210
+ permit: [].concat(permitcondn)
44211
+ }
44212
+ };
44213
+ if (permitcondn.length == 0) PermitConditions = {};
44219
44214
 
44220
- if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44221
- var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail6, _BPA$additionalDetail7, _BPA$additionalDetail8;
44215
+ if (riskType == "LOW" && permitcondn.length > 0) {
44216
+ permitcondn = [];
44217
+ PermitConditions = {};
44218
+ }
44222
44219
 
44223
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44224
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44225
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44226
- });
44227
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44228
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44229
- value: BPA !== null && BPA !== void 0 && (_BPA$additionalDetail6 = BPA.additionalDetails) !== null && _BPA$additionalDetail6 !== void 0 && _BPA$additionalDetail6.validityDate ? ConvertEpochToValidityDate(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail7 = BPA.additionalDetails) === null || _BPA$additionalDetail7 === void 0 ? void 0 : _BPA$additionalDetail7.validityDate) + " - " + format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail8 = BPA.additionalDetails) === null || _BPA$additionalDetail8 === void 0 ? void 0 : _BPA$additionalDetail8.validityDate), 'dd/MM/yyyy') : "NA"
44230
- });
44231
- }
44220
+ if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44221
+ var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
44232
44222
 
44233
- var basicDetails = {
44234
- title: "BPA_BASIC_DETAILS_TITLE",
44235
- asSectionHeader: true,
44236
- isInsert: true,
44237
- isCommon: true,
44238
- values: [{
44239
- title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44240
- value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$auditDetails2 = BPA.auditDetails) === null || _BPA$auditDetails2 === void 0 ? void 0 : _BPA$auditDetails2.createdTime), 'dd/MM/yyyy') : ''
44241
- }, {
44242
- title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44243
- value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44244
- }, {
44245
- title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44246
- value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44247
- }, {
44248
- title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44249
- value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail3 = edcr.planDetail) === null || _edcr$planDetail3 === void 0 ? void 0 : (_edcr$planDetail3$pla = _edcr$planDetail3.planInformation) === null || _edcr$planDetail3$pla === void 0 ? void 0 : _edcr$planDetail3$pla.occupancy
44250
- }, {
44251
- title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44252
- value: "WF_BPA_" + riskType,
44253
- isInsert: true
44254
- }, {
44255
- title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44256
- value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail4 = edcr.planDetail) === null || _edcr$planDetail4 === void 0 ? void 0 : (_edcr$planDetail4$pla = _edcr$planDetail4.planInformation) === null || _edcr$planDetail4$pla === void 0 ? void 0 : _edcr$planDetail4$pla.applicantName
44257
- }]
44258
- };
44259
- var plotDetails = {
44260
- title: "BPA_PLOT_DETAILS_TITLE",
44261
- asSectionHeader: true,
44262
- isCommon: true,
44263
- values: [{
44264
- title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44265
- value: "" + (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail5 = edcr.planDetail) === null || _edcr$planDetail5 === void 0 ? void 0 : (_edcr$planDetail5$pla = _edcr$planDetail5.planInformation) === null || _edcr$planDetail5$pla === void 0 ? void 0 : _edcr$planDetail5$pla.plotArea),
44266
- isNotTranslated: true,
44267
- isUnit: "BPA_SQ_FT_LABEL"
44268
- }, {
44269
- title: "BPA_PLOT_NUMBER_LABEL",
44270
- value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail6 = edcr.planDetail) === null || _edcr$planDetail6 === void 0 ? void 0 : (_edcr$planDetail6$pla = _edcr$planDetail6.planInformation) === null || _edcr$planDetail6$pla === void 0 ? void 0 : _edcr$planDetail6$pla.plotNo) || "NA",
44271
- isNotTranslated: true
44272
- }, {
44273
- title: "BPA_KHATHA_NUMBER_LABEL",
44274
- value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail7 = edcr.planDetail) === null || _edcr$planDetail7 === void 0 ? void 0 : (_edcr$planDetail7$pla = _edcr$planDetail7.planInformation) === null || _edcr$planDetail7$pla === void 0 ? void 0 : _edcr$planDetail7$pla.khataNo) || "NA",
44275
- isNotTranslated: true
44276
- }, {
44277
- title: "BPA_HOLDING_NUMBER_LABEL",
44278
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.holdingNo) || "NA",
44279
- isNotTranslated: true
44280
- }, {
44281
- title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44282
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
44283
- isNotTranslated: true
44284
- }]
44285
- };
44286
- var scrutinyDetails = {
44287
- title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44288
- isScrutinyDetails: true,
44289
- isBackGroundColor: true,
44290
- additionalDetails: {
44223
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44224
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44225
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44226
+ });
44227
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44228
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44229
+ value: BPA !== null && BPA !== void 0 && (_BPA$additionalDetail8 = BPA.additionalDetails) !== null && _BPA$additionalDetail8 !== void 0 && _BPA$additionalDetail8.validityDate ? ConvertEpochToValidityDate(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.validityDate) + " - " + format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.validityDate), 'dd/MM/yyyy') : "NA"
44230
+ });
44231
+ }
44232
+
44233
+ var basicDetails = {
44234
+ title: "BPA_BASIC_DETAILS_TITLE",
44235
+ asSectionHeader: true,
44236
+ isInsert: true,
44237
+ isCommon: true,
44291
44238
  values: [{
44292
- title: "BPA_EDCR_DETAILS",
44293
- value: " ",
44294
- isHeader: true
44239
+ title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44240
+ value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? format(new Date(BPA === null || BPA === void 0 ? void 0 : (_BPA$auditDetails2 = BPA.auditDetails) === null || _BPA$auditDetails2 === void 0 ? void 0 : _BPA$auditDetails2.createdTime), 'dd/MM/yyyy') : ''
44241
+ }, {
44242
+ title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44243
+ value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44295
44244
  }, {
44296
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44297
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44298
- }],
44299
- scruntinyDetails: [{
44300
- title: "BPA_UPLOADED_PLAN_DIAGRAM",
44301
- value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44302
- text: "BPA_UPLOADED_PLAN_DXF"
44245
+ title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44246
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44303
44247
  }, {
44304
- title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44305
- value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44306
- text: "BPA_SCRUTINY_REPORT_PDF"
44248
+ title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44249
+ value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail3 = edcr.planDetail) === null || _edcr$planDetail3 === void 0 ? void 0 : (_edcr$planDetail3$pla = _edcr$planDetail3.planInformation) === null || _edcr$planDetail3$pla === void 0 ? void 0 : _edcr$planDetail3$pla.occupancy
44250
+ }, {
44251
+ title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44252
+ value: "WF_BPA_" + riskType,
44253
+ isInsert: true
44254
+ }, {
44255
+ title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44256
+ value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail4 = edcr.planDetail) === null || _edcr$planDetail4 === void 0 ? void 0 : (_edcr$planDetail4$pla = _edcr$planDetail4.planInformation) === null || _edcr$planDetail4$pla === void 0 ? void 0 : _edcr$planDetail4$pla.applicantName
44307
44257
  }]
44308
- }
44309
- };
44310
- var buildingExtractionDetails = {
44311
- title: "",
44312
- isScrutinyDetails: true,
44313
- isBackGroundColor: true,
44314
- additionalDetails: {
44258
+ };
44259
+ var plotDetails = {
44260
+ title: "BPA_PLOT_DETAILS_TITLE",
44261
+ asSectionHeader: true,
44262
+ isCommon: true,
44315
44263
  values: [{
44316
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44317
- value: " ",
44318
- isHeader: true
44264
+ title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44265
+ value: "" + (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail5 = edcr.planDetail) === null || _edcr$planDetail5 === void 0 ? void 0 : (_edcr$planDetail5$pla = _edcr$planDetail5.planInformation) === null || _edcr$planDetail5$pla === void 0 ? void 0 : _edcr$planDetail5$pla.plotArea),
44266
+ isNotTranslated: true,
44267
+ isUnit: "BPA_SQ_FT_LABEL"
44319
44268
  }, {
44320
- title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44321
- value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail8 = edcr.planDetail) === null || _edcr$planDetail8 === void 0 ? void 0 : (_edcr$planDetail8$blo = _edcr$planDetail8.blocks) === null || _edcr$planDetail8$blo === void 0 ? void 0 : (_edcr$planDetail8$blo2 = _edcr$planDetail8$blo[0]) === null || _edcr$planDetail8$blo2 === void 0 ? void 0 : (_edcr$planDetail8$blo3 = _edcr$planDetail8$blo2.building) === null || _edcr$planDetail8$blo3 === void 0 ? void 0 : _edcr$planDetail8$blo3.totalBuitUpArea,
44322
- isUnit: "BPA_SQ_MTRS_LABEL"
44269
+ title: "BPA_PLOT_NUMBER_LABEL",
44270
+ value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail6 = edcr.planDetail) === null || _edcr$planDetail6 === void 0 ? void 0 : (_edcr$planDetail6$pla = _edcr$planDetail6.planInformation) === null || _edcr$planDetail6$pla === void 0 ? void 0 : _edcr$planDetail6$pla.plotNo) || "NA",
44271
+ isNotTranslated: true
44323
44272
  }, {
44324
- title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44325
- value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail9 = edcr.planDetail) === null || _edcr$planDetail9 === void 0 ? void 0 : (_edcr$planDetail9$blo = _edcr$planDetail9.blocks) === null || _edcr$planDetail9$blo === void 0 ? void 0 : (_edcr$planDetail9$blo2 = _edcr$planDetail9$blo[0]) === null || _edcr$planDetail9$blo2 === void 0 ? void 0 : (_edcr$planDetail9$blo3 = _edcr$planDetail9$blo2.building) === null || _edcr$planDetail9$blo3 === void 0 ? void 0 : _edcr$planDetail9$blo3.totalFloors) || "NA"
44273
+ title: "BPA_KHATHA_NUMBER_LABEL",
44274
+ value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail7 = edcr.planDetail) === null || _edcr$planDetail7 === void 0 ? void 0 : (_edcr$planDetail7$pla = _edcr$planDetail7.planInformation) === null || _edcr$planDetail7$pla === void 0 ? void 0 : _edcr$planDetail7$pla.khataNo) || "NA",
44275
+ isNotTranslated: true
44326
44276
  }, {
44327
- title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44328
- value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail10 = edcr.planDetail) === null || _edcr$planDetail10 === void 0 ? void 0 : (_edcr$planDetail10$bl = _edcr$planDetail10.blocks) === null || _edcr$planDetail10$bl === void 0 ? void 0 : (_edcr$planDetail10$bl2 = _edcr$planDetail10$bl[0]) === null || _edcr$planDetail10$bl2 === void 0 ? void 0 : (_edcr$planDetail10$bl3 = _edcr$planDetail10$bl2.building) === null || _edcr$planDetail10$bl3 === void 0 ? void 0 : _edcr$planDetail10$bl3.declaredBuildingHeigh,
44329
- isUnit: "BPA_MTRS_LABEL"
44330
- }],
44331
- scruntinyDetails: []
44332
- }
44333
- };
44334
- var demolitionAreaDetails = {
44335
- title: "",
44336
- isScrutinyDetails: true,
44337
- isBackGroundColor: true,
44338
- additionalDetails: {
44339
- values: [{
44340
- title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44341
- value: " ",
44342
- isHeader: true
44277
+ title: "BPA_HOLDING_NUMBER_LABEL",
44278
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.holdingNo) || "NA",
44279
+ isNotTranslated: true
44343
44280
  }, {
44344
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44345
- value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail11 = edcr.planDetail) === null || _edcr$planDetail11 === void 0 ? void 0 : (_edcr$planDetail11$pl = _edcr$planDetail11.planInformation) === null || _edcr$planDetail11$pl === void 0 ? void 0 : _edcr$planDetail11$pl.demolitionArea,
44346
- isUnit: "BPA_SQ_MTRS_LABEL"
44347
- }],
44348
- scruntinyDetails: []
44349
- }
44350
- };
44351
- var subOccupancyTableDetails = {
44352
- title: "",
44353
- isSubOccupancyTable: true,
44354
- isTitleRepeat: true,
44355
- additionalDetails: {
44281
+ title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44282
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
44283
+ isNotTranslated: true
44284
+ }]
44285
+ };
44286
+ var scrutinyDetails = {
44287
+ title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44288
+ isScrutinyDetails: true,
44289
+ isBackGroundColor: true,
44290
+ additionalDetails: {
44291
+ values: [{
44292
+ title: "BPA_EDCR_DETAILS",
44293
+ value: " ",
44294
+ isHeader: true
44295
+ }, {
44296
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44297
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44298
+ }],
44299
+ scruntinyDetails: [{
44300
+ title: "BPA_UPLOADED_PLAN_DIAGRAM",
44301
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44302
+ text: "BPA_UPLOADED_PLAN_DXF"
44303
+ }, {
44304
+ title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44305
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44306
+ text: "BPA_SCRUTINY_REPORT_PDF"
44307
+ }]
44308
+ }
44309
+ };
44310
+ var buildingExtractionDetails = {
44311
+ title: "",
44312
+ isScrutinyDetails: true,
44313
+ isBackGroundColor: true,
44314
+ additionalDetails: {
44315
+ values: [{
44316
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44317
+ value: " ",
44318
+ isHeader: true
44319
+ }, {
44320
+ title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44321
+ value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail8 = edcr.planDetail) === null || _edcr$planDetail8 === void 0 ? void 0 : (_edcr$planDetail8$blo = _edcr$planDetail8.blocks) === null || _edcr$planDetail8$blo === void 0 ? void 0 : (_edcr$planDetail8$blo2 = _edcr$planDetail8$blo[0]) === null || _edcr$planDetail8$blo2 === void 0 ? void 0 : (_edcr$planDetail8$blo3 = _edcr$planDetail8$blo2.building) === null || _edcr$planDetail8$blo3 === void 0 ? void 0 : _edcr$planDetail8$blo3.totalBuitUpArea,
44322
+ isUnit: "BPA_SQ_MTRS_LABEL"
44323
+ }, {
44324
+ title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44325
+ value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail9 = edcr.planDetail) === null || _edcr$planDetail9 === void 0 ? void 0 : (_edcr$planDetail9$blo = _edcr$planDetail9.blocks) === null || _edcr$planDetail9$blo === void 0 ? void 0 : (_edcr$planDetail9$blo2 = _edcr$planDetail9$blo[0]) === null || _edcr$planDetail9$blo2 === void 0 ? void 0 : (_edcr$planDetail9$blo3 = _edcr$planDetail9$blo2.building) === null || _edcr$planDetail9$blo3 === void 0 ? void 0 : _edcr$planDetail9$blo3.totalFloors) || "NA"
44326
+ }, {
44327
+ title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44328
+ value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail10 = edcr.planDetail) === null || _edcr$planDetail10 === void 0 ? void 0 : (_edcr$planDetail10$bl = _edcr$planDetail10.blocks) === null || _edcr$planDetail10$bl === void 0 ? void 0 : (_edcr$planDetail10$bl2 = _edcr$planDetail10$bl[0]) === null || _edcr$planDetail10$bl2 === void 0 ? void 0 : (_edcr$planDetail10$bl3 = _edcr$planDetail10$bl2.building) === null || _edcr$planDetail10$bl3 === void 0 ? void 0 : _edcr$planDetail10$bl3.declaredBuildingHeigh,
44329
+ isUnit: "BPA_MTRS_LABEL"
44330
+ }],
44331
+ scruntinyDetails: []
44332
+ }
44333
+ };
44334
+ var demolitionAreaDetails = {
44335
+ title: "",
44336
+ isScrutinyDetails: true,
44337
+ isBackGroundColor: true,
44338
+ additionalDetails: {
44339
+ values: [{
44340
+ title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44341
+ value: " ",
44342
+ isHeader: true
44343
+ }, {
44344
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44345
+ value: edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail11 = edcr.planDetail) === null || _edcr$planDetail11 === void 0 ? void 0 : (_edcr$planDetail11$pl = _edcr$planDetail11.planInformation) === null || _edcr$planDetail11$pl === void 0 ? void 0 : _edcr$planDetail11$pl.demolitionArea,
44346
+ isUnit: "BPA_SQ_MTRS_LABEL"
44347
+ }],
44348
+ scruntinyDetails: []
44349
+ }
44350
+ };
44351
+ var subOccupancyTableDetails = {
44352
+ title: "",
44353
+ isSubOccupancyTable: true,
44354
+ isTitleRepeat: true,
44355
+ additionalDetails: {
44356
+ values: [{
44357
+ title: "BPA_OCC_SUBOCC_HEADER",
44358
+ value: " ",
44359
+ isHeader: true
44360
+ }],
44361
+ subOccupancyTableDetails: [{
44362
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44363
+ value: edcr
44364
+ }, {
44365
+ title: "NO_REPEAT",
44366
+ value: ""
44367
+ }]
44368
+ }
44369
+ };
44370
+ var addressDetails = {
44371
+ title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44372
+ asSectionHeader: true,
44373
+ isCommon: true,
44356
44374
  values: [{
44357
- title: "BPA_OCC_SUBOCC_HEADER",
44358
- value: " ",
44359
- isHeader: true
44360
- }],
44361
- subOccupancyTableDetails: [{
44362
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44363
- value: edcr
44375
+ title: "BPA_DETAILS_PIN_LABEL",
44376
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
44364
44377
  }, {
44365
- title: "NO_REPEAT",
44366
- value: ""
44378
+ title: "BPA_CITY_LABEL",
44379
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
44380
+ }, {
44381
+ title: "BPA_LOC_MOHALLA_LABEL",
44382
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
44383
+ }, {
44384
+ title: "BPA_DETAILS_SRT_NAME_LABEL",
44385
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo4 = BPA.landInfo) === null || _BPA$landInfo4 === void 0 ? void 0 : (_BPA$landInfo4$addres = _BPA$landInfo4.address) === null || _BPA$landInfo4$addres === void 0 ? void 0 : _BPA$landInfo4$addres.street
44386
+ }, {
44387
+ title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44388
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : _BPA$landInfo5$addres.landmark
44367
44389
  }]
44368
- }
44369
- };
44370
- var addressDetails = {
44371
- title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44372
- asSectionHeader: true,
44373
- isCommon: true,
44374
- values: [{
44375
- title: "BPA_DETAILS_PIN_LABEL",
44376
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
44377
- }, {
44378
- title: "BPA_CITY_LABEL",
44379
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
44380
- }, {
44381
- title: "BPA_LOC_MOHALLA_LABEL",
44382
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
44383
- }, {
44384
- title: "BPA_DETAILS_SRT_NAME_LABEL",
44385
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo4 = BPA.landInfo) === null || _BPA$landInfo4 === void 0 ? void 0 : (_BPA$landInfo4$addres = _BPA$landInfo4.address) === null || _BPA$landInfo4$addres === void 0 ? void 0 : _BPA$landInfo4$addres.street
44386
- }, {
44387
- title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44388
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : _BPA$landInfo5$addres.landmark
44389
- }]
44390
- };
44391
- var checkOwnerLength = (BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo6 = BPA.landInfo) === null || _BPA$landInfo6 === void 0 ? void 0 : (_BPA$landInfo6$owners = _BPA$landInfo6.owners) === null || _BPA$landInfo6$owners === void 0 ? void 0 : _BPA$landInfo6$owners.length) || 1;
44390
+ };
44391
+ var checkOwnerLength = (BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo6 = BPA.landInfo) === null || _BPA$landInfo6 === void 0 ? void 0 : (_BPA$landInfo6$owners = _BPA$landInfo6.owners) === null || _BPA$landInfo6$owners === void 0 ? void 0 : _BPA$landInfo6$owners.length) || 1;
44392
44392
 
44393
- if ((BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo7 = BPA.landInfo) === null || _BPA$landInfo7 === void 0 ? void 0 : (_BPA$landInfo7$owners = _BPA$landInfo7.owners) === null || _BPA$landInfo7$owners === void 0 ? void 0 : _BPA$landInfo7$owners.length) > 0) {
44394
- var _BPA$landInfo8, _BPA$landInfo8$owners;
44393
+ if ((BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo7 = BPA.landInfo) === null || _BPA$landInfo7 === void 0 ? void 0 : (_BPA$landInfo7$owners = _BPA$landInfo7.owners) === null || _BPA$landInfo7$owners === void 0 ? void 0 : _BPA$landInfo7$owners.length) > 0) {
44394
+ var _BPA$landInfo8, _BPA$landInfo8$owners;
44395
44395
 
44396
- BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo8 = BPA.landInfo) === null || _BPA$landInfo8 === void 0 ? void 0 : (_BPA$landInfo8$owners = _BPA$landInfo8.owners) === null || _BPA$landInfo8$owners === void 0 ? void 0 : _BPA$landInfo8$owners.forEach(function (ownerD) {
44397
- if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44398
- });
44399
- }
44400
-
44401
- var ownerDetails = {
44402
- title: "BPA_APPLICANT_DETAILS_HEADER",
44403
- isOwnerDetails: true,
44404
- additionalDetails: {
44405
- owners: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo9 = BPA.landInfo) === null || _BPA$landInfo9 === void 0 ? void 0 : (_BPA$landInfo9$owners = _BPA$landInfo9.owners) === null || _BPA$landInfo9$owners === void 0 ? void 0 : _BPA$landInfo9$owners.map(function (owner, index) {
44406
- return {
44407
- title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44408
- values: [{
44409
- title: "CORE_COMMON_NAME",
44410
- value: owner === null || owner === void 0 ? void 0 : owner.name
44411
- }, {
44412
- title: "BPA_APPLICANT_GENDER_LABEL",
44413
- value: owner === null || owner === void 0 ? void 0 : owner.gender
44414
- }, {
44415
- title: "CORE_COMMON_MOBILE_NUMBER",
44416
- value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44417
- }, {
44418
- title: "BPA_IS_PRIMARY_OWNER_LABEL",
44419
- value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44420
- isNotTranslated: false
44421
- }]
44422
- };
44423
- })
44396
+ BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo8 = BPA.landInfo) === null || _BPA$landInfo8 === void 0 ? void 0 : (_BPA$landInfo8$owners = _BPA$landInfo8.owners) === null || _BPA$landInfo8$owners === void 0 ? void 0 : _BPA$landInfo8$owners.forEach(function (ownerD) {
44397
+ if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44398
+ });
44424
44399
  }
44425
- };
44426
- var documentDetails = {
44427
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44428
- asSectionHeader: true,
44429
- isDocumentDetails: true,
44430
- additionalDetails: {
44431
- obpsDocuments: [{
44432
- title: "",
44433
- values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44434
- var _doc$documentType4;
44435
44400
 
44401
+ var ownerDetails = {
44402
+ title: "BPA_APPLICANT_DETAILS_HEADER",
44403
+ isOwnerDetails: true,
44404
+ additionalDetails: {
44405
+ owners: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo9 = BPA.landInfo) === null || _BPA$landInfo9 === void 0 ? void 0 : (_BPA$landInfo9$owners = _BPA$landInfo9.owners) === null || _BPA$landInfo9$owners === void 0 ? void 0 : _BPA$landInfo9$owners.map(function (owner, index) {
44436
44406
  return {
44437
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44438
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44439
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44440
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44441
- id: doc === null || doc === void 0 ? void 0 : doc.id
44407
+ title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44408
+ values: [{
44409
+ title: "CORE_COMMON_NAME",
44410
+ value: owner === null || owner === void 0 ? void 0 : owner.name
44411
+ }, {
44412
+ title: "BPA_APPLICANT_GENDER_LABEL",
44413
+ value: owner === null || owner === void 0 ? void 0 : owner.gender
44414
+ }, {
44415
+ title: "CORE_COMMON_MOBILE_NUMBER",
44416
+ value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44417
+ }, {
44418
+ title: "BPA_IS_PRIMARY_OWNER_LABEL",
44419
+ value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44420
+ isNotTranslated: false
44421
+ }]
44442
44422
  };
44443
44423
  })
44444
- }]
44445
- }
44446
- };
44447
- var approvalChecks = [];
44448
- var approvalChecksDetails = {};
44449
-
44450
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44451
- var _mdmsRes$BPA2;
44452
-
44453
- mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44454
- var _checklist$conditions;
44455
-
44456
- if ((checklist === null || checklist === void 0 ? void 0 : checklist.RiskType) === riskType && (checklist === null || checklist === void 0 ? void 0 : checklist.applicationType) === (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType) && (checklist === null || checklist === void 0 ? void 0 : checklist.ServiceType) === (edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType) && (checklist === null || checklist === void 0 ? void 0 : checklist.WFState) === "PENDINGAPPROVAL" && (checklist === null || checklist === void 0 ? void 0 : (_checklist$conditions = checklist.conditions) === null || _checklist$conditions === void 0 ? void 0 : _checklist$conditions.length) > 0) {
44457
- approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44458
44424
  }
44459
- });
44460
- approvalChecksDetails = {
44461
- title: "",
44462
- isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44425
+ };
44426
+ var documentDetails = {
44427
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44463
44428
  asSectionHeader: true,
44464
- isPermissions: true,
44429
+ isDocumentDetails: true,
44465
44430
  additionalDetails: {
44466
- permissions: approvalChecks
44431
+ obpsDocuments: [{
44432
+ title: "",
44433
+ values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44434
+ var _doc$documentType4, _fileDetails7, _fileDetails7$data, _fileDetails8, _fileDetails8$data, _fileDetails8$data$do;
44435
+
44436
+ return {
44437
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44438
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44439
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44440
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44441
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44442
+ url: (_fileDetails7 = fileDetails) !== null && _fileDetails7 !== void 0 && (_fileDetails7$data = _fileDetails7.data) !== null && _fileDetails7$data !== void 0 && _fileDetails7$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? (_fileDetails8 = fileDetails) === null || _fileDetails8 === void 0 ? void 0 : (_fileDetails8$data = _fileDetails8.data) === null || _fileDetails8$data === void 0 ? void 0 : (_fileDetails8$data$do = _fileDetails8$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails8$data$do === void 0 ? void 0 : _fileDetails8$data$do.split(',')[0] : ""
44443
+ };
44444
+ })
44445
+ }]
44467
44446
  }
44468
44447
  };
44469
- }
44448
+ var approvalChecks = [];
44449
+ var approvalChecksDetails = {};
44470
44450
 
44471
- if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44472
- var val;
44473
- var i;
44474
- var FieldInspectionData = [];
44475
- inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : (_BPA$additionalDetail12 = _BPA$additionalDetail11.fieldinspection_pending) === null || _BPA$additionalDetail12 === void 0 ? void 0 : (_BPA$additionalDetail13 = _BPA$additionalDetail12[0]) === null || _BPA$additionalDetail13 === void 0 ? void 0 : _BPA$additionalDetail13.questions.length) > 0 && inspectionReport.map(function (ob, index) {
44476
- if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44477
- title: ob.title,
44478
- additionalDetails: {
44479
- inspectionReport: [],
44480
- values: ob.values
44481
- }
44482
- }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44483
- title: ob.title,
44484
- additionalDetails: {
44485
- isChecklist: true,
44486
- inspectionReport: [],
44487
- values: ob.values
44488
- }
44489
- }]);else {
44490
- var _ob$additionalDetails, _ob$additionalDetails2;
44451
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44452
+ var _mdmsRes$BPA2;
44491
44453
 
44492
- var improvedDoc = [].concat((_ob$additionalDetails = ob.additionalDetails.obpsDocuments) === null || _ob$additionalDetails === void 0 ? void 0 : (_ob$additionalDetails2 = _ob$additionalDetails[0]) === null || _ob$additionalDetails2 === void 0 ? void 0 : _ob$additionalDetails2.values);
44493
- improvedDoc.map(function (ob) {
44494
- ob["isNotDuplicate"] = true;
44495
- });
44496
- improvedDoc.map(function (ob, index) {
44497
- val = ob.documentType;
44498
- if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44499
- if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
44454
+ mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44455
+ var _checklist$conditions;
44456
+
44457
+ if ((checklist === null || checklist === void 0 ? void 0 : checklist.RiskType) === riskType && (checklist === null || checklist === void 0 ? void 0 : checklist.applicationType) === (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType) && (checklist === null || checklist === void 0 ? void 0 : checklist.ServiceType) === (edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType) && (checklist === null || checklist === void 0 ? void 0 : checklist.WFState) === "PENDINGAPPROVAL" && (checklist === null || checklist === void 0 ? void 0 : (_checklist$conditions = checklist.conditions) === null || _checklist$conditions === void 0 ? void 0 : _checklist$conditions.length) > 0) {
44458
+ approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44500
44459
  }
44501
44460
  });
44502
- FieldInspectionData = [].concat(FieldInspectionData, [{
44503
- title: ob.title,
44461
+ approvalChecksDetails = {
44462
+ title: "",
44463
+ isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44464
+ asSectionHeader: true,
44465
+ isPermissions: true,
44504
44466
  additionalDetails: {
44505
- FIdocuments: [],
44506
- "documents": [{
44507
- values: improvedDoc
44508
- }]
44467
+ permissions: approvalChecks
44509
44468
  }
44510
- }]);
44469
+ };
44511
44470
  }
44512
- });
44513
- var fiReports = {
44514
- title: "",
44515
- isFieldInspection: true,
44516
- isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail14 = BPA.additionalDetails) === null || _BPA$additionalDetail14 === void 0 ? void 0 : (_BPA$additionalDetail15 = _BPA$additionalDetail14.fieldinspection_pending) === null || _BPA$additionalDetail15 === void 0 ? void 0 : _BPA$additionalDetail15.length) > 0 ? false : true,
44517
- additionalDetails: {
44518
- values: [],
44519
- fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail16 = BPA.additionalDetails) === null || _BPA$additionalDetail16 === void 0 ? void 0 : (_BPA$additionalDetail17 = _BPA$additionalDetail16.fieldinspection_pending) === null || _BPA$additionalDetail17 === void 0 ? void 0 : _BPA$additionalDetail17.length) > 0 ? true : false
44471
+
44472
+ if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44473
+ var val;
44474
+ var i;
44475
+ var FieldInspectionData = [];
44476
+ inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail13 = BPA.additionalDetails) === null || _BPA$additionalDetail13 === void 0 ? void 0 : (_BPA$additionalDetail14 = _BPA$additionalDetail13.fieldinspection_pending) === null || _BPA$additionalDetail14 === void 0 ? void 0 : (_BPA$additionalDetail15 = _BPA$additionalDetail14[0]) === null || _BPA$additionalDetail15 === void 0 ? void 0 : _BPA$additionalDetail15.questions.length) > 0 && inspectionReport.map(function (ob, index) {
44477
+ if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44478
+ title: ob.title,
44479
+ additionalDetails: {
44480
+ inspectionReport: [],
44481
+ values: ob.values
44482
+ }
44483
+ }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44484
+ title: ob.title,
44485
+ additionalDetails: {
44486
+ isChecklist: true,
44487
+ inspectionReport: [],
44488
+ values: ob.values
44489
+ }
44490
+ }]);else {
44491
+ var _ob$additionalDetails, _ob$additionalDetails2;
44492
+
44493
+ var improvedDoc = [].concat((_ob$additionalDetails = ob.additionalDetails.obpsDocuments) === null || _ob$additionalDetails === void 0 ? void 0 : (_ob$additionalDetails2 = _ob$additionalDetails[0]) === null || _ob$additionalDetails2 === void 0 ? void 0 : _ob$additionalDetails2.values);
44494
+ improvedDoc.map(function (ob) {
44495
+ ob["isNotDuplicate"] = true;
44496
+ });
44497
+ improvedDoc.map(function (ob, index) {
44498
+ val = ob.documentType;
44499
+ if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44500
+ if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
44501
+ }
44502
+ });
44503
+ FieldInspectionData = [].concat(FieldInspectionData, [{
44504
+ title: ob.title,
44505
+ additionalDetails: {
44506
+ FIdocuments: [],
44507
+ "documents": [{
44508
+ values: improvedDoc
44509
+ }]
44510
+ }
44511
+ }]);
44512
+ }
44513
+ });
44514
+ var fiReports = {
44515
+ title: "",
44516
+ isFieldInspection: true,
44517
+ isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail16 = BPA.additionalDetails) === null || _BPA$additionalDetail16 === void 0 ? void 0 : (_BPA$additionalDetail17 = _BPA$additionalDetail16.fieldinspection_pending) === null || _BPA$additionalDetail17 === void 0 ? void 0 : _BPA$additionalDetail17.length) > 0 ? false : true,
44518
+ additionalDetails: {
44519
+ values: [],
44520
+ fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail18 = BPA.additionalDetails) === null || _BPA$additionalDetail18 === void 0 ? void 0 : (_BPA$additionalDetail19 = _BPA$additionalDetail18.fieldinspection_pending) === null || _BPA$additionalDetail19 === void 0 ? void 0 : _BPA$additionalDetail19.length) > 0 ? true : false
44521
+ }
44522
+ };
44523
+
44524
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44525
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44526
+ } else {
44527
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44520
44528
  }
44521
- };
44522
44529
 
44523
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44524
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44525
- } else {
44526
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44530
+ var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44531
+ return data;
44532
+ });
44533
+ return {
44534
+ applicationData: BPA,
44535
+ applicationDetails: bpaFilterDetails,
44536
+ tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44537
+ edcrDetails: edcr,
44538
+ nocData: noc,
44539
+ comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44540
+ businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44541
+ applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44542
+ applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44543
+ };
44527
44544
  }
44528
44545
 
44529
- var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44530
- return data;
44546
+ noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
44547
+ var _nocDetails$documents2;
44548
+
44549
+ nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (nocDoc) {
44550
+ appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
44551
+ });
44531
44552
  });
44532
- return {
44533
- applicationData: BPA,
44534
- applicationDetails: bpaFilterDetails,
44535
- tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44536
- edcrDetails: edcr,
44537
- nocData: noc,
44538
- comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44539
- businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44540
- applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44541
- applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44542
- };
44553
+ var fileDetails = {};
44554
+
44555
+ var _temp = function () {
44556
+ if ((appDocumentFileStoreIds === null || appDocumentFileStoreIds === void 0 ? void 0 : appDocumentFileStoreIds.length) > 0) {
44557
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (_UploadServices$Filef) {
44558
+ fileDetails = _UploadServices$Filef;
44559
+ });
44560
+ }
44561
+ }();
44562
+
44563
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
44543
44564
  });
44544
44565
  });
44545
44566
  });
@@ -46171,7 +46192,7 @@ var getDate = function getDate(epochdate) {
46171
46192
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46172
46193
  };
46173
46194
 
46174
- var getAddress = function getAddress(address, t) {
46195
+ var getAddress$1 = function getAddress(address, t) {
46175
46196
  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 : " ");
46176
46197
  };
46177
46198
 
@@ -46188,7 +46209,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
46188
46209
  })[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) {
46189
46210
  return ow.name;
46190
46211
  }).join(","),
46191
- Address: getAddress(properties.filter(function (prop) {
46212
+ Address: getAddress$1(properties.filter(function (prop) {
46192
46213
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46193
46214
  })[0].address, t),
46194
46215
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
@@ -46272,7 +46293,7 @@ var getDate$1 = function getDate(epochdate) {
46272
46293
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46273
46294
  };
46274
46295
 
46275
- var getAddress$1 = function getAddress(address, t) {
46296
+ var getAddress$2 = function getAddress(address, t) {
46276
46297
  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 : " ");
46277
46298
  };
46278
46299
 
@@ -46289,7 +46310,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
46289
46310
  })[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) {
46290
46311
  return ow.name;
46291
46312
  }).join(","),
46292
- Address: getAddress$1(properties.filter(function (prop) {
46313
+ Address: getAddress$2(properties.filter(function (prop) {
46293
46314
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46294
46315
  })[0].address, t),
46295
46316
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {