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

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, BackButton, 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, 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,6 +14391,8 @@ var accessibility = createCommonjsModule(function (module, exports) {
14391
14391
  });
14392
14392
  unwrapExports(accessibility);
14393
14393
 
14394
+ var _shallowEqual = getCjsExportFromNamespace(index_esm);
14395
+
14394
14396
  var Calendar_1 = createCommonjsModule(function (module, exports) {
14395
14397
 
14396
14398
  function _typeof(obj) {
@@ -15045,7 +15047,7 @@ var Calendar_1 = createCommonjsModule(function (module, exports) {
15045
15047
  monthNames: this.getMonthNames()
15046
15048
  });
15047
15049
  }
15048
- if (!(0, index_esm.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15050
+ if (!(0, _shallowEqual.shallowEqualObjects)(prevProps.scroll, this.props.scroll)) {
15049
15051
  this.setState({
15050
15052
  scrollArea: this.calcScrollArea(this.props)
15051
15053
  });
@@ -17673,6 +17675,7 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
17673
17675
  const formats = (downloadLink === null || downloadLink === void 0 ? void 0 : (_downloadLink$split = downloadLink.split(",")) === null || _downloadLink$split === void 0 ? void 0 : _downloadLink$split.filter(Boolean)) || [];
17674
17676
  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]) || "";
17675
17677
  };
17678
+ const pattern = /\[#\?.*?\*\*\]/;
17676
17679
  const timelineRows = timeline.map((item, index) => {
17677
17680
  var _item$auditDetails, _item$auditDetails2, _item$assigner, _item$assigner2, _item$assigner3, _item$wfComment;
17678
17681
  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";
@@ -17682,7 +17685,8 @@ const getTimelineAcknowledgementData = (workflowDetails, tenantInfo, pdfFiles =
17682
17685
  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";
17683
17686
  const action = (item === null || item === void 0 ? void 0 : item.performedAction) || "N/A";
17684
17687
  const status = (item === null || item === void 0 ? void 0 : item.status) || (item === null || item === void 0 ? void 0 : item.state) || "N/A";
17685
- const comment = (item === null || item === void 0 ? void 0 : (_item$wfComment = item.wfComment) === null || _item$wfComment === void 0 ? void 0 : _item$wfComment[0]) || "-";
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;
17686
17690
  const documents = (item === null || item === void 0 ? void 0 : item.wfDocuments) || [];
17687
17691
  const sla = (item === null || item === void 0 ? void 0 : item.sla) || "N/A";
17688
17692
  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(", ") : "";
@@ -18754,46 +18758,11 @@ const CHBAcknowledgement = ({
18754
18758
  const Loader = ({
18755
18759
  page: _page = false
18756
18760
  }) => {
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
- };
18787
18761
  return /*#__PURE__*/React.createElement("div", {
18788
- style: _page ? pageStyle : moduleStyle
18762
+ className: `chb-loader-container ${_page ? "chb-page-loader-overlay" : "chb-module-loader-container"}`
18789
18763
  }, /*#__PURE__*/React.createElement("div", {
18790
- style: spinnerStyle
18791
- }), /*#__PURE__*/React.createElement("style", null, `
18792
- @keyframes spin {
18793
- 0% { transform: rotate(0deg); }
18794
- 100% { transform: rotate(360deg); }
18795
- }
18796
- `));
18764
+ className: "chb-spinner"
18765
+ }));
18797
18766
  };
18798
18767
  Loader.propTypes = {
18799
18768
  page: propTypes.bool
@@ -18839,7 +18808,7 @@ const ReasonModal = ({
18839
18808
  } = useForm();
18840
18809
  const onSubmit = data => {
18841
18810
  console.log("data===", data);
18842
- cancelModal();
18811
+ cancelModal(data);
18843
18812
  };
18844
18813
  return /*#__PURE__*/React.createElement("form", {
18845
18814
  onSubmit: handleSubmit(onSubmit)
@@ -18862,14 +18831,9 @@ const ReasonModal = ({
18862
18831
  padding: " 0 30px"
18863
18832
  }
18864
18833
  }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CHB_DISCOUNT_REASON")}`, " ", /*#__PURE__*/React.createElement("span", {
18865
- style: {
18866
- color: "red"
18867
- }
18834
+ className: "mandatory-asterisk"
18868
18835
  }, "*")), /*#__PURE__*/React.createElement("div", {
18869
- className: "form-field",
18870
- style: {
18871
- width: "100%"
18872
- }
18836
+ className: "form-field w-fullwidth"
18873
18837
  }, /*#__PURE__*/React.createElement(Controller, {
18874
18838
  control: control,
18875
18839
  name: "reason",
@@ -18895,11 +18859,7 @@ const ReasonModal = ({
18895
18859
  });
18896
18860
  }
18897
18861
  }), (errors === null || errors === void 0 ? void 0 : errors.reason) && /*#__PURE__*/React.createElement("p", {
18898
- style: {
18899
- color: "red",
18900
- marginTop: "4px",
18901
- marginBottom: "0"
18902
- }
18862
+ className: "chb-error-text"
18903
18863
  }, errors.reason.message))), /*#__PURE__*/React.createElement(ActionBar, {
18904
18864
  style: {
18905
18865
  position: "relative"
@@ -18947,14 +18907,15 @@ const ChbApplication = ({
18947
18907
  const handleCancel = async () => {
18948
18908
  setShowModal(true);
18949
18909
  };
18950
- const submitCancel = async () => {
18910
+ const submitCancel = async data => {
18951
18911
  setLoader(true);
18952
18912
  setShowModal(false);
18953
18913
  const finalPayload = {
18954
18914
  hallsBookingApplication: {
18955
18915
  ...application,
18956
18916
  workflow: {
18957
- action: "CANCEL"
18917
+ action: "CANCEL",
18918
+ comment: data === null || data === void 0 ? void 0 : data.reason
18958
18919
  }
18959
18920
  }
18960
18921
  };
@@ -42045,7 +42006,9 @@ function NewApplicationTimeline({
42045
42006
  workflowDetails,
42046
42007
  t,
42047
42008
  tenantId = Digit.ULBService.getCurrentTenantId(),
42048
- timeObj
42009
+ timeObj,
42010
+ empUserName = null,
42011
+ handleSetEmpDesignation = () => {}
42049
42012
  }) {
42050
42013
  var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _employeeData$data, _employeeData$data$Em;
42051
42014
  const {
@@ -42120,6 +42083,9 @@ function NewApplicationTimeline({
42120
42083
  const translationKey = `COMMON_MASTERS_DESIGNATION_${assignment === null || assignment === void 0 ? void 0 : assignment.designation}`;
42121
42084
  deptMap[emp === null || emp === void 0 ? void 0 : emp.code] = translationKey;
42122
42085
  });
42086
+ if (employeeData && empUserName) {
42087
+ handleSetEmpDesignation(t(deptMap[empUserName]));
42088
+ }
42123
42089
  if (isLoading) return /*#__PURE__*/React.createElement(Loader$1, null);
42124
42090
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
42125
42091
  className: "custom-timeline-container"
@@ -42187,13 +42153,13 @@ function NewApplicationTimeline({
42187
42153
  className: "custom-officer-info"
42188
42154
  }, /*#__PURE__*/React.createElement("div", {
42189
42155
  className: "custom-officer-name"
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", {
42156
+ }, (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", {
42157
+ className: "custom-officer-name"
42158
+ }, "- ", 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", {
42191
42159
  className: "custom-officer-email"
42192
42160
  }, /*#__PURE__*/React.createElement("span", {
42193
42161
  className: "custom-email-label"
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", {
42162
+ }, 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", {
42197
42163
  className: "custom-card-column custom-card-column-mid"
42198
42164
  }, (item === null || item === void 0 ? void 0 : item.sla) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("h3", {
42199
42165
  className: "custom-action-title"
@@ -42215,9 +42181,13 @@ function NewApplicationTimeline({
42215
42181
  className: "custom-comments-title"
42216
42182
  }, t("Officer Comments")), /*#__PURE__*/React.createElement("div", {
42217
42183
  className: "custom-comment-text"
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", {
42184
+ }, item === null || item === void 0 ? void 0 : (_item$wfComment3 = item.wfComment) === null || _item$wfComment3 === void 0 ? void 0 : _item$wfComment3.map((comment, idx) => {
42185
+ const pattern = /\[#\?.*?\*\*\]/;
42186
+ const truncatedComment = typeof comment === "string" ? comment === null || comment === void 0 ? void 0 : comment.split(pattern)[0] : comment;
42187
+ return /*#__PURE__*/React.createElement("p", {
42188
+ key: idx
42189
+ }, truncatedComment);
42190
+ }))), (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", {
42221
42191
  className: "custom-assigned-to-footer"
42222
42192
  }, /*#__PURE__*/React.createElement("h3", {
42223
42193
  className: "custom-comments-title"
@@ -42225,9 +42195,9 @@ function NewApplicationTimeline({
42225
42195
  className: "custom-officer-info"
42226
42196
  }, /*#__PURE__*/React.createElement("div", {
42227
42197
  className: "custom-officer-name"
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", {
42198
+ }, (_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", {
42229
42199
  className: "custom-officer-email"
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", {
42200
+ }, "- ", 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", {
42231
42201
  className: "custom-comments-section-no-border"
42232
42202
  }, /*#__PURE__*/React.createElement("h4", {
42233
42203
  className: "custom-comments-title"
@@ -42573,12 +42543,7 @@ const CHBApplicationDetails = () => {
42573
42543
  data: slotlistRows,
42574
42544
  columns: columns,
42575
42545
  getCellProps: cellInfo => ({
42576
- style: {
42577
- minWidth: "150px",
42578
- padding: "10px",
42579
- fontSize: "16px",
42580
- paddingLeft: "20px"
42581
- }
42546
+ className: "chb-table-cell-details"
42582
42547
  }),
42583
42548
  isPaginationRequired: false,
42584
42549
  totalRecords: slotlistRows.length
@@ -42587,12 +42552,7 @@ const CHBApplicationDetails = () => {
42587
42552
  }, /*#__PURE__*/React.createElement("div", {
42588
42553
  className: "document-section-header"
42589
42554
  }, t("CS_COMMON_DOCUMENTS")), ((_docs = docs) === null || _docs === void 0 ? void 0 : _docs.length) > 0 ? /*#__PURE__*/React.createElement("div", {
42590
- style: {
42591
- display: "flex",
42592
- flexWrap: "wrap",
42593
- gap: "16px",
42594
- marginTop: "16px"
42595
- }
42555
+ className: "chb-documents-flex"
42596
42556
  }, (_docs2 = docs) === null || _docs2 === void 0 ? void 0 : _docs2.map((doc, index) => /*#__PURE__*/React.createElement(React.Fragment, {
42597
42557
  key: index
42598
42558
  }, /*#__PURE__*/React.createElement(CHBDocument, {
@@ -42786,18 +42746,30 @@ const useInboxTableConfig = ({
42786
42746
  }, value);
42787
42747
  const tableColumnConfig = useMemo(() => {
42788
42748
  return [{
42749
+ Header: t("CHB_APPLICANT_NAME"),
42750
+ Cell: ({
42751
+ row
42752
+ }) => {
42753
+ var _row$original;
42754
+ console.log("row", row);
42755
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
42756
+ className: "link"
42757
+ }, row === null || row === void 0 ? void 0 : (_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.owner));
42758
+ },
42759
+ disableSortBy: true
42760
+ }, {
42789
42761
  Header: t("NOC_HOME_SEARCH_RESULTS_APP_NO_LABEL"),
42790
42762
  accessor: "uuid",
42791
42763
  disableSortBy: true,
42792
42764
  Cell: ({
42793
42765
  row
42794
42766
  }) => {
42795
- var _row$original, _row$original2;
42767
+ var _row$original2, _row$original3;
42796
42768
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
42797
- to: `${parentRoute}/applicationsearch/application-details/${(_row$original = row.original) === null || _row$original === void 0 ? void 0 : _row$original.applicationId}`
42769
+ to: `${parentRoute}/applicationsearch/application-details/${(_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationId}`
42798
42770
  }, /*#__PURE__*/React.createElement("span", {
42799
42771
  className: "link"
42800
- }, (_row$original2 = row.original) === null || _row$original2 === void 0 ? void 0 : _row$original2.applicationId)));
42772
+ }, (_row$original3 = row.original) === null || _row$original3 === void 0 ? void 0 : _row$original3.applicationId)));
42801
42773
  }
42802
42774
  }, {
42803
42775
  Header: t("TL_COMMON_TABLE_COL_APP_DATE"),
@@ -42805,8 +42777,8 @@ const useInboxTableConfig = ({
42805
42777
  Cell: ({
42806
42778
  row
42807
42779
  }) => {
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")) : "";
42780
+ var _row$original4, _row$original5;
42781
+ 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")) : "";
42810
42782
  }
42811
42783
  }, {
42812
42784
  Header: t("PT_COMMON_TABLE_COL_STATUS_LABEL"),
@@ -42814,8 +42786,8 @@ const useInboxTableConfig = ({
42814
42786
  Cell: ({
42815
42787
  row
42816
42788
  }) => {
42817
- var _row$original5;
42818
- return t((_row$original5 = row.original) === null || _row$original5 === void 0 ? void 0 : _row$original5.status);
42789
+ var _row$original6;
42790
+ return t((_row$original6 = row.original) === null || _row$original6 === void 0 ? void 0 : _row$original6.status);
42819
42791
  }
42820
42792
  }];
42821
42793
  });
@@ -43055,6 +43027,7 @@ const Inbox = ({
43055
43027
  const [totalCount, setTotalCount] = useState(0);
43056
43028
  useEffect(() => {
43057
43029
  if (data) {
43030
+ console.log("yes data", data);
43058
43031
  setStatuses((data === null || data === void 0 ? void 0 : data.statuses) || []);
43059
43032
  setTable((data === null || data === void 0 ? void 0 : data.table) || []);
43060
43033
  setTotalCount((data === null || data === void 0 ? void 0 : data.totalCount) || 0);
@@ -43382,35 +43355,16 @@ const CHBSearchApplication = ({
43382
43355
  onSubmit: toggleMenu,
43383
43356
  disabled: (application === null || application === void 0 ? void 0 : application.bookingStatus) === "CANCELLED" || (application === null || application === void 0 ? void 0 : application.bookingStatus) === "EXPIRED"
43384
43357
  }), isMenuOpen && /*#__PURE__*/React.createElement("div", {
43385
- style: {
43386
- position: 'absolute',
43387
- backgroundColor: 'white',
43388
- border: '1px solid #ccc',
43389
- borderRadius: '4px',
43390
- padding: '8px',
43391
- zIndex: 1000
43392
- }
43358
+ className: "chb-dropdown-menu"
43393
43359
  }, (application === null || application === void 0 ? void 0 : application.bookingStatus) === "BOOKED" && /*#__PURE__*/React.createElement("div", {
43394
43360
  onClick: handleCancel,
43395
- style: {
43396
- display: 'block',
43397
- padding: '8px',
43398
- textDecoration: 'none',
43399
- color: 'black',
43400
- cursor: 'pointer'
43401
- }
43361
+ className: "chb-menu-item"
43402
43362
  }, t("CHB_CANCEL")), (application === null || application === void 0 ? void 0 : application.bookingStatus) !== "BOOKED" && /*#__PURE__*/React.createElement("div", {
43403
43363
  onClick: () => {
43404
43364
  var _row$original6;
43405
43365
  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}`);
43406
43366
  },
43407
- style: {
43408
- display: 'block',
43409
- padding: '8px',
43410
- textDecoration: 'none',
43411
- color: 'black',
43412
- cursor: 'pointer'
43413
- }
43367
+ className: "chb-menu-item"
43414
43368
  }, t("CHB_COLLECT_PAYMENT")))));
43415
43369
  }
43416
43370
  }], []);
@@ -43447,9 +43401,7 @@ const CHBSearchApplication = ({
43447
43401
  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, {
43448
43402
  className: "card-search-heading"
43449
43403
  }, /*#__PURE__*/React.createElement("span", {
43450
- style: {
43451
- color: "#505A5F"
43452
- }
43404
+ className: "cell-text"
43453
43405
  }, t("Provide at least one parameter to search for an application"))), /*#__PURE__*/React.createElement(SearchForm, {
43454
43406
  onSubmit: onSubmit,
43455
43407
  handleSubmit: handleSubmit
@@ -43505,7 +43457,7 @@ const CHBSearchApplication = ({
43505
43457
  date: props.value,
43506
43458
  disabled: false,
43507
43459
  onChange: props.onChange,
43508
- max: new Date().toISOString().split('T')[0]
43460
+ max: new Date().toISOString().split("T")[0]
43509
43461
  }),
43510
43462
  name: "fromDate",
43511
43463
  control: control
@@ -43523,9 +43475,7 @@ const CHBSearchApplication = ({
43523
43475
  label: t("ES_COMMON_SEARCH"),
43524
43476
  submit: true
43525
43477
  }), /*#__PURE__*/React.createElement("p", {
43526
- style: {
43527
- marginTop: "10px"
43528
- },
43478
+ className: "link-button-margin",
43529
43479
  onClick: () => {
43530
43480
  reset({
43531
43481
  bookingNo: "",
@@ -43543,14 +43493,10 @@ const CHBSearchApplication = ({
43543
43493
  previousPage();
43544
43494
  }
43545
43495
  }, t(`ES_COMMON_CLEAR_ALL`)))), !isLoading && data !== null && data !== void 0 && data.display ? /*#__PURE__*/React.createElement(Card, {
43546
- style: {
43547
- marginTop: 20
43548
- }
43496
+ className: "chb-margin-top-20"
43549
43497
  }, t(data.display).split("\\n").map((text, index) => /*#__PURE__*/React.createElement("p", {
43550
43498
  key: index,
43551
- style: {
43552
- textAlign: "center"
43553
- }
43499
+ className: "text-align-center"
43554
43500
  }, text))) : !isLoading && data !== "" ? /*#__PURE__*/React.createElement(Table, {
43555
43501
  t: t,
43556
43502
  data: data,
@@ -43559,10 +43505,9 @@ const CHBSearchApplication = ({
43559
43505
  getCellProps: cellInfo => {
43560
43506
  return {
43561
43507
  style: {
43562
- minWidth: cellInfo.column.Header === t("CHB_INBOX_APPLICATION_NO") ? "240px" : "",
43563
- padding: "20px 18px",
43564
- fontSize: "16px"
43565
- }
43508
+ minWidth: cellInfo.column.Header === t("CHB_INBOX_APPLICATION_NO") ? "240px" : ""
43509
+ },
43510
+ className: "ads-default-cell"
43566
43511
  };
43567
43512
  },
43568
43513
  onPageSizeChange: onPageSizeChange,
@@ -43667,6 +43612,31 @@ const SearchApp = ({
43667
43612
  }));
43668
43613
  };
43669
43614
 
43615
+ const CHBBreadCrumbs$1 = ({
43616
+ location,
43617
+ t
43618
+ }) => {
43619
+ const crumbs = [{
43620
+ path: "/digit-ui/employee",
43621
+ content: t("ES_COMMON_HOME"),
43622
+ show: true
43623
+ }, {
43624
+ path: "/digit-ui/employee/chb/inbox",
43625
+ content: t("CS_COMMON_INBOX"),
43626
+ show: location.pathname.includes("/chb/inbox") ? true : false
43627
+ }, {
43628
+ path: "/digit-ui/employee/chb/bookHall",
43629
+ content: "Book Hall",
43630
+ show: location.pathname.includes("/chb/bookHall") ? true : false
43631
+ }, {
43632
+ path: "/digit-ui/employee/chb/applicationsearch/application-details",
43633
+ content: "Application Overview",
43634
+ show: location.pathname.includes("/chb/applicationsearch/application-details") ? true : false
43635
+ }];
43636
+ return /*#__PURE__*/React.createElement(BreadCrumb, {
43637
+ crumbs: crumbs
43638
+ });
43639
+ };
43670
43640
  const EmployeeApp = ({
43671
43641
  path,
43672
43642
  url,
@@ -43697,20 +43667,15 @@ const EmployeeApp = ({
43697
43667
  const CHBResponseCitizen = Digit.ComponentRegistryService.getComponent("CHBResponseCitizen");
43698
43668
  const isRes = window.location.href.includes("chb/response");
43699
43669
  const isNewRegistration = window.location.href.includes("searchhall") || window.location.href.includes("modify-application") || window.location.href.includes("chb/application-details");
43700
- return /*#__PURE__*/React.createElement(Switch, null, /*#__PURE__*/React.createElement(AppContainer, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
43670
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
43701
43671
  className: "ground-container"
43702
43672
  }, !isRes ? /*#__PURE__*/React.createElement("div", {
43703
- style: isNewRegistration ? {
43704
- marginLeft: "12px",
43705
- display: "flex",
43706
- alignItems: "center"
43707
- } : {
43708
- marginLeft: "-4px",
43709
- display: "flex",
43710
- alignItems: "center"
43673
+ style: {
43674
+ marginLeft: "10px"
43711
43675
  }
43712
- }, /*#__PURE__*/React.createElement(BackButton, {
43713
- location: location
43676
+ }, /*#__PURE__*/React.createElement(CHBBreadCrumbs$1, {
43677
+ location: location,
43678
+ t: t
43714
43679
  })) : null, /*#__PURE__*/React.createElement(PrivateRoute, {
43715
43680
  exact: true,
43716
43681
  path: `${path}/`,
@@ -43760,7 +43725,7 @@ const EmployeeApp = ({
43760
43725
  component: props => /*#__PURE__*/React.createElement(SearchApp, Object.assign({}, props, {
43761
43726
  parentRoute: path
43762
43727
  }))
43763
- })))));
43728
+ })));
43764
43729
  };
43765
43730
 
43766
43731
  const CHBIcon = ({
@@ -44465,7 +44430,7 @@ const CHBApplicationDetails$1 = () => {
44465
44430
  let user = Digit.UserService.getUser();
44466
44431
  const menuRef = useRef();
44467
44432
  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");
44468
- console.log('isCemp', isCemp);
44433
+ console.log("isCemp", isCemp);
44469
44434
  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);
44470
44435
  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 => {
44471
44436
  return (userRoles === null || userRoles === void 0 ? void 0 : userRoles.some(role => {
@@ -44636,7 +44601,7 @@ const CHBApplicationDetails$1 = () => {
44636
44601
  payments,
44637
44602
  ...params
44638
44603
  }) {
44639
- console.log('payments', payments);
44604
+ console.log("payments", payments);
44640
44605
  try {
44641
44606
  var _data$hallsBookingApp2, _data$hallsBookingApp3;
44642
44607
  setLoading(true);
@@ -44652,7 +44617,7 @@ const CHBApplicationDetails$1 = () => {
44652
44617
  };
44653
44618
  })
44654
44619
  };
44655
- console.log('application', application);
44620
+ console.log("application", application);
44656
44621
  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;
44657
44622
  if (!fileStoreId) {
44658
44623
  const response = await Digit.PaymentService.generatePdf(tenantId, {
@@ -44702,7 +44667,7 @@ const CHBApplicationDetails$1 = () => {
44702
44667
  })
44703
44668
  };
44704
44669
  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;
44705
- console.log('fileStoreId bef create', fileStoreId);
44670
+ console.log("fileStoreId bef create", fileStoreId);
44706
44671
  if (!fileStoreId) {
44707
44672
  const response = await Digit.PaymentService.generatePdf(tenantId, {
44708
44673
  Payments: [{
@@ -46132,14 +46097,9 @@ const CHBCitizenSecond = ({
46132
46097
  }, /*#__PURE__*/React.createElement("div", {
46133
46098
  className: "label-field-pair"
46134
46099
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_HALL_NAME"), " ", /*#__PURE__*/React.createElement("span", {
46135
- style: {
46136
- color: "red"
46137
- }
46100
+ className: "mandatory-asterisk"
46138
46101
  }, "*")), /*#__PURE__*/React.createElement("div", {
46139
- className: "form-field",
46140
- style: {
46141
- width: "100%"
46142
- }
46102
+ className: "form-field w-fullwidth"
46143
46103
  }, /*#__PURE__*/React.createElement(Controller, {
46144
46104
  control: control,
46145
46105
  name: "siteId",
@@ -46149,10 +46109,7 @@ const CHBCitizenSecond = ({
46149
46109
  render: props => {
46150
46110
  var _CHBLocations$CHB;
46151
46111
  return /*#__PURE__*/React.createElement(Dropdown, {
46152
- style: {
46153
- marginBottom: 0
46154
- },
46155
- className: "form-field",
46112
+ className: "form-field chb-form-field-margin",
46156
46113
  select: e => {
46157
46114
  props.onChange(e);
46158
46115
  fiterHalls(e);
@@ -46168,25 +46125,13 @@ const CHBCitizenSecond = ({
46168
46125
  });
46169
46126
  }
46170
46127
  }), errors.siteId && /*#__PURE__*/React.createElement("p", {
46171
- style: {
46172
- color: "red",
46173
- marginTop: "4px",
46174
- marginBottom: "0"
46175
- }
46128
+ className: "chb-error-text"
46176
46129
  }, errors.siteId.message))), /*#__PURE__*/React.createElement("div", {
46177
- className: "label-field-pair",
46178
- style: {
46179
- marginTop: "20px"
46180
- }
46130
+ className: "label-field-pair chb-margin-top-20"
46181
46131
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_DATE"), " ", /*#__PURE__*/React.createElement("span", {
46182
- style: {
46183
- color: "red"
46184
- }
46132
+ className: "mandatory-asterisk"
46185
46133
  }, "*")), /*#__PURE__*/React.createElement("div", {
46186
- className: "form-field",
46187
- style: {
46188
- width: "100%"
46189
- }
46134
+ className: "form-field w-fullwidth"
46190
46135
  }, /*#__PURE__*/React.createElement(Controller, {
46191
46136
  control: control,
46192
46137
  name: "startDate",
@@ -46194,13 +46139,10 @@ const CHBCitizenSecond = ({
46194
46139
  required: t("START_DATE_REQ")
46195
46140
  },
46196
46141
  render: props => /*#__PURE__*/React.createElement(TextInput, {
46197
- style: {
46198
- marginBottom: 0
46199
- },
46200
46142
  type: "date",
46201
- className: "form-field",
46143
+ className: "form-field chb-form-field-margin",
46202
46144
  value: props.value,
46203
- min: new Date(Date.now() + 24 * 60 * 60 * 1000).toISOString().split("T")[0],
46145
+ min: new Date().toISOString().split("T")[0],
46204
46146
  onChange: e => {
46205
46147
  props.onChange(e.target.value);
46206
46148
  setValue("endDate", "");
@@ -46210,25 +46152,13 @@ const CHBCitizenSecond = ({
46210
46152
  }
46211
46153
  })
46212
46154
  }), errors.startDate && /*#__PURE__*/React.createElement("p", {
46213
- style: {
46214
- color: "red",
46215
- marginTop: "4px",
46216
- marginBottom: "0"
46217
- }
46155
+ className: "chb-error-text"
46218
46156
  }, errors.startDate.message))), /*#__PURE__*/React.createElement("div", {
46219
- className: "label-field-pair",
46220
- style: {
46221
- marginTop: "20px"
46222
- }
46157
+ className: "label-field-pair chb-margin-top-20"
46223
46158
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("SELECT_END_DATE"), " ", /*#__PURE__*/React.createElement("span", {
46224
- style: {
46225
- color: "red"
46226
- }
46159
+ className: "mandatory-asterisk"
46227
46160
  }, "*")), /*#__PURE__*/React.createElement("div", {
46228
- className: "form-field",
46229
- style: {
46230
- width: "100%"
46231
- }
46161
+ className: "form-field w-fullwidth"
46232
46162
  }, /*#__PURE__*/React.createElement(Controller, {
46233
46163
  control: control,
46234
46164
  name: "endDate",
@@ -46238,19 +46168,19 @@ const CHBCitizenSecond = ({
46238
46168
  if (!value || !startDate) return true;
46239
46169
  const start = new Date(startDate);
46240
46170
  const end = new Date(value);
46241
- const daysDiff = Math.ceil((end - start) / (1000 * 60 * 60 * 24));
46242
- if (daysDiff > 5) {
46171
+ const diffDays = Math.floor((end - start) / (1000 * 60 * 60 * 24));
46172
+ if (diffDays < 0) {
46173
+ return t("END_DATE_BEFORE_START");
46174
+ }
46175
+ if (diffDays > 5) {
46243
46176
  return t("END_DATE_MAX_5_DAYS");
46244
46177
  }
46245
46178
  return true;
46246
46179
  }
46247
46180
  },
46248
46181
  render: props => /*#__PURE__*/React.createElement(TextInput, {
46249
- style: {
46250
- marginBottom: 0
46251
- },
46252
46182
  type: "date",
46253
- className: "form-field",
46183
+ className: "form-field chb-form-field-margin",
46254
46184
  value: props.value,
46255
46185
  min: startDate || new Date().toISOString().split("T")[0],
46256
46186
  onChange: e => {
@@ -46263,25 +46193,13 @@ const CHBCitizenSecond = ({
46263
46193
  disabled: !startDate
46264
46194
  })
46265
46195
  }), errors.endDate && /*#__PURE__*/React.createElement("p", {
46266
- style: {
46267
- color: "red",
46268
- marginTop: "4px",
46269
- marginBottom: "0"
46270
- }
46196
+ className: "chb-error-text"
46271
46197
  }, errors.endDate.message))), /*#__PURE__*/React.createElement("div", {
46272
- className: "label-field-pair",
46273
- style: {
46274
- marginTop: "20px"
46275
- }
46198
+ className: "label-field-pair chb-margin-top-20"
46276
46199
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("HALL_CODE"), " ", /*#__PURE__*/React.createElement("span", {
46277
- style: {
46278
- color: "red"
46279
- }
46200
+ className: "mandatory-asterisk"
46280
46201
  }, "*")), /*#__PURE__*/React.createElement("div", {
46281
- className: "form-field",
46282
- style: {
46283
- width: "100%"
46284
- }
46202
+ className: "form-field w-fullwidth"
46285
46203
  }, /*#__PURE__*/React.createElement(Controller, {
46286
46204
  control: control,
46287
46205
  name: "hallCode",
@@ -46289,10 +46207,7 @@ const CHBCitizenSecond = ({
46289
46207
  required: t("HALL_CODE_REQ")
46290
46208
  },
46291
46209
  render: props => /*#__PURE__*/React.createElement(Dropdown, {
46292
- style: {
46293
- marginBottom: 0
46294
- },
46295
- className: "form-field",
46210
+ className: "form-field chb-form-field-margin",
46296
46211
  select: e => {
46297
46212
  props.onChange(e);
46298
46213
  slotsSearch(e);
@@ -46303,26 +46218,13 @@ const CHBCitizenSecond = ({
46303
46218
  disable: errors.endDate || errors.startDate
46304
46219
  })
46305
46220
  }), errors.hallCode && /*#__PURE__*/React.createElement("p", {
46306
- style: {
46307
- color: "red",
46308
- marginTop: "4px",
46309
- marginBottom: "0"
46310
- }
46221
+ className: "chb-error-text"
46311
46222
  }, errors.hallCode.message))), (getSlots === null || getSlots === void 0 ? void 0 : getSlots.length) > 0 && /*#__PURE__*/React.createElement("div", {
46312
- className: "label-field-pair",
46313
- style: {
46314
- marginTop: "20px",
46315
- marginBottom: "20px"
46316
- }
46223
+ className: "label-field-pair chb-margin-top-20 chb-margin-bottom-20"
46317
46224
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("AVAILABLE_SLOTS"), " ", /*#__PURE__*/React.createElement("span", {
46318
- style: {
46319
- color: "red"
46320
- }
46225
+ className: "mandatory-asterisk"
46321
46226
  }, "*")), /*#__PURE__*/React.createElement("div", {
46322
- className: "form-field",
46323
- style: {
46324
- width: "100%"
46325
- }
46227
+ className: "form-field w-fullwidth"
46326
46228
  }, /*#__PURE__*/React.createElement(Controller, {
46327
46229
  control: control,
46328
46230
  name: "slots",
@@ -46335,12 +46237,7 @@ const CHBCitizenSecond = ({
46335
46237
  }
46336
46238
  },
46337
46239
  render: field => /*#__PURE__*/React.createElement("div", {
46338
- style: {
46339
- display: "grid",
46340
- gridTemplateColumns: "repeat(auto-fit, minmax(250px, 1fr))",
46341
- gap: "16px",
46342
- width: "100%"
46343
- }
46240
+ className: "chb-slot-grid"
46344
46241
  }, getSlots === null || getSlots === void 0 ? void 0 : getSlots.map((slot, idx) => {
46345
46242
  var _field$value, _slot$slotStaus;
46346
46243
  const slotKey = `${slot.hallCode}-${slot.bookingDate}-${slot.fromTime || ""}-${slot.toTime || ""}`;
@@ -46348,16 +46245,7 @@ const CHBCitizenSecond = ({
46348
46245
  const isAvailable = ((_slot$slotStaus = slot.slotStaus) === null || _slot$slotStaus === void 0 ? void 0 : _slot$slotStaus.toLowerCase()) === "available";
46349
46246
  return /*#__PURE__*/React.createElement("label", {
46350
46247
  key: slotKey,
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
- }
46248
+ className: `chb-slot-card ${!isAvailable ? "chb-slot-card--unavailable" : ""}`
46361
46249
  }, /*#__PURE__*/React.createElement("input", {
46362
46250
  type: "checkbox",
46363
46251
  checked: isChecked,
@@ -46384,40 +46272,23 @@ const CHBCitizenSecond = ({
46384
46272
  }
46385
46273
  }
46386
46274
  }), /*#__PURE__*/React.createElement("span", {
46387
- style: {
46388
- marginLeft: "10px"
46389
- }
46275
+ className: "chb-slot-text"
46390
46276
  }, slot.bookingDate, " (", slot.hallCode, ") \u2013", " ", /*#__PURE__*/React.createElement("span", {
46391
- style: {
46392
- color: slot.slotStaus === "AVAILABLE" ? "green" : "red",
46393
- fontWeight: "bold"
46394
- }
46277
+ className: `chb-slot-status ${slot.slotStaus !== "AVAILABLE" ? "chb-slot-status--unavailable" : ""}`
46395
46278
  }, slot.slotStaus ? slot.slotStaus.charAt(0).toUpperCase() + slot.slotStaus.slice(1).toLowerCase() : "")));
46396
46279
  }))
46397
46280
  }), errors.slots && /*#__PURE__*/React.createElement("p", {
46398
- style: {
46399
- color: "red",
46400
- marginTop: "4px",
46401
- marginBottom: "0"
46402
- }
46281
+ className: "chb-error-text"
46403
46282
  }, errors.slots.message))), /*#__PURE__*/React.createElement("div", {
46404
46283
  style: {
46405
46284
  display: showInfo ? "block" : "none"
46406
46285
  }
46407
46286
  }, /*#__PURE__*/React.createElement("div", {
46408
- className: "label-field-pair",
46409
- style: {
46410
- marginTop: "20px"
46411
- }
46287
+ className: "label-field-pair chb-margin-top-20"
46412
46288
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_PURPOSE"), " ", /*#__PURE__*/React.createElement("span", {
46413
- style: {
46414
- color: "red"
46415
- }
46289
+ className: "mandatory-asterisk"
46416
46290
  }, "*")), /*#__PURE__*/React.createElement("div", {
46417
- className: "form-field",
46418
- style: {
46419
- width: "100%"
46420
- }
46291
+ className: "form-field w-fullwidth"
46421
46292
  }, /*#__PURE__*/React.createElement(Controller, {
46422
46293
  control: control,
46423
46294
  name: "purpose",
@@ -46428,10 +46299,7 @@ const CHBCitizenSecond = ({
46428
46299
  render: props => {
46429
46300
  var _CHBPurpose$CHB;
46430
46301
  return /*#__PURE__*/React.createElement(Dropdown, {
46431
- style: {
46432
- marginBottom: 0
46433
- },
46434
- className: "form-field",
46302
+ className: "form-field chb-form-field-margin",
46435
46303
  select: props.onChange,
46436
46304
  selected: props.value,
46437
46305
  option: CHBPurpose === null || CHBPurpose === void 0 ? void 0 : (_CHBPurpose$CHB = CHBPurpose.CHB) === null || _CHBPurpose$CHB === void 0 ? void 0 : _CHBPurpose$CHB.Purpose,
@@ -46439,25 +46307,13 @@ const CHBCitizenSecond = ({
46439
46307
  });
46440
46308
  }
46441
46309
  }), errors.purpose && /*#__PURE__*/React.createElement("p", {
46442
- style: {
46443
- color: "red",
46444
- marginTop: "4px",
46445
- marginBottom: "0"
46446
- }
46310
+ className: "chb-error-text"
46447
46311
  }, errors.purpose.message))), /*#__PURE__*/React.createElement("div", {
46448
- className: "label-field-pair",
46449
- style: {
46450
- marginTop: "20px"
46451
- }
46312
+ className: "label-field-pair chb-margin-top-20"
46452
46313
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_SPECIAL_CATEGORY"), " ", /*#__PURE__*/React.createElement("span", {
46453
- style: {
46454
- color: "red"
46455
- }
46314
+ className: "mandatory-asterisk"
46456
46315
  }, "*")), /*#__PURE__*/React.createElement("div", {
46457
- className: "form-field",
46458
- style: {
46459
- width: "100%"
46460
- }
46316
+ className: "form-field w-fullwidth"
46461
46317
  }, /*#__PURE__*/React.createElement(Controller, {
46462
46318
  control: control,
46463
46319
  name: "specialCategory",
@@ -46468,10 +46324,7 @@ const CHBCitizenSecond = ({
46468
46324
  render: props => {
46469
46325
  var _SpecialCategory$CHB;
46470
46326
  return /*#__PURE__*/React.createElement(Dropdown, {
46471
- style: {
46472
- marginBottom: 0
46473
- },
46474
- className: "form-field",
46327
+ className: "form-field chb-form-field-margin",
46475
46328
  select: props.onChange,
46476
46329
  selected: props.value,
46477
46330
  option: SpecialCategory === null || SpecialCategory === void 0 ? void 0 : (_SpecialCategory$CHB = SpecialCategory.CHB) === null || _SpecialCategory$CHB === void 0 ? void 0 : _SpecialCategory$CHB.SpecialCategory,
@@ -46479,25 +46332,13 @@ const CHBCitizenSecond = ({
46479
46332
  });
46480
46333
  }
46481
46334
  }), errors.specialCategory && /*#__PURE__*/React.createElement("p", {
46482
- style: {
46483
- color: "red",
46484
- marginTop: "4px",
46485
- marginBottom: "0"
46486
- }
46335
+ className: "chb-error-text"
46487
46336
  }, errors.specialCategory.message))), /*#__PURE__*/React.createElement("div", {
46488
- className: "label-field-pair",
46489
- style: {
46490
- marginTop: "20px"
46491
- }
46337
+ className: "label-field-pair chb-margin-top-20"
46492
46338
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_PURPOSE_DESCRIPTION"), " ", /*#__PURE__*/React.createElement("span", {
46493
- style: {
46494
- color: "red"
46495
- }
46339
+ className: "mandatory-asterisk"
46496
46340
  }, "*")), /*#__PURE__*/React.createElement("div", {
46497
- className: "form-field",
46498
- style: {
46499
- width: "100%"
46500
- }
46341
+ className: "form-field w-fullwidth"
46501
46342
  }, /*#__PURE__*/React.createElement(Controller, {
46502
46343
  control: control,
46503
46344
  name: "purposeDescription",
@@ -46510,10 +46351,7 @@ const CHBCitizenSecond = ({
46510
46351
  }
46511
46352
  },
46512
46353
  render: props => /*#__PURE__*/React.createElement(TextArea, {
46513
- style: {
46514
- marginBottom: 0,
46515
- marginTop: 0
46516
- },
46354
+ className: "chb-form-field-margin",
46517
46355
  type: "textarea",
46518
46356
  value: props.value,
46519
46357
  onChange: e => {
@@ -46524,16 +46362,9 @@ const CHBCitizenSecond = ({
46524
46362
  }
46525
46363
  })
46526
46364
  }), errors.purposeDescription && /*#__PURE__*/React.createElement("p", {
46527
- style: {
46528
- color: "red",
46529
- marginTop: "4px",
46530
- marginBottom: "0"
46531
- }
46365
+ className: "chb-error-text"
46532
46366
  }, errors.purposeDescription.message))), !isCitizen && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
46533
- className: "label-field-pair",
46534
- style: {
46535
- marginTop: "20px"
46536
- }
46367
+ className: "label-field-pair chb-margin-top-20"
46537
46368
  }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("CHB_DISCOUNT_AMOUNT")}`), /*#__PURE__*/React.createElement(Controller, {
46538
46369
  control: control,
46539
46370
  name: "discountAmount",
@@ -46541,10 +46372,7 @@ const CHBCitizenSecond = ({
46541
46372
  var _errors$name;
46542
46373
  return /*#__PURE__*/React.createElement(TextInput, {
46543
46374
  type: "number",
46544
- style: {
46545
- marginBottom: 0,
46546
- width: "100%"
46547
- },
46375
+ className: "chb-form-field-margin w-fullwidth",
46548
46376
  value: props.value,
46549
46377
  error: errors === null || errors === void 0 ? void 0 : (_errors$name = errors.name) === null || _errors$name === void 0 ? void 0 : _errors$name.message,
46550
46378
  onChange: e => {
@@ -46557,10 +46385,7 @@ const CHBCitizenSecond = ({
46557
46385
  });
46558
46386
  }
46559
46387
  })), /*#__PURE__*/React.createElement("div", {
46560
- className: "label-field-pair",
46561
- style: {
46562
- marginTop: "20px"
46563
- }
46388
+ className: "label-field-pair chb-margin-top-20"
46564
46389
  }, /*#__PURE__*/React.createElement(CardLabel, null, t("CHB_DISCOUNT_REASON")), /*#__PURE__*/React.createElement(Controller, {
46565
46390
  control: control,
46566
46391
  name: "reason",
@@ -46568,10 +46393,7 @@ const CHBCitizenSecond = ({
46568
46393
  var _errors$name2;
46569
46394
  return /*#__PURE__*/React.createElement(TextInput, {
46570
46395
  type: "text",
46571
- style: {
46572
- marginBottom: 0,
46573
- width: "100%"
46574
- },
46396
+ className: "chb-form-field-margin w-fullwidth",
46575
46397
  value: props.value,
46576
46398
  error: errors === null || errors === void 0 ? void 0 : (_errors$name2 = errors.name) === null || _errors$name2 === void 0 ? void 0 : _errors$name2.message,
46577
46399
  onChange: e => {
@@ -47767,8 +47589,6 @@ var reactLifecyclesCompat_es = {
47767
47589
  polyfill: polyfill
47768
47590
  };
47769
47591
 
47770
- var _reactLifecyclesCompat = getCjsExportFromNamespace(reactLifecyclesCompat_es);
47771
-
47772
47592
  var Modal_1 = createCommonjsModule(function (module, exports) {
47773
47593
 
47774
47594
  Object.defineProperty(exports, "__esModule", {
@@ -48057,7 +47877,7 @@ var Modal_1 = createCommonjsModule(function (module, exports) {
48057
47877
  padding: "20px"
48058
47878
  }
48059
47879
  };
48060
- (0, _reactLifecyclesCompat.polyfill)(Modal);
47880
+ (0, reactLifecyclesCompat_es.polyfill)(Modal);
48061
47881
  if (process.env.NODE_ENV !== "production") {
48062
47882
  Modal.setCreateHTMLElement = function (fn) {
48063
47883
  return createHTMLElement = fn;
@@ -48438,11 +48258,7 @@ const CitizenConsent = ({
48438
48258
  content: modalStyles.modalContent
48439
48259
  }
48440
48260
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
48441
- style: {
48442
- wordWrap: "break-word",
48443
- textAlign: "justify",
48444
- fontFamily: "Roboto, serif"
48445
- }
48261
+ className: "break-words text-justify font-roboto"
48446
48262
  }, /*#__PURE__*/React.createElement("div", {
48447
48263
  dangerouslySetInnerHTML: {
48448
48264
  __html: selfdeclarationform
@@ -49097,10 +48913,7 @@ function CHBSummary({
49097
48913
  const renderLabel = (label, value) => /*#__PURE__*/React.createElement("div", {
49098
48914
  className: "bpa-summary-label-field-pair"
49099
48915
  }, /*#__PURE__*/React.createElement(CardLabel, {
49100
- className: "bpa-summary-bold-label",
49101
- style: {
49102
- width: "auto"
49103
- }
48916
+ className: "bpa-summary-bold-label swach-search-container"
49104
48917
  }, label), /*#__PURE__*/React.createElement("div", null, value || "NA"));
49105
48918
  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 => {
49106
48919
  var _formData$venueDetail8, _formData$venueDetail9, _formData$venueDetail0, _formData$venueDetail1;
@@ -49129,25 +48942,14 @@ function CHBSummary({
49129
48942
  data: slotlistRows,
49130
48943
  columns: columns,
49131
48944
  getCellProps: cellInfo => ({
49132
- style: {
49133
- minWidth: "100px",
49134
- padding: "8px",
49135
- fontSize: "clamp(0.9rem, 2vw, 1.1rem)",
49136
- paddingLeft: "10px",
49137
- wordBreak: "break-word"
49138
- }
48945
+ className: "chb-table-cell-summary"
49139
48946
  }),
49140
48947
  isPaginationRequired: false,
49141
48948
  totalRecords: slotlistRows.length
49142
48949
  }), /*#__PURE__*/React.createElement(CardSubHeader, {
49143
48950
  className: "bpa-summary-heading"
49144
48951
  }, t("CS_COMMON_DOCUMENTS")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement("div", {
49145
- className: "bpa-summary-section",
49146
- style: {
49147
- display: "flex",
49148
- flexWrap: "wrap",
49149
- gap: "16px"
49150
- }
48952
+ className: "bpa-summary-section chb-documents-container"
49151
48953
  }, (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", {
49152
48954
  key: index
49153
48955
  }, /*#__PURE__*/React.createElement(CHBDocument, {
@@ -49614,20 +49416,12 @@ const CHBResponseCitizen = props => {
49614
49416
  applicationNumber: ndcCode,
49615
49417
  info: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? "" : t(`CHB_APPROVAL_NUMBER`),
49616
49418
  successful: (nocData === null || nocData === void 0 ? void 0 : nocData.applicationStatus) == "REJECTED" ? false : true,
49617
- style: {
49618
- padding: "10px"
49619
- },
49419
+ className: "stepper",
49620
49420
  headerStyles: {
49621
- fontSize: "clamp(20px, 4vw, 32px)",
49622
- wordBreak: "break-word"
49421
+ className: "chb-banner-header"
49623
49422
  }
49624
49423
  }), /*#__PURE__*/React.createElement(ActionBar, {
49625
- style: {
49626
- display: "flex",
49627
- justifyContent: "flex-end",
49628
- alignItems: "baseline",
49629
- gap: " 20px"
49630
- }
49424
+ className: "chb-action-bar-response"
49631
49425
  }, /*#__PURE__*/React.createElement(SubmitBar, {
49632
49426
  label: t("CORE_COMMON_GO_TO_HOME"),
49633
49427
  onSubmit: onSubmit