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

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';
@@ -746,7 +746,8 @@ const WTSearchApplication = ({
746
746
  data,
747
747
  count,
748
748
  setShowToast,
749
- moduleCode
749
+ moduleCode,
750
+ isFixedPoint
750
751
  }) => {
751
752
  const isMobile = window.Digit.Utils.browser.isMobile();
752
753
  const user = Digit.UserService.getUser().info;
@@ -775,6 +776,17 @@ const WTSearchApplication = ({
775
776
  defaultValues
776
777
  });
777
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) || [];
778
790
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
779
791
  className: "cell-text"
780
792
  }, value);
@@ -992,6 +1004,19 @@ const WTSearchApplication = ({
992
1004
  }),
993
1005
  name: "toDate",
994
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
+ })
995
1020
  }))), /*#__PURE__*/React.createElement("div", {
996
1021
  className: "wt-search-actions",
997
1022
  style: {
@@ -2626,7 +2651,7 @@ const SearchApplication = ({
2626
2651
  defaultSearchParams,
2627
2652
  clearSearch: _clearSearch
2628
2653
  }) => {
2629
- var _searchFields$filter;
2654
+ var _searchParams$service, _searchFields$filter;
2630
2655
  const {
2631
2656
  t
2632
2657
  } = useTranslation();
@@ -2703,6 +2728,18 @@ const SearchApplication = ({
2703
2728
  onClick: clearSearch
2704
2729
  }, t("ES_COMMON_CLEAR_SEARCH"));
2705
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) || [];
2706
2743
  return /*#__PURE__*/React.createElement("form", {
2707
2744
  id: "search-form",
2708
2745
  onSubmit: handleSubmit(onSubmitInput),
@@ -2753,7 +2790,22 @@ const SearchApplication = ({
2753
2790
  },
2754
2791
  className: "inbox-search-form-error"
2755
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);
2756
- })), /*#__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", {
2757
2809
  className: "formcomposer-section-button"
2758
2810
  }, isInboxPage ? /*#__PURE__*/React.createElement("div", {
2759
2811
  className: "generic-button clear-search"
@@ -6079,7 +6131,7 @@ const AddFixFillAddress = ({
6079
6131
  isEdit,
6080
6132
  userDetails
6081
6133
  }) => {
6082
- var _location$state, _formData$address, _formData$address2, _formData$address3, _formData$address4, _formData$address5, _formData$address6, _formData$address7, _formData$address8, _formData$address9, _formData$address0, _formData$address1, _formData$address10, _formData$address11, _userDetails$addresse;
6134
+ var _location$state, _formData$address, _formData$address2, _formData$address3, _formData$address4, _formData$address5, _formData$address6, _formData$address7, _formData$address8, _formData$address9, _formData$address0, _formData$address1, _formData$address10, _formData$address11, _formData$address12, _userDetails$addresse;
6083
6135
  const {
6084
6136
  data: allCities
6085
6137
  } = Digit.Hooks.useTenants();
@@ -6094,12 +6146,14 @@ const AddFixFillAddress = ({
6094
6146
  const [landmark, setLandmark] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address6 = formData.address) === null || _formData$address6 === void 0 ? void 0 : _formData$address6.landmark) || "");
6095
6147
  const [addressLine1, setAddressLine1] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address7 = formData.address) === null || _formData$address7 === void 0 ? void 0 : _formData$address7.addressLine1) || "");
6096
6148
  const [addressLine2, setAddressLine2] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address8 = formData.address) === null || _formData$address8 === void 0 ? void 0 : _formData$address8.addressLine2) || "");
6097
- const [addressType, setAddressType] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address9 = formData.address) === null || _formData$address9 === void 0 ? void 0 : _formData$address9.addressType) || null);
6149
+ const [addressType, setAddressType] = useState(formData !== null && formData !== void 0 && (_formData$address9 = formData.address) !== null && _formData$address9 !== void 0 && _formData$address9.addressType ? allOptions.find(a => a.code === formData.address.addressType) || formData.address.addressType : allOptions.find(a => a.code === "PERMANENT"));
6098
6150
  const [zone, setZone] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address0 = formData.address) === null || _formData$address0 === void 0 ? void 0 : _formData$address0.zone) || "");
6099
6151
  const [block, setBlock] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address1 = formData.address) === null || _formData$address1 === void 0 ? void 0 : _formData$address1.block) || "");
6100
- const [latitude, setLatitude] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address10 = formData.address) === null || _formData$address10 === void 0 ? void 0 : _formData$address10.latitude) || "");
6101
- const [longitude, setLongitude] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address11 = formData.address) === null || _formData$address11 === void 0 ? void 0 : _formData$address11.longitude) || "");
6152
+ const [assembly, setAssembly] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address10 = formData.address) === null || _formData$address10 === void 0 ? void 0 : _formData$address10.assembly) || "");
6153
+ const [latitude, setLatitude] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address11 = formData.address) === null || _formData$address11 === void 0 ? void 0 : _formData$address11.latitude) || "");
6154
+ const [longitude, setLongitude] = useState((formData === null || formData === void 0 ? void 0 : (_formData$address12 = formData.address) === null || _formData$address12 === void 0 ? void 0 : _formData$address12.longitude) || "");
6102
6155
  const [selectedAddress, setSelectedAddress] = useState("");
6156
+ const [showPincodeSuggestions, setShowPincodeSuggestions] = useState(false);
6103
6157
  const isInitialized = useRef(!isEdit);
6104
6158
  const lastSyncedAddress = useRef(null);
6105
6159
  const lastBookingId = useRef(null);
