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

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, _data3, _data3$workflowDocs, _data4, _data4$value, _data4$value$owners, _data4$value$owners$d, _data5, _data5$value, _data5$value$owners, _data5$value$owners$d, _data6, _data6$value, _data6$value$owners, _data6$value$owners$d;
42243
42268
 
42244
42269
  if (data1 === void 0) {
42245
42270
  data1 = {};
@@ -42248,10 +42273,15 @@ 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.workflowDocs) filesArray = (_data3 = data1) === null || _data3 === void 0 ? void 0 : (_data3$workflowDocs = _data3.workflowDocs) === null || _data3$workflowDocs === void 0 ? void 0 : _data3$workflowDocs.map(function (ob) {
42280
+ return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
42281
+ });
42282
+ if ((_data4 = data1) !== null && _data4 !== void 0 && (_data4$value = _data4.value) !== null && _data4$value !== void 0 && (_data4$value$owners = _data4$value.owners) !== null && _data4$value$owners !== void 0 && (_data4$value$owners$d = _data4$value$owners.documents["OwnerPhotoProof"]) !== null && _data4$value$owners$d !== void 0 && _data4$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
42283
+ if ((_data5 = data1) !== null && _data5 !== void 0 && (_data5$value = _data5.value) !== null && _data5$value !== void 0 && (_data5$value$owners = _data5$value.owners) !== null && _data5$value$owners !== void 0 && (_data5$value$owners$d = _data5$value$owners.documents["ProofOfIdentity"]) !== null && _data5$value$owners$d !== void 0 && _data5$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
42284
+ if ((_data6 = data1) !== null && _data6 !== void 0 && (_data6$value = _data6.value) !== null && _data6$value !== void 0 && (_data6$value$owners = _data6$value.owners) !== null && _data6$value$owners !== void 0 && (_data6$value$owners$d = _data6$value$owners.documents["ProofOfOwnership"]) !== null && _data6$value$owners$d !== void 0 && _data6$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
42255
42285
 
42256
42286
  var _useQuery = useQuery(["tlDocuments-" + 1, filesArray], function () {
42257
42287
  return Digit.UploadServices.Filefetch(filesArray, tenant);
@@ -42472,6 +42502,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
42472
42502
  }
42473
42503
  };
42474
42504
 
42505
+ var getAddress = function getAddress(address, t) {
42506
+ return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId)) + ", " + t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId)) + (address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? ", " + address.pincode : " ");
42507
+ };
42508
+
42475
42509
  var TLSearch = {
42476
42510
  all: function (tenantId, filters) {
42477
42511
  if (filters === void 0) {
@@ -42529,68 +42563,14 @@ var TLSearch = {
42529
42563
 
42530
42564
  function _temp3(propertyDetails) {
42531
42565
  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;
42566
+ var _response$tradeLicens2, _response$tradeLicens3, _response$tradeLicens4, _response$tradeLicens5, _response$tradeLicens6, _response$tradeLicens7, _response$tradeLicens8, _response$tradeLicens9, _response$tradeLicens10, _response$tradeLicens11, _response$tradeLicens12, _response$tradeLicens13, _response$tradeLicens14, _propertyDetails$Prop2, _propertyDetails$Prop3, _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7, _propertyDetails$Prop8, _propertyDetails$Prop9, _propertyDetails$Prop10, _response$tradeLicens15, _response$tradeLicens16, _response$tradeLicens17, _response$tradeLicens18, _response$tradeLicens19, _response$tradeLicens20, _response$tradeLicens21, _response$tradeLicens22, _response$tradeLicens23, _response$tradeLicens24, _response$tradeLicens25, _response$tradeLicens26, _response$tradeLicens27, _response$tradeLicens28, _response$tradeLicens29, _response$tradeLicens30, _response$tradeLicens31, _response$tradeLicens32, _response$tradeLicens47, _response$tradeLicens48, _response$tradeLicens49, _response$tradeLicens50, _response$tradeLicens53, _response$tradeLicens54, _response$tradeLicens57, _response$tradeLicens58, _propertyDetails$Prop11, _propertyDetails$Prop12, _response$tradeLicens59;
42533
42567
 
42534
42568
  var propertyAddress = "";
42535
42569
 
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;
42538
-
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;
42570
+ if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
42571
+ var _propertyDetails$Prop;
42553
42572
 
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
- }
42573
+ propertyAddress = getAddress(propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop = propertyDetails.Properties[0]) === null || _propertyDetails$Prop === void 0 ? void 0 : _propertyDetails$Prop.address, t);
42594
42574
  }
42595
42575
 
42596
42576
  var employeeResponse = [];
@@ -42690,16 +42670,16 @@ var TLSearch = {
42690
42670
  title: "PT_DETAILS",
42691
42671
  values: [{
42692
42672
  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"
42673
+ value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop2 = propertyDetails.Properties) === null || _propertyDetails$Prop2 === void 0 ? void 0 : (_propertyDetails$Prop3 = _propertyDetails$Prop2[0]) === null || _propertyDetails$Prop3 === void 0 ? void 0 : _propertyDetails$Prop3.propertyId) || "NA"
42694
42674
  }, {
42695
42675
  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"
42676
+ value: (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop4 = propertyDetails.Properties) === null || _propertyDetails$Prop4 === void 0 ? void 0 : (_propertyDetails$Prop5 = _propertyDetails$Prop4[0]) === null || _propertyDetails$Prop5 === void 0 ? void 0 : (_propertyDetails$Prop6 = _propertyDetails$Prop5.owners[0]) === null || _propertyDetails$Prop6 === void 0 ? void 0 : _propertyDetails$Prop6.name) || "NA"
42697
42677
  }, {
42698
42678
  title: "PROPERTY_ADDRESS",
42699
42679
  value: propertyAddress || "NA"
42700
42680
  }, {
42701
42681
  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),
42682
+ to: "/digit-ui/employee/commonpt/view-property?propertyId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop7 = propertyDetails.Properties) === null || _propertyDetails$Prop7 === void 0 ? void 0 : (_propertyDetails$Prop8 = _propertyDetails$Prop7[0]) === null || _propertyDetails$Prop8 === void 0 ? void 0 : _propertyDetails$Prop8.propertyId) + "&tenantId=" + (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop9 = propertyDetails.Properties) === null || _propertyDetails$Prop9 === void 0 ? void 0 : (_propertyDetails$Prop10 = _propertyDetails$Prop9[0]) === null || _propertyDetails$Prop10 === void 0 ? void 0 : _propertyDetails$Prop10.tenantId) + "&from=TL_APPLICATION_DETAILS_LABEL",
42703
42683
  value: "",
42704
42684
  isLink: true
42705
42685
  }]
