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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { TickMark, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, Localities, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$g, BreakLine, InfoBannerIcon, ViewsIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
1
+ import { TickMark, ArrowDown, MobileNumber, CardLabelError, TextInput, Dropdown, DatePicker, SubmitBar, Card, Table, Loader, Toast, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, CitizenHomeCard, CHBIcon, PropertyHouse, HomeIcon, KeyNote, Modal, CardHeader, FormStep, CardLabel, RadioButtons, UploadFile, TextArea, CheckBox, CardSubHeader, StatusTable, Row, GenericFileIcon, LinkButton, EditIcon, Banner, EmployeeModuleCard, CloseSvg, Label, LinkLabel, ActionBar, DetailsCard, SearchAction, FilterAction, PopUp, ShippingTruck, CustomNameDropdown, MultiSelectDropdown, CollapsibleCardPage as CollapsibleCardPage$1, LabelFieldPair, AddIcon, Menu, CheckSvg, LayoutWrapper, Header, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, MultiLink, Localities, RemoveableTag, FormComposer, PDFSvg, MultiUploadWrapper, Close as Close$h, BreakLine, InfoBannerIcon, ViewsIcon, ButtonSelector, LocationIcon, PTIcon, ApplicantDetails, AddressDetails } from '@djb25/digit-ui-react-components';
2
2
  import React, { useRef, useEffect, useState, useMemo, useCallback, Fragment, useReducer } from 'react';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { useLocation, useRouteMatch, useHistory, Switch, Route, Redirect, Link, useParams } from 'react-router-dom';
@@ -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"
@@ -16077,6 +16129,186 @@ const Filter = ({
16077
16129
  })))));
16078
16130
  };
16079
16131
 
