@djb25/digit-ui-module-vendor 1.0.86 → 1.0.88

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,7 +1,7 @@
1
1
  import React, { useState, useMemo, useEffect, useCallback, useReducer, useRef } from 'react';
2
2
  import { useHistory, Link, useLocation, useParams, useRouteMatch, Switch, Route, Redirect } from 'react-router-dom';
3
3
  import { useTranslation } from 'react-i18next';
4
- import { Loader, VerticalTimeline, FormComposer, Toast, Card, ShippingTruck, Table, CheckBox, RadioButtons, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Dropdown, AddIcon, Menu, LinkLabel, SubmitBar, TextInput, DatePicker as DatePicker$4, ViewsIcon, ToggleSwitch, Modal, MdClose, CardSectionHeader, CardText, Row, EditIcon, DeleteIcon, Header, SearchForm, SearchField, MobileNumber, CardLabelError, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PropertyHouse, EmployeeModuleCard, FormStep, LabelFieldPair, CardLabel, UploadFile, RadioOrSelect, MultiSelectDropdown, CitizenHomeCard, CardHeader, CardSubHeader, StatusTable, LinkButton, Banner, InfoIcon, CustomTooltip } from '@djb25/digit-ui-react-components';
4
+ import { Loader, VerticalTimeline, FormComposer, Toast, Card, ShippingTruck, Table, CheckBox, RadioButtons, CloseSvg, Localities, RemoveableTag, ActionBar, ApplyFilterBar, Dropdown, AddIcon, Menu, LinkLabel, SubmitBar, TextInput, DatePicker as DatePicker$4, ViewsIcon, ToggleSwitch, Modal, MdClose, CardSectionHeader, Row, EditIcon, DeleteIcon, CardText, Header, SearchForm, SearchField, MobileNumber, CardLabelError, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PropertyHouse, EmployeeModuleCard, FormStep, LabelFieldPair, CardLabel, UploadFile, RadioOrSelect, MultiSelectDropdown, CitizenHomeCard, CardHeader, CardSubHeader, StatusTable, LinkButton, Banner, InfoIcon, CustomTooltip } from '@djb25/digit-ui-react-components';
5
5
  import { useQueryClient, useQuery } from 'react-query';
6
6
  import { useForm, Controller } from 'react-hook-form';
7
7
 
@@ -15,18 +15,23 @@ function _extends() {
15
15
  }, _extends.apply(null, arguments);
16
16
  }
17
17
 
18
- const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
19
- const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
18
+ // A type of promise-like that resolves synchronously and supports only one observer
19
+
20
+ const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
21
+
22
+ const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
23
+
24
+ // Asynchronously call a function and send errors to recovery continuation
20
25
  function _catch(body, recover) {
21
- try {
22
- var result = body();
23
- } catch (e) {
24
- return recover(e);
25
- }
26
- if (result && result.then) {
27
- return result.then(void 0, recover);
28
- }
29
- return result;
26
+ try {
27
+ var result = body();
28
+ } catch(e) {
29
+ return recover(e);
30
+ }
31
+ if (result && result.then) {
32
+ return result.then(void 0, recover);
33
+ }
34
+ return result;
30
35
  }
31
36
 
32
37
  const {
@@ -3303,7 +3308,7 @@ const Heading = props => {
3303
3308
  }, props.label);
3304
3309
  };
3305
3310
  const SupervisorDetails = props => {
3306
- var _Digit$SessionStorage, _userInfo$type, _formState$tableForm, _formState$tableForm2, _formState$tableForm3, _formState$tableForm4, _dashboardData$dashbo, _supervisorData$2, _supervisorData$2$emp, _formState$tableForm10, _formState$tableForm11;
3311
+ var _Digit$SessionStorage, _userInfo$type, _supervisorData$, _supervisorData$$supe, _formState$tableForm, _formState$tableForm2, _formState$tableForm3, _formState$tableForm4, _dashboardData$dashbo, _supervisorData$3, _supervisorData$3$emp, _formState$tableForm10, _formState$tableForm11;
3307
3312
  const tenantId = Digit.ULBService.getCurrentTenantId();
3308
3313
  const {
3309
3314
  t
@@ -3377,18 +3382,28 @@ const SupervisorDetails = props => {
3377
3382
  };
3378
3383
  });
3379
3384
  }, [supervisorSearchResponse, vendorData]);
3385
+ const nextStatus = (supervisorData === null || supervisorData === void 0 ? void 0 : (_supervisorData$ = supervisorData[0]) === null || _supervisorData$ === void 0 ? void 0 : (_supervisorData$$supe = _supervisorData$.supervisorData) === null || _supervisorData$$supe === void 0 ? void 0 : _supervisorData$$supe.status) === "DISABLED" ? {
3386
+ status: "ES_VENDOR_ACTION_ENABLE",
3387
+ action: "ACTIVE",
3388
+ toastMessage: "ES_FSM_REGISTRY_SUPERVISOR_ENABLE_SUCCESS",
3389
+ popupButton: "ENABLE",
3390
+ popupHeader: "ES_VENDOR_SUPERVISOR_ENABLE_POPUP_HEADER",
3391
+ popupMessage: "ES_VENDOR_SUPERVISOR_ENABLE_POPUP_MESSAGE"
3392
+ } : {
3393
+ status: "ES_VENDOR_ACTION_DISABLE",
3394
+ action: "DISABLED",
3395
+ toastMessage: "ES_FSM_REGISTRY_SUPERVISOR_DISABLE_SUCCESS",
3396
+ popupButton: "DISABLE",
3397
+ popupHeader: "ES_VENDOR_SUPERVISOR_DISABLE_POPUP_HEADER",
3398
+ popupMessage: "ES_VENDOR_SUPERVISOR_DISABLE_POPUP_MESSAGE"
3399
+ };
3380
3400
  const {
3381
3401
  mutate: mutateSupervisor
3382
3402
  } = Digit.Hooks.fsm.useSupervisorUpdate(tenantId);
3383
3403
  useEffect(() => {
3384
- var _location$state;
3404
+ var _location$state, _location$state2;
3385
3405
  refetch();
3386
- if ((_location$state = location.state) !== null && _location$state !== void 0 && _location$state.showSuccessToast) {
3387
- setShowToast({
3388
- key: "success",
3389
- action: "UPDATE_SUPERVISOR"
3390
- });
3391
- }
3406
+ if ((_location$state = location.state) !== null && _location$state !== void 0 && _location$state.showSuccessToast) setShowToast((_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.message);
3392
3407
  }, []);
3393
3408
  useEffect(() => {
3394
3409
  switch (selectedAction) {
@@ -3396,7 +3411,7 @@ const SupervisorDetails = props => {
3396
3411
  return history.push(`/digit-ui/${userType}/vendor/registry/modify-supervisor/${supervisorId}`);
3397
3412
  case "HOME":
3398
3413
  return history.push(`/digit-ui/${userType}/vendor/search-vendor?selectedTabs=SUPERVISOR`);
3399
- case "DELETE":
3414
+ case nextStatus.status:
3400
3415
  return setShowModal(true);
3401
3416
  }
3402
3417
  }, [selectedAction]);
@@ -3419,12 +3434,12 @@ const SupervisorDetails = props => {
3419
3434
  keepPreviousData: true
3420
3435
  });
3421
3436
  const handleDeleteSupervisor = () => {
3422
- var _supervisorData$;
3423
- let details = supervisorData === null || supervisorData === void 0 ? void 0 : (_supervisorData$ = supervisorData[0]) === null || _supervisorData$ === void 0 ? void 0 : _supervisorData$.supervisorData;
3437
+ var _supervisorData$2;
3438
+ const details = supervisorData === null || supervisorData === void 0 ? void 0 : (_supervisorData$2 = supervisorData[0]) === null || _supervisorData$2 === void 0 ? void 0 : _supervisorData$2.supervisorData;
3424
3439
  const formData = {
3425
3440
  supervisor: {
3426
3441
  ...details,
3427
- status: "INACTIVE"
3442
+ status: nextStatus.action
3428
3443
  }
3429
3444
  };
3430
3445
  mutateSupervisor(formData, {
@@ -3442,7 +3457,7 @@ const SupervisorDetails = props => {
3442
3457
  showSuccessToast: true,
3443
3458
  message: {
3444
3459
  key: "success",
3445
- action: t("ES_VENDOR_DELETE_SUPERVISOR_SUCCESS")
3460
+ action: t(nextStatus.toastMessage)
3446
3461
  }
3447
3462
  }
3448
3463
  });
@@ -3559,7 +3574,7 @@ const SupervisorDetails = props => {
3559
3574
  className: "employee-form-content"
3560
3575
  }, /*#__PURE__*/React.createElement(Card, {
3561
3576
  className: "flex-box flex-box-col flex-gap-5"
3562
- }, supervisorData === null || supervisorData === void 0 ? void 0 : (_supervisorData$2 = supervisorData[0]) === null || _supervisorData$2 === void 0 ? void 0 : (_supervisorData$2$emp = _supervisorData$2.employeeResponse) === null || _supervisorData$2$emp === void 0 ? void 0 : _supervisorData$2$emp.map((detail, index) => {
3577
+ }, supervisorData === null || supervisorData === void 0 ? void 0 : (_supervisorData$3 = supervisorData[0]) === null || _supervisorData$3 === void 0 ? void 0 : (_supervisorData$3$emp = _supervisorData$3.employeeResponse) === null || _supervisorData$3$emp === void 0 ? void 0 : _supervisorData$3$emp.map((detail, index) => {
3563
3578
  var _detail$values, _userInfo$roles, _userInfo$roles$map;
3564
3579
  return /*#__PURE__*/React.createElement(React.Fragment, {
3565
3580
  key: index
@@ -3632,14 +3647,14 @@ const SupervisorDetails = props => {
3632
3647
  isLoading: isDashboradLoading
3633
3648
  }))), showModal && /*#__PURE__*/React.createElement(Modal, {
3634
3649
  headerBarMain: /*#__PURE__*/React.createElement(Heading, {
3635
- label: t("ES_VENDOR_SUPERVISOR_DELETE_POPUP_HEADER")
3650
+ label: t(nextStatus.popupHeader)
3636
3651
  }),
3637
3652
  headerBarEnd: /*#__PURE__*/React.createElement(CloseSvg, {
3638
3653
  onClick: closeModal
3639
3654
  }),
3640
3655
  actionCancelLabel: t("CS_COMMON_CANCEL"),
3641
3656
  actionCancelOnSubmit: closeModal,
3642
- actionSaveLabel: t("ES_EVENT_DELETE"),
3657
+ actionSaveLabel: t(nextStatus.status),
3643
3658
  actionSaveOnSubmit: handleDeleteSupervisor
3644
3659
  }, /*#__PURE__*/React.createElement(Card, {
3645
3660
  style: {
@@ -3647,23 +3662,24 @@ const SupervisorDetails = props => {
3647
3662
  }
3648
3663
  }, /*#__PURE__*/React.createElement(ConfirmationBox, {
3649
3664
  t: t,
3650
- title: "ES_VENDOR_SUPERVISOR_DELETE_TEXT"
3665
+ title: nextStatus.popupMessage
3651
3666
  }))), showToast && /*#__PURE__*/React.createElement(Toast, {
3652
3667
  error: showToast.key === "error",
3653
3668
  label: showToast.key === "success" ? t(`ES_VENDOR_${showToast.action}_SUCCESS`, showToast.action === "UPDATE_SUPERVISOR" ? "Supervisor updated successfully" : undefined) : t(showToast.action),
3654
3669
  onClose: () => setShowToast(null),
3655
- duration: 5000
3670
+ duration: 15000
3656
3671
  }), /*#__PURE__*/React.createElement(ActionBar, {
3657
3672
  style: {
3658
3673
  zIndex: "19"
3659
3674
  }
3660
3675
  }, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
3661
- localeKeyPrefix: "ES_VENDOR_SUPERVISOR_ACTION",
3662
- options: ["EDIT", "DELETE"],
3676
+ localeKeyPrefix: "ES_VENDOR_ACTION",
3677
+ options: ["EDIT", nextStatus.popupButton],
3663
3678
  t: t,
3664
3679
  onSelect: a => {
3665
3680
  setDisplayMenu(false);
3666
3681
  setSelectedAction(a);
3682
+ setShowModal(true);
3667
3683
  }
3668
3684
  }) : null, /*#__PURE__*/React.createElement(SubmitBar, {
3669
3685
  label: t("ES_COMMON_TAKE_ACTION"),
@@ -3986,7 +4002,7 @@ const CloseBtn = props => {
3986
4002
  }, /*#__PURE__*/React.createElement(CloseSvg, null));
3987
4003
  };
3988
4004
  const SurveyorDetails = props => {
3989
- var _Digit$UserService$ge, _surveyorData$2, _surveyorData$2$emplo;
4005
+ var _Digit$UserService$ge, _surveyorData$, _surveyorData$$survey, _surveyorData$3, _surveyorData$3$emplo;
3990
4006
  const tenantId = Digit.ULBService.getCurrentTenantId();
3991
4007
  const {
3992
4008
  t
@@ -4003,8 +4019,6 @@ const SurveyorDetails = props => {
4003
4019
  const [selectedAction, setSelectedAction] = useState(null);
4004
4020
  const [showModal, setShowModal] = useState(false);
4005
4021
  const [showToast, setShowToast] = useState(null);
4006
- const [vendors, setVendors] = useState([]);
4007
- const [selectedOption, setSelectedOption] = useState({});
4008
4022
  const {
4009
4023
  data: vendorData
4010
4024
  } = Digit.Hooks.fsm.useDsoSearch(tenantId, {
@@ -4063,52 +4077,47 @@ const SurveyorDetails = props => {
4063
4077
  };
4064
4078
  });
4065
4079
  }, [surveyorSearchResponse, vendorData]);
4080
+ const nextStatus = (surveyorData === null || surveyorData === void 0 ? void 0 : (_surveyorData$ = surveyorData[0]) === null || _surveyorData$ === void 0 ? void 0 : (_surveyorData$$survey = _surveyorData$.surveyorData) === null || _surveyorData$$survey === void 0 ? void 0 : _surveyorData$$survey.status) === "DISABLED" ? {
4081
+ status: "ES_VENDOR_ACTION_ENABLE",
4082
+ action: "ACTIVE",
4083
+ toastMessage: "ES_FSM_REGISTRY_SUPERVISOR_ENABLE_SUCCESS",
4084
+ popupButton: "ENABLE",
4085
+ popupHeader: "ES_VENDOR_SURVEYOR_ENABLE_POPUP_HEADER",
4086
+ popupMessage: "ES_VENDOR_SURVEYOR_ENABLE_POPUP_MESSAGE"
4087
+ } : {
4088
+ status: "ES_VENDOR_ACTION_DISABLE",
4089
+ action: "DISABLED",
4090
+ toastMessage: "ES_FSM_REGISTRY_SUPERVISOR_DISABLE_SUCCESS",
4091
+ popupButton: "DISABLE",
4092
+ popupHeader: "ES_VENDOR_SURVEYOR_DISABLE_POPUP_HEADER",
4093
+ popupMessage: "ES_VENDOR_SURVEYOR_DISABLE_POPUP_MESSAGE"
4094
+ };
4066
4095
  const {
4067
4096
  mutate: mutateSurveyor
4068
4097
  } = Digit.Hooks.fsm.useSurveyorUpdate(tenantId);
4069
4098
  useEffect(() => {
4070
- if (vendorData) {
4071
- let vendors = vendorData.map(data => data.dsoDetails);
4072
- setVendors(vendors);
4073
- }
4074
- }, [vendorData]);
4075
- useEffect(() => {
4076
- var _location$state;
4099
+ var _location$state, _location$state2;
4077
4100
  refetch();
4078
- if ((_location$state = location.state) !== null && _location$state !== void 0 && _location$state.showSuccessToast) {
4079
- var _location$state2;
4080
- setShowToast((_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.message);
4081
- }
4101
+ if ((_location$state = location.state) !== null && _location$state !== void 0 && _location$state.showSuccessToast) setShowToast((_location$state2 = location.state) === null || _location$state2 === void 0 ? void 0 : _location$state2.message);
4082
4102
  }, []);
4083
4103
  useEffect(() => {
4084
4104
  switch (selectedAction) {
4085
- case "DELETE":
4086
- case "ADD_VENDOR":
4087
- case "EDIT_VENDOR":
4088
- case "DELETE_VENDOR":
4105
+ case nextStatus.status:
4089
4106
  return setShowModal(true);
4090
4107
  case "EDIT":
4091
4108
  return history.push(`/digit-ui/${userType}/vendor/registry/modify-surveyor/${surveyorId}`);
4092
- case "HOME":
4093
- return history.push(`/digit-ui/${userType}/vendor/search-vendor?selectedTabs=SURVEYOR`);
4094
4109
  }
4095
4110
  }, [selectedAction]);
4096
4111
  const closeToast = () => {
4097
4112
  setShowToast(null);
4098
4113
  };
4099
- const handleModalAction = () => {
4100
- switch (selectedAction) {
4101
- case "DELETE":
4102
- return handleDeleteSurveyor();
4103
- }
4104
- };
4105
4114
  const handleDeleteSurveyor = () => {
4106
- var _surveyorData$;
4107
- let details = surveyorData === null || surveyorData === void 0 ? void 0 : (_surveyorData$ = surveyorData[0]) === null || _surveyorData$ === void 0 ? void 0 : _surveyorData$.surveyorData;
4115
+ var _surveyorData$2;
4116
+ let details = surveyorData === null || surveyorData === void 0 ? void 0 : (_surveyorData$2 = surveyorData[0]) === null || _surveyorData$2 === void 0 ? void 0 : _surveyorData$2.surveyorData;
4108
4117
  const formData = {
4109
4118
  surveyor: {
4110
4119
  ...details,
4111
- status: "INACTIVE"
4120
+ status: "DISABLED"
4112
4121
  }
4113
4122
  };
4114
4123
  mutateSurveyor(formData, {
@@ -4136,43 +4145,14 @@ const SurveyorDetails = props => {
4136
4145
  };
4137
4146
  const closeModal = () => {
4138
4147
  setSelectedAction(null);
4139
- setSelectedOption({});
4140
4148
  setShowModal(false);
4141
4149
  };
4142
- const modalHeading = () => {
4143
- switch (selectedAction) {
4144
- case "DELETE":
4145
- case "DELETE_VENDOR":
4146
- return "ES_VENDOR_SURVEYOR_DELETE_POPUP_HEADER";
4147
- case "ADD_VENDOR":
4148
- case "EDIT_VENDOR":
4149
- return "ES_VENDOR_SURVEYOR_ADD_VENDOR_POPUP_HEADER";
4150
- }
4151
- };
4152
- const renderModalContent = () => {
4153
- if (selectedAction === "DELETE" || selectedAction === "DELETE_VENDOR") {
4154
- return /*#__PURE__*/React.createElement(ConfirmationBox, {
4155
- t: t,
4156
- title: "ES_VENDOR_SURVEYOR_DELETE_TEXT"
4157
- });
4158
- }
4159
- if (selectedAction === "ADD_VENDOR" || selectedAction === "EDIT_VENDOR") {
4160
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, null, t(`ES_FSM_REGISTRY_SELECT_VENODOR`)), /*#__PURE__*/React.createElement(Dropdown, {
4161
- t: t,
4162
- option: vendors,
4163
- value: selectedOption,
4164
- selected: selectedOption,
4165
- select: setSelectedOption,
4166
- optionKey: "name"
4167
- }));
4168
- }
4169
- };
4170
4150
  if (isLoading) {
4171
4151
  return /*#__PURE__*/React.createElement(Loader, null);
4172
4152
  }
4173
4153
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
4174
4154
  className: "employee-form-content"
4175
- }, /*#__PURE__*/React.createElement(Card, null, surveyorData === null || surveyorData === void 0 ? void 0 : (_surveyorData$2 = surveyorData[0]) === null || _surveyorData$2 === void 0 ? void 0 : (_surveyorData$2$emplo = _surveyorData$2.employeeResponse) === null || _surveyorData$2$emplo === void 0 ? void 0 : _surveyorData$2$emplo.map((detail, index) => {
4155
+ }, /*#__PURE__*/React.createElement(Card, null, surveyorData === null || surveyorData === void 0 ? void 0 : (_surveyorData$3 = surveyorData[0]) === null || _surveyorData$3 === void 0 ? void 0 : (_surveyorData$3$emplo = _surveyorData$3.employeeResponse) === null || _surveyorData$3$emplo === void 0 ? void 0 : _surveyorData$3$emplo.map((detail, index) => {
4176
4156
  var _detail$values;
4177
4157
  return /*#__PURE__*/React.createElement(React.Fragment, {
4178
4158
  key: index
@@ -4216,20 +4196,19 @@ const SurveyorDetails = props => {
4216
4196
  }))));
4217
4197
  }))), showModal && /*#__PURE__*/React.createElement(Modal, {
4218
4198
  headerBarMain: /*#__PURE__*/React.createElement(Heading$1, {
4219
- label: t(modalHeading())
4199
+ label: t(nextStatus.popupHeader)
4220
4200
  }),
4221
4201
  headerBarEnd: /*#__PURE__*/React.createElement(CloseBtn, {
4222
4202
  onClick: closeModal
4223
4203
  }),
4224
4204
  actionCancelLabel: t("CS_COMMON_CANCEL"),
4225
4205
  actionCancelOnSubmit: closeModal,
4226
- actionSaveLabel: t(selectedAction === "DELETE" || selectedAction === "DELETE_VENDOR" ? "ES_EVENT_DELETE" : "CS_COMMON_SUBMIT"),
4227
- actionSaveOnSubmit: handleModalAction
4228
- }, /*#__PURE__*/React.createElement(Card, {
4229
- style: {
4230
- boxShadow: "none"
4231
- }
4232
- }, renderModalContent())), showToast && /*#__PURE__*/React.createElement(Toast, {
4206
+ actionSaveLabel: t(nextStatus.status),
4207
+ actionSaveOnSubmit: handleDeleteSurveyor
4208
+ }, /*#__PURE__*/React.createElement(ConfirmationBox, {
4209
+ t: t,
4210
+ title: nextStatus.popupMessage
4211
+ })), showToast && /*#__PURE__*/React.createElement(Toast, {
4233
4212
  error: showToast.key === "error",
4234
4213
  label: showToast.key === "success" ? t(`ES_VENDOR_${showToast.action}_SUCCESS`, showToast.action === "UPDATE_SURVEYOR" ? "Surveyor updated successfully" : undefined) : t(showToast.action),
4235
4214
  onClose: closeToast
@@ -4238,12 +4217,13 @@ const SurveyorDetails = props => {
4238
4217
  zIndex: "19"
4239
4218
  }
4240
4219
  }, displayMenu ? /*#__PURE__*/React.createElement(Menu, {
4241
- localeKeyPrefix: "ES_VENDOR_SURVEYOR_ACTION",
4242
- options: ["EDIT", "DELETE"],
4220
+ localeKeyPrefix: "ES_VENDOR_ACTION",
4221
+ options: ["EDIT", nextStatus.popupButton],
4243
4222
  t: t,
4244
4223
  onSelect: a => {
4245
4224
  setDisplayMenu(false);
4246
4225
  setSelectedAction(a);
4226
+ setShowModal(true);
4247
4227
  }
4248
4228
  }) : null, /*#__PURE__*/React.createElement(SubmitBar, {
4249
4229
  label: t("ES_COMMON_TAKE_ACTION"),