@@ -42843,8 +42823,8 @@ var TLSearch = {
42843
42823
  response && employeeResponse.push(tradedetails);
42844
42824
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens57 = response.tradeLicenseDetail) === null || _response$tradeLicens57 === void 0 ? void 0 : _response$tradeLicens57.tradeUnits) && employeeResponse.push(tradeUnits);
42845
42825
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens58 = response.tradeLicenseDetail) === null || _response$tradeLicens58 === void 0 ? void 0 : _response$tradeLicens58.accessories) && employeeResponse.push(accessories);
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);
42826
+ (propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop11 = propertyDetails.Properties) === null || _propertyDetails$Prop11 === void 0 ? void 0 : _propertyDetails$Prop11.length) > 0 && employeeResponse.push(PropertyDetail);
42827
+ response && !((propertyDetails === null || propertyDetails === void 0 ? void 0 : (_propertyDetails$Prop12 = propertyDetails.Properties) === null || _propertyDetails$Prop12 === void 0 ? void 0 : _propertyDetails$Prop12.length) > 0) && employeeResponse.push(tradeAddress);
42848
42828
  (response === null || response === void 0 ? void 0 : (_response$tradeLicens59 = response.tradeLicenseDetail) === null || _response$tradeLicens59 === void 0 ? void 0 : _response$tradeLicens59.owners) && employeeResponse.push(owners);
42849
42829
  return {
42850
42830
  tenantId: response.tenantId,
@@ -43880,7 +43860,7 @@ var OBPSService = {
43880
43860
  isEmployee: true
43881
43861
  })).then(function (paymentRes) {
43882
43862
  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;
43863
+ var _License$tradeLicense, _License$tradeLicense2, _mdmsRes$StakeholderR, _mdmsRes$StakeholderR2, _License$tradeLicense8, _License$tradeLicense9;
43884
43864
 
43885
43865
  if (License !== null && License !== void 0 && (_License$tradeLicense = License.tradeLicenseDetail) !== null && _License$tradeLicense !== void 0 && (_License$tradeLicense2 = _License$tradeLicense.applicationDocuments) !== null && _License$tradeLicense2 !== void 0 && _License$tradeLicense2.length && (mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$StakeholderR = mdmsRes.StakeholderRegistraition) === null || _mdmsRes$StakeholderR === void 0 ? void 0 : (_mdmsRes$StakeholderR2 = _mdmsRes$StakeholderR.TradeTypetoRoleMapping) === null || _mdmsRes$StakeholderR2 === void 0 ? void 0 : _mdmsRes$StakeholderR2.length) > 0) {
43886
43866
  var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
@@ -43902,103 +43882,111 @@ var OBPSService = {
43902
43882
  });
43903
43883
  }
