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

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,13 +18515,27 @@ const ChbApplication = ({
18515
18515
  tenantId,
18516
18516
  buttonLabel
18517
18517
  }) => {
18518
- var _application$applican;
18518
+ var _application$bookingS, _application$bookingS2, _application$bookingS3, _application$bookingS4, _application$bookingS5, _application$bookingS6, _application$applican;
18519
18519
  const {
18520
18520
  t
18521
18521
  } = useTranslation();
18522
18522
  const history = useHistory();
18523
18523
  const [showToast, setShowToast] = useState(null);
18524
- console.log("application", application);
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
+ });
18525
18539
  const getBookingDateRange = bookingSlotDetails => {
18526
18540
  var _bookingSlotDetails$, _bookingSlotDetails;
18527
18541
  if (!bookingSlotDetails || bookingSlotDetails.length === 0) {
@@ -18536,7 +18550,41 @@ const ChbApplication = ({
18536
18550
  }
18537
18551
  };
18538
18552
  const handleMakePayment = async () => {
18539
- history.push(`/digit-ui/citizen/payment/collect/chb-services/${application === null || application === void 0 ? void 0 : application.bookingNo}/${tenantId}?tenantId=${tenantId}`);
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
+ }
18540
18588
  };
18541
18589
  useEffect(() => {
18542
18590
  if (showToast) {
@@ -18558,17 +18606,17 @@ const ChbApplication = ({
18558
18606
  }), /*#__PURE__*/React.createElement(KeyNote, {
18559
18607
  keyValue: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
18560
18608
  note: t(`${application === null || application === void 0 ? void 0 : application.bookingStatus}`)
18561
- }), /*#__PURE__*/React.createElement("div", null, application.bookingStatus === "PENDING_PAYMENT" ? /*#__PURE__*/React.createElement(SubmitBar, {
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, {
18562
18614
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
18563
18615
  onSubmit: handleMakePayment,
18564
18616
  style: {
18565
18617
  margin: "20px"
18566
18618
  }
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, {
18619
+ })), showToast && /*#__PURE__*/React.createElement(Toast, {
18572
18620
  error: showToast.error,
18573
18621
  warning: showToast.warning,
18574
18622
  label: t(showToast.label),
@@ -18582,7 +18630,10 @@ const CHBMyApplications = () => {
18582
18630
  const {
18583
18631
  t
18584
18632
  } = useTranslation();
18585
- const tenantId = window.localStorage.getItem("CITIZEN.CITY");
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);
18586
18637
  const [filters, setFilters] = useState(null);
18587
18638
  let filter = window.location.href.split("/").pop();
18588
18639
  let t1;
@@ -18600,7 +18651,7 @@ const CHBMyApplications = () => {
18600
18651
  offset: off,
18601
18652
  tenantId
18602
18653
  } : {
18603
- limit: "10",
18654
+ limit: "4",
18604
18655
  sortOrder: "ASC",
18605
18656
  sortBy: "createdTime",
18606
18657
  offset: "0",
@@ -18608,126 +18659,53 @@ const CHBMyApplications = () => {
18608
18659
  };
18609
18660
  useEffect(() => {
18610
18661
  setFilters(initialFilters);
18611
- }, [filter, tenantId]);
18662
+ }, [filter]);
18612
18663
  const {
18613
18664
  isLoading,
18614
- data,
18615
- refetch
18665
+ data
18616
18666
  } = Digit.Hooks.chb.useChbSearch({
18617
18667
  filters
18618
18668
  });
18619
- const handleLoadMore = () => {
18620
- setFilters(prev => ({
18621
- ...prev,
18622
- limit: Number(prev.limit) + 5
18623
- }));
18624
- };
18625
- useEffect(() => {
18626
- refetch();
18627
- }, []);
18628
18669
  if (isLoading) {
18629
18670
  return /*#__PURE__*/React.createElement(Loader$1, null);
18630
18671
  }
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
+ }];
18631
18685
  const filteredApplications = (data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || [];
18632
18686
  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", {
18633
18687
  key: index
18634
18688
  }, /*#__PURE__*/React.createElement(ChbApplication, {
18635
18689
  application: application,
18636
- tenantId: tenantId,
18690
+ tenantId: user === null || user === void 0 ? void 0 : user.permanentCity,
18637
18691
  buttonLabel: t("CHB_SUMMARY")
18638
18692
  }))), filteredApplications.length === 0 && !isLoading && /*#__PURE__*/React.createElement("p", {
18639
18693
  style: {
18640
18694
  marginLeft: "16px",
18641
18695
  marginTop: "16px"
18642
18696
  }
18643
- }, t("CHB_NO_APPLICATION_FOUND_MSG")), filteredApplications.length !== 0 && (data === null || data === void 0 ? void 0 : data.count) > t1 && /*#__PURE__*/React.createElement("div", {
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", {
18644
18698
  style: {
18645
18699
  marginLeft: "16px",
18646
18700
  marginTop: "16px"
18647
18701
  }
18648
18702
  }, /*#__PURE__*/React.createElement("span", {
18649
- className: "link",
18650
- style: {
18651
- cursor: "pointer",
18652
- color: "#007bff"
18653
- },
18654
- onClick: handleLoadMore
18655
- }, t("CHB_LOAD_MORE_MSG")))));
18703
+ className: "link"
18704
+ }, /*#__PURE__*/React.createElement(Link, {
18705
+ to: `/digit-ui/citizen/chb/myBookings/${t1}`
18706
+ }, t("CHB_LOAD_MORE_MSG")))))));
18656
18707
  };
18657
18708
 
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
-
18731
18709
  const capitalize = text => text.substr(0, 1).toUpperCase() + text.substr(1);
18732
18710
  const ulbCamel = ulb => ulb.toLowerCase().split(" ").map(capitalize).join(" ");
18733
18711
  const getChbAcknowledgementData = async (application, tenantInfo, t) => {
@@ -41649,46 +41627,8 @@ var standalone = createCommonjsModule(function (module, exports) {
41649
41627
  });
41650
41628
  unwrapExports(standalone);
41651
41629
 
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
- };
41690
41630
  const CHBApplicationDetails = () => {
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;
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;
41692
41632
  const {
41693
41633
  t
41694
41634
  } = useTranslation();
@@ -41704,9 +41644,6 @@ const CHBApplicationDetails = () => {
41704
41644
  const {
41705
41645
  data: storeData
41706
41646
  } = Digit.Hooks.useStore.getInitData();
41707
- const {
41708
- tenants
41709
- } = storeData || {};
41710
41647
  const {
41711
41648
  isLoading,
41712
41649
  isError,
@@ -41727,22 +41664,6 @@ const CHBApplicationDetails = () => {
41727
41664
  const application = chb_details;
41728
41665
  sessionStorage.setItem("chb", JSON.stringify(application));
41729
41666
  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
- }
41746
41667
  const fetchBillData = async () => {
41747
41668
  setLoading(true);
41748
41669
  const result = await Digit.PaymentService.fetchBill(tenantId, {
@@ -41768,7 +41689,6 @@ const CHBApplicationDetails = () => {
41768
41689
  }, {
41769
41690
  enabled: true
41770
41691
  });
41771
- console.log("auditResponse", auditResponse);
41772
41692
  const {
41773
41693
  data: reciept_data,
41774
41694
  isLoading: recieptDataLoading
@@ -41785,14 +41705,6 @@ const CHBApplicationDetails = () => {
41785
41705
  if (isLoading || auditDataLoading) {
41786
41706
  return /*#__PURE__*/React.createElement(Loader$1, null);
41787
41707
  }
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
- };
41796
41708
  let documentDate = t("CS_NA");
41797
41709
  if (chb_details !== null && chb_details !== void 0 && (_chb_details$addition = chb_details.additionalDetails) !== null && _chb_details$addition !== void 0 && _chb_details$addition.documentDate) {
41798
41710
  var _chb_details$addition2;
@@ -41861,16 +41773,12 @@ const CHBApplicationDetails = () => {
41861
41773
  window.open(fileStore[fileStoreId], "_blank");
41862
41774
  }
41863
41775
  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
- });
41868
41776
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41869
41777
  label: t("CHB_FEE_RECEIPT"),
41870
41778
  onClick: () => {
41871
- var _reciept_data$Payment2;
41779
+ var _reciept_data$Payment;
41872
41780
  return getRecieptSearch({
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,
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,
41874
41782
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41875
41783
  });
41876
41784
  }
@@ -41878,23 +41786,16 @@ const CHBApplicationDetails = () => {
41878
41786
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41879
41787
  label: t("CHB_PERMISSION_LETTER"),
41880
41788
  onClick: () => {
41881
- var _reciept_data$Payment3;
41789
+ var _reciept_data$Payment2;
41882
41790
  return getPermissionLetter({
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,
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,
41884
41792
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41885
41793
  });
41886
41794
  }
41887
41795
  });
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
- });
41892
41796
  const columns = [{
41893
41797
  Header: `${t("CHB_HALL_NUMBER")}`,
41894
41798
  accessor: "communityHallCode"
41895
- }, {
41896
- Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
41897
- accessor: "hallName"
41898
41799
  }, {
41899
41800
  Header: `${t("CHB_HALL_CODE")}`,
41900
41801
  accessor: "hallCode"
@@ -41905,10 +41806,8 @@ const CHBApplicationDetails = () => {
41905
41806
  Header: `${t("PT_COMMON_TABLE_COL_STATUS_LABEL")}`,
41906
41807
  accessor: "bookingStatus"
41907
41808
  }];
41908
- console.log("chb_details?.bookingSlotDetails", chb_details);
41909
41809
  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 => ({
41910
41810
  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,
41912
41811
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
41913
41812
  bookingDate: slot.bookingDate,
41914
41813
  bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
@@ -42005,23 +41904,7 @@ const CHBApplicationDetails = () => {
42005
41904
  marginTop: "10px",
42006
41905
  fontSize: "15px"
42007
41906
  }
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
- }))))));
41907
+ }, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED")))))));
42025
41908
  };
42026
41909
 
42027
41910
  function _extends() {
@@ -43531,56 +43414,78 @@ const TableConfig = t => ({
43531
43414
  }
43532
43415
  });
43533
43416
 
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
- };
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
+ }
43567
43460
  return /*#__PURE__*/React.createElement("div", {
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
- };
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
+ }
43584
43489
 
43585
43490
  const ModalConfig = ({
43586
43491
  t,
@@ -43678,9 +43583,9 @@ const NDCModal = ({
43678
43583
  errors,
43679
43584
  showErrorToast,
43680
43585
  errorOne,
43681
- closeToastOne,
43682
- getEmployees
43586
+ closeToastOne
43683
43587
  }) => {
43588
+ var _action$state;
43684
43589
  const [config, setConfig] = useState({});
43685
43590
  const [defaultValues, setDefaultValues] = useState({});
43686
43591
  const [approvers, setApprovers] = useState([]);
@@ -43690,14 +43595,13 @@ const NDCModal = ({
43690
43595
  const [error, setError] = useState(null);
43691
43596
  const [financialYears, setFinancialYears] = useState([]);
43692
43597
  const [selectedFinancialYear, setSelectedFinancialYear] = useState(null);
43693
- const allRolesNew = [...new Set(getEmployees === null || getEmployees === void 0 ? void 0 : getEmployees.flatMap(a => a.roles))];
43694
- console.log("allRolesNew", allRolesNew);
43695
- console.log("getEmployees", getEmployees);
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))];
43696
43600
  const {
43697
43601
  data: approverData,
43698
43602
  isLoading: PTALoading
43699
43603
  } = Digit.Hooks.useEmployeeSearch(tenantId, {
43700
- roles: allRolesNew === null || allRolesNew === void 0 ? void 0 : allRolesNew.map(role => ({
43604
+ roles: allRoles === null || allRoles === void 0 ? void 0 : allRoles.map(role => ({
43701
43605
  code: role
43702
43606
  })),
43703
43607
  isActive: true
@@ -43802,8 +43706,7 @@ const NDCModal = ({
43802
43706
  }));
43803
43707
  }
43804
43708
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
43805
- if (!action || !config.form) return null;
43806
- return /*#__PURE__*/React.createElement(Modal, {
43709
+ return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
43807
43710
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
43808
43711
  label: t(config.label.heading)
43809
43712
  }),
@@ -43832,13 +43735,11 @@ const NDCModal = ({
43832
43735
  label: errorOne,
43833
43736
  isDleteBtn: true,
43834
43737
  onClose: closeToastOne
43835
- }), PTALoading && /*#__PURE__*/React.createElement(Loader, {
43836
- page: true
43837
- }));
43738
+ })) : /*#__PURE__*/React.createElement(Loader$1, null);
43838
43739
  };
43839
43740
 
43840
- const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
43841
- var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _thumbnailsToShow$thu;
43741
+ const getTimelineCaptions = (checkpoint, index, arr, t) => {
43742
+ var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _checkpoint$assigner3, _thumbnailsToShow$thu;
43842
43743
  console.log("checkpoint", checkpoint);
43843
43744
  const {
43844
43745
  wfComment: comment,
@@ -43848,7 +43749,8 @@ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
43848
43749
  const caption = {
43849
43750
  date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
43850
43751
  name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name,
43851
- source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.source
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
43754
  };
43853
43755
  return /*#__PURE__*/React.createElement("div", null, (comment === null || comment === void 0 ? void 0 : comment.length) > 0 && /*#__PURE__*/React.createElement("div", {
43854
43756
  className: "TLComments"
@@ -43873,7 +43775,7 @@ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
43873
43775
  style: {
43874
43776
  marginTop: "8px"
43875
43777
  }
43876
- }, 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()))));
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
43779
  };
43878
43780
  const CHBApplicationDetails$1 = () => {
43879
43781
  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;
@@ -43887,11 +43789,8 @@ const CHBApplicationDetails$1 = () => {
43887
43789
  const [acknowldgementData, setAcknowldgementData] = useState([]);
43888
43790
  const [showOptions, setShowOptions] = useState(false);
43889
43791
  const [popup, setpopup] = useState(false);
43890
- const [getEmployees, setEmployees] = useState([]);
43891
- const [getWorkflowService, setWorkflowService] = useState([]);
43892
43792
  const [showToast, setShowToast] = useState(null);
43893
43793
  const [error, setError] = useState(null);
43894
- const [getLoader, setLoader] = useState(false);
43895
43794
  const {
43896
43795
  data: storeData
43897
43796
  } = Digit.Hooks.useStore.getInitData();
@@ -44033,34 +43932,16 @@ const CHBApplicationDetails$1 = () => {
44033
43932
  });
44034
43933
  }
44035
43934
  }, [data === null || data === void 0 ? void 0 : data.hallsBookingApplication]);
44036
- useEffect(() => {
44037
- let WorkflowService = null;
44038
- (async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2, _WorkflowService2, _WorkflowService2$Bus, _WorkflowService2$Bus2) => {
44039
- setLoader(true);
44040
- WorkflowService = await Digit.WorkflowService.init(tenantId, "chb-services");
44041
- setLoader(false);
44042
- 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);
44043
- 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);
44044
- })();
44045
- }, [tenantId]);
44046
43935
  function onActionSelect(action) {
44047
- var _action$state, _action$state$actions, _filterRoles$, _displayData$applican;
43936
+ var _displayData$applican;
44048
43937
  const payload = {
44049
43938
  Licenses: [action]
44050
43939
  };
44051
- 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));
44052
- const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
44053
- var _filterNexState$;
44054
- return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
44055
- });
44056
- console.log("filterNexState", filterNexState);
44057
- console.log("getWorkflowService", getWorkflowService);
44058
- setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
44059
43940
  const appNo = displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantData) === null || _displayData$applican === void 0 ? void 0 : _displayData$applican.applicationNo;
44060
43941
  if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
44061
43942
  submitAction(payload);
44062
43943
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "PAY") {
44063
- history.push(`/digit-ui/employee/payment/collect/chb-services/${appNo}/${tenantId}?tenantId=${tenantId}`);
43944
+ history.push(`/digit-ui/employee/payment/collect/NDC/${appNo}/${tenantId}?tenantId=${tenantId}`);
44064
43945
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT") {
44065
43946
  history.push(`/digit-ui/employee/ndc/create/${appNo}`);
44066
43947
  } else {
@@ -44106,6 +43987,9 @@ const CHBApplicationDetails$1 = () => {
44106
43987
  });
44107
43988
  let docs = [];
44108
43989
  docs = application === null || application === void 0 ? void 0 : application.documents;
43990
+ if (isLoading || auditDataLoading) {
43991
+ return /*#__PURE__*/React.createElement(Loader$1, null);
43992
+ }
44109
43993
  let documentDate = t("CS_NA");
44110
43994
  if (chb_details !== null && chb_details !== void 0 && (_chb_details$addition = chb_details.additionalDetails) !== null && _chb_details$addition !== void 0 && _chb_details$addition.documentDate) {
44111
43995
  var _chb_details$addition2;
@@ -44197,9 +44081,6 @@ const CHBApplicationDetails$1 = () => {
44197
44081
  const columns = [{
44198
44082
  Header: `${t("CHB_HALL_NUMBER")}`,
44199
44083
  accessor: "communityHallCode"
44200
- }, {
44201
- Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
44202
- accessor: "hallName"
44203
44084
  }, {
44204
44085
  Header: `${t("CHB_HALL_CODE")}`,
44205
44086
  accessor: "hallCode"
@@ -44212,10 +44093,9 @@ const CHBApplicationDetails$1 = () => {
44212
44093
  }];
44213
44094
  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 => ({
44214
44095
  communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
44215
- hallName: chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallName,
44216
44096
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
44217
44097
  bookingDate: slot.bookingDate,
44218
- bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44098
+ bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44219
44099
  }))) || [];
44220
44100
  const submitAction = async modalData => {
44221
44101
  var _modalData$Licenses;
@@ -44272,8 +44152,22 @@ const CHBApplicationDetails$1 = () => {
44272
44152
  setShowErrorToastt(true);
44273
44153
  }
44274
44154
  };
44275
- const filteredActions = actions === null || actions === void 0 ? void 0 : actions.filter(a => a.action !== "SUBMIT" && a.action !== "EDIT");
44276
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
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, {
44277
44171
  style: {
44278
44172
  fontSize: "24px"
44279
44173
  }
@@ -44339,18 +44233,21 @@ const CHBApplicationDetails$1 = () => {
44339
44233
  flexDirection: "row",
44340
44234
  gap: "30px"
44341
44235
  }
44342
- }, ((_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, {
44343
- key: index
44344
- }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CHBDocument, {
44345
- value: docs,
44346
- Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
44347
- index: index
44348
- }), /*#__PURE__*/React.createElement(CardSectionHeader, {
44349
- style: {
44350
- marginTop: "10px",
44351
- fontSize: "15px"
44352
- }
44353
- }, 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, {
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, {
44354
44251
  style: {
44355
44252
  marginTop: "20px"
44356
44253
  }
@@ -44361,10 +44258,10 @@ const CHBApplicationDetails$1 = () => {
44361
44258
  keyValue: index,
44362
44259
  isCompleted: index === 0,
44363
44260
  label: t(checkpoint.status),
44364
- customChild: getTimelineCaptions$1(checkpoint, index, arr, t)
44365
- })))), 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, {
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, {
44366
44263
  localeKeyPrefix: `WF_EDITRENEWAL`,
44367
- options: filteredActions,
44264
+ options: actions,
44368
44265
  optionKey: "action",
44369
44266
  t: t,
44370
44267
  onSelect: onActionSelect
@@ -44385,7 +44282,6 @@ const CHBApplicationDetails$1 = () => {
44385
44282
  actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.timeline,
44386
44283
  workflowDetails: workflowDetails,
44387
44284
  showToast: showToast,
44388
- getEmployees: getEmployees,
44389
44285
  closeToast: closeToast,
44390
44286
  errors: error,
44391
44287
  showErrorToast: showErrorToast,
@@ -44396,8 +44292,6 @@ const CHBApplicationDetails$1 = () => {
44396
44292
  label: error,
44397
44293
  isDleteBtn: true,
44398
44294
  onClose: closeToast
44399
- }), (isLoading || auditDataLoading || getLoader) && /*#__PURE__*/React.createElement(Loader, {
44400
- page: true
44401
44295
  })));
44402
44296
  };
44403
44297
 
@@ -45291,6 +45185,57 @@ const NewADSStepperForm = () => {
45291
45185
  }));
45292
45186
  };
45293
45187
 
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
+
45294
45239
  const CHBCitizenSecond = ({
45295
45240
  onGoBack,
45296
45241
  goNext,
@@ -45363,15 +45308,14 @@ const CHBCitizenSecond = ({
45363
45308
  setHallCodes(getHallCodesData);
45364
45309
  };
45365
45310
  const slotsSearch = async data => {
45366
- var _getValues, _getValues2;
45311
+ var _getValues, _getValues$siteId, _getValues2, _getValues3;
45367
45312
  setLoader(true);
45368
- console.log("data", data);
45369
45313
  const payload = {
45370
45314
  tenantId: tenantId,
45371
- communityHallCode: data.communityHallId,
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
45316
  hallCode: data === null || data === void 0 ? void 0 : data.HallCode,
45373
- bookingStartDate: (_getValues = getValues()) === null || _getValues === void 0 ? void 0 : _getValues.startDate,
45374
- bookingEndDate: (_getValues2 = getValues()) === null || _getValues2 === void 0 ? void 0 : _getValues2.startDate,
45317
+ bookingStartDate: (_getValues2 = getValues()) === null || _getValues2 === void 0 ? void 0 : _getValues2.startDate,
45318
+ bookingEndDate: (_getValues3 = getValues()) === null || _getValues3 === void 0 ? void 0 : _getValues3.startDate,
45375
45319
  isTimerRequired: false
45376
45320
  };
45377
45321
  try {
@@ -45386,7 +45330,7 @@ const CHBCitizenSecond = ({
45386
45330
  }
45387
45331
  };
45388
45332
  const onSubmit = data => {
45389
- var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$siteId, _data$purpose, _data$specialCategory;
45333
+ var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$purpose, _data$specialCategory;
45390
45334
  console.log("data==??", data);
45391
45335
  const userInfo = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
45392
45336
  const now = Date.now();
@@ -45410,7 +45354,6 @@ const CHBCitizenSecond = ({
45410
45354
  bookingStatus: "INITIATED",
45411
45355
  applicationDate: now,
45412
45356
  communityHallCode: (getHallDetails === null || getHallDetails === void 0 ? void 0 : (_getHallDetails$ = getHallDetails[0]) === null || _getHallDetails$ === void 0 ? void 0 : _getHallDetails$.communityHallId) || "",
45413
- communityHallName: data === null || data === void 0 ? void 0 : (_data$siteId = data.siteId) === null || _data$siteId === void 0 ? void 0 : _data$siteId.name,
45414
45357
  purpose: {
45415
45358
  purpose: data === null || data === void 0 ? void 0 : (_data$purpose = data.purpose) === null || _data$purpose === void 0 ? void 0 : _data$purpose.code
45416
45359
  },
@@ -45628,9 +45571,7 @@ const CHBCitizenSecond = ({
45628
45571
  }, /*#__PURE__*/React.createElement("input", {
45629
45572
  type: "checkbox",
45630
45573
  checked: isChecked,
45631
- disabled: !isAvailable,
45632
45574
  onChange: e => {
45633
- if (!isAvailable) return;
45634
45575
  if (e.target.checked) {
45635
45576
  field.onChange([...(field.value || []), slot]);
45636
45577
  } else {
@@ -46232,7 +46173,7 @@ function CHBSummary({
46232
46173
  goNext,
46233
46174
  onGoBack
46234
46175
  }) {
46235
- 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;
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;
46236
46177
  const {
46237
46178
  pathname: url
46238
46179
  } = useLocation();
@@ -46247,9 +46188,6 @@ function CHBSummary({
46247
46188
  const columns = [{
46248
46189
  Header: `${t("CHB_HALL_NUMBER")}`,
46249
46190
  accessor: "communityHallCode"
46250
- }, {
46251
- Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
46252
- accessor: "hallName"
46253
46191
  }, {
46254
46192
  Header: `${t("CHB_HALL_CODE")}`,
46255
46193
  accessor: "hallCode"
@@ -46328,10 +46266,9 @@ function CHBSummary({
46328
46266
  style: boldLabelStyle
46329
46267
  }, label), /*#__PURE__*/React.createElement("div", null, t(value) || "NA"));
46330
46268
  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 => {
46331
- var _formData$venueDetail6, _formData$venueDetail7, _formData$venueDetail8, _formData$venueDetail9;
46269
+ var _formData$venueDetail6, _formData$venueDetail7;
46332
46270
  return {
46333
46271
  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)}`,
46334
- 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,
46335
46272
  hallCode: slot.hallCode + " - " + slot.capacity,
46336
46273
  bookingDate: slot.bookingDate,
46337
46274
  bookingStatus: `${t(slot.status)}`
@@ -46347,13 +46284,13 @@ function CHBSummary({
46347
46284
  style: {
46348
46285
  fontSize: "24px"
46349
46286
  }
46350
- }, 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", {
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", {
46351
46288
  style: sectionStyle
46352
46289
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
46353
46290
  style: {
46354
46291
  fontSize: "24px"
46355
46292
  }
46356
- }, 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, {
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, {
46357
46294
  t: t,
46358
46295
  data: slotlistRows,
46359
46296
  columns: columns,