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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -973,6 +973,8 @@ var LocalizationService = {
973
973
  locale: locale,
974
974
  tenantId: tenantId
975
975
  });
976
+ localStorage.setItem("Employee.locale", locale);
977
+ localStorage.setItem("Citizen.locale", locale);
976
978
  Digit.SessionStorage.set("locale", locale);
977
979
  i18next.changeLanguage(locale);
978
980
  },
@@ -34141,12 +34143,13 @@ var Download = {
34141
34143
  });
34142
34144
  },
34143
34145
  Excel: function Excel(data, filename) {
34146
+ var file = filename.substring(0, 30);
34144
34147
  var wb = XLSX.utils.book_new();
34145
34148
  var ws = null;
34146
34149
  ws = XLSX.utils.json_to_sheet(data);
34147
- wb.SheetNames.push(filename);
34148
- wb.Sheets[filename] = ws;
34149
- XLSX.writeFile(wb, filename + ".xlsx");
34150
+ wb.SheetNames.push(file);
34151
+ wb.Sheets[file] = ws;
34152
+ XLSX.writeFile(wb, file + ".xlsx");
34150
34153
  },
34151
34154
  PDF: function PDF(node, fileName, share, resolve) {
34152
34155
  if (resolve === void 0) {
@@ -34154,6 +34157,10 @@ var Download = {
34154
34157
  }
34155
34158
 
34156
34159
  var saveAs = function saveAs(uri, filename) {
34160
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34161
+ window.mSewaApp.downloadBase64File(uri, filename);
34162
+ }
34163
+
34157
34164
  var link = document.createElement("a");
34158
34165
 
34159
34166
  if (typeof link.download === "string") {
@@ -34210,6 +34217,10 @@ var Download = {
34210
34217
  }
34211
34218
 
34212
34219
  var saveAs = function saveAs(uri, filename) {
34220
+ if (window.mSewaApp && window.mSewaApp.isMsewaApp()) {
34221
+ window.mSewaApp.downloadBase64File(uri, filename);
34222
+ }
34223
+
34213
34224
  var link = document.createElement("a");
34214
34225
 
34215
34226
  if (typeof link.download === "string") {
@@ -37122,14 +37133,18 @@ var UrlShortener = function UrlShortener(fileStoreId) {
37122
37133
  });
37123
37134
  };
37124
37135
 
37136
+ var isMobileOrTablet = function isMobileOrTablet() {
37137
+ return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);
37138
+ };
37139
+
37125
37140
  var ShareFiles = {
37126
37141
  targetLink: function targetLink(target, shortUrl) {
37127
37142
  switch (target) {
37128
37143
  case "mail":
37129
- return window.open("mailto:?body=" + shortUrl, "_blank");
37144
+ return window.open("mailto:?body=" + encodeURIComponent(shortUrl), "_blank");
37130
37145
 
37131
37146
  case "whatsapp":
37132
- return window.open("https://web.whatsapp.com/send?text=" + shortUrl, "_blank");
37147
+ return window.open('https://' + (isMobileOrTablet() ? 'api' : 'web') + '.whatsapp.com/send?text=' + encodeURIComponent(shortUrl), "_blank");
37133
37148
 
37134
37149
  default:
37135
37150
  return window.open(shortUrl, "_blank");
@@ -37153,7 +37168,7 @@ var ShareFiles = {
37153
37168
  files: [pdfData],
37154
37169
  title: filename
37155
37170
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, pdfData)).then(function (shortUrl) {
37156
- ShareFiles.targetLink(target, shortUrl);
37171
+ return ShareFiles.targetLink(target, shortUrl);
37157
37172
  });
37158
37173
  });
37159
37174
  } catch (e) {
@@ -37169,7 +37184,7 @@ var ShareFiles = {
37169
37184
  files: [imageData],
37170
37185
  title: filename
37171
37186
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37172
- ShareFiles.targetLink(target, shortUrl);
37187
+ return ShareFiles.targetLink(target, shortUrl);
37173
37188
  });
37174
37189
  });
37175
37190
  } catch (e) {
@@ -37185,7 +37200,7 @@ var ShareFiles = {
37185
37200
  files: [imageData],
37186
37201
  title: filename
37187
37202
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37188
- ShareFiles.targetLink(target, shortUrl);
37203
+ return ShareFiles.targetLink(target, shortUrl);
37189
37204
  });
37190
37205
  });
37191
37206
  } catch (e) {
@@ -37201,7 +37216,7 @@ var ShareFiles = {
37201
37216
  files: [imageData],
37202
37217
  title: filename
37203
37218
  }) : Promise.resolve(ShareFiles.getShortener(tenantId, imageData)).then(function (shortUrl) {
37204
- ShareFiles.targetLink(target, shortUrl);
37219
+ return ShareFiles.targetLink(target, shortUrl);
37205
37220
  });
37206
37221
  });
37207
37222
  } catch (e) {
@@ -41335,7 +41350,7 @@ var PTSearch = {
41335
41350
  value: owner === null || owner === void 0 ? void 0 : owner.emailId
41336
41351
  }, {
41337
41352
  title: "PT_OWNERSHIP_INFO_CORR_ADDR",
41338
- value: owner === null || owner === void 0 ? void 0 : owner.correspondenceAddress
41353
+ value: owner === null || owner === void 0 ? void 0 : owner.permanentAddress
41339
41354
  }]
41340
41355
  };
41341
41356
  })
@@ -42252,7 +42267,7 @@ var useTradeLicenseMDMS = function useTradeLicenseMDMS(tenantId, moduleCode, typ
42252
42267
  };
42253
42268
 
42254
42269
  var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42255
