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

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.
@@ -541,6 +541,10 @@ function createCommonjsModule(fn, module) {
541
541
  return module = { exports: {} }, fn(module, module.exports), module.exports;
542
542
  }
543
543
 
544
+ function getCjsExportFromNamespace (n) {
545
+ return n && n['default'] || n;
546
+ }
547
+
544
548
  var jquery = createCommonjsModule(function (module) {
545
549
  (function (global, factory) {
546
550
 
@@ -14386,6 +14390,8 @@ var accessibility = createCommonjsModule(function (module, exports) {
14386
14390
  });
14387
14391
  unwrapExports(accessibility);
14388
14392
 
14393
+ var _shallowEqual = getCjsExportFromNamespace(index_esm);
14394
+
14389
14395
  var Calendar_1 = createCommonjsModule(function (module, exports) {
14390
14396
 
14391
14397
  function _typeof(obj) {
@@ -15040,7 +15046,7 @@ var Calendar_1 = createCommonjsModule(function (module, exports) {
15040
15046
  monthNames: this.getMonthNames()
15041
15047
  });
15042
15048
  }
15043
- if (!(0, index_esm.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15049
+ if (!(0, _shallowEqual.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15044
15050
  this.setState({
15045
15051
  scrollArea: this.calcScrollArea(this.props)
15046
15052
  });
@@ -18515,27 +18521,13 @@ const ChbApplication = ({
18515
18521
  tenantId,
18516
18522
  buttonLabel
18517
18523
  }) => {
18518
- var _application$bookingS, _application$bookingS2, _application$bookingS3, _application$bookingS4, _application$bookingS5, _application$bookingS6, _application$applican;
18524
+ var _application$applican;
18519
18525
  const {
18520
18526
  t
18521
18527
  } = useTranslation();
18522
18528
  const history = useHistory();
18523
18529
  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
- });
18530
+ console.log("application", application);
18539
18531
  const getBookingDateRange = bookingSlotDetails => {
18540
18532
  var _bookingSlotDetails$, _bookingSlotDetails;
18541
18533
  if (!bookingSlotDetails || bookingSlotDetails.length === 0) {
@@ -18550,41 +18542,7 @@ const ChbApplication = ({
18550
18542
  }
18551
18543
  };
18552
18544
  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
- }
18545
+ history.push(`/digit-ui/citizen/payment/collect/chb-services/${application === null || application === void 0 ? void 0 : application.bookingNo}/${tenantId}?tenantId=${tenantId}`);
18588
18546
  };
18589
18547
  useEffect(() => {
18590
18548
  if (showToast) {
@@ -18606,17 +18564,17 @@ const ChbApplication = ({
18606
18564
  }), /*#__PURE__*/React.createElement(KeyNote, {
18607
18565
  keyValue: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
18608
18566
  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, {
18567
+ }), /*#__PURE__*/React.createElement("div", null, application.bookingStatus === "PENDING_PAYMENT" ? /*#__PURE__*/React.createElement(SubmitBar, {
18614
18568
  label: t("CS_APPLICATION_DETAILS_MAKE_PAYMENT"),
18615
18569
  onSubmit: handleMakePayment,
18616
18570
  style: {
18617
18571
  margin: "20px"
18618
18572
  }
18619
- })), showToast && /*#__PURE__*/React.createElement(Toast, {
18573
+ }) : /*#__PURE__*/React.createElement(Link, {
18574
+ to: `/digit-ui/citizen/chb/application/${application === null || application === void 0 ? void 0 : application.bookingNo}/${application === null || application === void 0 ? void 0 : application.tenantId}`
18575
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
18576
+ label: buttonLabel
18577
+ }))), showToast && /*#__PURE__*/React.createElement(Toast, {
18620
18578
  error: showToast.error,
18621
18579
  warning: showToast.warning,
18622
18580
  label: t(showToast.label),
@@ -18630,10 +18588,7 @@ const CHBMyApplications = () => {
18630
18588
  const {
18631
18589
  t
18632
18590
  } = 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);
18591
+ const tenantId = window.localStorage.getItem("CITIZEN.CITY");
18637
18592
  const [filters, setFilters] = useState(null);
18638
18593
  let filter = window.location.href.split("/").pop();
18639
18594
  let t1;
@@ -18651,7 +18606,7 @@ const CHBMyApplications = () => {
18651
18606
  offset: off,
18652
18607
  tenantId
18653
18608
  } : {
18654
- limit: "4",
18609
+ limit: "10",
18655
18610
  sortOrder: "ASC",
18656
18611
  sortBy: "createdTime",
18657
18612
  offset: "0",
@@ -18659,53 +18614,126 @@ const CHBMyApplications = () => {
18659
18614
  };
18660
18615
  useEffect(() => {
18661
18616
  setFilters(initialFilters);
18662
- }, [filter]);
18617
+ }, [filter, tenantId]);
18663
18618
  const {
18664
18619
  isLoading,
18665
- data
18620
+ data,
18621
+ refetch
18666
18622
  } = Digit.Hooks.chb.useChbSearch({
18667
18623
  filters
18668
18624
  });
18625
+ const handleLoadMore = () => {
18626
+ setFilters(prev => ({
18627
+ ...prev,
18628
+ limit: Number(prev.limit) + 5
18629
+ }));
18630
+ };
18631
+ useEffect(() => {
18632
+ refetch();
18633
+ }, []);
18669
18634
  if (isLoading) {
18670
18635
  return /*#__PURE__*/React.createElement(Loader$1, null);
18671
18636
  }
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
18637
  const filteredApplications = (data === null || data === void 0 ? void 0 : data.hallsBookingApplication) || [];
18686
18638
  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
18639
  key: index
18688
18640
  }, /*#__PURE__*/React.createElement(ChbApplication, {
18689
18641
  application: application,
18690
- tenantId: user === null || user === void 0 ? void 0 : user.permanentCity,
18642
+ tenantId: tenantId,
18691
18643
  buttonLabel: t("CHB_SUMMARY")
18692
18644
  }))), filteredApplications.length === 0 && !isLoading && /*#__PURE__*/React.createElement("p", {
18693
18645
  style: {
18694
18646
  marginLeft: "16px",
18695
18647
  marginTop: "16px"
18696
18648
  }
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", {
18649
+ }, t("CHB_NO_APPLICATION_FOUND_MSG")), filteredApplications.length !== 0 && (data === null || data === void 0 ? void 0 : data.count) > t1 && /*#__PURE__*/React.createElement("div", {
18698
18650
  style: {
18699
18651
  marginLeft: "16px",
18700
18652
  marginTop: "16px"
18701
18653
  }
18702
18654
  }, /*#__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")))))));
18655
+ className: "link",
18656
+ style: {
18657
+ cursor: "pointer",
18658
+ color: "#007bff"
18659
+ },
18660
+ onClick: handleLoadMore
18661
+ }, t("CHB_LOAD_MORE_MSG")))));
18707
18662
  };
18708
18663
 
18664
+ const PDFSvg = ({
18665
+ width: _width = 20,
18666
+ height: _height = 20,
18667
+ style
18668
+ }) => /*#__PURE__*/React.createElement("svg", {
18669
+ style: style,
18670
+ xmlns: "http://www.w3.org/2000/svg",
18671
+ width: _width,
18672
+ height: _height,
18673
+ viewBox: "0 0 20 20",
18674
+ fill: "gray"
18675
+ }, /*#__PURE__*/React.createElement("path", {
18676
+ 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"
18677
+ }));
18678
+ function NDCDocument({
18679
+ value = {},
18680
+ Code,
18681
+ index
18682
+ }) {
18683
+ const {
18684
+ t
18685
+ } = useTranslation();
18686
+ const {
18687
+ isLoading,
18688
+ isError,
18689
+ error,
18690
+ data
18691
+ } = Digit.Hooks.ads.useADSDocumentSearch({
18692
+ value
18693
+ }, {
18694
+ value
18695
+ }, Code, index);
18696
+ console.log("dataInNDCDocument", data);
18697
+ const documents = value !== null && value !== void 0 && value.documents ? value.documents.documents.filter(doc => doc.documentType === Code).map(doc => ({
18698
+ ...doc,
18699
+ documentType: doc.documentType.replace(/\./g, "_")
18700
+ })) : value.filter(doc => doc.documentType === Code).map(doc => ({
18701
+ ...doc,
18702
+ documentType: doc.documentType.replace(/\./g, "_")
18703
+ }));
18704
+ if (isLoading) {
18705
+ return /*#__PURE__*/React.createElement(Loader$1, null);
18706
+ }
18707
+ return /*#__PURE__*/React.createElement("div", {
18708
+ style: {
18709
+ marginTop: "19px"
18710
+ }
18711
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, (data === null || data === void 0 ? void 0 : data.pdfFiles) && /*#__PURE__*/React.createElement("div", {
18712
+ style: {
18713
+ display: "flex",
18714
+ flexWrap: "wrap"
18715
+ }
18716
+ }, documents === null || documents === void 0 ? void 0 : documents.map((document, index) => {
18717
+ let documentLink = pdfDownloadLink(data.pdfFiles, document === null || document === void 0 ? void 0 : document.fileStoreId);
18718
+ return /*#__PURE__*/React.createElement("a", {
18719
+ target: "_",
18720
+ href: documentLink,
18721
+ style: {
18722
+ minWidth: "100px",
18723
+ marginRight: "10px"
18724
+ },
18725
+ key: index
18726
+ }, /*#__PURE__*/React.createElement(PDFSvg, {
18727
+ width: 85,
18728
+ height: 100,
18729
+ style: {
18730
+ background: "#f6f6f6",
18731
+ padding: "8px"
18732
+ }
18733
+ }));
18734
+ }))));
18735
+ }
18736
+
18709
18737
  const capitalize = text => text.substr(0, 1).toUpperCase() + text.substr(1);
18710
18738
  const ulbCamel = ulb => ulb.toLowerCase().split(" ").map(capitalize).join(" ");
18711
18739
  const getChbAcknowledgementData = async (application, tenantInfo, t) => {
@@ -41627,8 +41655,46 @@ var standalone = createCommonjsModule(function (module, exports) {
41627
41655
  });
41628
41656
  unwrapExports(standalone);
41629
41657
 
41658
+ const getTimelineCaptions = (checkpoint, index, arr, t) => {
41659
+ var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _thumbnailsToShow$thu;
41660
+ console.log("checkpoint", checkpoint);
41661
+ const {
41662
+ wfComment: comment,
41663
+ thumbnailsToShow,
41664
+ wfDocuments
41665
+ } = checkpoint;
41666
+ const caption = {
41667
+ date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
41668
+ name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner = checkpoint.assigner) === null || _checkpoint$assigner === void 0 ? void 0 : _checkpoint$assigner.name,
41669
+ source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.source
41670
+ };
41671
+ return /*#__PURE__*/React.createElement("div", null, (comment === null || comment === void 0 ? void 0 : comment.length) > 0 && /*#__PURE__*/React.createElement("div", {
41672
+ className: "TLComments"
41673
+ }, /*#__PURE__*/React.createElement("h3", null, t("WF_COMMON_COMMENTS")), /*#__PURE__*/React.createElement("p", {
41674
+ style: {
41675
+ overflowX: "scroll"
41676
+ }
41677
+ }, 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, {
41678
+ srcs: thumbnailsToShow.thumbs,
41679
+ onClick: (src, idx) => {
41680
+ var _thumbnailsToShow$ful;
41681
+ let fullImage = ((_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[idx]) || src;
41682
+ Digit.Utils.zoomImage(fullImage);
41683
+ }
41684
+ }), (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", {
41685
+ key: index
41686
+ }, /*#__PURE__*/React.createElement(NDCDocument, {
41687
+ value: wfDocuments,
41688
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
41689
+ index: index
41690
+ })))), /*#__PURE__*/React.createElement("div", {
41691
+ style: {
41692
+ marginTop: "8px"
41693
+ }
41694
+ }, 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()))));
41695
+ };
41630
41696
  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;
41697
+ 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
41698
  const {
41633
41699
  t
41634
41700
  } = useTranslation();
@@ -41644,6 +41710,9 @@ const CHBApplicationDetails = () => {
41644
41710
  const {
41645
41711
  data: storeData
41646
41712
  } = Digit.Hooks.useStore.getInitData();
41713
+ const {
41714
+ tenants
41715
+ } = storeData || {};
41647
41716
  const {
41648
41717
  isLoading,
41649
41718
  isError,
@@ -41664,6 +41733,22 @@ const CHBApplicationDetails = () => {
41664
41733
  const application = chb_details;
41665
41734
  sessionStorage.setItem("chb", JSON.stringify(application));
41666
41735
  const [loading, setLoading] = useState(false);
41736
+ const workflowDetails = Digit.Hooks.useWorkflowDetails({
41737
+ tenantId: tenantId,
41738
+ id: acknowledgementIds,
41739
+ moduleCode: "chb-services",
41740
+ role: "EMPLOYEE"
41741
+ });
41742
+ 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)];
41743
+ if (workflowDetails && workflowDetails.data && !workflowDetails.isLoading) {
41744
+ var _workflowDetails$data4, _workflowDetails$data5;
41745
+ workflowDetails.data.initialActionState = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data4 = workflowDetails.data) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.initialActionState) || {
41746
+ ...(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : _workflowDetails$data5.actionState)
41747
+ } || {};
41748
+ workflowDetails.data.actionState = {
41749
+ ...workflowDetails.data
41750
+ };
41751
+ }
41667
41752
  const fetchBillData = async () => {
41668
41753
  setLoading(true);
41669
41754
  const result = await Digit.PaymentService.fetchBill(tenantId, {
@@ -41689,6 +41774,7 @@ const CHBApplicationDetails = () => {
41689
41774
  }, {
41690
41775
  enabled: true
41691
41776
  });
41777
+ console.log("auditResponse", auditResponse);
41692
41778
  const {
41693
41779
  data: reciept_data,
41694
41780
  isLoading: recieptDataLoading
@@ -41705,6 +41791,14 @@ const CHBApplicationDetails = () => {
41705
41791
  if (isLoading || auditDataLoading) {
41706
41792
  return /*#__PURE__*/React.createElement(Loader$1, null);
41707
41793
  }
41794
+ const getChbAcknowledgement = async () => {
41795
+ const applications = application || {};
41796
+ const tenantInfo = tenants.find(tenant => tenant.code === applications.tenantId);
41797
+ const acknowldgementDataAPI = await getChbAcknowledgementData({
41798
+ ...applications
41799
+ }, tenantInfo, t);
41800
+ Digit.Utils.pdf.generate(acknowldgementDataAPI);
41801
+ };
41708
41802
  let documentDate = t("CS_NA");
41709
41803
  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
41804
  var _chb_details$addition2;
@@ -41773,12 +41867,16 @@ const CHBApplicationDetails = () => {
41773
41867
  window.open(fileStore[fileStoreId], "_blank");
41774
41868
  }
41775
41869
  let dowloadOptions = [];
41870
+ 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({
41871
+ label: t("CHB_DOWNLOAD_ACK_FORM"),
41872
+ onClick: () => getChbAcknowledgement()
41873
+ });
41776
41874
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41777
41875
  label: t("CHB_FEE_RECEIPT"),
41778
41876
  onClick: () => {
41779
- var _reciept_data$Payment;
41877
+ var _reciept_data$Payment2;
41780
41878
  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,
41879
+ 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
41880
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41783
41881
  });
41784
41882
  }
@@ -41786,16 +41884,23 @@ const CHBApplicationDetails = () => {
41786
41884
  if (reciept_data && (reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments.length) > 0 && recieptDataLoading == false) dowloadOptions.push({
41787
41885
  label: t("CHB_PERMISSION_LETTER"),
41788
41886
  onClick: () => {
41789
- var _reciept_data$Payment2;
41887
+ var _reciept_data$Payment3;
41790
41888
  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,
41889
+ 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
41890
  payments: reciept_data === null || reciept_data === void 0 ? void 0 : reciept_data.Payments[0]
41793
41891
  });
41794
41892
  }
41795
41893
  });
41894
+ 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({
41895
+ label: t("CHB_CERTIFICATE"),
41896
+ onClick: () => printCertificate()
41897
+ });
41796
41898
  const columns = [{
41797
41899
  Header: `${t("CHB_HALL_NUMBER")}`,
41798
41900
  accessor: "communityHallCode"
41901
+ }, {
41902
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
41903
+ accessor: "hallName"
41799
41904
  }, {
41800
41905
  Header: `${t("CHB_HALL_CODE")}`,
41801
41906
  accessor: "hallCode"
@@ -41806,8 +41911,10 @@ const CHBApplicationDetails = () => {
41806
41911
  Header: `${t("PT_COMMON_TABLE_COL_STATUS_LABEL")}`,
41807
41912
  accessor: "bookingStatus"
41808
41913
  }];
41914
+ console.log("chb_details?.bookingSlotDetails", chb_details);
41809
41915
  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
41916
  communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
41917
+ hallName: chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallName,
41811
41918
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
41812
41919
  bookingDate: slot.bookingDate,
41813
41920
  bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
@@ -41904,7 +42011,23 @@ const CHBApplicationDetails = () => {
41904
42011
  marginTop: "10px",
41905
42012
  fontSize: "15px"
41906
42013
  }
41907
- }, t(doc === null || doc === void 0 ? void 0 : doc.documentType))))) : /*#__PURE__*/React.createElement("h5", null, t("CS_NO_DOCUMENTS_UPLOADED")))))));
42014
+ }, 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, {
42015
+ style: {
42016
+ marginTop: "20px"
42017
+ }
42018
+ }, /*#__PURE__*/React.createElement(CardSubHeader, {
42019
+ style: {
42020
+ fontSize: "24px"
42021
+ }
42022
+ }, 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, {
42023
+ isCompleted: true,
42024
+ 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)
42025
+ }) : /*#__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, {
42026
+ keyValue: index,
42027
+ isCompleted: index === 0,
42028
+ label: t(checkpoint.status),
42029
+ customChild: getTimelineCaptions(checkpoint, index, arr, t)
42030
+ }))))));
41908
42031
  };
41909
42032
 
41910
42033
  function _extends() {
@@ -43414,78 +43537,56 @@ const TableConfig = t => ({
43414
43537
  }
43415
43538
  });
43416
43539
 
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
- }
43540
+ const Loader = ({
43541
+ page: _page = false
43542
+ }) => {
43543
+ const baseStyle = {
43544
+ display: "flex",
43545
+ justifyContent: "center",
43546
+ alignItems: "center"
43547
+ };
43548
+ const pageStyle = {
43549
+ ...baseStyle,
43550
+ position: "fixed",
43551
+ top: 0,
43552
+ left: 0,
43553
+ width: "100vw",
43554
+ height: "100vh",
43555
+ background: "rgba(255,255,255,0.6)",
43556
+ backdropFilter: "blur(4px)",
43557
+ zIndex: 9999
43558
+ };
43559
+ const moduleStyle = {
43560
+ ...baseStyle,
43561
+ minHeight: "100px",
43562
+ width: "100%",
43563
+ position: "relative"
43564
+ };
43565
+ const spinnerStyle = {
43566
+ width: "64px",
43567
+ height: "64px",
43568
+ border: "8px solid #1976d2",
43569
+ borderTop: "8px solid transparent",
43570
+ borderRadius: "50%",
43571
+ animation: "spin 1.2s linear infinite"
43572
+ };
43460
43573
  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
- }
43574
+ style: _page ? pageStyle : moduleStyle
43575
+ }, /*#__PURE__*/React.createElement("div", {
43576
+ style: spinnerStyle
43577
+ }), /*#__PURE__*/React.createElement("style", null, `
43578
+ @keyframes spin {
43579
+ 0% { transform: rotate(0deg); }
43580
+ 100% { transform: rotate(360deg); }
43581
+ }
43582
+ `));
43583
+ };
43584
+ Loader.propTypes = {
43585
+ page: propTypes.bool
43586
+ };
43587
+ Loader.defaultProps = {
43588
+ page: false
43589
+ };
43489
43590
 
