@egovernments/digit-ui-libraries 1.5.0-alpha.1 → 1.5.0-beta.10

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) {
@@ -37303,10 +37318,20 @@ var ULBService = {
37303
37318
  return tenant.code === tenantId;
37304
37319
  });
37305
37320
  },
37306
- getCitizenCurrentTenant: function getCitizenCurrentTenant() {
37321
+ getCitizenCurrentTenant: function getCitizenCurrentTenant(selectedCity) {
37307
37322
  var _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2;
37308
37323
 
37309
- return ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.permanentCity) || ULBService.getStateId();
37324
+ if (selectedCity === void 0) {
37325
+ selectedCity = false;
37326
+ }
37327
+
37328
+ var homeCity = (_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code;
37329
+
37330
+ if (selectedCity) {
37331
+ return homeCity;
37332
+ }
37333
+
37334
+ return homeCity || ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.permanentCity) || ULBService.getStateId();
37310
37335
  },
37311
37336
  getUserUlbs: function getUserUlbs(userRole) {
37312
37337
  if (userRole === void 0) {
@@ -41322,7 +41347,7 @@ var PTSearch = {
41322
41347
  value: owner === null || owner === void 0 ? void 0 : owner.emailId
41323
41348
  }, {
41324
41349
  title: "PT_OWNERSHIP_INFO_CORR_ADDR",
41325
- value: owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress
41350
+ value: owner === null || owner === void 0 ? void 0 : owner.permanentAddress
41326
41351
  }]
41327
41352
  };
41328
41353
  })
@@ -42239,7 +42264,7 @@ var useTradeLicenseMDMS = function useTradeLicenseMDMS(tenantId, moduleCode, typ
42239
42264
  };
42240
42265
 
42241
42266
  var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42242
- 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, _data2$value, _data2$value$owners, _data2$value$owners$d, _data3, _data3$value, _data3$value$owners, _data3$value$owners$d, _data4, _data4$value, _data4$value$owners, _data4$value$owners$d;
42243
42268
 
42244
42269
  if (data1 === void 0) {
42245
42270
  data1 = {};
@@ -42248,10 +42273,12 @@ var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42248
42273
  var client = useQueryClient();
42249
42274
  var tenantId = Digit.ULBService.getCurrentTenantId();
42250
42275
  var tenant = Digit.ULBService.getStateId();
42251
- var filesArray = [];
42252
- 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);
42253
- 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);
42254
- 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$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["OwnerPhotoProof"]) !== null && _data2$value$owners$d !== void 0 && _data2$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
42280
+ 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["ProofOfIdentity"]) !== null && _data3$value$owners$d !== void 0 && _data3$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
42281
+ 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["ProofOfOwnership"]) !== null && _data4$value$owners$d !== void 0 && _data4$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
42255
42282
 
42256
42283
  var _useQuery = useQuery(["tlDocuments-" + 1, filesArray], function () {
42257
42284
  return Digit.UploadServices.Filefetch(filesArray, tenant);
@@ -42472,6 +42499,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
42472
42499
  }
42473
42500
  };
42474
42501
 
42502
+ var getAddress = function getAddress(address, t) {
42503
+ 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 : " ");
42504
+ };
42505
+
42475
42506
  var TLSearch = {
42476
42507
  all: function (tenantId, filters) {
42477
42508
  if (filters === void 0) {
@@ -42529,68 +42560,14 @@ var TLSearch = {
42529
42560
 
42530
42561
  function _temp3(propertyDetails) {
42531
42562
  function _temp2() {
42532
- 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;
42563
+ 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;
42533
42564
 
42534
42565
  var propertyAddress = "";
42535
42566
 
42536
- if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop.length) {
42537
- 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;
42567
+ if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
42568
+ var _propertyDetails$Prop;
42538
42569
 
42539
- 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) {
42540
- var _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7;
42541
-
42542
- 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;
42543
-
42544
- 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) {
42545
- propertyAddress += ", ";
42546
- }
42547
- }
42548
-
42549
- 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) {
42550
- var _propertyDetails$Prop10, _propertyDetails$Prop11, _propertyDetails$Prop12, _propertyDetails$Prop13;
42551
-
42552
- 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;
42553
-
42554
- 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) {
42555
- propertyAddress += ", ";
42556
- }
42557
- }
42558
-
42559
- 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) {
42560
- var _propertyDetails$Prop16, _propertyDetails$Prop17, _propertyDetails$Prop18, _propertyDetails$Prop19, _propertyDetails$Prop20;
42561
-
42562
- 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;
42563
-
42564
- 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) {
42565
- propertyAddress += ", ";
42566
- }
42567
- }
42568
-
42569
- 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) {
42570
- var _propertyDetails$Prop24, _propertyDetails$Prop25, _propertyDetails$Prop26, _propertyDetails$Prop27, _propertyDetails$Prop28;
42571
-
42572
- 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;
42573
-
42574
- 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) {
42575
- propertyAddress += ", ";
42576
- }
42577
- }
42578
-
42579
- 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) {
42580
- var _propertyDetails$Prop31, _propertyDetails$Prop32, _propertyDetails$Prop33, _propertyDetails$Prop34;
42581
-
42582
- 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;
42583
-
42584
- 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) {
42585
- propertyAddress += ", ";
42586
- }
42587
- }
42588
-
42589
- 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) {
42590
- var _propertyDetails$Prop37, _propertyDetails$Prop38;
42591
-
42592
- 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;
42593
- }
42570
+ 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);
42594
42571
  }
42595
42572
 
42596
42573
  var employeeResponse = [];
