@mseva/digit-ui-module-obps 1.0.4 → 1.0.5

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.
@@ -1,4 +1,4 @@
1
- import React, { Fragment, useMemo, useState, useEffect, useCallback, useReducer, useRef } from 'react';
1
+ import React, { Fragment, useMemo, useState, useEffect as useEffect$1, useCallback, useReducer, useRef } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Link, useLocation, useHistory, useParams, Switch, Route, useRouteMatch, Redirect } from 'react-router-dom';
4
4
  import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Loader, SearchAction, PopUp, Card, DetailsCard, Header, SearchForm, Table, Toast, CloseSvg, KeyNote, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton, MultiLink, StatusTable, Row, CardHeader, PDFSvg, Banner, CardText, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, EmployeeModuleCard, CitizenHomeCard, FormStep, CardLabel, UploadFile, TickMark, Label, SearchIconSvg, CardCaption, CitizenInfoLabel, CardSubHeader, SearchIcon, DeleteIcon, RadioOrSelect, MultiUploadWrapper, LocationSearchCard, Modal, FormComposer, ButtonSelector, TextArea, Menu, BreadCrumb, LabelFieldPair, OBPSIconSolidBg, Close as Close$9, BreakLine, InfoBannerIcon, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
@@ -2255,7 +2255,7 @@ const OBPSSearchApplication = ({
2255
2255
  ...searchData
2256
2256
  }
2257
2257
  });
2258
- useEffect(() => {
2258
+ useEffect$1(() => {
2259
2259
  register("offset", 0);
2260
2260
  register("limit", 10);
2261
2261
  register("sortBy", "commencementDate");
@@ -2303,7 +2303,7 @@ const OBPSSearchApplication = ({
2303
2303
  t
2304
2304
  });
2305
2305
  const [currPage, setCurrPage] = useState(getValues("offset") / getValues("limit"));
2306
- useEffect(() => {
2306
+ useEffect$1(() => {
2307
2307
  if (error !== "") {
2308
2308
  setparamerror("");
2309
2309
  setShowToast({
@@ -2337,7 +2337,7 @@ const OBPSSearchApplication = ({
2337
2337
  setValue("offset", getValues("offset") - getValues("limit"));
2338
2338
  handleSubmit(onSubmit)();
2339
2339
  }
2340
- useEffect(() => {
2340
+ useEffect$1(() => {
2341
2341
  if (!(getValues("offset") == undefined || getValues("limit") == undefined)) setCurrPage(getValues("offset") / getValues("limit"));
2342
2342
  }, [getValues("offset"), getValues("limit")]);
2343
2343
  const isMobile = window.Digit.Utils.browser.isMobile();
@@ -2543,7 +2543,7 @@ const Search = ({
2543
2543
  const [selectedType, setSelectedType] = useState(details());
2544
2544
  const [payload, setPayload] = useState({});
2545
2545
  const [searchData, setSearchData] = useState({});
2546
- useEffect(() => {
2546
+ useEffect$1(() => {
2547
2547
  if (location.pathname === "/digit-ui/citizen/obps/search/application" || location.pathname === "/digit-ui/employee/obps/search/application") {
2548
2548
  Digit.SessionStorage.del("OBPS.INBOX");
2549
2549
  Digit.SessionStorage.del("STAKEHOLDER.INBOX");
@@ -2717,14 +2717,14 @@ const MyApplication = () => {
2717
2717
  sessionStorage.setItem("BPAREGintermediateValue", JSON.stringify(intermediateData));
2718
2718
  history.push("/digit-ui/citizen/obps/stakeholder/apply/stakeholder-docs-required");
2719
2719
  };
2720
- useEffect(() => {
2720
+ useEffect$1(() => {
2721
2721
  return () => {
2722
2722
  setFinalData([]);
2723
2723
  revalidate === null || revalidate === void 0 ? void 0 : revalidate();
2724
2724
  bpaRevalidate === null || bpaRevalidate === void 0 ? void 0 : bpaRevalidate();
2725
2725
  };
2726
2726
  }, []);
2727
- useEffect(() => {
2727
+ useEffect$1(() => {
2728
2728
  if (!isLoading && !isBpaSearchLoading) {
2729
2729
  var _data$Licenses3, _userInfoDetails$valu, _userInfoDetails$valu2, _userInfoDetails$valu3, _userInfoDetails$valu4, _userInfoDetails$valu5, _userInfoDetails$valu6, _userInfoDetails$valu7;
2730
2730
  let searchConvertedArray = [];
@@ -3088,7 +3088,7 @@ const ApplicationDetails = () => {
3088
3088
  isEmployee: false
3089
3089
  }, {});
3090
3090
  const [viewTimeline, setViewTimeline] = useState(false);
3091
- useEffect(() => {
3091
+ useEffect$1(() => {
3092
3092
  var _License$tradeLicense, _License$tradeLicense2;
3093
3093
  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) {
3094
3094
  var _License$tradeLicense3, _License$tradeLicense4;
@@ -3096,7 +3096,7 @@ const ApplicationDetails = () => {
3096
3096
  Digit.UploadServices.Filefetch(fileStoresIds, tenantId.split(".")[0]).then(res => setDocuments(res === null || res === void 0 ? void 0 : res.data));
3097
3097
  }
3098
3098
  }, [License]);
3099
- useEffect(() => {
3099
+ useEffect$1(() => {
3100
3100
  if (License) {
3101
3101
  var _reciept_data$Payment, _License$tradeLicense5, _License$tradeLicense6;
3102
3102
  if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.length) > 0) {
@@ -3286,7 +3286,7 @@ const OBPSResponse = props => {
3286
3286
  id: bpaData === null || bpaData === void 0 ? void 0 : bpaData.applicationNo,
3287
3287
  moduleCode: "BPA"
3288
3288
  });
3289
- useEffect(async () => {
3289
+ useEffect$1(async () => {
3290
3290
  var _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$, _bpaResponse$BPA4, _bpaResponse$BPA4$, _fetchBill$Bill$, _bpaResponse$BPA5;
3291
3291
  setIsLoader(true);
3292
3292
  const bpaResponse = await Digit.OBPSService.BPASearch(tenantId, {
@@ -6442,19 +6442,19 @@ const BPACitizenHomeScreen = ({
6442
6442
  }
6443
6443
  }
6444
6444
  });
6445
- useEffect(() => {
6445
+ useEffect$1(() => {
6446
6446
  if (location.pathname === "/digit-ui/citizen/obps/home") {
6447
6447
  Digit.SessionStorage.del("OBPS.INBOX");
6448
6448
  Digit.SessionStorage.del("STAKEHOLDER.INBOX");
6449
6449
  }
6450
6450
  }, [location.pathname]);
6451
- useEffect(() => {
6451
+ useEffect$1(() => {
6452
6452
  if (!bpaLoading) {
6453
6453
  const totalCountofBoth = (bpaInboxData === null || bpaInboxData === void 0 ? void 0 : bpaInboxData.totalCount) || 0;
6454
6454
  setTotalCount(totalCountofBoth);
6455
6455
  }
6456
6456
  }, [bpaInboxData]);
6457
- useEffect(() => {
6457
+ useEffect$1(() => {
6458
6458
  if (!stakeHolderDetailsLoading) {
6459
6459
  var _stakeHolderDetails$S, _stakeHolderDetails$S2;
6460
6460
  let roles = [];
@@ -6482,7 +6482,7 @@ const BPACitizenHomeScreen = ({
6482
6482
  }
6483
6483
  }
6484
6484
  }, [stakeHolderDetailsLoading]);
6485
- useEffect(() => {
6485
+ useEffect$1(() => {
6486
6486
  var _homePageUrlLinks$BPA, _homePageUrlLinks$BPA2;
6487
6487
  if (!homePageUrlLinksLoading && (homePageUrlLinks === null || homePageUrlLinks === void 0 ? void 0 : (_homePageUrlLinks$BPA = homePageUrlLinks.BPA) === null || _homePageUrlLinks$BPA === void 0 ? void 0 : (_homePageUrlLinks$BPA2 = _homePageUrlLinks$BPA.homePageUrlLinks) === null || _homePageUrlLinks$BPA2 === void 0 ? void 0 : _homePageUrlLinks$BPA2.length) > 0) {
6488
6488
  var _homePageUrlLinks$BPA3, _homePageUrlLinks$BPA4;
@@ -6501,7 +6501,7 @@ const BPACitizenHomeScreen = ({
6501
6501
  setBpaLinks(uniqueLinks);
6502
6502
  }
6503
6503
  }, [!homePageUrlLinksLoading]);
6504
- useEffect(() => {
6504
+ useEffect$1(() => {
6505
6505
  clearParams();
6506
6506
  }, []);
6507
6507
  Digit.SessionStorage.set("EDCR_BACK", "IS_EDCR_BACK");
@@ -6640,7 +6640,7 @@ const EDCRForm = ({
6640
6640
  isLoading,
6641
6641
  data: citymodules
6642
6642
  } = Digit.Hooks.obps.useMDMS(stateId, "tenant", ["citymodule"]);
6643
- useEffect(() => {
6643
+ useEffect$1(() => {
6644
6644
  var _citymodules$tenant, _citymodules$tenant$c;
6645
6645
  if ((citymodules === null || citymodules === void 0 ? void 0 : (_citymodules$tenant = citymodules.tenant) === null || _citymodules$tenant === void 0 ? void 0 : (_citymodules$tenant$c = _citymodules$tenant.citymodule) === null || _citymodules$tenant$c === void 0 ? void 0 : _citymodules$tenant$c.length) > 0) {
6646
6646
  var _citymodules$tenant2, _citymodules$tenant2$, _list$, _list$$tenants, _list$2, _list$3, _list$4;
@@ -6654,7 +6654,7 @@ const EDCRForm = ({
6654
6654
  setCitymoduleList(sortTenants);
6655
6655
  }
6656
6656
  }, [citymodules]);
6657
- useEffect(() => {
6657
+ useEffect$1(() => {
6658
6658
  if (uploadMessage || isShowToast) {
6659
6659
  setName("");
6660
6660
  setTenantIdData("");
@@ -7003,7 +7003,7 @@ const DocsRequired = ({
7003
7003
  onSelect("", formData);
7004
7004
  } else onSelect("uiFlow", uiFlow);
7005
7005
  };
7006
- useEffect(() => {
7006
+ useEffect$1(() => {
7007
7007
  let architectName = "",
7008
7008
  stakeholderRegistrationNumber = "",
7009
7009
  stakeholderName = "",
@@ -7028,7 +7028,7 @@ const DocsRequired = ({
7028
7028
  }
7029
7029
  }
7030
7030
  }, [LicenseData]);
7031
- useEffect(() => {
7031
+ useEffect$1(() => {
7032
7032
  if (!homePageUrlLinksLoading) {
7033
7033
  var _homePageUrlLinks$BPA, _homePageUrlLinks$BPA2;
7034
7034
  const windowUrl = window.location.href.split('/');
@@ -7045,7 +7045,7 @@ const DocsRequired = ({
7045
7045
  });
7046
7046
  }
7047
7047
  }, [!homePageUrlLinksLoading]);
7048
- useEffect(() => {
7048
+ useEffect$1(() => {
7049
7049
  if (!isLoading) {
7050
7050
  let unique = [],
7051
7051
  uniqueList = [];
@@ -7149,7 +7149,7 @@ const PlotDetails = ({
7149
7149
  const tenantId = Digit.ULBService.getCurrentTenantId();
7150
7150
  const checkingFlow = formData === null || formData === void 0 ? void 0 : (_formData$uiFlow = formData.uiFlow) === null || _formData$uiFlow === void 0 ? void 0 : _formData$uiFlow.flow;
7151
7151
  const state = Digit.ULBService.getStateId();
7152
- useEffect(() => {
7152
+ useEffect$1(() => {
7153
7153
  if (isEditApplication) {
7154
7154
  const newConfig = {
7155
7155
  ...config,
@@ -7585,7 +7585,7 @@ const BPANewBuildingdetails = ({
7585
7585
  const [uploadMessage, setUploadMessage] = useState("");
7586
7586
  let Webview = !Digit.Utils.browser.isMobile();
7587
7587
  let acceptFormat = ".pdf";
7588
- useEffect(() => {
7588
+ useEffect$1(() => {
7589
7589
  (async () => {
7590
7590
  setError(null);
7591
7591
  if (file && file !== null && file !== void 0 && file.type) {
@@ -7609,7 +7609,7 @@ const BPANewBuildingdetails = ({
7609
7609
  }
7610
7610
  })();
7611
7611
  }, [file]);
7612
- useEffect(() => {
7612
+ useEffect$1(() => {
7613
7613
  (async () => {
7614
7614
  setError(null);
7615
7615
  if (files && files !== null && files !== void 0 && files.type) {
@@ -8297,7 +8297,7 @@ const OwnerDetails = ({
8297
8297
  }]);
8298
8298
  const user = Digit.UserService.getUser();
8299
8299
  console.log("userrrr", user);
8300
- useEffect(() => {
8300
+ useEffect$1(() => {
8301
8301
  var flag = 0;
8302
8302
  fields.map(ob => {
8303
8303
  if (ob !== null && ob !== void 0 && ob.isPrimaryOwner) flag = 1;
@@ -8311,7 +8311,7 @@ const OwnerDetails = ({
8311
8311
  if (flag == 1) setCanmovenext(false);else setCanmovenext(true);
8312
8312
  }
8313
8313
  }, [fields]);
8314
- useEffect(() => {
8314
+ useEffect$1(() => {
8315
8315
  const values = cloneDeep_1(fields);
8316
8316
  if (ownershipCategory && !ismultiple && (values === null || values === void 0 ? void 0 : values.length) > 1) setFeilds([{
8317
8317
  ...values[0],
@@ -8325,7 +8325,7 @@ const OwnerDetails = ({
8325
8325
  const {
8326
8326
  data: genderTypeData
8327
8327
  } = Digit.Hooks.obps.useMDMS(stateId, "common-masters", ["GenderType"]);
8328
- useEffect(() => {
8328
+ useEffect$1(() => {
8329
8329
  var _ownerShipCategories$;
8330
8330
  const ownershipCategoryLists = ownerShipCategories === null || ownerShipCategories === void 0 ? void 0 : (_ownerShipCategories$ = ownerShipCategories["common-masters"]) === null || _ownerShipCategories$ === void 0 ? void 0 : _ownerShipCategories$.OwnerShipCategory;
8331
8331
  if (ownershipCategoryLists && (ownershipCategoryLists === null || ownershipCategoryLists === void 0 ? void 0 : ownershipCategoryLists.length) > 0) {
@@ -8339,7 +8339,7 @@ const OwnerDetails = ({
8339
8339
  setOwnershipCategoryList(finalOwnershipCategoryList);
8340
8340
  }
8341
8341
  }, [ownerShipCategories]);
8342
- useEffect(() => {
8342
+ useEffect$1(() => {
8343
8343
  var _genderTypeData$commo;
8344
8344
  const gendeTypeMenu = (genderTypeData === null || genderTypeData === void 0 ? void 0 : (_genderTypeData$commo = genderTypeData["common-masters"]) === null || _genderTypeData$commo === void 0 ? void 0 : _genderTypeData$commo.GenderType) || [];
8345
8345
  if (gendeTypeMenu && (gendeTypeMenu === null || gendeTypeMenu === void 0 ? void 0 : gendeTypeMenu.length) > 0) {
@@ -9233,7 +9233,7 @@ const DocumentDetails = ({
9233
9233
  };
9234
9234
  const onSkip = () => onSelect();
9235
9235
  function onAdd() {}
9236
- useEffect(() => {
9236
+ useEffect$1(() => {
9237
9237
  const allRequiredDocumentsCode = bpaTaxDocuments.filter(e => e.required).map(e => e.code);
9238
9238
  const reqDocumentEntered = allRequiredDocumentsCode.filter(reqCode => documents.reduce((acc, doc) => {
9239
9239
  var _doc$documentType, _doc$documentType$spl, _doc$documentType2, _doc$documentType2$sp;
@@ -9479,7 +9479,7 @@ const SelectDocument = React.memo(function MyComponent({
9479
9479
  setuploadedfileArray([]);
9480
9480
  }
9481
9481
  }
9482
- useEffect(() => {
9482
+ useEffect$1(() => {
9483
9483
  uploadedfileArray.length > 0 && setcodeafterupload();
9484
9484
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
9485
9485
  setDocuments(prev => {
@@ -9510,7 +9510,7 @@ const SelectDocument = React.memo(function MyComponent({
9510
9510
  });
9511
9511
  }
9512
9512
  }, [uploadedFile, selectedDocument]);
9513
- useEffect(() => {
9513
+ useEffect$1(() => {
9514
9514
  if (!selectedDocument.code && uploadedFile !== null) setuploadedfileArray([...uploadedfileArray, uploadedFile]);
9515
9515
  }, [uploadedFile]);
9516
9516
  const allowedFileTypes = /(.*?)(jpg|jpeg|png|image|pdf)$/i;
@@ -9583,7 +9583,7 @@ function PropertyDocuments({
9583
9583
  const [filesArray, setFilesArray] = useState(() => []);
9584
9584
  const tenantId = Digit.ULBService.getCurrentTenantId();
9585
9585
  const [pdfFiles, setPdfFiles] = useState({});
9586
- useEffect(() => {
9586
+ useEffect$1(() => {
9587
9587
  var _acc;
9588
9588
  let acc = [];
9589
9589
  documents === null || documents === void 0 ? void 0 : documents.forEach((element, index, array) => {
@@ -9591,7 +9591,7 @@ function PropertyDocuments({
9591
9591
  });
9592
9592
  setFilesArray((_acc = acc) === null || _acc === void 0 ? void 0 : _acc.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId));
9593
9593
  }, [documents]);
9594
- useEffect(() => {
9594
+ useEffect$1(() => {
9595
9595
  var _documents$;
9596
9596
  if (filesArray !== null && filesArray !== void 0 && filesArray.length && (documents === null || documents === void 0 ? void 0 : (_documents$ = documents[0]) === null || _documents$ === void 0 ? void 0 : _documents$.BS) === "BillAmend") {
9597
9597
  Digit.UploadServices.Filefetch(filesArray, Digit.ULBService.getCurrentTenantId()).then(res => {
@@ -9772,7 +9772,7 @@ const NOCDetails = ({
9772
9772
  } = Digit.Hooks.useDocumentSearch(beforeUploadNocDocuments, {
9773
9773
  enabled: (beforeUploadNocDocuments === null || beforeUploadNocDocuments === void 0 ? void 0 : beforeUploadNocDocuments.length) > 0 ? true : false
9774
9774
  });
9775
- useEffect(() => {
9775
+ useEffect$1(() => {
9776
9776
  var _pdfDetails$pdfFiles;
9777
9777
  if ((pdfDetails === null || pdfDetails === void 0 ? void 0 : (_pdfDetails$pdfFiles = pdfDetails.pdfFiles) === null || _pdfDetails$pdfFiles === void 0 ? void 0 : _pdfDetails$pdfFiles.length) > 0) {
9778
9778
  var _pdfDetails$pdfFiles2;
@@ -9780,18 +9780,18 @@ const NOCDetails = ({
9780
9780
  setBeforeUploadNocDocuments(pdfDetails === null || pdfDetails === void 0 ? void 0 : pdfDetails.pdfFiles);
9781
9781
  }
9782
9782
  }, [pdfDetails === null || pdfDetails === void 0 ? void 0 : pdfDetails.pdfFiles]);
9783
- useEffect(() => {
9783
+ useEffect$1(() => {
9784
9784
  setNocDetails(data);
9785
9785
  }, [data]);
9786
- useEffect(() => {
9786
+ useEffect$1(() => {
9787
9787
  var _nocDocs$NOC;
9788
9788
  setNocDocumentTypeMaping(nocDocs === null || nocDocs === void 0 ? void 0 : (_nocDocs$NOC = nocDocs.NOC) === null || _nocDocs$NOC === void 0 ? void 0 : _nocDocs$NOC.DocumentTypeMapping);
9789
9789
  }, [nocDocs]);
9790
- useEffect(() => {
9790
+ useEffect$1(() => {
9791
9791
  var _commonDocs$commonMa;
9792
9792
  setCommonDocMaping(commonDocs === null || commonDocs === void 0 ? void 0 : (_commonDocs$commonMa = commonDocs["common-masters"]) === null || _commonDocs$commonMa === void 0 ? void 0 : _commonDocs$commonMa.DocumentType);
9793
9793
  }, [commonDocs]);
9794
- useEffect(() => {
9794
+ useEffect$1(() => {
9795
9795
  if (nocDatils !== null && nocDatils !== void 0 && nocDatils.length && nocDocumentTypeMaping !== null && nocDocumentTypeMaping !== void 0 && nocDocumentTypeMaping.length) {
9796
9796
  let documents = [];
9797
9797
  nocDatils.map(noc => {
@@ -9968,7 +9968,7 @@ function SelectDocument$1({
9968
9968
  selectfile(ob, key);
9969
9969
  });
9970
9970
  }
9971
- useEffect(() => {
9971
+ useEffect$1(() => {
9972
9972
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.documentType && (nocDocuments.filter(ob => ob.documentType === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentType)).length == 0 || newArray.filter(ob => {
9973
9973
  var _ob$file;
9974
9974
  return (ob === null || ob === void 0 ? void 0 : (_ob$file = ob.file) === null || _ob$file === void 0 ? void 0 : _ob$file.documentType) === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentType);
@@ -10235,7 +10235,7 @@ const LocationDetails = ({
10235
10235
  }
10236
10236
  };
10237
10237
  const isMobile = window.Digit.Utils.browser.isMobile();
10238
- useEffect(() => {
10238
+ useEffect$1(() => {
10239
10239
  if (!selectedCity || !localities) {
10240
10240
  var _cities;
10241
10241
  cities = userType && userType === "employee" ? allCities.filter(city => city.code === tenantId) : pincode ? allCities.filter(city => {
@@ -10254,7 +10254,7 @@ const LocationDetails = ({
10254
10254
  }
10255
10255
  }
10256
10256
  }, [pincode]);
10257
- useEffect(() => {
10257
+ useEffect$1(() => {
10258
10258
  cities.map((city, index) => {
10259
10259
  if (city.code === cityCode) {
10260
10260
  setSelectedCity(city);
@@ -10262,7 +10262,7 @@ const LocationDetails = ({
10262
10262
  }
10263
10263
  });
10264
10264
  }, [cities, (_formData13 = formData) === null || _formData13 === void 0 ? void 0 : _formData13.data]);
10265
- useEffect(() => {
10265
+ useEffect$1(() => {
10266
10266
  if (cities) {
10267
10267
  var _cities3;
10268
10268
  if (cities.length === 1 && ((_cities3 = cities) === null || _cities3 === void 0 ? void 0 : _cities3[0].code) === (selectedCity === null || selectedCity === void 0 ? void 0 : selectedCity.code)) {
@@ -10278,7 +10278,7 @@ const LocationDetails = ({
10278
10278
  }, t);
10279
10279
  let isEditApplication = window.location.href.includes("editApplication");
10280
10280
  let isSendBackTOCitizen = window.location.href.includes("sendbacktocitizen");
10281
- useEffect(() => {
10281
+ useEffect$1(() => {
10282
10282
  var _propertyData$address6;
10283
10283
  if (!(propertyData !== null && propertyData !== void 0 && (_propertyData$address6 = propertyData.address) !== null && _propertyData$address6 !== void 0 && _propertyData$address6.locality)) {
10284
10284
  if (selectedCity && fetchedLocalities && !Pinerror) {
@@ -10513,7 +10513,7 @@ const StakeholderDocsRequired = ({
10513
10513
  } = Digit.Hooks.obps.useMDMS(stateId, "StakeholderRegistraition", "TradeTypetoRoleMapping");
10514
10514
  let isopenlink = window.location.href.includes("/openlink/");
10515
10515
  const isCitizenUrl = Digit.Utils.browser.isMobile() ? true : false;
10516
- useEffect(() => {
10516
+ useEffect$1(() => {
10517
10517
  if (tenantId) Digit.LocalizationService.getLocale({
10518
10518
  modules: [`rainmaker-bpareg`],
10519
10519
  locale: Digit.StoreData.getCurrentLanguage(),
@@ -10891,7 +10891,7 @@ const OCUploadPlanDiagram = ({
10891
10891
  setFile(e.target.files[0]);
10892
10892
  }
10893
10893
  const onSkip = () => {};
10894
- useEffect(() => {
10894
+ useEffect$1(() => {
10895
10895
  if (uploadMessage || isShowToast) {
10896
10896
  setUploadedFile(null);
10897
10897
  setFile("");
@@ -10967,7 +10967,7 @@ const OCBasicDetails = ({
10967
10967
  data: mdmsData
10968
10968
  } = Digit.Hooks.obps.useMDMS(state, "BPA", ["RiskTypeComputation"]);
10969
10969
  const riskType = Digit.Utils.obps.calculateRiskType(mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$BPA = mdmsData.BPA) === null || _mdmsData$BPA === void 0 ? void 0 : _mdmsData$BPA.RiskTypeComputation, data === null || data === void 0 ? void 0 : (_data$planDetail = data.planDetail) === null || _data$planDetail === void 0 ? void 0 : (_data$planDetail$plot = _data$planDetail.plot) === null || _data$planDetail$plot === void 0 ? void 0 : _data$planDetail$plot.area, data === null || data === void 0 ? void 0 : (_data$planDetail2 = data.planDetail) === null || _data$planDetail2 === void 0 ? void 0 : _data$planDetail2.blocks);
10970
- useEffect(() => {}, showToast);
10970
+ useEffect$1(() => {}, showToast);
10971
10971
  const getOCEDCRTotalDetails = async () => {
10972
10972
  var _otherData$edcrDetail, _otherData$edcrDetail2, _details$ocEdcrDetail;
10973
10973
  setData(null);
@@ -11048,7 +11048,7 @@ const OCBasicDetails = ({
11048
11048
  };
11049
11049
  let disableVlaue = sessionStorage.getItem("isEDCRDisable");
11050
11050
  disableVlaue = JSON.parse(disableVlaue);
11051
- useEffect(() => {
11051
+ useEffect$1(() => {
11052
11052
  if (disableVlaue) {
11053
11053
  let edcrApi = sessionStorage.getItem("isEDCRAPIType");
11054
11054
  edcrApi = edcrApi ? JSON.parse(edcrApi) : false;
@@ -12020,7 +12020,7 @@ const NewBuildingPermit = () => {
12020
12020
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
12021
12021
  });
12022
12022
  config.indexRoute = "docs-required";
12023
- useEffect(() => {
12023
+ useEffect$1(() => {
12024
12024
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
12025
12025
  clearParams();
12026
12026
  sessionStorage.setItem("isPermitApplication", false);
@@ -12210,7 +12210,7 @@ const OCBuildingPermit = () => {
12210
12210
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
12211
12211
  });
12212
12212
  config.indexRoute = "docs-required";
12213
- useEffect(() => {
12213
+ useEffect$1(() => {
12214
12214
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
12215
12215
  clearParams();
12216
12216
  sessionStorage.setItem("isPermitApplication", false);
@@ -12401,7 +12401,7 @@ const StakeholderRegistration = () => {
12401
12401
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
12402
12402
  });
12403
12403
  config.indexRoute = "stakeholder-docs-required";
12404
- useEffect(() => {
12404
+ useEffect$1(() => {
12405
12405
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
12406
12406
  clearParams();
12407
12407
  sessionStorage.setItem("isPermitApplication", false);
@@ -12621,7 +12621,7 @@ const ActionModal = ({
12621
12621
  const selectFile = e => {
12622
12622
  setFile(e.target.files[0]);
12623
12623
  };
12624
- useEffect(() => {
12624
+ useEffect$1(() => {
12625
12625
  switch (action) {
12626
12626
  case "APPROVE":
12627
12627
  {
@@ -12671,7 +12671,7 @@ const ActionModal = ({
12671
12671
  }));
12672
12672
  }
12673
12673
  }, [action, uploadedFile, error]);
12674
- useEffect(() => {
12674
+ useEffect$1(() => {
12675
12675
  (async () => {
12676
12676
  setError(null);
12677
12677
  if (file) {
@@ -13183,7 +13183,7 @@ const ScruntinyDetails = ({
13183
13183
  };
13184
13184
  const [showSanctionFee, setShowSanctionFee] = useState(false);
13185
13185
  const [showApplicationFee, setshowApplicationFee] = useState(false);
13186
- useEffect(() => {
13186
+ useEffect$1(() => {
13187
13187
  (async () => {
13188
13188
  setError(null);
13189
13189
  if (file && file !== null && file !== void 0 && file.type) {
@@ -13210,10 +13210,10 @@ const ScruntinyDetails = ({
13210
13210
  }
13211
13211
  })();
13212
13212
  }, [file]);
13213
- useEffect(() => {
13213
+ useEffect$1(() => {
13214
13214
  sessionStorage.setItem("uploadedFileLess", JSON.stringify(uploadedFileLess));
13215
13215
  }, [uploadedFileLess]);
13216
- useEffect(() => {
13216
+ useEffect$1(() => {
13217
13217
  var _additionalDetails$le, _additionalDetails$se, _additionalDetails$se2, _additionalDetails$se3, _additionalDetails$se4, _additionalDetails$se5, _additionalDetails$se6;
13218
13218
  if (additionalDetails !== null && additionalDetails !== void 0 && (_additionalDetails$le = additionalDetails.lessAdjustmentFeeFiles) !== null && _additionalDetails$le !== void 0 && _additionalDetails$le.length) {
13219
13219
  const fileStoresIds = additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.lessAdjustmentFeeFiles.map((document, index) => {
@@ -13852,7 +13852,7 @@ const BpaApplicationDetail = () => {
13852
13852
  };
13853
13853
  const isValidMobileNumber = mobileNumber.length === 10 && /^[0-9]+$/.test(mobileNumber);
13854
13854
  const citizenvalidations = sessionStorage.getItem("CitizenConsentdocFilestoreid") ? true : false;
13855
- useEffect(() => {
13855
+ useEffect$1(() => {
13856
13856
  if (!bpaDocsLoading && !isLoading) {
13857
13857
  var _bpaDocs$BPA;
13858
13858
  let filtredBpaDocs = [];
@@ -13887,7 +13887,7 @@ const BpaApplicationDetail = () => {
13887
13887
  }
13888
13888
  }
13889
13889
  }, [bpaDocs, data]);
13890
- useEffect(() => {
13890
+ useEffect$1(() => {
13891
13891
  var _data$applicationData11, _data$applicationData12;
13892
13892
  if ((data === null || data === void 0 ? void 0 : (_data$applicationData11 = data.applicationData) === null || _data$applicationData11 === void 0 ? void 0 : _data$applicationData11.status) == "CITIZEN_APPROVAL_INPROCESS" || (data === null || data === void 0 ? void 0 : (_data$applicationData12 = data.applicationData) === null || _data$applicationData12 === void 0 ? void 0 : _data$applicationData12.status) == "INPROGRESS") setCheckBoxVisible(true);else setCheckBoxVisible(false);
13893
13893
  }, [data]);
@@ -13989,7 +13989,7 @@ const BpaApplicationDetail = () => {
13989
13989
  });
13990
13990
  window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
13991
13991
  }
13992
- useEffect(() => {
13992
+ useEffect$1(() => {
13993
13993
  switch (selectedAction) {
13994
13994
  case "APPROVE":
13995
13995
  case "SEND_TO_ARCHITECT":
@@ -14846,7 +14846,7 @@ const BPASendToArchitect = ({
14846
14846
  sourceRefId: sourceRefId
14847
14847
  });
14848
14848
  const editApplication = window.location.href.includes("editApplication");
14849
- useEffect(async () => {
14849
+ useEffect$1(async () => {
14850
14850
  let isAlready = sessionStorage.getItem("BPA_IS_ALREADY_WENT_OFF_DETAILS");
14851
14851
  isAlready = isAlready ? JSON.parse(isAlready) : true;
14852
14852
  if (!isAlready && !isNocLoading && !isBpaSearchLoading && !isLoading) {
@@ -14903,7 +14903,7 @@ const BPASendToArchitect = ({
14903
14903
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
14904
14904
  });
14905
14905
  config.indexRoute = "check";
14906
- useEffect(() => {
14906
+ useEffect$1(() => {
14907
14907
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
14908
14908
  clearParams();
14909
14909
  sessionStorage.setItem("isPermitApplication", false);
@@ -15091,7 +15091,7 @@ const OCSendToArchitect = ({
15091
15091
  });
15092
15092
  const editApplication = window.location.href.includes("editApplication");
15093
15093
  const tlTrade = JSON.parse(sessionStorage.getItem("tl-trade")) || {};
15094
- useEffect(async () => {
15094
+ useEffect$1(async () => {
15095
15095
  let isAlready = sessionStorage.getItem("BPA_IS_ALREADY_WENT_OFF_DETAILS");
15096
15096
  isAlready = isAlready ? JSON.parse(isAlready) : true;
15097
15097
  if (!isAlready && !isNocLoading && !isBpaSearchLoading && !isLoading) {
@@ -15148,7 +15148,7 @@ const OCSendToArchitect = ({
15148
15148
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
15149
15149
  });
15150
15150
  config.indexRoute = "check";
15151
- useEffect(() => {
15151
+ useEffect$1(() => {
15152
15152
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
15153
15153
  clearParams();
15154
15154
  sessionStorage.setItem("isPermitApplication", false);
@@ -15251,7 +15251,7 @@ const BPASendBackToCitizen = ({
15251
15251
  sourceRefId: sourceRefId
15252
15252
  });
15253
15253
  const editApplication = window.location.href.includes("editApplication");
15254
- useEffect(async () => {
15254
+ useEffect$1(async () => {
15255
15255
  let isAlready = sessionStorage.getItem("BPA_IS_ALREADY_WENT_OFF_DETAILS");
15256
15256
  isAlready = isAlready ? JSON.parse(isAlready) : true;
15257
15257
  if (!isAlready && !isNocLoading && !isBpaSearchLoading && !isLoading) {
@@ -15307,7 +15307,7 @@ const BPASendBackToCitizen = ({
15307
15307
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
15308
15308
  });
15309
15309
  config.indexRoute = "check";
15310
- useEffect(() => {
15310
+ useEffect$1(() => {
15311
15311
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
15312
15312
  clearParams();
15313
15313
  sessionStorage.setItem("isPermitApplication", false);
@@ -15410,7 +15410,7 @@ const OCSendBackToCitizen = ({
15410
15410
  sourceRefId: sourceRefId
15411
15411
  });
15412
15412
  const editApplication = window.location.href.includes("editApplication");
15413
- useEffect(async () => {
15413
+ useEffect$1(async () => {
15414
15414
  let isAlready = sessionStorage.getItem("BPA_IS_ALREADY_WENT_OFF_DETAILS");
15415
15415
  isAlready = isAlready ? JSON.parse(isAlready) : true;
15416
15416
  if (!isAlready && !isNocLoading && !isBpaSearchLoading && !isLoading && !isMdmsLoading) {
@@ -15464,7 +15464,7 @@ const OCSendBackToCitizen = ({
15464
15464
  config = config.concat(obj.body.filter(a => !a.hideInCitizen));
15465
15465
  });
15466
15466
  config.indexRoute = "check";
15467
- useEffect(() => {
15467
+ useEffect$1(() => {
15468
15468
  if (sessionStorage.getItem("isPermitApplication") && sessionStorage.getItem("isPermitApplication") == "true") {
15469
15469
  clearParams();
15470
15470
  sessionStorage.setItem("isPermitApplication", false);
@@ -16127,10 +16127,11 @@ const Inbox$2 = ({
16127
16127
  const CompetencyDescriptions = {
16128
16128
  ARCHITECT: "The registered architect shall be competent to carry out the work related to the building/development permit as given below:\n" + "a. Prepare and sign all plans, sub-division/layout plans and information connected with building permit.\n" + "b. Layout Plans of plots measuring upto 1 Ha. in size.\n" + "c. Issuing certificate of supervision and completion of all buildings.\n" + "d. Issuing certificate of supervision for development permit of Layout Plans of plots measuring upto 1 Ha. in size.",
16129
16129
  ENGINEER: "The registered engineer shall be competent to carry out the work related to the building/development permit as given below:\n" + "a. Prepare and sign building plans of plots up to 500 sq.m.(for all types of Buildings), structural drawings and service plans and information connected with building permit;\n" + "a. Preparation of structural drawings, details and calculations of buildings on plot up to 500 m2 and up to 5 storeys or 16 m in height, all service plans and related information.\n" + "b. Issuing certificate of supervision and completion of plots upto 500 sq.m.(for all types of Buildings) pertaining including structure and building services.",
16130
- "STRUCTURAL ENGINEER": "The registered structural engineer shall be competent to prepare the structural design, calculations and details for all buildings and undertake their supervision.\n" + "In case of buildings having special structural features, as decided by the Authority, they shall be designed only by Structural engineers.",
16131
- "TOWNPLANNER": "The registered town planner shall be competent to carry out the work related to the development permit as given below:\n" + "a. Preparation of plans for land sub-division/ layout and related information connected development permit for all areas more than 1 Hectare.\n" + "b. Issuing of certificate of supervision for development of land of all areas.\n" + "c. Prepare and sign building plans of plots up to 500 sq.m.(for all types of Buildings), structural drawings and service plans and information connected with building permit;\n" + "Issuing certificate of supervision and completion of plots upto 500 sq.m.(for all types of Buildings).\n" + "NOTE — However, for land layouts for development permit above 5 hectare in area, landscape architect shall also be associated, and for land development infrastructural services for roads, water supplies, sewerage / drainage, electrification, etc, the registered engineers for utility services shall be associated.",
16130
+ STRUCTURALENGINEER: "The registered structural engineer shall be competent to prepare the structural design, calculations and details for all buildings and undertake their supervision.\n" + "In case of buildings having special structural features, as decided by the Authority, they shall be designed only by Structural engineers.",
16131
+ TOWNPLANNER: "The registered town planner shall be competent to carry out the work related to the development permit as given below:\n" + "a. Preparation of plans for land sub-division/ layout and related information connected development permit for all areas more than 1 Hectare.\n" + "b. Issuing of certificate of supervision for development of land of all areas.\n" + "c. Prepare and sign building plans of plots up to 500 sq.m.(for all types of Buildings), structural drawings and service plans and information connected with building permit;\n" + "Issuing certificate of supervision and completion of plots upto 500 sq.m.(for all types of Buildings).\n" + "NOTE — However, for land layouts for development permit above 5 hectare in area, landscape architect shall also be associated, and for land development infrastructural services for roads, water supplies, sewerage / drainage, electrification, etc, the registered engineers for utility services shall be associated.",
16132
16132
  "LANDSCAPE ARCHITECT": "The registered landscape architect shall be competent to carry out the work related to landscape design for building/development permit for land areas 5 hectares and above. In case of metro-cities, this limit of land area shall be 2 hectares and above.\n" + "NOTE — For smaller areas below the limits indicated above, association of landscape architect may also be considered from the point of view of desired landscape development.",
16133
- "URBAN DESIGNER": "The registered urban designer shall be competent to carry out the work related to urban design for city areas more than 5 hectares and campus area more than 2 hectares. He/She shall also be competent to carry out the work of urban renewal for all blighted/congested areas.\n" + "NOTE — For smaller areas below the limits indicated above, association of urban designer may be considered from the point of view of desired urban design."
16133
+ "URBAN DESIGNER": "The registered urban designer shall be competent to carry out the work related to urban design for city areas more than 5 hectares and campus area more than 2 hectares. He/She shall also be competent to carry out the work of urban renewal for all blighted/congested areas.\n" + "NOTE — For smaller areas below the limits indicated above, association of urban designer may be considered from the point of view of desired urban design.",
16134
+ "BUILDING DESIGNER & SUPERVISOR": "The Registered Building Designer and Supervisor shall be competent to carry out the work related to the building / development permit.\n" + "A. Prepare and (sign in case of plots upto 250 Sq.Mtr. Only) plans, sub division/layout plans and information connected with building permit.\n" + "B. Issuing certificate of supervision and completion of (In case of plots upto 250 Sq.mtr. only) buildings."
16134
16135
  };
16135
16136
 
16136
16137
  const localStoreSupport = () => {
@@ -16335,7 +16336,10 @@ const Urls = {
16335
16336
  download_pdf: "/egov-pdf/download/UC/mcollect-challan",
16336
16337
  receipt_download: "/egov-pdf/download/PAYMENT/consolidatedreceipt",
16337
16338
  bill_download: "/egov-pdf/download/BILL/consolidatedbill",
16338
- count: "/echallan-services/eChallan/v1/_count"
16339
+ count: "/echallan-services/eChallan/v1/_count",
16340
+ reciept_search: "/collection-services/payments/:businessService/_search",
16341
+ generate_pdf: "/pdf-service/v1/_create",
16342
+ file_fetch: "/filestore/v1/files/url"
16339
16343
  },
16340
16344
  hrms: {
16341
16345
  search: "/egov-hrms/employees/_search",
@@ -19208,12 +19212,13 @@ const LicenseType = ({
19208
19212
  formData = JSON.parse(sessionStorage.getItem("BPAREGintermediateValue"));
19209
19213
  sessionStorage.setItem("BPAREGintermediateValue", null);
19210
19214
  } else formData = formData;
19215
+ console.log("formData", formData);
19211
19216
  let index = window.location.href.split("/").pop();
19212
19217
  const tenantId = Digit.ULBService.getCurrentTenantId();
19213
19218
  const stateId = Digit.ULBService.getStateId();
19214
19219
  const [qualificationType, setQualificationType] = useState(() => {
19215
- var _formData;
19216
- return ((_formData = formData) === null || _formData === void 0 ? void 0 : _formData.qualificationType) || "B-Arch";
19220
+ var _formData, _formData$LicneseType;
19221
+ return ((_formData = formData) === null || _formData === void 0 ? void 0 : (_formData$LicneseType = _formData.LicneseType) === null || _formData$LicneseType === void 0 ? void 0 : _formData$LicneseType.qualificationType) || "B-Arch";
19217
19222
  });
19218
19223
  const [LicenseType, setLicenseType] = useState(((_formData2 = formData) === null || _formData2 === void 0 ? void 0 : (_formData2$LicneseTyp = _formData2.LicneseType) === null || _formData2$LicneseTyp === void 0 ? void 0 : _formData2$LicneseTyp.LicenseType) || ((_formData3 = formData) === null || _formData3 === void 0 ? void 0 : (_formData3$formData = _formData3.formData) === null || _formData3$formData === void 0 ? void 0 : (_formData3$formData$L = _formData3$formData.LicneseType) === null || _formData3$formData$L === void 0 ? void 0 : _formData3$formData$L.LicenseType) || "");
19219
19224
  const [ArchitectNo, setArchitectNo] = useState(((_formData4 = formData) === null || _formData4 === void 0 ? void 0 : (_formData4$LicneseTyp = _formData4.LicneseType) === null || _formData4$LicneseTyp === void 0 ? void 0 : _formData4$LicneseTyp.ArchitectNo) || ((_formData5 = formData) === null || _formData5 === void 0 ? void 0 : (_formData5$formData = _formData5.formData) === null || _formData5$formData === void 0 ? void 0 : (_formData5$formData$L = _formData5$formData.LicneseType) === null || _formData5$formData$L === void 0 ? void 0 : _formData5$formData$L.ArchitectNo) || null);
@@ -19233,7 +19238,7 @@ const LicenseType = ({
19233
19238
  if (isopenlink) window.onunload = function () {
19234
19239
  sessionStorage.removeItem("Digit.BUILDING_PERMIT");
19235
19240
  };
19236
- useEffect(() => {
19241
+ useEffect$1(() => {
19237
19242
  if (qualificationType) {
19238
19243
  mapQualificationToLicense(qualificationType);
19239
19244
  }
@@ -19264,12 +19269,18 @@ const LicenseType = ({
19264
19269
  let license = null;
19265
19270
  if (qualification === "B-Arch") {
19266
19271
  setLicenseType(null);
19267
- } else if (qualification.name === "BE" || qualification.name === "B-Tech") {
19272
+ } else if (qualification.name === "BE") {
19268
19273
  license = getLicenseType().find(type => type.i18nKey.includes("ENGINEER"));
19274
+ } else if (qualification.name === "B-Tech") {
19275
+ if (!LicenseType || !getLicenseType().some(type => type.i18nKey === LicenseType.i18nKey)) {
19276
+ license = getLicenseType().find(type => type.i18nKey.includes("ENGINEER"));
19277
+ }
19269
19278
  } else if (qualification.name === "Diploma") {
19270
- license = getLicenseType().find(type => type.i18nKey.includes("TOWNPLANNER"));
19271
- } else if (qualification.name === "Building designer & supervisor") {
19272
- license = getLicenseType().find(type => type.i18nKey.includes("DESIGNER"));
19279
+ if (!LicenseType || !getLicenseType().some(type => type.i18nKey === LicenseType.i18nKey)) {
19280
+ license = getLicenseType().find(type => type.i18nKey.includes("TOWNPLANNER"));
19281
+ }
19282
+ } else if (qualification.name == "Building designer & supervisor") {
19283
+ license = getLicenseType().find(type => type.i18nKey.includes("SUPERVISOR"));
19273
19284
  }
19274
19285
  if (license) {
19275
19286
  setLicenseType(license);
@@ -19288,10 +19299,10 @@ const LicenseType = ({
19288
19299
  const input = e.target.value.trim();
19289
19300
  const pattern = /^CA(19[7-9][2-9]|20[0-9][0-9]|202[0-5])\d{5}$/;
19290
19301
  setArchitectNo(input);
19291
- if (!pattern.test(input) && input !== '') {
19292
- setErrorMessage('Invalid Council Number format! Format should be: CA<YEAR><5 DIGITS> (Year between 1972-2025) Example: CA20230012345');
19302
+ if (!pattern.test(input) && input !== "") {
19303
+ setErrorMessage("Invalid Council Number format! Format should be: CA<YEAR><5 DIGITS> (Year between 1972-2025) Example: CA20230012345");
19293
19304
  } else {
19294
- setErrorMessage('');
19305
+ setErrorMessage("");
19295
19306
  }
19296
19307
  }
19297
19308
  function goNext() {
@@ -19370,7 +19381,7 @@ const LicenseType = ({
19370
19381
  value: ArchitectNo,
19371
19382
  onChange: selectArchitectNo,
19372
19383
  onKeyPress: e => {
19373
- if (e.key === 'Enter') {
19384
+ if (e.key === "Enter") {
19374
19385
  e.preventDefault();
19375
19386
  }
19376
19387
  }
@@ -19466,7 +19477,7 @@ const LicenseDetails = ({
19466
19477
  } : "") || (formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta4 = formData.LicneseDetails) === null || _formData$LicneseDeta4 === void 0 ? void 0 : _formData$LicneseDeta4.gender) || (formData === null || formData === void 0 ? void 0 : (_formData$formData3 = formData.formData) === null || _formData$formData3 === void 0 ? void 0 : (_formData$formData3$L = _formData$formData3.LicneseDetails) === null || _formData$formData3$L === void 0 ? void 0 : _formData$formData3$L.gender));
19467
19478
  const [mobileNumber, setMobileNumber] = useState((!isOpenLinkFlow ? userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info4 = userInfo.info) === null || _userInfo$info4 === void 0 ? void 0 : _userInfo$info4.mobileNumber : "") || (formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta5 = formData.LicneseDetails) === null || _formData$LicneseDeta5 === void 0 ? void 0 : _formData$LicneseDeta5.mobileNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$formData4 = formData.formData) === null || _formData$formData4 === void 0 ? void 0 : (_formData$formData4$L = _formData$formData4.LicneseDetails) === null || _formData$formData4$L === void 0 ? void 0 : _formData$formData4$L.mobileNumber) || "");
19468
19479
  const [PanNumber, setPanNumber] = useState((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta6 = formData.LicneseDetails) === null || _formData$LicneseDeta6 === void 0 ? void 0 : _formData$LicneseDeta6.PanNumber) || (formData === null || formData === void 0 ? void 0 : (_formData$formData5 = formData.formData) === null || _formData$formData5 === void 0 ? void 0 : (_formData$formData5$L = _formData$formData5.LicneseDetails) === null || _formData$formData5$L === void 0 ? void 0 : _formData$formData5$L.PanNumber) || "");
19469
- useEffect(() => {
19480
+ useEffect$1(() => {
19470
19481
  var _userDetails$user4, _userDetails$user4$;
19471
19482
  if (!(gender !== null && gender !== void 0 && gender.code) && userDetails !== null && userDetails !== void 0 && (_userDetails$user4 = userDetails.user) !== null && _userDetails$user4 !== void 0 && (_userDetails$user4$ = _userDetails$user4[0]) !== null && _userDetails$user4$ !== void 0 && _userDetails$user4$.gender && !isOpenLinkFlow) {
19472
19483
  var _userDetails$user5, _userDetails$user5$, _userDetails$user6, _userDetails$user6$, _userDetails$user7, _userDetails$user7$;
@@ -19679,11 +19690,15 @@ const CorrospondenceAddress = ({
19679
19690
  const [isDisableForNext, setIsDisableForNext] = useState(false);
19680
19691
  const tenantId = Digit.ULBService.getCurrentTenantId();
19681
19692
  const stateId = Digit.ULBService.getStateId();
19682
- let isopenlink = window.location.href.includes("/openlink/");
19683
- const isCitizenUrl = Digit.Utils.browser.isMobile() ? true : false;
19684
- if (isopenlink) window.onunload = function () {
19685
- sessionStorage.removeItem("Digit.BUILDING_PERMIT");
19686
- };
19693
+ const isopenlink = window.location.href.includes("/openlink/");
19694
+ const isMobileView = Digit.Utils.browser.isMobile() ? true : false;
19695
+ useEffect(() => {
19696
+ if (isOpenLink) {
19697
+ window.onunload = () => {
19698
+ sessionStorage.removeItem("Digit.BUILDING_PERMIT");
19699
+ };
19700
+ }
19701
+ }, [isOpenLink]);
19687
19702
  function selectChecked(e) {
19688
19703
  if (isAddressSame == false) {
19689
19704
  var _formData$LicneseDeta, _formData$LicneseDeta2, _formData$formData3, _formData$formData3$L;
@@ -19701,7 +19716,7 @@ const CorrospondenceAddress = ({
19701
19716
  const goNext = () => {
19702
19717
  var _formData$result, _formData$result$Lice;
19703
19718
  if (!(formData !== null && formData !== void 0 && formData.result && formData !== null && formData !== void 0 && (_formData$result = formData.result) !== null && _formData$result !== void 0 && (_formData$result$Lice = _formData$result.Licenses[0]) !== null && _formData$result$Lice !== void 0 && _formData$result$Lice.id)) {
19704
- var _formData$LicneseDeta3, _formData$LicneseDeta4, _formData$LicneseDeta5, _formData$LicneseDeta6, _formData$LicneseDeta7, _formData$LicneseDeta8, _formData$LicneseDeta9, _formData$LicneseType, _formData$LicneseType2, _formData$LicneseType3, _formData$LicneseType4, _formData$LicneseType5;
19719
+ var _formData$LicneseDeta3, _formData$LicneseDeta4, _formData$LicneseDeta5, _formData$LicneseDeta6, _formData$LicneseDeta7, _formData$LicneseDeta8, _formData$LicneseDeta9, _formData$LicneseDeta10, _formData$LicneseType, _formData$LicneseType2, _formData$LicneseType3, _formData$LicneseType4, _formData$LicneseType5, _formData$LicneseDeta11, _formData$LicneseDeta12, _formData$LicneseDeta13, _formData$LicneseDeta14, _formData$LicneseDeta15;
19705
19720
  setIsDisableForNext(true);
19706
19721
  let payload = {
19707
19722
  "Licenses": [{
@@ -19710,11 +19725,13 @@ const CorrospondenceAddress = ({
19710
19725
  "gender": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta3 = formData.LicneseDetails) === null || _formData$LicneseDeta3 === void 0 ? void 0 : (_formData$LicneseDeta4 = _formData$LicneseDeta3.gender) === null || _formData$LicneseDeta4 === void 0 ? void 0 : _formData$LicneseDeta4.code,
19711
19726
  "mobileNumber": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta5 = formData.LicneseDetails) === null || _formData$LicneseDeta5 === void 0 ? void 0 : _formData$LicneseDeta5.mobileNumber,
19712
19727
  "name": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta6 = formData.LicneseDetails) === null || _formData$LicneseDeta6 === void 0 ? void 0 : _formData$LicneseDeta6.name,
19713
- "dob": null,
19728
+ "dob": "",
19714
19729
  "emailId": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta7 = formData.LicneseDetails) === null || _formData$LicneseDeta7 === void 0 ? void 0 : _formData$LicneseDeta7.email,
19715
19730
  "permanentAddress": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta8 = formData.LicneseDetails) === null || _formData$LicneseDeta8 === void 0 ? void 0 : _formData$LicneseDeta8.PermanentAddress,
19716
19731
  "correspondenceAddress": Correspondenceaddress,
19717
- "pan": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta9 = formData.LicneseDetails) === null || _formData$LicneseDeta9 === void 0 ? void 0 : _formData$LicneseDeta9.PanNumber
19732
+ ...((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta9 = formData.LicneseDetails) === null || _formData$LicneseDeta9 === void 0 ? void 0 : _formData$LicneseDeta9.PanNumber) && {
19733
+ "pan": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta10 = formData.LicneseDetails) === null || _formData$LicneseDeta10 === void 0 ? void 0 : _formData$LicneseDeta10.PanNumber
19734
+ })
19718
19735
  }],
19719
19736
  "subOwnerShipCategory": "INDIVIDUAL",
19720
19737
  "tradeUnits": [{
@@ -19725,9 +19742,13 @@ const CorrospondenceAddress = ({
19725
19742
  "isSelfCertificationRequired": formData !== null && formData !== void 0 && (_formData$LicneseType4 = formData.LicneseType) !== null && _formData$LicneseType4 !== void 0 && _formData$LicneseType4.selfCertification ? formData === null || formData === void 0 ? void 0 : (_formData$LicneseType5 = formData.LicneseType) === null || _formData$LicneseType5 === void 0 ? void 0 : _formData$LicneseType5.selfCertification : null
19726
19743
  },
19727
19744
  "address": {
19728
- "city": "",
19729
- "landmark": "",
19730
- "pincode": ""
19745
+ ...((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta11 = formData.LicneseDetails) === null || _formData$LicneseDeta11 === void 0 ? void 0 : _formData$LicneseDeta11.City) && {
19746
+ "city": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta12 = formData.LicneseDetails) === null || _formData$LicneseDeta12 === void 0 ? void 0 : _formData$LicneseDeta12.City
19747
+ }),
19748
+ ...((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta13 = formData.LicneseDetails) === null || _formData$LicneseDeta13 === void 0 ? void 0 : _formData$LicneseDeta13.Landmark) && {
19749
+ "landmark": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta14 = formData.LicneseDetails) === null || _formData$LicneseDeta14 === void 0 ? void 0 : _formData$LicneseDeta14.Landmark
19750
+ }),
19751
+ "pincode": formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta15 = formData.LicneseDetails) === null || _formData$LicneseDeta15 === void 0 ? void 0 : _formData$LicneseDeta15.Pincode
19731
19752
  },
19732
19753
  "institution": null,
19733
19754
  "applicationDocuments": null
@@ -19819,7 +19840,7 @@ const PermanentAddress = ({
19819
19840
  userType,
19820
19841
  formData
19821
19842
  }) => {
19822
- var _formData$LicneseDeta, _formData$formData, _formData$formData$Li, _formData$LicneseDeta2, _formData$formData2, _formData$formData2$L, _formData$LicneseType3, _formData$LicneseType4;
19843
+ var _formData$LicneseDeta, _formData$formData, _formData$formData$Li, _formData$LicneseDeta2, _formData$formData2, _formData$formData2$L, _formData$LicneseDeta3, _formData$formData3, _formData$formData3$L, _formData$LicneseType3, _formData$LicneseType4;
19823
19844
  let validation = {};
19824
19845
  const onSkip = () => onSelect();
19825
19846
  const [PermanentAddress, setPermanentAddress] = useState((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta = formData.LicneseDetails) === null || _formData$LicneseDeta === void 0 ? void 0 : _formData$LicneseDeta.PermanentAddress) || (formData === null || formData === void 0 ? void 0 : (_formData$formData = formData.formData) === null || _formData$formData === void 0 ? void 0 : (_formData$formData$Li = _formData$formData.LicneseDetails) === null || _formData$formData$Li === void 0 ? void 0 : _formData$formData$Li.PermanentAddress));
@@ -19830,10 +19851,10 @@ const PermanentAddress = ({
19830
19851
  const isCitizenUrl = Digit.Utils.browser.isMobile() ? true : false;
19831
19852
  const [pinCode, setPinCode] = useState((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta2 = formData.LicneseDetails) === null || _formData$LicneseDeta2 === void 0 ? void 0 : _formData$LicneseDeta2.Pincode) || (formData === null || formData === void 0 ? void 0 : (_formData$formData2 = formData.formData) === null || _formData$formData2 === void 0 ? void 0 : (_formData$formData2$L = _formData$formData2.LicneseDetails) === null || _formData$formData2$L === void 0 ? void 0 : _formData$formData2$L.Pincode) || "");
19832
19853
  const [ulbType, setUlbType] = useState("");
19833
- const [selectedUlbTypes, setSelectedUlbTypes] = useState([]);
19854
+ const [selectedUlbTypes, setSelectedUlbTypes] = useState((formData === null || formData === void 0 ? void 0 : (_formData$LicneseDeta3 = formData.LicneseDetails) === null || _formData$LicneseDeta3 === void 0 ? void 0 : _formData$LicneseDeta3.Ulb) || (formData === null || formData === void 0 ? void 0 : (_formData$formData3 = formData.formData) === null || _formData$formData3 === void 0 ? void 0 : (_formData$formData3$L = _formData$formData3.LicneseDetails) === null || _formData$formData3$L === void 0 ? void 0 : _formData$formData3$L.Ulb) || []);
19834
19855
  console.log("formData", formData);
19835
19856
  const tenantName = Digit.SessionStorage.get("OBPS_TENANTS").map(tenant => tenant.name);
19836
- useEffect(() => {
19857
+ useEffect$1(() => {
19837
19858
  var _formData$LicneseType, _formData$LicneseType2;
19838
19859
  const role = formData === null || formData === void 0 ? void 0 : (_formData$LicneseType = formData.LicneseType) === null || _formData$LicneseType === void 0 ? void 0 : (_formData$LicneseType2 = _formData$LicneseType.LicenseType) === null || _formData$LicneseType2 === void 0 ? void 0 : _formData$LicneseType2.role;
19839
19860
  if (role == "BPA_ARCHITECT") {
@@ -19884,11 +19905,14 @@ const PermanentAddress = ({
19884
19905
  Ulb: selectedUlbTypes
19885
19906
  });else {
19886
19907
  let data = formData === null || formData === void 0 ? void 0 : formData.formData;
19908
+ console.log("data", data);
19887
19909
  data.LicneseDetails.PermanentAddress = PermanentAddress;
19910
+ data.LicneseDetails.Ulb = selectedUlbTypes;
19911
+ data.LicneseDetails.Pincode = pinCode;
19888
19912
  onSelect("", formData);
19889
19913
  }
19890
19914
  };
19891
- useEffect(() => {}, [selectedUlbTypes]);
19915
+ useEffect$1(() => {}, [selectedUlbTypes]);
19892
19916
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
19893
19917
  className: isopenlink ? "OpenlinkContainer" : ""
19894
19918
  }, isopenlink && /*#__PURE__*/React.createElement(BackButton, {
@@ -19965,7 +19989,7 @@ const StakeholderDocuments = ({
19965
19989
  data,
19966
19990
  isLoading
19967
19991
  } = Digit.Hooks.obps.useMDMS(stateId, "StakeholderRegistraition", "TradeTypetoRoleMapping");
19968
- useEffect(() => {
19992
+ useEffect$1(() => {
19969
19993
  var _data$StakeholderRegi, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
19970
19994
  let filtredBpaDocs = [];
19971
19995
  if (data !== null && data !== void 0 && (_data$StakeholderRegi = data.StakeholderRegistraition) !== null && _data$StakeholderRegi !== void 0 && _data$StakeholderRegi.TradeTypetoRoleMapping) {
@@ -19997,7 +20021,7 @@ const StakeholderDocuments = ({
19997
20021
  };
19998
20022
  const onSkip = () => onSelect();
19999
20023
  function onAdd() {}
20000
- useEffect(() => {
20024
+ useEffect$1(() => {
20001
20025
  let count = 0;
20002
20026
  bpaTaxDocuments.map(doc => {
20003
20027
  let isRequired = false;
@@ -20081,7 +20105,7 @@ function SelectDocument$2({
20081
20105
  function selectfile(e) {
20082
20106
  setFile(e.target.files[0]);
20083
20107
  }
20084
- useEffect(() => {
20108
+ useEffect$1(() => {
20085
20109
  setDocuments(prev => {
20086
20110
  const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (doc === null || doc === void 0 ? void 0 : doc.code));
20087
20111
  if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
@@ -20097,7 +20121,7 @@ function SelectDocument$2({
20097
20121
  }];
20098
20122
  });
20099
20123
  }, [uploadedFile, file]);
20100
- useEffect(() => {
20124
+ useEffect$1(() => {
20101
20125
  (async () => {
20102
20126
  setError(null);
20103
20127
  if (file) {
@@ -26188,7 +26212,7 @@ const OBPSDocumentsEmp = ({
26188
26212
  } : "";
26189
26213
  data && data !== null && data !== void 0 && data.FieldReports && (data === null || data === void 0 ? void 0 : data.FieldReports.length) > 0 && documents.length > 0 ? setFieldReports(data.FieldReports) : "";
26190
26214
  };
26191
- useEffect(() => {
26215
+ useEffect$1(() => {
26192
26216
  goNext();
26193
26217
  }, [documents]);
26194
26218
  if (isLoading) {
@@ -26292,7 +26316,7 @@ function SelectDocument$3({
26292
26316
  }
26293
26317
  }
26294
26318
  };
26295
- useEffect(() => {
26319
+ useEffect$1(() => {
26296
26320
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.documentType && (documents.filter(ob => ob.documentType === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentType)).length == 0 || newArray.filter(ob => {
26297
26321
  var _ob$file;
26298
26322
  return (ob === null || ob === void 0 ? void 0 : (_ob$file = ob.file) === null || _ob$file === void 0 ? void 0 : _ob$file.documentType) === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.documentType);
@@ -26337,7 +26361,7 @@ function SelectDocument$3({
26337
26361
  removeError();
26338
26362
  }
26339
26363
  }, [uploadedFile, selectedDocument, isHidden]);
26340
- useEffect(() => {
26364
+ useEffect$1(() => {
26341
26365
  var _formData$documents, _formData$documents$d;
26342
26366
  if (doc && (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : (_formData$documents$d = _formData$documents.documents) === null || _formData$documents$d === void 0 ? void 0 : _formData$documents$d.length) > 0) {
26343
26367
  for (let i = 0; i < (formData === null || formData === void 0 ? void 0 : (_formData$documents2 = formData.documents) === null || _formData$documents2 === void 0 ? void 0 : (_formData$documents2$ = _formData$documents2.documents) === null || _formData$documents2$ === void 0 ? void 0 : _formData$documents2$.length); i++) {
@@ -26438,17 +26462,17 @@ const InspectionReport$1 = ({
26438
26462
  const removeUnit = unit => {
26439
26463
  setFieldReports(prev => prev.filter(o => o.key != unit.key));
26440
26464
  };
26441
- useEffect(() => {
26465
+ useEffect$1(() => {
26442
26466
  const data = FieldReports.map(e => {
26443
26467
  return e;
26444
26468
  });
26445
26469
  onSelect(config === null || config === void 0 ? void 0 : config.key, data);
26446
26470
  sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
26447
26471
  }, [FieldReports]);
26448
- useEffect(() => {
26472
+ useEffect$1(() => {
26449
26473
  onSelect("tradedetils1", previousLicenseDetails);
26450
26474
  }, [previousLicenseDetails]);
26451
- useEffect(() => {
26475
+ useEffect$1(() => {
26452
26476
  let ques = [];
26453
26477
  let documentlist = [];
26454
26478
  bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
@@ -26566,10 +26590,10 @@ const InspectionReportForm = _props => {
26566
26590
  var _formData$ownershipCa;
26567
26591
  return formData === null || formData === void 0 ? void 0 : (_formData$ownershipCa = formData.ownershipCategory) === null || _formData$ownershipCa === void 0 ? void 0 : _formData$ownershipCa.code.includes("INDIVIDUAL");
26568
26592
  }, [formData === null || formData === void 0 ? void 0 : (_formData$ownershipCa2 = formData.ownershipCategory) === null || _formData$ownershipCa2 === void 0 ? void 0 : _formData$ownershipCa2.code]);
26569
- useEffect(() => {
26593
+ useEffect$1(() => {
26570
26594
  trigger();
26571
26595
  }, []);
26572
- useEffect(() => {
26596
+ useEffect$1(() => {
26573
26597
  const keys = Object.keys(formValue);
26574
26598
  const part = {};
26575
26599
  keys.forEach(key => part[key] = unit[key]);
@@ -26606,7 +26630,7 @@ const InspectionReportForm = _props => {
26606
26630
  trigger();
26607
26631
  }
26608
26632
  }, [formValue]);
26609
- useEffect(() => {
26633
+ useEffect$1(() => {
26610
26634
  var _formState$errors$con;
26611
26635
  if (Object.keys(errors).length && !lodash.isEqual(((_formState$errors$con = formState.errors[config.key]) === null || _formState$errors$con === void 0 ? void 0 : _formState$errors$con.type) || {}, errors)) {
26612
26636
  setError(config.key, {
@@ -26870,7 +26894,7 @@ const OBPSEmployeeHomeCard = () => {
26870
26894
  enabled: !!checkingForBPARoles
26871
26895
  }
26872
26896
  });
26873
- useEffect(() => {
26897
+ useEffect$1(() => {
26874
26898
  if (!isInboxLoading && !isInboxLoadingOfStakeholder) {
26875
26899
  const bpaCount = dataOfBPA !== null && dataOfBPA !== void 0 && dataOfBPA.totalCount ? dataOfBPA === null || dataOfBPA === void 0 ? void 0 : dataOfBPA.totalCount : 0;
26876
26900
  const stakeHolderCount = dataOfStakeholder !== null && dataOfStakeholder !== void 0 && dataOfStakeholder.totalCount ? dataOfStakeholder === null || dataOfStakeholder === void 0 ? void 0 : dataOfStakeholder.totalCount : 0;
@@ -26878,7 +26902,7 @@ const OBPSEmployeeHomeCard = () => {
26878
26902
  setTotalCountEs((dataOfBPA === null || dataOfBPA === void 0 ? void 0 : dataOfBPA.nearingSlaCount) || 0 + (dataOfStakeholder === null || dataOfStakeholder === void 0 ? void 0 : dataOfStakeholder.nearingSlaCount) || 0);
26879
26903
  }
26880
26904
  }, [dataOfBPA, dataOfStakeholder]);
26881
- useEffect(() => {
26905
+ useEffect$1(() => {
26882
26906
  if (location.pathname === "/digit-ui/employee") {
26883
26907
  Digit.SessionStorage.del("OBPS.INBOX");
26884
26908
  Digit.SessionStorage.del("STAKEHOLDER.INBOX");
@@ -27502,13 +27526,13 @@ const ActionModal$1 = ({
27502
27526
  const [financialYears, setFinancialYears] = useState([]);
27503
27527
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
27504
27528
  const [disableActionSubmit, setDisableActionSubmit] = useState(false);
27505
- useEffect(() => {
27529
+ useEffect$1(() => {
27506
27530
  if (financialYearsData && financialYearsData["egf-master"]) {
27507
27531
  var _financialYearsData$e;
27508
27532
  setFinancialYears((_financialYearsData$e = financialYearsData["egf-master"]) === null || _financialYearsData$e === void 0 ? void 0 : _financialYearsData$e["FinancialYear"]);
27509
27533
  }
27510
27534
  }, [financialYearsData]);
27511
- useEffect(() => {
27535
+ useEffect$1(() => {
27512
27536
  var _approverData$Employe;
27513
27537
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
27514
27538
  var _employee$user;
@@ -27521,7 +27545,7 @@ const ActionModal$1 = ({
27521
27545
  function selectFile(e) {
27522
27546
  setFile(e.target.files[0]);
27523
27547
  }
27524
- useEffect(() => {
27548
+ useEffect$1(() => {
27525
27549
  (async () => {
27526
27550
  setError(null);
27527
27551
  if (file) {
@@ -27593,7 +27617,7 @@ const ActionModal$1 = ({
27593
27617
  });
27594
27618
  }
27595
27619
  }
27596
- useEffect(() => {
27620
+ useEffect$1(() => {
27597
27621
  if (action) {
27598
27622
  if (action !== null && action !== void 0 && action.showFinancialYearsModal) {
27599
27623
  setConfig(configPTAssessProperty({
@@ -27712,13 +27736,13 @@ const ActionModal$2 = ({
27712
27736
  const [error, setError] = useState(null);
27713
27737
  const [financialYears, setFinancialYears] = useState([]);
27714
27738
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
27715
- useEffect(() => {
27739
+ useEffect$1(() => {
27716
27740
  if (financialYearsData && financialYearsData["egf-master"]) {
27717
27741
  var _financialYearsData$e;
27718
27742
  setFinancialYears((_financialYearsData$e = financialYearsData["egf-master"]) === null || _financialYearsData$e === void 0 ? void 0 : _financialYearsData$e["FinancialYear"]);
27719
27743
  }
27720
27744
  }, [financialYearsData]);
27721
- useEffect(() => {
27745
+ useEffect$1(() => {
27722
27746
  var _approverData$Employe;
27723
27747
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
27724
27748
  var _employee$user;
@@ -27731,7 +27755,7 @@ const ActionModal$2 = ({
27731
27755
  function selectFile(e) {
27732
27756
  setFile(e.target.files[0]);
27733
27757
  }
27734
- useEffect(() => {
27758
+ useEffect$1(() => {
27735
27759
  (async () => {
27736
27760
  setError(null);
27737
27761
  if (file) {
@@ -27770,7 +27794,7 @@ const ActionModal$2 = ({
27770
27794
  Licenses: [applicationData]
27771
27795
  });
27772
27796
  }
27773
- useEffect(() => {
27797
+ useEffect$1(() => {
27774
27798
  if (action) {
27775
27799
  setConfig(configTLApproverApplication({
27776
27800
  t,
@@ -27865,7 +27889,7 @@ const ActionModal$3 = ({
27865
27889
  const [uploadedFile, setUploadedFile] = useState(null);
27866
27890
  const [error, setError] = useState(null);
27867
27891
  const mobileView = Digit.Utils.browser.isMobile() ? true : false;
27868
- useEffect(() => {
27892
+ useEffect$1(() => {
27869
27893
  var _approverData$Employe;
27870
27894
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
27871
27895
  var _employee$user;
@@ -27878,7 +27902,7 @@ const ActionModal$3 = ({
27878
27902
  function selectFile(e) {
27879
27903
  setFile(e.target.files[0]);
27880
27904
  }
27881
- useEffect(() => {
27905
+ useEffect$1(() => {
27882
27906
  (async () => {
27883
27907
  setError(null);
27884
27908
  if (file) {
@@ -27923,7 +27947,7 @@ const ActionModal$3 = ({
27923
27947
  bpa: false
27924
27948
  });
27925
27949
  }
27926
- useEffect(() => {
27950
+ useEffect$1(() => {
27927
27951
  if (action) {
27928
27952
  setConfig(configBPAREGApproverApplication({
27929
27953
  t,
@@ -28051,7 +28075,7 @@ const ActionModal$4 = ({
28051
28075
  const [error, setError] = useState(null);
28052
28076
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
28053
28077
  const mobileView = Digit.Utils.browser.isMobile() ? true : false;
28054
- useEffect(() => {
28078
+ useEffect$1(() => {
28055
28079
  var _approverData$Employe;
28056
28080
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
28057
28081
  var _employee$user;
@@ -28064,7 +28088,7 @@ const ActionModal$4 = ({
28064
28088
  function selectFile(e) {
28065
28089
  setFile(e.target.files[0]);
28066
28090
  }
28067
- useEffect(() => {
28091
+ useEffect$1(() => {
28068
28092
  (async () => {
28069
28093
  setError(null);
28070
28094
  if (file) {
@@ -28267,7 +28291,7 @@ const ActionModal$4 = ({
28267
28291
  closeModal();
28268
28292
  alert(t("Please fill Inspection Date and Time"));
28269
28293
  };
28270
- useEffect(() => {
28294
+ useEffect$1(() => {
28271
28295
  setFilteredBlockReason(blockReason === null || blockReason === void 0 ? void 0 : blockReason.map(blockReason => ({
28272
28296
  code: blockReason === null || blockReason === void 0 ? void 0 : blockReason.code,
28273
28297
  name: blockReason === null || blockReason === void 0 ? void 0 : blockReason.value
@@ -28397,7 +28421,7 @@ const ActionModal$5 = ({
28397
28421
  const [error, setError] = useState(null);
28398
28422
  const mobileView = Digit.Utils.browser.isMobile() ? true : false;
28399
28423
  const history = useHistory();
28400
- useEffect(() => {
28424
+ useEffect$1(() => {
28401
28425
  var _approverData$Employe;
28402
28426
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
28403
28427
  var _employee$user;
@@ -28410,7 +28434,7 @@ const ActionModal$5 = ({
28410
28434
  function selectFile(e) {
28411
28435
  setFile(e.target.files[0]);
28412
28436
  }
28413
- useEffect(() => {
28437
+ useEffect$1(() => {
28414
28438
  (async () => {
28415
28439
  setError(null);
28416
28440
  if (file) {
@@ -28463,7 +28487,7 @@ const ActionModal$5 = ({
28463
28487
  isNoc: true
28464
28488
  });
28465
28489
  }
28466
- useEffect(() => {
28490
+ useEffect$1(() => {
28467
28491
  if (action) {
28468
28492
  setConfig(configNOCApproverApplication({
28469
28493
  t,
@@ -28594,7 +28618,7 @@ const ActionModal$6 = ({
28594
28618
  const [error, setError] = useState(null);
28595
28619
  const isMobile = window.Digit.Utils.browser.isMobile();
28596
28620
  const isEmployee = window.location.href.includes("/employee");
28597
- useEffect(() => {
28621
+ useEffect$1(() => {
28598
28622
  var _approverData$Employe;
28599
28623
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
28600
28624
  var _employee$user;
@@ -28607,7 +28631,7 @@ const ActionModal$6 = ({
28607
28631
  function selectFile(e) {
28608
28632
  setFile(e.target.files[0]);
28609
28633
  }
28610
- useEffect(() => {
28634
+ useEffect$1(() => {
28611
28635
  (async () => {
28612
28636
  setError(null);
28613
28637
  if (file) {
@@ -28762,7 +28786,7 @@ const ActionModal$6 = ({
28762
28786
  });
28763
28787
  }
28764
28788
  }
28765
- useEffect(() => {
28789
+ useEffect$1(() => {
28766
28790
  var _applicationData15, _applicationData15$pr, _applicationData16, _applicationData16$pr;
28767
28791
  if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : (_applicationData15$pr = _applicationData15.processInstance) === null || _applicationData15$pr === void 0 ? void 0 : _applicationData15$pr.businessService) == "DisconnectWSConnection" || ((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectSWConnection") {
28768
28792
  if (action) {
@@ -28878,7 +28902,7 @@ const ActionModal$7 = ({
28878
28902
  const [uploadedFile, setUploadedFile] = useState(null);
28879
28903
  const [error, setError] = useState(null);
28880
28904
  const [disableActionSubmit, setDisableActionSubmit] = useState(false);
28881
- useEffect(() => {
28905
+ useEffect$1(() => {
28882
28906
  var _approverData$Employe;
28883
28907
  setApprovers(approverData === null || approverData === void 0 ? void 0 : (_approverData$Employe = approverData.Employees) === null || _approverData$Employe === void 0 ? void 0 : _approverData$Employe.map(employee => {
28884
28908
  var _employee$user;
@@ -28891,7 +28915,7 @@ const ActionModal$7 = ({
28891
28915
  function selectFile(e) {
28892
28916
  setFile(e.target.files[0]);
28893
28917
  }
28894
- useEffect(() => {
28918
+ useEffect$1(() => {
28895
28919
  (async () => {
28896
28920
  setError(null);
28897
28921
  if (file) {
@@ -28949,7 +28973,7 @@ const ActionModal$7 = ({
28949
28973
  }]
28950
28974
  });
28951
28975
  }
28952
- useEffect(() => {
28976
+ useEffect$1(() => {
28953
28977
  if (action) {
28954
28978
  setConfig(configPTRApproverApplication({
28955
28979
  t,
@@ -29036,7 +29060,7 @@ const BPADocuments = ({
29036
29060
  isLoading: commonDocsLoading,
29037
29061
  data: commonDocs
29038
29062
  } = Digit.Hooks.obps.useMDMS(stateId, "common-masters", ["DocumentType"]);
29039
- useEffect(() => {
29063
+ useEffect$1(() => {
29040
29064
  var _bpaDocs$BPA, _filtredBpaDocs, _filtredBpaDocs$, _filtredBpaDocs$$docT;
29041
29065
  let filtredBpaDocs = [];
29042
29066
  if (bpaDocs !== null && bpaDocs !== void 0 && (_bpaDocs$BPA = bpaDocs.BPA) !== null && _bpaDocs$BPA !== void 0 && _bpaDocs$BPA.DocTypeMapping) {
@@ -29073,7 +29097,7 @@ const BPADocuments = ({
29073
29097
  sessionStorage.setItem("BPA_DOCUMENTS", JSON.stringify(documentsList));
29074
29098
  setBpaTaxDocuments(documentsList);
29075
29099
  }, [!bpaDocsLoading, !commonDocsLoading]);
29076
- useEffect(() => {
29100
+ useEffect$1(() => {
29077
29101
  let count = 0;
29078
29102
  bpaTaxDocuments.map(doc => {
29079
29103
  let isRequired = false;
@@ -29088,7 +29112,7 @@ const BPADocuments = ({
29088
29112
  });
29089
29113
  if ((count == "0" || count == 0) && documents.length > 0) setEnableSubmit(false);else setEnableSubmit(true);
29090
29114
  }, [documents, checkRequiredFields]);
29091
- useEffect(() => {
29115
+ useEffect$1(() => {
29092
29116
  if (applicationStatus === "DOC_VERIFICATION_INPROGRESS" && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
29093
29117
  }, [applicationData, bpaActionsDetails]);
29094
29118
  return /*#__PURE__*/React.createElement("div", {
@@ -29152,7 +29176,7 @@ function SelectDocument$4({
29152
29176
  function selectfiles(e) {
29153
29177
  e && setFile(e.file);
29154
29178
  }
29155
- useEffect(() => {
29179
+ useEffect$1(() => {
29156
29180
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
29157
29181
  setDocuments(prev => {
29158
29182
  var _documents$find;
@@ -29169,7 +29193,7 @@ function SelectDocument$4({
29169
29193
  });
29170
29194
  }
29171
29195
  }, [uploadedFile, selectedDocument]);
29172
- useEffect(() => {
29196
+ useEffect$1(() => {
29173
29197
  (async () => {
29174
29198
  if (selectArrayFiles.length > 0) {
29175
29199
  sessionStorage.removeItem("BPA_DOCUMENTS");
@@ -29190,7 +29214,7 @@ function SelectDocument$4({
29190
29214
  }
29191
29215
  })();
29192
29216
  }, [selectArrayFiles, selectedDocument]);
29193
- useEffect(() => {
29217
+ useEffect$1(() => {
29194
29218
  }, [file]);
29195
29219
  const getData = (index, state) => {
29196
29220
  let data = Object.fromEntries(state);
@@ -29292,7 +29316,7 @@ function SelectDocument$5({
29292
29316
  function selectfile(e) {
29293
29317
  e && setFile(e.file);
29294
29318
  }
29295
- useEffect(() => {
29319
+ useEffect$1(() => {
29296
29320
  var _doc$dropdownData, _doc$dropdownData$;
29297
29321
  if (doc !== null && doc !== void 0 && (_doc$dropdownData = doc.dropdownData) !== null && _doc$dropdownData !== void 0 && (_doc$dropdownData$ = _doc$dropdownData[0]) !== null && _doc$dropdownData$ !== void 0 && _doc$dropdownData$.code) {
29298
29322
  setNocDocuments(prev => {
@@ -29314,7 +29338,7 @@ function SelectDocument$5({
29314
29338
  });
29315
29339
  }
29316
29340
  }, [uploadedFile]);
29317
- useEffect(() => {
29341
+ useEffect$1(() => {
29318
29342
  (async () => {
29319
29343
  setError(null);
29320
29344
  if (file) {
@@ -29408,11 +29432,11 @@ const NOCDocuments = ({
29408
29432
  const [nocDocuments, setNocDocuments] = Digit.Hooks.useSessionStorage(noc === null || noc === void 0 ? void 0 : noc.nocType, []);
29409
29433
  const [error, setError] = useState(null);
29410
29434
  const isEmployee = window.location.href.includes("/employee/");
29411
- useEffect(() => {
29435
+ useEffect$1(() => {
29412
29436
  var _commonDocs$commonMa;
29413
29437
  setCommonDocMaping(commonDocs === null || commonDocs === void 0 ? void 0 : (_commonDocs$commonMa = commonDocs["common-masters"]) === null || _commonDocs$commonMa === void 0 ? void 0 : _commonDocs$commonMa.DocumentType);
29414
29438
  }, [commonDocs]);
29415
- useEffect(() => {
29439
+ useEffect$1(() => {
29416
29440
  var _filteredData, _filteredData$, _filteredData$$docTyp;
29417
29441
  let documents = [];
29418
29442
  let filteredData;
@@ -29455,7 +29479,7 @@ const NOCDocuments = ({
29455
29479
  setNocTaxDocuments(documentsList);
29456
29480
  }
29457
29481
  }, [nocDocs, commonDocMaping]);
29458
- useEffect(() => {
29482
+ useEffect$1(() => {
29459
29483
  if (bpaApplicationStatus === 'NOC_VERIFICATION_INPROGRESS' && (actions === null || actions === void 0 ? void 0 : actions.length) > 0) setCheckEnablingDocs(true);else setCheckEnablingDocs(false);
29460
29484
  }, [applicationData, bpaActionsDetails]);
29461
29485
  return /*#__PURE__*/React.createElement("div", {
@@ -29525,7 +29549,7 @@ const PermissionCheck = ({
29525
29549
  checked: false
29526
29550
  })));
29527
29551
  const [newApprovals, setNewApprovals, clearNewApprovals] = Digit.Hooks.useSessionStorage('OBPS_NEW_APPROVALS', []);
29528
- useEffect(() => {
29552
+ useEffect$1(() => {
29529
29553
  return () => {
29530
29554
  Digit.SessionStorage.del("OBPS_NEW_APPROVALS");
29531
29555
  Digit.SessionStorage.del("OBPS_APPROVAL_CHECKS");
@@ -30249,7 +30273,7 @@ const WSFeeEstimation = ({
30249
30273
  isMdmsLoading,
30250
30274
  data: mdmsRes
30251
30275
  } = Digit.Hooks.ws.useMDMS(stateCode, "BillingService", ["TaxHeadMaster"]);
30252
- useEffect(() => {
30276
+ useEffect$1(() => {
30253
30277
  var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
30254
30278
  const data = {
30255
30279
  ...(wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails)
@@ -32005,7 +32029,7 @@ const ApplicationDetails$1 = props => {
32005
32029
  isInfoLabel = false,
32006
32030
  clearDataDetails
32007
32031
  } = props;
32008
- useEffect(() => {
32032
+ useEffect$1(() => {
32009
32033
  if (showToast) {
32010
32034
  workflowDetails.revalidate();
32011
32035
  }
@@ -33154,7 +33178,7 @@ const BpaApplicationDetail$1 = () => {
33154
33178
  } = Digit.Hooks.obps.useBPADetailsPage(tenantId, {
33155
33179
  applicationNo: id
33156
33180
  });
33157
- useEffect(() => {
33181
+ useEffect$1(() => {
33158
33182
  if (!bpaDocsLoading && !isLoading) {
33159
33183
  var _bpaDocs$BPA;
33160
33184
  let filtredBpaDocs = [];
@@ -33313,7 +33337,7 @@ const BpaApplicationDetail$1 = () => {
33313
33337
  setShowToast(null);
33314
33338
  setError(null);
33315
33339
  };
33316
- useEffect(() => {
33340
+ useEffect$1(() => {
33317
33341
  setMutationHappened(false);
33318
33342
  clearSuccessData();
33319
33343
  }, []);
@@ -33646,7 +33670,7 @@ const Architectconcent = ({
33646
33670
  const zone = params === null || params === void 0 ? void 0 : (_params$additionalDet8 = params.additionalDetails) === null || _params$additionalDet8 === void 0 ? void 0 : _params$additionalDet8.zonenumber;
33647
33671
  const ulbgrade = params === null || params === void 0 ? void 0 : (_params$additionalDet9 = params.additionalDetails) === null || _params$additionalDet9 === void 0 ? void 0 : _params$additionalDet9.Ulblisttype;
33648
33672
  const TimeStamp = otpVerifiedTimestamp;
33649
- useEffect(() => {
33673
+ useEffect$1(() => {
33650
33674
  if (params !== null && params !== void 0 && params.additionalDetails && !params.additionalDetails.TimeStamp) {
33651
33675
  setParams(prevParams => ({
33652
33676
  ...prevParams,
@@ -33980,7 +34004,7 @@ const CheckPage = ({
33980
34004
  }
33981
34005
  };
33982
34006
  const isValidMobileNumber = mobileNumber.length === 10 && /^[0-9]+$/.test(mobileNumber);
33983
- useEffect(() => {
34007
+ useEffect$1(() => {
33984
34008
  (async () => {
33985
34009
  setError(null);
33986
34010
  if (file && file !== null && file !== void 0 && file.type) {
@@ -34007,11 +34031,11 @@ const CheckPage = ({
34007
34031
  }
34008
34032
  })();
34009
34033
  }, [file]);
34010
- useEffect(() => {
34034
+ useEffect$1(() => {
34011
34035
  sessionStorage.setItem("uploadedFileLess", JSON.stringify(uploadedFileLess));
34012
34036
  }, [uploadedFileLess]);
34013
34037
  const sitePhotographOne = value === null || value === void 0 ? void 0 : (_value$documents = value.documents) === null || _value$documents === void 0 ? void 0 : _value$documents.documents.find(doc => (doc === null || doc === void 0 ? void 0 : doc.documentType) === "SITEPHOTOGRAPH.ONE.ONE");
34014
- useEffect(() => {
34038
+ useEffect$1(() => {
34015
34039
  var _value$additionalDeta, _value$additionalDeta2, _datafromAPI$planDeta, _datafromAPI$planDeta2, _value$additionalDeta25, _mdmsData$BPA, _mdmsData$BPA2, _mdmsData$BPA3, _mdmsData$BPA4, _mdmsData$BPA4$MalbaC, _mdmsData$BPA5;
34016
34040
  if (value !== null && value !== void 0 && (_value$additionalDeta = value.additionalDetails) !== null && _value$additionalDeta !== void 0 && (_value$additionalDeta2 = _value$additionalDeta.lessAdjustmentFeeFiles) !== null && _value$additionalDeta2 !== void 0 && _value$additionalDeta2.length) {
34017
34041
  var _value$additionalDeta3;
@@ -35560,7 +35584,7 @@ const CheckPage$2 = ({
35560
35584
  });
35561
35585
  return subOccupancyString;
35562
35586
  }
35563
- useEffect(() => {
35587
+ useEffect$1(() => {
35564
35588
  switch (selectedAction) {
35565
35589
  case "FORWARD":
35566
35590
  setShowModal(true);
@@ -36227,7 +36251,7 @@ const EDCRAcknowledgement = props => {
36227
36251
  } = useTranslation();
36228
36252
  const history = useHistory();
36229
36253
  const [showToast, setShowToast] = useState(false);
36230
- useEffect(() => {
36254
+ useEffect$1(() => {
36231
36255
  var _props$data;
36232
36256
  if ((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) == "ERROR" && !showToast) setShowToast(true);
36233
36257
  }, [props === null || props === void 0 ? void 0 : (_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.data]);
@@ -36289,7 +36313,7 @@ const EDCRAcknowledgement = props => {
36289
36313
  isMdmsLoading,
36290
36314
  data: mdmsData
36291
36315
  } = Digit.Hooks.obps.useMDMS(state, "BPA", ["RiskTypeComputation"]);
36292
- useEffect(() => {
36316
+ useEffect$1(() => {
36293
36317
  var _homePageUrlLinks$BPA, _homePageUrlLinks$BPA2;
36294
36318
  if (!homePageUrlLinksLoading && (homePageUrlLinks === null || homePageUrlLinks === void 0 ? void 0 : (_homePageUrlLinks$BPA = homePageUrlLinks.BPA) === null || _homePageUrlLinks$BPA === void 0 ? void 0 : (_homePageUrlLinks$BPA2 = _homePageUrlLinks$BPA.homePageUrlLinks) === null || _homePageUrlLinks$BPA2 === void 0 ? void 0 : _homePageUrlLinks$BPA2.length) > 0) {
36295
36319
  var _homePageUrlLinks$BPA3, _homePageUrlLinks$BPA4;
@@ -36462,7 +36486,7 @@ const EDCRAcknowledgement$1 = props => {
36462
36486
  } = useTranslation();
36463
36487
  const history = useHistory();
36464
36488
  const [showToast, setShowToast] = useState(false);
36465
- useEffect(() => {
36489
+ useEffect$1(() => {
36466
36490
  var _props$data;
36467
36491
  if ((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) == "ERROR" && !showToast) setShowToast(true);
36468
36492
  }, [props === null || props === void 0 ? void 0 : (_props$data2 = props.data) === null || _props$data2 === void 0 ? void 0 : _props$data2.data]);
@@ -36523,7 +36547,7 @@ const EDCRAcknowledgement$1 = props => {
36523
36547
  isMdmsLoading,
36524
36548
  data: mdmsData
36525
36549
  } = Digit.Hooks.obps.useMDMS(state, "BPA", ["RiskTypeComputation"]);
36526
- useEffect(() => {
36550
+ useEffect$1(() => {
36527
36551
  var _homePageUrlLinks$BPA, _homePageUrlLinks$BPA2;
36528
36552
  if (!homePageUrlLinksLoading && (homePageUrlLinks === null || homePageUrlLinks === void 0 ? void 0 : (_homePageUrlLinks$BPA = homePageUrlLinks.BPA) === null || _homePageUrlLinks$BPA === void 0 ? void 0 : (_homePageUrlLinks$BPA2 = _homePageUrlLinks$BPA.homePageUrlLinks) === null || _homePageUrlLinks$BPA2 === void 0 ? void 0 : _homePageUrlLinks$BPA2.length) > 0) {
36529
36553
  var _homePageUrlLinks$BPA3, _homePageUrlLinks$BPA4;
@@ -36899,7 +36923,7 @@ const OBPSAcknowledgement = ({
36899
36923
  const {
36900
36924
  tenants
36901
36925
  } = storeData || {};
36902
- useEffect(() => {
36926
+ useEffect$1(() => {
36903
36927
  try {
36904
36928
  var _data$address5, _data$address6, _data$address6$city, _data$nocDocuments;
36905
36929
  let tenantid = data !== null && data !== void 0 && (_data$address5 = data.address) !== null && _data$address5 !== void 0 && _data$address5.city ? (_data$address6 = data.address) === null || _data$address6 === void 0 ? void 0 : (_data$address6$city = _data$address6.city) === null || _data$address6$city === void 0 ? void 0 : _data$address6$city.code : tenantId;
@@ -37013,7 +37037,7 @@ const OBPSAcknowledgement$1 = ({
37013
37037
  const {
37014
37038
  data: storeData
37015
37039
  } = Digit.Hooks.useStore.getInitData();
37016
- useEffect(() => {
37040
+ useEffect$1(() => {
37017
37041
  try {
37018
37042
  var _data$nocDocuments;
37019
37043
  let tenantId = data !== null && data !== void 0 && data.tenantId ? data === null || data === void 0 ? void 0 : data.tenantId : tenantId;
@@ -37190,7 +37214,7 @@ const StakeholderAcknowledgement = ({
37190
37214
  let isOpenLinkFlow = window.location.href.includes("openlink");
37191
37215
  const isCitizenUrl = Digit.Utils.browser.isMobile() ? true : false;
37192
37216
  const licenseType = (mutation === null || mutation === void 0 ? void 0 : (_mutation$data = mutation.data) === null || _mutation$data === void 0 ? void 0 : (_mutation$data$Licens = _mutation$data.Licenses) === null || _mutation$data$Licens === void 0 ? void 0 : (_mutation$data$Licens2 = _mutation$data$Licens[0]) === null || _mutation$data$Licens2 === void 0 ? void 0 : (_mutation$data$Licens3 = _mutation$data$Licens2.tradeLicenseDetail) === null || _mutation$data$Licens3 === void 0 ? void 0 : (_mutation$data$Licens4 = _mutation$data$Licens3.tradeUnits) === null || _mutation$data$Licens4 === void 0 ? void 0 : (_mutation$data$Licens5 = _mutation$data$Licens4[0]) === null || _mutation$data$Licens5 === void 0 ? void 0 : (_mutation$data$Licens6 = _mutation$data$Licens5.tradeType) === null || _mutation$data$Licens6 === void 0 ? void 0 : _mutation$data$Licens6.split(".")[0]) || "ARCHITECT";
37193
- useEffect(() => {
37217
+ useEffect$1(() => {
37194
37218
  try {
37195
37219
  var _data$result, _data$result$Licenses, _data$result2, _data$result2$License;
37196
37220
  let tenantId = data !== null && data !== void 0 && (_data$result = data.result) !== null && _data$result !== void 0 && (_data$result$Licenses = _data$result.Licenses[0]) !== null && _data$result$Licenses !== void 0 && _data$result$Licenses.tenantId ? data === null || data === void 0 ? void 0 : (_data$result2 = data.result) === null || _data$result2 === void 0 ? void 0 : (_data$result2$License = _data$result2.Licenses[0]) === null || _data$result2$License === void 0 ? void 0 : _data$result2$License.tenantId : tenantId;