43490
43591
  const ModalConfig = ({
43491
43592
  t,
@@ -43583,9 +43684,9 @@ const NDCModal = ({
43583
43684
  errors,
43584
43685
  showErrorToast,
43585
43686
  errorOne,
43586
- closeToastOne
43687
+ closeToastOne,
43688
+ getEmployees
43587
43689
  }) => {
43588
- var _action$state;
43589
43690
  const [config, setConfig] = useState({});
43590
43691
  const [defaultValues, setDefaultValues] = useState({});
43591
43692
  const [approvers, setApprovers] = useState([]);
@@ -43595,13 +43696,14 @@ const NDCModal = ({
43595
43696
  const [error, setError] = useState(null);
43596
43697
  const [financialYears, setFinancialYears] = useState([]);
43597
43698
  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))];
43699
+ const allRolesNew = [...new Set(getEmployees === null || getEmployees === void 0 ? void 0 : getEmployees.flatMap(a => a.roles))];
43700
+ console.log("allRolesNew", allRolesNew);
43701
+ console.log("getEmployees", allRolesNew);
43600
43702
  const {
43601
43703
  data: approverData,
43602
43704
  isLoading: PTALoading
43603
43705
  } = Digit.Hooks.useEmployeeSearch(tenantId, {
43604
- roles: allRoles === null || allRoles === void 0 ? void 0 : allRoles.map(role => ({
43706
+ roles: allRolesNew === null || allRolesNew === void 0 ? void 0 : allRolesNew.map(role => ({
43605
43707
  code: role
43606
43708
  })),
43607
43709
  isActive: true
@@ -43706,7 +43808,8 @@ const NDCModal = ({
43706
43808
  }));
43707
43809
  }
43708
43810
  }, [action, approvers, financialYears, selectedFinancialYear, uploadedFile]);
43709
- return action && config.form ? /*#__PURE__*/React.createElement(Modal, {
43811
+ if (!action || !config.form) return null;
43812
+ return /*#__PURE__*/React.createElement(Modal, {
43710
43813
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
43711
43814
  label: t(config.label.heading)
43712
43815
  }),
@@ -43735,11 +43838,13 @@ const NDCModal = ({
43735
43838
  label: errorOne,
43736
43839
  isDleteBtn: true,
43737
43840
  onClose: closeToastOne
43738
- })) : /*#__PURE__*/React.createElement(Loader$1, null);
43841
+ }), PTALoading && /*#__PURE__*/React.createElement(Loader, {
43842
+ page: true
43843
+ }));
43739
43844
  };