@@ -42690,16 +42667,16 @@ var TLSearch = {
42690
42667
  title: "PT_DETAILS",
42691
42668
  values: [{
42692
42669
  title: "TL_PROPERTY_ID",
42693
- 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"
42670
+ 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"
42694
42671
  }, {
42695
42672
  title: "PT_OWNER_NAME",
42696
- 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"
42673
+ 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"
42697
42674
  }, {
42698
42675
  title: "PROPERTY_ADDRESS",
42699
42676
  value: propertyAddress || "NA"
42700
42677
  }, {
42701
42678
  title: "TL_VIEW_PROPERTY_DETAIL",
42702
- 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),
42679
+ 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",
42703
42680
  value: "",
42704
42681
  isLink: true
42705
42682
  }]
@@ -42843,8 +42820,8 @@ var TLSearch = {
42843
42820
  response && employeeResponse.push(tradedetails);
42844
42821
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens57 = response.tradeLicenseDetail) === null || _response$tradeLicens57 === void 0 ? void 0 : _response$tradeLicens57.tradeUnits) && employeeResponse.push(tradeUnits);
42845
42822
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens58 = response.tradeLicenseDetail) === null || _response$tradeLicens58 === void 0 ? void 0 : _response$tradeLicens58.accessories) && employeeResponse.push(accessories);
42846
- (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);
42847
- 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);
42823
+ (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);
42824
+ 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);
42848
42825
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens59 = response.tradeLicenseDetail) === null || _response$tradeLicens59 === void 0 ? void 0 : _response$tradeLicens59.owners) && employeeResponse.push(owners);
42849
42826
  return {
42850
42827
  tenantId: response.tenantId,
@@ -43880,7 +43857,7 @@ var OBPSService = {
43880
43857
  isEmployee: true
43881
43858
  })).then(function (paymentRes) {
43882
43859
  return Promise.resolve(MdmsService.getMultipleTypes(License === null || License === void 0 ? void 0 : License.tenantId, "StakeholderRegistraition", ["TradeTypetoRoleMapping"])).then(function (mdmsRes) {
43883
- 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;
43860
+ var _License$tradeLicense, _License$tradeLicense2, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense8, _License$tradeLicense9;
43884
43861
 
43885
43862
  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) {
43886
43863
  var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
@@ -43902,103 +43879,111 @@ var OBPSService = {
43902
43879
  });
43903
43880
  }
43904
43881
 
43905
- var details = [{
43906
- title: " ",
43907
- values: [{
43908
- title: "BPA_APPLICATION_NUMBER_LABEL",
43909
- value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43910
- }]
43911
- }, 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") ? {
43912
- title: "BPA_LICENSE_DETAILS_LABEL",
43913
- asSectionHeader: true,
43914
- values: [{
43915
- title: "BPA_LICENSE_TYPE",
43916
- 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"
43917
- }, {
43918
- title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43919
- 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"
43920
- }]
43921
- } : {
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$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"
43927
- }]
43928
- }, {
43929
- title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43930
- asSectionHeader: true,
43931
- values: [{
43932
- title: "BPA_APPLICANT_NAME_LABEL",
43933
- 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"
43934
- }, {
43935
- title: "BPA_APPLICANT_GENDER_LABEL",
43936
- 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"
43937
- }, {
43938
- title: "BPA_OWNER_MOBILE_NO_LABEL",
43939
- 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"
43882
+ 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) {
43883
+ return appDoc === null || appDoc === void 0 ? void 0 : appDoc.fileStoreId;
43884
+ });
43885
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
43886
+ 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;
43887
+
43888
+ var details = [{
43889
+ title: " ",
43890
+ values: [{
43891
+ title: "BPA_APPLICATION_NUMBER_LABEL",
43892
+ value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43893
+ }]
43894
+ }, 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") ? {
43895
+ title: "BPA_LICENSE_DETAILS_LABEL",
43896
+ asSectionHeader: true,
43897
+ values: [{
43898
+ title: "BPA_LICENSE_TYPE",
43899
+ 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"
43900
+ }, {
43901
+ title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43902
+ 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"
43903
+ }]
43904
+ } : {
43905
+ title: "BPA_LICENSE_DETAILS_LABEL",
43906
+ asSectionHeader: true,
43907
+ values: [{
43908
+ title: "BPA_LICENSE_TYPE",
43909
+ 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"
43910
+ }]
43940
43911
  }, {
43941
- title: "BPA_APPLICANT_EMAIL_LABEL",
43942
- 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"
43912
+ title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43913
+ asSectionHeader: true,
43914
+ values: [{
43915
+ title: "BPA_APPLICANT_NAME_LABEL",
43916
+ 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"
43917
+ }, {
43918
+ title: "BPA_APPLICANT_GENDER_LABEL",
43919
+ 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"
43920
+ }, {
43921
+ title: "BPA_OWNER_MOBILE_NO_LABEL",
43922
+ 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"
43923
+ }, {
43924
+ title: "BPA_APPLICANT_EMAIL_LABEL",
43925
+ 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"
43926
+ }, {
43927
+ title: "BPA_APPLICANT_PAN_NO",
43928
+ 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"
43929
+ }]
43943
43930
  }, {
43944
- title: "BPA_APPLICANT_PAN_NO",
43945
- 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"
43946
- }]
43947
- }, {
43948
- title: "BPA_PERMANANT_ADDRESS_LABEL",
43949
- asSectionHeader: true,
43950
- values: [{
43951
43931
  title: "BPA_PERMANANT_ADDRESS_LABEL",
43952
- 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"
43953
- }]
43954
- }, {
43955
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43956
- asSectionHeader: true,
43957
- values: [{
43958
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43959
- 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"
43960
- }]
43961
- }, {
43962
- title: "BPA_DOCUMENT_DETAILS_LABEL",
43963
- asSectionHeader: true,
43964
- additionalDetails: {
43965
- documents: [{
43966
- title: "",
43967
- 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) {
43968
- var _doc$documentType;
43969
-
43970
- return {
43971
- title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43972
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43973
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43974
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43975
- id: doc === null || doc === void 0 ? void 0 : doc.id,
43976
- docInfo: doc === null || doc === void 0 ? void 0 : doc.info
43977
- };
43978
- })
43932
+ asSectionHeader: true,
43933
+ values: [{
43934
+ title: "BPA_PERMANANT_ADDRESS_LABEL",
43935
+ 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"
43979
43936
  }]
43980
- }
43981
- }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43982
- title: "BPA_FEE_DETAILS_LABEL",
43983
- additionalDetails: {
43984
- inspectionReport: [],
43937
+ }, {
43938
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43939
+ asSectionHeader: true,
43985
43940
  values: [{
43986
- title: "BPAREG_FEES",
43987
- 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)
43988
- }, (_ref = {
43989
- title: "BPA_STATUS_LABEL",
43990
- isTransLate: true,
43991
- isStatus: true,
43992
- 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"
43993
- }, _ref["isTransLate"] = true, _ref)]
43994
- }
43995
- }];
43996
- return {
43997
- applicationData: License,
43998
- applicationDetails: details,
43999
- tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
44000
- payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
44001
- };
43941
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43942
+ 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"
43943
+ }]
43944
+ }, {
43945
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
43946
+ asSectionHeader: true,
43947
+ additionalDetails: {
43948
+ documentsWithUrl: [{
43949
+ title: "",
43950
+ 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) {
43951
+ var _doc$documentType, _fileDetails$data$doc;
43952
+
43953
+ return {
43954
+ title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43955
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43956
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43957
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43958
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
43959
+ docInfo: doc === null || doc === void 0 ? void 0 : doc.info,
43960
+ 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] : ""
43961
+ };
43962
+ })
43963
+ }]
43964
+ }
43965
+ }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43966
+ title: "BPA_FEE_DETAILS_LABEL",
43967
+ additionalDetails: {
43968
+ inspectionReport: [],
43969
+ values: [{
43970
+ title: "BPAREG_FEES",
43971
+ 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)
43972
+ }, (_ref = {
43973
+ title: "BPA_STATUS_LABEL",
43974
+ isTransLate: true,
43975
+ isStatus: true,
43976
+ 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"
43977
+ }, _ref["isTransLate"] = true, _ref)]
43978
+ }
43979
+ }];
43980
+ return {
43981
+ applicationData: License,
43982
+ applicationDetails: details,
43983
+ tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
43984
+ payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
43985
+ };
43986
+ });
44002
43987
  });