43904
43884
 
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"
43885
+ var appDocumentFileStoreIds = License === null || License === void 0 ? void 0 : (_License$tradeLicense8 = License.tradeLicenseDetail) === null || _License$tradeLicense8 === void 0 ? void 0 : (_License$tradeLicense9 = _License$tradeLicense8.applicationDocuments) === null || _License$tradeLicense9 === void 0 ? void 0 : _License$tradeLicense9.map(function (appDoc) {
43886
+ return appDoc === null || appDoc === void 0 ? void 0 : appDoc.fileStoreId;
43887
+ });
43888
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
43889
+ var _License$tradeLicense10, _License$tradeLicense11, _License$tradeLicense12, _License$tradeLicense13, _License$tradeLicense14, _License$tradeLicense15, _License$tradeLicense16, _License$tradeLicense17, _License$tradeLicense18, _License$tradeLicense19, _License$tradeLicense20, _License$tradeLicense21, _License$tradeLicense22, _License$tradeLicense23, _License$tradeLicense24, _License$tradeLicense25, _License$tradeLicense26, _License$tradeLicense27, _License$tradeLicense28, _License$tradeLicense29, _License$tradeLicense30, _License$tradeLicense31, _License$tradeLicense32, _License$tradeLicense33, _License$tradeLicense34, _License$tradeLicense35, _License$tradeLicense36, _License$tradeLicense37, _License$tradeLicense38, _License$tradeLicense39, _License$tradeLicense40, _License$tradeLicense41, _License$tradeLicense42, _License$tradeLicense43, _License$tradeLicense44, _License$tradeLicense45, _paymentRes$Payments, _paymentRes$Payments2, _paymentRes$Payments3, _paymentRes$Payments4, _paymentRes$Payments5, _ref;
43890
+
43891
+ var details = [{
43892
+ title: " ",
43893
+ values: [{
43894
+ title: "BPA_APPLICATION_NUMBER_LABEL",
43895
+ value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43896
+ }]
43897
+ }, License !== null && License !== void 0 && (_License$tradeLicense10 = License.tradeLicenseDetail) !== null && _License$tradeLicense10 !== void 0 && (_License$tradeLicense11 = _License$tradeLicense10.tradeUnits) !== null && _License$tradeLicense11 !== void 0 && (_License$tradeLicense12 = _License$tradeLicense11[0]) !== null && _License$tradeLicense12 !== void 0 && _License$tradeLicense12.tradeType.includes("ARCHITECT") ? {
43898
+ title: "BPA_LICENSE_DETAILS_LABEL",
43899
+ asSectionHeader: true,
43900
+ values: [{
43901
+ title: "BPA_LICENSE_TYPE",
43902
+ value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense13 = License.tradeLicenseDetail) === null || _License$tradeLicense13 === void 0 ? void 0 : (_License$tradeLicense14 = _License$tradeLicense13.tradeUnits) === null || _License$tradeLicense14 === void 0 ? void 0 : (_License$tradeLicense15 = _License$tradeLicense14[0]) === null || _License$tradeLicense15 === void 0 ? void 0 : (_License$tradeLicense16 = _License$tradeLicense15.tradeType) === null || _License$tradeLicense16 === void 0 ? void 0 : _License$tradeLicense16.split(".")[0]) || "NA"
43903
+ }, {
43904
+ title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43905
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense17 = License.tradeLicenseDetail) === null || _License$tradeLicense17 === void 0 ? void 0 : (_License$tradeLicense18 = _License$tradeLicense17.additionalDetail) === null || _License$tradeLicense18 === void 0 ? void 0 : _License$tradeLicense18.counsilForArchNo) || "NA"
43906
+ }]
43907
+ } : {
43908
+ title: "BPA_LICENSE_DETAILS_LABEL",
43909
+ asSectionHeader: true,
43910
+ values: [{
43911
+ title: "BPA_LICENSE_TYPE",
43912
+ value: "TRADELICENSE_TRADETYPE_" + (License === null || License === void 0 ? void 0 : (_License$tradeLicense19 = License.tradeLicenseDetail) === null || _License$tradeLicense19 === void 0 ? void 0 : (_License$tradeLicense20 = _License$tradeLicense19.tradeUnits) === null || _License$tradeLicense20 === void 0 ? void 0 : (_License$tradeLicense21 = _License$tradeLicense20[0]) === null || _License$tradeLicense21 === void 0 ? void 0 : (_License$tradeLicense22 = _License$tradeLicense21.tradeType) === null || _License$tradeLicense22 === void 0 ? void 0 : _License$tradeLicense22.split(".")[0]) || "NA"
43913
+ }]
43940
43914
  }, {
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"
43915
+ title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43916
+ asSectionHeader: true,
43917
+ values: [{
43918
+ title: "BPA_APPLICANT_NAME_LABEL",
43919
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense23 = License.tradeLicenseDetail) === null || _License$tradeLicense23 === void 0 ? void 0 : (_License$tradeLicense24 = _License$tradeLicense23.owners) === null || _License$tradeLicense24 === void 0 ? void 0 : (_License$tradeLicense25 = _License$tradeLicense24[0]) === null || _License$tradeLicense25 === void 0 ? void 0 : _License$tradeLicense25.name) || "NA"
43920
+ }, {
43921
+ title: "BPA_APPLICANT_GENDER_LABEL",
43922
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense26 = License.tradeLicenseDetail) === null || _License$tradeLicense26 === void 0 ? void 0 : (_License$tradeLicense27 = _License$tradeLicense26.owners) === null || _License$tradeLicense27 === void 0 ? void 0 : (_License$tradeLicense28 = _License$tradeLicense27[0]) === null || _License$tradeLicense28 === void 0 ? void 0 : _License$tradeLicense28.gender) || "NA"
43923
+ }, {
43924
+ title: "BPA_OWNER_MOBILE_NO_LABEL",
43925
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense29 = License.tradeLicenseDetail) === null || _License$tradeLicense29 === void 0 ? void 0 : (_License$tradeLicense30 = _License$tradeLicense29.owners) === null || _License$tradeLicense30 === void 0 ? void 0 : (_License$tradeLicense31 = _License$tradeLicense30[0]) === null || _License$tradeLicense31 === void 0 ? void 0 : _License$tradeLicense31.mobileNumber) || "NA"
43926
+ }, {
43927
+ title: "BPA_APPLICANT_EMAIL_LABEL",
43928
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense32 = License.tradeLicenseDetail) === null || _License$tradeLicense32 === void 0 ? void 0 : (_License$tradeLicense33 = _License$tradeLicense32.owners) === null || _License$tradeLicense33 === void 0 ? void 0 : (_License$tradeLicense34 = _License$tradeLicense33[0]) === null || _License$tradeLicense34 === void 0 ? void 0 : _License$tradeLicense34.emailId) || "NA"
43929
+ }, {
43930
+ title: "BPA_APPLICANT_PAN_NO",
43931
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense35 = License.tradeLicenseDetail) === null || _License$tradeLicense35 === void 0 ? void 0 : (_License$tradeLicense36 = _License$tradeLicense35.owners) === null || _License$tradeLicense36 === void 0 ? void 0 : (_License$tradeLicense37 = _License$tradeLicense36[0]) === null || _License$tradeLicense37 === void 0 ? void 0 : _License$tradeLicense37.pan) || "NA"
43932
+ }]
43943
43933
  }, {
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
43934
  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
- })
43935
+ asSectionHeader: true,
43936
+ values: [{
43937
+ title: "BPA_PERMANANT_ADDRESS_LABEL",
43938
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense38 = License.tradeLicenseDetail) === null || _License$tradeLicense38 === void 0 ? void 0 : (_License$tradeLicense39 = _License$tradeLicense38.owners) === null || _License$tradeLicense39 === void 0 ? void 0 : (_License$tradeLicense40 = _License$tradeLicense39[0]) === null || _License$tradeLicense40 === void 0 ? void 0 : _License$tradeLicense40.permanentAddress) || "NA"
43979
43939
  }]
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: [],
43940
+ }, {
43941
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43942
+ asSectionHeader: true,
43985
43943
  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
- };
43944
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43945
+ value: (License === null || License === void 0 ? void 0 : (_License$tradeLicense41 = License.tradeLicenseDetail) === null || _License$tradeLicense41 === void 0 ? void 0 : (_License$tradeLicense42 = _License$tradeLicense41.owners) === null || _License$tradeLicense42 === void 0 ? void 0 : (_License$tradeLicense43 = _License$tradeLicense42[0]) === null || _License$tradeLicense43 === void 0 ? void 0 : _License$tradeLicense43.correspondenceAddress) || "NA"
43946
+ }]
43947
+ }, {
43948
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
43949
+ asSectionHeader: true,
43950
+ additionalDetails: {
43951
+ documentsWithUrl: [{
43952
+ title: "",
43953
+ values: License === null || License === void 0 ? void 0 : (_License$tradeLicense44 = License.tradeLicenseDetail) === null || _License$tradeLicense44 === void 0 ? void 0 : (_License$tradeLicense45 = _License$tradeLicense44.applicationDocuments) === null || _License$tradeLicense45 === void 0 ? void 0 : _License$tradeLicense45.map(function (doc) {
43954
+ var _doc$documentType, _fileDetails$data$doc;
43955
+
43956
+ return {
43957
+ title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43958
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43959
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43960
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43961
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
43962
+ docInfo: doc === null || doc === void 0 ? void 0 : doc.info,
43963
+ url: fileDetails !== null && fileDetails !== void 0 && fileDetails.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId] ? fileDetails === null || fileDetails === void 0 ? void 0 : (_fileDetails$data$doc = fileDetails.data[doc === null || doc === void 0 ? void 0 : doc.fileStoreId]) === null || _fileDetails$data$doc === void 0 ? void 0 : _fileDetails$data$doc.split(',')[0] : ""
43964
+ };
43965
+ })
43966
+ }]
43967
+ }
43968
+ }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43969
+ title: "BPA_FEE_DETAILS_LABEL",
43970
+ additionalDetails: {
43971
+ inspectionReport: [],
43972
+ values: [{
43973
+ title: "BPAREG_FEES",
43974
+ value: /*#__PURE__*/React.createElement("span", null, "\u20B9", paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments2 = paymentRes.Payments) === null || _paymentRes$Payments2 === void 0 ? void 0 : (_paymentRes$Payments3 = _paymentRes$Payments2[0]) === null || _paymentRes$Payments3 === void 0 ? void 0 : _paymentRes$Payments3.totalAmountPaid)
43975
+ }, (_ref = {
43976
+ title: "BPA_STATUS_LABEL",
43977
+ isTransLate: true,
43978
+ isStatus: true,
43979
+ value: paymentRes !== null && paymentRes !== void 0 && (_paymentRes$Payments4 = paymentRes.Payments) !== null && _paymentRes$Payments4 !== void 0 && (_paymentRes$Payments5 = _paymentRes$Payments4[0]) !== null && _paymentRes$Payments5 !== void 0 && _paymentRes$Payments5.totalAmountPaid ? "WF_BPA_PAID" : "NA"
43980
+ }, _ref["isTransLate"] = true, _ref)]
43981
+ }
43982
+ }];
43983
+ return {
43984
+ applicationData: License,
43985
+ applicationDetails: details,
43986
+ tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
43987
+ payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
43988
+ };
43989
+ });
44002
43990
  });
44003
43991
  });
44004
43992
  });
@@ -44009,16 +43997,27 @@ var OBPSService = {
44009
43997
  BPADetailsPage: function (tenantId, filters) {
44010
43998
  try {
44011
43999
  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;
44000
+ var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _response$BPA5, _response$BPA5$, _response$BPA5$$addit;
44013
44001
 
44014
- if (!(response !== null && response !== void 0 && (_response$BPA = response.BPA) !== null && _response$BPA !== void 0 && _response$BPA.length)) {
44002
+ var appDocumentFileStoreIds = response === null || response === void 0 ? void 0 : (_response$BPA = response.BPA) === null || _response$BPA === void 0 ? void 0 : (_response$BPA$ = _response$BPA[0]) === null || _response$BPA$ === void 0 ? void 0 : (_response$BPA$$docume = _response$BPA$.documents) === null || _response$BPA$$docume === void 0 ? void 0 : _response$BPA$$docume.map(function (docId) {
44003
+ return docId.fileStoreId;
44004
+ });
44005
+ response === null || response === void 0 ? void 0 : (_response$BPA2 = response.BPA) === null || _response$BPA2 === void 0 ? void 0 : (_response$BPA2$ = _response$BPA2[0]) === null || _response$BPA2$ === void 0 ? void 0 : (_response$BPA2$$addit = _response$BPA2$.additionalDetails) === null || _response$BPA2$$addit === void 0 ? void 0 : (_response$BPA2$$addit2 = _response$BPA2$$addit.fieldinspection_pending) === null || _response$BPA2$$addit2 === void 0 ? void 0 : _response$BPA2$$addit2.map(function (fiData) {
44006
+ var _fiData$docs;
44007
+
44008
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
44009
+ appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
44010
+ });
44011
+ });
44012
+
44013
+ if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
44015
44014
  return;
44016
44015
  }
44017
44016
 
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"));
44017
+ sessionStorage.setItem("BPA_ARCHITECT_NAME", JSON.stringify(response !== null && response !== void 0 && (_response$BPA4 = response.BPA) !== null && _response$BPA4 !== void 0 && (_response$BPA4$ = _response$BPA4[0]) !== null && _response$BPA4$ !== void 0 && (_response$BPA4$$addit = _response$BPA4$.additionalDetails) !== null && _response$BPA4$$addit !== void 0 && _response$BPA4$$addit.typeOfArchitect ? response === null || response === void 0 ? void 0 : (_response$BPA5 = response.BPA) === null || _response$BPA5 === void 0 ? void 0 : (_response$BPA5$ = _response$BPA5[0]) === null || _response$BPA5$ === void 0 ? void 0 : (_response$BPA5$$addit = _response$BPA5$.additionalDetails) === null || _response$BPA5$$addit === void 0 ? void 0 : _response$BPA5$$addit.typeOfArchitect : "ARCHITECT"));
44019
44018
 
44020
- var _response$BPA4 = response === null || response === void 0 ? void 0 : response.BPA,
44021
- BPA = _response$BPA4[0];
44019
+ var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
44020
+ BPA = _response$BPA6[0];
44022
44021
 
44023
44022
  return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
44024
44023
  edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
@@ -44045,491 +44044,511 @@ var OBPSService = {
44045
44044
  ocdcrNumber: BPA !== null && BPA !== void 0 && BPA.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA = bpaResponse.BPA) === null || _bpaResponse$BPA === void 0 ? void 0 : (_bpaResponse$BPA$ = _bpaResponse$BPA[0]) === null || _bpaResponse$BPA$ === void 0 ? void 0 : _bpaResponse$BPA$.edcrNumber,
44046
44045
  edcrNumber: bpaResponse !== null && bpaResponse !== void 0 && (_bpaResponse$BPA2 = bpaResponse.BPA) !== null && _bpaResponse$BPA2 !== void 0 && (_bpaResponse$BPA2$ = _bpaResponse$BPA2[0]) !== null && _bpaResponse$BPA2$ !== void 0 && _bpaResponse$BPA2$.edcrNumber.includes("OCDCR") ? BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber : bpaResponse === null || bpaResponse === void 0 ? void 0 : (_bpaResponse$BPA3 = bpaResponse.BPA) === null || _bpaResponse$BPA3 === void 0 ? void 0 : (_bpaResponse$BPA3$ = _bpaResponse$BPA3[0]) === null || _bpaResponse$BPA3$ === void 0 ? void 0 : _bpaResponse$BPA3$.edcrNumber
44047
44046
  };
44047
+ return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44048
+ noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails) {
44049
+ var _nocDetails$documents;
44048
44050
 
44049
- function ConvertEpochToValidityDate(dateEpoch) {
44050
- if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44051
- return "NA";
44052
- }
44051
+ nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (nocDoc) {
44052
+ appDocumentFileStoreIds.push(nocDoc === null || nocDoc === void 0 ? void 0 : nocDoc.fileStoreId);
44053
+ });
44054
+ });
44055
+ return Promise.resolve(UploadServices.Filefetch(appDocumentFileStoreIds, Digit.ULBService.getStateId())).then(function (fileDetails) {
44056
+ 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
44057
 
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
- }
44058
+ function ConvertEpochToValidityDate(dateEpoch) {
44059
+ if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44060
+ return "NA";
44061
+ }
44062
44062
 
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;
44063
+ var dateFromApi = new Date(dateEpoch);
44064
+ var month = dateFromApi.getMonth() + 1;
44065
+ var day = dateFromApi.getDate();
44066
+ var year = dateFromApi.getFullYear() - 3;
44067
+ month = (month > 9 ? "" : "0") + month;
44068
+ day = (day > 9 ? "" : "0") + day;
44069
+ return day + "/" + month + "/" + year;
44070
+ }
44065
44071
 
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;
44072
+ 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) {
44073
+ var _fiData$docs2;
44068
44074
 
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;
44075
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs2 = fiData.docs) === null || _fiData$docs2 === void 0 ? void 0 : _fiData$docs2.forEach(function (fiDoc) {
44076
+ var _fileDetails$data$fiD;
44098
44077
 
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
44078
+ 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
44079
  });
44139
44080
  });
44140
- inspectionReport.push({
44141
- title: "BPA_CHECK_LIST_DETAILS",
44142
- asSectionHeader: true,
44143
- values: checklist
44081
+ var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44082
+ var _nocDetails$additiona, _nocDetails$additiona2, _nocDetails$additiona3, _nocDetails$auditDeta, _nocDetails$documents2;
44083
+
44084
+ return {
44085
+ title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44086
+ values: [{
44087
+ title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44088
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44089
+ isNotTranslated: true
44090
+ }, {
44091
+ title: "BPA_NOC_STATUS",
44092
+ value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44093
+ field: "STATUS"
44094
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44095
+ title: "BPA_SUDMITTED_ON_LABEL",
44096
+ 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",
44097
+ isNotTranslated: true
44098
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44099
+ title: "BPA_APPROVAL_NUMBER_LABEL",
44100
+ value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44101
+ isNotTranslated: true
44102
+ }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44103
+ title: "BPA_APPROVED_REJECTED_ON_LABEL",
44104
+ 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",
44105
+ isNotTranslated: true
44106
+ }],
44107
+ additionalDetails: {
44108
+ data: nocDetails,
44109
+ noc: [{
44110
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44111
+ values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents2 = nocDetails.documents) === null || _nocDetails$documents2 === void 0 ? void 0 : _nocDetails$documents2.map(function (doc) {
44112
+ var _doc$documentType2, _fileDetails$data, _fileDetails$data2, _fileDetails$data2$do;
44113
+
44114
+ return {
44115
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44116
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44117
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44118
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44119
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44120
+ 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] : ""
44121
+ };
44122
+ })
44123
+ }]
44124
+ }
44125
+ };
44144
44126
  });
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
- })
44127
+ var inspectionReport = [];
44128
+ var checklist = [];
44129
+ 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) {
44130
+ return ob.docs && ob.docs.length > 0;
44131
+ }).map(function (ob, ind) {
44132
+ var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44133
+
44134
+ checklist = [];
44135
+ inspectionReport.push({
44136
+ title: "BPA_FI_REPORT",
44137
+ asSectionHeader: true,
44138
+ values: [{
44139
+ title: "BPA_FI_DATE_LABEL",
44140
+ 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
44141
+ }, {
44142
+ title: "BPA_FI_TIME_LABEL",
44143
+ value: ob.time
44162
44144
  }]
44163
- }
44145
+ });
44146
+ ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44147
+ checklist.push({
44148
+ title: q.question,
44149
+ value: q.value
44150
+ });
44151
+ checklist.push({
44152
+ title: "BPA_ENTER_REMARKS",
44153
+ value: q.remarks
44154
+ });
44155
+ });
44156
+ inspectionReport.push({
44157
+ title: "BPA_CHECK_LIST_DETAILS",
44158
+ asSectionHeader: true,
44159
+ values: checklist
44160
+ });
44161
+ inspectionReport.push({
44162
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44163
+ asSectionHeader: true,
44164
+ additionalDetails: {
44165
+ obpsDocuments: [{
44166
+ title: "",
44167
+ values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44168
+ var _doc$documentType3, _fileDetails$data3, _fileDetails$data4, _fileDetails$data4$do;
44169
+
44170
+ return {
44171
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44172
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44173
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44174
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44175
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44176
+ 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] : ""
44177
+ };
44178
+ })
44179
+ }]
44180
+ }
44181
+ });
44164
44182
  });
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$;
44183
+ var details = [];
44184
+ var applicationDetailsInfo = {
44185
+ title: " ",
44186
+ isCommon: true,
44187
+ values: [{
44188
+ title: "BPA_APPLICATION_NUMBER_LABEL",
44189
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44190
+ }]
44191
+ };
44178
44192
 
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
- }
44193
+ if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44194
+ var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44186
44195
 
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)
44196
+ applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44197
+ title: "BPA_PERMIT_APP_NUMBER",
44198
+ 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),
44199
+ 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,
44200
+ isLink: true
44201
+ }]);
44201
44202
  }
44202
- };
44203
- if (permitcondn.length == 0) PermitConditions = {};
44204
44203
 
44205
- if (riskType == "LOW" && permitcondn.length > 0) {
44206
- permitcondn = [];
44207
- PermitConditions = {};
44208
- }
44204
+ var permitcondn = [];
44205
+ (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) {
44206
+ permitcondn.push({
44207
+ title: index + 1 + ". " + ob,
44208
+ value: ""
44209
+ });
44210
+ }));
44211
+ var PermitConditions = {
44212
+ title: "BPA_PERMIT_CONDITIONS",
44213
+ isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44214
+ isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44215
+ additionalDetails: {
44216
+ inspectionReport: [],
44217
+ permit: [].concat(permitcondn)
44218
+ }
44219
+ };
44220
+ if (permitcondn.length == 0) PermitConditions = {};
44209
44221
 
44210
- if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44211
- var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail6, _BPA$additionalDetail7, _BPA$additionalDetail8;
44222
+ if (riskType == "LOW" && permitcondn.length > 0) {
44223
+ permitcondn = [];
44224
+ PermitConditions = {};
44225
+ }
44212
44226
 
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
- }
44227
+ if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44228
+ var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
44222
44229
 
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: {
44230
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44231
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44232
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44233
+ });
44234
+ applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44235
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44236
+ 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"
44237
+ });
44238
+ }
44239
+
44240
+ var basicDetails = {
44241
+ title: "BPA_BASIC_DETAILS_TITLE",
44242
+ asSectionHeader: true,
44243
+ isInsert: true,
44244
+ isCommon: true,
44281
44245
  values: [{
44282
- title: "BPA_EDCR_DETAILS",
44283
- value: " ",
44284
- isHeader: true
44246
+ title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44247
+ 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') : ''
44248
+ }, {
44249
+ title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44250
+ value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44285
44251
  }, {
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"
44252
+ title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44253
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44293
44254
  }, {
44294
- title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44295
- value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44296
- text: "BPA_SCRUTINY_REPORT_PDF"
44255
+ title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44256
+ 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
44257
+ }, {
44258
+ title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44259
+ value: "WF_BPA_" + riskType,
44260
+ isInsert: true
44261
+ }, {
44262
+ title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44263
+ 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
44264
  }]
44298
- }
44299
- };
44300
- var buildingExtractionDetails = {
44301
- title: "",
44302
- isScrutinyDetails: true,
44303
- isBackGroundColor: true,
44304
- additionalDetails: {
44265
+ };
44266
+ var plotDetails = {
44267
+ title: "BPA_PLOT_DETAILS_TITLE",
44268
+ asSectionHeader: true,
44269
+ isCommon: true,
44305
44270
  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
44271
+ title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44272
+ 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),
44273
+ isNotTranslated: true,
44274
+ isUnit: "BPA_SQ_FT_LABEL"
44309
44275
  }, {
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"
44276
+ title: "BPA_PLOT_NUMBER_LABEL",
44277
+ 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",
44278
+ isNotTranslated: true
44313
44279
  }, {
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"
44280
+ title: "BPA_KHATHA_NUMBER_LABEL",
44281
+ 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",
44282
+ isNotTranslated: true
44316
44283
  }, {
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
44284
+ title: "BPA_HOLDING_NUMBER_LABEL",
44285
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.holdingNo) || "NA",
44286
+ isNotTranslated: true
44333
44287
  }, {
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: {
44288
+ title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44289
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
44290
+ isNotTranslated: true
44291
+ }]
44292
+ };
44293
+ var scrutinyDetails = {
44294
+ title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44295
+ isScrutinyDetails: true,
44296
+ isBackGroundColor: true,
44297
+ additionalDetails: {
44298
+ values: [{
44299
+ title: "BPA_EDCR_DETAILS",
44300
+ value: " ",
44301
+ isHeader: true
44302
+ }, {
44303
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44304
+ value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44305
+ }],
44306
+ scruntinyDetails: [{
44307
+ title: "BPA_UPLOADED_PLAN_DIAGRAM",
44308
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44309
+ text: "BPA_UPLOADED_PLAN_DXF"
44310
+ }, {
44311
+ title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44312
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44313
+ text: "BPA_SCRUTINY_REPORT_PDF"
44314
+ }]
44315
+ }
44316
+ };
44317
+ var buildingExtractionDetails = {
44318
+ title: "",
44319
+ isScrutinyDetails: true,
44320
+ isBackGroundColor: true,
44321
+ additionalDetails: {
44322
+ values: [{
44323
+ title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44324
+ value: " ",
44325
+ isHeader: true
44326
+ }, {
44327
+ title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44328
+ 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,
44329
+ isUnit: "BPA_SQ_MTRS_LABEL"
44330
+ }, {
44331
+ title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44332
+ 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"
44333
+ }, {
44334
+ title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44335
+ 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,
44336
+ isUnit: "BPA_MTRS_LABEL"
44337
+ }],
44338
+ scruntinyDetails: []
44339
+ }
44340
+ };
44341
+ var demolitionAreaDetails = {
44342
+ title: "",
44343
+ isScrutinyDetails: true,
44344
+ isBackGroundColor: true,
44345
+ additionalDetails: {
44346
+ values: [{
44347
+ title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44348
+ value: " ",
44349
+ isHeader: true
44350
+ }, {
44351
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44352
+ 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,
44353
+ isUnit: "BPA_SQ_MTRS_LABEL"
44354
+ }],
44355
+ scruntinyDetails: []
44356
+ }
44357
+ };
44358
+ var subOccupancyTableDetails = {
44359
+ title: "",
44360
+ isSubOccupancyTable: true,
44361
+ isTitleRepeat: true,
44362
+ additionalDetails: {
44363
+ values: [{
44364
+ title: "BPA_OCC_SUBOCC_HEADER",
44365
+ value: " ",
44366
+ isHeader: true
44367
+ }],
44368
+ subOccupancyTableDetails: [{
44369
+ title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44370
+ value: edcr
44371
+ }, {
44372
+ title: "NO_REPEAT",
44373
+ value: ""
44374
+ }]
44375
+ }
44376
+ };
44377
+ var addressDetails = {
44378
+ title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44379
+ asSectionHeader: true,
44380
+ isCommon: true,
44346
44381
  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
44382
+ title: "BPA_DETAILS_PIN_LABEL",
44383
+ 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
44384
  }, {
44355
- title: "NO_REPEAT",
44356
- value: ""
44385
+ title: "BPA_CITY_LABEL",
44386
+ 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
44387
+ }, {
44388
+ title: "BPA_LOC_MOHALLA_LABEL",
44389
+ 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
44390
+ }, {
44391
+ title: "BPA_DETAILS_SRT_NAME_LABEL",
44392
+ 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
44393
+ }, {
44394
+ title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44395
+ 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
44396
  }]
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;
44397
+ };
44398
+ 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
44399
 
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
- }
44400
+ 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) {
44401
+ var _BPA$landInfo8, _BPA$landInfo8$owners;
44390
44402
 
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
- })
44403
+ 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) {
44404
+ if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44405
+ });
44414
44406
  }
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
44407
 
44408
+ var ownerDetails = {
44409
+ title: "BPA_APPLICANT_DETAILS_HEADER",
44410
+ isOwnerDetails: true,
44411
+ additionalDetails: {
44412
+ 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
44413
  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
44414
+ title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44415
+ values: [{
44416
+ title: "CORE_COMMON_NAME",
44417
+ value: owner === null || owner === void 0 ? void 0 : owner.name
44418
+ }, {
44419
+ title: "BPA_APPLICANT_GENDER_LABEL",
44420
+ value: owner === null || owner === void 0 ? void 0 : owner.gender
44421
+ }, {
44422
+ title: "CORE_COMMON_MOBILE_NUMBER",
44423
+ value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44424
+ }, {
44425
+ title: "BPA_IS_PRIMARY_OWNER_LABEL",
44426
+ value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44427
+ isNotTranslated: false
44428
+ }]
44432
44429
  };
44433
44430
  })
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
44431
  }
44449
- });
44450
- approvalChecksDetails = {
44451
- title: "",
44452
- isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44432
+ };
44433
+ var documentDetails = {
44434
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44453
44435
  asSectionHeader: true,
44454
- isPermissions: true,
44436
+ isDocumentDetails: true,
44455
44437
  additionalDetails: {
44456
- permissions: approvalChecks
44438
+ obpsDocuments: [{
44439
+ title: "",
44440
+ values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44441
+ var _doc$documentType4, _fileDetails$data5, _fileDetails$data6, _fileDetails$data6$do;
44442
+
44443
+ return {
44444
+ title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44445
+ documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44446
+ documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44447
+ fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44448
+ id: doc === null || doc === void 0 ? void 0 : doc.id,
44449
+ 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] : ""
44450
+ };
44451
+ })
44452
+ }]
44457
44453
  }
44458
44454
  };
44459
- }
44455
+ var approvalChecks = [];
44456
+ var approvalChecksDetails = {};
44460
44457
 
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;
44458
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44459
+ var _mdmsRes$BPA2;
44481
44460
 
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;
44461
+ mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44462
+ var _checklist$conditions;
44463
+
44464
+ 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) {
44465
+ approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44490
44466
  }
44491
44467
  });
44492
- FieldInspectionData = [].concat(FieldInspectionData, [{
44493
- title: ob.title,
44468
+ approvalChecksDetails = {
44469
+ title: "",
44470
+ isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44471
+ asSectionHeader: true,
44472
+ isPermissions: true,
44494
44473
  additionalDetails: {
44495
- FIdocuments: [],
44496
- "documents": [{
44497
- values: improvedDoc
44498
- }]
44474
+ permissions: approvalChecks
44499
44475
  }
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
44476
+ };
44510
44477
  }
44511
- };
44512
44478
 
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
- }
44479
+ if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44480
+ var val;
44481
+ var i;
44482
+ var FieldInspectionData = [];
44483
+ 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) {
44484
+ if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44485
+ title: ob.title,
44486
+ additionalDetails: {
44487
+ inspectionReport: [],
44488
+ values: ob.values
44489
+ }
44490
+ }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44491
+ title: ob.title,
44492
+ additionalDetails: {
44493
+ isChecklist: true,
44494
+ inspectionReport: [],
44495
+ values: ob.values
44496
+ }
44497
+ }]);else {
44498
+ var _ob$additionalDetails, _ob$additionalDetails2;
44499
+
44500
+ 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);
44501
+ improvedDoc.map(function (ob) {
44502
+ ob["isNotDuplicate"] = true;
44503
+ });
44504
+ improvedDoc.map(function (ob, index) {
44505
+ val = ob.documentType;
44506
+ if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44507
+ if (val === improvedDoc[i].documentType) improvedDoc[i].isNotDuplicate = false;
44508
+ }
44509
+ });
44510
+ FieldInspectionData = [].concat(FieldInspectionData, [{
44511
+ title: ob.title,
44512
+ additionalDetails: {
44513
+ FIdocuments: [],
44514
+ "documents": [{
44515
+ values: improvedDoc
44516
+ }]
44517
+ }
44518
+ }]);
44519
+ }
44520
+ });
44521
+ var fiReports = {
44522
+ title: "",
44523
+ isFieldInspection: true,
44524
+ 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,
44525
+ additionalDetails: {
44526
+ values: [],
44527
+ 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
44528
+ }
44529
+ };
44530
+
44531
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44532
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44533
+ } else {
44534
+ details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44535
+ }
44518
44536
 
44519
- var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44520
- return data;
44537
+ var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44538
+ return data;
44539
+ });
44540
+ return {
44541
+ applicationData: BPA,
44542
+ applicationDetails: bpaFilterDetails,
44543
+ tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44544
+ edcrDetails: edcr,
44545
+ nocData: noc,
44546
+ comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44547
+ businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44548
+ applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44549
+ applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44550
+ };
44521
44551
  });
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
44552
  });
44534
44553
  });
44535
44554
  });
@@ -46161,7 +46180,7 @@ var getDate = function getDate(epochdate) {
46161
46180
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46162
46181
  };
46163
46182
 
46164
- var getAddress = function getAddress(address, t) {
46183
+ var getAddress$1 = function getAddress(address, t) {
46165
46184
  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
46185
  };
46167
46186
 
@@ -46178,7 +46197,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
46178
46197
  })[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
46198
  return ow.name;
46180
46199
  }).join(","),
46181
- Address: getAddress(properties.filter(function (prop) {
46200
+ Address: getAddress$1(properties.filter(function (prop) {
46182
46201
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46183
46202
  })[0].address, t),
46184
46203
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
@@ -46262,7 +46281,7 @@ var getDate$1 = function getDate(epochdate) {
46262
46281
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46263
46282
  };
46264
46283
 
46265
- var getAddress$1 = function getAddress(address, t) {
46284
+ var getAddress$2 = function getAddress(address, t) {
46266
46285
  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
46286
  };
46268
46287
 
@@ -46279,7 +46298,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
46279
46298
  })[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
46299
  return ow.name;
46281
46300
  }).join(","),
46282
- Address: getAddress$1(properties.filter(function (prop) {
46301
+ Address: getAddress$2(properties.filter(function (prop) {
46283
46302
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46284
46303
  })[0].address, t),
46285
46304
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {