@djb25/digit-ui-module-wt 1.0.35 → 1.0.37

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, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, Localities, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$g, BreakLine, InfoBannerIcon, ViewsIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
1
+ import { TickMark, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, Localities, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$h, BreakLine, InfoBannerIcon, ViewsIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
2
2
  import React, { useRef, useEffect, useState, useMemo, useCallback, Fragment, 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';
@@ -692,51 +692,10 @@ const fixedPointPayload = data => {
692
692
  }
693
693
  };
694
694
  };
695
- const EmergencyFixedPointInfoPage = data => {
696
- var _data$requestDetails11, _data$requestDetails12, _data$requestDetails13, _data$requestDetails14, _data$requestDetails15, _data$requestDetails16, _data$requestDetails17, _data$requestDetails18, _data$requestDetails19, _data$requestDetails20, _data$requestDetails21, _data$requestDetails22, _data$address71, _data$owner29, _data$owner30, _data$owner31, _data$owner32, _data$address72, _data$address72$addre, _data$address73, _data$address74, _data$address74$city, _data$address74$city$, _data$address75, _data$address75$city, _data$address75$city$, _data$address76, _data$address77, _data$address78, _data$address78$local, _data$address79, _data$address79$local, _data$address80, _data$address81, _data$address82, _data$address83, _data$address84, _data$requestDetails23;
697
- const formdata = {
698
- waterTankerBookingDetail: {
699
- tenantId: data === null || data === void 0 ? void 0 : data.tenantId,
700
- tankerType: data === null || data === void 0 ? void 0 : (_data$requestDetails11 = data.requestDetails) === null || _data$requestDetails11 === void 0 ? void 0 : (_data$requestDetails12 = _data$requestDetails11.tankerType) === null || _data$requestDetails12 === void 0 ? void 0 : _data$requestDetails12.code,
701
- waterType: data === null || data === void 0 ? void 0 : (_data$requestDetails13 = data.requestDetails) === null || _data$requestDetails13 === void 0 ? void 0 : (_data$requestDetails14 = _data$requestDetails13.waterType) === null || _data$requestDetails14 === void 0 ? void 0 : _data$requestDetails14.code,
702
- tankerQuantity: data === null || data === void 0 ? void 0 : (_data$requestDetails15 = data.requestDetails) === null || _data$requestDetails15 === void 0 ? void 0 : (_data$requestDetails16 = _data$requestDetails15.tankerQuantity) === null || _data$requestDetails16 === void 0 ? void 0 : _data$requestDetails16.code,
703
- waterQuantity: data === null || data === void 0 ? void 0 : (_data$requestDetails17 = data.requestDetails) === null || _data$requestDetails17 === void 0 ? void 0 : (_data$requestDetails18 = _data$requestDetails17.waterQuantity) === null || _data$requestDetails18 === void 0 ? void 0 : _data$requestDetails18.code,
704
- description: data === null || data === void 0 ? void 0 : (_data$requestDetails19 = data.requestDetails) === null || _data$requestDetails19 === void 0 ? void 0 : _data$requestDetails19.description,
705
- deliveryDate: data === null || data === void 0 ? void 0 : (_data$requestDetails20 = data.requestDetails) === null || _data$requestDetails20 === void 0 ? void 0 : _data$requestDetails20.deliveryDate,
706
- deliveryTime: data === null || data === void 0 ? void 0 : (_data$requestDetails21 = data.requestDetails) === null || _data$requestDetails21 === void 0 ? void 0 : _data$requestDetails21.deliveryTime,
707
- extraCharge: data !== null && data !== void 0 && (_data$requestDetails22 = data.requestDetails) !== null && _data$requestDetails22 !== void 0 && _data$requestDetails22.extraCharge ? "Y" : "N",
708
- addressDetailId: (data === null || data === void 0 ? void 0 : (_data$address71 = data.address) === null || _data$address71 === void 0 ? void 0 : _data$address71.addressDetailId) || "",
709
- applicantDetail: {
710
- name: data === null || data === void 0 ? void 0 : (_data$owner29 = data.owner) === null || _data$owner29 === void 0 ? void 0 : _data$owner29.applicantName,
711
- mobileNumber: data === null || data === void 0 ? void 0 : (_data$owner30 = data.owner) === null || _data$owner30 === void 0 ? void 0 : _data$owner30.mobileNumber,
712
- alternateNumber: data === null || data === void 0 ? void 0 : (_data$owner31 = data.owner) === null || _data$owner31 === void 0 ? void 0 : _data$owner31.alternateNumber,
713
- emailId: data === null || data === void 0 ? void 0 : (_data$owner32 = data.owner) === null || _data$owner32 === void 0 ? void 0 : _data$owner32.emailId
714
- },
715
- address: {
716
- addressType: data === null || data === void 0 ? void 0 : (_data$address72 = data.address) === null || _data$address72 === void 0 ? void 0 : (_data$address72$addre = _data$address72.addressType) === null || _data$address72$addre === void 0 ? void 0 : _data$address72$addre.code,
717
- pincode: data === null || data === void 0 ? void 0 : (_data$address73 = data.address) === null || _data$address73 === void 0 ? void 0 : _data$address73.pincode,
718
- city: data === null || data === void 0 ? void 0 : (_data$address74 = data.address) === null || _data$address74 === void 0 ? void 0 : (_data$address74$city = _data$address74.city) === null || _data$address74$city === void 0 ? void 0 : (_data$address74$city$ = _data$address74$city.city) === null || _data$address74$city$ === void 0 ? void 0 : _data$address74$city$.name,
719
- cityCode: data === null || data === void 0 ? void 0 : (_data$address75 = data.address) === null || _data$address75 === void 0 ? void 0 : (_data$address75$city = _data$address75.city) === null || _data$address75$city === void 0 ? void 0 : (_data$address75$city$ = _data$address75$city.city) === null || _data$address75$city$ === void 0 ? void 0 : _data$address75$city$.code,
720
- addressLine1: data === null || data === void 0 ? void 0 : (_data$address76 = data.address) === null || _data$address76 === void 0 ? void 0 : _data$address76.addressLine1,
721
- addressLine2: data === null || data === void 0 ? void 0 : (_data$address77 = data.address) === null || _data$address77 === void 0 ? void 0 : _data$address77.addressLine2,
722
- locality: data === null || data === void 0 ? void 0 : (_data$address78 = data.address) === null || _data$address78 === void 0 ? void 0 : (_data$address78$local = _data$address78.locality) === null || _data$address78$local === void 0 ? void 0 : _data$address78$local.i18nKey,
723
- localityCode: data === null || data === void 0 ? void 0 : (_data$address79 = data.address) === null || _data$address79 === void 0 ? void 0 : (_data$address79$local = _data$address79.locality) === null || _data$address79$local === void 0 ? void 0 : _data$address79$local.code,
724
- streetName: data === null || data === void 0 ? void 0 : (_data$address80 = data.address) === null || _data$address80 === void 0 ? void 0 : _data$address80.streetName,
725
- houseNo: data === null || data === void 0 ? void 0 : (_data$address81 = data.address) === null || _data$address81 === void 0 ? void 0 : _data$address81.houseNo,
726
- landmark: data === null || data === void 0 ? void 0 : (_data$address82 = data.address) === null || _data$address82 === void 0 ? void 0 : _data$address82.landmark,
727
- latitude: data === null || data === void 0 ? void 0 : (_data$address83 = data.address) === null || _data$address83 === void 0 ? void 0 : _data$address83.latitude,
728
- longitude: data === null || data === void 0 ? void 0 : (_data$address84 = data.address) === null || _data$address84 === void 0 ? void 0 : _data$address84.longitude
729
- },
730
- WTfileStoreId: data === null || data === void 0 ? void 0 : (_data$requestDetails23 = data.requestDetails) === null || _data$requestDetails23 === void 0 ? void 0 : _data$requestDetails23.fileStoreId,
731
- bookingStatus: "BOOKING_CREATED",
732
- workflow: {
733
- action: "APPLY",
734
- comments: "",
735
- businessService: "watertanker",
736
- moduleName: "request-service.water_tanker"
737
- }
738
- }
739
- };
695
+ const emergencyWaterTankerPayload = data => {
696
+ const formdata = waterTankerPayload(data);
697
+ formdata.waterTankerBookingDetail.workflow.action = "CREATE";
698
+ formdata.waterTankerBookingDetail.workflow.businessService = "watertanker-fixedpoint";
740
699
  return formdata;
741
700
  };
742
701
 
@@ -787,7 +746,8 @@ const WTSearchApplication = ({
787
746
  data,
788
747
  count,
789
748
  setShowToast,
790
- moduleCode
749
+ moduleCode,
750
+ isFixedPoint
791
751
  }) => {
792
752
  const isMobile = window.Digit.Utils.browser.isMobile();
793
753
  const user = Digit.UserService.getUser().info;
@@ -816,6 +776,17 @@ const WTSearchApplication = ({
816
776
  defaultValues
817
777
  });
818
778
  const fromDateValue = watch("fromDate");
779
+ const {
780
+ data: fillingPointsData
781
+ } = Digit.Hooks.wt.useFillPointSearch({
782
+ tenantId: Digit.ULBService.getCurrentTenantId(),
783
+ filters: {
784
+ limit: 1000
785
+ }
786
+ }, {
787
+ enabled: !!isFixedPoint
788
+ });
789
+ const fillingPoints = (fillingPointsData === null || fillingPointsData === void 0 ? void 0 : fillingPointsData.fillingPoints) || [];
819
790
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
820
791
  className: "cell-text"
821
792
  }, value);
@@ -1033,6 +1004,19 @@ const WTSearchApplication = ({
1033
1004
  }),
1034
1005
  name: "toDate",
1035
1006
  control: control
1007
+ })), isFixedPoint && /*#__PURE__*/React.createElement("div", {
1008
+ className: "search-field-wrapper"
1009
+ }, /*#__PURE__*/React.createElement("label", null, t("WT_FILLING_POINT")), /*#__PURE__*/React.createElement(Controller, {
1010
+ control: control,
1011
+ name: "fillingPointId",
1012
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
1013
+ selected: fillingPoints.find(fp => (fp.id || fp.fillingPointId || fp.bookingId) === props.value),
1014
+ select: val => props.onChange((val === null || val === void 0 ? void 0 : val.id) || (val === null || val === void 0 ? void 0 : val.fillingPointId) || (val === null || val === void 0 ? void 0 : val.bookingId)),
1015
+ onBlur: props.onBlur,
1016
+ option: fillingPoints,
1017
+ optionKey: "fillingPointName",
1018
+ t: t
1019
+ })
1036
1020
  }))), /*#__PURE__*/React.createElement("div", {
1037
1021
  className: "wt-search-actions",
1038
1022
  style: {
@@ -2462,6 +2446,7 @@ const WTCard = () => {
2462
2446
  t
2463
2447
  } = useTranslation();
2464
2448
  const tenantId = Digit.ULBService.getCurrentTenantId();
2449
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
2465
2450
  const {
2466
2451
  data: citizenInboxData,
2467
2452
  isLoading: isCitizenInboxLoading
@@ -2520,6 +2505,9 @@ const WTCard = () => {
2520
2505
  }, {
2521
2506
  label: t("WT_APPLICATION_CREATE"),
2522
2507
  link: `${APPLICATION_PATH}/employee/wt/request-service`
2508
+ }, {
2509
+ label: emergencyRequestLabel,
2510
+ link: `${APPLICATION_PATH}/employee/wt/fixed-point/request-service`
2523
2511
  }, {
2524
2512
  label: t("WT_FIXED_POINT_SCHEDULE_MANAGEMENT"),
2525
2513
  link: `${APPLICATION_PATH}/employee/wt/fixed-point-schedule`
@@ -2663,7 +2651,7 @@ const SearchApplication = ({
2663
2651
  defaultSearchParams,
2664
2652
  clearSearch: _clearSearch
2665
2653
  }) => {
2666
- var _searchFields$filter;
2654
+ var _searchParams$service, _searchFields$filter;
2667
2655
  const {
2668
2656
  t
2669
2657
  } = useTranslation();
@@ -2740,6 +2728,18 @@ const SearchApplication = ({
2740
2728
  onClick: clearSearch
2741
2729
  }, t("ES_COMMON_CLEAR_SEARCH"));
2742
2730
  };
2731
+ const isFixedPoint = searchParams === null || searchParams === void 0 ? void 0 : (_searchParams$service = searchParams.services) === null || _searchParams$service === void 0 ? void 0 : _searchParams$service.includes("watertanker-fixedpoint");
2732
+ const {
2733
+ data: fillingPointsData
2734
+ } = Digit.Hooks.wt.useFillPointSearch({
2735
+ tenantId: Digit.ULBService.getCurrentTenantId(),
2736
+ filters: {
2737
+ limit: 1000
2738
+ }
2739
+ }, {
2740
+ enabled: !!isFixedPoint
2741
+ });
2742
+ const fillingPoints = (fillingPointsData === null || fillingPointsData === void 0 ? void 0 : fillingPointsData.fillingPoints) || [];
2743
2743
  return /*#__PURE__*/React.createElement("form", {
2744
2744
  id: "search-form",
2745
2745
  onSubmit: handleSubmit(onSubmitInput),
@@ -2790,7 +2790,22 @@ const SearchApplication = ({
2790
2790
  },
2791
2791
  className: "inbox-search-form-error"
2792
2792
  }, formState === null || formState === void 0 ? void 0 : (_formState$errors2 = formState.errors) === null || _formState$errors2 === void 0 ? void 0 : (_formState$errors2$in = _formState$errors2[input.name]) === null || _formState$errors2$in === void 0 ? void 0 : _formState$errors2$in.message) : null);
2793
- })), /*#__PURE__*/React.createElement("div", {
2793
+ }), isFixedPoint && /*#__PURE__*/React.createElement("div", {
2794
+ className: "input-fields"
2795
+ }, /*#__PURE__*/React.createElement("span", {
2796
+ className: "mobile-input"
2797
+ }, /*#__PURE__*/React.createElement(Label, null, t("WT_FILLING_POINT")), /*#__PURE__*/React.createElement(Controller, {
2798
+ control: control,
2799
+ name: "fillingPointId",
2800
+ render: props => /*#__PURE__*/React.createElement(Dropdown, {
2801
+ selected: fillingPoints.find(fp => (fp.id || fp.fillingPointId || fp.bookingId) === props.value),
2802
+ select: val => props.onChange((val === null || val === void 0 ? void 0 : val.id) || (val === null || val === void 0 ? void 0 : val.fillingPointId) || (val === null || val === void 0 ? void 0 : val.bookingId)),
2803
+ onBlur: props.onBlur,
2804
+ option: fillingPoints,
2805
+ optionKey: "fillingPointName",
2806
+ t: t
2807
+ })
2808
+ })))), /*#__PURE__*/React.createElement("div", {
2794
2809
  className: "formcomposer-section-button"
2795
2810
  }, isInboxPage ? /*#__PURE__*/React.createElement("div", {
2796
2811
  className: "generic-button clear-search"
@@ -2832,6 +2847,12 @@ const WTDesktopInbox = ({
2832
2847
  const {
2833
2848
  t
2834
2849
  } = useTranslation();
2850
+ const getCreatedAtValue = React.useCallback(row => {
2851
+ var _row$searchData, _row$searchData$audit, _row$workflowData, _row$workflowData$aud;
2852
+ const createdTime = (row === null || row === void 0 ? void 0 : (_row$searchData = row.searchData) === null || _row$searchData === void 0 ? void 0 : (_row$searchData$audit = _row$searchData.auditDetails) === null || _row$searchData$audit === void 0 ? void 0 : _row$searchData$audit.createdTime) || (row === null || row === void 0 ? void 0 : (_row$workflowData = row.workflowData) === null || _row$workflowData === void 0 ? void 0 : (_row$workflowData$aud = _row$workflowData.auditDetails) === null || _row$workflowData$aud === void 0 ? void 0 : _row$workflowData$aud.createdTime);
2853
+ if (!createdTime) return "";
2854
+ return `${Digit.DateUtils.ConvertEpochToDate(createdTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(createdTime)}`;
2855
+ }, []);
2835
2856
  const [FilterComponent, setComp] = useState(() => {
2836
2857
  var _Digit$ComponentRegis;
2837
2858
  return (_Digit$ComponentRegis = Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent(filterComponent);
@@ -2844,39 +2865,48 @@ const WTDesktopInbox = ({
2844
2865
  const [clearSearchCalled, setClearSearchCalled] = useState(false);
2845
2866
  const columns = React.useMemo(() => props.isSearch ? tableConfig.searchColumns(props) : tableConfig.inboxColumns(props) || [], []);
2846
2867
  const inboxCsvColumns = React.useMemo(() => {
2847
- var _columns$, _columns$2, _columns$3, _columns$4, _columns$5;
2848
- return [{
2868
+ var _columns$, _columns$2, _columns$3, _columns$4, _columns$find2;
2869
+ const csvColumns = [{
2849
2870
  Header: (columns === null || columns === void 0 ? void 0 : (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.Header) || t("WT_BOOKING_NO"),
2850
2871
  exportAccessor: row => {
2851
- var _row$searchData;
2852
- return (row === null || row === void 0 ? void 0 : (_row$searchData = row.searchData) === null || _row$searchData === void 0 ? void 0 : _row$searchData.bookingNo) || "";
2872
+ var _row$searchData2;
2873
+ return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : _row$searchData2.bookingNo) || "";
2853
2874
  }
2854
2875
  }, {
2855
2876
  Header: (columns === null || columns === void 0 ? void 0 : (_columns$2 = columns[1]) === null || _columns$2 === void 0 ? void 0 : _columns$2.Header) || t("WT_APPLICANT_NAME"),
2856
2877
  exportAccessor: row => {
2857
- var _row$searchData2, _row$searchData2$appl;
2858
- return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : (_row$searchData2$appl = _row$searchData2.applicantDetail) === null || _row$searchData2$appl === void 0 ? void 0 : _row$searchData2$appl.name) || "";
2878
+ var _row$searchData3, _row$searchData3$appl;
2879
+ return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : (_row$searchData3$appl = _row$searchData3.applicantDetail) === null || _row$searchData3$appl === void 0 ? void 0 : _row$searchData3$appl.name) || "";
2859
2880
  }
2860
2881
  }, {
2861
2882
  Header: (columns === null || columns === void 0 ? void 0 : (_columns$3 = columns[2]) === null || _columns$3 === void 0 ? void 0 : _columns$3.Header) || t("WT_MOBILE_NUMBER"),
2862
2883
  exportAccessor: row => {
2863
- var _row$searchData3, _row$searchData3$appl;
2864
- return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : (_row$searchData3$appl = _row$searchData3.applicantDetail) === null || _row$searchData3$appl === void 0 ? void 0 : _row$searchData3$appl.mobileNumber) || "";
2884
+ var _row$searchData4, _row$searchData4$appl;
2885
+ return (row === null || row === void 0 ? void 0 : (_row$searchData4 = row.searchData) === null || _row$searchData4 === void 0 ? void 0 : (_row$searchData4$appl = _row$searchData4.applicantDetail) === null || _row$searchData4$appl === void 0 ? void 0 : _row$searchData4$appl.mobileNumber) || "";
2865
2886
  }
2866
2887
  }, {
2867
2888
  Header: (columns === null || columns === void 0 ? void 0 : (_columns$4 = columns[3]) === null || _columns$4 === void 0 ? void 0 : _columns$4.Header) || t("LOCALITY"),
2868
2889
  exportAccessor: row => {
2869
- var _row$searchData4;
2870
- return row !== null && row !== void 0 && (_row$searchData4 = row.searchData) !== null && _row$searchData4 !== void 0 && _row$searchData4.localityCode ? t(row.searchData.localityCode) : "";
2890
+ var _row$searchData5;
2891
+ return row !== null && row !== void 0 && (_row$searchData5 = row.searchData) !== null && _row$searchData5 !== void 0 && _row$searchData5.localityCode ? t(row.searchData.localityCode) : "";
2871
2892
  }
2872
- }, {
2873
- Header: (columns === null || columns === void 0 ? void 0 : (_columns$5 = columns[4]) === null || _columns$5 === void 0 ? void 0 : _columns$5.Header) || t("WT_STATUS"),
2893
+ }];
2894
+ if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "createdTime")) {
2895
+ var _columns$find;
2896
+ csvColumns.push({
2897
+ Header: (columns === null || columns === void 0 ? void 0 : (_columns$find = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "createdTime")) === null || _columns$find === void 0 ? void 0 : _columns$find.Header) || t("CREATED_AT"),
2898
+ exportAccessor: row => getCreatedAtValue(row)
2899
+ });
2900
+ }
2901
+ csvColumns.push({
2902
+ Header: (columns === null || columns === void 0 ? void 0 : (_columns$find2 = columns.find(column => (column === null || column === void 0 ? void 0 : column.id) === "applicationStatus")) === null || _columns$find2 === void 0 ? void 0 : _columns$find2.Header) || t("WT_STATUS"),
2874
2903
  exportAccessor: row => {
2875
- var _row$workflowData, _row$workflowData$sta;
2876
- return row !== null && row !== void 0 && (_row$workflowData = row.workflowData) !== null && _row$workflowData !== void 0 && (_row$workflowData$sta = _row$workflowData.state) !== null && _row$workflowData$sta !== void 0 && _row$workflowData$sta.applicationStatus ? t(row.workflowData.state.applicationStatus) : "";
2904
+ var _row$workflowData2, _row$workflowData2$st;
2905
+ return row !== null && row !== void 0 && (_row$workflowData2 = row.workflowData) !== null && _row$workflowData2 !== void 0 && (_row$workflowData2$st = _row$workflowData2.state) !== null && _row$workflowData2$st !== void 0 && _row$workflowData2$st.applicationStatus ? t(row.workflowData.state.applicationStatus) : "";
2877
2906
  }
2878
- }];
2879
- }, [columns, t]);
2907
+ });
2908
+ return csvColumns;
2909
+ }, [columns, getCreatedAtValue, t]);
2880
2910
  let result;
2881
2911
  if (props.isLoading) {
2882
2912
  result = /*#__PURE__*/React.createElement(Loader, null);
@@ -5033,20 +5063,20 @@ const DriverCard = ({
5033
5063
  }, [driver.lat, driver.lng]);
5034
5064
  useEffect(() => {
5035
5065
  const resolveDest = async () => {
5036
- if (driver.deliveryLat && driver.deliveryLng) {
5037
- const dist = lastResolvedDest.current.lat ? calculateDistance(lastResolvedDest.current.lat, lastResolvedDest.current.lng, driver.deliveryLat, driver.deliveryLng) : Infinity;
5066
+ if (driver.activeDeliveryLat && driver.activeDeliveryLng) {
5067
+ const dist = lastResolvedDest.current.lat ? calculateDistance(lastResolvedDest.current.lat, lastResolvedDest.current.lng, driver.activeDeliveryLat, driver.activeDeliveryLng) : Infinity;
5038
5068
  if (dist > 0.2) {
5039
- const data = await reverseGeocode(driver.deliveryLat, driver.deliveryLng);
5069
+ const data = await reverseGeocode(driver.activeDeliveryLat, driver.activeDeliveryLng);
5040
5070
  setDeliveryAddress(getAreaName(data));
5041
5071
  lastResolvedDest.current = {
5042
- lat: driver.deliveryLat,
5043
- lng: driver.deliveryLng
5072
+ lat: driver.activeDeliveryLat,
5073
+ lng: driver.activeDeliveryLng
5044
5074
  };
5045
5075
  }
5046
5076
  }
5047
5077
  };
5048
5078
  resolveDest();
5049
- }, [driver.deliveryLat, driver.deliveryLng]);
5079
+ }, [driver.activeDeliveryLat, driver.activeDeliveryLng]);
5050
5080
  const driverDetails = useMemo(() => {
5051
5081
  if (!vendorList || !vendorList.length) return {
5052
5082
  name: "Unknown",
@@ -5343,7 +5373,7 @@ function LiveTrackingSystem() {
5343
5373
  });
5344
5374
  const onlineCount = Object.values(drivers).filter(d => d.isOnline).length;
5345
5375
  const offlineCount = Object.values(drivers).filter(d => !d.isOnline).length;
5346
- const activeDeliveries = Object.values(drivers).filter(d => d.isOnline && d.deliveryLat && d.deliveryLng).length;
5376
+ const activeDeliveries = Object.values(drivers).filter(d => d.isOnline && d.activeDeliveryLat && d.activeDeliveryLng).length;
5347
5377
  const toggleSidebar = () => {
5348
5378
  setShowSidebar(!showSidebar);
5349
5379
  };
@@ -5778,13 +5808,13 @@ function LiveTrackingSystem() {
5778
5808
  }, /*#__PURE__*/React.createElement("strong", null, "Current Location"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Address, {
5779
5809
  lat: selectedDriver.lat,
5780
5810
  lng: selectedDriver.lng
5781
- }))), selectedDriver.deliveryLat && selectedDriver.deliveryLng && /*#__PURE__*/React.createElement("div", {
5811
+ }))), selectedDriver.activeDeliveryLat && selectedDriver.activeDeliveryLng && /*#__PURE__*/React.createElement("div", {
5782
5812
  style: {
5783
5813
  marginBottom: "8px"
5784
5814
  }
5785
5815
  }, /*#__PURE__*/React.createElement("strong", null, t("DELIVERY_DESTINATION")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Address, {
5786
- lat: selectedDriver.deliveryLat,
5787
- lng: selectedDriver.deliveryLng
5816
+ lat: selectedDriver.activeDeliveryLat,
5817
+ lng: selectedDriver.activeDeliveryLng
5788
5818
  }))), /*#__PURE__*/React.createElement("div", {
5789
5819
  style: {
5790
5820
  display: "grid",
@@ -5801,18 +5831,18 @@ function LiveTrackingSystem() {
5801
5831
  color: "#666",
5802
5832
  fontSize: "10px"
5803
5833
  }
5804
- }, t("WT_LAST_UPDATE"), ": ", new Date(selectedDriver.lastUpdate).toLocaleString()))))), selectedDriver && selectedDriver.deliveryLat != null && selectedDriver.deliveryLng != null && /*#__PURE__*/React.createElement(Marker, {
5834
+ }, t("WT_LAST_UPDATE"), ": ", new Date(selectedDriver.lastUpdate).toLocaleString()))))), selectedDriver && selectedDriver.activeDeliveryLat != null && selectedDriver.activeDeliveryLng != null && /*#__PURE__*/React.createElement(Marker, {
5805
5835
  key: `dest-${selectedDriver.driverId}`,
5806
- position: [Number(selectedDriver.deliveryLat), Number(selectedDriver.deliveryLng)],
5836
+ position: [Number(selectedDriver.activeDeliveryLat), Number(selectedDriver.activeDeliveryLng)],
5807
5837
  icon: destinationIcon
5808
- }), showRoutes && selectedDriver && selectedDriver.lat && selectedDriver.lng && selectedDriver.deliveryLat && selectedDriver.deliveryLng && /*#__PURE__*/React.createElement(RouteLayer, {
5838
+ }), showRoutes && selectedDriver && selectedDriver.lat && selectedDriver.lng && selectedDriver.activeDeliveryLat && selectedDriver.activeDeliveryLng && /*#__PURE__*/React.createElement(RouteLayer, {
5809
5839
  start: {
5810
5840
  lat: selectedDriver.lat,
5811
5841
  lng: selectedDriver.lng
5812
5842
  },
5813
5843
  end: {
5814
- lat: selectedDriver.deliveryLat,
5815
- lng: selectedDriver.deliveryLng
5844
+ lat: selectedDriver.activeDeliveryLat,
5845
+ lng: selectedDriver.activeDeliveryLng
5816
5846
  },
5817
5847
  color: "#2196f3",
5818
5848
  weight: 6
@@ -8423,6 +8453,7 @@ const EmployeeApp = ({
8423
8453
  } = useTranslation();
8424
8454
  const location = useLocation();
8425
8455
  const fixedPointInboxLabel = t("WT_FIXED_POINT") !== "WT_FIXED_POINT" ? `${t("WT_FIXED_POINT")} ${t("ES_COMMON_INBOX")}` : "Fixed Point Inbox";
8456
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
8426
8457
  sessionStorage.removeItem("revalidateddone");
8427
8458
  const getDynamicBreadcrumbs = () => {
8428
8459
  const pathname = location.pathname;
@@ -8455,7 +8486,7 @@ const EmployeeApp = ({
8455
8486
  });
8456
8487
  } else if (pathname.includes("/fixed-point/request-service")) {
8457
8488
  crumbs.push({
8458
- label: t("WT_APPLICATION_CREATE_FIXED_POINT")
8489
+ label: emergencyRequestLabel
8459
8490
  });
8460
8491
  } else if (pathname.includes("/request-service")) {
8461
8492
  crumbs.push({
@@ -15666,6 +15697,15 @@ const WTApplicationDetails = () => {
15666
15697
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
15667
15698
  className: "cell-text"
15668
15699
  }, value);
15700
+ const getCreatedTime = row => {
15701
+ var _row$searchData, _row$searchData$audit, _row$workflowData, _row$workflowData$aud;
15702
+ return (row === null || row === void 0 ? void 0 : (_row$searchData = row.searchData) === null || _row$searchData === void 0 ? void 0 : (_row$searchData$audit = _row$searchData.auditDetails) === null || _row$searchData$audit === void 0 ? void 0 : _row$searchData$audit.createdTime) || (row === null || row === void 0 ? void 0 : (_row$workflowData = row.workflowData) === null || _row$workflowData === void 0 ? void 0 : (_row$workflowData$aud = _row$workflowData.auditDetails) === null || _row$workflowData$aud === void 0 ? void 0 : _row$workflowData$aud.createdTime);
15703
+ };
15704
+ const getFormattedCreatedAt = row => {
15705
+ const createdTime = getCreatedTime(row);
15706
+ if (!createdTime) return "";
15707
+ return `${Digit.DateUtils.ConvertEpochToDate(createdTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(createdTime)}`;
15708
+ };
15669
15709
  const GetMobCell = value => /*#__PURE__*/React.createElement("span", {
15670
15710
  className: "sla-cell"
15671
15711
  }, value);
@@ -15675,8 +15715,8 @@ const TableConfig = t => ({
15675
15715
  Header: t("WT_BOOKING_NO"),
15676
15716
  id: "bookingNo",
15677
15717
  accessor: row => {
15678
- var _row$searchData;
15679
- return (row === null || row === void 0 ? void 0 : (_row$searchData = row.searchData) === null || _row$searchData === void 0 ? void 0 : _row$searchData["bookingNo"]) || "";
15718
+ var _row$searchData2;
15719
+ return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : _row$searchData2["bookingNo"]) || "";
15680
15720
  },
15681
15721
  Cell: ({
15682
15722
  row
@@ -15696,8 +15736,8 @@ const TableConfig = t => ({
15696
15736
  Header: t("WT_APPLICANT_NAME"),
15697
15737
  id: "applicantName",
15698
15738
  accessor: row => {
15699
- var _row$searchData2, _row$searchData2$appl;
15700
- return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : (_row$searchData2$appl = _row$searchData2.applicantDetail) === null || _row$searchData2$appl === void 0 ? void 0 : _row$searchData2$appl["name"]) || "";
15739
+ var _row$searchData3, _row$searchData3$appl;
15740
+ return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : (_row$searchData3$appl = _row$searchData3.applicantDetail) === null || _row$searchData3$appl === void 0 ? void 0 : _row$searchData3$appl["name"]) || "";
15701
15741
  },
15702
15742
  Cell: row => {
15703
15743
  var _row$cell, _row$cell$row, _row$cell$row$origina, _row$cell$row$origina2, _row$cell$row$origina3;
@@ -15711,8 +15751,8 @@ const TableConfig = t => ({
15711
15751
  Header: t("WT_MOBILE_NUMBER"),
15712
15752
  id: "mobileNumber",
15713
15753
  accessor: row => {
15714
- var _row$searchData3, _row$searchData3$appl;
15715
- return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : (_row$searchData3$appl = _row$searchData3.applicantDetail) === null || _row$searchData3$appl === void 0 ? void 0 : _row$searchData3$appl["mobileNumber"]) || "";
15754
+ var _row$searchData4, _row$searchData4$appl;
15755
+ return (row === null || row === void 0 ? void 0 : (_row$searchData4 = row.searchData) === null || _row$searchData4 === void 0 ? void 0 : (_row$searchData4$appl = _row$searchData4.applicantDetail) === null || _row$searchData4$appl === void 0 ? void 0 : _row$searchData4$appl["mobileNumber"]) || "";
15716
15756
  },
15717
15757
  Cell: row => {
15718
15758
  var _row$cell2, _row$cell2$row, _row$cell2$row$origin, _row$cell2$row$origin2, _row$cell2$row$origin3;
@@ -15726,8 +15766,8 @@ const TableConfig = t => ({
15726
15766
  Header: t("LOCALITY"),
15727
15767
  id: "localityCode",
15728
15768
  accessor: row => {
15729
- var _row$searchData4;
15730
- return (row === null || row === void 0 ? void 0 : (_row$searchData4 = row.searchData) === null || _row$searchData4 === void 0 ? void 0 : _row$searchData4["localityCode"]) || "";
15769
+ var _row$searchData5;
15770
+ return (row === null || row === void 0 ? void 0 : (_row$searchData5 = row.searchData) === null || _row$searchData5 === void 0 ? void 0 : _row$searchData5["localityCode"]) || "";
15731
15771
  },
15732
15772
  Cell: ({
15733
15773
  row
@@ -15739,12 +15779,22 @@ const TableConfig = t => ({
15739
15779
  var _original$searchData6;
15740
15780
  return GetMobCell(t(`${original === null || original === void 0 ? void 0 : (_original$searchData6 = original.searchData) === null || _original$searchData6 === void 0 ? void 0 : _original$searchData6["localityCode"]}`));
15741
15781
  }
15782
+ }, {
15783
+ Header: t("CREATED_AT"),
15784
+ id: "createdTime",
15785
+ accessor: row => getFormattedCreatedAt(row),
15786
+ Cell: ({
15787
+ row
15788
+ }) => {
15789
+ return GetCell(getFormattedCreatedAt(row === null || row === void 0 ? void 0 : row.original));
15790
+ },
15791
+ mobileCell: original => GetMobCell(getFormattedCreatedAt(original))
15742
15792
  }, {
15743
15793
  Header: t("WT_STATUS"),
15744
15794
  id: "applicationStatus",
15745
15795
  accessor: row => {
15746
- var _row$workflowData, _row$workflowData$sta;
15747
- return (row === null || row === void 0 ? void 0 : (_row$workflowData = row.workflowData) === null || _row$workflowData === void 0 ? void 0 : (_row$workflowData$sta = _row$workflowData.state) === null || _row$workflowData$sta === void 0 ? void 0 : _row$workflowData$sta["applicationStatus"]) || "";
15796
+ var _row$workflowData2, _row$workflowData2$st;
15797
+ return (row === null || row === void 0 ? void 0 : (_row$workflowData2 = row.workflowData) === null || _row$workflowData2 === void 0 ? void 0 : (_row$workflowData2$st = _row$workflowData2.state) === null || _row$workflowData2$st === void 0 ? void 0 : _row$workflowData2$st["applicationStatus"]) || "";
15748
15798
  },
15749
15799
  Cell: ({
15750
15800
  row
@@ -15767,8 +15817,8 @@ const TableConfig = t => ({
15767
15817
  Header: t("MT_BOOKING_NO"),
15768
15818
  id: "bookingNo",
15769
15819
  accessor: row => {
15770
- var _row$searchData5;
15771
- return (row === null || row === void 0 ? void 0 : (_row$searchData5 = row.searchData) === null || _row$searchData5 === void 0 ? void 0 : _row$searchData5["bookingNo"]) || "";
15820
+ var _row$searchData6;
15821
+ return (row === null || row === void 0 ? void 0 : (_row$searchData6 = row.searchData) === null || _row$searchData6 === void 0 ? void 0 : _row$searchData6["bookingNo"]) || "";
15772
15822
  },
15773
15823
  Cell: ({
15774
15824
  row
@@ -15788,8 +15838,8 @@ const TableConfig = t => ({
15788
15838
  Header: t("MT_APPLICANT_NAME"),
15789
15839
  id: "applicantName",
15790
15840
  accessor: row => {
15791
- var _row$searchData6, _row$searchData6$appl;
15792
- return (row === null || row === void 0 ? void 0 : (_row$searchData6 = row.searchData) === null || _row$searchData6 === void 0 ? void 0 : (_row$searchData6$appl = _row$searchData6.applicantDetail) === null || _row$searchData6$appl === void 0 ? void 0 : _row$searchData6$appl["name"]) || "";
15841
+ var _row$searchData7, _row$searchData7$appl;
15842
+ return (row === null || row === void 0 ? void 0 : (_row$searchData7 = row.searchData) === null || _row$searchData7 === void 0 ? void 0 : (_row$searchData7$appl = _row$searchData7.applicantDetail) === null || _row$searchData7$appl === void 0 ? void 0 : _row$searchData7$appl["name"]) || "";
15793
15843
  },
15794
15844
  Cell: row => {
15795
15845
  var _row$cell3, _row$cell3$row, _row$cell3$row$origin, _row$cell3$row$origin2, _row$cell3$row$origin3;
@@ -15803,8 +15853,8 @@ const TableConfig = t => ({
15803
15853
  Header: t("MT_MOBILE_NUMBER"),
15804
15854
  id: "mobileNumber",
15805
15855
  accessor: row => {
15806
- var _row$searchData7, _row$searchData7$appl;
15807
- return (row === null || row === void 0 ? void 0 : (_row$searchData7 = row.searchData) === null || _row$searchData7 === void 0 ? void 0 : (_row$searchData7$appl = _row$searchData7.applicantDetail) === null || _row$searchData7$appl === void 0 ? void 0 : _row$searchData7$appl["mobileNumber"]) || "";
15856
+ var _row$searchData8, _row$searchData8$appl;
15857
+ return (row === null || row === void 0 ? void 0 : (_row$searchData8 = row.searchData) === null || _row$searchData8 === void 0 ? void 0 : (_row$searchData8$appl = _row$searchData8.applicantDetail) === null || _row$searchData8$appl === void 0 ? void 0 : _row$searchData8$appl["mobileNumber"]) || "";
15808
15858
  },
15809
15859
  Cell: row => {
15810
15860
  var _row$cell4, _row$cell4$row, _row$cell4$row$origin, _row$cell4$row$origin2, _row$cell4$row$origin3;
@@ -15818,8 +15868,8 @@ const TableConfig = t => ({
15818
15868
  Header: t("LOCALITY"),
15819
15869
  id: "localityCode",
15820
15870
  accessor: row => {
15821
- var _row$searchData8;
15822
- return (row === null || row === void 0 ? void 0 : (_row$searchData8 = row.searchData) === null || _row$searchData8 === void 0 ? void 0 : _row$searchData8["localityCode"]) || "";
15871
+ var _row$searchData9;
15872
+ return (row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : _row$searchData9["localityCode"]) || "";
15823
15873
  },
15824
15874
  Cell: ({
15825
15875
  row
@@ -15835,8 +15885,8 @@ const TableConfig = t => ({
15835
15885
  Header: t("MT_STATUS"),
15836
15886
  id: "applicationStatus",
15837
15887
  accessor: row => {
15838
- var _row$workflowData2, _row$workflowData2$st;
15839
- return (row === null || row === void 0 ? void 0 : (_row$workflowData2 = row.workflowData) === null || _row$workflowData2 === void 0 ? void 0 : (_row$workflowData2$st = _row$workflowData2.state) === null || _row$workflowData2$st === void 0 ? void 0 : _row$workflowData2$st["applicationStatus"]) || "";
15888
+ var _row$workflowData3, _row$workflowData3$st;
15889
+ return (row === null || row === void 0 ? void 0 : (_row$workflowData3 = row.workflowData) === null || _row$workflowData3 === void 0 ? void 0 : (_row$workflowData3$st = _row$workflowData3.state) === null || _row$workflowData3$st === void 0 ? void 0 : _row$workflowData3$st["applicationStatus"]) || "";
15840
15890
  },
15841
15891
  Cell: ({
15842
15892
  row
@@ -15859,8 +15909,8 @@ const TableConfig = t => ({
15859
15909
  Header: t("MT_BOOKING_NO"),
15860
15910
  id: "bookingNo",
15861
15911
  accessor: row => {
15862
- var _row$searchData9;
15863
- return (row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : _row$searchData9["bookingNo"]) || "";
15912
+ var _row$searchData0;
15913
+ return (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : _row$searchData0["bookingNo"]) || "";
15864
15914
  },
15865
15915
  Cell: ({
15866
15916
  row
@@ -15880,8 +15930,8 @@ const TableConfig = t => ({
15880
15930
  Header: t("MT_APPLICANT_NAME"),
15881
15931
  id: "applicantName",
15882
15932
  accessor: row => {
15883
- var _row$searchData0, _row$searchData0$appl;
15884
- return (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : (_row$searchData0$appl = _row$searchData0.applicantDetail) === null || _row$searchData0$appl === void 0 ? void 0 : _row$searchData0$appl["name"]) || "";
15933
+ var _row$searchData1, _row$searchData1$appl;
15934
+ return (row === null || row === void 0 ? void 0 : (_row$searchData1 = row.searchData) === null || _row$searchData1 === void 0 ? void 0 : (_row$searchData1$appl = _row$searchData1.applicantDetail) === null || _row$searchData1$appl === void 0 ? void 0 : _row$searchData1$appl["name"]) || "";
15885
15935
  },
15886
15936
  Cell: row => {
15887
15937
  var _row$cell5, _row$cell5$row, _row$cell5$row$origin, _row$cell5$row$origin2, _row$cell5$row$origin3;
@@ -15895,8 +15945,8 @@ const TableConfig = t => ({
15895
15945
  Header: t("MT_MOBILE_NUMBER"),
15896
15946
  id: "mobileNumber",
15897
15947
  accessor: row => {
15898
- var _row$searchData1, _row$searchData1$appl;
15899
- return (row === null || row === void 0 ? void 0 : (_row$searchData1 = row.searchData) === null || _row$searchData1 === void 0 ? void 0 : (_row$searchData1$appl = _row$searchData1.applicantDetail) === null || _row$searchData1$appl === void 0 ? void 0 : _row$searchData1$appl["mobileNumber"]) || "";
15948
+ var _row$searchData10, _row$searchData10$app;
15949
+ return (row === null || row === void 0 ? void 0 : (_row$searchData10 = row.searchData) === null || _row$searchData10 === void 0 ? void 0 : (_row$searchData10$app = _row$searchData10.applicantDetail) === null || _row$searchData10$app === void 0 ? void 0 : _row$searchData10$app["mobileNumber"]) || "";
15900
15950
  },
15901
15951
  Cell: row => {
15902
15952
  var _row$cell6, _row$cell6$row, _row$cell6$row$origin, _row$cell6$row$origin2, _row$cell6$row$origin3;
@@ -15910,8 +15960,8 @@ const TableConfig = t => ({
15910
15960
  Header: t("LOCALITY"),
15911
15961
  id: "localityCode",
15912
15962
  accessor: row => {
15913
- var _row$searchData10;
15914
- return (row === null || row === void 0 ? void 0 : (_row$searchData10 = row.searchData) === null || _row$searchData10 === void 0 ? void 0 : _row$searchData10["localityCode"]) || "";
15963
+ var _row$searchData11;
15964
+ return (row === null || row === void 0 ? void 0 : (_row$searchData11 = row.searchData) === null || _row$searchData11 === void 0 ? void 0 : _row$searchData11["localityCode"]) || "";
15915
15965
  },
15916
15966
  Cell: ({
15917
15967
  row
@@ -15927,8 +15977,8 @@ const TableConfig = t => ({
15927
15977
  Header: t("MT_STATUS"),
15928
15978
  id: "applicationStatus",
15929
15979
  accessor: row => {
15930
- var _row$workflowData3, _row$workflowData3$st;
15931
- return (row === null || row === void 0 ? void 0 : (_row$workflowData3 = row.workflowData) === null || _row$workflowData3 === void 0 ? void 0 : (_row$workflowData3$st = _row$workflowData3.state) === null || _row$workflowData3$st === void 0 ? void 0 : _row$workflowData3$st["applicationStatus"]) || "";
15980
+ var _row$workflowData4, _row$workflowData4$st;
15981
+ return (row === null || row === void 0 ? void 0 : (_row$workflowData4 = row.workflowData) === null || _row$workflowData4 === void 0 ? void 0 : (_row$workflowData4$st = _row$workflowData4.state) === null || _row$workflowData4$st === void 0 ? void 0 : _row$workflowData4$st["applicationStatus"]) || "";
15932
15982
  },
15933
15983
  Cell: ({
15934
15984
  row
@@ -16079,6 +16129,186 @@ const Filter = ({
16079
16129
  })))));
16080
16130
  };
16081
16131
 
16132
+ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16133
+ xmlns: "http://www.w3.org/2000/svg",
16134
+ viewBox: "0 0 24 24",
16135
+ fill: "#FFFFFF"
16136
+ }, /*#__PURE__*/React.createElement("path", {
16137
+ d: "M0 0h24v24H0V0z",
16138
+ fill: "none"
16139
+ }), /*#__PURE__*/React.createElement("path", {
16140
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
16141
+ }));
16142
+ const CloseBtn$1 = props => {
16143
+ return /*#__PURE__*/React.createElement("div", {
16144
+ className: "icon-bg-secondary",
16145
+ onClick: props.onClick
16146
+ }, /*#__PURE__*/React.createElement(Close$1, null));
16147
+ };
16148
+ const WTEditApplicationModal = ({
16149
+ t,
16150
+ applicationData,
16151
+ closeModal
16152
+ }) => {
16153
+ const [formData, setFormData] = useState({});
16154
+ useEffect(() => {
16155
+ if (applicationData) {
16156
+ var _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$addr, _applicationData$addr2, _applicationData$addr3, _applicationData$addr4, _applicationData$addr5, _applicationData$addr6;
16157
+ setFormData({
16158
+ name: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicantDetail) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.name) || "",
16159
+ mobileNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicantDetail) === null || _applicationData$appl2 === void 0 ? void 0 : _applicationData$appl2.mobileNumber) || "",
16160
+ emailId: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl3 = applicationData.applicantDetail) === null || _applicationData$appl3 === void 0 ? void 0 : _applicationData$appl3.emailId) || "",
16161
+ alternateNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl4 = applicationData.applicantDetail) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.alternateNumber) || "",
16162
+ houseNo: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr = applicationData.address) === null || _applicationData$addr === void 0 ? void 0 : _applicationData$addr.houseNo) || "",
16163
+ streetName: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr2 = applicationData.address) === null || _applicationData$addr2 === void 0 ? void 0 : _applicationData$addr2.streetName) || "",
16164
+ addressLine1: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr3 = applicationData.address) === null || _applicationData$addr3 === void 0 ? void 0 : _applicationData$addr3.addressLine1) || "",
16165
+ addressLine2: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr4 = applicationData.address) === null || _applicationData$addr4 === void 0 ? void 0 : _applicationData$addr4.addressLine2) || "",
16166
+ landmark: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr5 = applicationData.address) === null || _applicationData$addr5 === void 0 ? void 0 : _applicationData$addr5.landmark) || "",
16167
+ pincode: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr6 = applicationData.address) === null || _applicationData$addr6 === void 0 ? void 0 : _applicationData$addr6.pincode) || "",
16168
+ tankerType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerType) || "",
16169
+ waterType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterType) || "",
16170
+ tankerQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerQuantity) || "",
16171
+ waterQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterQuantity) || "",
16172
+ description: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.description) || "",
16173
+ deliveryDate: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryDate) || "",
16174
+ deliveryTime: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryTime) || ""
16175
+ });
16176
+ }
16177
+ }, [applicationData]);
16178
+ const handleChange = (e, key) => {
16179
+ setFormData({
16180
+ ...formData,
16181
+ [key]: e.target.value
16182
+ });
16183
+ };
16184
+ const handleUpdate = () => {
16185
+ console.log("Updated Data:", formData);
16186
+ closeModal();
16187
+ };
16188
+ const fieldGroups = [{
16189
+ title: "WT_APPLICANT_DETAILS",
16190
+ fields: [{
16191
+ label: "WT_APPLICANT_NAME",
16192
+ key: "name"
16193
+ }, {
16194
+ label: "WT_MOBILE_NUMBER",
16195
+ key: "mobileNumber"
16196
+ }, {
16197
+ label: "WT_ALT_MOBILE_NUMBER",
16198
+ key: "alternateNumber"
16199
+ }, {
16200
+ label: "WT_EMAIL_ID",
16201
+ key: "emailId"
16202
+ }]
16203
+ }, {
16204
+ title: "WT_ADDRESS_DETAILS",
16205
+ fields: [{
16206
+ label: "WT_HOUSE_NO",
16207
+ key: "houseNo"
16208
+ }, {
16209
+ label: "WT_STREET_NAME",
16210
+ key: "streetName"
16211
+ }, {
16212
+ label: "WT_ADDRESS_LINE1",
16213
+ key: "addressLine1"
16214
+ }, {
16215
+ label: "WT_ADDRESS_LINE2",
16216
+ key: "addressLine2"
16217
+ }, {
16218
+ label: "WT_LANDMARK",
16219
+ key: "landmark"
16220
+ }, {
16221
+ label: "WT_PINCODE",
16222
+ key: "pincode"
16223
+ }]
16224
+ }, {
16225
+ title: "WT_REQUEST_DETAILS",
16226
+ fields: [{
16227
+ label: "WT_TANKER_TYPE",
16228
+ key: "tankerType"
16229
+ }, {
16230
+ label: "WT_WATER_TYPE",
16231
+ key: "waterType"
16232
+ }, {
16233
+ label: "WT_TANKER_QUANTITY",
16234
+ key: "tankerQuantity"
16235
+ }, {
16236
+ label: "WT_WATER_QUANTITY",
16237
+ key: "waterQuantity"
16238
+ }, {
16239
+ label: "WT_DELIVERY_DATE",
16240
+ key: "deliveryDate",
16241
+ type: "date"
16242
+ }, {
16243
+ label: "WT_DELIVERY_TIME",
16244
+ key: "deliveryTime",
16245
+ type: "time"
16246
+ }, {
16247
+ label: "WT_DESCRIPTION",
16248
+ key: "description",
16249
+ fullWidth: true
16250
+ }]
16251
+ }];
16252
+ return /*#__PURE__*/React.createElement(Modal, {
16253
+ headerBarMain: /*#__PURE__*/React.createElement("h1", {
16254
+ className: "heading-m"
16255
+ }, t("WT_EDIT_APPLICATION_DETAILS")),
16256
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
16257
+ onClick: closeModal
16258
+ }),
16259
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
16260
+ actionCancelOnSubmit: closeModal,
16261
+ actionSaveLabel: t("CS_COMMON_UPDATE"),
16262
+ actionSaveOnSubmit: handleUpdate
16263
+ }, /*#__PURE__*/React.createElement(Card, {
16264
+ style: {
16265
+ maxHeight: "70vh",
16266
+ overflowY: "auto",
16267
+ padding: "20px"
16268
+ }
16269
+ }, fieldGroups.map((group, index) => /*#__PURE__*/React.createElement("div", {
16270
+ key: index,
16271
+ style: {
16272
+ marginBottom: "24px"
16273
+ }
16274
+ }, /*#__PURE__*/React.createElement("h2", {
16275
+ style: {
16276
+ fontSize: "18px",
16277
+ fontWeight: "bold",
16278
+ marginBottom: "16px",
16279
+ color: "#0B0C10",
16280
+ borderBottom: "1px solid #e0e0e0",
16281
+ paddingBottom: "8px"
16282
+ }
16283
+ }, t(group.title)), /*#__PURE__*/React.createElement("div", {
16284
+ style: {
16285
+ display: "flex",
16286
+ flexWrap: "wrap",
16287
+ gap: "16px"
16288
+ }
16289
+ }, group.fields.map(field => /*#__PURE__*/React.createElement("div", {
16290
+ key: field.key,
16291
+ style: {
16292
+ flex: field.fullWidth ? "1 1 100%" : "1 1 200px",
16293
+ maxWidth: "100%"
16294
+ }
16295
+ }, /*#__PURE__*/React.createElement(CardLabel, {
16296
+ style: {
16297
+ fontWeight: "600",
16298
+ marginBottom: "4px",
16299
+ fontSize: "14px"
16300
+ }
16301
+ }, t(field.label)), /*#__PURE__*/React.createElement(TextInput, {
16302
+ type: field.type || "text",
16303
+ value: formData[field.key],
16304
+ onChange: e => handleChange(e, field.key),
16305
+ style: {
16306
+ width: "100%",
16307
+ maxWidth: "100%"
16308
+ }
16309
+ }))))))));
16310
+ };
16311
+
16082
16312
  const configPTApproverApplication = ({
16083
16313
  t,
16084
16314
  action,
@@ -16782,7 +17012,7 @@ const Heading$1 = props => {
16782
17012
  className: "heading-m"
16783
17013
  }, props.label);
16784
17014
  };
16785
- const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
17015
+ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
16786
17016
  xmlns: "http://www.w3.org/2000/svg",
16787
17017
  viewBox: "0 0 24 24",
16788
17018
  fill: "#FFFFFF"
@@ -16792,11 +17022,11 @@ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16792
17022
  }), /*#__PURE__*/React.createElement("path", {
16793
17023
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
16794
17024
  }));
16795
- const CloseBtn$1 = props => {
17025
+ const CloseBtn$2 = props => {
16796
17026
  return /*#__PURE__*/React.createElement("div", {
16797
17027
  className: "icon-bg-secondary",
16798
17028
  onClick: props.onClick
16799
- }, /*#__PURE__*/React.createElement(Close$1, null));
17029
+ }, /*#__PURE__*/React.createElement(Close$2, null));
16800
17030
  };
16801
17031
  const ActionModal = ({
16802
17032
  t,
@@ -16968,7 +17198,7 @@ const ActionModal = ({
16968
17198
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
16969
17199
  label: t(config.label.heading)
16970
17200
  }),
16971
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
17201
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
16972
17202
  onClick: closeModal
16973
17203
  }),
16974
17204
  actionCancelLabel: t(config.label.cancel),
@@ -16993,7 +17223,7 @@ const Heading$2 = props => {
16993
17223
  className: "heading-m"
16994
17224
  }, props.label);
16995
17225
  };
16996
- const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17226
+ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
16997
17227
  xmlns: "http://www.w3.org/2000/svg",
16998
17228
  viewBox: "0 0 24 24",
16999
17229
  fill: "#FFFFFF"
@@ -17003,11 +17233,11 @@ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17003
17233
  }), /*#__PURE__*/React.createElement("path", {
17004
17234
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17005
17235
  }));
17006
- const CloseBtn$2 = props => {
17236
+ const CloseBtn$3 = props => {
17007
17237
  return /*#__PURE__*/React.createElement("div", {
17008
17238
  className: "icon-bg-secondary",
17009
17239
  onClick: props.onClick
17010
- }, /*#__PURE__*/React.createElement(Close$2, null));
17240
+ }, /*#__PURE__*/React.createElement(Close$3, null));
17011
17241
  };
17012
17242
  const ActionModal$1 = ({
17013
17243
  t,
@@ -17135,7 +17365,7 @@ const ActionModal$1 = ({
17135
17365
  headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
17136
17366
  label: t(config.label.heading)
17137
17367
  }),
17138
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
17368
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17139
17369
  onClick: closeModal
17140
17370
  }),
17141
17371
  actionCancelLabel: t(config.label.cancel),
@@ -17162,7 +17392,7 @@ const Heading$3 = props => {
17162
17392
  className: "heading-m BPAheading-m"
17163
17393
  }, props.label);
17164
17394
  };
17165
- const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17395
+ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17166
17396
  xmlns: "http://www.w3.org/2000/svg",
17167
17397
  viewBox: "0 0 24 24",
17168
17398
  fill: "#FFFFFF"
@@ -17172,11 +17402,11 @@ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17172
17402
  }), /*#__PURE__*/React.createElement("path", {
17173
17403
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17174
17404
  }));
17175
- const CloseBtn$3 = props => {
17405
+ const CloseBtn$4 = props => {
17176
17406
  return /*#__PURE__*/React.createElement("div", {
17177
17407
  className: "icon-bg-secondary",
17178
17408
  onClick: props.onClick
17179
- }, /*#__PURE__*/React.createElement(Close$3, null));
17409
+ }, /*#__PURE__*/React.createElement(Close$4, null));
17180
17410
  };
17181
17411
  const ActionModal$2 = ({
17182
17412
  t,
@@ -17289,7 +17519,7 @@ const ActionModal$2 = ({
17289
17519
  headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
17290
17520
  label: t(config.label.heading)
17291
17521
  }),
17292
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17522
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17293
17523
  onClick: closeModal
17294
17524
  }),
17295
17525
  actionCancelLabel: t(config.label.cancel),
@@ -17338,7 +17568,7 @@ const Heading$4 = props => {
17338
17568
  className: "heading-m BPAheading-m"
17339
17569
  }, props.label);
17340
17570
  };
17341
- const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17571
+ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17342
17572
  xmlns: "http://www.w3.org/2000/svg",
17343
17573
  viewBox: "0 0 24 24",
17344
17574
  fill: "#FFFFFF"
@@ -17348,11 +17578,11 @@ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17348
17578
  }), /*#__PURE__*/React.createElement("path", {
17349
17579
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17350
17580
  }));
17351
- const CloseBtn$4 = props => {
17581
+ const CloseBtn$5 = props => {
17352
17582
  return /*#__PURE__*/React.createElement("div", {
17353
17583
  className: "icon-bg-secondary",
17354
17584
  onClick: props.onClick
17355
- }, /*#__PURE__*/React.createElement(Close$4, null));
17585
+ }, /*#__PURE__*/React.createElement(Close$5, null));
17356
17586
  };
17357
17587
  const ActionModal$3 = ({
17358
17588
  t,
@@ -17592,7 +17822,7 @@ const ActionModal$3 = ({
17592
17822
  headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
17593
17823
  label: t(config.label.heading)
17594
17824
  }),
17595
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17825
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
17596
17826
  onClick: closeModal
17597
17827
  }),
17598
17828
  actionCancelLabel: t(config.label.cancel),
@@ -17643,7 +17873,7 @@ const Heading$5 = props => {
17643
17873
  className: "heading-m BPAheading-m"
17644
17874
  }, props.label);
17645
17875
  };
17646
- const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17876
+ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
17647
17877
  xmlns: "http://www.w3.org/2000/svg",
17648
17878
  viewBox: "0 0 24 24",
17649
17879
  fill: "#FFFFFF"
@@ -17653,11 +17883,11 @@ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17653
17883
  }), /*#__PURE__*/React.createElement("path", {
17654
17884
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17655
17885
  }));
17656
- const CloseBtn$5 = props => {
17886
+ const CloseBtn$6 = props => {
17657
17887
  return /*#__PURE__*/React.createElement("div", {
17658
17888
  className: "icon-bg-secondary",
17659
17889
  onClick: props.onClick
17660
- }, /*#__PURE__*/React.createElement(Close$5, null));
17890
+ }, /*#__PURE__*/React.createElement(Close$6, null));
17661
17891
  };
17662
17892
  const ActionModal$4 = ({
17663
17893
  t,
@@ -17781,7 +18011,7 @@ const ActionModal$4 = ({
17781
18011
  headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
17782
18012
  label: t(config.label.heading)
17783
18013
  }),
17784
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
18014
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
17785
18015
  onClick: closeModal
17786
18016
  }),
17787
18017
  actionCancelLabel: t(config.label.cancel),
@@ -18582,7 +18812,7 @@ const Heading$6 = props => {
18582
18812
  className: "heading-m"
18583
18813
  }, props.label);
18584
18814
  };
18585
- const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18815
+ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18586
18816
  xmlns: "http://www.w3.org/2000/svg",
18587
18817
  viewBox: "0 0 24 24",
18588
18818
  fill: "#FFFFFF"
@@ -18592,11 +18822,11 @@ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18592
18822
  }), /*#__PURE__*/React.createElement("path", {
18593
18823
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
18594
18824
  }));
18595
- const CloseBtn$6 = props => {
18825
+ const CloseBtn$7 = props => {
18596
18826
  return /*#__PURE__*/React.createElement("div", {
18597
18827
  className: "icon-bg-secondary",
18598
18828
  onClick: props.onClick
18599
- }, /*#__PURE__*/React.createElement(Close$6, null));
18829
+ }, /*#__PURE__*/React.createElement(Close$7, null));
18600
18830
  };
18601
18831
  const convertDateToEpochNew = (dateString, dayStartOrEnd = "dayend") => {
18602
18832
  try {
@@ -18856,7 +19086,7 @@ const ActionModal$5 = ({
18856
19086
  headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
18857
19087
  label: t(config.label.heading)
18858
19088
  }),
18859
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
19089
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
18860
19090
  onClick: closeModal
18861
19091
  }),
18862
19092
  actionCancelLabel: t(config.label.cancel),
@@ -18888,7 +19118,7 @@ const Heading$7 = props => {
18888
19118
  className: "heading-m"
18889
19119
  }, props.label);
18890
19120
  };
18891
- const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
19121
+ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
18892
19122
  xmlns: "http://www.w3.org/2000/svg",
18893
19123
  viewBox: "0 0 24 24",
18894
19124
  fill: "#FFFFFF"
@@ -18898,11 +19128,11 @@ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18898
19128
  }), /*#__PURE__*/React.createElement("path", {
18899
19129
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
18900
19130
  }));
18901
- const CloseBtn$7 = props => {
19131
+ const CloseBtn$8 = props => {
18902
19132
  return /*#__PURE__*/React.createElement("div", {
18903
19133
  className: "icon-bg-secondary",
18904
19134
  onClick: props.onClick
18905
- }, /*#__PURE__*/React.createElement(Close$7, null));
19135
+ }, /*#__PURE__*/React.createElement(Close$8, null));
18906
19136
  };
18907
19137
  const ActionModal$6 = ({
18908
19138
  t,
@@ -19012,7 +19242,7 @@ const ActionModal$6 = ({
19012
19242
  headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
19013
19243
  label: t(config.label.heading)
19014
19244
  }),
19015
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
19245
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19016
19246
  onClick: closeModal
19017
19247
  }),
19018
19248
  actionCancelLabel: t(config.label.cancel),
@@ -19036,7 +19266,7 @@ const Heading$8 = props => {
19036
19266
  className: "heading-m"
19037
19267
  }, props.label);
19038
19268
  };
19039
- const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19269
+ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19040
19270
  xmlns: "http://www.w3.org/2000/svg",
19041
19271
  viewBox: "0 0 24 24",
19042
19272
  fill: "#FFFFFF"
@@ -19046,11 +19276,11 @@ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19046
19276
  }), /*#__PURE__*/React.createElement("path", {
19047
19277
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19048
19278
  }));
19049
- const CloseBtn$8 = props => {
19279
+ const CloseBtn$9 = props => {
19050
19280
  return /*#__PURE__*/React.createElement("div", {
19051
19281
  className: "icon-bg-secondary",
19052
19282
  onClick: props.onClick
19053
- }, /*#__PURE__*/React.createElement(Close$8, null));
19283
+ }, /*#__PURE__*/React.createElement(Close$9, null));
19054
19284
  };
19055
19285
  const ActionModal$7 = ({
19056
19286
  t,
@@ -19132,7 +19362,7 @@ const ActionModal$7 = ({
19132
19362
  headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
19133
19363
  label: t(config.label.heading)
19134
19364
  }),
19135
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19365
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19136
19366
  onClick: closeModal
19137
19367
  }),
19138
19368
  actionCancelLabel: t(config.label.cancel),
@@ -19160,7 +19390,7 @@ const Heading$9 = props => {
19160
19390
  className: "heading-m"
19161
19391
  }, props.label);
19162
19392
  };
19163
- const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19393
+ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19164
19394
  xmlns: "http://www.w3.org/2000/svg",
19165
19395
  viewBox: "0 0 24 24",
19166
19396
  fill: "#FFFFFF"
@@ -19170,11 +19400,11 @@ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19170
19400
  }), /*#__PURE__*/React.createElement("path", {
19171
19401
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19172
19402
  }));
19173
- const CloseBtn$9 = props => {
19403
+ const CloseBtn$a = props => {
19174
19404
  return /*#__PURE__*/React.createElement("div", {
19175
19405
  className: "icon-bg-secondary",
19176
19406
  onClick: props.onClick
19177
- }, /*#__PURE__*/React.createElement(Close$9, null));
19407
+ }, /*#__PURE__*/React.createElement(Close$a, null));
19178
19408
  };
19179
19409
  const ActionModal$8 = ({
19180
19410
  t,
@@ -19283,7 +19513,7 @@ const ActionModal$8 = ({
19283
19513
  headerBarMain: /*#__PURE__*/React.createElement(Heading$9, {
19284
19514
  label: t(config.label.heading)
19285
19515
  }),
19286
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19516
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19287
19517
  onClick: closeModal
19288
19518
  }),
19289
19519
  actionCancelLabel: t(config.label.cancel),
@@ -19307,7 +19537,7 @@ const Heading$a = props => {
19307
19537
  className: "heading-m"
19308
19538
  }, props.label);
19309
19539
  };
19310
- const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19540
+ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19311
19541
  xmlns: "http://www.w3.org/2000/svg",
19312
19542
  viewBox: "0 0 24 24",
19313
19543
  fill: "#FFFFFF"
@@ -19317,11 +19547,11 @@ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19317
19547
  }), /*#__PURE__*/React.createElement("path", {
19318
19548
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19319
19549
  }));
19320
- const CloseBtn$a = props => {
19550
+ const CloseBtn$b = props => {
19321
19551
  return /*#__PURE__*/React.createElement("div", {
19322
19552
  className: "icon-bg-secondary",
19323
19553
  onClick: props.onClick
19324
- }, /*#__PURE__*/React.createElement(Close$a, null));
19554
+ }, /*#__PURE__*/React.createElement(Close$b, null));
19325
19555
  };
19326
19556
  const ActionModal$9 = ({
19327
19557
  t,
@@ -19437,7 +19667,7 @@ const ActionModal$9 = ({
19437
19667
  headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
19438
19668
  label: t(config.label.heading)
19439
19669
  }),
19440
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19670
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19441
19671
  onClick: closeModal
19442
19672
  }),
19443
19673
  actionCancelLabel: t(config.label.cancel),
@@ -19461,7 +19691,7 @@ const Heading$b = props => {
19461
19691
  className: "heading-m"
19462
19692
  }, props.label);
19463
19693
  };
19464
- const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19694
+ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19465
19695
  xmlns: "http://www.w3.org/2000/svg",
19466
19696
  viewBox: "0 0 24 24",
19467
19697
  fill: "#FFFFFF"
@@ -19471,11 +19701,11 @@ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19471
19701
  }), /*#__PURE__*/React.createElement("path", {
19472
19702
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19473
19703
  }));
19474
- const CloseBtn$b = props => {
19704
+ const CloseBtn$c = props => {
19475
19705
  return /*#__PURE__*/React.createElement("div", {
19476
19706
  className: "icon-bg-secondary",
19477
19707
  onClick: props.onClick
19478
- }, /*#__PURE__*/React.createElement(Close$b, null));
19708
+ }, /*#__PURE__*/React.createElement(Close$c, null));
19479
19709
  };
19480
19710
  const ActionModal$a = ({
19481
19711
  t,
@@ -19589,7 +19819,7 @@ const ActionModal$a = ({
19589
19819
  headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
19590
19820
  label: t(config.label.heading)
19591
19821
  }),
19592
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19822
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
19593
19823
  onClick: closeModal
19594
19824
  }),
19595
19825
  actionCancelLabel: t(config.label.cancel),
@@ -19677,7 +19907,7 @@ const Heading$c = props => {
19677
19907
  className: "heading-m"
19678
19908
  }, props.label);
19679
19909
  };
19680
- const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19910
+ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
19681
19911
  xmlns: "http://www.w3.org/2000/svg",
19682
19912
  viewBox: "0 0 24 24",
19683
19913
  fill: "#FFFFFF"
@@ -19687,11 +19917,11 @@ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19687
19917
  }), /*#__PURE__*/React.createElement("path", {
19688
19918
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19689
19919
  }));
19690
- const CloseBtn$c = props => {
19920
+ const CloseBtn$d = props => {
19691
19921
  return /*#__PURE__*/React.createElement("div", {
19692
19922
  className: "icon-bg-secondary",
19693
19923
  onClick: props.onClick
19694
- }, /*#__PURE__*/React.createElement(Close$c, null));
19924
+ }, /*#__PURE__*/React.createElement(Close$d, null));
19695
19925
  };
19696
19926
  const ActionModal$b = ({
19697
19927
  t,
@@ -19872,7 +20102,7 @@ const ActionModal$b = ({
19872
20102
  headerBarMain: /*#__PURE__*/React.createElement(Heading$c, {
19873
20103
  label: t(config.label.heading)
19874
20104
  }),
19875
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
20105
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
19876
20106
  onClick: closeModal
19877
20107
  }),
19878
20108
  actionCancelLabel: t(config.label.cancel),
@@ -20733,7 +20963,7 @@ const PermissionCheck = ({
20733
20963
  } : {},
20734
20964
  placeholder: t("BPA_ENTER_PERMIT_CONDITIONS_LABEL")
20735
20965
  }), /*#__PURE__*/React.createElement(LinkButton, {
20736
- label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$g, {
20966
+ label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$h, {
20737
20967
  style: {
20738
20968
  float: "right",
20739
20969
  position: "relative",
@@ -22559,7 +22789,7 @@ const ArrearSummary = ({
22559
22789
  }, t("CS_HIDE_CARD"))));
22560
22790
  };
22561
22791
 
22562
- const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22792
+ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
22563
22793
  xmlns: "http://www.w3.org/2000/svg",
22564
22794
  viewBox: "0 0 24 24",
22565
22795
  fill: "#FFFFFF"
@@ -22569,11 +22799,11 @@ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22569
22799
  }), /*#__PURE__*/React.createElement("path", {
22570
22800
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
22571
22801
  }));
22572
- const CloseBtn$d = props => {
22802
+ const CloseBtn$e = props => {
22573
22803
  return /*#__PURE__*/React.createElement("div", {
22574
22804
  className: "icon-bg-secondary",
22575
22805
  onClick: props.onClick
22576
- }, /*#__PURE__*/React.createElement(Close$d, null));
22806
+ }, /*#__PURE__*/React.createElement(Close$e, null));
22577
22807
  };
22578
22808
  const RenewPopup = ({
22579
22809
  t,
@@ -22600,7 +22830,7 @@ const RenewPopup = ({
22600
22830
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
22601
22831
  label: "SV_WANT_TO_EDIT"
22602
22832
  }),
22603
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
22833
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
22604
22834
  onClick: closeModal
22605
22835
  }),
22606
22836
  actionCancelLabel: t("CS_COMMON_BACK"),
@@ -23359,7 +23589,7 @@ function ApplicationDetailsActionBar({
23359
23589
  }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${actions === null || actions === void 0 ? void 0 : (_actions$4 = actions[0]) === null || _actions$4 === void 0 ? void 0 : _actions$4.action}`))));
23360
23590
  }
23361
23591
 
23362
- const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23592
+ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
23363
23593
  xmlns: "http://www.w3.org/2000/svg",
23364
23594
  viewBox: "0 0 24 24",
23365
23595
  fill: "#FFFFFF"
@@ -23369,11 +23599,11 @@ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23369
23599
  }), /*#__PURE__*/React.createElement("path", {
23370
23600
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
23371
23601
  }));
23372
- const CloseBtn$e = props => {
23602
+ const CloseBtn$f = props => {
23373
23603
  return /*#__PURE__*/React.createElement("div", {
23374
23604
  className: "icon-bg-secondary",
23375
23605
  onClick: props.onClick
23376
- }, /*#__PURE__*/React.createElement(Close$e, null));
23606
+ }, /*#__PURE__*/React.createElement(Close$f, null));
23377
23607
  };
23378
23608
  function ApplicationDetailsWarningPopup({
23379
23609
  action,
@@ -23390,7 +23620,7 @@ function ApplicationDetailsWarningPopup({
23390
23620
  headerBarMain: /*#__PURE__*/React.createElement("h1", {
23391
23621
  className: "heading-m"
23392
23622
  }, t("PT_DUES_ARE_PENDING")),
23393
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
23623
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
23394
23624
  onClick: () => {
23395
23625
  closeWarningPopup();
23396
23626
  }
@@ -23834,7 +24064,7 @@ const WorkflowTimeline = ({
23834
24064
  };
23835
24065
 
23836
24066
  const ApplicationDetails$1 = () => {
23837
- var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app;
24067
+ var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app, _appDetailsToShow$app2;
23838
24068
  const {
23839
24069
  t
23840
24070
  } = useTranslation();
@@ -23845,6 +24075,7 @@ const ApplicationDetails$1 = () => {
23845
24075
  } = useParams();
23846
24076
  const [showToast, setShowToast] = useState(null);
23847
24077
  const [appDetailsToShow, setAppDetailsToShow] = useState({});
24078
+ const [showEditModal, setShowEditModal] = useState(false);
23848
24079
  const [BusinessService, setBusinessService] = useState("watertanker");
23849
24080
  const isWaterTanker = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("WT");
23850
24081
  const isTreePruning = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("TP");
@@ -23893,29 +24124,78 @@ const ApplicationDetails$1 = () => {
23893
24124
  height: "100%"
23894
24125
  }
23895
24126
  }, /*#__PURE__*/React.createElement("div", {
24127
+ className: "employee-application-details",
23896
24128
  style: {
24129
+ marginBottom: "20px",
23897
24130
  display: "flex",
23898
- flexDirection: "row",
23899
- gap: "20px",
24131
+ justifyContent: "space-between",
24132
+ alignItems: "center",
24133
+ flexWrap: "wrap",
24134
+ gap: "16px"
24135
+ }
24136
+ }, /*#__PURE__*/React.createElement(Header, {
24137
+ styles: {
24138
+ margin: "0px",
24139
+ fontSize: "32px"
24140
+ }
24141
+ }, t("BOOKING_DETAILS")), /*#__PURE__*/React.createElement("div", {
24142
+ onClick: () => setShowEditModal(true),
24143
+ style: {
24144
+ display: "flex",
24145
+ alignItems: "center",
24146
+ cursor: "pointer",
24147
+ color: "#f47738",
24148
+ gap: "8px",
24149
+ padding: "8px 16px",
24150
+ backgroundColor: "#fff",
24151
+ borderRadius: "4px",
24152
+ border: "1px solid #f47738",
24153
+ transition: "all 0.2s ease"
24154
+ }
24155
+ }, /*#__PURE__*/React.createElement(EditIcon, {
24156
+ style: {
24157
+ fill: "#f47738",
24158
+ width: "20px",
24159
+ height: "20px"
24160
+ }
24161
+ }), /*#__PURE__*/React.createElement("span", {
24162
+ style: {
24163
+ fontWeight: "600",
24164
+ fontSize: "16px"
24165
+ }
24166
+ }, t("WT_EDIT_FIELDS")))), showEditModal && /*#__PURE__*/React.createElement(WTEditApplicationModal, {
24167
+ t: t,
24168
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app = appDetailsToShow.applicationData) === null || _appDetailsToShow$app === void 0 ? void 0 : _appDetailsToShow$app.applicationData,
24169
+ closeModal: () => setShowEditModal(false)
24170
+ }), /*#__PURE__*/React.createElement("div", {
24171
+ style: {
24172
+ display: "flex",
24173
+ flexWrap: "wrap",
24174
+ gap: "24px",
23900
24175
  height: "100%"
23901
24176
  }
23902
24177
  }, /*#__PURE__*/React.createElement("div", {
23903
- className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`
24178
+ className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`,
24179
+ style: {
24180
+ flex: "1 1 300px",
24181
+ maxWidth: hideTimeline ? "0px" : "400px",
24182
+ transition: "max-width 0.3s"
24183
+ }
23904
24184
  }, /*#__PURE__*/React.createElement(WorkflowTimeline, {
23905
24185
  hideTimeline: hideTimeline,
23906
24186
  setHideTimeline: setHideTimeline,
23907
24187
  workflowDetails: workflowDetails
23908
24188
  })), /*#__PURE__*/React.createElement("div", {
23909
- className: !hideTimeline ? "hidden-card " : "",
23910
24189
  style: {
23911
- flex: "1",
23912
- overflowY: "scroll"
24190
+ flex: "2 1 500px",
24191
+ minWidth: "300px",
24192
+ overflowY: "auto"
23913
24193
  }
23914
24194
  }, /*#__PURE__*/React.createElement(ApplicationDetails, {
23915
24195
  applicationDetails: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : appDetailsToShow.applicationData,
23916
24196
  isLoading: isLoading,
23917
24197
  isDataLoading: isLoading,
23918
- applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app = appDetailsToShow.applicationData) === null || _appDetailsToShow$app === void 0 ? void 0 : _appDetailsToShow$app.applicationData,
24198
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app2 = appDetailsToShow.applicationData) === null || _appDetailsToShow$app2 === void 0 ? void 0 : _appDetailsToShow$app2.applicationData,
23919
24199
  mutate: mutate,
23920
24200
  workflowDetails: workflowDetails,
23921
24201
  businessService: businessService,
@@ -24109,7 +24389,7 @@ const TPCard = () => {
24109
24389
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
24110
24390
  };
24111
24391
 
24112
- const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24392
+ const Close$g = () => /*#__PURE__*/React.createElement("svg", {
24113
24393
  xmlns: "http://www.w3.org/2000/svg",
24114
24394
  viewBox: "0 0 24 24",
24115
24395
  fill: "#FFFFFF"
@@ -24119,12 +24399,12 @@ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24119
24399
  }), /*#__PURE__*/React.createElement("path", {
24120
24400
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
24121
24401
  }));
24122
- const CloseBtn$f = ({
24402
+ const CloseBtn$g = ({
24123
24403
  onClick
24124
24404
  }) => /*#__PURE__*/React.createElement("div", {
24125
24405
  className: "icon-bg-secondary",
24126
24406
  onClick: onClick
24127
- }, /*#__PURE__*/React.createElement(Close$f, null));
24407
+ }, /*#__PURE__*/React.createElement(Close$g, null));
24128
24408
  const Heading$d = props => {
24129
24409
  return /*#__PURE__*/React.createElement("h1", {
24130
24410
  className: "heading-m"
@@ -24170,7 +24450,7 @@ const ServiceTypes = ({
24170
24450
  headerBarMain: /*#__PURE__*/React.createElement(Heading$d, {
24171
24451
  t: t
24172
24452
  }),
24173
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
24453
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$g, {
24174
24454
  onClick: () => window.history.back()
24175
24455
  }),
24176
24456
  popupStyles: {
@@ -25381,24 +25661,17 @@ const MTCitizenCard = () => {
25381
25661
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
25382
25662
  };
25383
25663
 
25384
- const EmergencyFixedPointInfoPage$1 = ({
25664
+ const EmergencyFixedPointInfoPage = ({
25385
25665
  t,
25386
25666
  onSelect,
25387
25667
  formData,
25388
25668
  config,
25389
25669
  userType
25390
25670
  }) => {
25391
- var _formData$serviceType, _formData$serviceType2;
25392
25671
  const [existingDataSet, setExistingDataSet] = useState("");
25393
25672
  const [showModal, setShowModal] = useState(false);
25394
25673
  const [isExistingPopupRequired, setIsExistingPopupRequired] = useState(false);
25395
- const moduleMap = {
25396
- MobileToilet: "MT_MODULE",
25397
- WT: "WT_MODULE",
25398
- TREE_PRUNING: "TREE_PRUNING"
25399
- };
25400
- const code = formData === null || formData === void 0 ? void 0 : (_formData$serviceType = formData.serviceType) === null || _formData$serviceType === void 0 ? void 0 : (_formData$serviceType2 = _formData$serviceType.serviceType) === null || _formData$serviceType2 === void 0 ? void 0 : _formData$serviceType2.code;
25401
- const moduleKey = moduleMap[code];
25674
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
25402
25675
  const handleOpenModal = () => {
25403
25676
  isExistingPopupRequired ? setShowModal(true) : goNext();
25404
25677
  };
@@ -25420,7 +25693,7 @@ const EmergencyFixedPointInfoPage$1 = ({
25420
25693
  gap: "12px",
25421
25694
  justifyContent: "flex-start"
25422
25695
  }
25423
- }, moduleKey && /*#__PURE__*/React.createElement(CardHeader, null, t(moduleKey)), /*#__PURE__*/React.createElement(CardHeader, null, t("WT_APPLICATION_CREATE_FIXED_POINT")), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
25696
+ }, /*#__PURE__*/React.createElement(CardHeader, null, emergencyRequestLabel), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
25424
25697
  className: "primaryColor"
25425
25698
  }, t("SV_DOC_REQ_SCREEN_SUB_HEADER")), /*#__PURE__*/React.createElement("p", {
25426
25699
  className: "primaryColor"
@@ -25791,7 +26064,7 @@ const WTEmergencyFixedPointCheckPage = ({
25791
26064
  onSubmit,
25792
26065
  value: _value = {}
25793
26066
  }) => {
25794
- var _address$city, _address$city$city, _address$locality, _serviceType$serviceT, _requestDetails$tanke, _requestDetails$water, _requestDetails$tanke2, _requestDetails$water2, _serviceType$serviceT2, _toiletRequestDetails, _serviceType$serviceT3, _treePruningRequestDe;
26067
+ var _serviceType$serviceT, _serviceType$serviceT2, _address$city, _address$city$city, _address$locality, _requestDetails$tanke, _requestDetails$water, _requestDetails$tanke2, _requestDetails$water2, _serviceType$serviceT3, _toiletRequestDetails, _serviceType$serviceT4, _treePruningRequestDe;
25795
26068
  const {
25796
26069
  t
25797
26070
  } = useTranslation();
@@ -25809,6 +26082,7 @@ const WTEmergencyFixedPointCheckPage = ({
25809
26082
  const [agree, setAgree] = useState(false);
25810
26083
  const immediateRequired = requestDetails !== null && requestDetails !== void 0 && requestDetails.extraCharge ? "YES" : "NO";
25811
26084
  const [fileUrl, setFileUrl] = useState(null);
26085
+ const isWaterTankerService = !(serviceType !== null && serviceType !== void 0 && (_serviceType$serviceT = serviceType.serviceType) !== null && _serviceType$serviceT !== void 0 && _serviceType$serviceT.code) || (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT2 = serviceType.serviceType) === null || _serviceType$serviceT2 === void 0 ? void 0 : _serviceType$serviceT2.code) === "WT";
25812
26086
  const baseUrl = pathname.includes("citizen") ? `${APPLICATION_PATH}/citizen/wt/fixed-point/request-service` : `${APPLICATION_PATH}/employee/wt/fixed-point/request-service`;
25813
26087
  const setdeclarationhandler = () => {
25814
26088
  setAgree(!agree);
@@ -25876,7 +26150,7 @@ const WTEmergencyFixedPointCheckPage = ({
25876
26150
  }), /*#__PURE__*/React.createElement(Row, {
25877
26151
  label: t("STREET_NAME"),
25878
26152
  text: `${t(checkForNA(address === null || address === void 0 ? void 0 : address.streetName))}`
25879
- })), (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT = serviceType.serviceType) === null || _serviceType$serviceT === void 0 ? void 0 : _serviceType$serviceT.code) === "WT" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WT_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
26153
+ })), isWaterTankerService && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WT_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
25880
26154
  style: {
25881
26155
  marginTop: "30px",
25882
26156
  marginBottom: "30px"
@@ -25919,7 +26193,7 @@ const WTEmergencyFixedPointCheckPage = ({
25919
26193
  }), /*#__PURE__*/React.createElement(Row, {
25920
26194
  label: t("WT_IMMEDIATE"),
25921
26195
  text: `${t(checkForNA(immediateRequired))}`
25922
- }))), (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT2 = serviceType.serviceType) === null || _serviceType$serviceT2 === void 0 ? void 0 : _serviceType$serviceT2.code) === "MobileToilet" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("ES_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
26196
+ }))), (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT3 = serviceType.serviceType) === null || _serviceType$serviceT3 === void 0 ? void 0 : _serviceType$serviceT3.code) === "MobileToilet" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("ES_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
25923
26197
  style: {
25924
26198
  marginTop: "30px",
25925
26199
  marginBottom: "30px"
@@ -25945,7 +26219,7 @@ const WTEmergencyFixedPointCheckPage = ({
25945
26219
  }), /*#__PURE__*/React.createElement(Row, {
25946
26220
  label: t("MT_SPECIAL_REQUEST"),
25947
26221
  text: `${t(checkForNA(toiletRequestDetails === null || toiletRequestDetails === void 0 ? void 0 : toiletRequestDetails.specialRequest))}`
25948
- }))), (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT3 = serviceType.serviceType) === null || _serviceType$serviceT3 === void 0 ? void 0 : _serviceType$serviceT3.code) === "TREE_PRUNING" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("TP_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
26222
+ }))), (serviceType === null || serviceType === void 0 ? void 0 : (_serviceType$serviceT4 = serviceType.serviceType) === null || _serviceType$serviceT4 === void 0 ? void 0 : _serviceType$serviceT4.code) === "TREE_PRUNING" && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("TP_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
25949
26223
  style: {
25950
26224
  marginTop: "30px",
25951
26225
  marginBottom: "30px"
@@ -26023,18 +26297,10 @@ const WTEmergencyFixedPointAcknowledgement = ({
26023
26297
  const {
26024
26298
  tenants
26025
26299
  } = storeData || {};
26026
- const {
26027
- isLoading,
26028
- data: workflow
26029
- } = Digit.Hooks.useWorkflowDetails({
26030
- tenantId: tenantId,
26031
- moduleCode: "watertanker-fixedpoint"
26032
- });
26033
- console.log(workflow, "wt");
26034
26300
  useEffect(() => {
26035
26301
  try {
26036
26302
  data.tenantId = tenantId;
26037
- let formdata = EmergencyFixedPointInfoPage(data);
26303
+ let formdata = emergencyWaterTankerPayload(data);
26038
26304
  mutation.mutate(formdata, {
26039
26305
  onSuccess
26040
26306
  });
@@ -26311,7 +26577,7 @@ const fixedPointConfig = [{
26311
26577
  head: "FP_REQUEST_DETAILS",
26312
26578
  body: [{
26313
26579
  route: "fp-request-details",
26314
- component: "EmergencyFixedPointRequestDetails",
26580
+ component: "RequestDetails",
26315
26581
  withoutLabel: true,
26316
26582
  key: "requestDetails",
26317
26583
  type: "component",
@@ -26319,11 +26585,11 @@ const fixedPointConfig = [{
26319
26585
  nextStep: null,
26320
26586
  texts: {
26321
26587
  submitBarLabel: "COMMON_SAVE_NEXT",
26322
- header: "FP_REQUEST_DETAILS"
26588
+ header: "WT_REQUEST_DETAILS"
26323
26589
  },
26324
26590
  timeLine: [{
26325
26591
  currentStep: 3,
26326
- actions: "FP_REQUEST_DETAILS"
26592
+ actions: "ES_REQUEST_DETAILS"
26327
26593
  }]
26328
26594
  }]
26329
26595
  }];
@@ -26355,10 +26621,12 @@ const WTEmergencyFixedPointCreate = () => {
26355
26621
  config = config.concat(obj.body);
26356
26622
  });
26357
26623
  config.indexRoute = "fp-info";
26358
- if (params && Object.keys(params).length > 0 && window.location.href.includes("/fp-info") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
26359
- clearParams();
26360
- queryClient.invalidateQueries("FP_Create");
26361
- }
26624
+ useEffect(() => {
26625
+ if (params && Object.keys(params).length > 0 && window.location.href.includes("/fp-info") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
26626
+ clearParams();
26627
+ queryClient.invalidateQueries("FP_Create");
26628
+ }
26629
+ }, [params, clearParams, queryClient]);
26362
26630
  const goNext = (skipStep, index, isAddMultiple, key) => {
26363
26631
  let currentPath = pathname.split("/").pop();
26364
26632
  let isMultiple = false;
@@ -26570,7 +26838,7 @@ const WTLinks = ({
26570
26838
  i18nKey: t("WT_VIEW_APPLICATIONS")
26571
26839
  }, {
26572
26840
  link: `${matchPath}/wt/wt-Vendor`,
26573
- i18nKey: t("WT_VENDOR_LOGIN")
26841
+ i18nKey: t("Vendor Management")
26574
26842
  }];
26575
26843
  return /*#__PURE__*/React.createElement(CitizenHomeCard, {
26576
26844
  header: t("WATER_TANKER_SERVICE"),
@@ -26620,7 +26888,7 @@ const componentsToRegister = {
26620
26888
  AddFillingPointMetaData,
26621
26889
  WTSearchPointAddress: SearchFillingPointAddress,
26622
26890
  VendorAssign,
26623
- EmergencyFixedPointInfoPage: EmergencyFixedPointInfoPage$1,
26891
+ EmergencyFixedPointInfoPage,
26624
26892
  EmergencyFixedPointRequestDetails,
26625
26893
  EmergencyFixedPointCheckPage: WTEmergencyFixedPointCheckPage,
26626
26894
  WTEmergencyFixedPointAcknowledgement,