44003
43988
  });
44004
43989
  });
@@ -44009,16 +43994,27 @@ var OBPSService = {
44009
43994
  BPADetailsPage: function (tenantId, filters) {
44010
43995
  try {
44011
43996
  return Promise.resolve(OBPSService.BPASearch(tenantId, filters)).then(function (response) {
44012
- var _response$BPA, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA3, _response$BPA3$, _response$BPA3$$addit;
43997
+ 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;
44013
43998
 
44014
- if (!(response !== null && response !== void 0 && (_response$BPA = response.BPA) !== null && _response$BPA !== void 0 && _response$BPA.length)) {
43999
+ 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) {
44000
+ return docId.fileStoreId;
44001
+ });
44002
+ 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) {
44003
+ var _fiData$docs;
44004
+
44005
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
44006
+ appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
44007
+ });
44008
+ });
44009
+
44010
+ if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
44015
44011
  return;
44016
44012
  }
44017
44013
 
44018
- 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"));
44014
+ 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"));
44019
44015
 
44020
- var _response$BPA4 = response === null || response === void 0 ? void 0 : response.BPA,
44021
- BPA = _response$BPA4[0];
44016
+ var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
44017
+ BPA = _response$BPA6[0];
44022
44018
 
44023
44019
  return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
44024
44020
  edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
@@ -44045,491 +44041,511 @@ var OBPSService = {
44045
44041
  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,
44046
44042
  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
44047
44043
  };
44044
+ return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44045
+ noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
44046
+ var _nocDetails$documents;
44048
44047
 
44049
- function ConvertEpochToValidityDate(dateEpoch) {
44050
- if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44051
- return "NA";
44052
- }
44048
+ nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (nocDoc) {
44049
+ appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
44050
+ });
44051
+ });
44052
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
44053
+ 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;
44053
44054
 
44054
- var dateFromApi = new Date(dateEpoch);
44055
- var month = dateFromApi.getMonth() + 1;
44056
- var day = dateFromApi.getDate();
44057
- var year = dateFromApi.getFullYear() - 3;
44058
- month = (month > 9 ? "" : "0") + month;
44059
- day = (day > 9 ? "" : "0") + day;
44060
- return day + "/" + month + "/" + year;
44061
- }
44055
+ function ConvertEpochToValidityDate(dateEpoch) {
44056
+ if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44057
+ return "NA";
44058
+ }
44062
44059
 
44063
- return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44064
- 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;
44060
+ var dateFromApi = new Date(dateEpoch);
44061
+ var month = dateFromApi.getMonth() + 1;
44062
+ var day = dateFromApi.getDate();
44063
+ var year = dateFromApi.getFullYear() - 3;
44064
+ month = (month > 9 ? "" : "0") + month;
44065
+ day = (day > 9 ? "" : "0") + day;
44066
+ return day + "/" + month + "/" + year;
44067
+ }
44065
44068
 