16132
+ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16133
+ xmlns: "http://www.w3.org/2000/svg",
16134
+ viewBox: "0 0 24 24",
16135
+ fill: "#FFFFFF"
16136
+ }, /*#__PURE__*/React.createElement("path", {
16137
+ d: "M0 0h24v24H0V0z",
16138
+ fill: "none"
16139
+ }), /*#__PURE__*/React.createElement("path", {
16140
+ d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
16141
+ }));
16142
+ const CloseBtn$1 = props => {
16143
+ return /*#__PURE__*/React.createElement("div", {
16144
+ className: "icon-bg-secondary",
16145
+ onClick: props.onClick
16146
+ }, /*#__PURE__*/React.createElement(Close$1, null));
16147
+ };
16148
+ const WTEditApplicationModal = ({
16149
+ t,
16150
+ applicationData,
16151
+ closeModal
16152
+ }) => {
16153
+ const [formData, setFormData] = useState({});
16154
+ useEffect(() => {
16155
+ if (applicationData) {
16156
+ var _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$addr, _applicationData$addr2, _applicationData$addr3, _applicationData$addr4, _applicationData$addr5, _applicationData$addr6;
16157
+ setFormData({
16158
+ name: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicantDetail) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.name) || "",
16159
+ mobileNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicantDetail) === null || _applicationData$appl2 === void 0 ? void 0 : _applicationData$appl2.mobileNumber) || "",
16160
+ emailId: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl3 = applicationData.applicantDetail) === null || _applicationData$appl3 === void 0 ? void 0 : _applicationData$appl3.emailId) || "",
16161
+ alternateNumber: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl4 = applicationData.applicantDetail) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.alternateNumber) || "",
16162
+ houseNo: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr = applicationData.address) === null || _applicationData$addr === void 0 ? void 0 : _applicationData$addr.houseNo) || "",
16163
+ streetName: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr2 = applicationData.address) === null || _applicationData$addr2 === void 0 ? void 0 : _applicationData$addr2.streetName) || "",
16164
+ addressLine1: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr3 = applicationData.address) === null || _applicationData$addr3 === void 0 ? void 0 : _applicationData$addr3.addressLine1) || "",
16165
+ addressLine2: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr4 = applicationData.address) === null || _applicationData$addr4 === void 0 ? void 0 : _applicationData$addr4.addressLine2) || "",
16166
+ landmark: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr5 = applicationData.address) === null || _applicationData$addr5 === void 0 ? void 0 : _applicationData$addr5.landmark) || "",
16167
+ pincode: (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addr6 = applicationData.address) === null || _applicationData$addr6 === void 0 ? void 0 : _applicationData$addr6.pincode) || "",
16168
+ tankerType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerType) || "",
16169
+ waterType: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterType) || "",
16170
+ tankerQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.tankerQuantity) || "",
16171
+ waterQuantity: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.waterQuantity) || "",
16172
+ description: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.description) || "",
16173
+ deliveryDate: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryDate) || "",
16174
+ deliveryTime: (applicationData === null || applicationData === void 0 ? void 0 : applicationData.deliveryTime) || ""
16175
+ });
16176
+ }
16177
+ }, [applicationData]);
16178
+ const handleChange = (e, key) => {
16179
+ setFormData({
16180
+ ...formData,
16181
+ [key]: e.target.value
16182
+ });
16183
+ };
16184
+ const handleUpdate = () => {
16185
+ console.log("Updated Data:", formData);
16186
+ closeModal();
16187
+ };
16188
+ const fieldGroups = [{
16189
+ title: "WT_APPLICANT_DETAILS",
16190
+ fields: [{
16191
+ label: "WT_APPLICANT_NAME",
16192
+ key: "name"
16193
+ }, {
16194
+ label: "WT_MOBILE_NUMBER",
16195
+ key: "mobileNumber"
16196
+ }, {
16197
+ label: "WT_ALT_MOBILE_NUMBER",
16198
+ key: "alternateNumber"
16199
+ }, {
16200
+ label: "WT_EMAIL_ID",
16201
+ key: "emailId"
16202
+ }]
16203
+ }, {
16204
+ title: "WT_ADDRESS_DETAILS",
16205
+ fields: [{
16206
+ label: "WT_HOUSE_NO",
16207
+ key: "houseNo"
16208
+ }, {
16209
+ label: "WT_STREET_NAME",
16210
+ key: "streetName"
16211
+ }, {
16212
+ label: "WT_ADDRESS_LINE1",
16213
+ key: "addressLine1"
16214
+ }, {
16215
+ label: "WT_ADDRESS_LINE2",
16216
+ key: "addressLine2"
16217
+ }, {
16218
+ label: "WT_LANDMARK",
16219
+ key: "landmark"
16220
+ }, {
16221
+ label: "WT_PINCODE",
16222
+ key: "pincode"
16223
+ }]
16224
+ }, {
16225
+ title: "WT_REQUEST_DETAILS",
16226
+ fields: [{
16227
+ label: "WT_TANKER_TYPE",
16228
+ key: "tankerType"
16229
+ }, {
16230
+ label: "WT_WATER_TYPE",
16231
+ key: "waterType"
16232
+ }, {
16233
+ label: "WT_TANKER_QUANTITY",
16234
+ key: "tankerQuantity"
16235
+ }, {
16236
+ label: "WT_WATER_QUANTITY",
16237
+ key: "waterQuantity"
16238
+ }, {
16239
+ label: "WT_DELIVERY_DATE",
16240
+ key: "deliveryDate",
16241
+ type: "date"
16242
+ }, {
16243
+ label: "WT_DELIVERY_TIME",
16244
+ key: "deliveryTime",
16245
+ type: "time"
16246
+ }, {
16247
+ label: "WT_DESCRIPTION",
16248
+ key: "description",
16249
+ fullWidth: true
16250
+ }]
16251
+ }];
16252
+ return /*#__PURE__*/React.createElement(Modal, {
16253
+ headerBarMain: /*#__PURE__*/React.createElement("h1", {
16254
+ className: "heading-m"
16255
+ }, t("WT_EDIT_APPLICATION_DETAILS")),
16256
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
16257
+ onClick: closeModal
16258
+ }),
16259
+ actionCancelLabel: t("CS_COMMON_CANCEL"),
16260
+ actionCancelOnSubmit: closeModal,
16261
+ actionSaveLabel: t("CS_COMMON_UPDATE"),
16262
+ actionSaveOnSubmit: handleUpdate
16263
+ }, /*#__PURE__*/React.createElement(Card, {
16264
+ style: {
16265
+ maxHeight: "70vh",
16266
+ overflowY: "auto",
16267
+ padding: "20px"
16268
+ }
16269
+ }, fieldGroups.map((group, index) => /*#__PURE__*/React.createElement("div", {
16270
+ key: index,
16271
+ style: {
16272
+ marginBottom: "24px"
16273
+ }
16274
+ }, /*#__PURE__*/React.createElement("h2", {
16275
+ style: {
16276
+ fontSize: "18px",
16277
+ fontWeight: "bold",
16278
+ marginBottom: "16px",
16279
+ color: "#0B0C10",
16280
+ borderBottom: "1px solid #e0e0e0",
16281
+ paddingBottom: "8px"
16282
+ }
16283
+ }, t(group.title)), /*#__PURE__*/React.createElement("div", {
16284
+ style: {
16285
+ display: "flex",
16286
+ flexWrap: "wrap",
16287
+ gap: "16px"
16288
+ }
16289
+ }, group.fields.map(field => /*#__PURE__*/React.createElement("div", {
16290
+ key: field.key,
16291
+ style: {
16292
+ flex: field.fullWidth ? "1 1 100%" : "1 1 200px",
16293
+ maxWidth: "100%"
16294
+ }
16295
+ }, /*#__PURE__*/React.createElement(CardLabel, {
16296
+ style: {
16297
+ fontWeight: "600",
16298
+ marginBottom: "4px",
16299
+ fontSize: "14px"
16300
+ }
16301
+ }, t(field.label)), /*#__PURE__*/React.createElement(TextInput, {
16302
+ type: field.type || "text",
16303
+ value: formData[field.key],
16304
+ onChange: e => handleChange(e, field.key),
16305
+ style: {
16306
+ width: "100%",
16307
+ maxWidth: "100%"
16308
+ }
16309
+ }))))))));
16310
+ };
16311
+
16080
16312
  const configPTApproverApplication = ({
16081
16313
  t,
16082
16314
  action,
@@ -16780,7 +17012,7 @@ const Heading$1 = props => {
16780
17012
  className: "heading-m"
16781
17013
  }, props.label);
16782
17014
  };
16783
- const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
17015
+ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
16784
17016
  xmlns: "http://www.w3.org/2000/svg",
16785
17017
  viewBox: "0 0 24 24",
16786
17018
  fill: "#FFFFFF"
@@ -16790,11 +17022,11 @@ const Close$1 = () => /*#__PURE__*/React.createElement("svg", {
16790
17022
  }), /*#__PURE__*/React.createElement("path", {
16791
17023
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
16792
17024
  }));
16793
- const CloseBtn$1 = props => {
17025
+ const CloseBtn$2 = props => {
16794
17026
  return /*#__PURE__*/React.createElement("div", {
16795
17027
  className: "icon-bg-secondary",
16796
17028
  onClick: props.onClick
16797
- }, /*#__PURE__*/React.createElement(Close$1, null));
17029
+ }, /*#__PURE__*/React.createElement(Close$2, null));
16798
17030
  };
16799
17031
  const ActionModal = ({
16800
17032
  t,
@@ -16966,7 +17198,7 @@ const ActionModal = ({
16966
17198
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
16967
17199
  label: t(config.label.heading)
16968
17200
  }),
16969
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$1, {
17201
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
16970
17202
  onClick: closeModal
16971
17203
  }),
16972
17204
  actionCancelLabel: t(config.label.cancel),
@@ -16991,7 +17223,7 @@ const Heading$2 = props => {
16991
17223
  className: "heading-m"
16992
17224
  }, props.label);
16993
17225
  };
16994
- const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17226
+ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
16995
17227
  xmlns: "http://www.w3.org/2000/svg",
16996
17228
  viewBox: "0 0 24 24",
16997
17229
  fill: "#FFFFFF"
@@ -17001,11 +17233,11 @@ const Close$2 = () => /*#__PURE__*/React.createElement("svg", {
17001
17233
  }), /*#__PURE__*/React.createElement("path", {
17002
17234
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17003
17235
  }));
17004
- const CloseBtn$2 = props => {
17236
+ const CloseBtn$3 = props => {
17005
17237
  return /*#__PURE__*/React.createElement("div", {
17006
17238
  className: "icon-bg-secondary",
17007
17239
  onClick: props.onClick
17008
- }, /*#__PURE__*/React.createElement(Close$2, null));
17240
+ }, /*#__PURE__*/React.createElement(Close$3, null));
17009
17241
  };
17010
17242
  const ActionModal$1 = ({
17011
17243
  t,
@@ -17133,7 +17365,7 @@ const ActionModal$1 = ({
17133
17365
  headerBarMain: /*#__PURE__*/React.createElement(Heading$2, {
17134
17366
  label: t(config.label.heading)
17135
17367
  }),
17136
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$2, {
17368
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17137
17369
  onClick: closeModal
17138
17370
  }),
17139
17371
  actionCancelLabel: t(config.label.cancel),
@@ -17160,7 +17392,7 @@ const Heading$3 = props => {
17160
17392
  className: "heading-m BPAheading-m"
17161
17393
  }, props.label);
17162
17394
  };
17163
- const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17395
+ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17164
17396
  xmlns: "http://www.w3.org/2000/svg",
17165
17397
  viewBox: "0 0 24 24",
17166
17398
  fill: "#FFFFFF"
@@ -17170,11 +17402,11 @@ const Close$3 = () => /*#__PURE__*/React.createElement("svg", {
17170
17402
  }), /*#__PURE__*/React.createElement("path", {
17171
17403
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17172
17404
  }));
17173
- const CloseBtn$3 = props => {
17405
+ const CloseBtn$4 = props => {
17174
17406
  return /*#__PURE__*/React.createElement("div", {
17175
17407
  className: "icon-bg-secondary",
17176
17408
  onClick: props.onClick
17177
- }, /*#__PURE__*/React.createElement(Close$3, null));
17409
+ }, /*#__PURE__*/React.createElement(Close$4, null));
17178
17410
  };
17179
17411
  const ActionModal$2 = ({
17180
17412
  t,
@@ -17287,7 +17519,7 @@ const ActionModal$2 = ({
17287
17519
  headerBarMain: /*#__PURE__*/React.createElement(Heading$3, {
17288
17520
  label: t(config.label.heading)
17289
17521
  }),
17290
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$3, {
17522
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17291
17523
  onClick: closeModal
17292
17524
  }),
17293
17525
  actionCancelLabel: t(config.label.cancel),
@@ -17336,7 +17568,7 @@ const Heading$4 = props => {
17336
17568
  className: "heading-m BPAheading-m"
17337
17569
  }, props.label);
17338
17570
  };
17339
- const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17571
+ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17340
17572
  xmlns: "http://www.w3.org/2000/svg",
17341
17573
  viewBox: "0 0 24 24",
17342
17574
  fill: "#FFFFFF"
@@ -17346,11 +17578,11 @@ const Close$4 = () => /*#__PURE__*/React.createElement("svg", {
17346
17578
  }), /*#__PURE__*/React.createElement("path", {
17347
17579
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17348
17580
  }));
17349
- const CloseBtn$4 = props => {
17581
+ const CloseBtn$5 = props => {
17350
17582
  return /*#__PURE__*/React.createElement("div", {
17351
17583
  className: "icon-bg-secondary",
17352
17584
  onClick: props.onClick
17353
- }, /*#__PURE__*/React.createElement(Close$4, null));
17585
+ }, /*#__PURE__*/React.createElement(Close$5, null));
17354
17586
  };
17355
17587
  const ActionModal$3 = ({
17356
17588
  t,
@@ -17590,7 +17822,7 @@ const ActionModal$3 = ({
17590
17822
  headerBarMain: /*#__PURE__*/React.createElement(Heading$4, {
17591
17823
  label: t(config.label.heading)
17592
17824
  }),
17593
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$4, {
17825
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
17594
17826
  onClick: closeModal
17595
17827
  }),
17596
17828
  actionCancelLabel: t(config.label.cancel),
@@ -17641,7 +17873,7 @@ const Heading$5 = props => {
17641
17873
  className: "heading-m BPAheading-m"
17642
17874
  }, props.label);
17643
17875
  };
17644
- const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17876
+ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
17645
17877
  xmlns: "http://www.w3.org/2000/svg",
17646
17878
  viewBox: "0 0 24 24",
17647
17879
  fill: "#FFFFFF"
@@ -17651,11 +17883,11 @@ const Close$5 = () => /*#__PURE__*/React.createElement("svg", {
17651
17883
  }), /*#__PURE__*/React.createElement("path", {
17652
17884
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
17653
17885
  }));
17654
- const CloseBtn$5 = props => {
17886
+ const CloseBtn$6 = props => {
17655
17887
  return /*#__PURE__*/React.createElement("div", {
17656
17888
  className: "icon-bg-secondary",
17657
17889
  onClick: props.onClick
17658
- }, /*#__PURE__*/React.createElement(Close$5, null));
17890
+ }, /*#__PURE__*/React.createElement(Close$6, null));
17659
17891
  };
17660
17892
  const ActionModal$4 = ({
17661
17893
  t,
@@ -17779,7 +18011,7 @@ const ActionModal$4 = ({
17779
18011
  headerBarMain: /*#__PURE__*/React.createElement(Heading$5, {
17780
18012
  label: t(config.label.heading)
17781
18013
  }),
17782
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$5, {
18014
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
17783
18015
  onClick: closeModal
17784
18016
  }),
17785
18017
  actionCancelLabel: t(config.label.cancel),
@@ -18580,7 +18812,7 @@ const Heading$6 = props => {
18580
18812
  className: "heading-m"
18581
18813
  }, props.label);
18582
18814
  };
18583
- const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18815
+ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18584
18816
  xmlns: "http://www.w3.org/2000/svg",
18585
18817
  viewBox: "0 0 24 24",
18586
18818
  fill: "#FFFFFF"
@@ -18590,11 +18822,11 @@ const Close$6 = () => /*#__PURE__*/React.createElement("svg", {
18590
18822
  }), /*#__PURE__*/React.createElement("path", {
18591
18823
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
18592
18824
  }));
18593
- const CloseBtn$6 = props => {
18825
+ const CloseBtn$7 = props => {
18594
18826
  return /*#__PURE__*/React.createElement("div", {
18595
18827
  className: "icon-bg-secondary",
18596
18828
  onClick: props.onClick
18597
- }, /*#__PURE__*/React.createElement(Close$6, null));
18829
+ }, /*#__PURE__*/React.createElement(Close$7, null));
18598
18830
  };
18599
18831
  const convertDateToEpochNew = (dateString, dayStartOrEnd = "dayend") => {
18600
18832
  try {
@@ -18854,7 +19086,7 @@ const ActionModal$5 = ({
18854
19086
  headerBarMain: /*#__PURE__*/React.createElement(Heading$6, {
18855
19087
  label: t(config.label.heading)
18856
19088
  }),
18857
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$6, {
19089
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
18858
19090
  onClick: closeModal
18859
19091
  }),
18860
19092
  actionCancelLabel: t(config.label.cancel),
@@ -18886,7 +19118,7 @@ const Heading$7 = props => {
18886
19118
  className: "heading-m"
18887
19119
  }, props.label);
18888
19120
  };
18889
- const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
19121
+ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
18890
19122
  xmlns: "http://www.w3.org/2000/svg",
18891
19123
  viewBox: "0 0 24 24",
18892
19124
  fill: "#FFFFFF"
@@ -18896,11 +19128,11 @@ const Close$7 = () => /*#__PURE__*/React.createElement("svg", {
18896
19128
  }), /*#__PURE__*/React.createElement("path", {
18897
19129
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
18898
19130
  }));
18899
- const CloseBtn$7 = props => {
19131
+ const CloseBtn$8 = props => {
18900
19132
  return /*#__PURE__*/React.createElement("div", {
18901
19133
  className: "icon-bg-secondary",
18902
19134
  onClick: props.onClick
18903
- }, /*#__PURE__*/React.createElement(Close$7, null));
19135
+ }, /*#__PURE__*/React.createElement(Close$8, null));
18904
19136
  };
18905
19137
  const ActionModal$6 = ({
18906
19138
  t,
@@ -19010,7 +19242,7 @@ const ActionModal$6 = ({
19010
19242
  headerBarMain: /*#__PURE__*/React.createElement(Heading$7, {
19011
19243
  label: t(config.label.heading)
19012
19244
  }),
19013
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$7, {
19245
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19014
19246
  onClick: closeModal
19015
19247
  }),
19016
19248
  actionCancelLabel: t(config.label.cancel),
@@ -19034,7 +19266,7 @@ const Heading$8 = props => {
19034
19266
  className: "heading-m"
19035
19267
  }, props.label);
19036
19268
  };
19037
- const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19269
+ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19038
19270
  xmlns: "http://www.w3.org/2000/svg",
19039
19271
  viewBox: "0 0 24 24",
19040
19272
  fill: "#FFFFFF"
@@ -19044,11 +19276,11 @@ const Close$8 = () => /*#__PURE__*/React.createElement("svg", {
19044
19276
  }), /*#__PURE__*/React.createElement("path", {
19045
19277
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19046
19278
  }));
19047
- const CloseBtn$8 = props => {
19279
+ const CloseBtn$9 = props => {
19048
19280
  return /*#__PURE__*/React.createElement("div", {
19049
19281
  className: "icon-bg-secondary",
19050
19282
  onClick: props.onClick
19051
- }, /*#__PURE__*/React.createElement(Close$8, null));
19283
+ }, /*#__PURE__*/React.createElement(Close$9, null));
19052
19284
  };
19053
19285
  const ActionModal$7 = ({
19054
19286
  t,
@@ -19130,7 +19362,7 @@ const ActionModal$7 = ({
19130
19362
  headerBarMain: /*#__PURE__*/React.createElement(Heading$8, {
19131
19363
  label: t(config.label.heading)
19132
19364
  }),
19133
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$8, {
19365
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19134
19366
  onClick: closeModal
19135
19367
  }),
19136
19368
  actionCancelLabel: t(config.label.cancel),
@@ -19158,7 +19390,7 @@ const Heading$9 = props => {
19158
19390
  className: "heading-m"
19159
19391
  }, props.label);
19160
19392
  };
19161
- const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19393
+ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19162
19394
  xmlns: "http://www.w3.org/2000/svg",
19163
19395
  viewBox: "0 0 24 24",
19164
19396
  fill: "#FFFFFF"
@@ -19168,11 +19400,11 @@ const Close$9 = () => /*#__PURE__*/React.createElement("svg", {
19168
19400
  }), /*#__PURE__*/React.createElement("path", {
19169
19401
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19170
19402
  }));
19171
- const CloseBtn$9 = props => {
19403
+ const CloseBtn$a = props => {
19172
19404
  return /*#__PURE__*/React.createElement("div", {
19173
19405
  className: "icon-bg-secondary",
19174
19406
  onClick: props.onClick
19175
- }, /*#__PURE__*/React.createElement(Close$9, null));
19407
+ }, /*#__PURE__*/React.createElement(Close$a, null));
19176
19408
  };
19177
19409
  const ActionModal$8 = ({
19178
19410
  t,
@@ -19281,7 +19513,7 @@ const ActionModal$8 = ({
19281
19513
  headerBarMain: /*#__PURE__*/React.createElement(Heading$9, {
19282
19514
  label: t(config.label.heading)
19283
19515
  }),
19284
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$9, {
19516
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19285
19517
  onClick: closeModal
19286
19518
  }),
19287
19519
  actionCancelLabel: t(config.label.cancel),
@@ -19305,7 +19537,7 @@ const Heading$a = props => {
19305
19537
  className: "heading-m"
19306
19538
  }, props.label);
19307
19539
  };
19308
- const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19540
+ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19309
19541
  xmlns: "http://www.w3.org/2000/svg",
19310
19542
  viewBox: "0 0 24 24",
19311
19543
  fill: "#FFFFFF"
@@ -19315,11 +19547,11 @@ const Close$a = () => /*#__PURE__*/React.createElement("svg", {
19315
19547
  }), /*#__PURE__*/React.createElement("path", {
19316
19548
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19317
19549
  }));
19318
- const CloseBtn$a = props => {
19550
+ const CloseBtn$b = props => {
19319
19551
  return /*#__PURE__*/React.createElement("div", {
19320
19552
  className: "icon-bg-secondary",
19321
19553
  onClick: props.onClick
19322
- }, /*#__PURE__*/React.createElement(Close$a, null));
19554
+ }, /*#__PURE__*/React.createElement(Close$b, null));
19323
19555
  };
19324
19556
  const ActionModal$9 = ({
19325
19557
  t,
@@ -19435,7 +19667,7 @@ const ActionModal$9 = ({
19435
19667
  headerBarMain: /*#__PURE__*/React.createElement(Heading$a, {
19436
19668
  label: t(config.label.heading)
19437
19669
  }),
19438
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$a, {
19670
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19439
19671
  onClick: closeModal
19440
19672
  }),
19441
19673
  actionCancelLabel: t(config.label.cancel),
@@ -19459,7 +19691,7 @@ const Heading$b = props => {
19459
19691
  className: "heading-m"
19460
19692
  }, props.label);
19461
19693
  };
19462
- const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19694
+ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19463
19695
  xmlns: "http://www.w3.org/2000/svg",
19464
19696
  viewBox: "0 0 24 24",
19465
19697
  fill: "#FFFFFF"
@@ -19469,11 +19701,11 @@ const Close$b = () => /*#__PURE__*/React.createElement("svg", {
19469
19701
  }), /*#__PURE__*/React.createElement("path", {
19470
19702
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19471
19703
  }));
19472
- const CloseBtn$b = props => {
19704
+ const CloseBtn$c = props => {
19473
19705
  return /*#__PURE__*/React.createElement("div", {
19474
19706
  className: "icon-bg-secondary",
19475
19707
  onClick: props.onClick
19476
- }, /*#__PURE__*/React.createElement(Close$b, null));
19708
+ }, /*#__PURE__*/React.createElement(Close$c, null));
19477
19709
  };
19478
19710
  const ActionModal$a = ({
19479
19711
  t,
@@ -19587,7 +19819,7 @@ const ActionModal$a = ({
19587
19819
  headerBarMain: /*#__PURE__*/React.createElement(Heading$b, {
19588
19820
  label: t(config.label.heading)
19589
19821
  }),
19590
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$b, {
19822
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
19591
19823
  onClick: closeModal
19592
19824
  }),
19593
19825
  actionCancelLabel: t(config.label.cancel),
@@ -19675,7 +19907,7 @@ const Heading$c = props => {
19675
19907
  className: "heading-m"
19676
19908
  }, props.label);
19677
19909
  };
19678
- const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19910
+ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
19679
19911
  xmlns: "http://www.w3.org/2000/svg",
19680
19912
  viewBox: "0 0 24 24",
19681
19913
  fill: "#FFFFFF"
@@ -19685,11 +19917,11 @@ const Close$c = () => /*#__PURE__*/React.createElement("svg", {
19685
19917
  }), /*#__PURE__*/React.createElement("path", {
19686
19918
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
19687
19919
  }));
19688
- const CloseBtn$c = props => {
19920
+ const CloseBtn$d = props => {
19689
19921
  return /*#__PURE__*/React.createElement("div", {
19690
19922
  className: "icon-bg-secondary",
19691
19923
  onClick: props.onClick
19692
- }, /*#__PURE__*/React.createElement(Close$c, null));
19924
+ }, /*#__PURE__*/React.createElement(Close$d, null));
19693
19925
  };