- 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;
42270
+ var _data, _data$value, _data$value$tradeLice, _data2, _data2$value, _data2$value$owners, _data2$value$owners$d, _data3, _data3$value, _data3$value$owners, _data3$value$owners$d, _data4, _data4$value, _data4$value$owners, _data4$value$owners$d;
42256
42271
 
42257
42272
  if (data1 === void 0) {
42258
42273
  data1 = {};
@@ -42261,10 +42276,12 @@ var useTLDocumentSearch = function useTLDocumentSearch(data1, config) {
42261
42276
  var client = reactQuery.useQueryClient();
42262
42277
  var tenantId = Digit.ULBService.getCurrentTenantId();
42263
42278
  var tenant = Digit.ULBService.getStateId();
42264
- var filesArray = [];
42265
- 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);
42266
- 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);
42267
- 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);
42279
+ 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) {
42280
+ return ob === null || ob === void 0 ? void 0 : ob.fileStoreId;
42281
+ }) : [];
42282
+ if ((_data2 = data1) !== null && _data2 !== void 0 && (_data2$value = _data2.value) !== null && _data2$value !== void 0 && (_data2$value$owners = _data2$value.owners) !== null && _data2$value$owners !== void 0 && (_data2$value$owners$d = _data2$value$owners.documents["OwnerPhotoProof"]) !== null && _data2$value$owners$d !== void 0 && _data2$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["OwnerPhotoProof"].fileStoreId);
42283
+ if ((_data3 = data1) !== null && _data3 !== void 0 && (_data3$value = _data3.value) !== null && _data3$value !== void 0 && (_data3$value$owners = _data3$value.owners) !== null && _data3$value$owners !== void 0 && (_data3$value$owners$d = _data3$value$owners.documents["ProofOfIdentity"]) !== null && _data3$value$owners$d !== void 0 && _data3$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfIdentity"].fileStoreId);
42284
+ if ((_data4 = data1) !== null && _data4 !== void 0 && (_data4$value = _data4.value) !== null && _data4$value !== void 0 && (_data4$value$owners = _data4$value.owners) !== null && _data4$value$owners !== void 0 && (_data4$value$owners$d = _data4$value$owners.documents["ProofOfOwnership"]) !== null && _data4$value$owners$d !== void 0 && _data4$value$owners$d.fileStoreId) filesArray.push(data1.value.owners.documents["ProofOfOwnership"].fileStoreId);
42268
42285
 
42269
42286
  var _useQuery = reactQuery.useQuery(["tlDocuments-" + 1, filesArray], function () {
42270
42287
  return Digit.UploadServices.Filefetch(filesArray, tenant);
@@ -42485,6 +42502,10 @@ var convertEpochToDate = function convertEpochToDate(dateEpoch) {
42485
42502
  }
42486
42503
  };
42487
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
+
42488
42509
  var TLSearch = {
42489
42510
  all: function (tenantId, filters) {
42490
42511
  if (filters === void 0) {
@@ -42542,68 +42563,14 @@ var TLSearch = {
42542
42563
 
42543
42564
  function _temp3(propertyDetails) {
42544
42565
  function _temp2() {
42545
- 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;
42546
42567
 
42547
42568
  var propertyAddress = "";
42548
42569
 
42549
- if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && (_propertyDetails$Prop = propertyDetails.Properties) !== null && _propertyDetails$Prop !== void 0 && _propertyDetails$Prop.length) {
42550
- 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;
42551
-
42552
- 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) {
42553
- var _propertyDetails$Prop4, _propertyDetails$Prop5, _propertyDetails$Prop6, _propertyDetails$Prop7;
42554
-
42555
- 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;
42570
+ if (propertyDetails && propertyDetails !== null && propertyDetails !== void 0 && propertyDetails.Properties.length) {
42571
+ var _propertyDetails$Prop;
42556
42572
 
42557
- 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) {
42558
- propertyAddress += ", ";
42559
- }
42560
- }
42561
-
42562
- 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) {
42563
- var _propertyDetails$Prop10, _propertyDetails$Prop11, _propertyDetails$Prop12, _propertyDetails$Prop13;
42564
-
42565
- 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;
42566
-
42567
- 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) {
42568
- propertyAddress += ", ";
42569
- }
42570
- }
42571
-
42572
- 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) {
42573
- var _propertyDetails$Prop16, _propertyDetails$Prop17, _propertyDetails$Prop18, _propertyDetails$Prop19, _propertyDetails$Prop20;
42574
-
42575
- 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;
42576
-
42577
- 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) {
42578
- propertyAddress += ", ";
42579
- }
42580
- }
42581
-
42582
- 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) {
42583
- var _propertyDetails$Prop24, _propertyDetails$Prop25, _propertyDetails$Prop26, _propertyDetails$Prop27, _propertyDetails$Prop28;
42584
-
42585
- 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;
42586
-
42587
- 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) {
42588
- propertyAddress += ", ";
42589
- }
42590
- }
42591
-
42592
- 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) {
42593
- var _propertyDetails$Prop31, _propertyDetails$Prop32, _propertyDetails$Prop33, _propertyDetails$Prop34;
42594
-
42595
- 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;
42596
-
42597
- 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) {
42598
- propertyAddress += ", ";
42599
- }
42600
- }
42601
-
42602
- 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) {
42603
- var _propertyDetails$Prop37, _propertyDetails$Prop38;
42604
-
42605
- 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;
42606
- }
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);
42607
42574
  }
42608
42575
 
42609
42576
  var employeeResponse = [];
@@ -42703,16 +42670,16 @@ var TLSearch = {
42703
42670
  title: "PT_DETAILS",
42704
42671
  values: [{
42705
42672
  title: "TL_PROPERTY_ID",
42706
- 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"
42707
42674
  }, {
42708
42675
  title: "PT_OWNER_NAME",
42709
- 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"
42710
42677
  }, {
42711
42678
  title: "PROPERTY_ADDRESS",
42712
42679
  value: propertyAddress || "NA"
42713
42680
  }, {
42714
42681
  title: "TL_VIEW_PROPERTY_DETAIL",
42715
- 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",
42716
42683
  value: "",
42717
42684
  isLink: true
42718
42685
  }]
@@ -42856,8 +42823,8 @@ var TLSearch = {
42856
42823
  response && employeeResponse.push(tradedetails);
42857
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);
42858
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);
42859
- (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);
42860
- 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);
42861
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);
42862
42829
  return {
42863
42830
  tenantId: response.tenantId,
@@ -43893,7 +43860,7 @@ var OBPSService = {
43893
43860
  isEmployee: true
43894
43861
  })).then(function (paymentRes) {
43895
43862
  return Promise.resolve(MdmsService.getMultipleTypes(License === null || License === void 0 ? void 0 : License.tenantId, "StakeholderRegistraition", ["TradeTypetoRoleMapping"])).then(function (mdmsRes) {
43896
- 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;
43897
43864
 
43898
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) {
43899
43866
  var _mdmsRes$StakeholderR3, _mdmsRes$StakeholderR4;
@@ -43915,103 +43882,111 @@ var OBPSService = {
43915
43882
  });
43916
43883
  }
43917
43884
 
43918
- var details = [{
43919
- title: " ",
43920
- values: [{
43921
- title: "BPA_APPLICATION_NUMBER_LABEL",
43922
- value: (License === null || License === void 0 ? void 0 : License.applicationNumber) || "NA"
43923
- }]
43924
- }, 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") ? {
43925
- title: "BPA_LICENSE_DETAILS_LABEL",
43926
- asSectionHeader: true,
43927
- values: [{
43928
- title: "BPA_LICENSE_TYPE",
43929
- 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"
43930
- }, {
43931
- title: "BPA_COUNCIL_OF_ARCH_NO_LABEL",
43932
- 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"
43933
- }]
43934
- } : {
43935
- title: "BPA_LICENSE_DETAILS_LABEL",
43936
- asSectionHeader: true,
43937
- values: [{
43938
- title: "BPA_LICENSE_TYPE",
43939
- 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"
43940
- }]
43941
- }, {
43942
- title: "BPA_LICENSEE_DETAILS_HEADER_OWNER_INFO",
43943
- asSectionHeader: true,
43944
- values: [{
43945
- title: "BPA_APPLICANT_NAME_LABEL",
43946
- 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"
43947
- }, {
43948
- title: "BPA_APPLICANT_GENDER_LABEL",
43949
- 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"
43950
- }, {
43951
- title: "BPA_OWNER_MOBILE_NO_LABEL",
43952
- 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
+ }]
43953
43914
  }, {
43954
- title: "BPA_APPLICANT_EMAIL_LABEL",
43955
- 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
+ }]
43956
43933
  }, {
43957
- title: "BPA_APPLICANT_PAN_NO",
43958
- 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"
43959
- }]
43960
- }, {
43961
- title: "BPA_PERMANANT_ADDRESS_LABEL",
43962
- asSectionHeader: true,
43963
- values: [{
43964
43934
  title: "BPA_PERMANANT_ADDRESS_LABEL",
43965
- 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"
43966
- }]
43967
- }, {
43968
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43969
- asSectionHeader: true,
43970
- values: [{
43971
- title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43972
- 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"
43973
- }]
43974
- }, {
43975
- title: "BPA_DOCUMENT_DETAILS_LABEL",
43976
- asSectionHeader: true,
43977
- additionalDetails: {
43978
- documents: [{
43979
- title: "",
43980
- 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) {
43981
- var _doc$documentType;
43982
-
43983
- return {
43984
- title: "BPAREG_HEADER_" + (doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.replaceAll('.', '_')),
43985
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
43986
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
43987
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
43988
- id: doc === null || doc === void 0 ? void 0 : doc.id,
43989
- docInfo: doc === null || doc === void 0 ? void 0 : doc.info
43990
- };
43991
- })
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"
43992
43939
  }]
43993
- }
43994
- }, (paymentRes === null || paymentRes === void 0 ? void 0 : (_paymentRes$Payments = paymentRes.Payments) === null || _paymentRes$Payments === void 0 ? void 0 : _paymentRes$Payments.length) > 0 && {
43995
- title: "BPA_FEE_DETAILS_LABEL",
43996
- additionalDetails: {
43997
- inspectionReport: [],
43940
+ }, {
43941
+ title: "BPA_APPLICANT_CORRESPONDENCE_ADDRESS_LABEL",
43942
+ asSectionHeader: true,
43998
43943
  values: [{
43999
- title: "BPAREG_FEES",
44000
- value: /*#__PURE__*/React__default.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)
44001
- }, (_ref = {
44002
- title: "BPA_STATUS_LABEL",
44003
- isTransLate: true,
44004
- isStatus: true,
44005
- 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"
44006
- }, _ref["isTransLate"] = true, _ref)]
44007
- }
44008
- }];
44009
- return {
44010
- applicationData: License,
44011
- applicationDetails: details,
44012
- tenantId: License === null || License === void 0 ? void 0 : License.tenantId,
44013
- payments: (paymentRes === null || paymentRes === void 0 ? void 0 : paymentRes.Payments) || []
44014
- };
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__default.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
+ });
44015
43990
  });
44016
43991
  });
44017
43992
  });
@@ -44022,16 +43997,27 @@ var OBPSService = {
44022
43997
  BPADetailsPage: function (tenantId, filters) {
44023
43998
  try {
44024
43999
  return Promise.resolve(OBPSService.BPASearch(tenantId, filters)).then(function (response) {
44025
- var _response$BPA, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA3, _response$BPA3$, _response$BPA3$$addit;
44000
+ var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _response$BPA5, _response$BPA5$, _response$BPA5$$addit;
44001
+
44002
+ var appDocumentFileStoreIds = response === null || response === void 0 ? void 0 : (_response$BPA = response.BPA) === null || _response$BPA === void 0 ? void 0 : (_response$BPA$ = _response$BPA[0]) === null || _response$BPA$ === void 0 ? void 0 : (_response$BPA$$docume = _response$BPA$.documents) === null || _response$BPA$$docume === void 0 ? void 0 : _response$BPA$$docume.map(function (docId) {
44003
+ return docId.fileStoreId;
44004
+ });
44005
+ response === null || response === void 0 ? void 0 : (_response$BPA2 = response.BPA) === null || _response$BPA2 === void 0 ? void 0 : (_response$BPA2$ = _response$BPA2[0]) === null || _response$BPA2$ === void 0 ? void 0 : (_response$BPA2$$addit = _response$BPA2$.additionalDetails) === null || _response$BPA2$$addit === void 0 ? void 0 : (_response$BPA2$$addit2 = _response$BPA2$$addit.fieldinspection_pending) === null || _response$BPA2$$addit2 === void 0 ? void 0 : _response$BPA2$$addit2.map(function (fiData) {
44006
+ var _fiData$docs;
44007
+
44008
+ fiData === null || fiData === void 0 ? void 0 : (_fiData$docs = fiData.docs) === null || _fiData$docs === void 0 ? void 0 : _fiData$docs.map(function (fiDoc) {
44009
+ appDocumentFileStoreIds.push(fiDoc === null || fiDoc === void 0 ? void 0 : fiDoc.fileStoreId);
44010
+ });
44011
+ });
44026
44012
 
44027
- if (!(response !== null && response !== void 0 && (_response$BPA = response.BPA) !== null && _response$BPA !== void 0 && _response$BPA.length)) {
44013
+ if (!(response !== null && response !== void 0 && (_response$BPA3 = response.BPA) !== null && _response$BPA3 !== void 0 && _response$BPA3.length)) {
44028
44014
  return;
44029
44015
  }
44030
44016
 
44031
- 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"));
44032
44018
 
44033
- var _response$BPA4 = response === null || response === void 0 ? void 0 : response.BPA,
44034
- BPA = _response$BPA4[0];
44019
+ var _response$BPA6 = response === null || response === void 0 ? void 0 : response.BPA,
44020
+ BPA = _response$BPA6[0];
44035
44021
 
44036
44022
  return Promise.resolve(OBPSService.scrutinyDetails(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, {
44037
44023
  edcrNumber: BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber
@@ -44058,491 +44044,511 @@ var OBPSService = {
44058
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,
44059
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
44060
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;
44061
44050
 
44062
- function ConvertEpochToValidityDate(dateEpoch) {
44063
- if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44064
- return "NA";
44065
- }
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;
44066
44057
 
44067
- var dateFromApi = new Date(dateEpoch);
44068
- var month = dateFromApi.getMonth() + 1;
44069
- var day = dateFromApi.getDate();
44070
- var year = dateFromApi.getFullYear() - 3;
44071
- month = (month > 9 ? "" : "0") + month;
44072
- day = (day > 9 ? "" : "0") + day;
44073
- return day + "/" + month + "/" + year;
44074
- }
44058
+ function ConvertEpochToValidityDate(dateEpoch) {
44059
+ if (dateEpoch == null || dateEpoch == undefined || dateEpoch == '') {
44060
+ return "NA";
44061
+ }
44075
44062
 
44076
- return Promise.resolve(OBPSService.comparisionReport(BPA === null || BPA === void 0 ? void 0 : BPA.tenantId, _extends({}, comparisionRep))).then(function (comparisionReport) {
44077
- 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
+ }
44078
44071
 
44079
- var nocDetails = noc === null || noc === void 0 ? void 0 : noc.map(function (nocDetails, index) {
44080
- 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;
44081
44074
 
44082
- return {
44083
- title: index === 0 ? "BPA_NOC_DETAILS_SUMMARY" : "",
44084
- values: [{
44085
- title: "BPA_" + (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocType) + "_LABEL",
44086
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationNo,
44087
- isNotTranslated: true
44088
- }, {
44089
- title: "BPA_NOC_STATUS",
44090
- value: nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.applicationStatus,
44091
- field: "STATUS"
44092
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$additiona = nocDetails.additionalDetails) === null || _nocDetails$additiona === void 0 ? void 0 : _nocDetails$additiona.SubmittedOn) && {
44093
- title: "BPA_SUDMITTED_ON_LABEL",
44094
- value: nocDetails !== null && nocDetails !== void 0 && (_nocDetails$additiona2 = nocDetails.additionalDetails) !== null && _nocDetails$additiona2 !== void 0 && _nocDetails$additiona2.SubmittedOn ? dateFns.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",
44095
- isNotTranslated: true
44096
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44097
- title: "BPA_APPROVAL_NUMBER_LABEL",
44098
- value: (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) || "NA",
44099
- isNotTranslated: true
44100
- }, (nocDetails === null || nocDetails === void 0 ? void 0 : nocDetails.nocNo) && {
44101
- title: "BPA_APPROVED_REJECTED_ON_LABEL",
44102
- 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" ? dateFns.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",
44103
- isNotTranslated: true
44104
- }],
44105
- additionalDetails: {
44106
- data: nocDetails,
44107
- noc: [{
44108
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44109
- values: nocDetails === null || nocDetails === void 0 ? void 0 : (_nocDetails$documents = nocDetails.documents) === null || _nocDetails$documents === void 0 ? void 0 : _nocDetails$documents.map(function (doc) {
44110
- 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;
44111
44077
 
44112
- return {
44113
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.replaceAll('.', '_'),
44114
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44115
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44116
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44117
- id: doc === null || doc === void 0 ? void 0 : doc.id
44118
- };
44119
- })
44120
- }]
44121
- }
44122
- };
44123
- });
44124
- var inspectionReport = [];
44125
- var checklist = [];
44126
- 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) {
44127
- return ob.docs && ob.docs.length > 0;
44128
- }).map(function (ob, ind) {
44129
- var _ob$date, _ob$date2, _ob$date3, _ob$questions, _ob$docs;
44130
-
44131
- checklist = [];
44132
- inspectionReport.push({
44133
- title: "BPA_FI_REPORT",
44134
- asSectionHeader: true,
44135
- values: [{
44136
- title: "BPA_FI_DATE_LABEL",
44137
- value: ob.date.includes("-") ? ((_ob$date = ob.date) === null || _ob$date === void 0 ? void 0 : _ob$date.split("-")[2]) + "/" + ((_ob$date2 = ob.date) === null || _ob$date2 === void 0 ? void 0 : _ob$date2.split("-")[1]) + "/" + ((_ob$date3 = ob.date) === null || _ob$date3 === void 0 ? void 0 : _ob$date3.split("-")[0]) : ob.date
44138
- }, {
44139
- title: "BPA_FI_TIME_LABEL",
44140
- value: ob.time
44141
- }]
44142
- });
44143
- ob === null || ob === void 0 ? void 0 : (_ob$questions = ob.questions) === null || _ob$questions === void 0 ? void 0 : _ob$questions.map(function (q, index) {
44144
- checklist.push({
44145
- title: q.question,
44146
- value: q.value
44147
- });
44148
- checklist.push({
44149
- title: "BPA_ENTER_REMARKS",
44150
- value: q.remarks
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];
44151
44079
  });
44152
44080
  });
44153
- inspectionReport.push({
44154
- title: "BPA_CHECK_LIST_DETAILS",
44155
- asSectionHeader: true,
44156
- 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 ? dateFns.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" ? dateFns.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
+ };
44157
44126
  });
44158
- inspectionReport.push({
44159
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44160
- asSectionHeader: true,
44161
- additionalDetails: {
44162
- obpsDocuments: [{
44163
- title: "",
44164
- values: ob === null || ob === void 0 ? void 0 : (_ob$docs = ob.docs) === null || _ob$docs === void 0 ? void 0 : _ob$docs.map(function (doc) {
44165
- var _doc$documentType3;
44166
-
44167
- return {
44168
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType3 = doc.documentType) === null || _doc$documentType3 === void 0 ? void 0 : _doc$documentType3.replaceAll('.', '_'),
44169
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44170
- documentUid: doc === null || doc === void 0 ? void 0 : doc.fileStore,
44171
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44172
- id: doc === null || doc === void 0 ? void 0 : doc.id
44173
- };
44174
- })
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
44175
44144
  }]
44176
- }
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
+ });
44177
44182
  });
44178
- });
44179
- var details = [];
44180
- var applicationDetailsInfo = {
44181
- title: " ",
44182
- isCommon: true,
44183
- values: [{
44184
- title: "BPA_APPLICATION_NUMBER_LABEL",
44185
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo) || "NA"
44186
- }]
44187
- };
44188
-
44189
- if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44190
- 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
+ };
44191
44192
 
44192
- applicationDetailsInfo["values"] = [].concat(applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : applicationDetailsInfo.values, [{
44193
- title: "BPA_PERMIT_APP_NUMBER",
44194
- 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),
44195
- 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,
44196
- isLink: true
44197
- }]);
44198
- }
44193
+ if (BPA !== null && BPA !== void 0 && BPA.businessService.includes("BPA_OC")) {
44194
+ var _bpaResponse$BPA4, _bpaResponse$BPA4$, _bpaResponse$BPA5, _bpaResponse$BPA5$;
44199
44195
 
44200
- var permitcondn = [];
44201
- (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) {
44202
- permitcondn.push({
44203
- title: index + 1 + ". " + ob,
44204
- value: ""
44205
- });
44206
- }));
44207
- var PermitConditions = {
44208
- title: "BPA_PERMIT_CONDITIONS",
44209
- isTitleVisible: ((_permitcondn = permitcondn) === null || _permitcondn === void 0 ? void 0 : _permitcondn.length) > 0 ? false : true,
44210
- isNotAllowed: ((_permitcondn2 = permitcondn) === null || _permitcondn2 === void 0 ? void 0 : _permitcondn2.length) > 0 ? false : true,
44211
- additionalDetails: {
44212
- inspectionReport: [],
44213
- 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
+ }]);
44214
44202
  }
44215
- };
44216
- if (permitcondn.length == 0) PermitConditions = {};
44217
44203
 
44218
- if (riskType == "LOW" && permitcondn.length > 0) {
44219
- permitcondn = [];
44220
- PermitConditions = {};
44221
- }
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 = {};
44222
44221
 
44223
- if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44224
- var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail6, _BPA$additionalDetail7, _BPA$additionalDetail8;
44222
+ if (riskType == "LOW" && permitcondn.length > 0) {
44223
+ permitcondn = [];
44224
+ PermitConditions = {};
44225
+ }
44225
44226
 
44226
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn = applicationDetailsInfo.values) === null || _applicationDetailsIn === void 0 ? void 0 : _applicationDetailsIn.push({
44227
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_NUMBER_LABEL" : "BPA_OC_PERMIT_NUMBER_LABEL",
44228
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.approvalNo) || "NA"
44229
- });
44230
- applicationDetailsInfo === null || applicationDetailsInfo === void 0 ? void 0 : (_applicationDetailsIn2 = applicationDetailsInfo.values) === null || _applicationDetailsIn2 === void 0 ? void 0 : _applicationDetailsIn2.push({
44231
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_PERMIT_VALIDITY" : "BPA_OC_PERMIT_VALIDITY",
44232
- 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) + " - " + dateFns.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"
44233
- });
44234
- }
44227
+ if (BPA !== null && BPA !== void 0 && BPA.approvalNo) {
44228
+ var _applicationDetailsIn, _applicationDetailsIn2, _BPA$additionalDetail8, _BPA$additionalDetail9, _BPA$additionalDetail10;
44235
44229
 
44236
- var basicDetails = {
44237
- title: "BPA_BASIC_DETAILS_TITLE",
44238
- asSectionHeader: true,
44239
- isInsert: true,
44240
- isCommon: true,
44241
- values: [{
44242
- title: "BPA_BASIC_DETAILS_APP_DATE_LABEL",
44243
- value: BPA !== null && BPA !== void 0 && (_BPA$auditDetails = BPA.auditDetails) !== null && _BPA$auditDetails !== void 0 && _BPA$auditDetails.createdTime ? dateFns.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') : ''
44244
- }, {
44245
- title: "BPA_BASIC_DETAILS_APPLICATION_TYPE_LABEL",
44246
- value: "WF_BPA_" + (edcr === null || edcr === void 0 ? void 0 : edcr.appliactionType)
44247
- }, {
44248
- title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44249
- value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44250
- }, {
44251
- title: "BPA_BASIC_DETAILS_OCCUPANCY_LABEL",
44252
- 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
44253
- }, {
44254
- title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44255
- value: "WF_BPA_" + riskType,
44256
- isInsert: true
44257
- }, {
44258
- title: "BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL",
44259
- 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
44260
- }]
44261
- };
44262
- var plotDetails = {
44263
- title: "BPA_PLOT_DETAILS_TITLE",
44264
- asSectionHeader: true,
44265
- isCommon: true,
44266
- values: [{
44267
- title: "BPA_BOUNDARY_PLOT_AREA_LABEL",
44268
- 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),
44269
- isNotTranslated: true,
44270
- isUnit: "BPA_SQ_FT_LABEL"
44271
- }, {
44272
- title: "BPA_PLOT_NUMBER_LABEL",
44273
- 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",
44274
- isNotTranslated: true
44275
- }, {
44276
- title: "BPA_KHATHA_NUMBER_LABEL",
44277
- 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",
44278
- isNotTranslated: true
44279
- }, {
44280
- title: "BPA_HOLDING_NUMBER_LABEL",
44281
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail9 = BPA.additionalDetails) === null || _BPA$additionalDetail9 === void 0 ? void 0 : _BPA$additionalDetail9.holdingNo) || "NA",
44282
- isNotTranslated: true
44283
- }, {
44284
- title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
44285
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
44286
- isNotTranslated: true
44287
- }]
44288
- };
44289
- var scrutinyDetails = {
44290
- title: "BPA_STEPPER_SCRUTINY_DETAILS_HEADER",
44291
- isScrutinyDetails: true,
44292
- isBackGroundColor: true,
44293
- 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) + " - " + dateFns.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,
44294
44245
  values: [{
44295
- title: "BPA_EDCR_DETAILS",
44296
- value: " ",
44297
- 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 ? dateFns.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)
44251
+ }, {
44252
+ title: "BPA_BASIC_DETAILS_SERVICE_TYPE_LABEL",
44253
+ value: edcr === null || edcr === void 0 ? void 0 : edcr.applicationSubType
44254
+ }, {
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
44298
44257
  }, {
44299
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_EDCR_NO_LABEL" : "BPA_OC_EDCR_NO_LABEL",
44300
- value: (BPA === null || BPA === void 0 ? void 0 : BPA.edcrNumber) || "NA"
44301
- }],
44302
- scruntinyDetails: [{
44303
- title: "BPA_UPLOADED_PLAN_DIAGRAM",
44304
- value: edcr === null || edcr === void 0 ? void 0 : edcr.updatedDxfFile,
44305
- text: "BPA_UPLOADED_PLAN_DXF"
44258
+ title: "BPA_BASIC_DETAILS_RISK_TYPE_LABEL",
44259
+ value: "WF_BPA_" + riskType,
44260
+ isInsert: true
44306
44261
  }, {
44307
- title: "BPA_SCRUNTINY_REPORT_OUTPUT",
44308
- value: edcr === null || edcr === void 0 ? void 0 : edcr.planReport,
44309
- text: "BPA_SCRUTINY_REPORT_PDF"
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
44310
44264
  }]
44311
- }
44312
- };
44313
- var buildingExtractionDetails = {
44314
- title: "",
44315
- isScrutinyDetails: true,
44316
- isBackGroundColor: true,
44317
- additionalDetails: {
44265
+ };
44266
+ var plotDetails = {
44267
+ title: "BPA_PLOT_DETAILS_TITLE",
44268
+ asSectionHeader: true,
44269
+ isCommon: true,
44318
44270
  values: [{
44319
- title: (BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC" ? "BPA_BUILDING_EXTRACT_HEADER" : "BPA_ACTUAL_BUILDING_EXTRACT_HEADER",
44320
- value: " ",
44321
- 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"
44322
44275
  }, {
44323
- title: "BPA_TOTAL_BUILT_UP_AREA_HEADER",
44324
- 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,
44325
- 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
44326
44279
  }, {
44327
- title: "BPA_SCRUTINY_DETAILS_NUMBER_OF_FLOORS_LABEL",
44328
- 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
44329
44283
  }, {
44330
- title: "BPA_HEIGHT_FROM_GROUND_LEVEL",
44331
- 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,
44332
- isUnit: "BPA_MTRS_LABEL"
44333
- }],
44334
- scruntinyDetails: []
44335
- }
44336
- };
44337
- var demolitionAreaDetails = {
44338
- title: "",
44339
- isScrutinyDetails: true,
44340
- isBackGroundColor: true,
44341
- additionalDetails: {
44342
- values: [{
44343
- title: "BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL",
44344
- value: " ",
44345
- 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
44346
44287
  }, {
44347
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44348
- 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,
44349
- isUnit: "BPA_SQ_MTRS_LABEL"
44350
- }],
44351
- scruntinyDetails: []
44352
- }
44353
- };
44354
- var subOccupancyTableDetails = {
44355
- title: "",
44356
- isSubOccupancyTable: true,
44357
- isTitleRepeat: true,
44358
- 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,
44359
44381
  values: [{
44360
- title: "BPA_OCC_SUBOCC_HEADER",
44361
- value: " ",
44362
- isHeader: true
44363
- }],
44364
- subOccupancyTableDetails: [{
44365
- title: "BPA_APPLICATION_DEMOLITION_AREA_LABEL",
44366
- 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
44367
44384
  }, {
44368
- title: "NO_REPEAT",
44369
- 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
44370
44396
  }]
44371
- }
44372
- };
44373
- var addressDetails = {
44374
- title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
44375
- asSectionHeader: true,
44376
- isCommon: true,
44377
- values: [{
44378
- title: "BPA_DETAILS_PIN_LABEL",
44379
- 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
44380
- }, {
44381
- title: "BPA_CITY_LABEL",
44382
- 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
44383
- }, {
44384
- title: "BPA_LOC_MOHALLA_LABEL",
44385
- 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
44386
- }, {
44387
- title: "BPA_DETAILS_SRT_NAME_LABEL",
44388
- 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
44389
- }, {
44390
- title: "ES_NEW_APPLICATION_LOCATION_LANDMARK",
44391
- 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
44392
- }]
44393
- };
44394
- 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;
44395
-
44396
- 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) {
44397
- 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;
44398
44399
 
44399
- 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) {
44400
- if (!ownerD.isPrimaryOwner) ownerD.isPrimaryOwner = "false";
44401
- });
44402
- }
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;
44403
44402
 
44404
- var ownerDetails = {
44405
- title: "BPA_APPLICANT_DETAILS_HEADER",
44406
- isOwnerDetails: true,
44407
- additionalDetails: {
44408
- 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) {
44409
- return {
44410
- title: Number(checkOwnerLength) > 1 ? "COMMON_OWNER" : "",
44411
- values: [{
44412
- title: "CORE_COMMON_NAME",
44413
- value: owner === null || owner === void 0 ? void 0 : owner.name
44414
- }, {
44415
- title: "BPA_APPLICANT_GENDER_LABEL",
44416
- value: owner === null || owner === void 0 ? void 0 : owner.gender
44417
- }, {
44418
- title: "CORE_COMMON_MOBILE_NUMBER",
44419
- value: owner === null || owner === void 0 ? void 0 : owner.mobileNumber
44420
- }, {
44421
- title: "BPA_IS_PRIMARY_OWNER_LABEL",
44422
- value: owner === null || owner === void 0 ? void 0 : owner.isPrimaryOwner,
44423
- isNotTranslated: false
44424
- }]
44425
- };
44426
- })
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
+ });
44427
44406
  }
44428
- };
44429
- var documentDetails = {
44430
- title: "BPA_DOCUMENT_DETAILS_LABEL",
44431
- asSectionHeader: true,
44432
- isDocumentDetails: true,
44433
- additionalDetails: {
44434
- obpsDocuments: [{
44435
- title: "",
44436
- values: BPA === null || BPA === void 0 ? void 0 : (_BPA$documents = BPA.documents) === null || _BPA$documents === void 0 ? void 0 : _BPA$documents.map(function (doc) {
44437
- var _doc$documentType4;
44438
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) {
44439
44413
  return {
44440
- title: doc === null || doc === void 0 ? void 0 : (_doc$documentType4 = doc.documentType) === null || _doc$documentType4 === void 0 ? void 0 : _doc$documentType4.replaceAll('.', '_'),
44441
- documentType: doc === null || doc === void 0 ? void 0 : doc.documentType,
44442
- documentUid: doc === null || doc === void 0 ? void 0 : doc.documentUid,
44443
- fileStoreId: doc === null || doc === void 0 ? void 0 : doc.fileStoreId,
44444
- 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
+ }]
44445
44429
  };
44446
44430
  })
44447
- }]
44448
- }
44449
- };
44450
- var approvalChecks = [];
44451
- var approvalChecksDetails = {};
44452
-
44453
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44454
- var _mdmsRes$BPA2;
44455
-
44456
- mdmsRes === null || mdmsRes === void 0 ? void 0 : (_mdmsRes$BPA2 = mdmsRes.BPA) === null || _mdmsRes$BPA2 === void 0 ? void 0 : _mdmsRes$BPA2.CheckList.forEach(function (checklist) {
44457
- var _checklist$conditions;
44458
-
44459
- 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) {
44460
- approvalChecks.push.apply(approvalChecks, checklist === null || checklist === void 0 ? void 0 : checklist.conditions);
44461
44431
  }
44462
- });
44463
- approvalChecksDetails = {
44464
- title: "",
44465
- isTitleVisible: (approvalChecks === null || approvalChecks === void 0 ? void 0 : approvalChecks.length) > 0 ? false : true,
44432
+ };
44433
+ var documentDetails = {
44434
+ title: "BPA_DOCUMENT_DETAILS_LABEL",
44466
44435
  asSectionHeader: true,
44467
- isPermissions: true,
44436
+ isDocumentDetails: true,
44468
44437
  additionalDetails: {
44469
- 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
+ }]
44470
44453
  }
44471
44454
  };
44472
- }
44455
+ var approvalChecks = [];
44456
+ var approvalChecksDetails = {};
44473
44457
 
44474
- if (riskType == "LOW" && approvalChecks.length > 0) approvalChecksDetails = {};
44475
- var val;
44476
- var i;
44477
- var FieldInspectionData = [];
44478
- 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) {
44479
- if (ob.title.includes("FI_REPORT")) FieldInspectionData = [].concat(FieldInspectionData, [{
44480
- title: ob.title,
44481
- additionalDetails: {
44482
- inspectionReport: [],
44483
- values: ob.values
44484
- }
44485
- }]);else if (ob.title.includes("CHECK_LIST")) FieldInspectionData = [].concat(FieldInspectionData, [{
44486
- title: ob.title,
44487
- additionalDetails: {
44488
- isChecklist: true,
44489
- inspectionReport: [],
44490
- values: ob.values
44491
- }
44492
- }]);else {
44493
- var _ob$additionalDetails, _ob$additionalDetails2;
44458
+ if ((BPA === null || BPA === void 0 ? void 0 : BPA.status) === "APPROVAL_INPROGRESS") {
44459
+ var _mdmsRes$BPA2;
44494
44460
 
44495
- 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);
44496
- improvedDoc.map(function (ob) {
44497
- ob["isNotDuplicate"] = true;
44498
- });
44499
- improvedDoc.map(function (ob, index) {
44500
- val = ob.documentType;
44501
- if (ob.isNotDuplicate == true) for (i = index + 1; i < improvedDoc.length; i++) {
44502
- 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);
44503
44466
  }
44504
44467
  });
44505
- FieldInspectionData = [].concat(FieldInspectionData, [{
44506
- 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,
44507
44473
  additionalDetails: {
44508
- FIdocuments: [],
44509
- "documents": [{
44510
- values: improvedDoc
44511
- }]
44474
+ permissions: approvalChecks
44512
44475
  }
44513
- }]);
44514
- }
44515
- });
44516
- var fiReports = {
44517
- title: "",
44518
- isFieldInspection: true,
44519
- 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,
44520
- additionalDetails: {
44521
- values: [],
44522
- 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
+ };
44523
44477
  }
44524
- };
44525
44478
 
44526
- if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
44527
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, addressDetails, ownerDetails, documentDetails, fiReports], nocDetails, [approvalChecksDetails, PermitConditions]);
44528
- } else {
44529
- details = [].concat(details, [applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports], nocDetails, [PermitConditions]);
44530
- }
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
+ }
44531
44536
 
44532
- var bpaFilterDetails = (_details = details) === null || _details === void 0 ? void 0 : _details.filter(function (data) {
44533
- 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
+ };
44534
44551
  });
44535
- return {
44536
- applicationData: BPA,
44537
- applicationDetails: bpaFilterDetails,
44538
- tenantId: BPA === null || BPA === void 0 ? void 0 : BPA.tenantId,
44539
- edcrDetails: edcr,
44540
- nocData: noc,
44541
- comparisionReport: comparisionReport === null || comparisionReport === void 0 ? void 0 : comparisionReport.comparisonDetail,
44542
- businessService: BPA === null || BPA === void 0 ? void 0 : BPA.businessService,
44543
- applicationNo: BPA === null || BPA === void 0 ? void 0 : BPA.applicationNo,
44544
- applicationStatus: BPA === null || BPA === void 0 ? void 0 : BPA.status
44545
- };
44546
44552
  });
44547
44553
  });
44548
44554
  });
@@ -46174,7 +46180,7 @@ var getDate = function getDate(epochdate) {
46174
46180
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46175
46181
  };
46176
46182
 
46177
- var getAddress = function getAddress(address, t) {
46183
+ var getAddress$1 = function getAddress(address, t) {
46178
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 : " ");
46179
46185
  };
46180
46186
 
@@ -46191,7 +46197,7 @@ var combineResponse$4 = function combineResponse(WaterConnections, properties, b
46191
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) {
46192
46198
  return ow.name;
46193
46199
  }).join(","),
46194
- Address: getAddress(properties.filter(function (prop) {
46200
+ Address: getAddress$1(properties.filter(function (prop) {
46195
46201
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46196
46202
  })[0].address, t),
46197
46203
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$ = billData.filter(function (bill) {
@@ -46275,7 +46281,7 @@ var getDate$1 = function getDate(epochdate) {
46275
46281
  return epochdate ? new Date(epochdate).getDate() + "/" + (new Date(epochdate).getMonth() + 1) + "/" + new Date(epochdate).getFullYear().toString() : "NA";
46276
46282
  };
46277
46283
 
46278
- var getAddress$1 = function getAddress(address, t) {
46284
+ var getAddress$2 = function getAddress(address, t) {
46279
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 : " ");
46280
46286
  };
46281
46287
 
@@ -46292,7 +46298,7 @@ var combineResponse$5 = function combineResponse(WaterConnections, properties, b
46292
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) {
46293
46299
  return ow.name;
46294
46300
  }).join(","),
46295
- Address: getAddress$1(properties.filter(function (prop) {
46301
+ Address: getAddress$2(properties.filter(function (prop) {
46296
46302
  return prop.propertyId === (app === null || app === void 0 ? void 0 : app.propertyId);
46297
46303
  })[0].address, t),
46298
46304
  AmountDue: billData ? billData !== null && billData !== void 0 && (_billData$filter$0$bi = billData.filter(function (bill) {