44066
- var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44067
- var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents;
44069
+ 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) {
44070
+ var _fiData$docs2;
44068
44071
 
44069
- return {
44070
- title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44071
- values: [{
44072
- title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44073
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44074
- isNotTranslated: true
44075
- }, {
44076
- title: "BPA_NOC_STATUS",
44077
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44078
- field: "STATUS"
44079
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44080
- title: "BPA_SUDMITTED_ON_LABEL",
44081
- 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",
44082
- isNotTranslated: true
44083
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44084
- title: "BPA_APPROVAL_NUMBER_LABEL",
44085
- value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44086
- isNotTranslated: true
44087
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44088
- title: "BPA_APPROVED_REJECTED_ON_LABEL",
44089
- 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",
44090
- isNotTranslated: true
44091
- }],
44092
- additionalDetails: {
44093
- data: nocDetails,
44094
- noc: [{
44095
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44096
- values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
44097
- var _doc$documentType2;
44072
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
44073
+ var _fileDetails$data$fiD;
44098
44074
 
44099
- return {
44100
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44101
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44102
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44103
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44104
- id: doc === null || doc === void 0 ? void 0 : doc.id
44105
- };
44106
- })
44107
- }]
44108
- }
44109
- };
44110
- });
44111
- var inspectionReport = [];
44112
- var checklist = [];
44113
- 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) {
44114
- return ob.docs && ob.docs.length > 0;
44115
- }).map(function (ob, ind) {
44116
- var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44117
-
44118
- checklist = [];
44119
- inspectionReport.push({
44120
- title: "BPA_FI_REPORT",
44121
- asSectionHeader: true,
44122
- values: [{
44123
- title: "BPA_FI_DATE_LABEL",
44124
- 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
44125
- }, {
44126
- title: "BPA_FI_TIME_LABEL",
44127
- value: ob.time
44128
- }]
44129
- });
44130
- ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44131
- checklist.push({
44132
- title: q.question,
44133
- value: q.value
44134
- });
44135
- checklist.push({
44136
- title: "BPA_ENTER_REMARKS",
44137
- value: q.remarks
44075
+ if (fileDetails !== null && fileDetails !== void 0 && fileDetails.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) fiDoc.url = fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data$fiD = fileDetails.data[fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId]) === null || _fileDetails$data$fiD === void 0 ? void 0 : _fileDetails$data$fiD.split(',')[0];
44138
44076
  });
44139
44077
  });
44140
- inspectionReport.push({
44141
- title: "BPA_CHECK_LIST_DETAILS",
44142
- asSectionHeader: true,
44143
- values: checklist
44078
+ var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44079
+ var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents2;
44080
+
44081
+ return {
44082
+ title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44083
+ values: [{
44084
+ title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44085
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44086
+ isNotTranslated: true
44087
+ }, {
44088
+ title: "BPA_NOC_STATUS",
44089
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44090
+ field: "STATUS"
44091
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44092
+ title: "BPA_SUDMITTED_ON_LABEL",
44093
+ 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",
44094
+ isNotTranslated: true
44095
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44096
+ title: "BPA_APPROVAL_NUMBER_LABEL",
44097
+ value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44098
+ isNotTranslated: true
44099
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44100
+ title: "BPA_APPROVED_REJECTED_ON_LABEL",
44101
+ 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",
44102
+ isNotTranslated: true
44103
+ }],
44104
+ additionalDetails: {
44105
+ data: nocDetails,
44106
+ noc: [{
44107
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44108
+ values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (doc) {
44109
+ var _doc$documentType2, _fileDetails$data, _fileDetails$data2, _fileDetails$data2$do;
44110
+
44111
+ return {
44112
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44113
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44114
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44115
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44116
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44117
+ url: fileDetails !== null && fileDetails !== void 0 && (_fileDetails$data = fileDetails.data) !== null && _fileDetails$data !== void 0 && _fileDetails$data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data2 = fileDetails.data) === null || _fileDetails$data2 === void 0 ? void 0 : (_fileDetails$data2$do = _fileDetails$data2[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails$data2$do === void 0 ? void 0 : _fileDetails$data2$do.split(',')[0] : ""
44118
+ };
44119
+ })
44120
+ }]
44121
+ }
44122
+ };
44144
44123
  });
44145
- inspectionReport.push({
44146
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44147
- asSectionHeader: true,
44148
- additionalDetails: {
44149
- obpsDocuments: [{
44150
- title: "",
44151
- values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44152
- var _doc$documentType3;
44153
-
44154
- return {
44155
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44156
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44157
- documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44158
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44159
- id: doc === null || doc === void 0 ? void 0 : doc.id
44160
- };
44161
- })
44124
+ var inspectionReport = [];
44125
+ var checklist = [];
44126
+ 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) {
44127
+ return ob.docs && ob.docs.length > 0;
44128
+ }).map(function (ob, ind) {
44129
+ var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44130
+
44131
+ checklist = [];
44132
+ inspectionReport.push({
44133
+ title: "BPA_FI_REPORT",
44134
+ asSectionHeader: true,
44135
+ values: [{
44136
+ title: "BPA_FI_DATE_LABEL",
44137
+ 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
44138
+ }, {
44139
+ title: "BPA_FI_TIME_LABEL",
44140
+ value: ob.time
44162
44141
  }]
44163
- }
44142
+ });
44143
+ ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44144
+ checklist.push({
44145
+ title: q.question,
44146
+ value: q.value
44147
+ });
44148
+ checklist.push({
44149
+ title: "BPA_ENTER_REMARKS",
44150
+ value: q.remarks
44151
+ });
44152
+ });
44153
+ inspectionReport.push({
44154
+ title: "BPA_CHECK_LIST_DETAILS",
44155
+ asSectionHeader: true,
44156
+ values: checklist
44157
+ });
44158
+ inspectionReport.push({
44159
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44160
+ asSectionHeader: true,
44161
+ additionalDetails: {
44162
+ obpsDocuments: [{
44163
+ title: "",
44164
+ values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44165
+ var _doc$documentType3, _fileDetails$data3, _fileDetails$data4, _fileDetails$data4$do;
44166
+
44167
+ return {
44168
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44169
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44170
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44171
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44172
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44173
+ url: fileDetails !== null && fileDetails !== void 0 && (_fileDetails$data3 = fileDetails.data) !== null && _fileDetails$data3 !== void 0 && _fileDetails$data3[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data4 = fileDetails.data) === null || _fileDetails$data4 === void 0 ? void 0 : (_fileDetails$data4$do = _fileDetails$data4[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails$data4$do === void 0 ? void 0 : _fileDetails$data4$do.split(',')[0] : ""
44174
+ };
44175
+ })
44176
+ }]
44177
+ }
44178
+ });
44164
44179
  });
44165
- });
44166
- var details = [];
44167
- var applicationDetailsInfo = {
44168
- title: " ",
44169
- isCommon: true,
44170
- values: [{
44171
- title: "BPA_APPLICATION_NUMBER_LABEL",
44172
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44173
- }]
44174
- };
44175
-
44176
- if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44177
- var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44180
+ var details = [];
44181
+ var applicationDetailsInfo = {
44182
+ title: " ",
44183
+ isCommon: true,
44184
+ values: [{
44185
+ title: "BPA_APPLICATION_NUMBER_LABEL",
44186
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44187
+ }]
44188
+ };
44178
44189
 
44179
- applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44180
- title: "BPA_PERMIT_APP_NUMBER",
44181
- 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),
44182
- 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,
44183
- isLink: true
44184
- }]);
44185
- }
44190
+ if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44191
+ var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44186
44192
 
44187
- var permitcondn = [];
44188
- (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) {
44189
- permitcondn.push({
44190
- title: index + 1 + ". " + ob,
44191
- value: ""
44192
- });
44193
- }));
44194
- var PermitConditions = {
44195
- title: "BPA_PERMIT_CONDITIONS",
44196
- isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44197
- isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44198
- additionalDetails: {
44199
- inspectionReport: [],
44200
- permit: [].concat(permitcondn)
44193
+ applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44194
+ title: "BPA_PERMIT_APP_NUMBER",
44195
+ 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),
44196
+ 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,
44197
+ isLink: true
44198
+ }]);
44201
44199
  }
44202
- };
44203
- if (permitcondn.length == 0) PermitConditions = {};
44204
44200
 
44205
- if (riskType == "LOW" && permitcondn.length > 0) {
44206
- permitcondn = [];
44207
- PermitConditions = {};
44208
- }
44201
+ var permitcondn = [];
44202
+ (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) {
44203
+ permitcondn.push({
44204
+ title: index + 1 + ". " + ob,
44205
+ value: ""
44206
+ });
44207
+ }));
44208
+ var PermitConditions = {
44209
+ title: "BPA_PERMIT_CONDITIONS",
44210
+ isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44211
+ isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44212
+ additionalDetails: {
44213
+ inspectionReport: [],
44214
+ permit: [].concat(permitcondn)
44215
+ }
44216
+ };
44217
+ if (permitcondn.length == 0) PermitConditions = {};
44209
44218
 
44210
- if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44211
- var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail6, _BPA$additionalDetail7, _BPA$additionalDetail8;
44219
+ if (riskType == "LOW" && permitcondn.length > 0) {
44220
+ permitcondn = [];
44221
+ PermitConditions = {};
44222
+ }
44212
44223
 
44213
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44214
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44215
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44216
- });
44217
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44218
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44219
- 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"
44220
- });
44221
- }
44224
+ if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44225
+ var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
44222
44226
 
44223
- var basicDetails = {
44224
- title: "BPA_BASIC_DETAILS_TITLE",
44225
- asSectionHeader: true,
44226
- isInsert: true,
44227
- isCommon: true,
44228
- values: [{
44229
- title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44230
- 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') : ''
44231
- }, {
44232
- title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44233
- value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44234
- }, {
44235
- title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44236
- value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44237
- }, {
44238
- title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44239
- 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
44240
- }, {
44241
- title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44242
- value: "WF_BPA_" + riskType,
44243
- isInsert: true
44244
- }, {
44245
- title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44246
- 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
44247
- }]
44248
- };
44249
- var plotDetails = {
44250
- title: "BPA_PLOT_DETAILS_TITLE",
44251
- asSectionHeader: true,
44252
- isCommon: true,
44253
- values: [{
44254
- title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44255
- 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),
44256
- isNotTranslated: true,
44257
- isUnit: "BPA_SQ_FT_LABEL"
44258
- }, {
44259
- title: "BPA_PLOT_NUMBER_LABEL",
44260
- 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",
44261
- isNotTranslated: true
44262
- }, {
44263
- title: "BPA_KHATHA_NUMBER_LABEL",
44264
- 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",
44265
- isNotTranslated: true
44266
- }, {
44267
- title: "BPA_HOLDING_NUMBER_LABEL",
44268
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.holdingNo) || "NA",
44269
- isNotTranslated: true
44270
- }, {
44271
- title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44272
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
44273
- isNotTranslated: true
44274
- }]
44275
- };
44276
- var scrutinyDetails = {
44277
- title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44278
- isScrutinyDetails: true,
44279
- isBackGroundColor: true,
44280
- additionalDetails: {
44227
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44228
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44229
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44230
+ });
44231
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44232
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44233
+ 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"
44234
+ });
44235
+ }
44236
+
44237
+ var basicDetails = {
44238
+ title: "BPA_BASIC_DETAILS_TITLE",
44239
+ asSectionHeader: true,
44240
+ isInsert: true,
44241
+ isCommon: true,
44281
44242
  values: [{
44282
- title: "BPA_EDCR_DETAILS",
44283
- value: " ",
44284
- isHeader: true
44243
+ title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44244
+ 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') : ''
44245
+ }, {
44246
+ title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44247
+ value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44285
44248
  }, {
44286
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44287
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44288
- }],
44289
- scruntinyDetails: [{
44290
- title: "BPA_UPLOADED_PLAN_DIAGRAM",
44291
- value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44292
- text: "BPA_UPLOADED_PLAN_DXF"
44249
+ title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44250
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44293
44251
  }, {
44294
- title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44295
- value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44296
- text: "BPA_SCRUTINY_REPORT_PDF"
44252
+ title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44253
+ 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
44254
+ }, {
44255
+ title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44256
+ value: "WF_BPA_" + riskType,
44257
+ isInsert: true
44258
+ }, {
44259
+ title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44260
+ 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
44297
44261
  }]
44298
- }
44299
- };
44300
- var buildingExtractionDetails = {
44301
- title: "",
44302
- isScrutinyDetails: true,
44303
- isBackGroundColor: true,
44304
- additionalDetails: {
44262
+ };
44263
+ var plotDetails = {
44264
+ title: "BPA_PLOT_DETAILS_TITLE",
44265
+ asSectionHeader: true,
44266
+ isCommon: true,
44305
44267
  values: [{
44306
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44307
- value: " ",
44308
- isHeader: true
44268
+ title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44269
+ 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),
44270
+ isNotTranslated: true,
44271
+ isUnit: "BPA_SQ_FT_LABEL"
44309
44272
  }, {
44310
- title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44311
- 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,
44312
- isUnit: "BPA_SQ_MTRS_LABEL"
44273
+ title: "BPA_PLOT_NUMBER_LABEL",
44274
+ 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",
44275
+ isNotTranslated: true
44313
44276
  }, {
44314
- title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44315
- 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"
44277
+ title: "BPA_KHATHA_NUMBER_LABEL",
44278
+ 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",
44279
+ isNotTranslated: true
44316
44280
  }, {
44317
- title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44318
- 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,
44319
- isUnit: "BPA_MTRS_LABEL"
44320
- }],
44321
- scruntinyDetails: []
44322
- }
44323
- };
44324
- var demolitionAreaDetails = {
44325
- title: "",
44326
- isScrutinyDetails: true,
44327
- isBackGroundColor: true,
44328
- additionalDetails: {
44329
- values: [{
44330
- title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44331
- value: " ",
44332
- isHeader: true
44281
+ title: "BPA_HOLDING_NUMBER_LABEL",
44282
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.holdingNo) || "NA",
44283
+ isNotTranslated: true
44333
44284
  }, {
44334
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44335
- 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,
44336
- isUnit: "BPA_SQ_MTRS_LABEL"
44337
- }],
44338
- scruntinyDetails: []
44339
- }
44340
- };
44341
- var subOccupancyTableDetails = {
44342
- title: "",
44343
- isSubOccupancyTable: true,
44344
- isTitleRepeat: true,
44345
- additionalDetails: {
44285
+ title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44286
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
44287
+ isNotTranslated: true
44288
+ }]
44289
+ };
44290
+ var scrutinyDetails = {
44291
+ title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44292
+ isScrutinyDetails: true,
44293
+ isBackGroundColor: true,
44294
+ additionalDetails: {
44295
+ values: [{
44296
+ title: "BPA_EDCR_DETAILS",
44297
+ value: " ",
44298
+ isHeader: true
44299
+ }, {
44300
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44301
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44302
+ }],
44303
+ scruntinyDetails: [{
44304
+ title: "BPA_UPLOADED_PLAN_DIAGRAM",
44305
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44306
+ text: "BPA_UPLOADED_PLAN_DXF"
44307
+ }, {
44308
+ title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44309
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44310
+ text: "BPA_SCRUTINY_REPORT_PDF"
44311
+ }]
44312
+ }
44313
+ };
44314
+ var buildingExtractionDetails = {
44315
+ title: "",
44316
+ isScrutinyDetails: true,
44317
+ isBackGroundColor: true,
44318
+ additionalDetails: {
44319
+ values: [{
44320
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44321
+ value: " ",
44322
+ isHeader: true
44323
+ }, {
44324
+ title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44325
+ 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,
44326
+ isUnit: "BPA_SQ_MTRS_LABEL"
44327
+ }, {
44328
+ title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44329
+ 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"
44330
+ }, {
44331
+ title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44332
+ 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,
44333
+ isUnit: "BPA_MTRS_LABEL"
44334
+ }],
44335
+ scruntinyDetails: []
44336
+ }
44337
+ };
44338
+ var demolitionAreaDetails = {
44339
+ title: "",
44340
+ isScrutinyDetails: true,
44341
+ isBackGroundColor: true,
44342
+ additionalDetails: {
44343
+ values: [{
44344
+ title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44345
+ value: " ",
44346
+ isHeader: true
44347
+ }, {
44348
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44349
+ 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,
44350
+ isUnit: "BPA_SQ_MTRS_LABEL"
44351
+ }],
44352
+ scruntinyDetails: []
44353
+ }
44354
+ };
44355
+ var subOccupancyTableDetails = {
44356
+ title: "",
44357
+ isSubOccupancyTable: true,
44358
+ isTitleRepeat: true,
44359
+ additionalDetails: {
44360
+ values: [{
44361
+ title: "BPA_OCC_SUBOCC_HEADER",
44362
+ value: " ",
44363
+ isHeader: true
44364
+ }],
44365
+ subOccupancyTableDetails: [{
44366
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44367
+ value: edcr
44368
+ }, {
44369
+ title: "NO_REPEAT",
44370
+ value: ""
44371
+ }]
44372
+ }
44373
+ };
44374
+ var addressDetails = {
44375
+ title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44376
+ asSectionHeader: true,
44377
+ isCommon: true,
44346
44378
  values: [{
44347
- title: "BPA_OCC_SUBOCC_HEADER",
44348
- value: " ",
44349
- isHeader: true
44350
- }],
44351
- subOccupancyTableDetails: [{
44352
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44353
- value: edcr
44379
+ title: "BPA_DETAILS_PIN_LABEL",
44380
+ 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
44354
44381
  }, {
44355
- title: "NO_REPEAT",
44356
- value: ""
44382
+ title: "BPA_CITY_LABEL",
44383
+ 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
44384
+ }, {
44385
+ title: "BPA_LOC_MOHALLA_LABEL",
44386
+ 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
44387
+ }, {
44388
+ title: "BPA_DETAILS_SRT_NAME_LABEL",
44389
+ 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
44390
+ }, {
44391
+ title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44392
+ 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
44357
44393
  }]
44358
- }
44359
- };
44360
- var addressDetails = {
44361
- title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44362
- asSectionHeader: true,
44363
- isCommon: true,
44364
- values: [{
44365
- title: "BPA_DETAILS_PIN_LABEL",
44366
- 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
44367
- }, {
44368
- title: "BPA_CITY_LABEL",
44369
- 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
44370
- }, {
44371
- title: "BPA_LOC_MOHALLA_LABEL",
44372
- 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
44373
- }, {
44374
- title: "BPA_DETAILS_SRT_NAME_LABEL",
44375
- 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
44376
- }, {
44377
- title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44378
- 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
44379
- }]
44380
- };
44381
- 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;
44382
-
44383
- 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) {
44384
- var _BPA$landInfo8, _BPA$landInfo8$owners;
44394
+ };
44395
+ 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;
44385
44396
 
44386
- 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) {
44387
- if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44388
- });
44389
- }
44397
+ 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) {
44398
+ var _BPA$landInfo8, _BPA$landInfo8$owners;
44390
44399
 
44391
- var ownerDetails = {
44392
- title: "BPA_APPLICANT_DETAILS_HEADER",
44393
- isOwnerDetails: true,
44394
- additionalDetails: {
44395
- 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) {
44396
- return {
44397
- title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44398
- values: [{
44399
- title: "CORE_COMMON_NAME",
44400
- value: owner === null || owner === void 0 ? void 0 : owner.name
44401
- }, {
44402
- title: "BPA_APPLICANT_GENDER_LABEL",
44403
- value: owner === null || owner === void 0 ? void 0 : owner.gender
44404
- }, {
44405
- title: "CORE_COMMON_MOBILE_NUMBER",
44406
- value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44407
- }, {
44408
- title: "BPA_IS_PRIMARY_OWNER_LABEL",
44409
- value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44410
- isNotTranslated: false
44411
- }]
44412
- };
44413
- })
44400
+ 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) {
44401
+ if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44402
+ });
44414
44403
  }
44415
- };
44416
- var documentDetails = {
44417
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44418
- asSectionHeader: true,
44419
- isDocumentDetails: true,
44420
- additionalDetails: {
44421
- obpsDocuments: [{
44422
- title: "",
44423
- values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44424
- var _doc$documentType4;
44425
44404
 
44405
+ var ownerDetails = {
44406
+ title: "BPA_APPLICANT_DETAILS_HEADER",
44407
+ isOwnerDetails: true,
44408
+ additionalDetails: {
44409
+ 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) {
44426
44410
  return {
44427
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44428
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44429
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44430
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44431
- id: doc === null || doc === void 0 ? void 0 : doc.id
44411
+ title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44412
+ values: [{
44413
+ title: "CORE_COMMON_NAME",
44414
+ value: owner === null || owner === void 0 ? void 0 : owner.name
44415
+ }, {
44416
+ title: "BPA_APPLICANT_GENDER_LABEL",
44417
+ value: owner === null || owner === void 0 ? void 0 : owner.gender
44418
+ }, {
44419
+ title: "CORE_COMMON_MOBILE_NUMBER",
44420
+ value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44421
+ }, {
44422
+ title: "BPA_IS_PRIMARY_OWNER_LABEL",
44423
+ value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44424
+ isNotTranslated: false
44425
+ }]
44432
44426
  };
44433
44427
  })
44434
- }]
44435
- }
44436
- };
44437
- var approvalChecks = [];
44438
- var approvalChecksDetails = {};
44439
-
44440
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44441
- var _mdmsRes$BPA2;
44442
-
44443
- mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44444
- var _checklist$conditions;
44445
-
44446
- 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) {
44447
- approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44448
44428
  }
44449
- });
44450
- approvalChecksDetails = {
44451
- title: "",
44452
- isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44429
+ };
44430
+ var documentDetails = {
44431
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44453
44432
  asSectionHeader: true,
44454
- isPermissions: true,
44433
+ isDocumentDetails: true,
44455
44434
  additionalDetails: {
44456
- permissions: approvalChecks
44435
+ obpsDocuments: [{
44436
+ title: "",
44437
+ values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44438
+ var _doc$documentType4, _fileDetails$data5, _fileDetails$data6, _fileDetails$data6$do;
44439
+
44440
+ return {
44441
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44442
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44443
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44444
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44445
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44446
+ url: fileDetails !== null && fileDetails !== void 0 && (_fileDetails$data5 = fileDetails.data) !== null && _fileDetails$data5 !== void 0 && _fileDetails$data5[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data6 = fileDetails.data) === null || _fileDetails$data6 === void 0 ? void 0 : (_fileDetails$data6$do = _fileDetails$data6[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails$data6$do === void 0 ? void 0 : _fileDetails$data6$do.split(',')[0] : ""
44447
+ };
44448
+ })
44449
+ }]
44457
44450
  }
44458
44451
  };
44459
- }
44452
+ var approvalChecks = [];
44453
+ var approvalChecksDetails = {};
44460
44454
 