43740
43845
 
43741
- const getTimelineCaptions = (checkpoint, index, arr, t) => {
43742
- var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _checkpoint$assigner3, _thumbnailsToShow$thu;
43846
+ const getTimelineCaptions$1 = (checkpoint, index, arr, t) => {
43847
+ var _checkpoint$auditDeta, _checkpoint$assigner, _checkpoint$assigner2, _thumbnailsToShow$thu;
43743
43848
  console.log("checkpoint", checkpoint);
43744
43849
  const {
43745
43850
  wfComment: comment,
@@ -43749,8 +43854,7 @@ const getTimelineCaptions = (checkpoint, index, arr, t) => {
43749
43854
  const caption = {
43750
43855
  date: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified,
43751
43856
  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
43857
+ source: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assigner2 = checkpoint.assigner) === null || _checkpoint$assigner2 === void 0 ? void 0 : _checkpoint$assigner2.source
43754
43858
  };
43755
43859
  return /*#__PURE__*/React.createElement("div", null, (comment === null || comment === void 0 ? void 0 : comment.length) > 0 && /*#__PURE__*/React.createElement("div", {
43756
43860
  className: "TLComments"
@@ -43775,7 +43879,7 @@ const getTimelineCaptions = (checkpoint, index, arr, t) => {
43775
43879
  style: {
43776
43880
  marginTop: "8px"
43777
43881
  }
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()))));
43882
+ }, 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
43883
  };
43780
43884
  const CHBApplicationDetails$1 = () => {
43781
43885
  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 +43893,11 @@ const CHBApplicationDetails$1 = () => {
43789
43893
  const [acknowldgementData, setAcknowldgementData] = useState([]);
43790
43894
  const [showOptions, setShowOptions] = useState(false);
43791
43895
  const [popup, setpopup] = useState(false);
43896
+ const [getEmployees, setEmployees] = useState([]);
43897
+ const [getWorkflowService, setWorkflowService] = useState([]);
43792
43898
  const [showToast, setShowToast] = useState(null);
43793
43899
  const [error, setError] = useState(null);
43900
+ const [getLoader, setLoader] = useState(false);
43794
43901
  const {
43795
43902
  data: storeData
43796
43903
  } = Digit.Hooks.useStore.getInitData();
@@ -43932,16 +44039,34 @@ const CHBApplicationDetails$1 = () => {
43932
44039
  });
43933
44040
  }
43934
44041
  }, [data === null || data === void 0 ? void 0 : data.hallsBookingApplication]);
44042
+ useEffect(() => {
44043
+ let WorkflowService = null;
44044
+ (async (_WorkflowService, _WorkflowService$Busi, _WorkflowService$Busi2, _WorkflowService2, _WorkflowService2$Bus, _WorkflowService2$Bus2) => {
44045
+ setLoader(true);
44046
+ WorkflowService = await Digit.WorkflowService.init(tenantId, "chb-services");
44047
+ setLoader(false);
44048
+ 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);
44049
+ 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);
44050
+ })();
44051
+ }, [tenantId]);
43935
44052
  function onActionSelect(action) {
43936
- var _displayData$applican;
44053
+ var _action$state, _action$state$actions, _filterRoles$, _displayData$applican;
43937
44054
  const payload = {
43938
44055
  Licenses: [action]
43939
44056
  };
44057
+ 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));
44058
+ const filterRoles = getWorkflowService === null || getWorkflowService === void 0 ? void 0 : getWorkflowService.filter(item => {
44059
+ var _filterNexState$;
44060
+ return (item === null || item === void 0 ? void 0 : item.uuid) == ((_filterNexState$ = filterNexState[0]) === null || _filterNexState$ === void 0 ? void 0 : _filterNexState$.nextState);
44061
+ });
44062
+ console.log("filterNexState", filterNexState);
44063
+ console.log("getWorkflowService", getWorkflowService);
44064
+ setEmployees(filterRoles === null || filterRoles === void 0 ? void 0 : (_filterRoles$ = filterRoles[0]) === null || _filterRoles$ === void 0 ? void 0 : _filterRoles$.actions);
43940
44065
  const appNo = displayData === null || displayData === void 0 ? void 0 : (_displayData$applican = displayData.applicantData) === null || _displayData$applican === void 0 ? void 0 : _displayData$applican.applicationNo;