19694
19926
  const ActionModal$b = ({
19695
19927
  t,
@@ -19870,7 +20102,7 @@ const ActionModal$b = ({
19870
20102
  headerBarMain: /*#__PURE__*/React.createElement(Heading$c, {
19871
20103
  label: t(config.label.heading)
19872
20104
  }),
19873
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$c, {
20105
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
19874
20106
  onClick: closeModal
19875
20107
  }),
19876
20108
  actionCancelLabel: t(config.label.cancel),
@@ -20731,7 +20963,7 @@ const PermissionCheck = ({
20731
20963
  } : {},
20732
20964
  placeholder: t("BPA_ENTER_PERMIT_CONDITIONS_LABEL")
20733
20965
  }), /*#__PURE__*/React.createElement(LinkButton, {
20734
- label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$g, {
20966
+ label: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Close$h, {
20735
20967
  style: {
20736
20968
  float: "right",
20737
20969
  position: "relative",
@@ -22557,7 +22789,7 @@ const ArrearSummary = ({
22557
22789
  }, t("CS_HIDE_CARD"))));
22558
22790
  };
22559
22791
 
22560
- const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22792
+ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
22561
22793
  xmlns: "http://www.w3.org/2000/svg",
22562
22794
  viewBox: "0 0 24 24",
22563
22795
  fill: "#FFFFFF"
@@ -22567,11 +22799,11 @@ const Close$d = () => /*#__PURE__*/React.createElement("svg", {
22567
22799
  }), /*#__PURE__*/React.createElement("path", {
22568
22800
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
22569
22801
  }));
22570
- const CloseBtn$d = props => {
22802
+ const CloseBtn$e = props => {
22571
22803
  return /*#__PURE__*/React.createElement("div", {
22572
22804
  className: "icon-bg-secondary",
22573
22805
  onClick: props.onClick
22574
- }, /*#__PURE__*/React.createElement(Close$d, null));
22806
+ }, /*#__PURE__*/React.createElement(Close$e, null));
22575
22807
  };
22576
22808
  const RenewPopup = ({
22577
22809
  t,
@@ -22598,7 +22830,7 @@ const RenewPopup = ({
22598
22830
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
22599
22831
  label: "SV_WANT_TO_EDIT"
22600
22832
  }),
22601
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$d, {
22833
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
22602
22834
  onClick: closeModal
22603
22835
  }),
22604
22836
  actionCancelLabel: t("CS_COMMON_BACK"),
@@ -23357,7 +23589,7 @@ function ApplicationDetailsActionBar({
23357
23589
  }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${actions === null || actions === void 0 ? void 0 : (_actions$4 = actions[0]) === null || _actions$4 === void 0 ? void 0 : _actions$4.action}`))));
23358
23590
  }
23359
23591
 
23360
- const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23592
+ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
23361
23593
  xmlns: "http://www.w3.org/2000/svg",
23362
23594
  viewBox: "0 0 24 24",
23363
23595
  fill: "#FFFFFF"
@@ -23367,11 +23599,11 @@ const Close$e = () => /*#__PURE__*/React.createElement("svg", {
23367
23599
  }), /*#__PURE__*/React.createElement("path", {
23368
23600
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
23369
23601
  }));
23370
- const CloseBtn$e = props => {
23602
+ const CloseBtn$f = props => {
23371
23603
  return /*#__PURE__*/React.createElement("div", {
23372
23604
  className: "icon-bg-secondary",
23373
23605
  onClick: props.onClick
23374
- }, /*#__PURE__*/React.createElement(Close$e, null));
23606
+ }, /*#__PURE__*/React.createElement(Close$f, null));
23375
23607
  };
23376
23608
  function ApplicationDetailsWarningPopup({
23377
23609
  action,
@@ -23388,7 +23620,7 @@ function ApplicationDetailsWarningPopup({
23388
23620
  headerBarMain: /*#__PURE__*/React.createElement("h1", {
23389
23621
  className: "heading-m"
23390
23622
  }, t("PT_DUES_ARE_PENDING")),
23391
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$e, {
23623
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
23392
23624
  onClick: () => {
23393
23625
  closeWarningPopup();
23394
23626
  }
@@ -23832,7 +24064,7 @@ const WorkflowTimeline = ({
23832
24064
  };
23833
24065
 
23834
24066
  const ApplicationDetails$1 = () => {
23835
- var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app;
24067
+ var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _appDetailsToShow$app, _appDetailsToShow$app2;
23836
24068
  const {
23837
24069
  t
23838
24070
  } = useTranslation();
@@ -23843,6 +24075,7 @@ const ApplicationDetails$1 = () => {
23843
24075
  } = useParams();
23844
24076
  const [showToast, setShowToast] = useState(null);
23845
24077
  const [appDetailsToShow, setAppDetailsToShow] = useState({});
24078
+ const [showEditModal, setShowEditModal] = useState(false);
23846
24079
  const [BusinessService, setBusinessService] = useState("watertanker");
23847
24080
  const isWaterTanker = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("WT");
23848
24081
  const isTreePruning = bookingNo === null || bookingNo === void 0 ? void 0 : bookingNo.startsWith("TP");
@@ -23891,29 +24124,78 @@ const ApplicationDetails$1 = () => {
23891
24124
  height: "100%"
23892
24125
  }
23893
24126
  }, /*#__PURE__*/React.createElement("div", {
24127
+ className: "employee-application-details",
23894
24128
  style: {
24129
+ marginBottom: "20px",
23895
24130
  display: "flex",
23896
- flexDirection: "row",
23897
- gap: "20px",
24131
+ justifyContent: "space-between",
24132
+ alignItems: "center",
24133
+ flexWrap: "wrap",
24134
+ gap: "16px"
24135
+ }
24136
+ }, /*#__PURE__*/React.createElement(Header, {
24137
+ styles: {
24138
+ margin: "0px",
24139
+ fontSize: "32px"
24140
+ }
24141
+ }, t("BOOKING_DETAILS")), /*#__PURE__*/React.createElement("div", {
24142
+ onClick: () => setShowEditModal(true),
24143
+ style: {
24144
+ display: "flex",
24145
+ alignItems: "center",
24146
+ cursor: "pointer",
24147
+ color: "#f47738",
24148
+ gap: "8px",
24149
+ padding: "8px 16px",
24150
+ backgroundColor: "#fff",
24151
+ borderRadius: "4px",
24152
+ border: "1px solid #f47738",
24153
+ transition: "all 0.2s ease"
24154
+ }
24155
+ }, /*#__PURE__*/React.createElement(EditIcon, {
24156
+ style: {
24157
+ fill: "#f47738",
24158
+ width: "20px",
24159
+ height: "20px"
24160
+ }
24161
+ }), /*#__PURE__*/React.createElement("span", {
24162
+ style: {
24163
+ fontWeight: "600",
24164
+ fontSize: "16px"
24165
+ }
24166
+ }, t("WT_EDIT_FIELDS")))), showEditModal && /*#__PURE__*/React.createElement(WTEditApplicationModal, {
24167
+ t: t,
24168
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app = appDetailsToShow.applicationData) === null || _appDetailsToShow$app === void 0 ? void 0 : _appDetailsToShow$app.applicationData,
24169
+ closeModal: () => setShowEditModal(false)
24170
+ }), /*#__PURE__*/React.createElement("div", {
24171
+ style: {
24172
+ display: "flex",
24173
+ flexWrap: "wrap",
24174
+ gap: "24px",
23898
24175
  height: "100%"
23899
24176
  }
23900
24177
  }, /*#__PURE__*/React.createElement("div", {
23901
- className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`
24178
+ className: `workflow-timeline-wrapper ${hideTimeline ? "hide-workflow" : ""}`,
24179
+ style: {
24180
+ flex: "1 1 300px",
24181
+ maxWidth: hideTimeline ? "0px" : "400px",
24182
+ transition: "max-width 0.3s"
24183
+ }
23902
24184
  }, /*#__PURE__*/React.createElement(WorkflowTimeline, {
23903
24185
  hideTimeline: hideTimeline,
23904
24186
  setHideTimeline: setHideTimeline,
23905
24187
  workflowDetails: workflowDetails
23906
24188
  })), /*#__PURE__*/React.createElement("div", {
23907
- className: !hideTimeline ? "hidden-card " : "",
23908
24189
  style: {
23909
- flex: "1",
23910
- overflowY: "scroll"
24190
+ flex: "2 1 500px",
24191
+ minWidth: "300px",
24192
+ overflowY: "auto"
23911
24193
  }
23912
24194
  }, /*#__PURE__*/React.createElement(ApplicationDetails, {
23913
24195
  applicationDetails: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : appDetailsToShow.applicationData,
23914
24196
  isLoading: isLoading,
23915
24197
  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,
24198
+ applicationData: appDetailsToShow === null || appDetailsToShow === void 0 ? void 0 : (_appDetailsToShow$app2 = appDetailsToShow.applicationData) === null || _appDetailsToShow$app2 === void 0 ? void 0 : _appDetailsToShow$app2.applicationData,
23917
24199
  mutate: mutate,
23918
24200
  workflowDetails: workflowDetails,
23919
24201
  businessService: businessService,
@@ -24107,7 +24389,7 @@ const TPCard = () => {
24107
24389
  return /*#__PURE__*/React.createElement(EmployeeModuleCard, propsForModuleCard);
24108
24390
  };
24109
24391
 
24110
- const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24392
+ const Close$g = () => /*#__PURE__*/React.createElement("svg", {
24111
24393
  xmlns: "http://www.w3.org/2000/svg",
24112
24394
  viewBox: "0 0 24 24",
24113
24395
  fill: "#FFFFFF"
@@ -24117,12 +24399,12 @@ const Close$f = () => /*#__PURE__*/React.createElement("svg", {
24117
24399
  }), /*#__PURE__*/React.createElement("path", {
24118
24400
  d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
24119
24401
  }));
24120
- const CloseBtn$f = ({
24402
+ const CloseBtn$g = ({
24121
24403
  onClick
24122
24404
  }) => /*#__PURE__*/React.createElement("div", {
24123
24405
  className: "icon-bg-secondary",
24124
24406
  onClick: onClick
24125
- }, /*#__PURE__*/React.createElement(Close$f, null));
24407
+ }, /*#__PURE__*/React.createElement(Close$g, null));
24126
24408
  const Heading$d = props => {
24127
24409
  return /*#__PURE__*/React.createElement("h1", {
24128
24410
  className: "heading-m"
@@ -24168,7 +24450,7 @@ const ServiceTypes = ({
24168
24450
  headerBarMain: /*#__PURE__*/React.createElement(Heading$d, {
24169
24451
  t: t
24170
24452
  }),
24171
- headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$f, {
24453
+ headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn$g, {
24172
24454
  onClick: () => window.history.back()
24173
24455
  }),
24174
24456
  popupStyles: {