44461
- if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44462
- var val;
44463
- var i;
44464
- var FieldInspectionData = [];
44465
- 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) {
44466
- if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44467
- title: ob.title,
44468
- additionalDetails: {
44469
- inspectionReport: [],
44470
- values: ob.values
44471
- }
44472
- }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44473
- title: ob.title,
44474
- additionalDetails: {
44475
- isChecklist: true,
44476
- inspectionReport: [],
44477
- values: ob.values
44478
- }
44479
- }]);else {
44480
- var _ob$additionalDetails, _ob$additionalDetails2;
44455
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44456
+ var _mdmsRes$BPA2;
44481
44457
 
44482
- 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);
44483
- improvedDoc.map(function (ob) {
44484
- ob["isNotDuplicate"] = true;
44485
- });
44486
- improvedDoc.map(function (ob, index) {
44487
- val = ob.documentType;
44488
- if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44489
- if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
44458
+ mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44459
+ var _checklist$conditions;
44460
+
44461
+ 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) {
44462
+ approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44490
44463
  }
44491
44464
  });
44492
- FieldInspectionData = [].concat(FieldInspectionData, [{
44493
- title: ob.title,
44465
+ approvalChecksDetails = {
44466
+ title: "",
44467
+ isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44468
+ asSectionHeader: true,
44469
+ isPermissions: true,
44494
44470
  additionalDetails: {
44495
- FIdocuments: [],
44496
- "documents": [{
44497
- values: improvedDoc
44498
- }]
44471
+ permissions: approvalChecks
44499
44472
  }
44500
- }]);
44501
- }
44502
- });
44503
- var fiReports = {
44504
- title: "",
44505
- isFieldInspection: true,
44506
- 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,
44507
- additionalDetails: {
44508
- values: [],
44509
- 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
44473
+ };
44510
44474
  }
44511
- };
44512
44475
 
44513
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44514
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44515
- } else {
44516
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44517
- }
44476
+ if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44477
+ var val;
44478
+ var i;
44479
+ var FieldInspectionData = [];
44480
+ 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) {
44481
+ if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44482
+ title: ob.title,
44483
+ additionalDetails: {
44484
+ inspectionReport: [],
44485
+ values: ob.values
44486
+ }
44487
+ }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44488
+ title: ob.title,
44489
+ additionalDetails: {
44490
+ isChecklist: true,
44491
+ inspectionReport: [],
44492
+ values: ob.values
44493
+ }
44494
+ }]);else {
44495
+ var _ob$additionalDetails, _ob$additionalDetails2;
44496
+
44497
+ 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);
44498
+ improvedDoc.map(function (ob) {
44499
+ ob["isNotDuplicate"] = true;
44500
+ });
44501
+ improvedDoc.map(function (ob, index) {
44502
+ val = ob.documentType;
44503
+ if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44504
+ if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
44505
+ }
44506
+ });
44507
+ FieldInspectionData = [].concat(FieldInspectionData, [{
44508
+ title: ob.title,
44509
+ additionalDetails: {
44510
+ FIdocuments: [],
44511
+ "documents": [{
44512
+ values: improvedDoc
44513
+ }]
44514
+ }
44515
+ }]);
44516
+ }
44517
+ });
44518
+ var fiReports = {
44519
+ title: "",
44520
+ isFieldInspection: true,
44521
+ 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,
44522
+ additionalDetails: {
44523
+ values: [],
44524
+ 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
44525
+ }
44526
+ };
44527
+
44528
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44529
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44530
+ } else {
44531
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44532
+ }
44518
44533
 
44519
- var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44520
- return data;
44534
+ var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44535
+ return data;
44536
+ });
44537
+ return {
44538
+ applicationData: BPA,
44539
+ applicationDetails: bpaFilterDetails,
44540
+ tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44541
+ edcrDetails: edcr,
44542
+ nocData: noc,
44543
+ comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44544
+ businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44545
+ applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44546
+ applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44547
+ };
44521
44548
  });
44522
- return {
44523
- applicationData: BPA,
44524
- applicationDetails: bpaFilterDetails,
44525
- tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44526
- edcrDetails: edcr,
44527
- nocData: noc,
44528
- comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44529
- businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44530
- applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44531
- applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44532
- };
44533
44549
  });
44534
44550
  });
44535
44551
  });
@@ -46161,7 +46177,7 @@ var getDate = function getDate(epochdate) {
46161
46177
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46162
46178
  };
46163
46179
 
46164
- var getAddress = function getAddress(address, t) {
46180
+ var getAddress$1 = function getAddress(address, t) {
46165
46181
  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 : " ");
46166
46182
  };
46167
46183
 
@@ -46178,7 +46194,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
46178
46194
  })[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) {
46179
46195
  return ow.name;
46180
46196
  }).join(","),
46181
- Address: getAddress(properties.filter(function (prop) {
46197
+ Address: getAddress$1(properties.filter(function (prop) {
46182
46198
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46183
46199
  })[0].address, t),
46184
46200
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
@@ -46262,7 +46278,7 @@ var getDate$1 = function getDate(epochdate) {
46262
46278
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46263
46279
  };
46264
46280
 
46265
- var getAddress$1 = function getAddress(address, t) {
46281
+ var getAddress$2 = function getAddress(address, t) {
46266
46282
  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 : " ");
46267
46283
  };
46268
46284
 
@@ -46279,7 +46295,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
46279
46295
  })[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) {
46280
46296
  return ow.name;
46281
46297
  }).join(","),
46282
- Address: getAddress$1(properties.filter(function (prop) {
46298
+ Address: getAddress$2(properties.filter(function (prop) {
46283
46299
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46284
46300
  })[0].address, t),
46285
46301
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {