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

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.
@@ -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
 
@@ -2462,6 +2421,7 @@ const WTCard = () => {
2462
2421
  t
2463
2422
  } = useTranslation();
2464
2423
  const tenantId = Digit.ULBService.getCurrentTenantId();
2424
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
2465
2425
  const {
2466
2426
  data: citizenInboxData,
2467
2427
  isLoading: isCitizenInboxLoading
@@ -2520,6 +2480,9 @@ const WTCard = () => {
2520
2480
  }, {
2521
2481
  label: t("WT_APPLICATION_CREATE"),
2522
2482
  link: `${APPLICATION_PATH}/employee/wt/request-service`
2483
+ }, {
2484
+ label: emergencyRequestLabel,
2485
+ link: `${APPLICATION_PATH}/employee/wt/fixed-point/request-service`
2523
2486
  }, {
2524
2487
  label: t("WT_FIXED_POINT_SCHEDULE_MANAGEMENT"),
2525
2488
  link: `${APPLICATION_PATH}/employee/wt/fixed-point-schedule`
@@ -2832,6 +2795,12 @@ const WTDesktopInbox = ({
2832
2795
  const {
2833
2796
  t
2834
2797
  } = useTranslation();
2798
+ const getCreatedAtValue = React.useCallback(row => {
2799
+ var _row$searchData, _row$searchData$audit, _row$workflowData, _row$workflowData$aud;
2800
+ 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);
2801
+ if (!createdTime) return "";
2802
+ return `${Digit.DateUtils.ConvertEpochToDate(createdTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(createdTime)}`;
2803
+ }, []);
2835
2804
  const [FilterComponent, setComp] = useState(() => {
2836
2805
  var _Digit$ComponentRegis;
2837
2806
  return (_Digit$ComponentRegis = Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent(filterComponent);
@@ -2844,39 +2813,48 @@ const WTDesktopInbox = ({
2844
2813
  const [clearSearchCalled, setClearSearchCalled] = useState(false);
2845
2814
  const columns = React.useMemo(() => props.isSearch ? tableConfig.searchColumns(props) : tableConfig.inboxColumns(props) || [], []);
2846
2815
  const inboxCsvColumns = React.useMemo(() => {
2847
- var _columns$, _columns$2, _columns$3, _columns$4, _columns$5;
2848
- return [{
2816
+ var _columns$, _columns$2, _columns$3, _columns$4, _columns$find2;
2817
+ const csvColumns = [{
2849
2818
  Header: (columns === null || columns === void 0 ? void 0 : (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.Header) || t("WT_BOOKING_NO"),
2850
2819
  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) || "";
2820
+ var _row$searchData2;
2821
+ return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : _row$searchData2.bookingNo) || "";
2853
2822
  }
2854
2823
  }, {
2855
2824
  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
2825
  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) || "";
2826
+ var _row$searchData3, _row$searchData3$appl;
2827
+ 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
2828
  }
2860
2829
  }, {
2861
2830
  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
2831
  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) || "";
2832
+ var _row$searchData4, _row$searchData4$appl;
2833
+ 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
2834
  }
2866
2835
  }, {
2867
2836
  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
2837
  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) : "";
2838
+ var _row$searchData5;
2839
+ return row !== null && row !== void 0 && (_row$searchData5 = row.searchData) !== null && _row$searchData5 !== void 0 && _row$searchData5.localityCode ? t(row.searchData.localityCode) : "";
2871
2840
  }
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"),
2841
+ }];
2842
+ if (columns !== null && columns !== void 0 && columns.some(column => (column === null || column === void 0 ? void 0 : column.id) === "createdTime")) {
2843
+ var _columns$find;
2844
+ csvColumns.push({
2845
+ 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"),
2846
+ exportAccessor: row => getCreatedAtValue(row)
2847
+ });
2848
+ }
2849
+ csvColumns.push({
2850
+ 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
2851
  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) : "";
2852
+ var _row$workflowData2, _row$workflowData2$st;
2853
+ 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
2854
  }
2878
- }];
2879
- }, [columns, t]);
2855
+ });
2856
+ return csvColumns;
2857
+ }, [columns, getCreatedAtValue, t]);
2880
2858
  let result;
2881
2859
  if (props.isLoading) {
2882
2860
  result = /*#__PURE__*/React.createElement(Loader, null);
@@ -5033,20 +5011,20 @@ const DriverCard = ({
5033
5011
  }, [driver.lat, driver.lng]);
5034
5012
  useEffect(() => {
5035
5013
  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;
5014
+ if (driver.activeDeliveryLat && driver.activeDeliveryLng) {
5015
+ const dist = lastResolvedDest.current.lat ? calculateDistance(lastResolvedDest.current.lat, lastResolvedDest.current.lng, driver.activeDeliveryLat, driver.activeDeliveryLng) : Infinity;
5038
5016
  if (dist > 0.2) {
5039
- const data = await reverseGeocode(driver.deliveryLat, driver.deliveryLng);
5017
+ const data = await reverseGeocode(driver.activeDeliveryLat, driver.activeDeliveryLng);
5040
5018
  setDeliveryAddress(getAreaName(data));
5041
5019
  lastResolvedDest.current = {
5042
- lat: driver.deliveryLat,
5043
- lng: driver.deliveryLng
5020
+ lat: driver.activeDeliveryLat,
5021
+ lng: driver.activeDeliveryLng
5044
5022
  };
5045
5023
  }
5046
5024
  }
5047
5025
  };
5048
5026
  resolveDest();
5049
- }, [driver.deliveryLat, driver.deliveryLng]);
5027
+ }, [driver.activeDeliveryLat, driver.activeDeliveryLng]);
5050
5028
  const driverDetails = useMemo(() => {
5051
5029
  if (!vendorList || !vendorList.length) return {
5052
5030
  name: "Unknown",
@@ -5343,7 +5321,7 @@ function LiveTrackingSystem() {
5343
5321
  });
5344
5322
  const onlineCount = Object.values(drivers).filter(d => d.isOnline).length;
5345
5323
  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;
5324
+ const activeDeliveries = Object.values(drivers).filter(d => d.isOnline && d.activeDeliveryLat && d.activeDeliveryLng).length;
5347
5325
  const toggleSidebar = () => {
5348
5326
  setShowSidebar(!showSidebar);
5349
5327
  };
@@ -5778,13 +5756,13 @@ function LiveTrackingSystem() {
5778
5756
  }, /*#__PURE__*/React.createElement("strong", null, "Current Location"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Address, {
5779
5757
  lat: selectedDriver.lat,
5780
5758
  lng: selectedDriver.lng
5781
- }))), selectedDriver.deliveryLat && selectedDriver.deliveryLng && /*#__PURE__*/React.createElement("div", {
5759
+ }))), selectedDriver.activeDeliveryLat && selectedDriver.activeDeliveryLng && /*#__PURE__*/React.createElement("div", {
5782
5760
  style: {
5783
5761
  marginBottom: "8px"
5784
5762
  }
5785
5763
  }, /*#__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
5764
+ lat: selectedDriver.activeDeliveryLat,
5765
+ lng: selectedDriver.activeDeliveryLng
5788
5766
  }))), /*#__PURE__*/React.createElement("div", {
5789
5767
  style: {
5790
5768
  display: "grid",
@@ -5801,18 +5779,18 @@ function LiveTrackingSystem() {
5801
5779
  color: "#666",
5802
5780
  fontSize: "10px"
5803
5781
  }
5804
- }, t("WT_LAST_UPDATE"), ": ", new Date(selectedDriver.lastUpdate).toLocaleString()))))), selectedDriver && selectedDriver.deliveryLat != null && selectedDriver.deliveryLng != null && /*#__PURE__*/React.createElement(Marker, {
5782
+ }, t("WT_LAST_UPDATE"), ": ", new Date(selectedDriver.lastUpdate).toLocaleString()))))), selectedDriver && selectedDriver.activeDeliveryLat != null && selectedDriver.activeDeliveryLng != null && /*#__PURE__*/React.createElement(Marker, {
5805
5783
  key: `dest-${selectedDriver.driverId}`,
5806
- position: [Number(selectedDriver.deliveryLat), Number(selectedDriver.deliveryLng)],
5784
+ position: [Number(selectedDriver.activeDeliveryLat), Number(selectedDriver.activeDeliveryLng)],
5807
5785
  icon: destinationIcon
5808
- }), showRoutes && selectedDriver && selectedDriver.lat && selectedDriver.lng && selectedDriver.deliveryLat && selectedDriver.deliveryLng && /*#__PURE__*/React.createElement(RouteLayer, {
5786
+ }), showRoutes && selectedDriver && selectedDriver.lat && selectedDriver.lng && selectedDriver.activeDeliveryLat && selectedDriver.activeDeliveryLng && /*#__PURE__*/React.createElement(RouteLayer, {
5809
5787
  start: {
5810
5788
  lat: selectedDriver.lat,
5811
5789
  lng: selectedDriver.lng
5812
5790
  },
5813
5791
  end: {
5814
- lat: selectedDriver.deliveryLat,
5815
- lng: selectedDriver.deliveryLng
5792
+ lat: selectedDriver.activeDeliveryLat,
5793
+ lng: selectedDriver.activeDeliveryLng
5816
5794
  },
5817
5795
  color: "#2196f3",
5818
5796
  weight: 6
@@ -8423,6 +8401,7 @@ const EmployeeApp = ({
8423
8401
  } = useTranslation();
8424
8402
  const location = useLocation();
8425
8403
  const fixedPointInboxLabel = t("WT_FIXED_POINT") !== "WT_FIXED_POINT" ? `${t("WT_FIXED_POINT")} ${t("ES_COMMON_INBOX")}` : "Fixed Point Inbox";
8404
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
8426
8405
  sessionStorage.removeItem("revalidateddone");
8427
8406
  const getDynamicBreadcrumbs = () => {
8428
8407
  const pathname = location.pathname;
@@ -8455,7 +8434,7 @@ const EmployeeApp = ({
8455
8434
  });
8456
8435
  } else if (pathname.includes("/fixed-point/request-service")) {
8457
8436
  crumbs.push({
8458
- label: t("WT_APPLICATION_CREATE_FIXED_POINT")
8437
+ label: emergencyRequestLabel
8459
8438
  });
8460
8439
  } else if (pathname.includes("/request-service")) {
8461
8440
  crumbs.push({
@@ -15666,6 +15645,15 @@ const WTApplicationDetails = () => {
15666
15645
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
15667
15646
  className: "cell-text"
15668
15647
  }, value);
15648
+ const getCreatedTime = row => {
15649
+ var _row$searchData, _row$searchData$audit, _row$workflowData, _row$workflowData$aud;
15650
+ 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);
15651
+ };
15652
+ const getFormattedCreatedAt = row => {
15653
+ const createdTime = getCreatedTime(row);
15654
+ if (!createdTime) return "";
15655
+ return `${Digit.DateUtils.ConvertEpochToDate(createdTime)} ${Digit.DateUtils.ConvertEpochToTimeInHours(createdTime)}`;
15656
+ };
15669
15657
  const GetMobCell = value => /*#__PURE__*/React.createElement("span", {
15670
15658
  className: "sla-cell"
15671
15659
  }, value);
@@ -15675,8 +15663,8 @@ const TableConfig = t => ({
15675
15663
  Header: t("WT_BOOKING_NO"),
15676
15664
  id: "bookingNo",
15677
15665
  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"]) || "";
15666
+ var _row$searchData2;
15667
+ return (row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : _row$searchData2["bookingNo"]) || "";
15680
15668
  },
15681
15669
  Cell: ({
15682
15670
  row
@@ -15696,8 +15684,8 @@ const TableConfig = t => ({
15696
15684
  Header: t("WT_APPLICANT_NAME"),
15697
15685
  id: "applicantName",
15698
15686
  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"]) || "";
15687
+ var _row$searchData3, _row$searchData3$appl;
15688
+ 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
15689
  },
15702
15690
  Cell: row => {
15703
15691
  var _row$cell, _row$cell$row, _row$cell$row$origina, _row$cell$row$origina2, _row$cell$row$origina3;
@@ -15711,8 +15699,8 @@ const TableConfig = t => ({
15711
15699
  Header: t("WT_MOBILE_NUMBER"),
15712
15700
  id: "mobileNumber",
15713
15701
  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"]) || "";
15702
+ var _row$searchData4, _row$searchData4$appl;
15703
+ 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
15704
  },
15717
15705
  Cell: row => {
15718
15706
  var _row$cell2, _row$cell2$row, _row$cell2$row$origin, _row$cell2$row$origin2, _row$cell2$row$origin3;
@@ -15726,8 +15714,8 @@ const TableConfig = t => ({
15726
15714
  Header: t("LOCALITY"),
15727
15715
  id: "localityCode",
15728
15716
  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"]) || "";
15717
+ var _row$searchData5;
15718
+ return (row === null || row === void 0 ? void 0 : (_row$searchData5 = row.searchData) === null || _row$searchData5 === void 0 ? void 0 : _row$searchData5["localityCode"]) || "";
15731
15719
  },
15732
15720
  Cell: ({
15733
15721
  row
@@ -15739,12 +15727,22 @@ const TableConfig = t => ({
15739
15727
  var _original$searchData6;
15740
15728
  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
15729
  }
15730
+ }, {
15731
+ Header: t("CREATED_AT"),
15732
+ id: "createdTime",
15733
+ accessor: row => getFormattedCreatedAt(row),
15734
+ Cell: ({
15735
+ row
15736
+ }) => {
15737
+ return GetCell(getFormattedCreatedAt(row === null || row === void 0 ? void 0 : row.original));
15738
+ },
15739
+ mobileCell: original => GetMobCell(getFormattedCreatedAt(original))
15742
15740
  }, {
15743
15741
  Header: t("WT_STATUS"),
15744
15742
  id: "applicationStatus",
15745
15743
  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"]) || "";
15744
+ var _row$workflowData2, _row$workflowData2$st;
15745
+ 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
15746
  },
15749
15747
  Cell: ({
15750
15748
  row
@@ -15767,8 +15765,8 @@ const TableConfig = t => ({
15767
15765
  Header: t("MT_BOOKING_NO"),
15768
15766
  id: "bookingNo",
15769
15767
  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"]) || "";
15768
+ var _row$searchData6;
15769
+ return (row === null || row === void 0 ? void 0 : (_row$searchData6 = row.searchData) === null || _row$searchData6 === void 0 ? void 0 : _row$searchData6["bookingNo"]) || "";
15772
15770
  },
15773
15771
  Cell: ({
15774
15772
  row
@@ -15788,8 +15786,8 @@ const TableConfig = t => ({
15788
15786
  Header: t("MT_APPLICANT_NAME"),
15789
15787
  id: "applicantName",
15790
15788
  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"]) || "";
15789
+ var _row$searchData7, _row$searchData7$appl;
15790
+ 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
15791
  },
15794
15792
  Cell: row => {
15795
15793
  var _row$cell3, _row$cell3$row, _row$cell3$row$origin, _row$cell3$row$origin2, _row$cell3$row$origin3;
@@ -15803,8 +15801,8 @@ const TableConfig = t => ({
15803
15801
  Header: t("MT_MOBILE_NUMBER"),
15804
15802
  id: "mobileNumber",
15805
15803
  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"]) || "";
15804
+ var _row$searchData8, _row$searchData8$appl;
15805
+ 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
15806
  },
15809
15807
  Cell: row => {
15810
15808
  var _row$cell4, _row$cell4$row, _row$cell4$row$origin, _row$cell4$row$origin2, _row$cell4$row$origin3;
@@ -15818,8 +15816,8 @@ const TableConfig = t => ({
15818
15816
  Header: t("LOCALITY"),
15819
15817
  id: "localityCode",
15820
15818
  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"]) || "";
15819
+ var _row$searchData9;
15820
+ return (row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : _row$searchData9["localityCode"]) || "";
15823
15821
  },
15824
15822
  Cell: ({
15825
15823
  row
@@ -15835,8 +15833,8 @@ const TableConfig = t => ({
15835
15833
  Header: t("MT_STATUS"),
15836
15834
  id: "applicationStatus",
15837
15835
  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"]) || "";
15836
+ var _row$workflowData3, _row$workflowData3$st;
15837
+ 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
15838
  },
15841
15839
  Cell: ({
15842
15840
  row
@@ -15859,8 +15857,8 @@ const TableConfig = t => ({
15859
15857
  Header: t("MT_BOOKING_NO"),
15860
15858
  id: "bookingNo",
15861
15859
  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"]) || "";
15860
+ var _row$searchData0;
15861
+ return (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : _row$searchData0["bookingNo"]) || "";
15864
15862
  },
15865
15863
  Cell: ({
15866
15864
  row
@@ -15880,8 +15878,8 @@ const TableConfig = t => ({
15880
15878
  Header: t("MT_APPLICANT_NAME"),
15881
15879
  id: "applicantName",
15882
15880
  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"]) || "";
15881
+ var _row$searchData1, _row$searchData1$appl;
15882
+ 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
15883
  },
15886
15884
  Cell: row => {
15887
15885
  var _row$cell5, _row$cell5$row, _row$cell5$row$origin, _row$cell5$row$origin2, _row$cell5$row$origin3;
@@ -15895,8 +15893,8 @@ const TableConfig = t => ({
15895
15893
  Header: t("MT_MOBILE_NUMBER"),
15896
15894
  id: "mobileNumber",
15897
15895
  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"]) || "";
15896
+ var _row$searchData10, _row$searchData10$app;
15897
+ 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
15898
  },
15901
15899
  Cell: row => {
15902
15900
  var _row$cell6, _row$cell6$row, _row$cell6$row$origin, _row$cell6$row$origin2, _row$cell6$row$origin3;
@@ -15910,8 +15908,8 @@ const TableConfig = t => ({
15910
15908
  Header: t("LOCALITY"),
15911
15909
  id: "localityCode",
15912
15910
  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"]) || "";
15911
+ var _row$searchData11;
15912
+ return (row === null || row === void 0 ? void 0 : (_row$searchData11 = row.searchData) === null || _row$searchData11 === void 0 ? void 0 : _row$searchData11["localityCode"]) || "";
15915
15913
  },
15916
15914
  Cell: ({
15917
15915
  row
@@ -15927,8 +15925,8 @@ const TableConfig = t => ({
15927
15925
  Header: t("MT_STATUS"),
15928
15926
  id: "applicationStatus",
15929
15927
  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"]) || "";
15928
+ var _row$workflowData4, _row$workflowData4$st;
15929
+ 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
15930
  },
15933
15931
  Cell: ({
15934
15932
  row
@@ -25381,24 +25379,17 @@ const MTCitizenCard = () => {
25381
25379
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
25382
25380
  };
25383
25381
 
25384
- const EmergencyFixedPointInfoPage$1 = ({
25382
+ const EmergencyFixedPointInfoPage = ({
25385
25383
  t,
25386
25384
  onSelect,
25387
25385
  formData,
25388
25386
  config,
25389
25387
  userType
25390
25388
  }) => {
25391
- var _formData$serviceType, _formData$serviceType2;
25392
25389
  const [existingDataSet, setExistingDataSet] = useState("");
25393
25390
  const [showModal, setShowModal] = useState(false);
25394
25391
  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];
25392
+ const emergencyRequestLabel = t("WT_EMERGENCY_WATER_TANKER_REQUEST") !== "WT_EMERGENCY_WATER_TANKER_REQUEST" ? t("WT_EMERGENCY_WATER_TANKER_REQUEST") : "Emergency Water Tanker Request";
25402
25393
  const handleOpenModal = () => {
25403
25394
  isExistingPopupRequired ? setShowModal(true) : goNext();
25404
25395
  };
@@ -25420,7 +25411,7 @@ const EmergencyFixedPointInfoPage$1 = ({
25420
25411
  gap: "12px",
25421
25412
  justifyContent: "flex-start"
25422
25413
  }
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", {
25414
+ }, /*#__PURE__*/React.createElement(CardHeader, null, emergencyRequestLabel), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
25424
25415
  className: "primaryColor"
25425
25416
  }, t("SV_DOC_REQ_SCREEN_SUB_HEADER")), /*#__PURE__*/React.createElement("p", {
25426
25417
  className: "primaryColor"
@@ -25791,7 +25782,7 @@ const WTEmergencyFixedPointCheckPage = ({
25791
25782
  onSubmit,
25792
25783
  value: _value = {}
25793
25784
  }) => {
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;
25785
+ 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
25786
  const {
25796
25787
  t
25797
25788
  } = useTranslation();
@@ -25809,6 +25800,7 @@ const WTEmergencyFixedPointCheckPage = ({
25809
25800
  const [agree, setAgree] = useState(false);
25810
25801
  const immediateRequired = requestDetails !== null && requestDetails !== void 0 && requestDetails.extraCharge ? "YES" : "NO";
25811
25802
  const [fileUrl, setFileUrl] = useState(null);
25803
+ 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
25804
  const baseUrl = pathname.includes("citizen") ? `${APPLICATION_PATH}/citizen/wt/fixed-point/request-service` : `${APPLICATION_PATH}/employee/wt/fixed-point/request-service`;
25813
25805
  const setdeclarationhandler = () => {
25814
25806
  setAgree(!agree);
@@ -25876,7 +25868,7 @@ const WTEmergencyFixedPointCheckPage = ({
25876
25868
  }), /*#__PURE__*/React.createElement(Row, {
25877
25869
  label: t("STREET_NAME"),
25878
25870
  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, {
25871
+ })), isWaterTankerService && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(CardSubHeader, null, t("WT_REQUEST_DETAILS")), /*#__PURE__*/React.createElement(StatusTable, {
25880
25872
  style: {
25881
25873
  marginTop: "30px",
25882
25874
  marginBottom: "30px"
@@ -25919,7 +25911,7 @@ const WTEmergencyFixedPointCheckPage = ({
25919
25911
  }), /*#__PURE__*/React.createElement(Row, {
25920
25912
  label: t("WT_IMMEDIATE"),
25921
25913
  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, {
25914
+ }))), (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
25915
  style: {
25924
25916
  marginTop: "30px",
25925
25917
  marginBottom: "30px"
@@ -25945,7 +25937,7 @@ const WTEmergencyFixedPointCheckPage = ({
25945
25937
  }), /*#__PURE__*/React.createElement(Row, {
25946
25938
  label: t("MT_SPECIAL_REQUEST"),
25947
25939
  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, {
25940
+ }))), (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
25941
  style: {
25950
25942
  marginTop: "30px",
25951
25943
  marginBottom: "30px"
@@ -26023,18 +26015,10 @@ const WTEmergencyFixedPointAcknowledgement = ({
26023
26015
  const {
26024
26016
  tenants
26025
26017
  } = 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
26018
  useEffect(() => {
26035
26019
  try {
26036
26020
  data.tenantId = tenantId;
26037
- let formdata = EmergencyFixedPointInfoPage(data);
26021
+ let formdata = emergencyWaterTankerPayload(data);
26038
26022
  mutation.mutate(formdata, {
26039
26023
  onSuccess
26040
26024
  });
@@ -26311,7 +26295,7 @@ const fixedPointConfig = [{
26311
26295
  head: "FP_REQUEST_DETAILS",
26312
26296
  body: [{
26313
26297
  route: "fp-request-details",
26314
- component: "EmergencyFixedPointRequestDetails",
26298
+ component: "RequestDetails",
26315
26299
  withoutLabel: true,
26316
26300
  key: "requestDetails",
26317
26301
  type: "component",
@@ -26319,11 +26303,11 @@ const fixedPointConfig = [{
26319
26303
  nextStep: null,
26320
26304
  texts: {
26321
26305
  submitBarLabel: "COMMON_SAVE_NEXT",
26322
- header: "FP_REQUEST_DETAILS"
26306
+ header: "WT_REQUEST_DETAILS"
26323
26307
  },
26324
26308
  timeLine: [{
26325
26309
  currentStep: 3,
26326
- actions: "FP_REQUEST_DETAILS"
26310
+ actions: "ES_REQUEST_DETAILS"
26327
26311
  }]
26328
26312
  }]
26329
26313
  }];
@@ -26355,10 +26339,12 @@ const WTEmergencyFixedPointCreate = () => {
26355
26339
  config = config.concat(obj.body);
26356
26340
  });
26357
26341
  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
- }
26342
+ useEffect(() => {
26343
+ if (params && Object.keys(params).length > 0 && window.location.href.includes("/fp-info") && sessionStorage.getItem("docReqScreenByBack") !== "true") {
26344
+ clearParams();
26345
+ queryClient.invalidateQueries("FP_Create");
26346
+ }
26347
+ }, [params, clearParams, queryClient]);
26362
26348
  const goNext = (skipStep, index, isAddMultiple, key) => {
26363
26349
  let currentPath = pathname.split("/").pop();
26364
26350
  let isMultiple = false;
@@ -26570,7 +26556,7 @@ const WTLinks = ({
26570
26556
  i18nKey: t("WT_VIEW_APPLICATIONS")
26571
26557
  }, {
26572
26558
  link: `${matchPath}/wt/wt-Vendor`,
26573
- i18nKey: t("WT_VENDOR_LOGIN")
26559
+ i18nKey: t("Vendor Management")
26574
26560
  }];
26575
26561
  return /*#__PURE__*/React.createElement(CitizenHomeCard, {
26576
26562
  header: t("WATER_TANKER_SERVICE"),
@@ -26620,7 +26606,7 @@ const componentsToRegister = {
26620
26606
  AddFillingPointMetaData,
26621
26607
  WTSearchPointAddress: SearchFillingPointAddress,
26622
26608
  VendorAssign,
26623
- EmergencyFixedPointInfoPage: EmergencyFixedPointInfoPage$1,
26609
+ EmergencyFixedPointInfoPage,
26624
26610
  EmergencyFixedPointRequestDetails,
26625
26611
  EmergencyFixedPointCheckPage: WTEmergencyFixedPointCheckPage,
26626
26612
  WTEmergencyFixedPointAcknowledgement,