@mseva/digit-ui-module-noc 1.0.85 → 1.0.87

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.
@@ -305,7 +305,7 @@ const downloadPdfFromURL = async receiptUrl => {
305
305
  window.open(downloadUrl, "_blank");
306
306
  }
307
307
  };
308
- const encodeURIComponentCustom = text => {
308
+ const encodeURIComponentCustom$1 = text => {
309
309
  const SECRET_KEY = localStorage.getItem("token");
310
310
  if (!SECRET_KEY) {
311
311
  console.error("SECRET_KEY (token) not found in localStorage");
@@ -7815,6 +7815,9 @@ const EmployeeApp = ({
7815
7815
  }, /*#__PURE__*/React.createElement(NOCBreadCrumbs, {
7816
7816
  location: location
7817
7817
  })) : null, /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(PrivateRoute, {
7818
+ path: `${path}/inbox/application-overview/:nocid/:tenant`,
7819
+ component: NOCEmployeeApplicationOverview
7820
+ }), /*#__PURE__*/React.createElement(PrivateRoute, {
7818
7821
  path: `${path}/inbox/application-overview/:nocid`,
7819
7822
  component: NOCEmployeeApplicationOverview
7820
7823
  }), /*#__PURE__*/React.createElement(PrivateRoute, {
@@ -8345,6 +8348,13 @@ const configBPAApproverApplication = ({
8345
8348
  selected: selectedBlockReason,
8346
8349
  isMandatory: true
8347
8350
  }) : null
8351
+ }, {
8352
+ label: t("WF_COMMON_COMMENTS"),
8353
+ type: "textarea",
8354
+ isMandatory: true,
8355
+ populators: {
8356
+ name: "comments"
8357
+ }
8348
8358
  }, ...(isCondittionalComentsRequired ? [{
8349
8359
  label: t("WF_CONDITIONAL_COMMENTS_LABEL"),
8350
8360
  type: "textarea",
@@ -8352,13 +8362,6 @@ const configBPAApproverApplication = ({
8352
8362
  name: "conditionalComments"
8353
8363
  }
8354
8364
  }] : []), {
8355
- label: t("WF_COMMON_COMMENTS"),
8356
- type: "textarea",
8357
- isMandatory: true,
8358
- populators: {
8359
- name: "comments"
8360
- }
8361
- }, {
8362
8365
  label: `${t("WF_APPROVAL_UPLOAD_HEAD")}`,
8363
8366
  populators: /*#__PURE__*/React.createElement(UploadFile, {
8364
8367
  id: "workflow-doc",
@@ -9078,7 +9081,7 @@ const ActionModal$1 = ({
9078
9081
  };
9079
9082
  }));
9080
9083
  }
9081
- }, [approverData]);
9084
+ }, [approverData, EmployeeStatusData]);
9082
9085
  function selectFile(e) {
9083
9086
  setFile(e.target.files[0]);
9084
9087
  }
@@ -14142,7 +14145,7 @@ function NewApplicationTimeline({
14142
14145
  }))), /*#__PURE__*/React.createElement("div", {
14143
14146
  className: "custom-timeline-entries"
14144
14147
  }, sortedData === null || sortedData === void 0 ? void 0 : sortedData.map((item, index) => {
14145
- var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$assigner5, _item$assigner6, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
14148
+ var _item$auditDetails, _item$auditDetails2, _item$assigner2, _item$assigner3, _item$assigner4, _item$wfComment, _item$wfComment2, _item$wfComment3, _item$assignes, _item$assignes$, _item$assignes$2, _item$assignes$3, _item$wfDocuments, _item$wfDocuments2;
14146
14149
  return /*#__PURE__*/React.createElement("div", {
14147
14150
  key: index,
14148
14151
  className: "custom-timeline-entry"
@@ -14179,13 +14182,9 @@ function NewApplicationTimeline({
14179
14182
  className: "custom-officer-info"
14180
14183
  }, /*#__PURE__*/React.createElement("div", {
14181
14184
  className: "custom-officer-name"
14182
- }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
14185
+ }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("div", {
14183
14186
  className: "custom-officer-name"
14184
- }, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
14185
- className: "custom-officer-email"
14186
- }, /*#__PURE__*/React.createElement("span", {
14187
- className: "custom-email-label"
14188
- }, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
14187
+ }, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName])))), /*#__PURE__*/React.createElement("div", {
14189
14188
  className: "custom-card-column custom-card-column-mid"
14190
14189
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
14191
14190
  className: "custom-action-title"
@@ -16586,7 +16585,7 @@ const NOCFeeTable = ({
16586
16585
  window.addEventListener("resize", checkMobile);
16587
16586
  return () => window.removeEventListener("resize", checkMobile);
16588
16587
  }, []);
16589
- console.log("feeHistory", feeHistory);
16588
+ console.log('feeHistory', feeHistory);
16590
16589
  const columns = [{
16591
16590
  key: "title",
16592
16591
  label: "BPA_TAXHEAD_CODE",
@@ -16598,7 +16597,6 @@ const NOCFeeTable = ({
16598
16597
  headerLabel: "BPA_AMOUNT",
16599
16598
  type: "custom",
16600
16599
  render: (row, rowIndex, t) => {
16601
- var _feeData$row$index, _feeData$row$index2;
16602
16600
  if (row.taxHeadCode === "NOC_TOTAL") {
16603
16601
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("strong", {
16604
16602
  style: {
@@ -16617,7 +16615,7 @@ const NOCFeeTable = ({
16617
16615
  t: t,
16618
16616
  type: "number",
16619
16617
  isMandatory: false,
16620
- value: ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.adjustedAmount) === 0 ? "" : ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.adjustedAmount) || row.amount || "",
16618
+ value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount || row.amount || "",
16621
16619
  onChange: e => {
16622
16620
  let val = e.target.value;
16623
16621
  if (val.length > 1 && val.startsWith("0")) {
@@ -16636,20 +16634,20 @@ const NOCFeeTable = ({
16636
16634
  headerLabel: "BPA_REMARKS",
16637
16635
  type: "custom",
16638
16636
  render: (row, rowIndex, t) => {
16639
- var _feeData$row$index4;
16637
+ var _feeData$row$index2;
16640
16638
  if (row.taxHeadCode === "NOC_TOTAL") {
16641
16639
  return " ";
16642
16640
  }
16643
16641
  if (disable) {
16644
- var _feeData$row$index3;
16645
- return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || /*#__PURE__*/React.createElement(TextArea, {
16642
+ var _feeData$row$index;
16643
+ return /*#__PURE__*/React.createElement("div", null, ((_feeData$row$index = feeData[row.index]) === null || _feeData$row$index === void 0 ? void 0 : _feeData$row$index.remark) || /*#__PURE__*/React.createElement(TextArea, {
16646
16644
  placeholder: "Enter remarks",
16647
16645
  disabled: true,
16648
16646
  className: "custom-fee-table-textarea"
16649
16647
  }));
16650
16648
  }
16651
16649
  return /*#__PURE__*/React.createElement(TextArea, {
16652
- value: ((_feeData$row$index4 = feeData[row.index]) === null || _feeData$row$index4 === void 0 ? void 0 : _feeData$row$index4.remark) || "",
16650
+ value: ((_feeData$row$index2 = feeData[row.index]) === null || _feeData$row$index2 === void 0 ? void 0 : _feeData$row$index2.remark) || "",
16653
16651
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16654
16652
  disabled: false,
16655
16653
  className: "custom-fee-table-textarea",
@@ -16717,7 +16715,7 @@ const NOCFeeTable = ({
16717
16715
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
16718
16716
  className: "custom-fee-mobile-cards"
16719
16717
  }, feeDataWithTotal.map((row, i) => {
16720
- var _feeData$row$index5, _feeData$row$index6, _feeData$row$index7;
16718
+ var _feeData$row$index3;
16721
16719
  return /*#__PURE__*/React.createElement("div", {
16722
16720
  key: row.index || i,
16723
16721
  className: `custom-fee-card ${(row === null || row === void 0 ? void 0 : row.taxHeadCode) === "NOC_TOTAL" ? "custom-fee-card-total-row" : ""}`
@@ -16737,7 +16735,7 @@ const NOCFeeTable = ({
16737
16735
  t: t,
16738
16736
  type: "text",
16739
16737
  isMandatory: false,
16740
- value: ((_feeData$row$index5 = feeData[row.index]) === null || _feeData$row$index5 === void 0 ? void 0 : _feeData$row$index5.adjustedAmount) === 0 ? "" : ((_feeData$row$index6 = feeData[row.index]) === null || _feeData$row$index6 === void 0 ? void 0 : _feeData$row$index6.adjustedAmount) || row.amount || "",
16738
+ value: feeData[row.index] && feeData[row.index].adjustedAmount === 0 ? "" : feeData[row.index] && feeData[row.index].adjustedAmount !== null && feeData[row.index].adjustedAmount !== undefined ? feeData[row.index].adjustedAmount : row.amount !== null && row.amount !== undefined ? row.amount : "",
16741
16739
  onChange: e => {
16742
16740
  let val = e.target.value;
16743
16741
  if (/^\d*\.?\d*$/.test(val)) {
@@ -16764,7 +16762,7 @@ const NOCFeeTable = ({
16764
16762
  }, /*#__PURE__*/React.createElement("label", {
16765
16763
  className: "custom-fee-card-label"
16766
16764
  }, t("BPA_REMARKS")), /*#__PURE__*/React.createElement(TextArea, {
16767
- value: ((_feeData$row$index7 = feeData[row.index]) === null || _feeData$row$index7 === void 0 ? void 0 : _feeData$row$index7.remark) || "",
16765
+ value: ((_feeData$row$index3 = feeData[row.index]) === null || _feeData$row$index3 === void 0 ? void 0 : _feeData$row$index3.remark) || "",
16768
16766
  onChange: e => handleRemarkChange(row.index, e.target.value, row.amount),
16769
16767
  disabled: disable,
16770
16768
  className: "custom-fee-table-textarea",
@@ -18522,6 +18520,7 @@ const InspectionReport$1 = ({
18522
18520
  sessionStorage.setItem("INSPECTION_DATA", JSON.stringify(data));
18523
18521
  }, [FieldReports]);
18524
18522
  useEffect$1(() => {
18523
+ console.log("useffect 2INSPECTION_REPORT_PENDING");
18525
18524
  let ques = [];
18526
18525
  let documentlist = [];
18527
18526
  bpaDocs && bpaDocs.BPA.CheckList.map(ob => {
@@ -18996,15 +18995,15 @@ const getSiteDetails = (appData, t) => {
18996
18995
  }, {
18997
18996
  title: t("NOC_ROAD_TYPE_LABEL"),
18998
18997
  value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails16 = appData.nocDetails) === null || _appData$nocDetails16 === void 0 ? void 0 : (_appData$nocDetails17 = _appData$nocDetails16.additionalDetails) === null || _appData$nocDetails17 === void 0 ? void 0 : (_appData$nocDetails18 = _appData$nocDetails17.siteDetails) === null || _appData$nocDetails18 === void 0 ? void 0 : (_appData$nocDetails19 = _appData$nocDetails18.roadType) === null || _appData$nocDetails19 === void 0 ? void 0 : _appData$nocDetails19.name) || (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails20 = appData.nocDetails) === null || _appData$nocDetails20 === void 0 ? void 0 : (_appData$nocDetails21 = _appData$nocDetails20.additionalDetails) === null || _appData$nocDetails21 === void 0 ? void 0 : (_appData$nocDetails22 = _appData$nocDetails21.siteDetails) === null || _appData$nocDetails22 === void 0 ? void 0 : _appData$nocDetails22.roadType) || "N/A"
18998
+ }, {
18999
+ title: t("NOC_NET_TOTAL_AREA_LABEL"),
19000
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.netTotalArea) || "N/A"
18999
19001
  }, {
19000
19002
  title: t("NOC_AREA_LEFT_FOR_ROAD_WIDENING_LABEL"),
19001
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails23 = appData.nocDetails) === null || _appData$nocDetails23 === void 0 ? void 0 : (_appData$nocDetails24 = _appData$nocDetails23.additionalDetails) === null || _appData$nocDetails24 === void 0 ? void 0 : (_appData$nocDetails25 = _appData$nocDetails24.siteDetails) === null || _appData$nocDetails25 === void 0 ? void 0 : _appData$nocDetails25.areaLeftForRoadWidening) || "N/A"
19003
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.areaLeftForRoadWidening) || "N/A"
19002
19004
  }, {
19003
19005
  title: t("NOC_NET_PLOT_AREA_AFTER_WIDENING_LABEL"),
19004
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails26 = appData.nocDetails) === null || _appData$nocDetails26 === void 0 ? void 0 : (_appData$nocDetails27 = _appData$nocDetails26.additionalDetails) === null || _appData$nocDetails27 === void 0 ? void 0 : (_appData$nocDetails28 = _appData$nocDetails27.siteDetails) === null || _appData$nocDetails28 === void 0 ? void 0 : _appData$nocDetails28.netPlotAreaAfterWidening) || "N/A"
19005
- }, {
19006
- title: t("NOC_NET_TOTAL_AREA_LABEL"),
19007
- value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netTotalArea) || "N/A"
19006
+ value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails29 = appData.nocDetails) === null || _appData$nocDetails29 === void 0 ? void 0 : (_appData$nocDetails30 = _appData$nocDetails29.additionalDetails) === null || _appData$nocDetails30 === void 0 ? void 0 : (_appData$nocDetails31 = _appData$nocDetails30.siteDetails) === null || _appData$nocDetails31 === void 0 ? void 0 : _appData$nocDetails31.netPlotAreaAfterWidening) || "N/A"
19008
19007
  }, {
19009
19008
  title: t("NOC_ROAD_WIDTH_AT_SITE_LABEL"),
19010
19009
  value: (appData === null || appData === void 0 ? void 0 : (_appData$nocDetails32 = appData.nocDetails) === null || _appData$nocDetails32 === void 0 ? void 0 : (_appData$nocDetails33 = _appData$nocDetails32.additionalDetails) === null || _appData$nocDetails33 === void 0 ? void 0 : (_appData$nocDetails34 = _appData$nocDetails33.siteDetails) === null || _appData$nocDetails34 === void 0 ? void 0 : _appData$nocDetails34.roadWidthAtSite) || "N/A"
@@ -19232,6 +19231,7 @@ const getJESiteImages = async (appData, t, stateCode) => {
19232
19231
  const documentLink = pdfDownloadLink(res === null || res === void 0 ? void 0 : res.data, img === null || img === void 0 ? void 0 : img.filestoreId);
19233
19232
  const exiflink = `${window.origin}/filestore/v1/files/id?fileStoreId=${img === null || img === void 0 ? void 0 : img.filestoreId}&tenantId=${stateCode}`;
19234
19233
  const exifData = await getExifDataFromUrl(exiflink);
19234
+ console.log("exifData in siteImages", exifData);
19235
19235
  if ([3, 6, 8].includes(exifData === null || exifData === void 0 ? void 0 : exifData.Orientation)) {
19236
19236
  exifData.Orientation = 1;
19237
19237
  }
@@ -21004,13 +21004,14 @@ function cleanEscapedString(input) {
21004
21004
  const NOCEmployeeApplicationOverview = () => {
21005
21005
  var _window, _window$Digit, _window$Digit$Utils, _window$Digit$Utils$b, _applicationDetails$N, _applicationDetails$N2, _applicationDetails$N3, _applicationDetails$N4, _applicationDetails$N5, _applicationDetails$N6, _applicationDetails$N7, _applicationDetails$N8, _applicationDetails$N9, _applicationDetails$N0, _applicationDetails$N1, _applicationDetails$N10, _applicationDetails$N11, _applicationDetails$N12, _applicationDetails$N13, _applicationDetails$N14, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _applicationDetails$N23, _applicationDetails$N24, _applicationDetails$N25, _applicationDetails$N26, _applicationDetails$N27, _displayData$Document, _displayData$Document2, _displayData$Document3, _applicationDetails$N28, _applicationDetails$N29, _applicationDetails$N30, _applicationDetails$N31, _applicationDetails$N37, _applicationDetails$N38, _user3, _user3$info, _user4, _user4$info, _user4$info$roles, _user5, _user5$info, _user5$info$roles, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _applicationDetails$N48, _applicationDetails$N49, _applicationDetails$N50, _applicationDetails$N51, _applicationDetails$N67, _applicationDetails$N68, _applicationDetails$N69, _applicationDetails$N70, _applicationDetails$N71, _applicationDetails$N72, _applicationDetails$N73, _applicationDetails$N74, _applicationDetails$N75, _applicationDetails$N76, _applicationDetails$N77, _applicationDetails$N78, _applicationDetails$N79, _applicationDetails$N80, _applicationDetails$N81, _applicationDetails$N82, _applicationDetails$N83, _applicationDetails$N84, _displayData$applican, _displayData$applican2, _displayData$applican3, _displayData$applican4, _displayData$applican5, _displayData$applican6, _displayData$applican7, _displayData$ownerPho, _displayData$ownerPho2, _displayData$applican8, _displayData$applican9, _displayData$applican0, _displayData$applican1, _displayData$applican10, _displayData$applican11, _displayData$applican12, _displayData$applican13, _displayData$applican14, _displayData$siteDeta, _displayData$siteDeta2, _applicationDetails$N85, _applicationDetails$N86, _applicationDetails$N87, _applicationDetails$N88, _siteImages$documents5, _applicationDetails$N89, _applicationDetails$N90, _applicationDetails$N91, _applicationDetails$N92, _applicationDetails$N93, _applicationDetails$N94, _applicationDetails$N95, _applicationDetails$N96, _applicationDetails$N97, _applicationDetails$N98, _applicationDetails$N99, _applicationDetails$N100, _applicationDetails$N101, _applicationDetails$N102, _applicationDetails$N103, _applicationDetails$N104, _applicationDetails$N105, _applicationDetails$N106, _applicationDetails$N107, _applicationDetails$N108, _applicationDetails$N109, _applicationDetails$N110, _applicationDetails$N111, _applicationDetails$N112, _applicationDetails$N113, _applicationDetails$N114, _applicationDetails$N115, _applicationDetails$N116, _applicationDetails$N117, _applicationDetails$N118, _applicationDetails$N119, _applicationDetails$N120, _applicationDetails$N121, _applicationDetails$N122, _applicationDetails$N123, _applicationDetails$N124, _applicationDetails$N125, _applicationDetails$N126, _applicationDetails$N127, _applicationDetails$N128, _applicationDetails$N129, _applicationDetails$N130, _applicationDetails$N131, _applicationDetails$N132, _applicationDetails$N133, _applicationDetails$N134, _applicationDetails$N135, _applicationDetails$N136, _applicationDetails$N137, _applicationDetails$N138, _applicationDetails$N139, _applicationDetails$N140, _applicationDetails$N141, _applicationDetails$N142, _applicationDetails$N143, _applicationDetails$N144, _applicationDetails$N145, _applicationDetails$N146, _applicationDetails$N147, _applicationDetails$N148, _applicationDetails$N149, _applicationDetails$N150, _applicationDetails$N151, _applicationDetails$N152, _applicationDetails$N153, _applicationDetails$N154, _applicationDetails$N155, _applicationDetails$N156, _applicationDetails$N157, _applicationDetails$N158, _applicationDetails$N159, _applicationDetails$N160, _applicationDetails$N161, _applicationDetails$N162, _applicationDetails$N163, _applicationDetails$N164, _applicationDetails$N165, _applicationDetails$N166, _applicationDetails$N167, _applicationDetails$N168, _applicationDetails$N169, _applicationDetails$N170, _applicationDetails$N171, _applicationDetails$N172, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14;
21006
21006
  const {
21007
- nocid
21007
+ nocid,
21008
+ tenant
21008
21009
  } = useParams();
21009
21010
  const id = decodeURIComponentCustom(nocid);
21010
21011
  const {
21011
21012
  t
21012
21013
  } = useTranslation();
21013
- const tenantId = window.localStorage.getItem("Employee.tenant-id");
21014
+ const tenantId = window.localStorage.getItem("Employee.tenant-id") === "pb.punjab" ? tenant : window.localStorage.getItem("Employee.tenant-id");
21014
21015
  const history = useHistory();
21015
21016
  const state = tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0];
21016
21017
  const [showToast, setShowToast] = useState(null);
@@ -22394,12 +22395,15 @@ const FilterFormFieldsComponent = ({
22394
22395
  applicationTypesOfBPA,
22395
22396
  loadingApplicationTypesOfBPA,
22396
22397
  localitiesForEmployeesCurrentTenant,
22397
- loadingLocalitiesForEmployeesCurrentTenant
22398
+ loadingLocalitiesForEmployeesCurrentTenant,
22399
+ cities,
22400
+ selectedTenantIdState,
22401
+ setSelectedTenantIdValue,
22402
+ tenantId
22398
22403
  }) => {
22399
22404
  const {
22400
22405
  t
22401
22406
  } = useTranslation();
22402
- const tenantId = Digit.ULBService.getStateId();
22403
22407
  const availableOptions = [{
22404
22408
  code: "ASSIGNED_TO_ME",
22405
22409
  name: `${t("ES_INBOX_ASSIGNED_TO_ME")}`
@@ -22412,7 +22416,20 @@ const FilterFormFieldsComponent = ({
22412
22416
  type.i18nKey = t(`WF_BPA_${type.code}`);
22413
22417
  });
22414
22418
  console.log("status heres===>", statuses);
22415
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
22419
+ return /*#__PURE__*/React.createElement(Fragment, null, window.location.href.includes("/employee") && tenantId === "pb.punjab" ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement("div", {
22420
+ className: "filter-label sub-filter-label",
22421
+ style: {
22422
+ fontSize: "18px",
22423
+ fontWeight: "600"
22424
+ }
22425
+ }, t("BPA_CITIES_DROPDOWN_LABEL")), cities && cities.length > 0 ? /*#__PURE__*/React.createElement(Dropdown, {
22426
+ option: cities,
22427
+ selected: cities.find(city => city.code === (selectedTenantIdState === null || selectedTenantIdState === void 0 ? void 0 : selectedTenantIdState.tenantId)),
22428
+ select: value => {
22429
+ setSelectedTenantIdValue("tenantId", value.code);
22430
+ },
22431
+ optionKey: "name"
22432
+ }) : null) : null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
22416
22433
  name: "assignee",
22417
22434
  control: controlFilterForm,
22418
22435
  render: props => /*#__PURE__*/React.createElement(RadioButtons, {
@@ -22454,7 +22471,8 @@ const useInboxTableConfig = ({
22454
22471
  totalCount,
22455
22472
  table,
22456
22473
  dispatch,
22457
- onSortingByData
22474
+ onSortingByData,
22475
+ tenantId
22458
22476
  }) => {
22459
22477
  var _formState$tableForm, _formState$tableForm2, _formState$tableForm7, _formState$searchForm;
22460
22478
  const {
@@ -22471,9 +22489,10 @@ const useInboxTableConfig = ({
22471
22489
  Cell: ({
22472
22490
  row
22473
22491
  }) => {
22492
+ var _row$original;
22474
22493
  console.log('row in inbox', row);
22475
22494
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
22476
- to: `${parentRoute}/inbox/application-overview/${encodeURIComponentCustom(row.original["applicationId"])}`
22495
+ to: tenantId === "pb.punjab" ? `${parentRoute}/inbox/application-overview/${encodeURIComponentCustom$1(row.original["applicationId"])}/${row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.tenantId}` : `${parentRoute}/inbox/application-overview/${encodeURIComponentCustom$1(row.original["applicationId"])}`
22477
22496
  }, /*#__PURE__*/React.createElement("span", {
22478
22497
  className: "link"
22479
22498
  }, row.original["applicationId"])));
@@ -22484,8 +22503,8 @@ const useInboxTableConfig = ({
22484
22503
  Cell: ({
22485
22504
  row
22486
22505
  }) => {
22487
- var _row$original, _row$original2;
22488
- return (_row$original = row.original) !== null && _row$original !== void 0 && _row$original["date"] ? GetCell(format(new Date((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2["date"]), "dd/MM/yyyy")) : "";
22506
+ var _row$original2, _row$original3;
22507
+ return (_row$original2 = row.original) !== null && _row$original2 !== void 0 && _row$original2["date"] ? GetCell(format(new Date((_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3["date"]), "dd/MM/yyyy")) : "";
22489
22508
  }
22490
22509
  }, {
22491
22510
  Header: t("NOC_PRIMARY_OWNER_NAME_LABEL"),
@@ -22584,7 +22603,7 @@ const useInboxMobileCardsData = ({
22584
22603
  [t("NOC_PRIMARY_OWNER_NAME_LABEL")]: t(owner),
22585
22604
  [t("PT_COMMON_TABLE_COL_STATUS_LABEL")]: t(status),
22586
22605
  "Vehicle Log": {
22587
- id: encodeURIComponentCustom(applicationId),
22606
+ id: encodeURIComponentCustom$1(applicationId),
22588
22607
  hidden: true
22589
22608
  }
22590
22609
  }));
@@ -22628,15 +22647,21 @@ const useInboxMobileCardsData = ({
22628
22647
  };
22629
22648
  };
22630
22649
 
22650
+ const MSEVA_APP_LINK = "https://play.google.com/store/apps/details?id=com.mseva.punjab";
22651
+
22631
22652
  const Inbox = ({
22632
22653
  parentRoute
22633
22654
  }) => {
22634
- var _user$info, _user$info2;
22655
+ var _cities$, _user$info, _user$info2, _formState$selectedTe, _cities$2;
22635
22656
  const {
22636
22657
  t
22637
22658
  } = useTranslation();
22638
22659
  const [employeeName, setEmployeeName] = useState("");
22639
22660
  const [employeeRole, setEmployeeRole] = useState("");
22661
+ const {
22662
+ data: cities
22663
+ } = Digit.Hooks.useTenants();
22664
+ const isMobile = window.Digit.Utils.browser.isMobile();
22640
22665
  const tenantId = window.localStorage.getItem("Employee.tenant-id");
22641
22666
  const searchFormDefaultValues = {
22642
22667
  mobileNumber: "",
@@ -22656,6 +22681,9 @@ const Inbox = ({
22656
22681
  offset: 0,
22657
22682
  sortOrder: "DESC"
22658
22683
  };
22684
+ const selectedTenantIdDefaultValues = {
22685
+ tenantId: (cities === null || cities === void 0 ? void 0 : (_cities$ = cities[0]) === null || _cities$ === void 0 ? void 0 : _cities$.code) || null
22686
+ };
22659
22687
  function formReducer(state, payload) {
22660
22688
  switch (payload.action) {
22661
22689
  case "mutateSearchForm":
@@ -22685,9 +22713,35 @@ const Inbox = ({
22685
22713
  ...state,
22686
22714
  tableForm: payload.data
22687
22715
  };
22716
+ case "mutateSelectedTenantId":
22717
+ Digit.SessionStorage.set("CLU.INBOX", {
22718
+ ...state,
22719
+ selectedTenantId: payload.data
22720
+ });
22721
+ return {
22722
+ ...state,
22723
+ selectedTenantId: payload.data
22724
+ };
22688
22725
  }
22689
22726
  }
22690
22727
  const InboxObjectInSessionStorage = Digit.SessionStorage.get("NOC.INBOX");
22728
+ const onSelectedTenantIdReset = setSelectedTenantIdValue => {
22729
+ setSelectedTenantIdValue("tenantId", tenantId || null);
22730
+ dispatch({
22731
+ action: "mutateSelectedTenantId",
22732
+ data: selectedTenantIdDefaultValues
22733
+ });
22734
+ };
22735
+ const setSelectedTenantIdValue = (key, value) => {
22736
+ console.log("ValueChangeinTenant", key, value);
22737
+ dispatch({
22738
+ action: "mutateSelectedTenantId",
22739
+ data: {
22740
+ ...formState.selectedTenantId,
22741
+ [key]: value
22742
+ }
22743
+ });
22744
+ };
22691
22745
  const onSearchFormReset = setSearchFormValue => {
22692
22746
  setSearchFormValue("mobileNumber", null);
22693
22747
  setSearchFormValue("applicationNo", null);
@@ -22702,6 +22756,7 @@ const Inbox = ({
22702
22756
  setFilterFormValue("locality", []);
22703
22757
  setFilterFormValue("assignee", "ASSIGNED_TO_ALL");
22704
22758
  setFilterFormValue("applicationType", []);
22759
+ onSelectedTenantIdReset(setFilterFormValue);
22705
22760
  dispatch({
22706
22761
  action: "mutateFilterForm",
22707
22762
  data: filterFormDefaultValues
@@ -22718,9 +22773,10 @@ const Inbox = ({
22718
22773
  return InboxObjectInSessionStorage || {
22719
22774
  filterForm: filterFormDefaultValues,
22720
22775
  searchForm: searchFormDefaultValues,
22721
- tableForm: tableOrderFormDefaultValues
22776
+ tableForm: tableOrderFormDefaultValues,
22777
+ selectedTenantId: selectedTenantIdDefaultValues
22722
22778
  };
22723
- }, [Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.filterForm) || {}), Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.searchForm) || {}), Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.tableForm) || {})]);
22779
+ }, [Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.filterForm) || {}), Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.searchForm) || {}), Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.tableForm) || {}), Object.values((InboxObjectInSessionStorage === null || InboxObjectInSessionStorage === void 0 ? void 0 : InboxObjectInSessionStorage.selectedTenantId) || {})]);
22724
22780
  const [formState, dispatch] = useReducer(formReducer, formInitValue);
22725
22781
  const onPageSizeChange = e => {
22726
22782
  dispatch({
@@ -22793,9 +22849,12 @@ const Inbox = ({
22793
22849
  data,
22794
22850
  refetch
22795
22851
  } = Digit.Hooks.noc.useInbox({
22796
- tenantId,
22852
+ tenantId: tenantId === "pb.punjab" ? (formState === null || formState === void 0 ? void 0 : (_formState$selectedTe = formState.selectedTenantId) === null || _formState$selectedTe === void 0 ? void 0 : _formState$selectedTe.tenantId) || (cities === null || cities === void 0 ? void 0 : (_cities$2 = cities[0]) === null || _cities$2 === void 0 ? void 0 : _cities$2.code) || tenantId : tenantId,
22797
22853
  filters: {
22798
22854
  ...formState
22855
+ },
22856
+ config: {
22857
+ enabled: !!tenantId
22799
22858
  }
22800
22859
  });
22801
22860
  useEffect$1(() => {
@@ -22834,17 +22893,26 @@ const Inbox = ({
22834
22893
  controlFilterForm,
22835
22894
  setFilterFormValue,
22836
22895
  getFilterFormValue
22837
- }) => /*#__PURE__*/React.createElement(FilterFormFieldsComponent, {
22838
- statuses,
22839
- isInboxLoading,
22840
- registerRef,
22841
- controlFilterForm,
22842
- setFilterFormValue,
22843
- filterFormState: formState === null || formState === void 0 ? void 0 : formState.filterForm,
22844
- getFilterFormValue,
22845
- localitiesForEmployeesCurrentTenant,
22846
- loadingLocalitiesForEmployeesCurrentTenant
22847
- }), [statuses, isInboxLoading, localitiesForEmployeesCurrentTenant, loadingLocalitiesForEmployeesCurrentTenant]);
22896
+ }) => {
22897
+ var _formState$selectedTe2, _cities$3;
22898
+ return /*#__PURE__*/React.createElement(FilterFormFieldsComponent, {
22899
+ statuses,
22900
+ isInboxLoading,
22901
+ registerRef,
22902
+ controlFilterForm,
22903
+ setFilterFormValue,
22904
+ filterFormState: formState === null || formState === void 0 ? void 0 : formState.filterForm,
22905
+ getFilterFormValue,
22906
+ localitiesForEmployeesCurrentTenant,
22907
+ loadingLocalitiesForEmployeesCurrentTenant,
22908
+ cities,
22909
+ selectedTenantIdState: formState !== null && formState !== void 0 && (_formState$selectedTe2 = formState.selectedTenantId) !== null && _formState$selectedTe2 !== void 0 && _formState$selectedTe2.tenantId ? formState === null || formState === void 0 ? void 0 : formState.selectedTenantId : {
22910
+ tenantId: cities === null || cities === void 0 ? void 0 : (_cities$3 = cities[0]) === null || _cities$3 === void 0 ? void 0 : _cities$3.code
22911
+ },
22912
+ setSelectedTenantIdValue,
22913
+ tenantId
22914
+ });
22915
+ }, [statuses, isInboxLoading, localitiesForEmployeesCurrentTenant, loadingLocalitiesForEmployeesCurrentTenant]);
22848
22916
  const onSearchFormSubmit = data => {
22849
22917
  console.log("data in OnSearchFormSubmit", data);
22850
22918
  data.hasOwnProperty("") && (data === null || data === void 0 ? true : delete data[""]);
@@ -22895,7 +22963,8 @@ const Inbox = ({
22895
22963
  totalCount,
22896
22964
  table,
22897
22965
  dispatch,
22898
- onSortingByData
22966
+ onSortingByData,
22967
+ tenantId
22899
22968
  }
22900
22969
  });
22901
22970
  const propsForInboxMobileCards = useInboxMobileCardsData({
@@ -22910,9 +22979,24 @@ const Inbox = ({
22910
22979
  if (isLoading) {
22911
22980
  return /*#__PURE__*/React.createElement(Loader$2, null);
22912
22981
  }
22913
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Header, null, employeeData && !isLoading && `Welcome ${employeeName}, ${t(`COMMON_MASTERS_DESIGNATION_${employeeRole}`)}`, /*#__PURE__*/React.createElement("div", null, " ", t("ES_COMMON_INBOX"), " ", totalCount ? /*#__PURE__*/React.createElement("p", {
22982
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Header, null, employeeData && !isLoading && `Welcome ${employeeName}, ${t(`COMMON_MASTERS_DESIGNATION_${employeeRole}`)}`, /*#__PURE__*/React.createElement("div", {
22983
+ style: {
22984
+ ...{
22985
+ display: 'flex',
22986
+ justifyContent: 'space-between',
22987
+ alignItems: 'center',
22988
+ width: '100%'
22989
+ },
22990
+ ...(isMobile ? {
22991
+ flexDirection: "column"
22992
+ } : {})
22993
+ }
22994
+ }, /*#__PURE__*/React.createElement("div", null, " ", t("ES_COMMON_INBOX"), " ", totalCount ? /*#__PURE__*/React.createElement("p", {
22914
22995
  className: "inbox-count"
22915
- }, totalCount) : null)), /*#__PURE__*/React.createElement(InboxComposer, _extends({
22996
+ }, totalCount) : null), /*#__PURE__*/React.createElement(SubmitBar, {
22997
+ label: t("Android App"),
22998
+ onSubmit: () => window.open(MSEVA_APP_LINK)
22999
+ }))), /*#__PURE__*/React.createElement(InboxComposer, _extends({
22916
23000
  isInboxLoading,
22917
23001
  PropsForInboxLinks
22918
23002
  }, propsForSearchForm, propsForFilterForm, propsForMobileSortForm, {
@@ -23231,7 +23315,8 @@ const NOCEsignResponse = () => {
23231
23315
  setCountdown(prev => prev - 1);
23232
23316
  }, 1000);
23233
23317
  const timeout = setTimeout(() => {
23234
- history.push(`/digit-ui/employee/noc/inbox/application-overview/${applicationNo}`);
23318
+ const encryptedID = encodeURIComponentCustom(applicationNo);
23319
+ history.push(`/digit-ui/employee/noc/inbox/application-overview/${encryptedID}`);
23235
23320
  }, 10000);
23236
23321
  return () => {
23237
23322
  clearInterval(interval);
@@ -23246,7 +23331,8 @@ const NOCEsignResponse = () => {
23246
23331
  });
23247
23332
  setTimeout(() => setShowToast(null), 3000);
23248
23333
  const timeout = setTimeout(() => {
23249
- history.push(`/digit-ui/employee/noc/inbox/application-overview/${applicationNo}`);
23334
+ const encryptedID = encodeURIComponentCustom(applicationNo);
23335
+ history.push(`/digit-ui/employee/noc/inbox/application-overview/${encryptedID}`);
23250
23336
  }, 10000);
23251
23337
  return () => clearTimeout(timeout);
23252
23338
  });
@@ -27972,6 +28058,8 @@ function NOCSummary({
27972
28058
  const propertyId = formData === null || formData === void 0 ? void 0 : (_formData$application3 = formData.applicationDetails) === null || _formData$application3 === void 0 ? void 0 : (_formData$application4 = _formData$application3.owners) === null || _formData$application4 === void 0 ? void 0 : (_formData$application5 = _formData$application4[0]) === null || _formData$application5 === void 0 ? void 0 : _formData$application5.propertyId;
27973
28059
  const applicationNo = formData === null || formData === void 0 ? void 0 : (_formData$apiData = formData.apiData) === null || _formData$apiData === void 0 ? void 0 : (_formData$apiData$Noc = _formData$apiData.Noc) === null || _formData$apiData$Noc === void 0 ? void 0 : (_formData$apiData$Noc2 = _formData$apiData$Noc[0]) === null || _formData$apiData$Noc2 === void 0 ? void 0 : _formData$apiData$Noc2.applicationNo;
27974
28060
  const submittedOn = (formData === null || formData === void 0 ? void 0 : (_formData$apiData2 = formData.apiData) === null || _formData$apiData2 === void 0 ? void 0 : (_formData$apiData2$No = _formData$apiData2.Noc) === null || _formData$apiData2$No === void 0 ? void 0 : (_formData$apiData2$No2 = _formData$apiData2$No[0]) === null || _formData$apiData2$No2 === void 0 ? void 0 : (_formData$apiData2$No3 = _formData$apiData2$No2.nocDetails) === null || _formData$apiData2$No3 === void 0 ? void 0 : (_formData$apiData2$No4 = _formData$apiData2$No3.additionalDetails) === null || _formData$apiData2$No4 === void 0 ? void 0 : _formData$apiData2$No4.SubmittedOn) || Date.now();
28061
+ console.log('applicationNo, submittedOn', applicationNo, submittedOn);
28062
+ console.log("primaryOwner and propertyId here in summary", primaryOwner, propertyId);
27975
28063
  return /*#__PURE__*/React.createElement("div", {
27976
28064
  className: "employee-main-application-details"
27977
28065
  }, /*#__PURE__*/React.createElement("style", null, ` .data-table .row {border: 2px solid lightgrey;}`), /*#__PURE__*/React.createElement(StatusTable, {
@@ -29668,7 +29756,7 @@ const MyApplications = ({
29668
29756
  }) => {
29669
29757
  var _row$original, _row$original$Applica, _row$original2, _row$original2$Applic;
29670
29758
  return /*#__PURE__*/React.createElement(Link, {
29671
- to: `/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$Applica = _row$original.Applications) === null || _row$original$Applica === void 0 ? void 0 : _row$original$Applica.applicationNo)}`
29759
+ to: `/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom$1((_row$original = row.original) === null || _row$original === void 0 ? void 0 : (_row$original$Applica = _row$original.Applications) === null || _row$original$Applica === void 0 ? void 0 : _row$original$Applica.applicationNo)}`
29672
29760
  }, /*#__PURE__*/React.createElement("b", null, GetCell((_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : (_row$original2$Applic = _row$original2.Applications) === null || _row$original2$Applic === void 0 ? void 0 : _row$original2$Applic.applicationNo)));
29673
29761
  }
29674
29762
  }, {
@@ -29751,7 +29839,7 @@ const MyApplications = ({
29751
29839
  label: t("TL_VIEW_DETAILS"),
29752
29840
  onSubmit: () => {
29753
29841
  var _application$Applicat0;
29754
- return history.push(`/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom(application === null || application === void 0 ? void 0 : (_application$Applicat0 = application.Applications) === null || _application$Applicat0 === void 0 ? void 0 : _application$Applicat0.applicationNo)}`);
29842
+ return history.push(`/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom$1(application === null || application === void 0 ? void 0 : (_application$Applicat0 = application.Applications) === null || _application$Applicat0 === void 0 ? void 0 : _application$Applicat0.applicationNo)}`);
29755
29843
  }
29756
29844
  }));
29757
29845
  })) : /*#__PURE__*/React.createElement("div", {
@@ -30196,7 +30284,7 @@ const CitizenApplicationOverview = () => {
30196
30284
  Licenses: [action]
30197
30285
  };
30198
30286
  if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT") {
30199
- const encyptedID = encodeURIComponentCustom(appNo);
30287
+ const encyptedID = encodeURIComponentCustom$1(appNo);
30200
30288
  history.push(`/digit-ui/citizen/noc/edit-application/${encyptedID}`);
30201
30289
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "DRAFT") {
30202
30290
  setShowToast({
@@ -30684,7 +30772,7 @@ const useSearchApplicationTableConfig$1 = () => {
30684
30772
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
30685
30773
  className: "link"
30686
30774
  }, /*#__PURE__*/React.createElement(Link, {
30687
- to: `/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom(row.original["applicationNo"])}`
30775
+ to: `/digit-ui/citizen/noc/search/application-overview/${encodeURIComponentCustom$1(row.original["applicationNo"])}`
30688
30776
  }, row.original["applicationNo"])));
30689
30777
  }
30690
30778
  }, {
@@ -30932,7 +31020,7 @@ const SearchApplication$1 = ({
30932
31020
  [t("NOC_APPLICATION_NUMBER")]: (data === null || data === void 0 ? void 0 : data.applicationNo) || "-",
30933
31021
  [t("TL_COMMON_TABLE_COL_APP_DATE")]: (data === null || data === void 0 ? void 0 : data.date) || "-",
30934
31022
  [t("PT_COMMON_TABLE_COL_STATUS_LABEL")]: data !== null && data !== void 0 && data.applicationStatus ? t(`${data.applicationStatus}`) : "-",
30935
- "Generated ID": encodeURIComponentCustom(data === null || data === void 0 ? void 0 : data.applicationNo)
31023
+ "Generated ID": encodeURIComponentCustom$1(data === null || data === void 0 ? void 0 : data.applicationNo)
30936
31024
  })), [data]);
30937
31025
  if (isMobile) return /*#__PURE__*/React.createElement(FormProvider, methods, /*#__PURE__*/React.createElement(SearchApplicationMobileView$1, {
30938
31026
  SearchFormFieldsComponent: SearchFormFieldsComponent$1,