@@ -6131,27 +6185,32 @@ const AddFixFillAddress = ({
6131
6185
  const structuredLocality = useMemo(() => {
6132
6186
  let localities = [];
6133
6187
  const boundaries = Array.isArray(boundaryData) ? boundaryData : boundaryData ? [boundaryData] : [];
6134
- const extractLocalities = (node, zone = null, ward = null) => {
6188
+ const extractLocalities = (node, zone = null, ward = null, assembly = null) => {
6135
6189
  if (!node) return;
6136
6190
  let currentZone = zone;
6137
6191
  let currentWard = ward;
6192
+ let currentAssembly = assembly;
6138
6193
  if (node.label === "Zone" || node.label === "ZONE") {
6139
6194
  currentZone = node.localname || node.code || node.name;
6140
6195
  }
6141
6196
  if (node.label === "Ward" || node.label === "WARD" || node.label === "Block" || node.label === "BLOCK") {
6142
6197
  currentWard = node.code || node.localname || node.name;
6143
6198
  }
6199
+ if (node.label === "Assembly Constituency" || node.label === "ASSEMBLY_CONSTITUENCY") {
6200
+ currentAssembly = node.code || node.localname || node.name;
6201
+ }
6144
6202
  if (node.label === "Locality" || node.label === "LOCALITY") {
6145
6203
  localities.push({
6146
6204
  ...node,
6147
6205
  name: node.localname || node.name || node.code,
6148
6206
  i18nkey: node.i18nkey || `${tenantId.replace(".", "_")}_REVENUE_${node.code}`.toUpperCase(),
6149
6207
  zone: currentZone,
6150
- ward: currentWard
6208
+ ward: currentWard,
6209
+ assembly: currentAssembly
6151
6210
  });
6152
6211
  }
6153
6212
  if (node.children && node.children.length > 0) {
6154
- node.children.forEach(child => extractLocalities(child, currentZone, currentWard));
6213
+ node.children.forEach(child => extractLocalities(child, currentZone, currentWard, currentAssembly));
6155
6214
  }
6156
6215
  };
6157
6216
  boundaries.forEach(rootNode => extractLocalities(rootNode));
@@ -6187,15 +6246,17 @@ const AddFixFillAddress = ({
6187
6246
  }, [structuredLocality, city]);
6188
6247
  const filteredLocalities = useMemo(() => {
6189
6248
  if (!pincode) return structuredLocality;
6249
+ const isPincodeInList = fetchedPincodes.some(p => p.code === pincode);
6250
+ if (!isPincodeInList) return structuredLocality;
6190
6251
  return structuredLocality.filter(loc => {
6191
6252
  if (!loc.pincode) return false;
6192
6253
  const pins = Array.isArray(loc.pincode) ? loc.pincode : [loc.pincode];
6193
6254
  return pins.some(p => p.toString() === pincode);
6194
6255
  });
6195
- }, [structuredLocality, pincode]);
6256
+ }, [structuredLocality, pincode, fetchedPincodes]);
6196
6257
  useEffect(() => {
6197
- var _formData$address12;
6198
- const currentId = (formData === null || formData === void 0 ? void 0 : formData.id) || (formData === null || formData === void 0 ? void 0 : formData.bookingId) || (formData === null || formData === void 0 ? void 0 : (_formData$address12 = formData.address) === null || _formData$address12 === void 0 ? void 0 : _formData$address12.id);
6258
+ var _formData$address13;
6259
+ const currentId = (formData === null || formData === void 0 ? void 0 : formData.id) || (formData === null || formData === void 0 ? void 0 : formData.bookingId) || (formData === null || formData === void 0 ? void 0 : (_formData$address13 = formData.address) === null || _formData$address13 === void 0 ? void 0 : _formData$address13.id);
6199
6260
  if (currentId && lastBookingId.current !== currentId) {
6200
6261
  isInitialized.current = false;
6201
6262
  lastBookingId.current = currentId;
@@ -6213,26 +6274,25 @@ const AddFixFillAddress = ({
6213
6274
  setLandmark(addressData.landmark || "");
6214
6275
  setAddressLine1(addressData.addressLine1 || "");
6215
6276
  setAddressLine2(addressData.addressLine2 || "");
6216
- setAddressType(allOptions.find(a => a.code === addressData.addressType) || addressData.addressType || null);
6277
+ setAddressType(allOptions.find(a => a.code === addressData.addressType) || addressData.addressType || allOptions.find(a => a.code === "PERMANENT"));
6217
6278
  setZone(addressData.zone || "");
6218
6279
  setBlock(addressData.block || "");
6280
+ setAssembly(addressData.assembly || "");
6219
6281
  setLatitude(addressData.latitude || "");
6220
6282
  setLongitude(addressData.longitude || "");
6221
- if (boundaryData || !addressData.cityCode) {
6222
- if (Array.isArray(boundaryData)) {
6223
- const localityObj = boundaryData.find(l => l.code === addressData.localityCode || l.code === addressData.locality || l.i18nkey === addressData.locality);
6224
- setLocality(localityObj || addressData.locality || null);
6225
- } else if (boundaryData && typeof boundaryData === "object") {
6226
- const match = boundaryData.code === addressData.localityCode || boundaryData.code === addressData.locality || boundaryData.i18nkey === addressData.locality;
6227
- setLocality(match ? boundaryData : addressData.locality || null);
6228
- } else {
6229
- setLocality(addressData.locality || null);
6283
+ if ((structuredLocality === null || structuredLocality === void 0 ? void 0 : structuredLocality.length) > 0 || !addressData.cityCode) {
6284
+ const localityObj = structuredLocality.find(l => l.code === addressData.localityCode || l.code === addressData.locality || l.i18nkey === addressData.locality);
6285
+ setLocality(localityObj || addressData.locality || null);
6286
+ if (localityObj) {
6287
+ if (!addressData.zone && localityObj.zone) setZone(localityObj.zone);
6288
+ if (!addressData.block && localityObj.ward) setBlock(localityObj.ward);
6289
+ if (!addressData.assembly && localityObj.assembly) setAssembly(localityObj.assembly);
6230
6290
  }
6231
6291
  isInitialized.current = true;
6232
6292
  lastSyncedAddress.current = JSON.stringify(addressData);
6233
6293
  }
6234
6294
  }
6235
- }, [formData === null || formData === void 0 ? void 0 : formData.address, city, allCities, boundaryData]);
6295
+ }, [formData === null || formData === void 0 ? void 0 : formData.address, city, allCities, structuredLocality]);
6236
6296
  useEffect(() => {
6237
6297
  if (!navigator.geolocation) return;
6238
6298
  navigator.geolocation.getCurrentPosition(pos => {
@@ -6252,11 +6312,12 @@ const AddFixFillAddress = ({
6252
6312
  setAddressLine2(selectedAddress.address2);
6253
6313
  setZone(selectedAddress.zone);
6254
6314
  setBlock(selectedAddress.block);
6315
+ setAssembly(selectedAddress.assembly);
6255
6316
  setLatitude(selectedAddress.latitude);
6256
6317
  setLongitude(selectedAddress.longitude);
6257
6318
  setAddressType(allOptions.find(a => a.code === selectedAddress.addressType));
6258
6319
  }
6259
- }, [selectedAddress]);
6320
+ }, [selectedAddress, structuredLocality]);
6260
6321
  useEffect(() => {
6261
6322
  if (!onSelect || !isInitialized.current) return;
6262
6323
  const currentAddress = {
@@ -6271,6 +6332,7 @@ const AddFixFillAddress = ({
6271
6332
  addressType: (addressType === null || addressType === void 0 ? void 0 : addressType.code) || addressType || null,
6272
6333
  zone: zone || "",
6273
6334
  block: block || "",
6335
+ assembly: assembly || "",
6274
6336
  latitude: latitude || "",
6275
6337
  longitude: longitude || ""
6276
6338
  };
@@ -6279,7 +6341,7 @@ const AddFixFillAddress = ({
6279
6341
  lastSyncedAddress.current = addressString;
6280
6342
  onSelect((config === null || config === void 0 ? void 0 : config.key) || "address", currentAddress);
6281
6343
  }
6282
- }, [pincode, city, locality, houseNo, landmark, addressLine1, addressLine2, streetName, addressType, zone, block, latitude, longitude]);
6344
+ }, [pincode, city, locality, houseNo, landmark, addressLine1, addressLine2, streetName, addressType, zone, block, assembly, latitude, longitude]);
6283
6345
  return /*#__PURE__*/React.createElement(CollapsibleCardPage$1, {
6284
6346
  title: t("WT_ADDRESS_DETAILS"),
6285
6347
  defaultOpen: true
@@ -6312,16 +6374,16 @@ const AddFixFillAddress = ({
6312
6374
  optionKey: "i18nKey",
6313
6375
  t: t,
6314
6376
  disable: true
6315
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("PINCODE"), " ", /*#__PURE__*/React.createElement("span", {
6377
+ })), /*#__PURE__*/React.createElement("div", {
6378
+ style: {
6379
+ position: "relative"
6380
+ }
6381
+ }, /*#__PURE__*/React.createElement(CardLabel, null, t("PINCODE"), " ", /*#__PURE__*/React.createElement("span", {
6316
6382
  className: "astericColor"
6317
- }, "*")), /*#__PURE__*/React.createElement(Dropdown, {
6318
- selected: (fetchedPincodes === null || fetchedPincodes === void 0 ? void 0 : fetchedPincodes.find(p => p.code === pincode)) || (pincode ? {
6319
- code: pincode,
6320
- name: pincode,
6321
- i18nKey: pincode
6322
- } : null),
6323
- select: val => {
6324
- const newPin = val === null || val === void 0 ? void 0 : val.code;
6383
+ }, "*")), /*#__PURE__*/React.createElement(TextInput, {
6384
+ value: pincode,
6385
+ onChange: e => {
6386
+ const newPin = e.target.value.replace(/\D/g, "").slice(0, 6);
6325
6387
  if (newPin !== pincode) {
6326
6388
  setLocality(null);
6327
6389
  setZone("");
@@ -6332,14 +6394,40 @@ const AddFixFillAddress = ({
6332
6394
  setAddressLine2("");
6333
6395
  }
6334
6396
  setPincode(newPin);
6397
+ setShowPincodeSuggestions(true);
6398
+ },
6399
+ onFocus: () => setShowPincodeSuggestions(true),
6400
+ onBlur: () => {
6401
+ setTimeout(() => setShowPincodeSuggestions(false), 200);
6335
6402
  },
6336
- option: fetchedPincodes || [],
6337
- optionKey: "i18nKey",
6338
- t: t,
6339
6403
  style: {
6340
6404
  width: "100%"
6405
+ },
6406
+ maxlength: 6
6407
+ }), showPincodeSuggestions && (fetchedPincodes === null || fetchedPincodes === void 0 ? void 0 : fetchedPincodes.length) > 0 && /*#__PURE__*/React.createElement("div", {
6408
+ className: "options-card",
6409
+ style: {
6410
+ position: "absolute",
6411
+ zIndex: 100,
6412
+ width: "100%",
6413
+ maxHeight: "200px",
6414
+ overflowY: "auto",
6415
+ backgroundColor: "white",
6416
+ boxShadow: "0 2px 5px rgba(0,0,0,0.1)"
6417
+ }
6418
+ }, fetchedPincodes.filter(p => !pincode || p.code.toLowerCase().includes(pincode.toLowerCase())).map((p, index) => /*#__PURE__*/React.createElement("div", {
6419
+ key: index,
6420
+ className: "cp profile-dropdown--item",
6421
+ style: {
6422
+ padding: "10px",
6423
+ borderBottom: "1px solid #eee",
6424
+ cursor: "pointer"
6425
+ },
6426
+ onClick: () => {
6427
+ setPincode(p.code);
6428
+ setShowPincodeSuggestions(false);
6341
6429
  }
6342
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("LOCALITY"), " ", /*#__PURE__*/React.createElement("span", {
6430
+ }, p.code)))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("LOCALITY"), " ", /*#__PURE__*/React.createElement("span", {
6343
6431
  className: "astericColor"
6344
6432
  }, "*")), /*#__PURE__*/React.createElement(Dropdown, {
6345
6433
  selected: locality,
@@ -6351,13 +6439,7 @@ const AddFixFillAddress = ({
6351
6439
  if (val !== null && val !== void 0 && val.name) setAddressLine2(val.name);
6352
6440
  if (val !== null && val !== void 0 && val.zone) setZone(val.zone);
6353
6441
  if (val !== null && val !== void 0 && val.ward) setBlock(val.ward);
6354
- if (val !== null && val !== void 0 && val.pincode) {
6355
- const p = Array.isArray(val.pincode) ? val.pincode[0] : val.pincode;
6356
- if (p) {
6357
- const sanitizedPin = p.toString().split(".")[0];
6358
- setPincode(sanitizedPin);
6359
- }
6360
- }
6442
+ if (val !== null && val !== void 0 && val.assembly) setAssembly(val.assembly);
6361
6443
  },
6362
6444
  option: filteredLocalities,
6363
6445
  optionKey: "i18nkey",
@@ -6413,6 +6495,14 @@ const AddFixFillAddress = ({
6413
6495
  style: {
6414
6496
  width: "100%"
6415
6497
  }
6498
+ })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("ASSEMBLY_CONSTITUENCY"), " ", /*#__PURE__*/React.createElement("span", {
6499
+ className: "astericColor"
6500
+ }, "*")), /*#__PURE__*/React.createElement(TextInput, {
6501
+ value: assembly,
6502
+ onChange: e => setAssembly(e.target.value),
6503
+ style: {
6504
+ width: "100%"
6505
+ }
6416
6506
  })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("LATITUDE"), " ", /*#__PURE__*/React.createElement("span", {
6417
6507
  className: "astericColor"
6418
6508
  }, "*")), /*#__PURE__*/React.createElement(TextInput, {
@@ -6449,6 +6539,7 @@ const AddFillingPointAddress = () => {
6449
6539
  } = useTranslation();
6450
6540
  const location = useLocation();
6451
6541
  const history = useHistory();
6542
+ const queryClient = useQueryClient();
6452
6543
  const queryParams = new URLSearchParams(location.search);
6453
6544
  const editId = queryParams.get("id");
6454
6545
  const [formData, setFormData] = useState({});
@@ -6528,6 +6619,7 @@ const AddFillingPointAddress = () => {
6528
6619
  setShowToast({
6529
6620
  label: editId ? t("WT_FILLING_POINT_UPDATED_SUCCESS") : t("WT_FILLING_POINT_CREATED_SUCCESS")
6530
6621
  });
6622
+ queryClient.invalidateQueries("wtFillPointSearchList");
6531
6623
  setTimeout(() => {
6532
6624
  setShowToast(null);
6533
6625
  history.push(`/digit-ui/employee/wt/search-filling-fix-point`);
@@ -16077,6 +16169,186 @@ const Filter = ({
16077
16169
  })))));
16078
16170
  };
16079
16171
 
16172
+ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16173
+ xmlns: "http://www.w3.org/2000/svg",
16174
+ viewBox: "0 0 24 24",
16175
+ fill: "#FFFFFF"
16176
+ }, /*#__PURE__*/React.createElement("path", {
16177
+ d: "M0 0h24v24H0V0z",
16178
+ fill: "none"
16179
+ }), /*#__PURE__*/React.createElement("path", {
16180
+ 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"
16181
+ }));
16182
+ const CloseBtn$1 = props => {
16183
+ return /*#__PURE__*/React.createElement("div", {
16184
+ className: "icon-bg-secondary",
16185
+ onClick: props.onClick
16186
+ }, /*#__PURE__*/React.createElement(Close$1, null));
16187
+ };
16188
+ const WTEditApplicationModal = ({
16189
+ t,
16190
+ applicationData,
16191
+ closeModal
16192
+ }) => {
16193
+ const [formData, setFormData] = useState({});
16194
+ useEffect(() => {
16195
+ if (applicationData) {
16196
+ var _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$addr, _applicationData$addr2, _applicationData$addr3, _applicationData$addr4, _applicationData$addr5, _applicationData$addr6;
16197
+ setFormData({
16198
+ name: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicantDetail) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.name) || "",
16199
+ mobileNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicantDetail) === null || _applicationData$appl2 === void 0 ? void 0 : _applicationData$appl2.mobileNumber) || "",
16200
+ emailId: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl3 = applicationData.applicantDetail) === null || _applicationData$appl3 === void 0 ? void 0 : _applicationData$appl3.emailId) || "",
16201
+ alternateNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl4 = applicationData.applicantDetail) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.alternateNumber) || "",
16202
+ houseNo: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr = applicationData.address) === null || _applicationData$addr === void 0 ? void 0 : _applicationData$addr.houseNo) || "",
16203
+ streetName: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr2 = applicationData.address) === null || _applicationData$addr2 === void 0 ? void 0 : _applicationData$addr2.streetName) || "",
16204
+ addressLine1: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr3 = applicationData.address) === null || _applicationData$addr3 === void 0 ? void 0 : _applicationData$addr3.addressLine1) || "",
16205
+ addressLine2: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr4 = applicationData.address) === null || _applicationData$addr4 === void 0 ? void 0 : _applicationData$addr4.addressLine2) || "",
16206
+ landmark: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr5 = applicationData.address) === null || _applicationData$addr5 === void 0 ? void 0 : _applicationData$addr5.landmark) || "",
16207
+ pincode: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr6 = applicationData.address) === null || _applicationData$addr6 === void 0 ? void 0 : _applicationData$addr6.pincode) || "",
16208
+ tankerType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerType) || "",
16209
+ waterType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterType) || "",
16210
+ tankerQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerQuantity) || "",
16211
+ waterQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterQuantity) || "",
16212
+ description: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.description) || "",
16213
+ deliveryDate: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryDate) || "",
16214
+ deliveryTime: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryTime) || ""
16215
+ });
16216
+ }
16217
+ }, [applicationData]);
16218
+ const handleChange = (e, key) => {
16219
+ setFormData({
16220
+ ...formData,
16221
+ [key]: e.target.value
16222
+ });
16223
+ };
16224
+ const handleUpdate = () => {
16225
+ console.log("Updated Data:", formData);
16226
+ closeModal();
16227
+ };
16228
+ const fieldGroups = [{
16229
+ title: "WT_APPLICANT_DETAILS",
16230
+ fields: [{
16231
+ label: "WT_APPLICANT_NAME",
16232
+ key: "name"
16233
+ }, {
16234
+ label: "WT_MOBILE_NUMBER",
16235
+ key: "mobileNumber"
16236
+ }, {
16237
+ label: "WT_ALT_MOBILE_NUMBER",
16238
+ key: "alternateNumber"
16239
+ }, {
16240
+ label: "WT_EMAIL_ID",
16241
+ key: "emailId"
16242
+ }]
16243
+ }, {
16244
+ title: "WT_ADDRESS_DETAILS",
16245
+ fields: [{
16246
+ label: "WT_HOUSE_NO",
16247
+ key: "houseNo"
16248
+ }, {
16249
+ label: "WT_STREET_NAME",
16250
+ key: "streetName"
16251
+ }, {
16252
+ label: "WT_ADDRESS_LINE1",
16253
+ key: "addressLine1"
16254
+ }, {
16255
+ label: "WT_ADDRESS_LINE2",
16256
+ key: "addressLine2"
16257
+ }, {
16258
+ label: "WT_LANDMARK",
16259
+ key: "landmark"
16260
+ }, {
16261
+ label: "WT_PINCODE",
16262
+ key: "pincode"
16263
+ }]
16264
+ }, {
16265
+ title: "WT_REQUEST_DETAILS",
16266
+ fields: [{
16267
+ label: "WT_TANKER_TYPE",
16268
+ key: "tankerType"
16269
+ }, {
16270
+ label: "WT_WATER_TYPE",
16271
+ key: "waterType"
16272
+ }, {
16273
+ label: "WT_TANKER_QUANTITY",
16274
+ key: "tankerQuantity"
16275
+ }, {
16276
+ label: "WT_WATER_QUANTITY",
16277
+ key: "waterQuantity"
16278
+ }, {
16279
+ label: "WT_DELIVERY_DATE",
16280
+ key: "deliveryDate",
16281
+ type: "date"
16282
+ }, {
16283
+ label: "WT_DELIVERY_TIME",
16284
+ key: "deliveryTime",
16285
+ type: "time"
16286
+ }, {
16287
+ label: "WT_DESCRIPTION",
16288
+ key: "description",
16289
+ fullWidth: true
16290
+ }]
16291
+ }];
16292
+ return /*#__PURE__*/React.createElement(Modal, {
16293
+ headerBarMain: /*#__PURE__*/React.createElement("h1", {
16294
+ className: "heading-m"
16295
+ }, t("WT_EDIT_APPLICATION_DETAILS")),
16296
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
16297
+ onClick: closeModal
16298
+ }),
16299
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
16300
+ actionCancelOnSubmit: closeModal,
16301
+ actionSaveLabel: t("CS_COMMON_UPDATE"),
16302
+ actionSaveOnSubmit: handleUpdate
16303
+ }, /*#__PURE__*/React.createElement(Card, {
16304
+ style: {
16305
+ maxHeight: "70vh",
16306
+ overflowY: "auto",
16307
+ padding: "20px"
16308
+ }
16309
+ }, fieldGroups.map((group, index) => /*#__PURE__*/React.createElement("div", {
16310
+ key: index,
16311
+ style: {
16312
+ marginBottom: "24px"
16313
+ }
16314
+ }, /*#__PURE__*/React.createElement("h2", {
16315
+ style: {
16316
+ fontSize: "18px",
16317
+ fontWeight: "bold",
16318
+ marginBottom: "16px",
16319
+ color: "#0B0C10",
16320
+ borderBottom: "1px solid #e0e0e0",
16321
+ paddingBottom: "8px"
16322
+ }
16323
+ }, t(group.title)), /*#__PURE__*/React.createElement("div", {
16324
+ style: {
16325
+ display: "flex",
16326
+ flexWrap: "wrap",
16327
+ gap: "16px"
16328
+ }
16329
+ }, group.fields.map(field => /*#__PURE__*/React.createElement("div", {
16330
+ key: field.key,
16331
+ style: {
16332
+ flex: field.fullWidth ? "1 1 100%" : "1 1 200px",
16333
+ maxWidth: "100%"
16334
+ }
16335
+ }, /*#__PURE__*/React.createElement(CardLabel, {
16336
+ style: {
16337
+ fontWeight: "600",
16338
+ marginBottom: "4px",
16339
+ fontSize: "14px"
16340
+ }
16341
+ }, t(field.label)), /*#__PURE__*/React.createElement(TextInput, {
16342
+ type: field.type || "text",
16343
+ value: formData[field.key],
16344
+ onChange: e => handleChange(e, field.key),
16345
+ style: {
16346
+ width: "100%",
16347
+ maxWidth: "100%"
16348
+ }
16349
+ }))))))));
16350
+ };
16351
+
16080
16352
  const configPTApproverApplication = ({
16081
16353
  t,
16082
16354
  action,
@@ -16780,7 +17052,7 @@ const Heading$1 = props => {
16780
17052
  className: "heading-m"
16781
17053
  }, props.label);
16782
17054
  };
16783
- const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
17055
+ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
16784
17056
  xmlns: "http://www.w3.org/2000/svg",
16785
17057
  viewBox: "0 0 24 24",
16786
17058
  fill: "#FFFFFF"
@@ -16790,11 +17062,11 @@ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16790
17062
  }), /*#__PURE__*/React.createElement("path", {
16791
17063
  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"
16792
17064
  }));
16793
- const CloseBtn$1 = props => {
17065
+ const CloseBtn$2 = props => {
16794
17066
  return /*#__PURE__*/React.createElement("div", {
16795
17067
  className: "icon-bg-secondary",
16796
17068
  onClick: props.onClick
16797
- }, /*#__PURE__*/React.createElement(Close$1, null));
17069
+ }, /*#__PURE__*/React.createElement(Close$2, null));
16798
17070
  };
16799
17071
  const ActionModal = ({
16800
17072
  t,
@@ -16966,7 +17238,7 @@ const ActionModal = ({
16966
17238
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
16967
17239
  label: t(config.label.heading)
16968
17240
  }),
16969
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
17241
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
16970
17242
  onClick: closeModal
16971
17243
  }),
16972
17244
  actionCancelLabel: t(config.label.cancel),
@@ -16991,7 +17263,7 @@ const Heading$2 = props => {
16991
17263
  className: "heading-m"
16992
17264
  }, props.label);
16993
17265
  };
16994
- const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17266
+ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
16995
17267
  xmlns: "http://www.w3.org/2000/svg",
16996
17268
  viewBox: "0 0 24 24",
16997
17269
  fill: "#FFFFFF"
@@ -17001,11 +17273,11 @@ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17001
17273
  }), /*#__PURE__*/React.createElement("path", {
17002
17274
  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"
17003
17275
  }));
17004
- const CloseBtn$2 = props => {
17276
+ const CloseBtn$3 = props => {
17005
17277
  return /*#__PURE__*/React.createElement("div", {
17006
17278
  className: "icon-bg-secondary",
17007
17279
  onClick: props.onClick
17008
- }, /*#__PURE__*/React.createElement(Close$2, null));
17280
+ }, /*#__PURE__*/React.createElement(Close$3, null));
17009
17281
  };
17010
17282
  const ActionModal$1 = ({
17011
17283
  t,
@@ -17133,7 +17405,7 @@ const ActionModal$1 = ({
17133
17405
  headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
17134
17406
  label: t(config.label.heading)
17135
17407
  }),
17136
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
17408
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17137
17409
  onClick: closeModal
17138
17410
  }),
17139
17411
  actionCancelLabel: t(config.label.cancel),
@@ -17160,7 +17432,7 @@ const Heading$3 = props => {
17160
17432
  className: "heading-m BPAheading-m"
17161
17433
  }, props.label);
17162
17434
  };
17163
- const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17435
+ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17164
17436
  xmlns: "http://www.w3.org/2000/svg",
17165
17437
  viewBox: "0 0 24 24",
17166
17438
  fill: "#FFFFFF"
@@ -17170,11 +17442,11 @@ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17170
17442
  }), /*#__PURE__*/React.createElement("path", {
17171
17443
  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"
17172
17444
  }));
17173
- const CloseBtn$3 = props => {
17445
+ const CloseBtn$4 = props => {
17174
17446
  return /*#__PURE__*/React.createElement("div", {
17175
17447
  className: "icon-bg-secondary",
17176
17448
  onClick: props.onClick
17177
- }, /*#__PURE__*/React.createElement(Close$3, null));
17449
+ }, /*#__PURE__*/React.createElement(Close$4, null));
17178
17450
  };
17179
17451
  const ActionModal$2 = ({
17180
17452
  t,
@@ -17287,7 +17559,7 @@ const ActionModal$2 = ({
17287
17559
  headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
17288
17560
  label: t(config.label.heading)
17289
17561
  }),
17290
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17562
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17291
17563
  onClick: closeModal
17292
17564
  }),
17293
17565
  actionCancelLabel: t(config.label.cancel),
@@ -17336,7 +17608,7 @@ const Heading$4 = props => {
17336
17608
  className: "heading-m BPAheading-m"
17337
17609
  }, props.label);
17338
17610
  };
17339
- const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17611
+ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17340
17612
  xmlns: "http://www.w3.org/2000/svg",
17341
17613
  viewBox: "0 0 24 24",
17342
17614
  fill: "#FFFFFF"
@@ -17346,11 +17618,11 @@ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17346
17618
  }), /*#__PURE__*/React.createElement("path", {
17347
17619
  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"
17348
17620
  }));
17349
- const CloseBtn$4 = props => {
17621
+ const CloseBtn$5 = props => {
17350
17622
  return /*#__PURE__*/React.createElement("div", {
17351
17623
  className: "icon-bg-secondary",
17352
17624
  onClick: props.onClick
17353
- }, /*#__PURE__*/React.createElement(Close$4, null));
17625
+ }, /*#__PURE__*/React.createElement(Close$5, null));
17354
17626
  };
17355
17627
  const ActionModal$3 = ({
17356
17628
  t,
@@ -17590,7 +17862,7 @@ const ActionModal$3 = ({
17590
17862
  headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
17591
17863
  label: t(config.label.heading)
17592
17864
  }),
17593
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17865
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
17594
17866
  onClick: closeModal
17595
17867
  }),
17596
17868
  actionCancelLabel: t(config.label.cancel),
@@ -17641,7 +17913,7 @@ const Heading$5 = props => {
17641
17913
  className: "heading-m BPAheading-m"
17642
17914
  }, props.label);
17643
17915
  };
17644
- const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17916
+ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
17645
17917
  xmlns: "http://www.w3.org/2000/svg",
17646
17918
  viewBox: "0 0 24 24",
17647
17919
  fill: "#FFFFFF"
@@ -17651,11 +17923,11 @@ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17651
17923
  }), /*#__PURE__*/React.createElement("path", {
17652
17924
  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"
17653
17925
  }));
17654
- const CloseBtn$5 = props => {
17926
+ const CloseBtn$6 = props => {
17655
17927
  return /*#__PURE__*/React.createElement("div", {
17656
17928
  className: "icon-bg-secondary",
17657
17929
  onClick: props.onClick
17658
- }, /*#__PURE__*/React.createElement(Close$5, null));
17930
+ }, /*#__PURE__*/React.createElement(Close$6, null));
17659
17931
  };
17660
17932
  const ActionModal$4 = ({
17661
17933
  t,
@@ -17779,7 +18051,7 @@ const ActionModal$4 = ({
17779
18051
  headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
17780
18052
  label: t(config.label.heading)
17781
18053
  }),
17782
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
18054
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
17783
18055
  onClick: closeModal
17784
18056
  }),
17785
18057
  actionCancelLabel: t(config.label.cancel),
@@ -18580,7 +18852,7 @@ const Heading$6 = props => {
18580
18852
  className: "heading-m"
18581
18853
  }, props.label);
18582
18854
  };
18583
- const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18855
+ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18584
18856
  xmlns: "http://www.w3.org/2000/svg",
18585
18857
  viewBox: "0 0 24 24",
18586
18858
  fill: "#FFFFFF"
@@ -18590,11 +18862,11 @@ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18590
18862
  }), /*#__PURE__*/React.createElement("path", {
18591
18863
  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"
18592
18864
  }));
18593
- const CloseBtn$6 = props => {
18865
+ const CloseBtn$7 = props => {
18594
18866
  return /*#__PURE__*/React.createElement("div", {
18595
18867
  className: "icon-bg-secondary",
18596
18868
  onClick: props.onClick
18597
- }, /*#__PURE__*/React.createElement(Close$6, null));
18869
+ }, /*#__PURE__*/React.createElement(Close$7, null));
18598
18870
  };
18599
18871
  const convertDateToEpochNew = (dateString, dayStartOrEnd = "dayend") => {
18600
18872
  try {
@@ -18854,7 +19126,7 @@ const ActionModal$5 = ({
18854
19126
  headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
18855
19127
  label: t(config.label.heading)
18856
19128
  }),
18857
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
19129
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
18858
19130
  onClick: closeModal
18859
19131
  }),
18860
19132
  actionCancelLabel: t(config.label.cancel),
@@ -18886,7 +19158,7 @@ const Heading$7 = props => {
18886
19158
  className: "heading-m"
18887
19159
  }, props.label);
18888
19160
  };
18889
- const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
19161
+ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
18890
19162
  xmlns: "http://www.w3.org/2000/svg",
18891
19163
  viewBox: "0 0 24 24",
18892
19164
  fill: "#FFFFFF"
@@ -18896,11 +19168,11 @@ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18896
19168
  }), /*#__PURE__*/React.createElement("path", {
18897
19169
  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"
18898
19170
  }));
18899
- const CloseBtn$7 = props => {
19171
+ const CloseBtn$8 = props => {
18900
19172
  return /*#__PURE__*/React.createElement("div", {
18901
19173
  className: "icon-bg-secondary",
18902
19174
  onClick: props.onClick
18903
- }, /*#__PURE__*/React.createElement(Close$7, null));
19175
+ }, /*#__PURE__*/React.createElement(Close$8, null));
18904
19176
  };
18905
19177
  const ActionModal$6 = ({
18906
19178
  t,
@@ -19010,7 +19282,7 @@ const ActionModal$6 = ({
19010
19282
  headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
19011
19283
  label: t(config.label.heading)
19012
19284
  }),
19013
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
19285
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19014
19286
  onClick: closeModal
19015
19287
  }),
19016
19288
  actionCancelLabel: t(config.label.cancel),
@@ -19034,7 +19306,7 @@ const Heading$8 = props => {
19034
19306
  className: "heading-m"
19035
19307
  }, props.label);
19036
19308
  };
19037
- const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19309
+ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19038
19310
  xmlns: "http://www.w3.org/2000/svg",
19039
19311
  viewBox: "0 0 24 24",
19040
19312
  fill: "#FFFFFF"
@@ -19044,11 +19316,11 @@ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19044
19316
  }), /*#__PURE__*/React.createElement("path", {
19045
19317
  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"
19046
19318
  }));
19047
- const CloseBtn$8 = props => {
19319
+ const CloseBtn$9 = props => {
19048
19320
  return /*#__PURE__*/React.createElement("div", {
19049
19321
  className: "icon-bg-secondary",
19050
19322
  onClick: props.onClick
19051
- }, /*#__PURE__*/React.createElement(Close$8, null));
19323
+ }, /*#__PURE__*/React.createElement(Close$9, null));
19052
19324
  };
19053
19325
  const ActionModal$7 = ({
19054
19326
  t,
@@ -19130,7 +19402,7 @@ const ActionModal$7 = ({
19130
19402
  headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
19131
19403
  label: t(config.label.heading)
19132
19404
  }),
19133
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19405
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19134
19406
  onClick: closeModal
19135
19407
  }),
19136
19408
  actionCancelLabel: t(config.label.cancel),
@@ -19158,7 +19430,7 @@ const Heading$9 = props => {
19158
19430
  className: "heading-m"
19159
19431
  }, props.label);
19160
19432
  };
19161
- const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19433
+ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19162
19434
  xmlns: "http://www.w3.org/2000/svg",
19163
19435
  viewBox: "0 0 24 24",
19164
19436
  fill: "#FFFFFF"
@@ -19168,11 +19440,11 @@ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19168
19440
  }), /*#__PURE__*/React.createElement("path", {
19169
19441
  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"
19170
19442
  }));
19171
- const CloseBtn$9 = props => {
19443
+ const CloseBtn$a = props => {
19172
19444
  return /*#__PURE__*/React.createElement("div", {
19173
19445
  className: "icon-bg-secondary",
19174
19446
  onClick: props.onClick
19175
- }, /*#__PURE__*/React.createElement(Close$9, null));
19447
+ }, /*#__PURE__*/React.createElement(Close$a, null));
19176
19448
  };
19177
19449
  const ActionModal$8 = ({
19178
19450
  t,
@@ -19281,7 +19553,7 @@ const ActionModal$8 = ({
19281
19553
  headerBarMain: /*#__PURE__*/React.createElement(Heading$9, {
19282
19554
  label: t(config.label.heading)
19283
19555
  }),
19284
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19556
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19285
19557
  onClick: closeModal
19286
19558
  }),
19287
19559
  actionCancelLabel: t(config.label.cancel),
@@ -19305,7 +19577,7 @@ const Heading$a = props => {
19305
19577
  className: "heading-m"
19306
19578
  }, props.label);
19307
19579
  };
19308
- const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19580
+ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19309
19581
  xmlns: "http://www.w3.org/2000/svg",
19310
19582
  viewBox: "0 0 24 24",
19311
19583
  fill: "#FFFFFF"
@@ -19315,11 +19587,11 @@ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19315
19587
  }), /*#__PURE__*/React.createElement("path", {
19316
19588
  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"
19317
19589
  }));
19318
- const CloseBtn$a = props => {
19590
+ const CloseBtn$b = props => {
19319
19591
  return /*#__PURE__*/React.createElement("div", {
19320
19592
  className: "icon-bg-secondary",
19321
19593
  onClick: props.onClick
19322
- }, /*#__PURE__*/React.createElement(Close$a, null));
19594
+ }, /*#__PURE__*/React.createElement(Close$b, null));
19323
19595
  };
19324
19596
  const ActionModal$9 = ({
19325
19597
  t,
@@ -19435,7 +19707,7 @@ const ActionModal$9 = ({
19435
19707
  headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
19436
19708
  label: t(config.label.heading)
19437
19709
  }),
19438
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19710
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19439
19711
  onClick: closeModal
19440
19712
  }),
19441
19713
  actionCancelLabel: t(config.label.cancel),
@@ -19459,7 +19731,7 @@ const Heading$b = props => {
19459
19731
  className: "heading-m"
19460
19732
  }, props.label);
19461
19733
  };
19462
- const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19734
+ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19463
19735
  xmlns: "http://www.w3.org/2000/svg",
19464
19736
  viewBox: "0 0 24 24",
19465
19737
  fill: "#FFFFFF"
@@ -19469,11 +19741,11 @@ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19469
19741
  }), /*#__PURE__*/React.createElement("path", {
19470
19742
  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"
19471
19743
  }));
19472
- const CloseBtn$b = props => {
19744
+ const CloseBtn$c = props => {
19473
19745
  return /*#__PURE__*/React.createElement("div", {
19474
19746
  className: "icon-bg-secondary",
19475
19747
  onClick: props.onClick
19476
- }, /*#__PURE__*/React.createElement(Close$b, null));
19748
+ }, /*#__PURE__*/React.createElement(Close$c, null));
19477
19749
  };
19478
19750
  const ActionModal$a = ({
19479
19751
  t,
@@ -19587,7 +19859,7 @@ const ActionModal$a = ({
19587
19859
  headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
19588
19860
  label: t(config.label.heading)
19589
19861
  }),
19590
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19862
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
19591
19863
  onClick: closeModal
19592
19864
  }),
19593
19865
  actionCancelLabel: t(config.label.cancel),
@@ -19675,7 +19947,7 @@ const Heading$c = props => {
19675
19947
  className: "heading-m"
19676
19948
  }, props.label);
19677
19949
  };
19678
- const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19950
+ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
19679
19951
  xmlns: "http://www.w3.org/2000/svg",
19680
19952
  viewBox: "0 0 24 24",
19681
19953
  fill: "#FFFFFF"
@@ -19685,11 +19957,11 @@ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19685
19957
  }), /*#__PURE__*/React.createElement("path", {
19686
19958
  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"
19687
19959
  }));
19688
- const CloseBtn$c = props => {
19960
+ const CloseBtn$d = props => {
19689
19961
  return /*#__PURE__*/React.createElement("div", {
19690
19962
  className: "icon-bg-secondary",
19691
19963
  onClick: props.onClick
19692
- }, /*#__PURE__*/React.createElement(Close$c, null));
19964
+ }, /*#__PURE__*/React.createElement(Close$d, null));
19693
19965
  };
19694
19966
  const ActionModal$b = ({
19695
19967
  t,
@@ -19870,7 +20142,7 @@ const ActionModal$b = ({
19870
20142
  headerBarMain: /*#__PURE__*/React.createElement(Heading$c, {
19871
20143
  label: t(config.label.heading)
19872
20144
  }),
19873
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
20145
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
19874
20146
  onClick: closeModal
19875
20147
  }),
19876
20148
  actionCancelLabel: t(config.label.cancel),
@@ -20731,7 +21003,7 @@ const PermissionCheck = ({
20731
21003
  } : {},
20732
21004
  placeholder: t("BPA_ENTER_PERMIT_CONDITIONS_LABEL")
20733
21005
  }), /*#__PURE__*/React.createElement(LinkButton, {
20734
- label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$g, {
21006
+ label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$h, {
20735
21007
  style: {
20736
21008
  float: "right",
20737
21009
  position: "relative",
@@ -22557,7 +22829,7 @@ const ArrearSummary = ({
22557
22829
  }, t("CS_HIDE_CARD"))));
22558
22830
  };
22559
22831
 
22560
- const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22832
+ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
22561
22833
  xmlns: "http://www.w3.org/2000/svg",
22562
22834
  viewBox: "0 0 24 24",
22563
22835
  fill: "#FFFFFF"
@@ -22567,11 +22839,11 @@ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22567
22839
  }), /*#__PURE__*/React.createElement("path", {
22568
22840
  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"
22569
22841
  }));
22570
- const CloseBtn$d = props => {
22842
+ const CloseBtn$e = props => {
22571
22843
  return /*#__PURE__*/React.createElement("div", {
22572
22844
  className: "icon-bg-secondary",
22573
22845
  onClick: props.onClick
22574
- }, /*#__PURE__*/React.createElement(Close$d, null));
22846
+ }, /*#__PURE__*/React.createElement(Close$e, null));
22575
22847
  };
22576
22848
  const RenewPopup = ({
22577
22849
  t,
@@ -22598,7 +22870,7 @@ const RenewPopup = ({
22598
22870
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
22599
22871
  label: "SV_WANT_TO_EDIT"
22600
22872
  }),
22601
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
22873
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
22602
22874
  onClick: closeModal
22603
22875
  }),
22604
22876
  actionCancelLabel: t("CS_COMMON_BACK"),
@@ -23357,7 +23629,7 @@ function ApplicationDetailsActionBar({
23357
23629
  }, 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}`))));
23358
23630
  }
23359
23631
 
23360
- const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23632
+ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
23361
23633
  xmlns: "http://www.w3.org/2000/svg",
23362
23634
  viewBox: "0 0 24 24",
23363
23635
  fill: "#FFFFFF"
@@ -23367,11 +23639,11 @@ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23367
23639
  }), /*#__PURE__*/React.createElement("path", {
23368
23640
  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"
23369
23641
  }));
23370
- const CloseBtn$e = props => {
23642
+ const CloseBtn$f = props => {
23371
23643
  return /*#__PURE__*/React.createElement("div", {
23372
23644
  className: "icon-bg-secondary",
23373
23645
  onClick: props.onClick
23374
- }, /*#__PURE__*/React.createElement(Close$e, null));
23646
+ }, /*#__PURE__*/React.createElement(Close$f, null));
23375
23647
  };
23376
23648
  function ApplicationDetailsWarningPopup({
23377
23649
  action,
@@ -23388,7 +23660,7 @@ function ApplicationDetailsWarningPopup({
23388
23660
  headerBarMain: /*#__PURE__*/React.createElement("h1", {
23389
23661
  className: "heading-m"
23390
23662
  }, t("PT_DUES_ARE_PENDING")),
23391
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
23663
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
23392
23664
  onClick: () => {
23393
23665
  closeWarningPopup();
23394
23666
  }
@@ -23832,7 +24104,7 @@ const WorkflowTimeline = ({
23832
24104
  };
23833
24105
 
23834
24106
  const ApplicationDetails$1 = () => {
23835
- var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app;
24107
+ var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app, _appDetailsToShow$app2;
23836
24108
  const {
23837
24109
  t
23838
24110
  } = useTranslation();
@@ -23843,6 +24115,7 @@ const ApplicationDetails$1 = () => {
23843
24115
  } = useParams();
23844
24116
  const [showToast, setShowToast] = useState(null);
23845
24117
  const [appDetailsToShow, setAppDetailsToShow] = useState({});
24118
+ const [showEditModal, setShowEditModal] = useState(false);
23846
24119
  const [BusinessService, setBusinessService] = useState("watertanker");
23847
24120
  const isWaterTanker = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("WT");
23848
24121
  const isTreePruning = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("TP");
@@ -23891,29 +24164,78 @@ const ApplicationDetails$1 = () => {
23891
24164
  height: "100%"
23892
24165
  }
23893
24166
  }, /*#__PURE__*/React.createElement("div", {
24167
+ className: "employee-application-details",
23894
24168
  style: {
24169
+ marginBottom: "20px",
23895
24170
  display: "flex",
23896
- flexDirection: "row",
23897
- gap: "20px",
24171
+ justifyContent: "space-between",
24172
+ alignItems: "center",
24173
+ flexWrap: "wrap",
24174
+ gap: "16px"
24175
+ }
24176
+ }, /*#__PURE__*/React.createElement(Header, {
24177
+ styles: {
24178
+ margin: "0px",
24179
+ fontSize: "32px"
24180
+ }
24181
+ }, t("BOOKING_DETAILS")), /*#__PURE__*/React.createElement("div", {
24182
+ onClick: () => setShowEditModal(true),
24183
+ style: {
24184
+ display: "flex",
24185
+ alignItems: "center",
24186
+ cursor: "pointer",
24187
+ color: "#f47738",
24188
+ gap: "8px",
24189
+ padding: "8px 16px",
24190
+ backgroundColor: "#fff",
24191
+ borderRadius: "4px",
24192
+ border: "1px solid #f47738",
24193
+ transition: "all 0.2s ease"
24194
+ }
24195
+ }, /*#__PURE__*/React.createElement(EditIcon, {
24196
+ style: {
24197
+ fill: "#f47738",
24198
+ width: "20px",
24199
+ height: "20px"
24200
+ }
24201
+ }), /*#__PURE__*/React.createElement("span", {
24202
+ style: {
24203
+ fontWeight: "600",
24204
+ fontSize: "16px"
24205
+ }
24206
+ }, t("WT_EDIT_FIELDS")))), showEditModal && /*#__PURE__*/React.createElement(WTEditApplicationModal, {
24207
+ t: t,
24208
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app = appDetailsToShow.applicationData) === null || _appDetailsToShow$app === void 0 ? void 0 : _appDetailsToShow$app.applicationData,
24209
+ closeModal: () => setShowEditModal(false)
24210
+ }), /*#__PURE__*/React.createElement("div", {
24211
+ style: {
24212
+ display: "flex",
24213
+ flexWrap: "wrap",
24214
+ gap: "24px",
23898
24215
  height: "100%"
23899
24216
  }
23900
24217
  }, /*#__PURE__*/React.createElement("div", {
23901
- className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`
24218
+ className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`,
24219
+ style: {
24220
+ flex: "1 1 300px",
24221
+ maxWidth: hideTimeline ? "0px" : "400px",
24222
+ transition: "max-width 0.3s"
24223
+ }
23902
24224
  }, /*#__PURE__*/React.createElement(WorkflowTimeline, {
23903
24225
  hideTimeline: hideTimeline,
23904
24226
  setHideTimeline: setHideTimeline,
23905
24227
  workflowDetails: workflowDetails
23906
24228
  })), /*#__PURE__*/React.createElement("div", {
23907
- className: !hideTimeline ? "hidden-card " : "",
23908
24229
  style: {
23909
- flex: "1",
23910
- overflowY: "scroll"
24230
+ flex: "2 1 500px",
24231
+ minWidth: "300px",
24232
+ overflowY: "auto"
23911
24233
  }
23912
24234
  }, /*#__PURE__*/React.createElement(ApplicationDetails, {
23913
24235
  applicationDetails: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : appDetailsToShow.applicationData,
23914
24236
  isLoading: isLoading,
23915
24237
  isDataLoading: isLoading,
23916
- applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app = appDetailsToShow.applicationData) === null || _appDetailsToShow$app === void 0 ? void 0 : _appDetailsToShow$app.applicationData,
24238
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app2 = appDetailsToShow.applicationData) === null || _appDetailsToShow$app2 === void 0 ? void 0 : _appDetailsToShow$app2.applicationData,
23917
24239
  mutate: mutate,
23918
24240
  workflowDetails: workflowDetails,
23919
24241
  businessService: businessService,
@@ -24107,7 +24429,7 @@ const TPCard = () => {
24107
24429
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
24108
24430
  };
24109
24431
 
24110
- const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24432
+ const Close$g = () => /*#__PURE__*/React.createElement("svg", {
24111
24433
  xmlns: "http://www.w3.org/2000/svg",
24112
24434
  viewBox: "0 0 24 24",
24113
24435
  fill: "#FFFFFF"
@@ -24117,12 +24439,12 @@ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24117
24439
  }), /*#__PURE__*/React.createElement("path", {
24118
24440
  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"
24119
24441
  }));
24120
- const CloseBtn$f = ({
24442
+ const CloseBtn$g = ({
24121
24443
  onClick
24122
24444
  }) => /*#__PURE__*/React.createElement("div", {
24123
24445
  className: "icon-bg-secondary",
24124
24446
  onClick: onClick
24125
- }, /*#__PURE__*/React.createElement(Close$f, null));
24447
+ }, /*#__PURE__*/React.createElement(Close$g, null));
24126
24448
  const Heading$d = props => {
24127
24449
  return /*#__PURE__*/React.createElement("h1", {
24128
24450
  className: "heading-m"
@@ -24168,7 +24490,7 @@ const ServiceTypes = ({
24168
24490
  headerBarMain: /*#__PURE__*/React.createElement(Heading$d, {
24169
24491
  t: t
24170
24492
  }),
24171
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
24493
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$g, {
24172
24494
  onClick: () => window.history.back()
24173
24495
  }),
24174
24496
  popupStyles: {