@mseva/upyog-ui-module-chb 1.1.91-dev.1 → 1.1.91-dev.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { TickMark, CardSubHeader, Modal as Modal$1, CardLabelDesc, CardLabel, CardText, Card, FormStep, Dropdown, TextArea, Loader as Loader$1, TextInput, MobileNumber, Toast, LabelFieldPair, UploadFile, Table, KeyNote, SubmitBar, CardHeader, InfoIcon, Calender, CheckPoint, ConnectingCheckPoints, AppContainer, PrivateRoute, BreadCrumb, PDFSvg as PDFSvg$2, StatusTable, Row, CardSectionHeader, CheckBox, LinkButton, Banner, ActionBar, Header, MultiLink, TelePhone, DisplayPhotos, SearchField, FilterFormField, RadioButtons, ComplaintIcon, InboxComposer, SearchForm, CardLabelError, DatePicker, EmployeeModuleCard, CloseSvg, Localities, RemoveableTag, FormComposer, Menu, OTPInput, Rating, CitizenHomeCard } from '@mseva/digit-ui-react-components';
1
+ import { TickMark, CardSubHeader, Modal as Modal$1, CardLabelDesc, CardLabel, CardText, Card, FormStep, Dropdown, TextArea, Loader as Loader$1, TextInput, MobileNumber, Toast, LabelFieldPair, UploadFile, Table, KeyNote, SubmitBar, CardHeader, InfoIcon, Calender, CheckPoint, ConnectingCheckPoints, AppContainer, PrivateRoute, BreadCrumb, PDFSvg as PDFSvg$2, StatusTable, Row, CardSectionHeader, CheckBox, LinkButton, Banner, ActionBar, Header, MultiLink, TelePhone, DisplayPhotos, SearchField, FilterFormField, RadioButtons, ComplaintIcon, InboxComposer, SearchForm, CardLabelError, DatePicker, BackButton, EmployeeModuleCard, CloseSvg, Localities, RemoveableTag, FormComposer, Menu, OTPInput, Rating, CitizenHomeCard } from '@mseva/digit-ui-react-components';
2
2
  import React, { useState, useEffect, useRef, useMemo, useCallback, Fragment as Fragment$1, useReducer } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
@@ -14391,8 +14391,6 @@ var accessibility = createCommonjsModule(function (module, exports) {
14391
14391
  });
14392
14392
  unwrapExports(accessibility);
14393
14393
 
14394
- var _shallowEqual = getCjsExportFromNamespace(index_esm);
14395
-
14396
14394
  var Calendar_1 = createCommonjsModule(function (module, exports) {
14397
14395
 
14398
14396
  function _typeof(obj) {
@@ -15047,7 +15045,7 @@ var Calendar_1 = createCommonjsModule(function (module, exports) {
15047
15045
  monthNames: this.getMonthNames()
15048
15046
  });
15049
15047
  }
15050
- if (!(0, _shallowEqual.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15048
+ if (!(0, index_esm.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15051
15049
  this.setState({
15052
15050
  scrollArea: this.calcScrollArea(this.props)
15053
15051
  });
@@ -17675,7 +17673,6 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
17675
17673
  const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
17676
17674
  return (formats === null || formats === void 0 ? void 0 : formats.find(link => !(link !== null && link !== void 0 && link.includes("large")) && !(link !== null && link !== void 0 && link.includes("medium")) && !(link !== null && link !== void 0 && link.includes("small")))) || (formats === null || formats === void 0 ? void 0 : formats[0]) || "";
17677
17675
  };
17678
- const pattern = /\[#\?.*?\*\*\]/;
17679
17676
  const timelineRows = timeline.map((item, index) => {
17680
17677
  var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
17681
17678
  const createdDate = (item === null || item === void 0 ? void 0 : (_item$auditDetails = item.auditDetails) === null || _item$auditDetails === void 0 ? void 0 : _item$auditDetails.created) || "N/A";
@@ -17685,8 +17682,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
17685
17682
  const mobileNumber = (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.mobileNumber) || "N/A";
17686
17683
  const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
17687
17684
  const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
17688
- const rawComment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
17689
- const comment = typeof rawComment === "string" ? rawComment.split(pattern)[0] : rawComment;
17685
+ const comment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
17690
17686
  const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
17691
17687
  const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
17692
17688
  const assignedTo = Array.isArray(item === null || item === void 0 ? void 0 : item.assignes) ? item.assignes.map(a => a === null || a === void 0 ? void 0 : a.name).filter(Boolean).join(", ") : "";
@@ -18758,11 +18754,46 @@ const CHBAcknowledgement = ({
18758
18754
  const Loader = ({
18759
18755
  page: _page = false
18760
18756
  }) => {
18757
+ const baseStyle = {
18758
+ display: "flex",
18759
+ justifyContent: "center",
18760
+ alignItems: "center"
18761
+ };
18762
+ const pageStyle = {
18763
+ ...baseStyle,
18764
+ position: "fixed",
18765
+ top: 0,
18766
+ left: 0,
18767
+ width: "100vw",
18768
+ height: "100vh",
18769
+ background: "rgba(255,255,255,0.6)",
18770
+ backdropFilter: "blur(4px)",
18771
+ zIndex: 9999
18772
+ };
18773
+ const moduleStyle = {
18774
+ ...baseStyle,
18775
+ minHeight: "100px",
18776
+ width: "100%",
18777
+ position: "relative"
18778
+ };
18779
+ const spinnerStyle = {
18780
+ width: "64px",
18781
+ height: "64px",
18782
+ border: "8px solid #1976d2",
18783
+ borderTop: "8px solid transparent",
18784
+ borderRadius: "50%",
18785
+ animation: "spin 1.2s linear infinite"
18786
+ };
18761
18787
  return /*#__PURE__*/React.createElement("div", {
18762
- className: `chb-loader-container ${_page ? "chb-page-loader-overlay" : "chb-module-loader-container"}`
18788
+ style: _page ? pageStyle : moduleStyle
18763
18789
  }, /*#__PURE__*/React.createElement("div", {
18764
- className: "chb-spinner"
18765
- }));
18790
+ style: spinnerStyle
18791
+ }), /*#__PURE__*/React.createElement("style", null, `
18792
+ @keyframes spin {
18793
+ 0% { transform: rotate(0deg); }
18794
+ 100% { transform: rotate(360deg); }
18795
+ }
18796
+ `));
18766
18797
  };
18767
18798
  Loader.propTypes = {
18768
18799
  page: propTypes.bool
@@ -18808,7 +18839,7 @@ const ReasonModal = ({
18808
18839
  } = useForm();
18809
18840
  const onSubmit = data => {
18810
18841
  console.log("data===", data);
18811
- cancelModal(data);
18842
+ cancelModal();
18812
18843
  };
18813
18844
  return /*#__PURE__*/React.createElement("form", {
18814
18845
  onSubmit: handleSubmit(onSubmit)
@@ -18831,9 +18862,14 @@ const ReasonModal = ({
18831
18862
  padding: " 0 30px"
18832
18863
  }
18833
18864
  }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CHB_DISCOUNT_REASON")}`, " ", /*#__PURE__*/React.createElement("span", {
18834
- className: "mandatory-asterisk"
18865
+ style: {
18866
+ color: "red"
18867
+ }
18835
18868
  }, "*")), /*#__PURE__*/React.createElement("div", {
18836
- className: "form-field w-fullwidth"
18869
+ className: "form-field",
18870
+ style: {
18871
+ width: "100%"
18872
+ }
18837
18873
  }, /*#__PURE__*/React.createElement(Controller, {
18838
18874
  control: control,
18839
18875
  name: "reason",
@@ -18859,7 +18895,11 @@ const ReasonModal = ({
18859
18895
  });
18860
18896
  }
18861
18897
  }), (errors === null || errors === void 0 ? void 0 : errors.reason) && /*#__PURE__*/React.createElement("p", {
18862
- className: "chb-error-text"
18898
+ style: {
18899
+ color: "red",
18900
+ marginTop: "4px",
18901
+ marginBottom: "0"
18902
+ }
18863
18903
  }, errors.reason.message))), /*#__PURE__*/React.createElement(ActionBar, {
18864
18904
  style: {
18865
18905
  position: "relative"
@@ -18907,15 +18947,14 @@ const ChbApplication = ({
18907
18947
  const handleCancel = async () => {
18908
18948
  setShowModal(true);
18909
18949
  };
18910
- const submitCancel = async data => {
18950
+ const submitCancel = async () => {
18911
18951
  setLoader(true);
18912
18952
  setShowModal(false);
18913
18953
  const finalPayload = {
18914
18954
  hallsBookingApplication: {
18915
18955
  ...application,
18916
18956
  workflow: {
18917
- action: "CANCEL",
18918
- comment: data === null || data === void 0 ? void 0 : data.reason
18957
+ action: "CANCEL"
18919
18958
  }
18920
18959
  }
18921
18960
  };
@@ -42148,13 +42187,13 @@ function NewApplicationTimeline({
42148
42187
  className: "custom-officer-info"
42149
42188
  }, /*#__PURE__*/React.createElement("div", {
42150
42189
  className: "custom-officer-name"
42151
- }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA"), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.userName] && /*#__PURE__*/React.createElement("span", {
42152
- className: "custom-officer-name"
42153
- }, "- ", t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.userName]))), (item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.emailId) && /*#__PURE__*/React.createElement("div", {
42190
+ }, (item === null || item === void 0 ? void 0 : (_item$assigner2 = item.assigner) === null || _item$assigner2 === void 0 ? void 0 : _item$assigner2.name) || t("CS_COMMON_NA")), (item === null || item === void 0 ? void 0 : (_item$assigner3 = item.assigner) === null || _item$assigner3 === void 0 ? void 0 : _item$assigner3.emailId) && /*#__PURE__*/React.createElement("div", {
42154
42191
  className: "custom-officer-email"
42155
42192
  }, /*#__PURE__*/React.createElement("span", {
42156
42193
  className: "custom-email-label"
42157
- }, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.emailId))), /*#__PURE__*/React.createElement("div", {
42194
+ }, t("Email")), " ", item === null || item === void 0 ? void 0 : (_item$assigner4 = item.assigner) === null || _item$assigner4 === void 0 ? void 0 : _item$assigner4.emailId), deptMap[item === null || item === void 0 ? void 0 : (_item$assigner5 = item.assigner) === null || _item$assigner5 === void 0 ? void 0 : _item$assigner5.userName] && /*#__PURE__*/React.createElement("div", {
42195
+ className: "custom-officer-name"
42196
+ }, t(deptMap[item === null || item === void 0 ? void 0 : (_item$assigner6 = item.assigner) === null || _item$assigner6 === void 0 ? void 0 : _item$assigner6.userName])))), /*#__PURE__*/React.createElement("div", {
42158
42197
  className: "custom-card-column custom-card-column-mid"
42159
42198
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
42160
42199
  className: "custom-action-title"
@@ -42176,13 +42215,9 @@ function NewApplicationTimeline({
42176
42215
  className: "custom-comments-title"
42177
42216
  }, t("Officer Comments")), /*#__PURE__*/React.createElement("div", {
42178
42217
  className: "custom-comment-text"
42179
- }, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => {
42180
- const pattern = /\[#\?.*?\*\*\]/;
42181
- const truncatedComment = typeof comment === "string" ? comment === null || comment === void 0 ? void 0 : comment.split(pattern)[0] : comment;
42182
- return /*#__PURE__*/React.createElement("p", {
42183
- key: idx
42184
- }, truncatedComment);
42185
- }))), (item === null || item === void 0 ? void 0 : (_item$assignes = item.assignes) === null || _item$assignes === void 0 ? void 0 : _item$assignes.length) > 0 && /*#__PURE__*/React.createElement("div", {
42218
+ }, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => /*#__PURE__*/React.createElement("p", {
42219
+ key: idx
42220
+ }, comment)))), (item === null || item === void 0 ? void 0 : (_item$assignes = item.assignes) === null || _item$assignes === void 0 ? void 0 : _item$assignes.length) > 0 && /*#__PURE__*/React.createElement("div", {
42186
42221
  className: "custom-assigned-to-footer"
42187
42222
  }, /*#__PURE__*/React.createElement("h3", {
42188
42223
  className: "custom-comments-title"
@@ -42190,9 +42225,9 @@ function NewApplicationTimeline({
42190
42225
  className: "custom-officer-info"
42191
42226
  }, /*#__PURE__*/React.createElement("div", {
42192
42227
  className: "custom-officer-name"
42193
- }, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name, deptMap[(_item$assignes$2 = item.assignes[0]) === null || _item$assignes$2 === void 0 ? void 0 : _item$assignes$2.userName] && /*#__PURE__*/React.createElement("span", {
42228
+ }, (_item$assignes$ = item.assignes[0]) === null || _item$assignes$ === void 0 ? void 0 : _item$assignes$.name), deptMap[(_item$assignes$2 = item.assignes[0]) === null || _item$assignes$2 === void 0 ? void 0 : _item$assignes$2.userName] && /*#__PURE__*/React.createElement("div", {
42194
42229
  className: "custom-officer-email"
42195
- }, "- ", t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName])))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
42230
+ }, t(deptMap[(_item$assignes$3 = item.assignes[0]) === null || _item$assignes$3 === void 0 ? void 0 : _item$assignes$3.userName]))))), (item === null || item === void 0 ? void 0 : item.wfDocuments) && (item === null || item === void 0 ? void 0 : (_item$wfDocuments = item.wfDocuments) === null || _item$wfDocuments === void 0 ? void 0 : _item$wfDocuments.length) > 0 && /*#__PURE__*/React.createElement("div", {
42196
42231
  className: "custom-comments-section-no-border"
42197
42232
  }, /*#__PURE__*/React.createElement("h4", {
42198
42233
  className: "custom-comments-title"
@@ -42538,7 +42573,12 @@ const CHBApplicationDetails = () => {
42538
42573
  data: slotlistRows,
42539
42574
  columns: columns,
42540
42575
  getCellProps: cellInfo => ({
42541
- className: "chb-table-cell-details"
42576
+ style: {
42577
+ minWidth: "150px",
42578
+ padding: "10px",
42579
+ fontSize: "16px",
42580
+ paddingLeft: "20px"
42581
+ }
42542
42582
  }),
42543
42583
  isPaginationRequired: false,
42544
42584
  totalRecords: slotlistRows.length
@@ -42547,7 +42587,12 @@ const CHBApplicationDetails = () => {
42547
42587
  }, /*#__PURE__*/React.createElement("div", {
42548
42588
  className: "document-section-header"
42549
42589
  }, t("CS_COMMON_DOCUMENTS")), ((_docs = docs) === null || _docs === void 0 ? void 0 : _docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
42550
- className: "chb-documents-flex"
42590
+ style: {
42591
+ display: "flex",
42592
+ flexWrap: "wrap",
42593
+ gap: "16px",
42594
+ marginTop: "16px"
42595
+ }
42551
42596
  }, (_docs2 = docs) === null || _docs2 === void 0 ? void 0 : _docs2.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
42552
42597
  key: index
42553
42598
  }, /*#__PURE__*/React.createElement(CHBDocument, {
@@ -42741,30 +42786,18 @@ const useInboxTableConfig = ({
42741
42786
  }, value);
42742
42787
  const tableColumnConfig = useMemo(() => {
42743
42788
  return [{
42744
- Header: t("CHB_APPLICANT_NAME"),
42745
- Cell: ({
42746
- row
42747
- }) => {
42748
- var _row$original;
42749
- console.log("row", row);
42750
- return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
42751
- className: "link"
42752
- }, row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.owner));
42753
- },
42754
- disableSortBy: true
42755
- }, {
42756
42789
  Header: t("NOC_HOME_SEARCH_RESULTS_APP_NO_LABEL"),
42757
42790
  accessor: "uuid",
42758
42791
  disableSortBy: true,
42759
42792
  Cell: ({
42760
42793
  row
42761
42794
  }) => {
42762
- var _row$original2, _row$original3;
42795
+ var _row$original, _row$original2;
42763
42796
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
42764
- to: `${parentRoute}/applicationsearch/application-details/${(_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationId}`
42797
+ to: `${parentRoute}/applicationsearch/application-details/${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationId}`
42765
42798
  }, /*#__PURE__*/React.createElement("span", {
42766
42799
  className: "link"
42767
- }, (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationId)));
42800
+ }, (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationId)));
42768
42801
  }
42769
42802
  }, {
42770
42803
  Header: t("TL_COMMON_TABLE_COL_APP_DATE"),
@@ -42772,8 +42805,8 @@ const useInboxTableConfig = ({
42772
42805
  Cell: ({
42773
42806
  row
42774
42807
  }) => {
42775
- var _row$original4, _row$original5;
42776
- return (_row$original4 = row.original) !== null && _row$original4 !== void 0 && _row$original4.date ? GetCell(format(new Date((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.date), "dd/MM/yyyy")) : "";
42808
+ var _row$original3, _row$original4;
42809
+ return (_row$original3 = row.original) !== null && _row$original3 !== void 0 && _row$original3.date ? GetCell(format(new Date((_row$original4 = row.original) === null || _row$original4 === void 0 ? void 0 : _row$original4.date), "dd/MM/yyyy")) : "";
42777
42810
  }
42778
42811
  }, {
42779
42812
  Header: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
@@ -42781,8 +42814,8 @@ const useInboxTableConfig = ({
42781
42814
  Cell: ({
42782
42815
  row
42783
42816
  }) => {
42784
- var _row$original6;
42785
- return t((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.status);
42817
+ var _row$original5;
42818
+ return t((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.status);
42786
42819
  }
42787
42820
  }];
42788
42821
  });
@@ -43022,7 +43055,6 @@ const Inbox = ({
43022
43055
  const [totalCount, setTotalCount] = useState(0);
43023
43056
  useEffect(() => {
43024
43057
  if (data) {
43025
- console.log("yes data", data);
43026
43058
  setStatuses((data === null || data === void 0 ? void 0 : data.statuses) || []);
43027
43059
  setTable((data === null || data === void 0 ? void 0 : data.table) || []);
43028
43060
  setTotalCount((data === null || data === void 0 ? void 0 : data.totalCount) || 0);
@@ -43350,16 +43382,35 @@ const CHBSearchApplication = ({
43350
43382
  onSubmit: toggleMenu,
43351
43383
  disabled: (application === null || application === void 0 ? void 0 : application.bookingStatus) === "CANCELLED" || (application === null || application === void 0 ? void 0 : application.bookingStatus) === "EXPIRED"
43352
43384
  }), isMenuOpen && /*#__PURE__*/React.createElement("div", {
43353
- className: "chb-dropdown-menu"
43385
+ style: {
43386
+ position: 'absolute',
43387
+ backgroundColor: 'white',
43388
+ border: '1px solid #ccc',
43389
+ borderRadius: '4px',
43390
+ padding: '8px',
43391
+ zIndex: 1000
43392
+ }
43354
43393
  }, (application === null || application === void 0 ? void 0 : application.bookingStatus) === "BOOKED" && /*#__PURE__*/React.createElement("div", {
43355
43394
  onClick: handleCancel,
43356
- className: "chb-menu-item"
43395
+ style: {
43396
+ display: 'block',
43397
+ padding: '8px',
43398
+ textDecoration: 'none',
43399
+ color: 'black',
43400
+ cursor: 'pointer'
43401
+ }
43357
43402
  }, t("CHB_CANCEL")), (application === null || application === void 0 ? void 0 : application.bookingStatus) !== "BOOKED" && /*#__PURE__*/React.createElement("div", {
43358
43403
  onClick: () => {
43359
43404
  var _row$original6;
43360
43405
  return handleNavigate(`/digit-ui/employee/payment/collect/chb-services/${row === null || row === void 0 ? void 0 : (_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.bookingNo}`);
43361
43406
  },
43362
- className: "chb-menu-item"
43407
+ style: {
43408
+ display: 'block',
43409
+ padding: '8px',
43410
+ textDecoration: 'none',
43411
+ color: 'black',
43412
+ cursor: 'pointer'
43413
+ }
43363
43414
  }, t("CHB_COLLECT_PAYMENT")))));
43364
43415
  }
43365
43416
  }], []);
@@ -43396,7 +43447,9 @@ const CHBSearchApplication = ({
43396
43447
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Header, null, t("CHB_SEARCH_BOOKINGS")), /*#__PURE__*/React.createElement(Card, {
43397
43448
  className: "card-search-heading"
43398
43449
  }, /*#__PURE__*/React.createElement("span", {
43399
- className: "cell-text"
43450
+ style: {
43451
+ color: "#505A5F"
43452
+ }
43400
43453
  }, t("Provide at least one parameter to search for an application"))), /*#__PURE__*/React.createElement(SearchForm, {
43401
43454
  onSubmit: onSubmit,
43402
43455
  handleSubmit: handleSubmit
@@ -43452,7 +43505,7 @@ const CHBSearchApplication = ({
43452
43505
  date: props.value,
43453
43506
  disabled: false,
43454
43507
  onChange: props.onChange,
43455
- max: new Date().toISOString().split("T")[0]
43508
+ max: new Date().toISOString().split('T')[0]
43456
43509
  }),
43457
43510
  name: "fromDate",
43458
43511
  control: control
@@ -43470,7 +43523,9 @@ const CHBSearchApplication = ({
43470
43523
  label: t("ES_COMMON_SEARCH"),
43471
43524
  submit: true
43472
43525
  }), /*#__PURE__*/React.createElement("p", {
43473
- className: "link-button-margin",
43526
+ style: {
43527
+ marginTop: "10px"
43528
+ },
43474
43529
  onClick: () => {
43475
43530
  reset({
43476
43531
  bookingNo: "",
@@ -43488,10 +43543,14 @@ const CHBSearchApplication = ({
43488
43543
  previousPage();
43489
43544
  }
43490
43545
  }, t(`ES_COMMON_CLEAR_ALL`)))), !isLoading && data !== null && data !== void 0 && data.display ? /*#__PURE__*/React.createElement(Card, {
43491
- className: "chb-margin-top-20"
43546
+ style: {
43547
+ marginTop: 20
43548
+ }
43492
43549
  }, t(data.display).split("\\n").map((text, index) => /*#__PURE__*/React.createElement("p", {
43493
43550
  key: index,
43494
- className: "text-align-center"
43551
+ style: {
43552
+ textAlign: "center"
43553
+ }
43495
43554
  }, text))) : !isLoading && data !== "" ? /*#__PURE__*/React.createElement(Table, {
43496
43555
  t: t,
43497
43556
  data: data,
@@ -43500,9 +43559,10 @@ const CHBSearchApplication = ({
43500
43559
  getCellProps: cellInfo => {
43501
43560
  return {
43502
43561
  style: {
43503
- minWidth: cellInfo.column.Header === t("CHB_INBOX_APPLICATION_NO") ? "240px" : ""
43504
- },
43505
- className: "ads-default-cell"
43562
+ minWidth: cellInfo.column.Header === t("CHB_INBOX_APPLICATION_NO") ? "240px" : "",
43563
+ padding: "20px 18px",
43564
+ fontSize: "16px"
43565
+ }
43506
43566
  };
43507
43567
  },
43508
43568
  onPageSizeChange: onPageSizeChange,
@@ -43607,31 +43667,6 @@ const SearchApp = ({
43607
43667
  }));
43608
43668
  };
43609
43669
 
43610
- const CHBBreadCrumbs$1 = ({
43611
- location,
43612
- t
43613
- }) => {
43614
- const crumbs = [{
43615
- path: "/digit-ui/employee",
43616
- content: t("ES_COMMON_HOME"),
43617
- show: true
43618
- }, {
43619
- path: "/digit-ui/employee/chb/inbox",
43620
- content: t("CS_COMMON_INBOX"),
43621
- show: location.pathname.includes("/chb/inbox") ? true : false
43622
- }, {
43623
- path: "/digit-ui/employee/chb/bookHall",
43624
- content: "Book Hall",
43625
- show: location.pathname.includes("/chb/bookHall") ? true : false
43626
- }, {
43627
- path: "/digit-ui/employee/chb/applicationsearch/application-details",
43628
- content: "Application Overview",
43629
- show: location.pathname.includes("/chb/applicationsearch/application-details") ? true : false
43630
- }];
43631
- return /*#__PURE__*/React.createElement(BreadCrumb, {
43632
- crumbs: crumbs
43633
- });
43634
- };
43635
43670
  const EmployeeApp = ({
43636
43671
  path,
43637
43672
  url,
@@ -43662,15 +43697,20 @@ const EmployeeApp = ({
43662
43697
  const CHBResponseCitizen = Digit.ComponentRegistryService.getComponent("CHBResponseCitizen");
43663
43698
  const isRes = window.location.href.includes("chb/response");
43664
43699
  const isNewRegistration = window.location.href.includes("searchhall") || window.location.href.includes("modify-application") || window.location.href.includes("chb/application-details");
43665
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
43700
+ return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
43666
43701
  className: "ground-container"
43667
43702
  }, !isRes ? /*#__PURE__*/React.createElement("div", {
43668
- style: {
43669
- marginLeft: "10px"
43703
+ style: isNewRegistration ? {
43704
+ marginLeft: "12px",
43705
+ display: "flex",
43706
+ alignItems: "center"
43707
+ } : {
43708
+ marginLeft: "-4px",
43709
+ display: "flex",
43710
+ alignItems: "center"
43670
43711
  }
43671
- }, /*#__PURE__*/React.createElement(CHBBreadCrumbs$1, {
43672
- location: location,
43673
- t: t
43712
+ }, /*#__PURE__*/React.createElement(BackButton, {
43713
+ location: location
43674
43714
  })) : null, /*#__PURE__*/React.createElement(PrivateRoute, {
43675
43715
  exact: true,
43676
43716
  path: `${path}/`,
@@ -43720,7 +43760,7 @@ const EmployeeApp = ({
43720
43760
  component: props => /*#__PURE__*/React.createElement(SearchApp, Object.assign({}, props, {
43721
43761
  parentRoute: path
43722
43762
  }))
43723
- })));
43763
+ })))));
43724
43764
  };
43725
43765
 
43726
43766
  const CHBIcon = ({
@@ -44425,7 +44465,7 @@ const CHBApplicationDetails$1 = () => {
44425
44465
  let user = Digit.UserService.getUser();
44426
44466
  const menuRef = useRef();
44427
44467
  const isCemp = user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.roles.filter(role => role.code === "CEMP");
44428
- console.log("isCemp", isCemp);
44468
+ console.log('isCemp', isCemp);
44429
44469
  const userRoles = user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : (_user$info2$roles = _user$info2.roles) === null || _user$info2$roles === void 0 ? void 0 : _user$info2$roles.map(e => e.code);
44430
44470
  let actions = (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data6 = workflowDetails.data) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6.actionState) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.nextActions) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.filter(e => {
44431
44471
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
@@ -44596,7 +44636,7 @@ const CHBApplicationDetails$1 = () => {
44596
44636
  payments,
44597
44637
  ...params
44598
44638
  }) {
44599
- console.log("payments", payments);
44639
+ console.log('payments', payments);
44600
44640
  try {
44601
44641
  var _data$hallsBookingApp2, _data$hallsBookingApp3;
44602
44642
  setLoading(true);
@@ -44612,7 +44652,7 @@ const CHBApplicationDetails$1 = () => {
44612
44652
  };
44613
44653
  })
44614
44654
  };
44615
- console.log("application", application);
44655
+ console.log('application', application);
44616
44656
  let fileStoreId = data === null || data === void 0 ? void 0 : (_data$hallsBookingApp2 = data.hallsBookingApplication) === null || _data$hallsBookingApp2 === void 0 ? void 0 : (_data$hallsBookingApp3 = _data$hallsBookingApp2[0]) === null || _data$hallsBookingApp3 === void 0 ? void 0 : _data$hallsBookingApp3.paymentReceiptFilestoreId;
44617
44657
  if (!fileStoreId) {
44618
44658
  const response = await Digit.PaymentService.generatePdf(tenantId, {
@@ -44662,7 +44702,7 @@ const CHBApplicationDetails$1 = () => {
44662
44702
  })
44663
44703
  };
44664
44704
  let fileStoreId = data === null || data === void 0 ? void 0 : (_data$hallsBookingApp4 = data.hallsBookingApplication) === null || _data$hallsBookingApp4 === void 0 ? void 0 : (_data$hallsBookingApp5 = _data$hallsBookingApp4[0]) === null || _data$hallsBookingApp5 === void 0 ? void 0 : _data$hallsBookingApp5.permissionLetterFilestoreId;
44665
- console.log("fileStoreId bef create", fileStoreId);
44705
+ console.log('fileStoreId bef create', fileStoreId);
44666
44706
  if (!fileStoreId) {
44667
44707
  const response = await Digit.PaymentService.generatePdf(tenantId, {
44668
44708
  Payments: [{
@@ -46092,9 +46132,14 @@ const CHBCitizenSecond = ({
46092
46132
  }, /*#__PURE__*/React.createElement("div", {
46093
46133
  className: "label-field-pair"
46094
46134
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_HALL_NAME"), " ", /*#__PURE__*/React.createElement("span", {
46095
- className: "mandatory-asterisk"
46135
+ style: {
46136
+ color: "red"
46137
+ }
46096
46138
  }, "*")), /*#__PURE__*/React.createElement("div", {
46097
- className: "form-field w-fullwidth"
46139
+ className: "form-field",
46140
+ style: {
46141
+ width: "100%"
46142
+ }
46098
46143
  }, /*#__PURE__*/React.createElement(Controller, {
46099
46144
  control: control,
46100
46145
  name: "siteId",
@@ -46104,7 +46149,10 @@ const CHBCitizenSecond = ({
46104
46149
  render: props => {
46105
46150
  var _CHBLocations$CHB;
46106
46151
  return /*#__PURE__*/React.createElement(Dropdown, {
46107
- className: "form-field chb-form-field-margin",
46152
+ style: {
46153
+ marginBottom: 0
46154
+ },
46155
+ className: "form-field",
46108
46156
  select: e => {
46109
46157
  props.onChange(e);
46110
46158
  fiterHalls(e);
@@ -46120,13 +46168,25 @@ const CHBCitizenSecond = ({
46120
46168
  });
46121
46169
  }
46122
46170
  }), errors.siteId && /*#__PURE__*/React.createElement("p", {
46123
- className: "chb-error-text"
46171
+ style: {
46172
+ color: "red",
46173
+ marginTop: "4px",
46174
+ marginBottom: "0"
46175
+ }
46124
46176
  }, errors.siteId.message))), /*#__PURE__*/React.createElement("div", {
46125
- className: "label-field-pair chb-margin-top-20"
46177
+ className: "label-field-pair",
46178
+ style: {
46179
+ marginTop: "20px"
46180
+ }
46126
46181
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_DATE"), " ", /*#__PURE__*/React.createElement("span", {
46127
- className: "mandatory-asterisk"
46182
+ style: {
46183
+ color: "red"
46184
+ }
46128
46185
  }, "*")), /*#__PURE__*/React.createElement("div", {
46129
- className: "form-field w-fullwidth"
46186
+ className: "form-field",
46187
+ style: {
46188
+ width: "100%"
46189
+ }
46130
46190
  }, /*#__PURE__*/React.createElement(Controller, {
46131
46191
  control: control,
46132
46192
  name: "startDate",
@@ -46134,10 +46194,13 @@ const CHBCitizenSecond = ({
46134
46194
  required: t("START_DATE_REQ")
46135
46195
  },
46136
46196
  render: props => /*#__PURE__*/React.createElement(TextInput, {
46197
+ style: {
46198
+ marginBottom: 0
46199
+ },
46137
46200
  type: "date",
46138
- className: "form-field chb-form-field-margin",
46201
+ className: "form-field",
46139
46202
  value: props.value,
46140
- min: new Date().toISOString().split("T")[0],
46203
+ min: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString().split("T")[0],
46141
46204
  onChange: e => {
46142
46205
  props.onChange(e.target.value);
46143
46206
  setValue("endDate", "");
@@ -46147,13 +46210,25 @@ const CHBCitizenSecond = ({
46147
46210
  }
46148
46211
  })
46149
46212
  }), errors.startDate && /*#__PURE__*/React.createElement("p", {
46150
- className: "chb-error-text"
46213
+ style: {
46214
+ color: "red",
46215
+ marginTop: "4px",
46216
+ marginBottom: "0"
46217
+ }
46151
46218
  }, errors.startDate.message))), /*#__PURE__*/React.createElement("div", {
46152
- className: "label-field-pair chb-margin-top-20"
46219
+ className: "label-field-pair",
46220
+ style: {
46221
+ marginTop: "20px"
46222
+ }
46153
46223
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_END_DATE"), " ", /*#__PURE__*/React.createElement("span", {
46154
- className: "mandatory-asterisk"
46224
+ style: {
46225
+ color: "red"
46226
+ }
46155
46227
  }, "*")), /*#__PURE__*/React.createElement("div", {
46156
- className: "form-field w-fullwidth"
46228
+ className: "form-field",
46229
+ style: {
46230
+ width: "100%"
46231
+ }
46157
46232
  }, /*#__PURE__*/React.createElement(Controller, {
46158
46233
  control: control,
46159
46234
  name: "endDate",
@@ -46163,19 +46238,19 @@ const CHBCitizenSecond = ({
46163
46238
  if (!value || !startDate) return true;
46164
46239
  const start = new Date(startDate);
46165
46240
  const end = new Date(value);
46166
- const diffDays = Math.floor((end - start) / (1000 * 60 * 60 * 24));
46167
- if (diffDays < 0) {
46168
- return t("END_DATE_BEFORE_START");
46169
- }
46170
- if (diffDays > 5) {
46241
+ const daysDiff = Math.ceil((end - start) / (1000 * 60 * 60 * 24));
46242
+ if (daysDiff > 5) {
46171
46243
  return t("END_DATE_MAX_5_DAYS");
46172
46244
  }
46173
46245
  return true;
46174
46246
  }
46175
46247
  },
46176
46248
  render: props => /*#__PURE__*/React.createElement(TextInput, {
46249
+ style: {
46250
+ marginBottom: 0
46251
+ },
46177
46252
  type: "date",
46178
- className: "form-field chb-form-field-margin",
46253
+ className: "form-field",
46179
46254
  value: props.value,
46180
46255
  min: startDate || new Date().toISOString().split("T")[0],
46181
46256
  onChange: e => {
@@ -46188,13 +46263,25 @@ const CHBCitizenSecond = ({
46188
46263
  disabled: !startDate
46189
46264
  })
46190
46265
  }), errors.endDate && /*#__PURE__*/React.createElement("p", {
46191
- className: "chb-error-text"
46266
+ style: {
46267
+ color: "red",
46268
+ marginTop: "4px",
46269
+ marginBottom: "0"
46270
+ }
46192
46271
  }, errors.endDate.message))), /*#__PURE__*/React.createElement("div", {
46193
- className: "label-field-pair chb-margin-top-20"
46272
+ className: "label-field-pair",
46273
+ style: {
46274
+ marginTop: "20px"
46275
+ }
46194
46276
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("HALL_CODE"), " ", /*#__PURE__*/React.createElement("span", {
46195
- className: "mandatory-asterisk"
46277
+ style: {
46278
+ color: "red"
46279
+ }
46196
46280
  }, "*")), /*#__PURE__*/React.createElement("div", {
46197
- className: "form-field w-fullwidth"
46281
+ className: "form-field",
46282
+ style: {
46283
+ width: "100%"
46284
+ }
46198
46285
  }, /*#__PURE__*/React.createElement(Controller, {
46199
46286
  control: control,
46200
46287
  name: "hallCode",
@@ -46202,7 +46289,10 @@ const CHBCitizenSecond = ({
46202
46289
  required: t("HALL_CODE_REQ")
46203
46290
  },
46204
46291
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
46205
- className: "form-field chb-form-field-margin",
46292
+ style: {
46293
+ marginBottom: 0
46294
+ },
46295
+ className: "form-field",
46206
46296
  select: e => {
46207
46297
  props.onChange(e);
46208
46298
  slotsSearch(e);
@@ -46213,13 +46303,26 @@ const CHBCitizenSecond = ({
46213
46303
  disable: errors.endDate || errors.startDate
46214
46304
  })
46215
46305
  }), errors.hallCode && /*#__PURE__*/React.createElement("p", {
46216
- className: "chb-error-text"
46306
+ style: {
46307
+ color: "red",
46308
+ marginTop: "4px",
46309
+ marginBottom: "0"
46310
+ }
46217
46311
  }, errors.hallCode.message))), (getSlots === null || getSlots === void 0 ? void 0 : getSlots.length) > 0 && /*#__PURE__*/React.createElement("div", {
46218
- className: "label-field-pair chb-margin-top-20 chb-margin-bottom-20"
46312
+ className: "label-field-pair",
46313
+ style: {
46314
+ marginTop: "20px",
46315
+ marginBottom: "20px"
46316
+ }
46219
46317
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("AVAILABLE_SLOTS"), " ", /*#__PURE__*/React.createElement("span", {
46220
- className: "mandatory-asterisk"
46318
+ style: {
46319
+ color: "red"
46320
+ }
46221
46321
  }, "*")), /*#__PURE__*/React.createElement("div", {
46222
- className: "form-field w-fullwidth"
46322
+ className: "form-field",
46323
+ style: {
46324
+ width: "100%"
46325
+ }
46223
46326
  }, /*#__PURE__*/React.createElement(Controller, {
46224
46327
  control: control,
46225
46328
  name: "slots",
@@ -46232,7 +46335,12 @@ const CHBCitizenSecond = ({
46232
46335
  }
46233
46336
  },
46234
46337
  render: field => /*#__PURE__*/React.createElement("div", {
46235
- className: "chb-slot-grid"
46338
+ style: {
46339
+ display: "grid",
46340
+ gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))",
46341
+ gap: "16px",
46342
+ width: "100%"
46343
+ }
46236
46344
  }, getSlots === null || getSlots === void 0 ? void 0 : getSlots.map((slot, idx) => {
46237
46345
  var _field$value, _slot$slotStaus;
46238
46346
  const slotKey = `${slot.hallCode}-${slot.bookingDate}-${slot.fromTime || ""}-${slot.toTime || ""}`;
@@ -46240,7 +46348,16 @@ const CHBCitizenSecond = ({
46240
46348
  const isAvailable = ((_slot$slotStaus = slot.slotStaus) === null || _slot$slotStaus === void 0 ? void 0 : _slot$slotStaus.toLowerCase()) === "available";
46241
46349
  return /*#__PURE__*/React.createElement("label", {
46242
46350
  key: slotKey,
46243
- className: `chb-slot-card ${!isAvailable ? "chb-slot-card--unavailable" : ""}`
46351
+ style: {
46352
+ border: "1px solid #ccc",
46353
+ borderRadius: "8px",
46354
+ padding: "12px",
46355
+ backgroundColor: isAvailable ? "#e6ffed" : "#ffe6e6",
46356
+ cursor: isAvailable ? "pointer" : "not-allowed",
46357
+ opacity: isAvailable ? 1 : 0.6,
46358
+ flexDirection: "column",
46359
+ gap: "6px"
46360
+ }
46244
46361
  }, /*#__PURE__*/React.createElement("input", {
46245
46362
  type: "checkbox",
46246
46363
  checked: isChecked,
@@ -46267,23 +46384,40 @@ const CHBCitizenSecond = ({
46267
46384
  }
46268
46385
  }
46269
46386
  }), /*#__PURE__*/React.createElement("span", {
46270
- className: "chb-slot-text"
46387
+ style: {
46388
+ marginLeft: "10px"
46389
+ }
46271
46390
  }, slot.bookingDate, " (", slot.hallCode, ") \u2013", " ", /*#__PURE__*/React.createElement("span", {
46272
- className: `chb-slot-status ${slot.slotStaus !== "AVAILABLE" ? "chb-slot-status--unavailable" : ""}`
46391
+ style: {
46392
+ color: slot.slotStaus === "AVAILABLE" ? "green" : "red",
46393
+ fontWeight: "bold"
46394
+ }
46273
46395
  }, slot.slotStaus ? slot.slotStaus.charAt(0).toUpperCase() + slot.slotStaus.slice(1).toLowerCase() : "")));
46274
46396
  }))
46275
46397
  }), errors.slots && /*#__PURE__*/React.createElement("p", {
46276
- className: "chb-error-text"
46398
+ style: {
46399
+ color: "red",
46400
+ marginTop: "4px",
46401
+ marginBottom: "0"
46402
+ }
46277
46403
  }, errors.slots.message))), /*#__PURE__*/React.createElement("div", {
46278
46404
  style: {
46279
46405
  display: showInfo ? "block" : "none"
46280
46406
  }
46281
46407
  }, /*#__PURE__*/React.createElement("div", {
46282
- className: "label-field-pair chb-margin-top-20"
46408
+ className: "label-field-pair",
46409
+ style: {
46410
+ marginTop: "20px"
46411
+ }
46283
46412
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_PURPOSE"), " ", /*#__PURE__*/React.createElement("span", {
46284
- className: "mandatory-asterisk"
46413
+ style: {
46414
+ color: "red"
46415
+ }
46285
46416
  }, "*")), /*#__PURE__*/React.createElement("div", {
46286
- className: "form-field w-fullwidth"
46417
+ className: "form-field",
46418
+ style: {
46419
+ width: "100%"
46420
+ }
46287
46421
  }, /*#__PURE__*/React.createElement(Controller, {
46288
46422
  control: control,
46289
46423
  name: "purpose",
@@ -46294,7 +46428,10 @@ const CHBCitizenSecond = ({
46294
46428
  render: props => {
46295
46429
  var _CHBPurpose$CHB;
46296
46430
  return /*#__PURE__*/React.createElement(Dropdown, {
46297
- className: "form-field chb-form-field-margin",
46431
+ style: {
46432
+ marginBottom: 0
46433
+ },
46434
+ className: "form-field",
46298
46435
  select: props.onChange,
46299
46436
  selected: props.value,
46300
46437
  option: CHBPurpose === null || CHBPurpose === void 0 ? void 0 : (_CHBPurpose$CHB = CHBPurpose.CHB) === null || _CHBPurpose$CHB === void 0 ? void 0 : _CHBPurpose$CHB.Purpose,
@@ -46302,13 +46439,25 @@ const CHBCitizenSecond = ({
46302
46439
  });
46303
46440
  }
46304
46441
  }), errors.purpose && /*#__PURE__*/React.createElement("p", {
46305
- className: "chb-error-text"
46442
+ style: {
46443
+ color: "red",
46444
+ marginTop: "4px",
46445
+ marginBottom: "0"
46446
+ }
46306
46447
  }, errors.purpose.message))), /*#__PURE__*/React.createElement("div", {
46307
- className: "label-field-pair chb-margin-top-20"
46448
+ className: "label-field-pair",
46449
+ style: {
46450
+ marginTop: "20px"
46451
+ }
46308
46452
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_SPECIAL_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
46309
- className: "mandatory-asterisk"
46453
+ style: {
46454
+ color: "red"
46455
+ }
46310
46456
  }, "*")), /*#__PURE__*/React.createElement("div", {
46311
- className: "form-field w-fullwidth"
46457
+ className: "form-field",
46458
+ style: {
46459
+ width: "100%"
46460
+ }
46312
46461
  }, /*#__PURE__*/React.createElement(Controller, {
46313
46462
  control: control,
46314
46463
  name: "specialCategory",
@@ -46319,7 +46468,10 @@ const CHBCitizenSecond = ({
46319
46468
  render: props => {
46320
46469
  var _SpecialCategory$CHB;
46321
46470
  return /*#__PURE__*/React.createElement(Dropdown, {
46322
- className: "form-field chb-form-field-margin",
46471
+ style: {
46472
+ marginBottom: 0
46473
+ },
46474
+ className: "form-field",
46323
46475
  select: props.onChange,
46324
46476
  selected: props.value,
46325
46477
  option: SpecialCategory === null || SpecialCategory === void 0 ? void 0 : (_SpecialCategory$CHB = SpecialCategory.CHB) === null || _SpecialCategory$CHB === void 0 ? void 0 : _SpecialCategory$CHB.SpecialCategory,
@@ -46327,13 +46479,25 @@ const CHBCitizenSecond = ({
46327
46479
  });
46328
46480
  }
46329
46481
  }), errors.specialCategory && /*#__PURE__*/React.createElement("p", {
46330
- className: "chb-error-text"
46482
+ style: {
46483
+ color: "red",
46484
+ marginTop: "4px",
46485
+ marginBottom: "0"
46486
+ }
46331
46487
  }, errors.specialCategory.message))), /*#__PURE__*/React.createElement("div", {
46332
- className: "label-field-pair chb-margin-top-20"
46488
+ className: "label-field-pair",
46489
+ style: {
46490
+ marginTop: "20px"
46491
+ }
46333
46492
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_PURPOSE_DESCRIPTION"), " ", /*#__PURE__*/React.createElement("span", {
46334
- className: "mandatory-asterisk"
46493
+ style: {
46494
+ color: "red"
46495
+ }
46335
46496
  }, "*")), /*#__PURE__*/React.createElement("div", {
46336
- className: "form-field w-fullwidth"
46497
+ className: "form-field",
46498
+ style: {
46499
+ width: "100%"
46500
+ }
46337
46501
  }, /*#__PURE__*/React.createElement(Controller, {
46338
46502
  control: control,
46339
46503
  name: "purposeDescription",
@@ -46346,7 +46510,10 @@ const CHBCitizenSecond = ({
46346
46510
  }
46347
46511
  },
46348
46512
  render: props => /*#__PURE__*/React.createElement(TextArea, {
46349
- className: "chb-form-field-margin",
46513
+ style: {
46514
+ marginBottom: 0,
46515
+ marginTop: 0
46516
+ },
46350
46517
  type: "textarea",
46351
46518
  value: props.value,
46352
46519
  onChange: e => {
@@ -46357,9 +46524,16 @@ const CHBCitizenSecond = ({
46357
46524
  }
46358
46525
  })
46359
46526
  }), errors.purposeDescription && /*#__PURE__*/React.createElement("p", {
46360
- className: "chb-error-text"
46527
+ style: {
46528
+ color: "red",
46529
+ marginTop: "4px",
46530
+ marginBottom: "0"
46531
+ }
46361
46532
  }, errors.purposeDescription.message))), !isCitizen && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
46362
- className: "label-field-pair chb-margin-top-20"
46533
+ className: "label-field-pair",
46534
+ style: {
46535
+ marginTop: "20px"
46536
+ }
46363
46537
  }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CHB_DISCOUNT_AMOUNT")}`), /*#__PURE__*/React.createElement(Controller, {
46364
46538
  control: control,
46365
46539
  name: "discountAmount",
@@ -46367,7 +46541,10 @@ const CHBCitizenSecond = ({
46367
46541
  var _errors$name;
46368
46542
  return /*#__PURE__*/React.createElement(TextInput, {
46369
46543
  type: "number",
46370
- className: "chb-form-field-margin w-fullwidth",
46544
+ style: {
46545
+ marginBottom: 0,
46546
+ width: "100%"
46547
+ },
46371
46548
  value: props.value,
46372
46549
  error: errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message,
46373
46550
  onChange: e => {
@@ -46380,7 +46557,10 @@ const CHBCitizenSecond = ({
46380
46557
  });
46381
46558
  }
46382
46559
  })), /*#__PURE__*/React.createElement("div", {
46383
- className: "label-field-pair chb-margin-top-20"
46560
+ className: "label-field-pair",
46561
+ style: {
46562
+ marginTop: "20px"
46563
+ }
46384
46564
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_DISCOUNT_REASON")), /*#__PURE__*/React.createElement(Controller, {
46385
46565
  control: control,
46386
46566
  name: "reason",
@@ -46388,7 +46568,10 @@ const CHBCitizenSecond = ({
46388
46568
  var _errors$name2;
46389
46569
  return /*#__PURE__*/React.createElement(TextInput, {
46390
46570
  type: "text",
46391
- className: "chb-form-field-margin w-fullwidth",
46571
+ style: {
46572
+ marginBottom: 0,
46573
+ width: "100%"
46574
+ },
46392
46575
  value: props.value,
46393
46576
  error: errors === null || errors === void 0 ? void 0 : (_errors$name2 = errors.name) === null || _errors$name2 === void 0 ? void 0 : _errors$name2.message,
46394
46577
  onChange: e => {
@@ -48255,7 +48438,11 @@ const CitizenConsent = ({
48255
48438
  content: modalStyles.modalContent
48256
48439
  }
48257
48440
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
48258
- className: "break-words text-justify font-roboto"
48441
+ style: {
48442
+ wordWrap: "break-word",
48443
+ textAlign: "justify",
48444
+ fontFamily: "Roboto, serif"
48445
+ }
48259
48446
  }, /*#__PURE__*/React.createElement("div", {
48260
48447
  dangerouslySetInnerHTML: {
48261
48448
  __html: selfdeclarationform
@@ -48910,7 +49097,10 @@ function CHBSummary({
48910
49097
  const renderLabel = (label, value) => /*#__PURE__*/React.createElement("div", {
48911
49098
  className: "bpa-summary-label-field-pair"
48912
49099
  }, /*#__PURE__*/React.createElement(CardLabel, {
48913
- className: "bpa-summary-bold-label swach-search-container"
49100
+ className: "bpa-summary-bold-label",
49101
+ style: {
49102
+ width: "auto"
49103
+ }
48914
49104
  }, label), /*#__PURE__*/React.createElement("div", null, value || "NA"));
48915
49105
  const slotlistRows = (formData === null || formData === void 0 ? void 0 : (_formData$venueDetail5 = formData.venueDetails) === null || _formData$venueDetail5 === void 0 ? void 0 : (_formData$venueDetail6 = _formData$venueDetail5[0]) === null || _formData$venueDetail6 === void 0 ? void 0 : (_formData$venueDetail7 = _formData$venueDetail6.bookingSlotDetails) === null || _formData$venueDetail7 === void 0 ? void 0 : _formData$venueDetail7.map(slot => {
48916
49106
  var _formData$venueDetail8, _formData$venueDetail9, _formData$venueDetail0, _formData$venueDetail1;
@@ -48939,14 +49129,25 @@ function CHBSummary({
48939
49129
  data: slotlistRows,
48940
49130
  columns: columns,
48941
49131
  getCellProps: cellInfo => ({
48942
- className: "chb-table-cell-summary"
49132
+ style: {
49133
+ minWidth: "100px",
49134
+ padding: "8px",
49135
+ fontSize: "clamp(0.9rem, 2vw, 1.1rem)",
49136
+ paddingLeft: "10px",
49137
+ wordBreak: "break-word"
49138
+ }
48943
49139
  }),
48944
49140
  isPaginationRequired: false,
48945
49141
  totalRecords: slotlistRows.length
48946
49142
  }), /*#__PURE__*/React.createElement(CardSubHeader, {
48947
49143
  className: "bpa-summary-heading"
48948
49144
  }, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", {
48949
- className: "bpa-summary-section chb-documents-container"
49145
+ className: "bpa-summary-section",
49146
+ style: {
49147
+ display: "flex",
49148
+ flexWrap: "wrap",
49149
+ gap: "16px"
49150
+ }
48950
49151
  }, (docs === null || docs === void 0 ? void 0 : docs.length) > 0 ? docs === null || docs === void 0 ? void 0 : docs.map((doc, index) => /*#__PURE__*/React.createElement("div", {
48951
49152
  key: index
48952
49153
  }, /*#__PURE__*/React.createElement(CHBDocument, {
@@ -49413,12 +49614,20 @@ const CHBResponseCitizen = props => {
49413
49614
  applicationNumber: ndcCode,
49414
49615
  info: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? "" : t(`CHB_APPROVAL_NUMBER`),
49415
49616
  successful: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? false : true,
49416
- className: "stepper",
49617
+ style: {
49618
+ padding: "10px"
49619
+ },
49417
49620
  headerStyles: {
49418
- className: "chb-banner-header"
49621
+ fontSize: "clamp(20px, 4vw, 32px)",
49622
+ wordBreak: "break-word"
49419
49623
  }
49420
49624
  }), /*#__PURE__*/React.createElement(ActionBar, {
49421
- className: "chb-action-bar-response"
49625
+ style: {
49626
+ display: "flex",
49627
+ justifyContent: "flex-end",
49628
+ alignItems: "baseline",
49629
+ gap: " 20px"
49630
+ }
49422
49631
  }, /*#__PURE__*/React.createElement(SubmitBar, {
49423
49632
  label: t("CORE_COMMON_GO_TO_HOME"),
49424
49633
  onSubmit: onSubmit