43941
44066
  if ((action === null || action === void 0 ? void 0 : action.action) == "APPLY") {
43942
44067
  submitAction(payload);
43943
44068
  } 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}`);
44069
+ history.push(`/digit-ui/employee/payment/collect/chb-services/${appNo}/${tenantId}?tenantId=${tenantId}`);
43945
44070
  } else if ((action === null || action === void 0 ? void 0 : action.action) == "EDIT") {
43946
44071
  history.push(`/digit-ui/employee/ndc/create/${appNo}`);
43947
44072
  } else {
@@ -43987,9 +44112,6 @@ const CHBApplicationDetails$1 = () => {
43987
44112
  });
43988
44113
  let docs = [];
43989
44114
  docs = application === null || application === void 0 ? void 0 : application.documents;
43990
- if (isLoading || auditDataLoading) {
43991
- return /*#__PURE__*/React.createElement(Loader$1, null);
43992
- }
43993
44115
  let documentDate = t("CS_NA");
43994
44116
  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
44117
  var _chb_details$addition2;
@@ -44081,6 +44203,9 @@ const CHBApplicationDetails$1 = () => {
44081
44203
  const columns = [{
44082
44204
  Header: `${t("CHB_HALL_NUMBER")}`,
44083
44205
  accessor: "communityHallCode"
44206
+ }, {
44207
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
44208
+ accessor: "hallName"
44084
44209
  }, {
44085
44210
  Header: `${t("CHB_HALL_CODE")}`,
44086
44211
  accessor: "hallCode"
@@ -44093,9 +44218,10 @@ const CHBApplicationDetails$1 = () => {
44093
44218
  }];
44094
44219
  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
44220
  communityHallCode: `${t(chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallCode)}`,
44221
+ hallName: chb_details === null || chb_details === void 0 ? void 0 : chb_details.communityHallName,
44096
44222
  hallCode: t(slot.hallCode) + " - " + slot.capacity,
44097
44223
  bookingDate: slot.bookingDate,
44098
- bookingStatus: t(`WF_NEWTL_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44224
+ bookingStatus: t(`WF_CHB_${slot === null || slot === void 0 ? void 0 : slot.status}`)
44099
44225
  }))) || [];
44100
44226
  const submitAction = async modalData => {
44101
44227
  var _modalData$Licenses;
@@ -44152,22 +44278,8 @@ const CHBApplicationDetails$1 = () => {
44152
44278
  setShowErrorToastt(true);
44153
44279
  }
44154
44280
  };
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, {
44281
+ const filteredActions = actions === null || actions === void 0 ? void 0 : actions.filter(a => a.action !== "SUBMIT" && a.action !== "EDIT");
44282
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
44171
44283
  style: {
44172
44284
  fontSize: "24px"
44173
44285
  }
@@ -44233,21 +44345,18 @@ const CHBApplicationDetails$1 = () => {
44233
44345
  flexDirection: "row",
44234
44346
  gap: "30px"
44235
44347
  }
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, {
44348
+ }, ((_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, {
44349
+ key: index
44350
+ }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CHBDocument, {
44351
+ value: docs,
44352
+ Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
44353
+ index: index
44354
+ }), /*#__PURE__*/React.createElement(CardSectionHeader, {
44355
+ style: {
44356
+ marginTop: "10px",
44357
+ fontSize: "15px"
44358
+ }
44359
+ }, 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
44360
  style: {
44252
44361
  marginTop: "20px"
44253
44362
  }
@@ -44258,10 +44367,10 @@ const CHBApplicationDetails$1 = () => {
44258
44367
  keyValue: index,
44259
44368
  isCompleted: index === 0,
44260
44369
  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, {
44370
+ customChild: getTimelineCaptions$1(checkpoint, index, arr, t)
44371
+ })))), 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
44372
  localeKeyPrefix: `WF_EDITRENEWAL`,
44264
- options: actions,
44373
+ options: filteredActions,
44265
44374
  optionKey: "action",
44266
44375
  t: t,
44267
44376
  onSelect: onActionSelect
@@ -44282,6 +44391,7 @@ const CHBApplicationDetails$1 = () => {
44282
44391
  actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data15 = workflowDetails.data) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.timeline,
44283
44392
  workflowDetails: workflowDetails,
44284
44393
  showToast: showToast,
44394
+ getEmployees: getEmployees,
44285
44395
  closeToast: closeToast,
44286
44396
  errors: error,
44287
44397
  showErrorToast: showErrorToast,
@@ -44292,6 +44402,8 @@ const CHBApplicationDetails$1 = () => {
44292
44402
  label: error,
44293
44403
  isDleteBtn: true,
44294
44404
  onClose: closeToast
44405
+ }), (isLoading || auditDataLoading || getLoader) && /*#__PURE__*/React.createElement(Loader, {
44406
+ page: true
44295
44407
  })));
44296
44408
  };
44297
44409
 
@@ -45185,57 +45297,6 @@ const NewADSStepperForm = () => {
45185
45297
  }));
45186
45298
  };
45187
45299
 
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
45300
  const CHBCitizenSecond = ({
45240
45301
  onGoBack,
45241
45302
  goNext,
@@ -45308,14 +45369,15 @@ const CHBCitizenSecond = ({
45308
45369
  setHallCodes(getHallCodesData);
45309
45370
  };
45310
45371
  const slotsSearch = async data => {
45311
- var _getValues, _getValues$siteId, _getValues2, _getValues3;
45372
+ var _getValues, _getValues2;
45312
45373
  setLoader(true);
45374
+ console.log("data", data);
45313
45375
  const payload = {
45314
45376
  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,
45377
+ communityHallCode: data.communityHallId,
45316
45378
  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,
45379
+ bookingStartDate: (_getValues = getValues()) === null || _getValues === void 0 ? void 0 : _getValues.startDate,
45380
+ bookingEndDate: (_getValues2 = getValues()) === null || _getValues2 === void 0 ? void 0 : _getValues2.startDate,
45319
45381
  isTimerRequired: false
45320
45382
  };
45321
45383
  try {
@@ -45330,7 +45392,7 @@ const CHBCitizenSecond = ({
45330
45392
  }
45331
45393
  };
45332
45394
  const onSubmit = data => {
45333
- var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$purpose, _data$specialCategory;
45395
+ var _Digit$UserService$ge, _data$slots, _getHallDetails$, _data$siteId, _data$purpose, _data$specialCategory;
45334
45396
  console.log("data==??", data);
45335
45397
  const userInfo = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || {};
45336
45398
  const now = Date.now();
@@ -45354,6 +45416,7 @@ const CHBCitizenSecond = ({
45354
45416
  bookingStatus: "INITIATED",
45355
45417
  applicationDate: now,
45356
45418
  communityHallCode: (getHallDetails === null || getHallDetails === void 0 ? void 0 : (_getHallDetails$ = getHallDetails[0]) === null || _getHallDetails$ === void 0 ? void 0 : _getHallDetails$.communityHallId) || "",
45419
+ communityHallName: data === null || data === void 0 ? void 0 : (_data$siteId = data.siteId) === null || _data$siteId === void 0 ? void 0 : _data$siteId.name,
45357
45420
  purpose: {
45358
45421
  purpose: data === null || data === void 0 ? void 0 : (_data$purpose = data.purpose) === null || _data$purpose === void 0 ? void 0 : _data$purpose.code
45359
45422
  },
@@ -45443,6 +45506,9 @@ const CHBCitizenSecond = ({
45443
45506
  props.onChange(e);
45444
45507
  fiterHalls(e);
45445
45508
  setValue("hallCode", null);
45509
+ setValue("startDate", "");
45510
+ setSlots([]);
45511
+ setShowInfo(false);
45446
45512
  },
45447
45513
  selected: props.value,
45448
45514
  option: CHBLocations === null || CHBLocations === void 0 ? void 0 : (_CHBLocations$CHB = CHBLocations.CHB) === null || _CHBLocations$CHB === void 0 ? void 0 : _CHBLocations$CHB.CommunityHalls,
@@ -45571,7 +45637,9 @@ const CHBCitizenSecond = ({
45571
45637
  }, /*#__PURE__*/React.createElement("input", {
45572
45638
  type: "checkbox",
45573
45639
  checked: isChecked,
45640
+ disabled: !isAvailable,
45574
45641
  onChange: e => {
45642
+ if (!isAvailable) return;
45575
45643
  if (e.target.checked) {
45576
45644
  field.onChange([...(field.value || []), slot]);
45577
45645
  } else {
@@ -46173,7 +46241,7 @@ function CHBSummary({
46173
46241
  goNext,
46174
46242
  onGoBack
46175
46243
  }) {
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;
46244
+ 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
46245
  const {
46178
46246
  pathname: url
46179
46247
  } = useLocation();
@@ -46188,6 +46256,9 @@ function CHBSummary({
46188
46256
  const columns = [{
46189
46257
  Header: `${t("CHB_HALL_NUMBER")}`,
46190
46258
  accessor: "communityHallCode"
46259
+ }, {
46260
+ Header: `${t("CHB_COMMUNITY_HALL_NAME")}`,
46261
+ accessor: "hallName"
46191
46262
  }, {
46192
46263
  Header: `${t("CHB_HALL_CODE")}`,
46193
46264
  accessor: "hallCode"
@@ -46266,9 +46337,10 @@ function CHBSummary({
46266
46337
  style: boldLabelStyle
46267
46338
  }, label), /*#__PURE__*/React.createElement("div", null, t(value) || "NA"));
46268
46339
  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;
46340
+ var _formData$venueDetail6, _formData$venueDetail7, _formData$venueDetail8, _formData$venueDetail9;
46270
46341
  return {
46271
46342
  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)}`,
46343
+ 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
46344
  hallCode: slot.hallCode + " - " + slot.capacity,
46273
46345
  bookingDate: slot.bookingDate,
46274
46346
  bookingStatus: `${t(slot.status)}`
@@ -46284,13 +46356,13 @@ function CHBSummary({
46284
46356
  style: {
46285
46357
  fontSize: "24px"
46286
46358
  }
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", {
46359
+ }, 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
46360
  style: sectionStyle
46289
46361
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
46290
46362
  style: {
46291
46363
  fontSize: "24px"
46292
46364
  }
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, {
46365
+ }, 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
46366
  t: t,
46295
46367
  data: slotlistRows,
46296
46368
  columns: columns,