@mseva/upyog-ui-module-chb 1.0.78 → 1.0.80

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.
@@ -18515,27 +18515,13 @@ const ChbApplication = ({
18515
18515
  tenantId,
18516
18516
  buttonLabel
18517
18517
  }) => {
18518
- var _application$bookingS, _application$bookingS2, _application$bookingS3, _application$bookingS4, _application$bookingS5, _application$bookingS6, _application$applican;
18518
+ var _application$applican;
18519
18519
  const {
18520
18520
  t
18521
18521
  } = useTranslation();
18522
18522
  const history = useHistory();
18523
18523
  const [showToast, setShowToast] = useState(null);
18524
- const {
18525
- data: slotSearchData,
18526
- refetch
18527
- } = Digit.Hooks.chb.useChbSlotSearch({
18528
- tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
18529
- filters: {
18530
- bookingId: application === null || application === void 0 ? void 0 : application.bookingId,
18531
- communityHallCode: application === null || application === void 0 ? void 0 : application.communityHallCode,
18532
- bookingStartDate: application === null || application === void 0 ? void 0 : (_application$bookingS = application.bookingSlotDetails) === null || _application$bookingS === void 0 ? void 0 : (_application$bookingS2 = _application$bookingS[0]) === null || _application$bookingS2 === void 0 ? void 0 : _application$bookingS2.bookingDate,
18533
- bookingEndDate: application === null || application === void 0 ? void 0 : (_application$bookingS3 = application.bookingSlotDetails) === null || _application$bookingS3 === void 0 ? void 0 : (_application$bookingS4 = _application$bookingS3[application.bookingSlotDetails.length - 1]) === null || _application$bookingS4 === void 0 ? void 0 : _application$bookingS4.bookingDate,
18534
- hallCode: application === null || application === void 0 ? void 0 : (_application$bookingS5 = application.bookingSlotDetails) === null || _application$bookingS5 === void 0 ? void 0 : (_application$bookingS6 = _application$bookingS5[0]) === null || _application$bookingS6 === void 0 ? void 0 : _application$bookingS6.hallCode,
18535
- isTimerRequired: true
18536
- },
18537
- enabled: false
18538
- });
18524
+ console.log("application", application);
18539
18525
  const getBookingDateRange = bookingSlotDetails => {
18540
18526
  var _bookingSlotDetails$, _bookingSlotDetails;
18541
18527
  if (!bookingSlotDetails || bookingSlotDetails.length === 0) {
@@ -18550,41 +18536,7 @@ const ChbApplication = ({
18550
18536
  }
18551
18537
  };
18552
18538
  const handleMakePayment = async () => {
18553
- try {
18554
- var _application$bookingS7, _application$bookingS8, _application$bookingS9, _application$bookingS0, _application$bookingS1, _application$bookingS10, _result$data, _result$data$hallSlot;
18555
- const result = await refetch();
18556
- let SlotSearchData = {
18557
- tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
18558
- bookingId: application === null || application === void 0 ? void 0 : application.bookingId,
18559
- communityHallCode: application === null || application === void 0 ? void 0 : application.communityHallCode,
18560
- bookingStartDate: application === null || application === void 0 ? void 0 : (_application$bookingS7 = application.bookingSlotDetails) === null || _application$bookingS7 === void 0 ? void 0 : (_application$bookingS8 = _application$bookingS7[0]) === null || _application$bookingS8 === void 0 ? void 0 : _application$bookingS8.bookingDate,
18561
- bookingEndDate: application === null || application === void 0 ? void 0 : (_application$bookingS9 = application.bookingSlotDetails) === null || _application$bookingS9 === void 0 ? void 0 : (_application$bookingS0 = _application$bookingS9[application.bookingSlotDetails.length - 1]) === null || _application$bookingS0 === void 0 ? void 0 : _application$bookingS0.bookingDate,
18562
- hallCode: application === null || application === void 0 ? void 0 : (_application$bookingS1 = application.bookingSlotDetails) === null || _application$bookingS1 === void 0 ? void 0 : (_application$bookingS10 = _application$bookingS1[0]) === null || _application$bookingS10 === void 0 ? void 0 : _application$bookingS10.hallCode,
18563
- isTimerRequired: true
18564
- };
18565
- const isSlotBooked = result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : (_result$data$hallSlot = _result$data.hallSlotAvailabiltityDetails) === null || _result$data$hallSlot === void 0 ? void 0 : _result$data$hallSlot.some(slot => slot.slotStaus === "BOOKED");
18566
- if (isSlotBooked) {
18567
- setShowToast({
18568
- error: true,
18569
- label: t("CHB_COMMUNITY_HALL_ALREADY_BOOKED")
18570
- });
18571
- } else {
18572
- history.push({
18573
- pathname: `/digit-ui/citizen/payment/my-bills/${"chb-services"}/${application === null || application === void 0 ? void 0 : application.bookingNo}`,
18574
- state: {
18575
- tenantId: application === null || application === void 0 ? void 0 : application.tenantId,
18576
- bookingNo: application === null || application === void 0 ? void 0 : application.bookingNo,
18577
- timerValue: result === null || result === void 0 ? void 0 : result.data.timerValue,
18578
- SlotSearchData: SlotSearchData
18579
- }
18580
- });
18581
- }
18582
- } catch (error) {
18583
- setShowToast({
18584
- error: true,
18585
- label: t("CS_SOMETHING_WENT_WRONG")
18586
- });
18587
- }
18539
+ history.push(`/digit-ui/citizen/payment/collect/chb-services/${application === null || application === void 0 ? void 0 : application.bookingNo}/${tenantId}?tenantId=${tenantId}`);
18588
18540
  };
18589
18541
  useEffect(() => {
18590
18542
  if (showToast) {
@@ -18606,17 +18558,17 @@ const ChbApplication = ({
18606
18558
  }), /*#__PURE__*/React.createElement(KeyNote, {
18607
18559
  keyValue: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
18608
18560
  note: t(`${application === null || application === void 0 ? void 0 : application.bookingStatus}`)
18609
- }), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
18610
- to: `/digit-ui/citizen/chb/application/${application === null || application === void 0 ? void 0 : application.bookingNo}/${application === null || application === void 0 ? void 0 : application.tenantId}`
18611
- }, /*#__PURE__*/React.createElement(SubmitBar, {
18612
- label: buttonLabel
18613
- })), (application.bookingStatus === "BOOKING_CREATED" || application.bookingStatus === "PAYMENT_FAILED" || application.bookingStatus === "PENDING_FOR_PAYMENT") && /*#__PURE__*/React.createElement(SubmitBar, {
18561
+ }), /*#__PURE__*/React.createElement("div", null, application.bookingStatus === "PENDING_PAYMENT" ? /*#__PURE__*/React.createElement(SubmitBar, {
18614
18562
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
18615
18563
  onSubmit: handleMakePayment,
18616
18564
  style: {
18617
18565
  margin: "20px"
18618
18566
  }
18619
- })), showToast && /*#__PURE__*/React.createElement(Toast, {
18567
+ }) : /*#__PURE__*/React.createElement(Link, {
18568
+ to: `/digit-ui/citizen/chb/application/${application === null || application === void 0 ? void 0 : application.bookingNo}/${application === null || application === void 0 ? void 0 : application.tenantId}`
18569
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
18570
+ label: buttonLabel
18571
+ }))), showToast && /*#__PURE__*/React.createElement(Toast, {
18620
18572
  error: showToast.error,
18621
18573
  warning: showToast.warning,
18622
18574
  label: t(showToast.label),
@@ -18630,10 +18582,7 @@ const CHBMyApplications = () => {
18630
18582
  const {
18631
18583
  t
18632
18584
  } = useTranslation();
18633
- const tenantId = Digit.ULBService.getCitizenCurrentTenant(true) || Digit.ULBService.getCurrentTenantId();
18634
- const user = Digit.UserService.getUser().info;
18635
- const [searchTerm, setSearchTerm] = useState("");
18636
- const [status, setStatus] = useState(null);
18585
+ const tenantId = window.localStorage.getItem("CITIZEN.CITY");
18637
18586
  const [filters, setFilters] = useState(null);
18638
18587
  let filter = window.location.href.split("/").pop();
18639
18588
  let t1;
@@ -18651,7 +18600,7 @@ const CHBMyApplications = () => {
18651
18600
  offset: off,
18652
18601
  tenantId
18653
18602
  } : {
18654
- limit: "4",
18603
+ limit: "10",
18655
18604
  sortOrder: "ASC",
18656
18605
  sortBy: "createdTime",
18657
18606
  offset: "0",
@@ -18659,53 +18608,126 @@ const CHBMyApplications = () => {
18659
18608
  };
18660
18609
  useEffect(() => {
18661
18610
  setFilters(initialFilters);
18662
- }, [filter]);
18611
+ }, [filter, tenantId]);
18663
18612
  const {
18664
18613
  isLoading,
18665
- data
18614
+ data,
18615
+ refetch
18666
18616
  } = Digit.Hooks.chb.useChbSearch({
18667
18617
  filters
18668
18618
  });
18619
+ const handleLoadMore = () => {
18620
+ setFilters(prev => ({
18621
+ ...prev,
18622
+ limit: Number(prev.limit) + 5
18623
+ }));
18624
+ };
18625
+ useEffect(() => {
18626
+ refetch();
18627
+ }, []);
18669
18628
  if (isLoading) {
18670
18629
  return /*#__PURE__*/React.createElement(Loader$1, null);
18671
18630
  }
18672
- const statusOptions = [{
18673
- i18nKey: "Booked",
18674
- code: "BOOKED",
18675
- value: t("CHB_BOOKED")
18676
- }, {
18677
- i18nKey: "Booking in Progres",
18678
- code: "BOOKING_CREATED",
18679
- value: t("CHB_BOOKING_IN_PROGRES")
18680
- }, {
18681
- i18nKey: "Cancelled",
18682
- code: "CANCELLED",
18683
- value: t("CANCELLED")
18684
- }];
18685
18631
  const filteredApplications = (data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || [];
18686
18632
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Header, null, `${t("CHB_MY_APPLICATION_HEADER")} (${filteredApplications.length})`), /*#__PURE__*/React.createElement("div", null, filteredApplications.length > 0 && filteredApplications.map((application, index) => /*#__PURE__*/React.createElement("div", {
18687
18633
  key: index
18688
18634
  }, /*#__PURE__*/React.createElement(ChbApplication, {
18689
18635
  application: application,
18690
- tenantId: user === null || user === void 0 ? void 0 : user.permanentCity,
18636
+ tenantId: tenantId,
18691
18637
  buttonLabel: t("CHB_SUMMARY")
18692
18638
  }))), filteredApplications.length === 0 && !isLoading && /*#__PURE__*/React.createElement("p", {
18693
18639
  style: {
18694
18640
  marginLeft: "16px",
18695
18641
  marginTop: "16px"
18696
18642
  }
18697
- }, t("CHB_NO_APPLICATION_FOUND_MSG")), filteredApplications.length !== 0 && (data === null || data === void 0 ? void 0 : data.count) > t1 && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
18643
+ }, t("CHB_NO_APPLICATION_FOUND_MSG")), filteredApplications.length !== 0 && (data === null || data === void 0 ? void 0 : data.count) > t1 && /*#__PURE__*/React.createElement("div", {
18698
18644
  style: {
18699
18645
  marginLeft: "16px",
18700
18646
  marginTop: "16px"
18701
18647
  }
18702
18648
  }, /*#__PURE__*/React.createElement("span", {
18703
- className: "link"
18704
- }, /*#__PURE__*/React.createElement(Link, {
18705
- to: `/digit-ui/citizen/chb/myBookings/${t1}`
18706
- }, t("CHB_LOAD_MORE_MSG")))))));
18649
+ className: "link",
18650
+ style: {
18651
+ cursor: "pointer",
18652
+ color: "#007bff"
18653
+ },
18654
+ onClick: handleLoadMore
18655
+ }, t("CHB_LOAD_MORE_MSG")))));
18707
18656
  };
18708
18657
 
18658
+ const PDFSvg = ({
18659
+ width: _width = 20,
18660
+ height: _height = 20,
18661
+ style
18662
+ }) => /*#__PURE__*/React.createElement("svg", {
18663
+ style: style,
18664
+ xmlns: "http://www.w3.org/2000/svg",
18665
+ width: _width,
18666
+ height: _height,
18667
+ viewBox: "0 0 20 20",
18668
+ fill: "gray"
18669
+ }, /*#__PURE__*/React.createElement("path", {
18670
+ d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"
18671
+ }));
18672
+ function NDCDocument({
18673
+ value = {},
18674
+ Code,
18675
+ index
18676
+ }) {
18677
+ const {
18678
+ t
18679
+ } = useTranslation();
18680
+ const {
18681
+ isLoading,
18682
+ isError,
18683
+ error,
18684
+ data
18685
+ } = Digit.Hooks.ads.useADSDocumentSearch({
18686
+ value
18687
+ }, {
18688
+ value
18689
+ }, Code, index);
18690
+ console.log("dataInNDCDocument", data);
18691
+ const documents = value !== null && value !== void 0 && value.documents ? value.documents.documents.filter(doc => doc.documentType === Code).map(doc => ({
18692
+ ...doc,
18693
+ documentType: doc.documentType.replace(/\./g, "_")
18694
+ })) : value.filter(doc => doc.documentType === Code).map(doc => ({
18695
+ ...doc,
18696
+ documentType: doc.documentType.replace(/\./g, "_")
18697
+ }));
18698
+ if (isLoading) {
18699
+ return /*#__PURE__*/React.createElement(Loader$1, null);
18700
+ }
18701
+ return /*#__PURE__*/React.createElement("div", {
18702
+ style: {
18703
+ marginTop: "19px"
18704
+ }
18705
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
18706
+ style: {
18707
+ display: "flex",
18708
+ flexWrap: "wrap"
18709
+ }
18710
+ }, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
18711
+ let documentLink = pdfDownloadLink(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
18712
+ return /*#__PURE__*/React.createElement("a", {
18713
+ target: "_",
18714
+ href: documentLink,
18715
+ style: {
18716
+ minWidth: "100px",
18717
+ marginRight: "10px"
18718
+ },
18719
+ key: index
18720
+ }, /*#__PURE__*/React.createElement(PDFSvg, {
18721
+ width: 85,
18722
+ height: 100,
18723
+ style: {
18724
+ background: "#f6f6f6",
18725
+ padding: "8px"
18726
+ }
18727
+ }));
18728
+ }))));
18729
+ }
18730
+
18709
18731
  const capitalize = text => text.substr(0, 1).toUpperCase() + text.substr(1);
18710
18732
  const ulbCamel = ulb => ulb.toLowerCase().split(" ").map(capitalize).join(" ");
18711
18733
  const getChbAcknowledgementData = async (application, tenantInfo, t) => {
@@ -41627,8 +41649,46 @@ var standalone = createCommonjsModule(function (module, exports) {
41627
41649
  });
41628
41650
  unwrapExports(standalone);
41629
41651
 
41652
+ const getTimelineCaptions = (checkpoint, index, arr, t) => {
41653
+ var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _thumbnailsToShow$thu;
41654
+ console.log("checkpoint", checkpoint);
41655
+ const {
41656
+ wfComment: comment,
41657
+ thumbnailsToShow,
41658
+ wfDocuments
41659
+ } = checkpoint;
41660
+ const caption = {
41661
+ date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
41662
+ name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name,
41663
+ source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.source
41664
+ };
41665
+ return /*#__PURE__*/React.createElement("div", null, (comment === null || comment === void 0 ? void 0 : comment.length) > 0 && /*#__PURE__*/React.createElement("div", {
41666
+ className: "TLComments"
41667
+ }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
41668
+ style: {
41669
+ overflowX: "scroll"
41670
+ }
41671
+ }, comment)), (thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$thu = thumbnailsToShow.thumbs) === null || _thumbnailsToShow$thu === void 0 ? void 0 : _thumbnailsToShow$thu.length) > 0 && /*#__PURE__*/React.createElement(DisplayPhotos, {
41672
+ srcs: thumbnailsToShow.thumbs,
41673
+ onClick: (src, idx) => {
41674
+ var _thumbnailsToShow$ful;
41675
+ let fullImage = ((_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[idx]) || src;
41676
+ Digit.Utils.zoomImage(fullImage);
41677
+ }
41678
+ }), (wfDocuments === null || wfDocuments === void 0 ? void 0 : wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", null, wfDocuments === null || wfDocuments === void 0 ? void 0 : wfDocuments.map((doc, index) => /*#__PURE__*/React.createElement("div", {
41679
+ key: index
41680
+ }, /*#__PURE__*/React.createElement(NDCDocument, {
41681
+ value: wfDocuments,
41682
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
41683
+ index: index
41684
+ })))), /*#__PURE__*/React.createElement("div", {
41685
+ style: {
41686
+ marginTop: "8px"
41687
+ }
41688
+ }, caption.date && /*#__PURE__*/React.createElement("p", null, caption.date), caption.name && /*#__PURE__*/React.createElement("p", null, caption.name), caption.source && /*#__PURE__*/React.createElement("p", null, t("ES_COMMON_FILED_VIA_" + caption.source.toUpperCase()))));
41689
+ };
41630
41690
  const CHBApplicationDetails = () => {
41631
- var _chb_details$addition, _chb_details$bookingS, _chb_details$applican, _chb_details$applican2, _chb_details$applican3, _chb_details$specialC, _chb_details$purpose, _docs, _docs2;
41691
+ var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _chb_details$addition, _reciept_data$Payment, _reciept_data$Payment4, _chb_details$bookingS, _chb_details$applican, _chb_details$applican2, _chb_details$applican3, _chb_details$specialC, _chb_details$purpose, _docs, _docs2, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0;
41632
41692
  const {
41633
41693
  t
41634
41694
  } = useTranslation();
@@ -41644,6 +41704,9 @@ const CHBApplicationDetails = () => {
41644
41704
  const {
41645
41705
  data: storeData
41646
41706
  } = Digit.Hooks.useStore.getInitData();
41707
+ const {
41708
+ tenants
41709
+ } = storeData || {};
41647
41710
  const {
41648
41711
  isLoading,
41649
41712
  isError,
@@ -41664,6 +41727,22 @@ const CHBApplicationDetails = () => {
41664
41727
  const application = chb_details;
41665
41728
  sessionStorage.setItem("chb", JSON.stringify(application));
41666
41729
  const [loading, setLoading] = useState(false);
41730
+ const workflowDetails = Digit.Hooks.useWorkflowDetails({
41731
+ tenantId: tenantId,
41732
+ id: acknowledgementIds,
41733
+ moduleCode: "chb-services",
41734
+ role: "EMPLOYEE"
41735
+ });
41736
+ if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data = workflowDetails.data) !== null && _workflowDetails$data !== void 0 && (_workflowDetails$data2 = _workflowDetails$data.actionState) !== null && _workflowDetails$data2 !== void 0 && _workflowDetails$data2.nextActions && !workflowDetails.isLoading) workflowDetails.data.actionState.nextActions = [...(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : _workflowDetails$data3.nextActions)];
41737
+ if (workflowDetails && workflowDetails.data && !workflowDetails.isLoading) {
41738
+ var _workflowDetails$data4, _workflowDetails$data5;
41739
+ workflowDetails.data.initialActionState = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.initialActionState) || {
41740
+ ...(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.actionState)
41741
+ } || {};
41742
+ workflowDetails.data.actionState = {
41743
+ ...workflowDetails.data
41744
+ };
41745
+ }
41667
41746
  const fetchBillData = async () => {
41668
41747
  setLoading(true);
41669
41748
  const result = await Digit.PaymentService.fetchBill(tenantId, {
@@ -41689,6 +41768,7 @@ const CHBApplicationDetails = () => {
41689
41768
  }, {
41690
41769
  enabled: true
41691
41770
  });
41771
+ console.log("auditResponse", auditResponse);
41692
41772
  const {
41693
41773
  data: reciept_data,
41694
41774
  isLoading: recieptDataLoading
@@ -41705,6 +41785,14 @@ const CHBApplicationDetails = () => {
41705
41785
  if (isLoading || auditDataLoading) {
41706
41786
  return /*#__PURE__*/React.createElement(Loader$1, null);
41707
41787
  }
41788
+ const getChbAcknowledgement = async () => {
41789
+ const applications = application || {};
41790
+ const tenantInfo = tenants.find(tenant => tenant.code === applications.tenantId);
41791
+ const acknowldgementDataAPI = await getChbAcknowledgementData({
41792
+ ...applications
41793
+ }, tenantInfo, t);
41794
+ Digit.Utils.pdf.generate(acknowldgementDataAPI);
41795
+ };
41708
41796
  let documentDate = t("CS_NA");
41709
41797
  if (chb_details !== null && chb_details !== void 0 && (_chb_details$addition = chb_details.additionalDetails) !== null && _chb_details$addition !== void 0 && _chb_details$addition.documentDate) {
41710
41798
  var _chb_details$addition2;
@@ -41773,12 +41861,16 @@ const CHBApplicationDetails = () => {
41773
41861
  window.open(fileStore[fileStoreId], "_blank");
41774
41862
  }
41775
41863
  let dowloadOptions = [];
41864
+ if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.paymentStatus) !== "DEPOSITED") dowloadOptions.push({
41865
+ label: t("CHB_DOWNLOAD_ACK_FORM"),
41866
+ onClick: () => getChbAcknowledgement()
41867
+ });
41776
41868
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41777
41869
  label: t("CHB_FEE_RECEIPT"),
41778
41870
  onClick: () => {
41779
- var _reciept_data$Payment;
41871
+ var _reciept_data$Payment2;
41780
41872
  return getRecieptSearch({
41781
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments[0]) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment.tenantId,
41873
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.tenantId,
41782
41874
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41783
41875
  });
41784
41876
  }
@@ -41786,16 +41878,23 @@ const CHBApplicationDetails = () => {
41786
41878
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41787
41879
  label: t("CHB_PERMISSION_LETTER"),
41788
41880
  onClick: () => {
41789
- var _reciept_data$Payment2;
41881
+ var _reciept_data$Payment3;
41790
41882
  return getPermissionLetter({
41791
- tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments[0]) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.tenantId,
41883
+ tenantId: reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment3 = reciept_data.Payments[0]) === null || _reciept_data$Payment3 === void 0 ? void 0 : _reciept_data$Payment3.tenantId,
41792
41884
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41793
41885
  });
41794
41886
  }
41795
41887
  });
41888
+ if ((reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment4 = reciept_data.Payments[0]) === null || _reciept_data$Payment4 === void 0 ? void 0 : _reciept_data$Payment4.paymentStatus) === "DEPOSITED") dowloadOptions.push({
41889
+ label: t("CHB_CERTIFICATE"),
41890
+ onClick: () => printCertificate()
41891
+ });
41796
41892
  const columns = [{
41797
41893
  Header: `${t("CHB_HALL_NUMBER")}`,
41798
41894
  accessor: "communityHallCode"
41895
+ }, {
41896
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
41897
+ accessor: "hallName"
41799
41898
  }, {
41800
41899
  Header: `${t("CHB_HALL_CODE")}`,
41801
41900
  accessor: "hallCode"
@@ -41806,8 +41905,10 @@ const CHBApplicationDetails = () => {
41806
41905
  Header: `${t("PT_COMMON_TABLE_COL_STATUS_LABEL")}`,
41807
41906
  accessor: "bookingStatus"
41808
41907
  }];
41908
+ console.log("chb_details?.bookingSlotDetails", chb_details);
41809
41909
  const slotlistRows = (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$bookingS = chb_details.bookingSlotDetails) === null || _chb_details$bookingS === void 0 ? void 0 : _chb_details$bookingS.map(slot => ({
41810
41910
  communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
41911
+ hallName: chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallName,
41811
41912
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
41812
41913
  bookingDate: slot.bookingDate,
41813
41914
  bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
@@ -41904,7 +42005,23 @@ const CHBApplicationDetails = () => {
41904
42005
  marginTop: "10px",
41905
42006
  fontSize: "15px"
41906
42007
  }
41907
- }, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED")))))));
42008
+ }, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : _workflowDetails$data6.timeline) && /*#__PURE__*/React.createElement(Card, {
42009
+ style: {
42010
+ marginTop: "20px"
42011
+ }
42012
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
42013
+ style: {
42014
+ fontSize: "24px"
42015
+ }
42016
+ }, t("CS_APPLICATION_DETAILS_APPLICATION_TIMELINE")), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : _workflowDetails$data7.timeline.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
42017
+ isCompleted: true,
42018
+ label: t(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data8 = workflowDetails.data) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.timeline[0]) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.status)
42019
+ }) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data0 = workflowDetails.data) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.timeline.map((checkpoint, index, arr) => /*#__PURE__*/React.createElement(CheckPoint, {
42020
+ keyValue: index,
42021
+ isCompleted: index === 0,
42022
+ label: t(checkpoint.status),
42023
+ customChild: getTimelineCaptions(checkpoint, index, arr, t)
42024
+ }))))));
41908
42025
  };
41909
42026
 
41910
42027
  function _extends() {
@@ -43414,78 +43531,56 @@ const TableConfig = t => ({
43414
43531
  }
43415
43532
  });
43416
43533
 
43417
- const PDFSvg = ({
43418
- width: _width = 20,
43419
- height: _height = 20,
43420
- style
43421
- }) => /*#__PURE__*/React.createElement("svg", {
43422
- style: style,
43423
- xmlns: "http://www.w3.org/2000/svg",
43424
- width: _width,
43425
- height: _height,
43426
- viewBox: "0 0 20 20",
43427
- fill: "gray"
43428
- }, /*#__PURE__*/React.createElement("path", {
43429
- d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"
43430
- }));
43431
- function NDCDocument({
43432
- value = {},
43433
- Code,
43434
- index
43435
- }) {
43436
- const {
43437
- t
43438
- } = useTranslation();
43439
- const {
43440
- isLoading,
43441
- isError,
43442
- error,
43443
- data
43444
- } = Digit.Hooks.ads.useADSDocumentSearch({
43445
- value
43446
- }, {
43447
- value
43448
- }, Code, index);
43449
- console.log("dataInNDCDocument", data);
43450
- const documents = value !== null && value !== void 0 && value.documents ? value.documents.documents.filter(doc => doc.documentType === Code).map(doc => ({
43451
- ...doc,
43452
- documentType: doc.documentType.replace(/\./g, "_")
43453
- })) : value.filter(doc => doc.documentType === Code).map(doc => ({
43454
- ...doc,
43455
- documentType: doc.documentType.replace(/\./g, "_")
43456
- }));
43457
- if (isLoading) {
43458
- return /*#__PURE__*/React.createElement(Loader$1, null);
43459
- }
43534
+ const Loader = ({
43535
+ page: _page = false
43536
+ }) => {
43537
+ const baseStyle = {
43538
+ display: "flex",
43539
+ justifyContent: "center",
43540
+ alignItems: "center"
43541
+ };
43542
+ const pageStyle = {
43543
+ ...baseStyle,
43544
+ position: "fixed",
43545
+ top: 0,
43546
+ left: 0,
43547
+ width: "100vw",
43548
+ height: "100vh",
43549
+ background: "rgba(255,255,255,0.6)",
43550
+ backdropFilter: "blur(4px)",
43551
+ zIndex: 9999
43552
+ };
43553
+ const moduleStyle = {
43554
+ ...baseStyle,
43555
+ minHeight: "100px",
43556
+ width: "100%",
43557
+ position: "relative"
43558
+ };
43559
+ const spinnerStyle = {
43560
+ width: "64px",
43561
+ height: "64px",
43562
+ border: "8px solid #1976d2",
43563
+ borderTop: "8px solid transparent",
43564
+ borderRadius: "50%",
43565
+ animation: "spin 1.2s linear infinite"
43566
+ };
43460
43567
  return /*#__PURE__*/React.createElement("div", {
43461
- style: {
43462
- marginTop: "19px"
43463
- }
43464
- }, /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
43465
- style: {
43466
- display: "flex",
43467
- flexWrap: "wrap"
43468
- }
43469
- }, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
43470
- let documentLink = pdfDownloadLink(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
43471
- return /*#__PURE__*/React.createElement("a", {
43472
- target: "_",
43473
- href: documentLink,
43474
- style: {
43475
- minWidth: "100px",
43476
- marginRight: "10px"
43477
- },
43478
- key: index
43479
- }, /*#__PURE__*/React.createElement(PDFSvg, {
43480
- width: 85,
43481
- height: 100,
43482
- style: {
43483
- background: "#f6f6f6",
43484
- padding: "8px"
43485
- }
43486
- }));
43487
- }))));
43488
- }
43568
+ style: _page ? pageStyle : moduleStyle
43569
+ }, /*#__PURE__*/React.createElement("div", {
43570
+ style: spinnerStyle
43571
+ }), /*#__PURE__*/React.createElement("style", null, `
43572
+ @keyframes spin {
43573
+ 0% { transform: rotate(0deg); }
43574
+ 100% { transform: rotate(360deg); }
43575
+ }
43576
+ `));
43577
+ };
43578
+ Loader.propTypes = {
43579
+ page: propTypes.bool
43580
+ };
43581
+ Loader.defaultProps = {
43582
+ page: false
43583
+ };
43489
43584
 
43490
43585
  const ModalConfig = ({
43491
43586
  t,
@@ -43499,8 +43594,9 @@ const ModalConfig = ({
43499
43594
  assigneeLabel,
43500
43595
  businessService
43501
43596
  }) => {
43597
+ console.log("action=====", action);
43502
43598
  let checkCondtions = true;
43503
- if ((action === null || action === void 0 ? void 0 : action.action) == "SENDBACKTOCITIZEN" || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE" || (action === null || action === void 0 ? void 0 : action.action) == "REJECT" || (action === null || action === void 0 ? void 0 : action.action) == "SENDBACK") checkCondtions = false;
43599
+ if ((action === null || action === void 0 ? void 0 : action.action) == "SENDBACKTOCITIZEN" || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE" || (action === null || action === void 0 ? void 0 : action.action) == "NOT_VERIFIED" || (action === null || action === void 0 ? void 0 : action.action) == "SENDBACK" || (action === null || action === void 0 ? void 0 : action.action) == "VERIFIED") checkCondtions = false;
43504
43600
  if (action.isTerminateState) checkCondtions = false;
43505
43601
  console.log("action=====", action.action);
43506
43602
  return {
@@ -43583,9 +43679,9 @@ const NDCModal = ({
43583
43679
  errors,
43584
43680
  showErrorToast,
43585
43681
  errorOne,
43586
- closeToastOne
43682
+ closeToastOne,
43683
+ getEmployees
43587
43684
  }) => {
43588
- var _action$state;
43589
43685
  const [config, setConfig] = useState({});
43590
43686
  const [defaultValues, setDefaultValues] = useState({});
43591
43687
  const [approvers, setApprovers] = useState([]);
@@ -43595,13 +43691,14 @@ const NDCModal = ({
43595
43691
  const [error, setError] = useState(null);
43596
43692
  const [financialYears, setFinancialYears] = useState([]);
43597
43693
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
43598
- const checkRole = action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : _action$state.actions;
43599
- const allRoles = [...new Set(checkRole === null || checkRole === void 0 ? void 0 : checkRole.flatMap(a => a.roles))];
43694
+ const allRolesNew = [...new Set(getEmployees === null || getEmployees === void 0 ? void 0 : getEmployees.flatMap(a => a.roles))];
43695
+ console.log("allRolesNew", allRolesNew);
43696
+ console.log("getEmployees", allRolesNew);
43600
43697
  const {
43601
43698
  data: approverData,
43602
43699
  isLoading: PTALoading
43603
43700
  } = Digit.Hooks.useEmployeeSearch(tenantId, {
43604
- roles: allRoles === null || allRoles === void 0 ? void 0 : allRoles.map(role => ({
43701
+ roles: allRolesNew === null || allRolesNew === void 0 ? void 0 : allRolesNew.map(role => ({
43605
43702
  code: role
43606
43703
  })),
43607
43704
  isActive: true
@@ -43706,7 +43803,8 @@ const NDCModal = ({
43706
43803
  }));
43707
43804
  }
43708
43805
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
43709
- return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
43806
+ if (!action || !config.form) return null;
43807
+ return /*#__PURE__*/React.createElement(Modal, {
43710
43808
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
43711
43809
  label: t(config.label.heading)
43712
43810
  }),
@@ -43735,11 +43833,13 @@ const NDCModal = ({
43735
43833
  label: errorOne,
43736
43834
  isDleteBtn: true,
43737
43835
  onClose: closeToastOne
43738
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
43836
+ }), PTALoading && /*#__PURE__*/React.createElement(Loader, {
43837
+ page: true
43838
+ }));
43739
43839
  };
43740
43840
 
43741
- const getTimelineCaptions = (checkpoint, index, arr, t) => {
43742
- var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _checkpoint$assigner3, _thumbnailsToShow$thu;
43841
+ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
43842
+ var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _thumbnailsToShow$thu;
43743
43843
  console.log("checkpoint", checkpoint);
43744
43844
  const {
43745
43845
  wfComment: comment,
@@ -43749,8 +43849,7 @@ const getTimelineCaptions = (checkpoint, index, arr, t) => {
43749
43849
  const caption = {
43750
43850
  date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
43751
43851
  name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name,
43752
- mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.mobileNumber,
43753
- source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner3 = checkpoint.assigner) === null || _checkpoint$assigner3 === void 0 ? void 0 : _checkpoint$assigner3.source
43852
+ source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.source
43754
43853
  };
43755
43854
  return /*#__PURE__*/React.createElement("div", null, (comment === null || comment === void 0 ? void 0 : comment.length) > 0 && /*#__PURE__*/React.createElement("div", {
43756
43855
  className: "TLComments"
@@ -43775,7 +43874,7 @@ const getTimelineCaptions = (checkpoint, index, arr, t) => {
43775
43874
  style: {
43776
43875
  marginTop: "8px"
43777
43876
  }
43778
- }, caption.date && /*#__PURE__*/React.createElement("p", null, caption.date), caption.name && /*#__PURE__*/React.createElement("p", null, caption.name), caption.mobileNumber && /*#__PURE__*/React.createElement("p", null, caption.mobileNumber), caption.source && /*#__PURE__*/React.createElement("p", null, t("ES_COMMON_FILED_VIA_" + caption.source.toUpperCase()))));
43877
+ }, caption.date && /*#__PURE__*/React.createElement("p", null, caption.date), caption.name && /*#__PURE__*/React.createElement("p", null, caption.name), caption.source && /*#__PURE__*/React.createElement("p", null, t("ES_COMMON_FILED_VIA_" + caption.source.toUpperCase()))));
43779
43878
  };
43780
43879
  const CHBApplicationDetails$1 = () => {
43781
43880
  var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _user$info, _user$info$roles, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetailsTemp$, _workflowDetailsTemp$2, _chb_details$addition, _chb_details$bookingS, _chb_details$applican, _chb_details$applican2, _chb_details$applican3, _chb_details$specialC, _chb_details$purpose, _docs, _docs2, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15;
@@ -43789,8 +43888,11 @@ const CHBApplicationDetails$1 = () => {
43789
43888
  const [acknowldgementData, setAcknowldgementData] = useState([]);
43790
43889
  const [showOptions, setShowOptions] = useState(false);
43791
43890
  const [popup, setpopup] = useState(false);
43891
+ const [getEmployees, setEmployees] = useState([]);
43892
+ const [getWorkflowService, setWorkflowService] = useState([]);
43792
43893
  const [showToast, setShowToast] = useState(null);
43793
43894
  const [error, setError] = useState(null);
43895
+ const [getLoader, setLoader] = useState(false);
43794
43896
  const {
43795
43897
  data: storeData
43796
43898
  } = Digit.Hooks.useStore.getInitData();
@@ -43932,16 +44034,34 @@ const CHBApplicationDetails$1 = () => {
43932
44034
  });
43933
44035
  }
43934
44036
  }, [data === null || data === void 0 ? void 0 : data.hallsBookingApplication]);
44037
+ useEffect(() => {
44038
+ let WorkflowService = null;
44039
+ (async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2, _WorkflowService2, _WorkflowService2$Bus, _WorkflowService2$Bus2) => {
44040
+ setLoader(true);
44041
+ WorkflowService = await Digit.WorkflowService.init(tenantId, "chb-services");
44042
+ setLoader(false);
44043
+ console.log("WorkflowService====", (_WorkflowService = WorkflowService) === null || _WorkflowService === void 0 ? void 0 : (_WorkflowService$Busi = _WorkflowService.BusinessServices) === null || _WorkflowService$Busi === void 0 ? void 0 : (_WorkflowService$Busi2 = _WorkflowService$Busi[0]) === null || _WorkflowService$Busi2 === void 0 ? void 0 : _WorkflowService$Busi2.states);
44044
+ setWorkflowService((_WorkflowService2 = WorkflowService) === null || _WorkflowService2 === void 0 ? void 0 : (_WorkflowService2$Bus = _WorkflowService2.BusinessServices) === null || _WorkflowService2$Bus === void 0 ? void 0 : (_WorkflowService2$Bus2 = _WorkflowService2$Bus[0]) === null || _WorkflowService2$Bus2 === void 0 ? void 0 : _WorkflowService2$Bus2.states);
44045
+ })();
44046
+ }, [tenantId]);
43935
44047
  function onActionSelect(action) {
43936
- var _displayData$applican;
44048
+ var _action$state, _action$state$actions, _filterRoles$, _displayData$applican;
43937
44049
  const payload = {
43938
44050
  Licenses: [action]
43939
44051
  };
44052
+ const filterNexState = action === null || action === void 0 ? void 0 : (_action$state = action.state) === null || _action$state === void 0 ? void 0 : (_action$state$actions = _action$state.actions) === null || _action$state$actions === void 0 ? void 0 : _action$state$actions.filter(item => item.action == (action === null || action === void 0 ? void 0 : action.action));
44053
+ const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
44054
+ var _filterNexState$;
44055
+ return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
44056
+ });
44057
+ console.log("filterNexState", filterNexState);
44058
+ console.log("getWorkflowService", getWorkflowService);
44059
+ setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
43940
44060
  const appNo = displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantData) === null || _displayData$applican === void 0 ? void 0 : _displayData$applican.applicationNo;
43941
44061
  if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
43942
44062
  submitAction(payload);
43943
44063
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY") {
43944
- history.push(`/digit-ui/employee/payment/collect/NDC/${appNo}/${tenantId}?tenantId=${tenantId}`);
44064
+ history.push(`/digit-ui/employee/payment/collect/chb-services/${appNo}/${tenantId}?tenantId=${tenantId}`);
43945
44065
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT") {
43946
44066
  history.push(`/digit-ui/employee/ndc/create/${appNo}`);
43947
44067
  } else {
@@ -43987,9 +44107,6 @@ const CHBApplicationDetails$1 = () => {
43987
44107
  });
43988
44108
  let docs = [];
43989
44109
  docs = application === null || application === void 0 ? void 0 : application.documents;
43990
- if (isLoading || auditDataLoading) {
43991
- return /*#__PURE__*/React.createElement(Loader$1, null);
43992
- }
43993
44110
  let documentDate = t("CS_NA");
43994
44111
  if (chb_details !== null && chb_details !== void 0 && (_chb_details$addition = chb_details.additionalDetails) !== null && _chb_details$addition !== void 0 && _chb_details$addition.documentDate) {
43995
44112
  var _chb_details$addition2;
@@ -44081,6 +44198,9 @@ const CHBApplicationDetails$1 = () => {
44081
44198
  const columns = [{
44082
44199
  Header: `${t("CHB_HALL_NUMBER")}`,
44083
44200
  accessor: "communityHallCode"
44201
+ }, {
44202
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
44203
+ accessor: "hallName"
44084
44204
  }, {
44085
44205
  Header: `${t("CHB_HALL_CODE")}`,
44086
44206
  accessor: "hallCode"
@@ -44093,9 +44213,10 @@ const CHBApplicationDetails$1 = () => {
44093
44213
  }];
44094
44214
  const slotlistRows = (chb_details === null || chb_details === void 0 ? void 0 : (_chb_details$bookingS = chb_details.bookingSlotDetails) === null || _chb_details$bookingS === void 0 ? void 0 : _chb_details$bookingS.map(slot => ({
44095
44215
  communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
44216
+ hallName: chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallName,
44096
44217
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
44097
44218
  bookingDate: slot.bookingDate,
44098
- bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44219
+ bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44099
44220
  }))) || [];
44100
44221
  const submitAction = async modalData => {
44101
44222
  var _modalData$Licenses;
@@ -44114,7 +44235,7 @@ const CHBApplicationDetails$1 = () => {
44114
44235
  comment: filtData === null || filtData === void 0 ? void 0 : filtData.comment,
44115
44236
  documents: filtData === null || filtData === void 0 ? void 0 : filtData.wfDocuments
44116
44237
  };
44117
- if (!(filtData !== null && filtData !== void 0 && filtData.assignee) && filtData.action !== "SENDBACKTOCITIZEN" && filtData.action !== "APPROVE" && filtData.action !== "REJECT" && filtData.action !== "SENDBACK") {
44238
+ if (!(filtData !== null && filtData !== void 0 && filtData.assignee) && filtData.action !== "SENDBACKTOCITIZEN" && filtData.action !== "APPROVE" && filtData.action !== "REJECT" && filtData.action !== "SENDBACK" && filtData.action !== "NOT_VERIFIED" && filtData.action !== "VERIFIED") {
44118
44239
  setErrorOne("Assignee is Mandatory");
44119
44240
  setShowErrorToastt(true);
44120
44241
  return;
@@ -44152,22 +44273,8 @@ const CHBApplicationDetails$1 = () => {
44152
44273
  setShowErrorToastt(true);
44153
44274
  }
44154
44275
  };
44155
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
44156
- className: "cardHeaderWithOptions",
44157
- style: {
44158
- marginRight: "auto",
44159
- maxWidth: "960px"
44160
- }
44161
- }, /*#__PURE__*/React.createElement(Header, {
44162
- styles: {
44163
- fontSize: "32px"
44164
- }
44165
- }, t("CHB_BOOKING_DETAILS")), dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement(MultiLink, {
44166
- className: "multilinkWrapper",
44167
- onHeadClick: () => setShowOptions(!showOptions),
44168
- displayOptions: showOptions,
44169
- options: dowloadOptions
44170
- })), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
44276
+ const filteredActions = actions === null || actions === void 0 ? void 0 : actions.filter(a => a.action !== "SUBMIT" && a.action !== "EDIT");
44277
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
44171
44278
  style: {
44172
44279
  fontSize: "24px"
44173
44280
  }
@@ -44233,21 +44340,18 @@ const CHBApplicationDetails$1 = () => {
44233
44340
  flexDirection: "row",
44234
44341
  gap: "30px"
44235
44342
  }
44236
- }, ((_docs = docs) === null || _docs === void 0 ? void 0 : _docs.length) > 0 ? (_docs2 = docs) === null || _docs2 === void 0 ? void 0 : _docs2.map((doc, index) => {
44237
- var _doc$documentType;
44238
- return /*#__PURE__*/React.createElement(React.Fragment, {
44239
- key: index
44240
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CHBDocument, {
44241
- value: docs,
44242
- Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
44243
- index: index
44244
- }), /*#__PURE__*/React.createElement(CardSectionHeader, {
44245
- style: {
44246
- marginTop: "10px",
44247
- fontSize: "15px"
44248
- }
44249
- }, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_")))));
44250
- }) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.timeline) && /*#__PURE__*/React.createElement(Card, {
44343
+ }, ((_docs = docs) === null || _docs === void 0 ? void 0 : _docs.length) > 0 ? (_docs2 = docs) === null || _docs2 === void 0 ? void 0 : _docs2.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
44344
+ key: index
44345
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CHBDocument, {
44346
+ value: docs,
44347
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
44348
+ index: index
44349
+ }), /*#__PURE__*/React.createElement(CardSectionHeader, {
44350
+ style: {
44351
+ marginTop: "10px",
44352
+ fontSize: "15px"
44353
+ }
44354
+ }, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED"))))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.timeline) && /*#__PURE__*/React.createElement(Card, {
44251
44355
  style: {
44252
44356
  marginTop: "20px"
44253
44357
  }
@@ -44258,10 +44362,10 @@ const CHBApplicationDetails$1 = () => {
44258
44362
  keyValue: index,
44259
44363
  isCompleted: index === 0,
44260
44364
  label: t(checkpoint.status),
44261
- customChild: getTimelineCaptions(checkpoint, index, arr, t)
44262
- })))), actions && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.actionState) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
44365
+ customChild: getTimelineCaptions$1(checkpoint, index, arr, t)
44366
+ })))), actions && actions.length > 0 && !actions.some(a => a.action === "SUBMIT") && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data12 = workflowDetails.data) !== null && _workflowDetails$data12 !== void 0 && (_workflowDetails$data13 = _workflowDetails$data12.actionState) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data14 = workflowDetails.data) !== null && _workflowDetails$data14 !== void 0 && _workflowDetails$data14.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
44263
44367
  localeKeyPrefix: `WF_EDITRENEWAL`,
44264
- options: actions,
44368
+ options: filteredActions,
44265
44369
  optionKey: "action",
44266
44370
  t: t,
44267
44371
  onSelect: onActionSelect
@@ -44282,6 +44386,7 @@ const CHBApplicationDetails$1 = () => {
44282
44386
  actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.timeline,
44283
44387
  workflowDetails: workflowDetails,
44284
44388
  showToast: showToast,
44389
+ getEmployees: getEmployees,
44285
44390
  closeToast: closeToast,
44286
44391
  errors: error,
44287
44392
  showErrorToast: showErrorToast,
@@ -44292,6 +44397,8 @@ const CHBApplicationDetails$1 = () => {
44292
44397
  label: error,
44293
44398
  isDleteBtn: true,
44294
44399
  onClose: closeToast
44400
+ }), (isLoading || auditDataLoading || getLoader) && /*#__PURE__*/React.createElement(Loader, {
44401
+ page: true
44295
44402
  })));
44296
44403
  };
44297
44404
 
@@ -45185,57 +45292,6 @@ const NewADSStepperForm = () => {
45185
45292
  }));
45186
45293
  };
45187
45294
 
45188
- const Loader = ({
45189
- page: _page = false
45190
- }) => {
45191
- const baseStyle = {
45192
- display: "flex",
45193
- justifyContent: "center",
45194
- alignItems: "center"
45195
- };
45196
- const pageStyle = {
45197
- ...baseStyle,
45198
- position: "fixed",
45199
- top: 0,
45200
- left: 0,
45201
- width: "100vw",
45202
- height: "100vh",
45203
- background: "rgba(255,255,255,0.6)",
45204
- backdropFilter: "blur(4px)",
45205
- zIndex: 9999
45206
- };
45207
- const moduleStyle = {
45208
- ...baseStyle,
45209
- minHeight: "100px",
45210
- width: "100%",
45211
- position: "relative"
45212
- };
45213
- const spinnerStyle = {
45214
- width: "64px",
45215
- height: "64px",
45216
- border: "8px solid #1976d2",
45217
- borderTop: "8px solid transparent",
45218
- borderRadius: "50%",
45219
- animation: "spin 1.2s linear infinite"
45220
- };
45221
- return /*#__PURE__*/React.createElement("div", {
45222
- style: _page ? pageStyle : moduleStyle
45223
- }, /*#__PURE__*/React.createElement("div", {
45224
- style: spinnerStyle
45225
- }), /*#__PURE__*/React.createElement("style", null, `
45226
- @keyframes spin {
45227
- 0% { transform: rotate(0deg); }
45228
- 100% { transform: rotate(360deg); }
45229
- }
45230
- `));
45231
- };
45232
- Loader.propTypes = {
45233
- page: propTypes.bool
45234
- };
45235
- Loader.defaultProps = {
45236
- page: false
45237
- };
45238
-
45239
45295
  const CHBCitizenSecond = ({
45240
45296
  onGoBack,
45241
45297
  goNext,
@@ -45308,14 +45364,15 @@ const CHBCitizenSecond = ({
45308
45364
  setHallCodes(getHallCodesData);
45309
45365
  };
45310
45366
  const slotsSearch = async data => {
45311
- var _getValues, _getValues$siteId, _getValues2, _getValues3;
45367
+ var _getValues, _getValues2;
45312
45368
  setLoader(true);
45369
+ console.log("data", data);
45313
45370
  const payload = {
45314
45371
  tenantId: tenantId,
45315
- communityHallCode: (_getValues = getValues()) === null || _getValues === void 0 ? void 0 : (_getValues$siteId = _getValues.siteId) === null || _getValues$siteId === void 0 ? void 0 : _getValues$siteId.code,
45372
+ communityHallCode: data.communityHallId,
45316
45373
  hallCode: data === null || data === void 0 ? void 0 : data.HallCode,
45317
- bookingStartDate: (_getValues2 = getValues()) === null || _getValues2 === void 0 ? void 0 : _getValues2.startDate,
45318
- bookingEndDate: (_getValues3 = getValues()) === null || _getValues3 === void 0 ? void 0 : _getValues3.startDate,
45374
+ bookingStartDate: (_getValues = getValues()) === null || _getValues === void 0 ? void 0 : _getValues.startDate,
45375
+ bookingEndDate: (_getValues2 = getValues()) === null || _getValues2 === void 0 ? void 0 : _getValues2.startDate,
45319
45376
  isTimerRequired: false
45320
45377
  };
45321
45378
  try {
@@ -45330,7 +45387,7 @@ const CHBCitizenSecond = ({
45330
45387
  }
45331
45388
  };
45332
45389
  const onSubmit = data => {
45333
- var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$purpose, _data$specialCategory;
45390
+ var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$siteId, _data$purpose, _data$specialCategory;
45334
45391
  console.log("data==??", data);
45335
45392
  const userInfo = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
45336
45393
  const now = Date.now();
@@ -45354,6 +45411,7 @@ const CHBCitizenSecond = ({
45354
45411
  bookingStatus: "INITIATED",
45355
45412
  applicationDate: now,
45356
45413
  communityHallCode: (getHallDetails === null || getHallDetails === void 0 ? void 0 : (_getHallDetails$ = getHallDetails[0]) === null || _getHallDetails$ === void 0 ? void 0 : _getHallDetails$.communityHallId) || "",
45414
+ communityHallName: data === null || data === void 0 ? void 0 : (_data$siteId = data.siteId) === null || _data$siteId === void 0 ? void 0 : _data$siteId.name,
45357
45415
  purpose: {
45358
45416
  purpose: data === null || data === void 0 ? void 0 : (_data$purpose = data.purpose) === null || _data$purpose === void 0 ? void 0 : _data$purpose.code
45359
45417
  },
@@ -45443,6 +45501,9 @@ const CHBCitizenSecond = ({
45443
45501
  props.onChange(e);
45444
45502
  fiterHalls(e);
45445
45503
  setValue("hallCode", null);
45504
+ setValue("startDate", "");
45505
+ setSlots([]);
45506
+ setShowInfo(false);
45446
45507
  },
45447
45508
  selected: props.value,
45448
45509
  option: CHBLocations === null || CHBLocations === void 0 ? void 0 : (_CHBLocations$CHB = CHBLocations.CHB) === null || _CHBLocations$CHB === void 0 ? void 0 : _CHBLocations$CHB.CommunityHalls,
@@ -45571,7 +45632,9 @@ const CHBCitizenSecond = ({
45571
45632
  }, /*#__PURE__*/React.createElement("input", {
45572
45633
  type: "checkbox",
45573
45634
  checked: isChecked,
45635
+ disabled: !isAvailable,
45574
45636
  onChange: e => {
45637
+ if (!isAvailable) return;
45575
45638
  if (e.target.checked) {
45576
45639
  field.onChange([...(field.value || []), slot]);
45577
45640
  } else {
@@ -45789,6 +45852,12 @@ const CHBCitizenDetailsNew = ({
45789
45852
  applicantEmailId: data === null || data === void 0 ? void 0 : data.emailId,
45790
45853
  type: user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.type
45791
45854
  };
45855
+ const owners = [{
45856
+ name: data === null || data === void 0 ? void 0 : data.name,
45857
+ mobileNumber: data === null || data === void 0 ? void 0 : data.mobileNumber,
45858
+ emailId: data === null || data === void 0 ? void 0 : data.emailId,
45859
+ type: "CITIZEN"
45860
+ }];
45792
45861
  const address = {
45793
45862
  addressLine1: data === null || data === void 0 ? void 0 : data.address
45794
45863
  };
@@ -45796,7 +45865,8 @@ const CHBCitizenDetailsNew = ({
45796
45865
  hallsBookingApplication: {
45797
45866
  ...baseApplication,
45798
45867
  applicantDetail,
45799
- address
45868
+ address,
45869
+ owners
45800
45870
  }
45801
45871
  };
45802
45872
  console.log("final payload", payload);
@@ -46173,7 +46243,7 @@ function CHBSummary({
46173
46243
  goNext,
46174
46244
  onGoBack
46175
46245
  }) {
46176
- var _formData$documents, _formData$documents$d, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$venueDetail, _formData$venueDetail2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _formData$venueDetail3, _formData$venueDetail4, _formData$venueDetail5, _formData$venueDetail8, _formData$venueDetail9, _formData$venueDetail0, _formData$venueDetail1, _formData$venueDetail10, _formData$venueDetail11, _formData$venueDetail12, _formData$venueDetail13, _formData$venueDetail14, _formData$venueDetail15, _formData$venueDetail16, _formData$venueDetail17, _formData$venueDetail18, _formData$venueDetail19, _formData$venueDetail20, _formData$venueDetail21, _formData$venueDetail22, _formData$venueDetail23, _formData$venueDetail24, _formData$venueDetail25, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
46246
+ var _formData$documents, _formData$documents$d, _formData$apiData, _formData$apiData$App, _formData$apiData$App2, _formData$venueDetail, _formData$venueDetail2, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _formData$venueDetail3, _formData$venueDetail4, _formData$venueDetail5, _formData$venueDetail0, _formData$venueDetail1, _formData$venueDetail10, _formData$venueDetail11, _formData$venueDetail12, _formData$venueDetail13, _formData$venueDetail14, _formData$venueDetail15, _formData$venueDetail16, _formData$venueDetail17, _formData$venueDetail18, _formData$venueDetail19, _formData$venueDetail20, _formData$venueDetail21, _formData$venueDetail22, _formData$venueDetail23, _formData$venueDetail24, _formData$venueDetail25, _formData$venueDetail26, _formData$venueDetail27, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
46177
46247
  const {
46178
46248
  pathname: url
46179
46249
  } = useLocation();
@@ -46188,6 +46258,9 @@ function CHBSummary({
46188
46258
  const columns = [{
46189
46259
  Header: `${t("CHB_HALL_NUMBER")}`,
46190
46260
  accessor: "communityHallCode"
46261
+ }, {
46262
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
46263
+ accessor: "hallName"
46191
46264
  }, {
46192
46265
  Header: `${t("CHB_HALL_CODE")}`,
46193
46266
  accessor: "hallCode"
@@ -46266,9 +46339,10 @@ function CHBSummary({
46266
46339
  style: boldLabelStyle
46267
46340
  }, label), /*#__PURE__*/React.createElement("div", null, t(value) || "NA"));
46268
46341
  const slotlistRows = (formData === null || formData === void 0 ? void 0 : (_formData$venueDetail3 = formData.venueDetails) === null || _formData$venueDetail3 === void 0 ? void 0 : (_formData$venueDetail4 = _formData$venueDetail3[0]) === null || _formData$venueDetail4 === void 0 ? void 0 : (_formData$venueDetail5 = _formData$venueDetail4.bookingSlotDetails) === null || _formData$venueDetail5 === void 0 ? void 0 : _formData$venueDetail5.map(slot => {
46269
- var _formData$venueDetail6, _formData$venueDetail7;
46342
+ var _formData$venueDetail6, _formData$venueDetail7, _formData$venueDetail8, _formData$venueDetail9;
46270
46343
  return {
46271
46344
  communityHallCode: `${t(formData === null || formData === void 0 ? void 0 : (_formData$venueDetail6 = formData.venueDetails) === null || _formData$venueDetail6 === void 0 ? void 0 : (_formData$venueDetail7 = _formData$venueDetail6[0]) === null || _formData$venueDetail7 === void 0 ? void 0 : _formData$venueDetail7.communityHallCode)}`,
46345
+ hallName: formData === null || formData === void 0 ? void 0 : (_formData$venueDetail8 = formData.venueDetails) === null || _formData$venueDetail8 === void 0 ? void 0 : (_formData$venueDetail9 = _formData$venueDetail8[0]) === null || _formData$venueDetail9 === void 0 ? void 0 : _formData$venueDetail9.communityHallName,
46272
46346
  hallCode: slot.hallCode + " - " + slot.capacity,
46273
46347
  bookingDate: slot.bookingDate,
46274
46348
  bookingStatus: `${t(slot.status)}`
@@ -46284,13 +46358,13 @@ function CHBSummary({
46284
46358
  style: {
46285
46359
  fontSize: "24px"
46286
46360
  }
46287
- }, t("CHB_APPLICANT_DETAILS")), renderLabel(t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail8 = formData.venueDetails) === null || _formData$venueDetail8 === void 0 ? void 0 : (_formData$venueDetail9 = _formData$venueDetail8[0]) === null || _formData$venueDetail9 === void 0 ? void 0 : (_formData$venueDetail0 = _formData$venueDetail9.applicantDetail) === null || _formData$venueDetail0 === void 0 ? void 0 : _formData$venueDetail0.applicantName), renderLabel(t("NOC_APPLICANT_MOBILE_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail1 = formData.venueDetails) === null || _formData$venueDetail1 === void 0 ? void 0 : (_formData$venueDetail10 = _formData$venueDetail1[0]) === null || _formData$venueDetail10 === void 0 ? void 0 : (_formData$venueDetail11 = _formData$venueDetail10.applicantDetail) === null || _formData$venueDetail11 === void 0 ? void 0 : _formData$venueDetail11.applicantMobileNo), renderLabel(t("NOC_APPLICANT_EMAIL_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail12 = formData.venueDetails) === null || _formData$venueDetail12 === void 0 ? void 0 : (_formData$venueDetail13 = _formData$venueDetail12[0]) === null || _formData$venueDetail13 === void 0 ? void 0 : (_formData$venueDetail14 = _formData$venueDetail13.applicantDetail) === null || _formData$venueDetail14 === void 0 ? void 0 : _formData$venueDetail14.applicantEmailId), renderLabel(t("PT_COMMON_COL_ADDRESS"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail15 = formData.venueDetails) === null || _formData$venueDetail15 === void 0 ? void 0 : (_formData$venueDetail16 = _formData$venueDetail15[0]) === null || _formData$venueDetail16 === void 0 ? void 0 : (_formData$venueDetail17 = _formData$venueDetail16.address) === null || _formData$venueDetail17 === void 0 ? void 0 : _formData$venueDetail17.addressLine1)), /*#__PURE__*/React.createElement("div", {
46361
+ }, t("CHB_APPLICANT_DETAILS")), renderLabel(t("BPA_BASIC_DETAILS_APPLICATION_NAME_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail0 = formData.venueDetails) === null || _formData$venueDetail0 === void 0 ? void 0 : (_formData$venueDetail1 = _formData$venueDetail0[0]) === null || _formData$venueDetail1 === void 0 ? void 0 : (_formData$venueDetail10 = _formData$venueDetail1.applicantDetail) === null || _formData$venueDetail10 === void 0 ? void 0 : _formData$venueDetail10.applicantName), renderLabel(t("NOC_APPLICANT_MOBILE_NO_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail11 = formData.venueDetails) === null || _formData$venueDetail11 === void 0 ? void 0 : (_formData$venueDetail12 = _formData$venueDetail11[0]) === null || _formData$venueDetail12 === void 0 ? void 0 : (_formData$venueDetail13 = _formData$venueDetail12.applicantDetail) === null || _formData$venueDetail13 === void 0 ? void 0 : _formData$venueDetail13.applicantMobileNo), renderLabel(t("NOC_APPLICANT_EMAIL_LABEL"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail14 = formData.venueDetails) === null || _formData$venueDetail14 === void 0 ? void 0 : (_formData$venueDetail15 = _formData$venueDetail14[0]) === null || _formData$venueDetail15 === void 0 ? void 0 : (_formData$venueDetail16 = _formData$venueDetail15.applicantDetail) === null || _formData$venueDetail16 === void 0 ? void 0 : _formData$venueDetail16.applicantEmailId), renderLabel(t("PT_COMMON_COL_ADDRESS"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail17 = formData.venueDetails) === null || _formData$venueDetail17 === void 0 ? void 0 : (_formData$venueDetail18 = _formData$venueDetail17[0]) === null || _formData$venueDetail18 === void 0 ? void 0 : (_formData$venueDetail19 = _formData$venueDetail18.address) === null || _formData$venueDetail19 === void 0 ? void 0 : _formData$venueDetail19.addressLine1)), /*#__PURE__*/React.createElement("div", {
46288
46362
  style: sectionStyle
46289
46363
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
46290
46364
  style: {
46291
46365
  fontSize: "24px"
46292
46366
  }
46293
- }, t("CHB_EVENT_DETAILS")), renderLabel(t("CHB_SPECIAL_CATEGORY"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail18 = formData.venueDetails) === null || _formData$venueDetail18 === void 0 ? void 0 : (_formData$venueDetail19 = _formData$venueDetail18[0]) === null || _formData$venueDetail19 === void 0 ? void 0 : (_formData$venueDetail20 = _formData$venueDetail19.specialCategory) === null || _formData$venueDetail20 === void 0 ? void 0 : _formData$venueDetail20.category), renderLabel(t("CHB_PURPOSE"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail21 = formData.venueDetails) === null || _formData$venueDetail21 === void 0 ? void 0 : (_formData$venueDetail22 = _formData$venueDetail21[0]) === null || _formData$venueDetail22 === void 0 ? void 0 : (_formData$venueDetail23 = _formData$venueDetail22.purpose) === null || _formData$venueDetail23 === void 0 ? void 0 : _formData$venueDetail23.purpose), renderLabel(t("CHB_PURPOSE_DESCRIPTION"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail24 = formData.venueDetails) === null || _formData$venueDetail24 === void 0 ? void 0 : (_formData$venueDetail25 = _formData$venueDetail24[0]) === null || _formData$venueDetail25 === void 0 ? void 0 : _formData$venueDetail25.purposeDescription)), /*#__PURE__*/React.createElement(ApplicationTable, {
46367
+ }, t("CHB_EVENT_DETAILS")), renderLabel(t("CHB_SPECIAL_CATEGORY"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail20 = formData.venueDetails) === null || _formData$venueDetail20 === void 0 ? void 0 : (_formData$venueDetail21 = _formData$venueDetail20[0]) === null || _formData$venueDetail21 === void 0 ? void 0 : (_formData$venueDetail22 = _formData$venueDetail21.specialCategory) === null || _formData$venueDetail22 === void 0 ? void 0 : _formData$venueDetail22.category), renderLabel(t("CHB_PURPOSE"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail23 = formData.venueDetails) === null || _formData$venueDetail23 === void 0 ? void 0 : (_formData$venueDetail24 = _formData$venueDetail23[0]) === null || _formData$venueDetail24 === void 0 ? void 0 : (_formData$venueDetail25 = _formData$venueDetail24.purpose) === null || _formData$venueDetail25 === void 0 ? void 0 : _formData$venueDetail25.purpose), renderLabel(t("CHB_PURPOSE_DESCRIPTION"), formData === null || formData === void 0 ? void 0 : (_formData$venueDetail26 = formData.venueDetails) === null || _formData$venueDetail26 === void 0 ? void 0 : (_formData$venueDetail27 = _formData$venueDetail26[0]) === null || _formData$venueDetail27 === void 0 ? void 0 : _formData$venueDetail27.purposeDescription)), /*#__PURE__*/React.createElement(ApplicationTable, {
46294
46368
  t: t,
46295
46369
  data: slotlistRows,
46296
46370
  columns: columns,