sag_components 2.0.0-beta100 → 2.0.0-beta101

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.
Files changed (70) hide show
  1. package/dist/index.d.ts +22 -157
  2. package/dist/index.esm.js +579 -1990
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +579 -2002
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/components/AutocompleteField/AutocompleteField.d.ts +15 -0
  7. package/dist/types/components/AutocompleteField/AutocompleteField.stories.d.ts +13 -0
  8. package/dist/types/components/AutocompleteField/AutocompleteField.style.d.ts +5 -0
  9. package/dist/types/components/BubbleChart/BubbleChart.style.d.ts +2 -0
  10. package/dist/types/components/Button/Button.d.ts +21 -1
  11. package/dist/types/components/Button/Button.stories.d.ts +35 -93
  12. package/dist/types/components/CampaignTool/CampaignDemoReport.stories.d.ts +46 -0
  13. package/dist/types/components/{ContainerTable/ContainerTable.stories.d.ts → CampaignTool/Card.stories.d.ts} +33 -37
  14. package/dist/types/components/CampaignTool/MultipleCard.stories.d.ts +28 -0
  15. package/dist/types/components/CampaignTool/PageFilterBar.stories.d.ts +17 -0
  16. package/dist/types/components/CampaignTool/Popup.stories.d.ts +101 -0
  17. package/dist/types/components/CampaignTool/Table.stories.d.ts +108 -0
  18. package/dist/types/components/DropdownNew/DropdownNew.d.ts +80 -1
  19. package/dist/types/components/Input/Input.stories.d.ts +76 -84
  20. package/dist/types/components/SearchInput/SearchInput.d.ts +22 -0
  21. package/dist/types/components/SearchInput/SearchInput.stories.d.ts +5 -59
  22. package/dist/types/components/SearchInput/SearchInput.style.d.ts +0 -1
  23. package/dist/types/components/TabMenu/TabMenu.style.d.ts +17 -1
  24. package/dist/types/index.d.ts +0 -12
  25. package/package.json +1 -1
  26. package/dist/types/components/ContainerTable/ContainerTable.d.ts +0 -2
  27. package/dist/types/components/ContainerTable/ContainerTable.style.d.ts +0 -7
  28. package/dist/types/components/EventsTable/ColumnFilter.d.ts +0 -7
  29. package/dist/types/components/EventsTable/DeleteEventModal.d.ts +0 -5
  30. package/dist/types/components/EventsTable/EventTable.d.ts +0 -7
  31. package/dist/types/components/EventsTable/EventsHeader.d.ts +0 -6
  32. package/dist/types/components/EventsTable/EventsPage.d.ts +0 -1
  33. package/dist/types/components/EventsTable/EventsPage.stories.d.ts +0 -8
  34. package/dist/types/components/EventsTable/SendButton.d.ts +0 -3
  35. package/dist/types/components/EventsTable/mockEvents.d.ts +0 -15
  36. package/dist/types/components/ItemManagerPanel/ItemManagerPanel.d.ts +0 -6
  37. package/dist/types/components/ItemManagerPanel/ItemManagerPanel.stories.d.ts +0 -24
  38. package/dist/types/components/ItemManagerPanel/ItemManagerPanel.style.d.ts +0 -18
  39. package/dist/types/components/ItemManagerPanel/NewItemList/NewItemList.d.ts +0 -6
  40. package/dist/types/components/ItemManagerPanel/NewItemList/NewItemList.style.d.ts +0 -13
  41. package/dist/types/components/MenuRoute/MenuIcons/Build.d.ts +0 -6
  42. package/dist/types/components/MenuRoute/MenuIcons/Execute.d.ts +0 -6
  43. package/dist/types/components/MenuRoute/MenuIcons/Track.d.ts +0 -6
  44. package/dist/types/components/MenuRoute/MenuRoute.d.ts +0 -2
  45. package/dist/types/components/MenuRoute/MenuRoute.stories.d.ts +0 -52
  46. package/dist/types/components/MenuRoute/MenuRoute.style.d.ts +0 -3
  47. package/dist/types/components/ModalWithOverlay/ModalWithOverlay.d.ts +0 -2
  48. package/dist/types/components/ModalWithOverlay/ModalWithOverlay.stories.d.ts +0 -112
  49. package/dist/types/components/ModalWithOverlay/ModalWithOverlay.style.d.ts +0 -7
  50. package/dist/types/components/OverlayDropdown/OverlayDropdown.d.ts +0 -24
  51. package/dist/types/components/OverlayDropdown/OverlayDropdown.stories.d.ts +0 -11
  52. package/dist/types/components/OverlayDropdown/OverlayDropdown.style.d.ts +0 -9
  53. package/dist/types/components/OverlayDropdown/OverlayTemplateDialog.d.ts +0 -21
  54. package/dist/types/components/OverlayDropdown/OverlayTemplateDialog.style.d.ts +0 -10
  55. package/dist/types/components/Table/NoEvents.d.ts +0 -5
  56. package/dist/types/components/Table/Table.d.ts +0 -2
  57. package/dist/types/components/Table/Table.stories.d.ts +0 -138
  58. package/dist/types/components/Table/Table.style.d.ts +0 -14
  59. package/dist/types/components/ToggleSwitch/ToggleSwitch.d.ts +0 -21
  60. package/dist/types/components/ToggleSwitch/ToggleSwitch.stories.d.ts +0 -15
  61. package/dist/types/components/ToggleSwitch/ToggleSwitch.style.d.ts +0 -3
  62. package/dist/types/components/WeeksPicker/WeeksCalendar.d.ts +0 -28
  63. package/dist/types/components/WeeksPicker/WeeksCalendar.styles.d.ts +0 -5
  64. package/dist/types/components/WeeksPicker/WeeksPicker.d.ts +0 -27
  65. package/dist/types/components/WeeksPicker/WeeksPicker.stories.d.ts +0 -9
  66. package/dist/types/components/WeeksPicker/WeeksPicker.style.d.ts +0 -8
  67. package/dist/types/icons/ArrowLeftIcon.d.ts +0 -7
  68. package/dist/types/icons/Plus.d.ts +0 -6
  69. package/dist/types/icons/PlusIcon.d.ts +0 -6
  70. package/dist/types/icons/index.d.ts +0 -15
package/dist/index.js CHANGED
@@ -14,16 +14,6 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React$1);
14
14
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
15
15
  var Skeleton__default = /*#__PURE__*/_interopDefaultLegacy(Skeleton);
16
16
 
17
- function _extends$1() {
18
- return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
19
- for (var e = 1; e < arguments.length; e++) {
20
- var t = arguments[e];
21
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
22
- }
23
- return n;
24
- }, _extends$1.apply(null, arguments);
25
- }
26
-
27
17
  const ButtonContainer$1 = styled__default["default"].div`
28
18
  //position: relative;
29
19
  display: flex;
@@ -44,7 +34,7 @@ const ButtonItem = styled__default["default"].div`
44
34
  height: ${props => props.height};
45
35
  color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
46
36
  border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
47
- border-radius: ${props => props.borderRadius};
37
+ border-radius: 12px;
48
38
  background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
49
39
  box-sizing: border-box;
50
40
  gap: 8px;
@@ -63,7 +53,7 @@ const ButtonItem = styled__default["default"].div`
63
53
  transition: background-color 0.3s, color 0.3s;
64
54
  }
65
55
  `;
66
- const Label$8 = styled__default["default"].label`
56
+ const Label$7 = styled__default["default"].label`
67
57
  font-family: "Poppins";
68
58
  font-size: 14px;
69
59
  font-weight: 400;
@@ -71,7 +61,7 @@ const Label$8 = styled__default["default"].label`
71
61
  pointer-events: none;
72
62
  user-select: none;
73
63
  `;
74
- const IconWrapper$4 = styled__default["default"].div`
64
+ const IconWrapper$1 = styled__default["default"].div`
75
65
  display: flex;
76
66
  align-items: center;
77
67
  justify-content: center;
@@ -80,13 +70,14 @@ const IconWrapper$4 = styled__default["default"].div`
80
70
  const InputCommit = styled__default["default"].input`
81
71
  font-family: "Poppins", sans-serif;
82
72
  border: ${props => `0px solid ${props.disabled ? props.disabled_border_color : props.hover_border_color}`};
73
+ border-radius: 8px;
83
74
  font-weight: 400;
84
75
  font-size: 14px;
85
76
  width: ${props => props.width};
86
77
  height: ${props => props.height};
87
78
  color: ${props => props.disabled ? props.disabled_text_color : props.text_color};
88
79
  border: ${props => `1px solid ${props.disabled ? props.disabled_border_color : props.border_color}`};
89
- border-radius: ${props => props.borderRadius};
80
+ border-radius: 12px;
90
81
  background-color: ${props => props.disabled ? props.disabled_background_color : props.background_color};
91
82
  cursor: pointer;
92
83
  padding: ${props => props.padding};
@@ -106,24 +97,6 @@ const InputCommit = styled__default["default"].input`
106
97
  }
107
98
  `;
108
99
 
109
- const DownloadIcon = _ref => {
110
- let {
111
- width = '8',
112
- height = '9',
113
- color = '#212121'
114
- } = _ref;
115
- return /*#__PURE__*/React__default["default"].createElement("svg", {
116
- width: width,
117
- height: height,
118
- viewBox: "0 0 20 20",
119
- fill: "none",
120
- xmlns: "http://www.w3.org/2000/svg"
121
- }, /*#__PURE__*/React__default["default"].createElement("path", {
122
- d: "M9.57031 14.8438L3.94531 9.84375C3.67188 9.64844 3.67188 9.21875 3.90625 8.98438C4.10156 8.71094 4.53125 8.71094 4.76562 8.90625L9.375 13.0078V0.625C9.375 0.3125 9.64844 0 10 0C10.3125 0 10.625 0.3125 10.625 0.625V13.0078L15.1953 8.94531C15.4297 8.71094 15.8594 8.71094 16.0547 8.98438C16.2891 9.21875 16.2891 9.64844 16.0156 9.84375L10.3906 14.8438C10.2734 14.9609 10.1172 15 10 15C9.84375 15 9.6875 14.9609 9.57031 14.8438ZM17.5 12.5C18.8672 12.5 20 13.6328 20 15V17.5C20 18.9062 18.8672 20 17.5 20H2.5C1.09375 20 0 18.9062 0 17.5V15C0 13.6328 1.09375 12.5 2.5 12.5H4.375C4.6875 12.5 5 12.8125 5 13.125C5 13.4766 4.6875 13.75 4.375 13.75H2.5C1.79688 13.75 1.25 14.3359 1.25 15V17.5C1.25 18.2031 1.79688 18.75 2.5 18.75H17.5C18.1641 18.75 18.75 18.2031 18.75 17.5V15C18.75 14.3359 18.1641 13.75 17.5 13.75H15.625C15.2734 13.75 15 13.4766 15 13.125C15 12.8125 15.2734 12.5 15.625 12.5H17.5ZM17.1875 16.25C17.1875 16.7969 16.7578 17.1875 16.25 17.1875C15.7031 17.1875 15.3125 16.7969 15.3125 16.25C15.3125 15.7422 15.7031 15.3125 16.25 15.3125C16.7578 15.3125 17.1875 15.7422 17.1875 16.25Z",
123
- fill: color
124
- }));
125
- };
126
-
127
100
  const FilterIcon = _ref => {
128
101
  let {
129
102
  width = '17',
@@ -169,6 +142,24 @@ const OptionsIcon = _ref => {
169
142
  }));
170
143
  };
171
144
 
145
+ const DownloadIcon = _ref => {
146
+ let {
147
+ width = '8',
148
+ height = '9',
149
+ color = '#212121'
150
+ } = _ref;
151
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
152
+ width: width,
153
+ height: height,
154
+ viewBox: "0 0 20 20",
155
+ fill: "none",
156
+ xmlns: "http://www.w3.org/2000/svg"
157
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
158
+ d: "M9.57031 14.8438L3.94531 9.84375C3.67188 9.64844 3.67188 9.21875 3.90625 8.98438C4.10156 8.71094 4.53125 8.71094 4.76562 8.90625L9.375 13.0078V0.625C9.375 0.3125 9.64844 0 10 0C10.3125 0 10.625 0.3125 10.625 0.625V13.0078L15.1953 8.94531C15.4297 8.71094 15.8594 8.71094 16.0547 8.98438C16.2891 9.21875 16.2891 9.64844 16.0156 9.84375L10.3906 14.8438C10.2734 14.9609 10.1172 15 10 15C9.84375 15 9.6875 14.9609 9.57031 14.8438ZM17.5 12.5C18.8672 12.5 20 13.6328 20 15V17.5C20 18.9062 18.8672 20 17.5 20H2.5C1.09375 20 0 18.9062 0 17.5V15C0 13.6328 1.09375 12.5 2.5 12.5H4.375C4.6875 12.5 5 12.8125 5 13.125C5 13.4766 4.6875 13.75 4.375 13.75H2.5C1.79688 13.75 1.25 14.3359 1.25 15V17.5C1.25 18.2031 1.79688 18.75 2.5 18.75H17.5C18.1641 18.75 18.75 18.2031 18.75 17.5V15C18.75 14.3359 18.1641 13.75 17.5 13.75H15.625C15.2734 13.75 15 13.4766 15 13.125C15 12.8125 15.2734 12.5 15.625 12.5H17.5ZM17.1875 16.25C17.1875 16.7969 16.7578 17.1875 16.25 17.1875C15.7031 17.1875 15.3125 16.7969 15.3125 16.25C15.3125 15.7422 15.7031 15.3125 16.25 15.3125C16.7578 15.3125 17.1875 15.7422 17.1875 16.25Z",
159
+ fill: color
160
+ }));
161
+ };
162
+
172
163
  const DocumentIcon = _ref => {
173
164
  let {
174
165
  width = '19',
@@ -301,174 +292,42 @@ const EyeIcon = _ref => {
301
292
  }));
302
293
  };
303
294
 
304
- const ButtonArrowRight = ({
305
- width = '16',
306
- height = '17'
307
- }) => /*#__PURE__*/React__default["default"].createElement("svg", {
308
- width: width,
309
- height: height,
310
- viewBox: "0 0 16 17",
311
- fill: "none",
312
- xmlns: "http://www.w3.org/2000/svg"
313
- }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
314
- id: "icon",
315
- d: "M14.5 8.48438C14.5 6.17188 13.25 4.04688 11.25 2.85938C9.21875 1.70312 6.75 1.70312 4.75 2.85938C2.71875 4.04688 1.5 6.17188 1.5 8.48438C1.5 10.8282 2.71875 12.9532 4.75 14.1406C6.75 15.2969 9.21875 15.2969 11.25 14.1406C13.25 12.9532 14.5 10.8282 14.5 8.48438ZM0 8.48438C0 5.64062 1.5 3.01562 4 1.57812C6.46875 0.140625 9.5 0.140625 12 1.57812C14.4688 3.01562 16 5.64062 16 8.48438C16 11.3594 14.4688 13.9844 12 15.4219C9.5 16.8594 6.46875 16.8594 4 15.4219C1.5 13.9844 0 11.3594 0 8.48438ZM9.03125 11.7656C8.71875 12.0782 8.25 12.0782 7.96875 11.7656C7.65625 11.4844 7.65625 11.0156 7.96875 10.7032L9.4375 9.23438H4.75C4.3125 9.23438 4 8.92188 4 8.48438C4 8.07812 4.3125 7.73438 4.75 7.73438H9.4375L7.96875 6.26562C7.65625 5.98438 7.65625 5.51562 7.96875 5.23438C8.25 4.92188 8.71875 4.92188 9.03125 5.23438L11.7812 7.98438C12.0625 8.26562 12.0625 8.73438 11.7812 9.01562L9.03125 11.7656Z",
316
- fill: "white"
317
- })));
318
-
319
- const ReselectIcon = ({
320
- width = '16',
321
- height = '16',
322
- color = '#212121'
323
- }) => /*#__PURE__*/React__default["default"].createElement("svg", {
324
- width: width,
325
- height: height,
326
- viewBox: "0 0 16 16",
327
- fill: "none",
328
- xmlns: "http://www.w3.org/2000/svg"
329
- }, /*#__PURE__*/React__default["default"].createElement("path", {
330
- d: "M4.21875 15.5312L1.21875 12.5312C0.90625 12.25 0.90625 11.7812 1.21875 11.4688L4.21875 8.5C4.5 8.1875 4.96875 8.1875 5.25 8.5C5.5625 8.78125 5.5625 9.25 5.25 9.53125L3.53125 11.25H14.25C14.6562 11.25 15 11.5938 15 12C15 12.4375 14.6562 12.75 14.25 12.75L3.53125 12.7812L5.25 14.5C5.5625 14.7812 5.5625 15.25 5.25 15.5312C4.96875 15.8438 4.5 15.8438 4.21875 15.5312ZM14.7812 4.53125L11.7812 7.53125C11.4688 7.84375 11 7.84375 10.7188 7.53125C10.4062 7.25 10.4062 6.78125 10.7188 6.46875L12.4375 4.75H1.75C1.3125 4.75 1 4.4375 1 4C1 3.59375 1.3125 3.25 1.75 3.25H12.4375L10.7188 1.53125C10.4062 1.25 10.4062 0.78125 10.7188 0.46875C11 0.1875 11.4688 0.1875 11.7812 0.46875L14.7812 3.5C15.0625 3.78125 15.0625 4.25 14.7812 4.53125Z",
331
- fill: color
332
- }));
295
+ const ButtonArrowRight = _ref => {
296
+ let {
297
+ width = '16',
298
+ height = '17'
299
+ } = _ref;
300
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
301
+ width: width,
302
+ height: height,
303
+ viewBox: "0 0 16 17",
304
+ fill: "none",
305
+ xmlns: "http://www.w3.org/2000/svg"
306
+ }, /*#__PURE__*/React__default["default"].createElement("g", null, /*#__PURE__*/React__default["default"].createElement("path", {
307
+ id: "icon",
308
+ d: "M14.5 8.48438C14.5 6.17188 13.25 4.04688 11.25 2.85938C9.21875 1.70312 6.75 1.70312 4.75 2.85938C2.71875 4.04688 1.5 6.17188 1.5 8.48438C1.5 10.8282 2.71875 12.9532 4.75 14.1406C6.75 15.2969 9.21875 15.2969 11.25 14.1406C13.25 12.9532 14.5 10.8282 14.5 8.48438ZM0 8.48438C0 5.64062 1.5 3.01562 4 1.57812C6.46875 0.140625 9.5 0.140625 12 1.57812C14.4688 3.01562 16 5.64062 16 8.48438C16 11.3594 14.4688 13.9844 12 15.4219C9.5 16.8594 6.46875 16.8594 4 15.4219C1.5 13.9844 0 11.3594 0 8.48438ZM9.03125 11.7656C8.71875 12.0782 8.25 12.0782 7.96875 11.7656C7.65625 11.4844 7.65625 11.0156 7.96875 10.7032L9.4375 9.23438H4.75C4.3125 9.23438 4 8.92188 4 8.48438C4 8.07812 4.3125 7.73438 4.75 7.73438H9.4375L7.96875 6.26562C7.65625 5.98438 7.65625 5.51562 7.96875 5.23438C8.25 4.92188 8.71875 4.92188 9.03125 5.23438L11.7812 7.98438C12.0625 8.26562 12.0625 8.73438 11.7812 9.01562L9.03125 11.7656Z",
309
+ fill: "white"
310
+ })));
311
+ };
333
312
 
334
- const SearchIcon = _ref => {
313
+ const ReselectIcon = _ref => {
335
314
  let {
336
- width = '13',
337
- height = '13',
315
+ width = '16',
316
+ height = '16',
338
317
  color = '#212121'
339
318
  } = _ref;
340
319
  return /*#__PURE__*/React__default["default"].createElement("svg", {
341
320
  width: width,
342
321
  height: height,
343
- viewBox: "0 0 13 13",
322
+ viewBox: "0 0 16 16",
344
323
  fill: "none",
345
324
  xmlns: "http://www.w3.org/2000/svg"
346
325
  }, /*#__PURE__*/React__default["default"].createElement("path", {
347
- d: "M8.625 4.875C8.625 3.53906 7.89844 2.32031 6.75 1.64062C5.57812 0.960938 4.14844 0.960938 3 1.64062C1.82812 2.32031 1.125 3.53906 1.125 4.875C1.125 6.23438 1.82812 7.45312 3 8.13281C4.14844 8.8125 5.57812 8.8125 6.75 8.13281C7.89844 7.45312 8.625 6.23438 8.625 4.875ZM7.89844 8.71875C7.05469 9.375 6 9.75 4.875 9.75C2.17969 9.75 0 7.57031 0 4.875C0 2.20312 2.17969 0 4.875 0C7.54688 0 9.75 2.20312 9.75 4.875C9.75 6.02344 9.35156 7.07812 8.69531 7.92188L11.8359 11.0391C12.0469 11.2734 12.0469 11.625 11.8359 11.8359C11.6016 12.0703 11.25 12.0703 11.0391 11.8359L7.89844 8.71875Z",
326
+ d: "M4.21875 15.5312L1.21875 12.5312C0.90625 12.25 0.90625 11.7812 1.21875 11.4688L4.21875 8.5C4.5 8.1875 4.96875 8.1875 5.25 8.5C5.5625 8.78125 5.5625 9.25 5.25 9.53125L3.53125 11.25H14.25C14.6562 11.25 15 11.5938 15 12C15 12.4375 14.6562 12.75 14.25 12.75L3.53125 12.7812L5.25 14.5C5.5625 14.7812 5.5625 15.25 5.25 15.5312C4.96875 15.8438 4.5 15.8438 4.21875 15.5312ZM14.7812 4.53125L11.7812 7.53125C11.4688 7.84375 11 7.84375 10.7188 7.53125C10.4062 7.25 10.4062 6.78125 10.7188 6.46875L12.4375 4.75H1.75C1.3125 4.75 1 4.4375 1 4C1 3.59375 1.3125 3.25 1.75 3.25H12.4375L10.7188 1.53125C10.4062 1.25 10.4062 0.78125 10.7188 0.46875C11 0.1875 11.4688 0.1875 11.7812 0.46875L14.7812 3.5C15.0625 3.78125 15.0625 4.25 14.7812 4.53125Z",
348
327
  fill: color
349
328
  }));
350
329
  };
351
330
 
352
- const PlusIcon = ({
353
- width = '17',
354
- height = '17',
355
- color = '#212121'
356
- }) => /*#__PURE__*/React__default["default"].createElement("svg", {
357
- xmlns: "http://www.w3.org/2000/svg",
358
- width: "16",
359
- height: "17",
360
- viewBox: "0 0 16 17",
361
- fill: "none"
362
- }, /*#__PURE__*/React__default["default"].createElement("path", {
363
- d: "M8.71875 2.28125V7.90625H14.3438C14.8008 7.90625 15.1875 8.29297 15.1875 8.75C15.1875 9.24219 14.8008 9.59375 14.3438 9.59375H8.71875V15.2188C8.71875 15.7109 8.33203 16.0625 7.875 16.0625C7.38281 16.0625 7.03125 15.7109 7.03125 15.2188V9.59375H1.40625C0.914062 9.59375 0.5625 9.24219 0.5625 8.75C0.5625 8.29297 0.914062 7.90625 1.40625 7.90625H7.03125V2.28125C7.03125 1.82422 7.38281 1.4375 7.875 1.4375C8.33203 1.4375 8.71875 1.82422 8.71875 2.28125Z",
364
- fill: "#066768"
365
- }));
366
-
367
- const Plus = ({
368
- width = 17,
369
- height = 17,
370
- fill = 'white'
371
- }) => /*#__PURE__*/React__default["default"].createElement("svg", {
372
- width: width,
373
- height: height,
374
- viewBox: "0 0 17 17",
375
- fill: "none",
376
- xmlns: "http://www.w3.org/2000/svg"
377
- }, /*#__PURE__*/React__default["default"].createElement("path", {
378
- d: "M9.34619 2.03369V7.65869H14.9712C15.4282 7.65869 15.8149 8.04541 15.8149 8.50244C15.8149 8.99463 15.4282 9.34619 14.9712 9.34619H9.34619V14.9712C9.34619 15.4634 8.95947 15.8149 8.50244 15.8149C8.01025 15.8149 7.65869 15.4634 7.65869 14.9712V9.34619H2.03369C1.5415 9.34619 1.18994 8.99463 1.18994 8.50244C1.18994 8.04541 1.5415 7.65869 2.03369 7.65869H7.65869V2.03369C7.65869 1.57666 8.01025 1.18994 8.50244 1.18994C8.95947 1.18994 9.34619 1.57666 9.34619 2.03369Z",
379
- fill: fill
380
- }));
381
-
382
- const Button$1 = props => {
383
- const {
384
- text = "",
385
- type = "primary",
386
- size = "small",
387
- height = "",
388
- width = "",
389
- disabled = false,
390
- textColor = "",
391
- backgroundColor = "",
392
- borderColor = "",
393
- borderRadius = "12px",
394
- hoverTextColor = "",
395
- hoverBackgroundColor = "",
396
- hoverBorderColor = "",
397
- disabledTextColor = "",
398
- disabledBackgroundColor = "",
399
- disabledBorderColor = "",
400
- onClick = () => {},
401
- leftIcon = null,
402
- rightIcon = null,
403
- isSubmitButton = false
404
- } = props;
405
- const [clicked, setClicked] = React$1.useState(false);
406
- const [hover, setHover] = React$1.useState(false);
407
- const handleClick = event => {
408
- setClicked(prev => !prev);
409
- onClick(event);
410
- setTimeout(() => setClicked(prev => !prev), 300);
411
- };
412
- const iconMap = {
413
- arrow: ButtonArrowRight,
414
- filter: FilterIcon,
415
- options: OptionsIcon,
416
- download: DownloadIcon,
417
- document: DocumentIcon,
418
- fly: FlyIcon,
419
- bell: BellIcon,
420
- maintenance: MaintenanceIcon,
421
- exit: ExitIcon,
422
- eye: EyeIcon,
423
- reselect: ReselectIcon,
424
- plus: Plus
425
- };
426
- const getIcon = icon => {
427
- if (!icon || icon === "none") return null;
428
- const IconComponent = iconMap[icon.toLowerCase()];
429
- const iconProps = {
430
- height: "16px",
431
- width: "16px",
432
- color: disabled ? disabledTextColor || "#B1B1B1" : hover ? hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff") : textColor || (type === "secondary" ? "#212121" : "#ffffff")
433
- };
434
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$4, null, /*#__PURE__*/React__default["default"].createElement(IconComponent, iconProps));
435
- };
436
- const commonProps = {
437
- width: width || null,
438
- height: height || (size === "small" ? "33px" : "45px"),
439
- disabled,
440
- text_color: textColor || (type === "secondary" ? "#212121" : "#ffffff"),
441
- background_color: backgroundColor || (type === "secondary" ? "#ffffff" : "#229E38"),
442
- border_color: borderColor || (type === "secondary" ? "#B1B1B1" : "#229E38"),
443
- hover_text_color: hoverTextColor || (type === "secondary" ? "#229E38" : "#ffffff"),
444
- hover_background_color: hoverBackgroundColor || (type === "secondary" ? "#E8F5EB" : "#92CF17"),
445
- hover_border_color: hoverBorderColor || (type === "secondary" ? "#229E38" : "#92CF17"),
446
- disabled_text_color: disabledTextColor || "#B1B1B1",
447
- disabled_background_color: disabledBackgroundColor || (type === "secondary" ? "#ffffff" : "#E3E4E5"),
448
- disabled_border_color: disabledBorderColor || "#E3E4E5",
449
- padding: size === "small" ? "0 16px" : "0 20px",
450
- onClick: !disabled ? handleClick : null
451
- };
452
- return /*#__PURE__*/React__default["default"].createElement(ButtonContainer$1, {
453
- className: "ButtonContainer",
454
- width: commonProps.width,
455
- height: commonProps.height
456
- }, isSubmitButton ? /*#__PURE__*/React__default["default"].createElement(InputCommit, _extends$1({
457
- className: clicked ? "InputCommit-clicked" : "InputCommit",
458
- value: text,
459
- type: "submit",
460
- borderRadius: borderRadius
461
- }, commonProps)) : /*#__PURE__*/React__default["default"].createElement(ButtonItem, _extends$1({
462
- className: clicked ? "ButtonItem-clicked" : "ButtonItem",
463
- onMouseEnter: () => setHover(true),
464
- onMouseLeave: () => setHover(false),
465
- borderRadius: borderRadius
466
- }, commonProps), getIcon(leftIcon), /*#__PURE__*/React__default["default"].createElement(Label$8, {
467
- className: "Label",
468
- disabled: disabled
469
- }, text), getIcon(rightIcon)));
470
- };
471
-
472
331
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
473
332
 
474
333
  function getDefaultExportFromCjs (x) {
@@ -1622,6 +1481,199 @@ if (process.env.NODE_ENV !== 'production') {
1622
1481
  var propTypesExports = propTypes.exports;
1623
1482
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1624
1483
 
1484
+ const Button = _ref => {
1485
+ let {
1486
+ text = '',
1487
+ type = 'primary',
1488
+ size = 'small',
1489
+ height = '',
1490
+ width = '',
1491
+ disabled = false,
1492
+ textColor = '',
1493
+ backgroundColor = '',
1494
+ borderColor = '',
1495
+ hoverTextColor = '',
1496
+ hoverBackgroundColor = '',
1497
+ hoverBorderColor = '',
1498
+ disabledTextColor = '',
1499
+ disabledBackgroundColor = '',
1500
+ disabledBorderColor = '',
1501
+ onClick = () => {},
1502
+ leftIcon = 'none',
1503
+ rightIcon = 'none',
1504
+ isSubmitButton = false
1505
+ } = _ref;
1506
+ const [clicked, setClicked] = React$1.useState(false);
1507
+ const [hover, setHover] = React$1.useState(false);
1508
+ const handleSubmitButtonOnClick = () => {
1509
+ setClicked(true);
1510
+ onClick(`SubmitButtonOnClick: ${text}`);
1511
+ setTimeout(() => {
1512
+ setClicked(false);
1513
+ }, 300);
1514
+ };
1515
+ const handleButtonClick = event => {
1516
+ setClicked(true);
1517
+ onClick(event);
1518
+ setTimeout(() => {
1519
+ setClicked(false);
1520
+ }, 300);
1521
+ };
1522
+ const getIcon = icon => {
1523
+ const iconHeight = '16px';
1524
+ const iconWidth = '16px';
1525
+ const newTextColor = textColor || (type === 'secondary' ? '#212121' : '#ffffff');
1526
+ const newHoverTextColor = hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff');
1527
+ const newDisabledTextColor = disabledTextColor || '#B1B1B1';
1528
+ const newEnabledTextColor = hover ? newHoverTextColor : newTextColor;
1529
+ const color = disabled ? newDisabledTextColor : newEnabledTextColor;
1530
+ switch (icon.toLowerCase()) {
1531
+ case 'arrow':
1532
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1533
+ className: "ArrowRightIcon"
1534
+ }, /*#__PURE__*/React__default["default"].createElement(ButtonArrowRight, {
1535
+ height: iconHeight,
1536
+ width: iconWidth,
1537
+ color: color
1538
+ }));
1539
+ case 'filter':
1540
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1541
+ className: "FilterIcon"
1542
+ }, /*#__PURE__*/React__default["default"].createElement(FilterIcon, {
1543
+ height: "150px",
1544
+ width: iconWidth,
1545
+ color: color
1546
+ }));
1547
+ case 'options':
1548
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1549
+ className: "OptionsIcon"
1550
+ }, /*#__PURE__*/React__default["default"].createElement(OptionsIcon, {
1551
+ height: iconHeight,
1552
+ width: iconWidth,
1553
+ color: color
1554
+ }));
1555
+ case 'download':
1556
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1557
+ className: "DownloadIcon"
1558
+ }, /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
1559
+ height: iconHeight,
1560
+ width: iconWidth,
1561
+ color: color
1562
+ }));
1563
+ case 'document':
1564
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1565
+ className: "DocumentIcon"
1566
+ }, /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
1567
+ height: iconHeight,
1568
+ width: iconWidth,
1569
+ color: color
1570
+ }));
1571
+ case 'fly':
1572
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1573
+ className: "FlyIcon"
1574
+ }, /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
1575
+ height: iconHeight,
1576
+ width: iconWidth,
1577
+ color: color
1578
+ }));
1579
+ case 'bell':
1580
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1581
+ className: "BellIcon"
1582
+ }, /*#__PURE__*/React__default["default"].createElement(BellIcon, {
1583
+ height: iconHeight,
1584
+ width: iconWidth,
1585
+ color: color
1586
+ }));
1587
+ case 'maintenance':
1588
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1589
+ className: "MaintenanceIcon"
1590
+ }, /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
1591
+ height: iconHeight,
1592
+ width: iconWidth,
1593
+ color: color
1594
+ }));
1595
+ case 'exit':
1596
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1597
+ className: "ExitIcon"
1598
+ }, /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
1599
+ height: iconHeight,
1600
+ width: iconWidth,
1601
+ color: color
1602
+ }));
1603
+ case 'eye':
1604
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1605
+ className: "EyeIcon"
1606
+ }, /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
1607
+ height: iconHeight,
1608
+ width: iconWidth,
1609
+ color: color
1610
+ }));
1611
+ case 'reselect':
1612
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
1613
+ className: "ReselectIcon"
1614
+ }, /*#__PURE__*/React__default["default"].createElement(ReselectIcon, {
1615
+ height: iconHeight,
1616
+ width: iconWidth,
1617
+ color: color
1618
+ }));
1619
+ default:
1620
+ return '';
1621
+ }
1622
+ };
1623
+ const getLeftIcon = () => {
1624
+ if (!leftIcon || leftIcon === 'none') return '';
1625
+ return getIcon(leftIcon);
1626
+ };
1627
+ const getRightIcon = () => {
1628
+ if (!rightIcon || rightIcon === 'none') return '';
1629
+ return getIcon(rightIcon);
1630
+ };
1631
+ return /*#__PURE__*/React__default["default"].createElement(ButtonContainer$1, {
1632
+ className: "ButtonContainer",
1633
+ width: width || null,
1634
+ height: height || (size === 'small' ? '33px' : '45px')
1635
+ }, isSubmitButton ? /*#__PURE__*/React__default["default"].createElement(InputCommit, {
1636
+ className: clicked ? 'InputCommit-clicked' : 'InputCommit',
1637
+ value: text,
1638
+ type: "submit",
1639
+ width: width || null,
1640
+ height: height || (size === 'small' ? '33px' : '45px'),
1641
+ disabled: disabled,
1642
+ text_color: textColor || (type === 'secondary' ? '#212121' : '#ffffff'),
1643
+ background_color: backgroundColor || (type === 'secondary' ? '#ffffff' : '#229E38'),
1644
+ border_color: borderColor || (type === 'secondary' ? '#B1B1B1' : '#229E38'),
1645
+ hover_text_color: hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff'),
1646
+ hover_background_color: hoverBackgroundColor || (type === 'secondary' ? '#E8F5EB' : '#92CF17'),
1647
+ hover_border_color: hoverBorderColor || (type === 'secondary' ? '#229E38' : '#92CF17'),
1648
+ disabled_text_color: disabledTextColor || '#B1B1B1',
1649
+ disabled_background_color: disabledBackgroundColor || (type === 'secondary' ? '#ffffff' : '#E3E4E5'),
1650
+ disabled_border_color: disabledBorderColor || '#E3E4E5',
1651
+ padding: size === 'small' ? '0 16px' : '0 20px',
1652
+ onClick: !disabled ? handleSubmitButtonOnClick : null
1653
+ }) : /*#__PURE__*/React__default["default"].createElement(ButtonItem, {
1654
+ className: clicked ? 'ButtonItem-clicked' : 'ButtonItem',
1655
+ onMouseEnter: () => setHover(true),
1656
+ onMouseLeave: () => setHover(false),
1657
+ onClick: event => !disabled ? handleButtonClick(event) : null,
1658
+ width: width || null,
1659
+ height: height || (size === 'small' ? '33px' : '45px'),
1660
+ disabled: disabled,
1661
+ text_color: textColor || (type === 'secondary' ? '#212121' : '#ffffff'),
1662
+ background_color: backgroundColor || (type === 'secondary' ? '#ffffff' : '#229E38'),
1663
+ border_color: borderColor || (type === 'secondary' ? '#B1B1B1' : '#229E38'),
1664
+ hover_text_color: hoverTextColor || (type === 'secondary' ? '#229E38' : '#ffffff'),
1665
+ hover_background_color: hoverBackgroundColor || (type === 'secondary' ? '#E8F5EB' : '#92CF17'),
1666
+ hover_border_color: hoverBorderColor || (type === 'secondary' ? '#229E38' : '#92CF17'),
1667
+ disabled_text_color: disabledTextColor || '#B1B1B1',
1668
+ disabled_background_color: disabledBackgroundColor || (type === 'secondary' ? '#ffffff' : '#E3E4E5'),
1669
+ disabled_border_color: disabledBorderColor || '#E3E4E5',
1670
+ padding: size === 'small' ? '0 16px' : '0 20px'
1671
+ }, getLeftIcon(), /*#__PURE__*/React__default["default"].createElement(Label$7, {
1672
+ className: "Label",
1673
+ disabled: disabled
1674
+ }, text), getRightIcon()));
1675
+ };
1676
+
1625
1677
  /* eslint-disable no-restricted-globals */
1626
1678
  /* eslint-disable no-shadow */
1627
1679
  const getCurrencySign = (currencyTypeToConvert, value) => {
@@ -1897,7 +1949,7 @@ const TitleAndValueContainer$4 = styled__default["default"].div`
1897
1949
  flex-direction: column;
1898
1950
  padding: 0 20px;
1899
1951
  `;
1900
- const Title$k = styled__default["default"].h4`
1952
+ const Title$j = styled__default["default"].h4`
1901
1953
  font-weight: 400;
1902
1954
  font-size: 18px;
1903
1955
  margin: 0 0 8px;
@@ -2373,7 +2425,7 @@ const PieChart = props => {
2373
2425
  width: width
2374
2426
  }, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$4, {
2375
2427
  className: "TitleAndValueContainer"
2376
- }, /*#__PURE__*/React__default["default"].createElement(Title$k, {
2428
+ }, /*#__PURE__*/React__default["default"].createElement(Title$j, {
2377
2429
  className: "Title"
2378
2430
  }, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$2, {
2379
2431
  className: "CurrencySignAndFormattedValueContainer"
@@ -2453,7 +2505,7 @@ PieChart.defaultProps = {
2453
2505
  noDataText: 'No Data'
2454
2506
  };
2455
2507
 
2456
- const MainContainer$8 = styled__default["default"].div`
2508
+ const MainContainer$7 = styled__default["default"].div`
2457
2509
  position: relative;
2458
2510
  font-family: "Poppins", sans-serif;
2459
2511
  background-color: white;
@@ -2660,7 +2712,7 @@ const HannafordNewIcon = _ref => {
2660
2712
  })));
2661
2713
  };
2662
2714
 
2663
- const MainContainer$7 = styled__default["default"].div`
2715
+ const MainContainer$6 = styled__default["default"].div`
2664
2716
  position: relative;
2665
2717
  font-family: "Poppins", sans-serif;
2666
2718
  background-color: white;
@@ -2834,7 +2886,7 @@ const BannersDropdown = props => {
2834
2886
  setBannerButtonArrow('#757575');
2835
2887
  }
2836
2888
  }, [processedBanners]);
2837
- return /*#__PURE__*/React.createElement(MainContainer$7, null, /*#__PURE__*/React.createElement(ToggleBannersWrapper, null, /*#__PURE__*/React.createElement(ToggleBanners, {
2889
+ return /*#__PURE__*/React.createElement(MainContainer$6, null, /*#__PURE__*/React.createElement(ToggleBannersWrapper, null, /*#__PURE__*/React.createElement(ToggleBanners, {
2838
2890
  className: bannerButtonText === 'Partial' ? 'partial' : '',
2839
2891
  onClick: () => setToggled(!toggled)
2840
2892
  }, /*#__PURE__*/React.createElement("span", null, bannerButtonText), /*#__PURE__*/React.createElement(ArrowWrap, {
@@ -2910,11 +2962,11 @@ const LinkButtonItem = styled__default["default"].div`
2910
2962
  transition: background-color 0.3s, color 0.3s;
2911
2963
  }
2912
2964
  `;
2913
- const Label$7 = styled__default["default"].label`
2965
+ const Label$6 = styled__default["default"].label`
2914
2966
  user-select: none;
2915
2967
  pointer-events: none;
2916
2968
  `;
2917
- const IconWrapper$3 = styled__default["default"].div`
2969
+ const IconWrapper = styled__default["default"].div`
2918
2970
  display: flex;
2919
2971
  align-items: center;
2920
2972
  justify-content: center;
@@ -3038,23 +3090,15 @@ const LinkButton = _ref => {
3038
3090
  const color = disabled ? '#B1B1B1' : newTextColor;
3039
3091
  switch (icon.toLowerCase()) {
3040
3092
  case 'filter':
3041
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3093
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3042
3094
  className: "FilterIcon"
3043
3095
  }, /*#__PURE__*/React__default["default"].createElement(FilterIcon, {
3044
3096
  height: iconHeight,
3045
3097
  width: iconWidth,
3046
3098
  color: color
3047
3099
  }));
3048
- case 'plus':
3049
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3050
- className: "PlusIcon"
3051
- }, /*#__PURE__*/React__default["default"].createElement(PlusIcon, {
3052
- height: iconHeight,
3053
- width: iconWidth,
3054
- color: color
3055
- }));
3056
3100
  case 'options':
3057
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3101
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3058
3102
  className: "OptionsIcon"
3059
3103
  }, /*#__PURE__*/React__default["default"].createElement(OptionsIcon, {
3060
3104
  height: iconHeight,
@@ -3062,7 +3106,7 @@ const LinkButton = _ref => {
3062
3106
  color: color
3063
3107
  }));
3064
3108
  case 'download':
3065
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3109
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3066
3110
  className: "DownloadIcon"
3067
3111
  }, /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
3068
3112
  height: iconHeight,
@@ -3070,7 +3114,7 @@ const LinkButton = _ref => {
3070
3114
  color: color
3071
3115
  }));
3072
3116
  case 'document':
3073
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3117
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3074
3118
  className: "DocumentIcon"
3075
3119
  }, /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
3076
3120
  height: iconHeight,
@@ -3078,7 +3122,7 @@ const LinkButton = _ref => {
3078
3122
  color: color
3079
3123
  }));
3080
3124
  case 'fly':
3081
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3125
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3082
3126
  className: "FlyIcon"
3083
3127
  }, /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
3084
3128
  height: iconHeight,
@@ -3086,7 +3130,7 @@ const LinkButton = _ref => {
3086
3130
  color: color
3087
3131
  }));
3088
3132
  case 'bell':
3089
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3133
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3090
3134
  className: "BellIcon"
3091
3135
  }, /*#__PURE__*/React__default["default"].createElement(BellIcon, {
3092
3136
  height: iconHeight,
@@ -3094,7 +3138,7 @@ const LinkButton = _ref => {
3094
3138
  color: color
3095
3139
  }));
3096
3140
  case 'maintenance':
3097
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3141
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3098
3142
  className: "MaintenanceIcon"
3099
3143
  }, /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
3100
3144
  height: iconHeight,
@@ -3102,7 +3146,7 @@ const LinkButton = _ref => {
3102
3146
  color: color
3103
3147
  }));
3104
3148
  case 'exit':
3105
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3149
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3106
3150
  className: "ExitIcon"
3107
3151
  }, /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
3108
3152
  height: iconHeight,
@@ -3110,7 +3154,7 @@ const LinkButton = _ref => {
3110
3154
  color: color
3111
3155
  }));
3112
3156
  case 'eye':
3113
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3157
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3114
3158
  className: "EyeIcon"
3115
3159
  }, /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
3116
3160
  height: iconHeight,
@@ -3118,7 +3162,7 @@ const LinkButton = _ref => {
3118
3162
  color: color
3119
3163
  }));
3120
3164
  case 'arrowdown':
3121
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3165
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3122
3166
  className: "ArrowDownIcon"
3123
3167
  }, /*#__PURE__*/React__default["default"].createElement(MenuItemOpenIcon, {
3124
3168
  height: iconHeight,
@@ -3126,7 +3170,7 @@ const LinkButton = _ref => {
3126
3170
  color: color
3127
3171
  }));
3128
3172
  case 'arrowright':
3129
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3173
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3130
3174
  className: "ArrowRightIcon"
3131
3175
  }, /*#__PURE__*/React__default["default"].createElement(MenuItemRightIcon, {
3132
3176
  height: iconHeight,
@@ -3134,7 +3178,7 @@ const LinkButton = _ref => {
3134
3178
  color: color
3135
3179
  }));
3136
3180
  case 'select':
3137
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3181
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3138
3182
  className: "SelectRightIcon"
3139
3183
  }, /*#__PURE__*/React__default["default"].createElement(ArrowSelectIcon, {
3140
3184
  height: "16px",
@@ -3142,7 +3186,7 @@ const LinkButton = _ref => {
3142
3186
  color: color
3143
3187
  }));
3144
3188
  case 'info':
3145
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$3, {
3189
+ return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
3146
3190
  className: "InfoIcon"
3147
3191
  }, /*#__PURE__*/React__default["default"].createElement(InfoIcon, {
3148
3192
  height: iconHeight,
@@ -3173,7 +3217,7 @@ const LinkButton = _ref => {
3173
3217
  disabled: disabled,
3174
3218
  text_color: textColor || (type === 'secondary' ? '#212121' : '#229E38'),
3175
3219
  font_size: size === 'small' ? '14px' : '16px'
3176
- }, getLeftIcon(), /*#__PURE__*/React__default["default"].createElement(Label$7, {
3220
+ }, getLeftIcon(), /*#__PURE__*/React__default["default"].createElement(Label$6, {
3177
3221
  className: "Label",
3178
3222
  disabled: disabled,
3179
3223
  font_size: size === 'small' ? '14px' : '16px'
@@ -3252,7 +3296,7 @@ const EventDetailsCard = props => {
3252
3296
  const viewButtonClick = e => {
3253
3297
  onViewButtonClick(e);
3254
3298
  };
3255
- return /*#__PURE__*/React.createElement(MainContainer$8, {
3299
+ return /*#__PURE__*/React.createElement(MainContainer$7, {
3256
3300
  className: className,
3257
3301
  height: height,
3258
3302
  width: width
@@ -3330,6 +3374,16 @@ EventDetailsCard.defaultProps = {
3330
3374
  disableViewDetailsButton: false
3331
3375
  };
3332
3376
 
3377
+ function _extends() {
3378
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
3379
+ for (var e = 1; e < arguments.length; e++) {
3380
+ var t = arguments[e];
3381
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
3382
+ }
3383
+ return n;
3384
+ }, _extends.apply(null, arguments);
3385
+ }
3386
+
3333
3387
  const LinnerContainer$1 = styled__default["default"].div.attrs(props => ({
3334
3388
  style: {
3335
3389
  backgroundColor: props.$backgroundColor,
@@ -3403,7 +3457,7 @@ const LinnerDataBox = props => {
3403
3457
  backgroundColor = "#FFFFFF",
3404
3458
  customDataFormat = false
3405
3459
  } = props;
3406
- return /*#__PURE__*/React__default["default"].createElement(LinnerContainer$1, _extends$1({
3460
+ return /*#__PURE__*/React__default["default"].createElement(LinnerContainer$1, _extends({
3407
3461
  className: className,
3408
3462
  $backgroundColor: backgroundColor || "white",
3409
3463
  $width: width || "100%",
@@ -3431,14 +3485,13 @@ const LinnerDataBox = props => {
3431
3485
  const TextFieldContainer = styled__default["default"].div`
3432
3486
  position: relative;
3433
3487
  width: ${props => props.width};
3434
- `;
3435
- const IconWrapper$2 = styled__default["default"].div`
3436
- position: absolute;
3437
- top: 50%;
3438
- transform: translateY(-50%);
3439
- left: ${props => props.position === 'left' ? '10px' : 'unset'};
3440
- right: ${props => props.position === 'right' ? '10px' : 'unset'};
3441
- cursor: pointer;
3488
+ > svg {
3489
+ position: absolute;
3490
+ top: 50%;
3491
+ transform: translateY(-50%);
3492
+ left: 10px;
3493
+
3494
+ }
3442
3495
  `;
3443
3496
  const TextFieldInput = styled__default["default"].input`
3444
3497
  width: 100%;
@@ -3449,7 +3502,7 @@ const TextFieldInput = styled__default["default"].input`
3449
3502
  border-radius: 8px;
3450
3503
  border: 1px solid #B1B1B1;
3451
3504
  background: transparent;
3452
- text-indent: ${props => props.position === 'left' ? '14px' : '0'};
3505
+ text-indent: 14px;
3453
3506
  &:hover,
3454
3507
  &:focus {
3455
3508
  border: 1px solid #212121;
@@ -3459,14 +3512,27 @@ const TextFieldInput = styled__default["default"].input`
3459
3512
  }
3460
3513
  `;
3461
3514
 
3515
+ const SearchIcon = ({
3516
+ width = '13',
3517
+ height = '13',
3518
+ color = '#212121'
3519
+ }) => /*#__PURE__*/React__default["default"].createElement("svg", {
3520
+ width: width,
3521
+ height: height,
3522
+ viewBox: "0 0 13 13",
3523
+ fill: "none",
3524
+ xmlns: "http://www.w3.org/2000/svg"
3525
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3526
+ d: "M8.625 4.875C8.625 3.53906 7.89844 2.32031 6.75 1.64062C5.57812 0.960938 4.14844 0.960938 3 1.64062C1.82812 2.32031 1.125 3.53906 1.125 4.875C1.125 6.23438 1.82812 7.45312 3 8.13281C4.14844 8.8125 5.57812 8.8125 6.75 8.13281C7.89844 7.45312 8.625 6.23438 8.625 4.875ZM7.89844 8.71875C7.05469 9.375 6 9.75 4.875 9.75C2.17969 9.75 0 7.57031 0 4.875C0 2.20312 2.17969 0 4.875 0C7.54688 0 9.75 2.20312 9.75 4.875C9.75 6.02344 9.35156 7.07812 8.69531 7.92188L11.8359 11.0391C12.0469 11.2734 12.0469 11.625 11.8359 11.8359C11.6016 12.0703 11.25 12.0703 11.0391 11.8359L7.89844 8.71875Z",
3527
+ fill: color
3528
+ }));
3529
+
3462
3530
  const SearchInput = props => {
3463
3531
  const {
3464
- placeholder = 'Search',
3532
+ placeholder,
3465
3533
  onTyping,
3466
- width = '100%',
3467
- height = '40px',
3468
- position = 'left',
3469
- iconColor = '#212121',
3534
+ width,
3535
+ height,
3470
3536
  className
3471
3537
  } = props;
3472
3538
  const handleInputChange = e => {
@@ -3475,18 +3541,26 @@ const SearchInput = props => {
3475
3541
  return /*#__PURE__*/React__default["default"].createElement(TextFieldContainer, {
3476
3542
  className: className,
3477
3543
  width: width
3478
- }, /*#__PURE__*/React__default["default"].createElement(IconWrapper$2, {
3479
- position: position
3480
- }, /*#__PURE__*/React__default["default"].createElement(SearchIcon, {
3481
- color: iconColor
3482
- })), /*#__PURE__*/React__default["default"].createElement(TextFieldInput, {
3544
+ }, /*#__PURE__*/React__default["default"].createElement(TextFieldInput, {
3483
3545
  type: "search",
3484
- id: "search-input",
3485
3546
  height: height,
3486
3547
  placeholder: placeholder,
3487
- onChange: handleInputChange,
3488
- position: position
3489
- }));
3548
+ onChange: handleInputChange
3549
+ }), /*#__PURE__*/React__default["default"].createElement(SearchIcon, null));
3550
+ };
3551
+ SearchInput.propTypes = {
3552
+ placeholder: PropTypes.string,
3553
+ width: PropTypes.string,
3554
+ height: PropTypes.string,
3555
+ onTyping: PropTypes.func,
3556
+ className: PropTypes.string
3557
+ };
3558
+ SearchInput.defaultProps = {
3559
+ placeholder: 'Search',
3560
+ width: '100%',
3561
+ height: '40px',
3562
+ onTyping: () => {},
3563
+ className: ''
3490
3564
  };
3491
3565
 
3492
3566
  const scrollableStyles$c = `
@@ -3581,7 +3655,7 @@ const Body = styled__default["default"].div`
3581
3655
  border-radius: ${props => props.setBackground ? '12px' : '0'};
3582
3656
  box-shadow: ${props => props.setBackground ? '0px 0px 20px 0px rgba(0, 0, 0, 0.10)' : 'unset'};
3583
3657
  `;
3584
- const Label$6 = styled__default["default"].div`
3658
+ const Label$5 = styled__default["default"].div`
3585
3659
  font-size: 12px;
3586
3660
  font-weight: 400;
3587
3661
  padding: 8px;
@@ -3820,7 +3894,7 @@ const TabMenu = props => {
3820
3894
  color: color,
3821
3895
  width: `${100 / tabs.length}%`,
3822
3896
  role: "presentation"
3823
- }))), headlineContent && /*#__PURE__*/React__default["default"].createElement(TabActionLine, null, headlineContent), setTopRightButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
3897
+ }))), headlineContent && /*#__PURE__*/React__default["default"].createElement(TabActionLine, null, headlineContent), setTopRightButton && /*#__PURE__*/React__default["default"].createElement(Button, {
3824
3898
  text: rightButtonText,
3825
3899
  rightIcon: rightButtonIcon,
3826
3900
  size: "small",
@@ -3832,7 +3906,7 @@ const TabMenu = props => {
3832
3906
  hoverBorderColor: buttonHoverColor
3833
3907
  })), showActions && /*#__PURE__*/React__default["default"].createElement(ActionsWrapper, {
3834
3908
  className: "ActionsWrapper"
3835
- }, showLabel && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Label$6, {
3909
+ }, showLabel && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Label$5, {
3836
3910
  className: "Label"
3837
3911
  }, /*#__PURE__*/React__default["default"].createElement("span", null, "Platform: "), "Total"), /*#__PURE__*/React__default["default"].createElement("span", {
3838
3912
  className: "separator"
@@ -8453,7 +8527,7 @@ const DropdownWrapper$2 = styled__default["default"].div`
8453
8527
  font-size: 14px;
8454
8528
  border-radius: 10px;
8455
8529
  `;
8456
- const Label$5 = styled__default["default"].label`
8530
+ const Label$4 = styled__default["default"].label`
8457
8531
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
8458
8532
  font-weight: 400;
8459
8533
  padding-inline-end: 5px;
@@ -8476,7 +8550,7 @@ const Label$5 = styled__default["default"].label`
8476
8550
  cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
8477
8551
  }
8478
8552
  `;
8479
- const InputContainer$8 = styled__default["default"].div`
8553
+ const InputContainer$6 = styled__default["default"].div`
8480
8554
  display: flex;
8481
8555
  flex-direction: row;
8482
8556
  flex-wrap: nowrap;
@@ -8508,7 +8582,7 @@ const InputContainer$8 = styled__default["default"].div`
8508
8582
  }
8509
8583
 
8510
8584
  `;
8511
- const InputSubContainer$4 = styled__default["default"].div`
8585
+ const InputSubContainer$3 = styled__default["default"].div`
8512
8586
  display: flex;
8513
8587
  flex-direction: column;
8514
8588
  flex-wrap: nowrap;
@@ -8527,7 +8601,7 @@ const InputSubContainer$4 = styled__default["default"].div`
8527
8601
  outline: none;
8528
8602
  color: ${props => props.disabled ? '#888' : '#212121'};
8529
8603
  `;
8530
- const StyledInput$8 = styled__default["default"].input`
8604
+ const StyledInput$6 = styled__default["default"].input`
8531
8605
  width: calc(100% - 10px);
8532
8606
  height: 20px;
8533
8607
  font-family: Poppins;
@@ -8538,7 +8612,7 @@ const StyledInput$8 = styled__default["default"].input`
8538
8612
  color: ${props => props.disabled ? '#888' : '#212121'};
8539
8613
  border: none;
8540
8614
  `;
8541
- const OptionsContainer$7 = styled__default["default"].div`
8615
+ const OptionsContainer$6 = styled__default["default"].div`
8542
8616
  margin: 0;
8543
8617
  top: 100%;
8544
8618
  left: 0;
@@ -8586,7 +8660,7 @@ const OptionItem$3 = styled__default["default"].li`
8586
8660
  background-color: #EDF6FF;
8587
8661
  }
8588
8662
  `;
8589
- const ErrorMessage$4 = styled__default["default"].div`
8663
+ const ErrorMessage$3 = styled__default["default"].div`
8590
8664
  font-size: 12px;
8591
8665
  color: red;
8592
8666
  margin-top: 5px;
@@ -8742,20 +8816,20 @@ const DropdownSingleNew = ({
8742
8816
  width: width,
8743
8817
  onMouseEnter: () => setHoverInputContainer(true),
8744
8818
  onMouseLeave: () => setHoverInputContainer(false)
8745
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$8, {
8819
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$6, {
8746
8820
  className: "InputContainer",
8747
8821
  labelColor: labelColor,
8748
8822
  disabled: disabled,
8749
8823
  error: error,
8750
8824
  isFocused: isFocused
8751
- }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$4, {
8825
+ }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$3, {
8752
8826
  className: "InputSubContainer",
8753
8827
  ref: containerRef,
8754
8828
  labelColor: labelColor,
8755
8829
  disabled: disabled,
8756
8830
  error: error,
8757
8831
  onClick: handleLabelClick
8758
- }, /*#__PURE__*/React__default["default"].createElement(Label$5, {
8832
+ }, /*#__PURE__*/React__default["default"].createElement(Label$4, {
8759
8833
  className: "Label",
8760
8834
  isFocused: isFocused,
8761
8835
  labelColor: labelColor,
@@ -8765,7 +8839,7 @@ const DropdownSingleNew = ({
8765
8839
  errorMessage: errorMessage,
8766
8840
  onClick: handleLabelClick,
8767
8841
  showLabelOnTop: showLabelOnTop
8768
- }, getLabel(), getRequired()), /*#__PURE__*/React__default["default"].createElement(StyledInput$8, {
8842
+ }, getLabel(), getRequired()), /*#__PURE__*/React__default["default"].createElement(StyledInput$6, {
8769
8843
  className: "StyledInput",
8770
8844
  ref: inputRef,
8771
8845
  value: selectedOptions && selectedOptions?.length > 0 ? selectedOptions[0].label : inputValue && inputValue?.length > 0 ? inputValue[0].label : "",
@@ -8793,7 +8867,7 @@ const DropdownSingleNew = ({
8793
8867
  width: "12px",
8794
8868
  height: "12px",
8795
8869
  color: "#B1B1B1"
8796
- }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$4, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$7, {
8870
+ }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$3, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$6, {
8797
8871
  className: "OptionsContainer",
8798
8872
  onMouseEnter: () => setHoverOptionsContainer(true),
8799
8873
  onMouseLeave: () => setHoverOptionsContainer(false),
@@ -8920,7 +8994,7 @@ const DropdownWrapper$1 = styled__default["default"].div`
8920
8994
  font-size: 14px;
8921
8995
  border-radius: 10px;
8922
8996
  `;
8923
- const Label$4 = styled__default["default"].label`
8997
+ const Label$3 = styled__default["default"].label`
8924
8998
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
8925
8999
  font-weight: 400;
8926
9000
  padding-inline-end: 5px;
@@ -8943,7 +9017,7 @@ const Label$4 = styled__default["default"].label`
8943
9017
  cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
8944
9018
  }
8945
9019
  `;
8946
- const InputContainer$7 = styled__default["default"].div`
9020
+ const InputContainer$5 = styled__default["default"].div`
8947
9021
  display: flex;
8948
9022
  flex-direction: row;
8949
9023
  flex-wrap: nowrap;
@@ -8974,7 +9048,7 @@ const InputContainer$7 = styled__default["default"].div`
8974
9048
  border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
8975
9049
  }
8976
9050
  `;
8977
- const InputSubContainer$3 = styled__default["default"].div`
9051
+ const InputSubContainer$2 = styled__default["default"].div`
8978
9052
 
8979
9053
  display: flex;
8980
9054
  flex-direction: column;
@@ -8994,7 +9068,7 @@ const InputSubContainer$3 = styled__default["default"].div`
8994
9068
  outline: none;
8995
9069
  color: ${props => props.disabled ? '#888' : '#212121'};
8996
9070
  `;
8997
- const StyledInput$7 = styled__default["default"].input`
9071
+ const StyledInput$5 = styled__default["default"].input`
8998
9072
  width: calc(100% - 20px);
8999
9073
  height: 25px;
9000
9074
  font-family: Poppins;
@@ -9005,7 +9079,7 @@ const StyledInput$7 = styled__default["default"].input`
9005
9079
  color: ${props => props.disabled ? '#888' : '#212121'};
9006
9080
  border: none;
9007
9081
  `;
9008
- const OptionsContainer$6 = styled__default["default"].div`
9082
+ const OptionsContainer$5 = styled__default["default"].div`
9009
9083
  margin: 0;
9010
9084
  top: 100%;
9011
9085
  left: 0;
@@ -9052,7 +9126,7 @@ const OptionItem$2 = styled__default["default"].li`
9052
9126
  background-color: #EDF6FF;
9053
9127
  }
9054
9128
  `;
9055
- const ErrorMessage$3 = styled__default["default"].div`
9129
+ const ErrorMessage$2 = styled__default["default"].div`
9056
9130
  font-size: 12px;
9057
9131
  color: red;
9058
9132
  margin-top: 5px;
@@ -9259,20 +9333,20 @@ const DropdownMultiNew = ({
9259
9333
  width: width,
9260
9334
  onMouseEnter: () => setHoverInputContainer(true),
9261
9335
  onMouseLeave: () => setHoverInputContainer(false)
9262
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$7, {
9336
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$5, {
9263
9337
  className: "InputContainer",
9264
9338
  labelColor: labelColor,
9265
9339
  disabled: disabled,
9266
9340
  error: error,
9267
9341
  isFocused: isFocused
9268
- }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$3, {
9342
+ }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$2, {
9269
9343
  className: "InputSubContainer",
9270
9344
  ref: containerRef,
9271
9345
  labelColor: labelColor,
9272
9346
  disabled: disabled,
9273
9347
  error: error,
9274
9348
  onClick: handleLabelClick
9275
- }, /*#__PURE__*/React__default["default"].createElement(Label$4, {
9349
+ }, /*#__PURE__*/React__default["default"].createElement(Label$3, {
9276
9350
  className: "Label",
9277
9351
  isFocused: isFocused,
9278
9352
  labelColor: labelColor,
@@ -9282,7 +9356,7 @@ const DropdownMultiNew = ({
9282
9356
  errorMessage: errorMessage,
9283
9357
  onClick: handleLabelClick,
9284
9358
  showLabelOnTop: showLabelOnTop
9285
- }, getLabel(), getRequired()), displaySelectedOptions(), showOptions ? /*#__PURE__*/React__default["default"].createElement(StyledInput$7, {
9359
+ }, getLabel(), getRequired()), displaySelectedOptions(), showOptions ? /*#__PURE__*/React__default["default"].createElement(StyledInput$5, {
9286
9360
  className: "StyledInput",
9287
9361
  ref: inputRef,
9288
9362
  value: inputValue,
@@ -9312,7 +9386,7 @@ const DropdownMultiNew = ({
9312
9386
  width: "12px",
9313
9387
  height: "12px",
9314
9388
  color: "#B1B1B1"
9315
- }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$3, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$6, {
9389
+ }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$2, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$5, {
9316
9390
  className: "OptionsContainer",
9317
9391
  onMouseEnter: () => setHoverOptionsContainer(true),
9318
9392
  onMouseLeave: () => setHoverOptionsContainer(false),
@@ -9399,34 +9473,27 @@ const DropdownMain = styled__default["default"].div`
9399
9473
  `;
9400
9474
 
9401
9475
  /* eslint-disable react/prop-types */
9402
- const DropdownNew = props => {
9403
- const {
9404
- isMulti = false,
9405
- label = "",
9406
- labelEmptyValue = "",
9407
- options = [],
9408
- selectedValue = null,
9409
- placeHolder = "",
9410
- onChange = () => {},
9411
- handleChange = () => {},
9412
- required = false,
9413
- disabled = false,
9414
- width = "300px",
9415
- error = false,
9416
- showLabelOnTop = true,
9417
- orderBy = "",
9418
- elementType = "dropdown",
9419
- errorMessage = "",
9420
- labelColor = "#066768",
9421
- checkBoxColor = "#229E38",
9422
- xIconShow = true
9423
- } = props;
9424
- const handleOnChange = event => {
9425
- if (event && event.newValue && event.newValue[0]) {
9426
- onChange && onChange(event);
9427
- handleChange && handleChange(event.newValue[0].value);
9428
- }
9429
- };
9476
+ const DropdownNew = _ref => {
9477
+ let {
9478
+ isMulti,
9479
+ label,
9480
+ labelEmptyValue,
9481
+ options,
9482
+ selectedValue,
9483
+ placeHolder,
9484
+ onChange,
9485
+ required,
9486
+ disabled,
9487
+ width,
9488
+ error,
9489
+ errorMessage,
9490
+ labelColor,
9491
+ checkBoxColor,
9492
+ xIconShow,
9493
+ showLabelOnTop,
9494
+ orderBy,
9495
+ elementType
9496
+ } = _ref;
9430
9497
  return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
9431
9498
  className: "DropdownMain",
9432
9499
  width: width
@@ -9445,7 +9512,7 @@ const DropdownNew = props => {
9445
9512
  errorMessage: errorMessage,
9446
9513
  selectedValue: selectedValue,
9447
9514
  xIconShow: xIconShow,
9448
- onChange: handleOnChange,
9515
+ onChange: onChange,
9449
9516
  showLabelOnTop: showLabelOnTop,
9450
9517
  orderBy: orderBy,
9451
9518
  elementType: elementType
@@ -9464,12 +9531,54 @@ const DropdownNew = props => {
9464
9531
  errorMessage: errorMessage,
9465
9532
  selectedValue: selectedValue,
9466
9533
  xIconShow: xIconShow,
9467
- onChange: handleOnChange,
9534
+ onChange: onChange,
9468
9535
  showLabelOnTop: showLabelOnTop,
9469
9536
  orderBy: orderBy,
9470
9537
  elementType: elementType
9471
9538
  }));
9472
9539
  };
9540
+ DropdownNew.propTypes = {
9541
+ placeHolder: PropTypes.string,
9542
+ label: PropTypes.string,
9543
+ labelEmptyValue: PropTypes.string,
9544
+ labelColor: PropTypes.string,
9545
+ checkBoxColor: PropTypes.string,
9546
+ required: PropTypes.bool,
9547
+ width: PropTypes.string,
9548
+ disabled: PropTypes.bool,
9549
+ error: PropTypes.bool,
9550
+ errorMessage: PropTypes.string,
9551
+ options: PropTypes.arrayOf(PropTypes.shape({
9552
+ id: PropTypes.string,
9553
+ label: PropTypes.string
9554
+ })),
9555
+ selectedValue: PropTypes.arrayOf(PropTypes.shape({
9556
+ id: PropTypes.string,
9557
+ label: PropTypes.string
9558
+ })),
9559
+ xIconShow: PropTypes.bool,
9560
+ onChange: PropTypes.func,
9561
+ showLabelOnTop: PropTypes.bool
9562
+ };
9563
+ DropdownNew.defaultProps = {
9564
+ placeHolder: "Type...",
9565
+ label: "Label",
9566
+ labelEmptyValue: "All Labels",
9567
+ labelColor: "#066768",
9568
+ checkBoxColor: "#229E38",
9569
+ required: true,
9570
+ width: "300px",
9571
+ disabled: false,
9572
+ error: false,
9573
+ errorMessage: "",
9574
+ options: [],
9575
+ selectedValue: [],
9576
+ xIconShow: true,
9577
+ onChange: () => {},
9578
+ showLabelOnTop: true,
9579
+ orderBy: "asc",
9580
+ elementType: "number"
9581
+ };
9473
9582
 
9474
9583
  const Calendar = () => /*#__PURE__*/React__default["default"].createElement("svg", {
9475
9584
  width: "11",
@@ -9506,7 +9615,7 @@ const RangePickerContainer = styled__default["default"].div`
9506
9615
  width: ${props => props.width || '100%'};
9507
9616
  height: ${props => props.height || '60px'};
9508
9617
  `;
9509
- const CalendarDiv$3 = styled__default["default"].div`
9618
+ const CalendarDiv$2 = styled__default["default"].div`
9510
9619
  position: absolute;
9511
9620
  width: 11px;
9512
9621
  height: 11px;
@@ -9518,7 +9627,7 @@ const CalendarDiv$3 = styled__default["default"].div`
9518
9627
  }
9519
9628
 
9520
9629
  `;
9521
- const InputContainer$6 = styled__default["default"].div`
9630
+ const InputContainer$4 = styled__default["default"].div`
9522
9631
  display: flex;
9523
9632
  flex-direction: row;
9524
9633
  flex-wrap: nowrap;
@@ -9548,7 +9657,7 @@ const InputContainer$6 = styled__default["default"].div`
9548
9657
  border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
9549
9658
  }
9550
9659
  `;
9551
- const StyledInput$6 = styled__default["default"].input`
9660
+ const StyledInput$4 = styled__default["default"].input`
9552
9661
  padding: 20px;
9553
9662
  font-size: 14px;
9554
9663
  border-radius: ${props => props.borderRadius || '4px'};
@@ -9565,7 +9674,7 @@ const StyledInput$6 = styled__default["default"].input`
9565
9674
  color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
9566
9675
  cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
9567
9676
  `;
9568
- const StyledLabel$3 = styled__default["default"].label`
9677
+ const StyledLabel$2 = styled__default["default"].label`
9569
9678
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
9570
9679
  padding-inline-end: 5px;
9571
9680
  padding-inline-start: 5px;
@@ -9585,7 +9694,7 @@ const StyledLabel$3 = styled__default["default"].label`
9585
9694
  box-sizing: border-box;
9586
9695
  cursor: pointer;
9587
9696
  `;
9588
- const RequiredIndicator$3 = styled__default["default"].span`
9697
+ const RequiredIndicator$2 = styled__default["default"].span`
9589
9698
  color: red;
9590
9699
  margin-left: 5px;
9591
9700
  `;
@@ -9594,7 +9703,7 @@ styled__default["default"].div`
9594
9703
  color: red;
9595
9704
  margin-top: 5px;
9596
9705
  `;
9597
- const OptionsContainer$5 = styled__default["default"].div`
9706
+ const OptionsContainer$4 = styled__default["default"].div`
9598
9707
  display: block;
9599
9708
  margin: 0;
9600
9709
  padding-top: 8px;
@@ -9945,7 +10054,7 @@ const RangePicker = _ref => {
9945
10054
  onClick: handleFocus,
9946
10055
  width: width,
9947
10056
  height: height
9948
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$6, {
10057
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$4, {
9949
10058
  className: "InputContainer",
9950
10059
  isFocused: isFocused,
9951
10060
  hasValue: value,
@@ -9955,7 +10064,7 @@ const RangePicker = _ref => {
9955
10064
  borderColorFocus: borderColorFocus,
9956
10065
  onMouseEnter: () => setHoverInputContainer(true),
9957
10066
  onMouseLeave: () => setHoverInputContainer(false)
9958
- }, /*#__PURE__*/React__default["default"].createElement(StyledLabel$3, {
10067
+ }, /*#__PURE__*/React__default["default"].createElement(StyledLabel$2, {
9959
10068
  className: "StyledLabel",
9960
10069
  onClick: handleFocus,
9961
10070
  isFocused: isFocused,
@@ -9964,7 +10073,7 @@ const RangePicker = _ref => {
9964
10073
  textColor: textColor,
9965
10074
  borderColor: borderColor,
9966
10075
  borderColorFocus: borderColorFocus
9967
- }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator$3, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$6, {
10076
+ }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator$2, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$4, {
9968
10077
  className: "StyledInput",
9969
10078
  ref: inputRef,
9970
10079
  value: value,
@@ -9980,14 +10089,14 @@ const RangePicker = _ref => {
9980
10089
  textColor: textColor,
9981
10090
  borderColor: borderColor,
9982
10091
  borderColorFocus: borderColorFocus
9983
- }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv$3, {
10092
+ }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv$2, {
9984
10093
  className: "CalendarDiv",
9985
10094
  onClick: toggleDatePicker
9986
10095
  }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, {
9987
10096
  className: "CalendarInOpen"
9988
10097
  }) : /*#__PURE__*/React__default["default"].createElement(Calendar, {
9989
10098
  className: "Calendar"
9990
- }))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$5, {
10099
+ }))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$4, {
9991
10100
  className: "OptionsContainer",
9992
10101
  onMouseEnter: () => setHoverOptionsContainer(true),
9993
10102
  onMouseLeave: () => setHoverOptionsContainer(false)
@@ -10040,14 +10149,14 @@ const QuarterPickerContainer = styled__default["default"].div`
10040
10149
  width: ${props => props.width || '100%'};
10041
10150
  height: ${props => props.height || '60px'};
10042
10151
  `;
10043
- const CalendarDiv$2 = styled__default["default"].div`
10152
+ const CalendarDiv$1 = styled__default["default"].div`
10044
10153
  position: absolute;
10045
10154
  width: 11px;
10046
10155
  height: 11px;
10047
10156
  top: ${props => parseInt(props.height, 10) / 2 || '20px'};
10048
10157
  right: 25px;
10049
10158
  `;
10050
- const InputContainer$5 = styled__default["default"].div`
10159
+ const InputContainer$3 = styled__default["default"].div`
10051
10160
  display: flex;
10052
10161
  flex-direction: row;
10053
10162
  flex-wrap: nowrap;
@@ -10077,7 +10186,7 @@ const InputContainer$5 = styled__default["default"].div`
10077
10186
  border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
10078
10187
  }
10079
10188
  `;
10080
- const StyledInput$5 = styled__default["default"].input`
10189
+ const StyledInput$3 = styled__default["default"].input`
10081
10190
  padding: 20px;
10082
10191
  font-size: 14px;
10083
10192
  border-radius: ${props => props.borderRadius || '4px'};
@@ -10094,7 +10203,7 @@ const StyledInput$5 = styled__default["default"].input`
10094
10203
  color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
10095
10204
  cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
10096
10205
  `;
10097
- const StyledLabel$2 = styled__default["default"].label`
10206
+ const StyledLabel$1 = styled__default["default"].label`
10098
10207
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
10099
10208
  padding-inline-end: 5px;
10100
10209
  padding-inline-start: 5px;
@@ -10114,7 +10223,7 @@ const StyledLabel$2 = styled__default["default"].label`
10114
10223
  box-sizing: border-box;
10115
10224
  cursor: pointer;
10116
10225
  `;
10117
- const RequiredIndicator$2 = styled__default["default"].span`
10226
+ const RequiredIndicator$1 = styled__default["default"].span`
10118
10227
  color: red;
10119
10228
  margin-left: 5px;
10120
10229
  `;
@@ -10123,7 +10232,7 @@ styled__default["default"].div`
10123
10232
  color: red;
10124
10233
  margin-top: 5px;
10125
10234
  `;
10126
- const OptionsContainer$4 = styled__default["default"].div`
10235
+ const OptionsContainer$3 = styled__default["default"].div`
10127
10236
  display: block;
10128
10237
  margin: 0;
10129
10238
  padding-top: 8px;
@@ -10378,7 +10487,7 @@ const QuarterPicker = _ref => {
10378
10487
  onClick: handleFocus,
10379
10488
  width: width,
10380
10489
  height: height
10381
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$5, {
10490
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$3, {
10382
10491
  className: "InputContainer",
10383
10492
  isFocused: isFocused,
10384
10493
  hasValue: value,
@@ -10388,7 +10497,7 @@ const QuarterPicker = _ref => {
10388
10497
  borderColorFocus: borderColorFocus,
10389
10498
  onMouseEnter: () => setHoverInputContainer(true),
10390
10499
  onMouseLeave: () => setHoverInputContainer(false)
10391
- }, /*#__PURE__*/React__default["default"].createElement(StyledLabel$2, {
10500
+ }, /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, {
10392
10501
  className: "StyledLabel",
10393
10502
  onClick: handleFocus,
10394
10503
  isFocused: isFocused,
@@ -10397,7 +10506,7 @@ const QuarterPicker = _ref => {
10397
10506
  textColor: textColor,
10398
10507
  borderColor: borderColor,
10399
10508
  borderColorFocus: borderColorFocus
10400
- }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator$2, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$5, {
10509
+ }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator$1, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$3, {
10401
10510
  className: "StyledInput",
10402
10511
  ref: inputRef,
10403
10512
  value: value,
@@ -10413,11 +10522,11 @@ const QuarterPicker = _ref => {
10413
10522
  disabled: disabled,
10414
10523
  borderColor: borderColor,
10415
10524
  textColor: textColor
10416
- }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv$2, {
10525
+ }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv$1, {
10417
10526
  className: "CalendarDiv",
10418
10527
  width: width,
10419
10528
  onClick: toggleDatePicker
10420
- }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, null) : /*#__PURE__*/React__default["default"].createElement(Calendar, null))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$4, {
10529
+ }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, null) : /*#__PURE__*/React__default["default"].createElement(Calendar, null))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$3, {
10421
10530
  className: "OptionsContainer",
10422
10531
  onMouseEnter: () => setHoverOptionsContainer(true),
10423
10532
  onMouseLeave: () => setHoverOptionsContainer(false)
@@ -10466,14 +10575,14 @@ const MonthPickerContainer = styled__default["default"].div`
10466
10575
  width: ${props => props.width || '100%'};
10467
10576
  height: ${props => props.height || '60px'};
10468
10577
  `;
10469
- const CalendarDiv$1 = styled__default["default"].div`
10578
+ const CalendarDiv = styled__default["default"].div`
10470
10579
  position: absolute;
10471
10580
  width: 11px;
10472
10581
  height: 11px;
10473
10582
  top: ${props => parseInt(props.height, 10) / 2 || '20px'};
10474
10583
  right: 25px;
10475
10584
  `;
10476
- const InputContainer$4 = styled__default["default"].div`
10585
+ const InputContainer$2 = styled__default["default"].div`
10477
10586
  display: flex;
10478
10587
  flex-direction: row;
10479
10588
  flex-wrap: nowrap;
@@ -10503,7 +10612,7 @@ const InputContainer$4 = styled__default["default"].div`
10503
10612
  border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
10504
10613
  }
10505
10614
  `;
10506
- const StyledInput$4 = styled__default["default"].input`
10615
+ const StyledInput$2 = styled__default["default"].input`
10507
10616
  padding: 20px;
10508
10617
  font-size: 14px;
10509
10618
  border-radius: ${props => props.borderRadius || '4px'};
@@ -10521,7 +10630,7 @@ const StyledInput$4 = styled__default["default"].input`
10521
10630
  color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
10522
10631
  cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
10523
10632
  `;
10524
- const StyledLabel$1 = styled__default["default"].label`
10633
+ const StyledLabel = styled__default["default"].label`
10525
10634
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
10526
10635
  padding-inline-end: 5px;
10527
10636
  padding-inline-start: 5px;
@@ -10541,7 +10650,7 @@ const StyledLabel$1 = styled__default["default"].label`
10541
10650
  box-sizing: border-box;
10542
10651
  cursor: pointer;
10543
10652
  `;
10544
- const RequiredIndicator$1 = styled__default["default"].span`
10653
+ const RequiredIndicator = styled__default["default"].span`
10545
10654
  color: red;
10546
10655
  margin-left: 5px;
10547
10656
  `;
@@ -10550,7 +10659,7 @@ styled__default["default"].div`
10550
10659
  color: red;
10551
10660
  margin-top: 5px;
10552
10661
  `;
10553
- const OptionsContainer$3 = styled__default["default"].div`
10662
+ const OptionsContainer$2 = styled__default["default"].div`
10554
10663
  display: block;
10555
10664
  margin: 0;
10556
10665
  padding-top: 8px;
@@ -10835,7 +10944,7 @@ const MonthPicker = _ref => {
10835
10944
  onClick: handleFocus,
10836
10945
  width: width,
10837
10946
  height: height
10838
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$4, {
10947
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$2, {
10839
10948
  className: "InputContainer",
10840
10949
  isFocused: isFocused,
10841
10950
  hasValue: value,
@@ -10845,7 +10954,7 @@ const MonthPicker = _ref => {
10845
10954
  borderColorFocus: borderColorFocus,
10846
10955
  onMouseEnter: () => setHoverInputContainer(true),
10847
10956
  onMouseLeave: () => setHoverInputContainer(false)
10848
- }, /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, {
10957
+ }, /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
10849
10958
  className: "StyledLabel",
10850
10959
  onClick: handleFocus,
10851
10960
  isFocused: isFocused,
@@ -10854,7 +10963,7 @@ const MonthPicker = _ref => {
10854
10963
  textColor: textColor,
10855
10964
  borderColor: borderColor,
10856
10965
  borderColorFocus: borderColorFocus
10857
- }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator$1, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$4, {
10966
+ }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$2, {
10858
10967
  className: "StyledInput",
10859
10968
  ref: inputRef,
10860
10969
  value: value,
@@ -10870,11 +10979,11 @@ const MonthPicker = _ref => {
10870
10979
  disabled: disabled,
10871
10980
  borderColor: borderColor,
10872
10981
  textColor: textColor
10873
- }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv$1, {
10982
+ }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv, {
10874
10983
  className: "CalendarDiv",
10875
10984
  width: width,
10876
10985
  onClick: toggleDatePicker
10877
- }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, null) : /*#__PURE__*/React__default["default"].createElement(Calendar, null))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$3, {
10986
+ }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, null) : /*#__PURE__*/React__default["default"].createElement(Calendar, null))), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$2, {
10878
10987
  className: "OptionsContainer",
10879
10988
  onMouseEnter: () => setHoverOptionsContainer(true),
10880
10989
  onMouseLeave: () => setHoverOptionsContainer(false)
@@ -11516,7 +11625,7 @@ const FilterPanel = props => {
11516
11625
  content: getTooltipTextGoButton(),
11517
11626
  direction: "top",
11518
11627
  topFactor: -0.9
11519
- }, /*#__PURE__*/React__default["default"].createElement(Button$1, {
11628
+ }, /*#__PURE__*/React__default["default"].createElement(Button, {
11520
11629
  text: "Go",
11521
11630
  type: "primary",
11522
11631
  size: "medium",
@@ -11544,7 +11653,7 @@ const FilterPanel = props => {
11544
11653
  })
11545
11654
  }));
11546
11655
  } else {
11547
- content = /*#__PURE__*/React__default["default"].createElement(Button$1, {
11656
+ content = /*#__PURE__*/React__default["default"].createElement(Button, {
11548
11657
  text: "Go",
11549
11658
  type: "primary",
11550
11659
  size: "medium",
@@ -11584,7 +11693,7 @@ const FilterPanel = props => {
11584
11693
  ref: AllFieldsContainerRef
11585
11694
  }, displayFields(FieldsDataState)), /*#__PURE__*/React__default["default"].createElement(ButtonsContainer, {
11586
11695
  className: "ButtonsContainer"
11587
- }, displayGoButton(), /*#__PURE__*/React__default["default"].createElement(Button$1, {
11696
+ }, displayGoButton(), /*#__PURE__*/React__default["default"].createElement(Button, {
11588
11697
  text: "Reset",
11589
11698
  size: "medium",
11590
11699
  type: "secondary",
@@ -11922,7 +12031,7 @@ const Loader$1 = styled__default["default"].span`
11922
12031
  animation: ${rotation$1} 1.5s infinite ease;
11923
12032
  transform: translateZ(0);
11924
12033
  `;
11925
- const TableWrapper$3 = styled__default["default"].div`
12034
+ const TableWrapper$1 = styled__default["default"].div`
11926
12035
  position: relative;
11927
12036
  width: ${props => `${props.width}`};
11928
12037
  height: ${props => `${props.height}`};
@@ -11932,7 +12041,7 @@ const TableWrapper$3 = styled__default["default"].div`
11932
12041
  overflow-x: ${props => props.columnsNumber > props.maxColumnsNumber ? 'auto' : 'hidden'};
11933
12042
  ${scrollableStyles$9}
11934
12043
  `;
11935
- const Table$3 = styled__default["default"].table`
12044
+ const Table$1 = styled__default["default"].table`
11936
12045
  font-family: "Poppins", sans-serif;
11937
12046
  width: ${props => `${props.tableWidthSize}%`};
11938
12047
  table-layout: fixed;
@@ -12237,13 +12346,13 @@ const ReportTable = props => {
12237
12346
  return newState;
12238
12347
  });
12239
12348
  };
12240
- return /*#__PURE__*/React__default["default"].createElement(ReportTableWrapper, null, /*#__PURE__*/React__default["default"].createElement(TableWrapper$3, {
12349
+ return /*#__PURE__*/React__default["default"].createElement(ReportTableWrapper, null, /*#__PURE__*/React__default["default"].createElement(TableWrapper$1, {
12241
12350
  width: width,
12242
12351
  height: height,
12243
12352
  className: className,
12244
12353
  maxColumnsNumber: getMaxColnumber(),
12245
12354
  columnsNumber: columnsNumber
12246
- }, /*#__PURE__*/React__default["default"].createElement(Table$3, {
12355
+ }, /*#__PURE__*/React__default["default"].createElement(Table$1, {
12247
12356
  tableWidthSize: tableWidthSize
12248
12357
  }, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement(Tr, null, tableData.columnsHeadings.map((headline, index) => /*#__PURE__*/React__default["default"].createElement(Th$1, {
12249
12358
  key: index
@@ -12521,7 +12630,7 @@ EventListItem.defaultProps = {
12521
12630
  onClick: () => {}
12522
12631
  };
12523
12632
 
12524
- const MainContainer$6 = styled__default["default"].div`
12633
+ const MainContainer$5 = styled__default["default"].div`
12525
12634
  /* display: flex; */
12526
12635
  position: relative;
12527
12636
  font-family: "Poppins", sans-serif;
@@ -12584,7 +12693,7 @@ const EventList = props => {
12584
12693
  };
12585
12694
 
12586
12695
  //= ======================================== MAIN RETURN ====================================
12587
- return /*#__PURE__*/React__default["default"].createElement(MainContainer$6, {
12696
+ return /*#__PURE__*/React__default["default"].createElement(MainContainer$5, {
12588
12697
  id: "MainContainer",
12589
12698
  height: height,
12590
12699
  width: width
@@ -12780,7 +12889,7 @@ const CollapseMenuItemContentContainer = styled__default["default"].div`
12780
12889
  font-size: 12px;
12781
12890
  }
12782
12891
  `;
12783
- const MainContainer$5 = styled__default["default"].div`
12892
+ const MainContainer$4 = styled__default["default"].div`
12784
12893
  width: ${props => props.width};
12785
12894
  height: ${props => props.height};
12786
12895
  display: flex;
@@ -12795,7 +12904,7 @@ const DraftTag$1 = styled__default["default"].div`
12795
12904
  height: fit-content;
12796
12905
  `;
12797
12906
 
12798
- const MainContainer$4 = styled__default["default"].div`
12907
+ const MainContainer$3 = styled__default["default"].div`
12799
12908
  width: ${props => props.width};
12800
12909
  height: ${props => props.height};
12801
12910
  font-family: 'Poppins', sans-serif;
@@ -12912,10 +13021,10 @@ const BannerEventBox = props => {
12912
13021
  const onInfoClickHandler = event => {
12913
13022
  onInfoClick(event);
12914
13023
  };
12915
- return /*#__PURE__*/React__default["default"].createElement(MainContainer$4, {
13024
+ return /*#__PURE__*/React__default["default"].createElement(MainContainer$3, {
12916
13025
  height: height,
12917
13026
  width: width
12918
- }, /*#__PURE__*/React__default["default"].createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React__default["default"].createElement(CardTitle, null, formatedBanners().name)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Description"), /*#__PURE__*/React__default["default"].createElement(Text, null, description)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React__default["default"].createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React__default["default"].createElement(ButtonWrap, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
13027
+ }, /*#__PURE__*/React__default["default"].createElement(TitleWrapper, null, formatedBanners().icon, "|", /*#__PURE__*/React__default["default"].createElement(CardTitle, null, formatedBanners().name)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Description"), /*#__PURE__*/React__default["default"].createElement(Text, null, description)), /*#__PURE__*/React__default["default"].createElement(Block, null, /*#__PURE__*/React__default["default"].createElement(Headline, null, "Event Dates:"), /*#__PURE__*/React__default["default"].createElement(Text, null, dates.join(" - "))), /*#__PURE__*/React__default["default"].createElement(ButtonWrap, null, /*#__PURE__*/React__default["default"].createElement(Button, {
12919
13028
  leftIcon: "Eye",
12920
13029
  onClick: () => onInfoClickHandler(banner),
12921
13030
  text: buttonText,
@@ -12990,7 +13099,7 @@ const BannerEventBoxList = props => {
12990
13099
  color: toggleColor
12991
13100
  }))), IsItemOpen && /*#__PURE__*/React__default["default"].createElement(CollapseMenuItemContentContainer, {
12992
13101
  id: "CollapseMenuItemContentContainer"
12993
- }, cardsContent ? /*#__PURE__*/React__default["default"].createElement(MainContainer$5, {
13102
+ }, cardsContent ? /*#__PURE__*/React__default["default"].createElement(MainContainer$4, {
12994
13103
  width: width,
12995
13104
  height: height
12996
13105
  }, data.map(item => /*#__PURE__*/React__default["default"].createElement(BannerEventBox, {
@@ -13024,7 +13133,7 @@ const scrollableStyles$8 = `
13024
13133
  border-radius: 5px;
13025
13134
  }
13026
13135
  `;
13027
- const ModalWrapper$1 = styled__default["default"].dialog`
13136
+ const ModalWrapper = styled__default["default"].dialog`
13028
13137
  width: 100vw;
13029
13138
  height: 100vh;
13030
13139
  padding: 20px;
@@ -13040,23 +13149,23 @@ const ModalWrapper$1 = styled__default["default"].dialog`
13040
13149
  align-content: center;
13041
13150
  }
13042
13151
  `;
13043
- const Modal$1 = styled__default["default"].div`
13152
+ const Modal = styled__default["default"].div`
13044
13153
  width: 79%;
13045
13154
  max-width: 1500px;
13046
13155
  margin: 0 auto;
13047
13156
  ${scrollableStyles$8}
13048
13157
  `;
13049
- const ModalHeader$1 = styled__default["default"].div`
13158
+ const ModalHeader = styled__default["default"].div`
13050
13159
  display: flex;
13051
13160
  align-items: center;
13052
13161
  justify-content: space-between;
13053
13162
  margin-bottom: 32px;
13054
13163
  `;
13055
- const ModalBody$1 = styled__default["default"].div`
13164
+ const ModalBody = styled__default["default"].div`
13056
13165
  ${scrollableStyles$8}
13057
13166
  max-height: 80vh;
13058
13167
  `;
13059
- const ModalTitle$1 = styled__default["default"].h5`
13168
+ const ModalTitle = styled__default["default"].h5`
13060
13169
  font-family: 'Poppins', sans-serif;
13061
13170
  font-size: 32px;
13062
13171
  font-weight: 500;
@@ -13086,14 +13195,14 @@ const DialogOverlay = props => {
13086
13195
  modal.close();
13087
13196
  onDialogClose();
13088
13197
  };
13089
- return /*#__PURE__*/React.createElement(ModalWrapper$1, {
13198
+ return /*#__PURE__*/React.createElement(ModalWrapper, {
13090
13199
  className: className
13091
- }, /*#__PURE__*/React.createElement(Modal$1, null, /*#__PURE__*/React.createElement(ModalHeader$1, null, /*#__PURE__*/React.createElement(ModalTitle$1, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13200
+ }, /*#__PURE__*/React.createElement(Modal, null, /*#__PURE__*/React.createElement(ModalHeader, null, /*#__PURE__*/React.createElement(ModalTitle, null, title), /*#__PURE__*/React.createElement(ModalClose, {
13092
13201
  type: "button",
13093
13202
  onClick: closeModal
13094
13203
  }, /*#__PURE__*/React.createElement(CloseXIcon, {
13095
13204
  fill: "white"
13096
- }))), /*#__PURE__*/React.createElement(ModalBody$1, {
13205
+ }))), /*#__PURE__*/React.createElement(ModalBody, {
13097
13206
  id: "modalBody"
13098
13207
  }, children)));
13099
13208
  };
@@ -23308,7 +23417,7 @@ const TheGiantCompanyIcon = _ref => {
23308
23417
  })));
23309
23418
  };
23310
23419
 
23311
- const MainContainer$3 = styled__default["default"].div`
23420
+ const MainContainer$2 = styled__default["default"].div`
23312
23421
  display: flex;
23313
23422
  position: relative;
23314
23423
  font-family: "Poppins", sans-serif;
@@ -23601,7 +23710,7 @@ const CollapseHeader = props => {
23601
23710
  } = viewCreativeContainerRef.current;
23602
23711
  return (offsetTop + 33).toString().concat("", "px");
23603
23712
  };
23604
- return /*#__PURE__*/React__default["default"].createElement(MainContainer$3, {
23713
+ return /*#__PURE__*/React__default["default"].createElement(MainContainer$2, {
23605
23714
  id: "CollapseHeader",
23606
23715
  className: className,
23607
23716
  height: height,
@@ -23615,7 +23724,7 @@ const CollapseHeader = props => {
23615
23724
  id: "EventNameViewCreativeSubContainer"
23616
23725
  }, /*#__PURE__*/React__default["default"].createElement(ViewCreativeButtonAndListBoxContainer, {
23617
23726
  id: "ViewCreativeButtonAndListBoxContainer"
23618
- }, showViewCreativeButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
23727
+ }, showViewCreativeButton && /*#__PURE__*/React__default["default"].createElement(Button, {
23619
23728
  leftIcon: "Eye",
23620
23729
  onClick: viewCreativeOnClickHandler,
23621
23730
  text: buttonText,
@@ -23769,13 +23878,13 @@ const QuickFilterInput = styled__default["default"].div`
23769
23878
  font-size: 14px;
23770
23879
  border-radius: 8px;
23771
23880
  `;
23772
- const Label$3 = styled__default["default"].label`
23881
+ const Label$2 = styled__default["default"].label`
23773
23882
  font-size: 14px;
23774
23883
  font-weight: 500;
23775
23884
  color: ${props => props.disabled ? '#D0D0D0' : '212121'};
23776
23885
  white-space: nowrap;
23777
23886
  `;
23778
- const InputContainer$3 = styled__default["default"].div`
23887
+ const InputContainer$1 = styled__default["default"].div`
23779
23888
  display: flex;
23780
23889
  justify-content: space-between;
23781
23890
  align-content: center;
@@ -23805,12 +23914,12 @@ const InputContainer$3 = styled__default["default"].div`
23805
23914
  ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
23806
23915
  }
23807
23916
  `;
23808
- const InputSubContainer$2 = styled__default["default"].div`
23917
+ const InputSubContainer$1 = styled__default["default"].div`
23809
23918
  display: flex;
23810
23919
  color: ${props => props.disabled ? '#888' : '#212121'};
23811
23920
  gap: 8px;
23812
23921
  `;
23813
- const StyledInput$3 = styled__default["default"].input`
23922
+ const StyledInput$1 = styled__default["default"].input`
23814
23923
  width: 100%;
23815
23924
  height: 20px;
23816
23925
  font-family: "Poppins";
@@ -23824,7 +23933,7 @@ const StyledInput$3 = styled__default["default"].input`
23824
23933
  color: ${props => props.disabled ? '#D0D0D0' : '#b1b1b1'};
23825
23934
  }
23826
23935
  `;
23827
- const OptionsContainer$2 = styled__default["default"].div`
23936
+ const OptionsContainer$1 = styled__default["default"].div`
23828
23937
  margin: 0;
23829
23938
  top: 100%;
23830
23939
  left: 0;
@@ -23865,7 +23974,7 @@ const OptionItem$1 = styled__default["default"].li`
23865
23974
  color: #229e38;
23866
23975
  }
23867
23976
  `;
23868
- const ErrorMessage$2 = styled__default["default"].div`
23977
+ const ErrorMessage$1 = styled__default["default"].div`
23869
23978
  font-size: 12px;
23870
23979
  color: red;
23871
23980
  margin-top: 5px;
@@ -24003,21 +24112,21 @@ const QuickFilterDropdownSingle = _ref => {
24003
24112
  width: width,
24004
24113
  onMouseEnter: () => setHoverInputContainer(true),
24005
24114
  onMouseLeave: () => setHoverInputContainer(false)
24006
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$3, {
24115
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer$1, {
24007
24116
  className: "InputContainer",
24008
24117
  labelColor: labelColor,
24009
24118
  hoverColor: hoverColor,
24010
24119
  disabled: disabled,
24011
24120
  error: error,
24012
24121
  isFocused: isFocused
24013
- }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$2, {
24122
+ }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$1, {
24014
24123
  className: "InputSubContainer",
24015
24124
  ref: containerRef,
24016
24125
  labelColor: labelColor,
24017
24126
  disabled: disabled,
24018
24127
  error: error,
24019
24128
  onClick: handleLabelClick
24020
- }, /*#__PURE__*/React__default["default"].createElement(Label$3, {
24129
+ }, /*#__PURE__*/React__default["default"].createElement(Label$2, {
24021
24130
  className: "Label",
24022
24131
  isFocused: isFocused,
24023
24132
  labelColor: labelColor,
@@ -24027,7 +24136,7 @@ const QuickFilterDropdownSingle = _ref => {
24027
24136
  errorMessage: errorMessage,
24028
24137
  onClick: handleLabelClick,
24029
24138
  showLabelOnTop: showLabelOnTop
24030
- }, label), /*#__PURE__*/React__default["default"].createElement(StyledInput$3, {
24139
+ }, label), /*#__PURE__*/React__default["default"].createElement(StyledInput$1, {
24031
24140
  className: "StyledInput",
24032
24141
  ref: inputRef,
24033
24142
  value: selectedOptions && selectedOptions?.length > 0 ? selectedOptions[0].label : inputValue && inputValue?.length > 0 ? inputValue[0].label : "",
@@ -24055,7 +24164,7 @@ const QuickFilterDropdownSingle = _ref => {
24055
24164
  width: "12px",
24056
24165
  height: "12px",
24057
24166
  color: "#B1B1B1"
24058
- }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$2, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$2, {
24167
+ }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$1, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$1, {
24059
24168
  className: "OptionsContainer",
24060
24169
  onMouseEnter: () => setHoverOptionsContainer(true),
24061
24170
  onMouseLeave: () => setHoverOptionsContainer(false),
@@ -24124,7 +24233,7 @@ const DropdownWrapper = styled__default["default"].div`
24124
24233
  font-size: 14px;
24125
24234
  border-radius: 10px;
24126
24235
  `;
24127
- const Label$2 = styled__default["default"].label`
24236
+ const Label$1 = styled__default["default"].label`
24128
24237
  font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
24129
24238
  font-weight: 400;
24130
24239
  padding-inline-end: 5px;
@@ -24147,7 +24256,7 @@ const Label$2 = styled__default["default"].label`
24147
24256
  cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
24148
24257
  }
24149
24258
  `;
24150
- const InputContainer$2 = styled__default["default"].div`
24259
+ const InputContainer = styled__default["default"].div`
24151
24260
  display: flex;
24152
24261
  flex-direction: row;
24153
24262
  flex-wrap: nowrap;
@@ -24178,7 +24287,7 @@ const InputContainer$2 = styled__default["default"].div`
24178
24287
  border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.labelColor || '#212121'};
24179
24288
  }
24180
24289
  `;
24181
- const InputSubContainer$1 = styled__default["default"].div`
24290
+ const InputSubContainer = styled__default["default"].div`
24182
24291
  display: flex;
24183
24292
  flex-direction: column;
24184
24293
  flex-wrap: nowrap;
@@ -24197,7 +24306,7 @@ const InputSubContainer$1 = styled__default["default"].div`
24197
24306
  outline: none;
24198
24307
  color: ${props => props.disabled ? '#888' : '#212121'};
24199
24308
  `;
24200
- const StyledInput$2 = styled__default["default"].input`
24309
+ const StyledInput = styled__default["default"].input`
24201
24310
  width: calc(100% - 20px);
24202
24311
  height: 25px;
24203
24312
  font-family: Poppins;
@@ -24208,7 +24317,7 @@ const StyledInput$2 = styled__default["default"].input`
24208
24317
  color: ${props => props.disabled ? '#888' : '#212121'};
24209
24318
  border: none;
24210
24319
  `;
24211
- const OptionsContainer$1 = styled__default["default"].div`
24320
+ const OptionsContainer = styled__default["default"].div`
24212
24321
  margin: 0;
24213
24322
  top: 100%;
24214
24323
  left: 0;
@@ -24251,7 +24360,7 @@ const OptionItem = styled__default["default"].li`
24251
24360
  background-color: #EDF6FF;
24252
24361
  }
24253
24362
  `;
24254
- const ErrorMessage$1 = styled__default["default"].div`
24363
+ const ErrorMessage = styled__default["default"].div`
24255
24364
  font-size: 12px;
24256
24365
  color: red;
24257
24366
  margin-top: 5px;
@@ -24469,20 +24578,20 @@ const QuickFilterDropdownMultiSelection = _ref => {
24469
24578
  width: width,
24470
24579
  onMouseEnter: () => setHoverInputContainer(true),
24471
24580
  onMouseLeave: () => setHoverInputContainer(false)
24472
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$2, {
24581
+ }, /*#__PURE__*/React__default["default"].createElement(InputContainer, {
24473
24582
  className: "InputContainer",
24474
24583
  labelColor: labelColor,
24475
24584
  disabled: disabled,
24476
24585
  error: error,
24477
24586
  isFocused: isFocused
24478
- }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer$1, {
24587
+ }, /*#__PURE__*/React__default["default"].createElement(InputSubContainer, {
24479
24588
  className: "InputSubContainer",
24480
24589
  ref: containerRef,
24481
24590
  labelColor: labelColor,
24482
24591
  disabled: disabled,
24483
24592
  error: error,
24484
24593
  onClick: handleLabelClick
24485
- }, /*#__PURE__*/React__default["default"].createElement(Label$2, {
24594
+ }, /*#__PURE__*/React__default["default"].createElement(Label$1, {
24486
24595
  className: "Label",
24487
24596
  isFocused: isFocused,
24488
24597
  labelColor: labelColor,
@@ -24492,7 +24601,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
24492
24601
  errorMessage: errorMessage,
24493
24602
  onClick: handleLabelClick,
24494
24603
  showLabelOnTop: showLabelOnTop
24495
- }, getLabel(), getRequired()), displaySelectedOptions(), showOptions ? /*#__PURE__*/React__default["default"].createElement(StyledInput$2, {
24604
+ }, getLabel(), getRequired()), displaySelectedOptions(), showOptions ? /*#__PURE__*/React__default["default"].createElement(StyledInput, {
24496
24605
  className: "StyledInput",
24497
24606
  ref: inputRef,
24498
24607
  value: inputValue,
@@ -24522,7 +24631,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
24522
24631
  width: "12px",
24523
24632
  height: "12px",
24524
24633
  color: "#B1B1B1"
24525
- }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage$1, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer$1, {
24634
+ }))), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, null, errorMessage), /*#__PURE__*/React__default["default"].createElement(OptionsContainer, {
24526
24635
  className: "OptionsContainer",
24527
24636
  onMouseEnter: () => setHoverOptionsContainer(true),
24528
24637
  onMouseLeave: () => setHoverOptionsContainer(false),
@@ -25132,7 +25241,7 @@ const TitleAndValueContainer$3 = styled__default["default"].div`
25132
25241
  display: flex;
25133
25242
  flex-direction: column;
25134
25243
  `;
25135
- const Title$j = styled__default["default"].h4`
25244
+ const Title$i = styled__default["default"].h4`
25136
25245
  font-weight: 400;
25137
25246
  font-size: 20px;
25138
25247
  margin: 0;
@@ -25195,7 +25304,7 @@ const FormattedValue$3 = props => {
25195
25304
  width: width
25196
25305
  }, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$3, {
25197
25306
  className: "TitleAndValueContainer"
25198
- }, title ? /*#__PURE__*/React__default["default"].createElement(Title$j, {
25307
+ }, title ? /*#__PURE__*/React__default["default"].createElement(Title$i, {
25199
25308
  className: "Title",
25200
25309
  width: width
25201
25310
  }, title) : '', showTopValue && /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer$1, {
@@ -25207,7 +25316,7 @@ const FormattedValue$3 = props => {
25207
25316
  className: "CurrencySignOrPercent"
25208
25317
  }, currencySign ? getCurrencySign(currencyType, value) : ''), dotCut ? getFormattedValue(value && Math.abs(value) > 0 && value % 1 !== 0 ? value?.toFixed(2) : value) : getNumberWithCommas(value), dotCut ? getFormattedUnits(value) : '', /*#__PURE__*/React__default["default"].createElement(CurrencySignOrPercent, {
25209
25318
  className: "CurrencySignOrPercent"
25210
- }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$j, {
25319
+ }, isPercent ? '%' : ''))), subtitle ? /*#__PURE__*/React__default["default"].createElement(Title$i, {
25211
25320
  className: "Title",
25212
25321
  width: width
25213
25322
  }, subtitle) : '')));
@@ -25277,7 +25386,7 @@ const TooltipTitle$8 = styled__default["default"].div`
25277
25386
  const TitleAndValueContainer$2 = styled__default["default"].div`
25278
25387
  padding: 0 1rem;
25279
25388
  `;
25280
- const Title$i = styled__default["default"].h5`
25389
+ const Title$h = styled__default["default"].h5`
25281
25390
  font-weight: 500;
25282
25391
  font-size: 18px;
25283
25392
  line-height: 20px;
@@ -25406,7 +25515,7 @@ const TitleAndIconContainer = styled__default["default"].div`
25406
25515
  display: flex;
25407
25516
  align-items: center;
25408
25517
  `;
25409
- const Title$h = styled__default["default"].h4`
25518
+ const Title$g = styled__default["default"].h4`
25410
25519
  font-weight: 400;
25411
25520
  font-size: 14px;
25412
25521
  line-height: 27px;
@@ -25460,7 +25569,7 @@ const PerformanceAnalyticsLegend = props => {
25460
25569
  color: item.iconColor
25461
25570
  }) : item.iconType === ICON_TYPE_LEGEND_LINE_ICON$3 ? /*#__PURE__*/React__default["default"].createElement(LegendLineIcon, {
25462
25571
  color: item.iconColor
25463
- }) : '', /*#__PURE__*/React__default["default"].createElement(Title$h, {
25572
+ }) : '', /*#__PURE__*/React__default["default"].createElement(Title$g, {
25464
25573
  id: "Title",
25465
25574
  width: width
25466
25575
  }, item.title))))) : '');
@@ -25615,7 +25724,7 @@ const BarChartsByWeeks = props => {
25615
25724
  ref: controlsContainerRef
25616
25725
  }, /*#__PURE__*/React__default["default"].createElement(Controls$a, {
25617
25726
  height: getControlsHeight()
25618
- }, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$i, null, title), /*#__PURE__*/React__default["default"].createElement(FormattedValue$3, {
25727
+ }, showTitle && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$2, null, /*#__PURE__*/React__default["default"].createElement(Title$h, null, title), /*#__PURE__*/React__default["default"].createElement(FormattedValue$3, {
25619
25728
  title: headerValueTopTitle,
25620
25729
  subtitle: headerValueBottomTitle,
25621
25730
  showTopValue: showHeaderTopValue,
@@ -25848,7 +25957,7 @@ const TitleAndValueContainer$1 = styled__default["default"].div`
25848
25957
  flex-direction: column;
25849
25958
  padding: 0 1.25em; /* 20px → 1.25em */
25850
25959
  `;
25851
- const Title$g = styled__default["default"].h4`
25960
+ const Title$f = styled__default["default"].h4`
25852
25961
  font-weight: 500;
25853
25962
  font-size: ${props => props.titleFontSize || '1.125em'}; /* Default: 18px → 1.125em */
25854
25963
  margin: 0;
@@ -26051,7 +26160,7 @@ const TotalDoughnutChart = props => {
26051
26160
  width: width
26052
26161
  }, !hideTitleAndValue && /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer$1, {
26053
26162
  className: "TitleAndValueContainer"
26054
- }, /*#__PURE__*/React__default["default"].createElement(Title$g, {
26163
+ }, /*#__PURE__*/React__default["default"].createElement(Title$f, {
26055
26164
  className: "Title",
26056
26165
  fontSize: titleFontSize
26057
26166
  }, title), /*#__PURE__*/React__default["default"].createElement(CurrencySignAndFormattedValueContainer, {
@@ -26373,7 +26482,7 @@ const TotalValue = styled__default["default"].div`
26373
26482
  font-size: 20px;
26374
26483
  }
26375
26484
  `;
26376
- const Title$f = styled__default["default"].h4`
26485
+ const Title$e = styled__default["default"].h4`
26377
26486
  font-size: 18px;
26378
26487
  font-weight: 400;
26379
26488
  line-height: 1;
@@ -26530,7 +26639,7 @@ const TotalHorizontalCharts = props => {
26530
26639
  }, chartsData?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, !hideTitle || !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(CardHeader, {
26531
26640
  ref: topHeader,
26532
26641
  className: "CardHeader"
26533
- }, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$f, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
26642
+ }, !hideTitle ? /*#__PURE__*/React__default["default"].createElement(Title$e, null, title) : '', !hideTotalValue ? /*#__PURE__*/React__default["default"].createElement(TotalValue, {
26534
26643
  className: "TotalValue"
26535
26644
  }, currencySign && /*#__PURE__*/React__default["default"].createElement(CurrencySign, {
26536
26645
  className: "CurrencySign"
@@ -26677,7 +26786,7 @@ const scrollableStyles$5 = `
26677
26786
  border-radius: 5px;
26678
26787
  }
26679
26788
  `;
26680
- const MainContainer$2 = styled__default["default"].div`
26789
+ const MainContainer$1 = styled__default["default"].div`
26681
26790
  display: flex;
26682
26791
  flex-direction: row;
26683
26792
  position: relative;
@@ -26945,7 +27054,7 @@ const MarketShareDescription = props => {
26945
27054
  })) : '')));
26946
27055
  return content;
26947
27056
  };
26948
- return /*#__PURE__*/React__default["default"].createElement(MainContainer$2, {
27057
+ return /*#__PURE__*/React__default["default"].createElement(MainContainer$1, {
26949
27058
  className: "MainContainer",
26950
27059
  height: height,
26951
27060
  width: width
@@ -27003,7 +27112,7 @@ const ItemContainer = styled__default["default"].div`
27003
27112
  flex-direction: column;
27004
27113
  flex-wrap: wrap;
27005
27114
  `;
27006
- const Title$e = styled__default["default"].h4`
27115
+ const Title$d = styled__default["default"].h4`
27007
27116
  font-size: 18px;
27008
27117
  font-weight: 500;
27009
27118
  margin: 0;
@@ -27119,7 +27228,7 @@ const SalesAndROI = props => {
27119
27228
  showBorderShadow: showBorderShadow
27120
27229
  }, /*#__PURE__*/React__default["default"].createElement(TitleAndValueContainer, {
27121
27230
  id: "TitleAndValueContainer"
27122
- }, /*#__PURE__*/React__default["default"].createElement(Title$e, {
27231
+ }, /*#__PURE__*/React__default["default"].createElement(Title$d, {
27123
27232
  id: "Title"
27124
27233
  }, title), showBanner && /*#__PURE__*/React__default["default"].createElement(OutBanner, {
27125
27234
  id: "OutBanner",
@@ -27185,7 +27294,7 @@ const scrollableStyles$4 = `
27185
27294
  border-radius: 5px;
27186
27295
  }
27187
27296
  `;
27188
- const MainContainer$1 = styled__default["default"].div``;
27297
+ const MainContainer = styled__default["default"].div``;
27189
27298
  const ModalOverlay = styled__default["default"].div`
27190
27299
  position: fixed;
27191
27300
  z-index: 100;
@@ -27218,7 +27327,7 @@ const TitleContainer$1 = styled__default["default"].div`
27218
27327
  margin: 0;
27219
27328
  border-bottom: 1px solid #b1b1b1;
27220
27329
  `;
27221
- const Title$d = styled__default["default"].p`
27330
+ const Title$c = styled__default["default"].p`
27222
27331
  font-weight: 400;
27223
27332
  font-size: 24px;
27224
27333
  margin: 0;
@@ -27426,7 +27535,7 @@ const PopupCharts = props => {
27426
27535
  }, item.title)), /*#__PURE__*/React__default["default"].createElement(ChartContentContainer, {
27427
27536
  id: "ChartContentContainer"
27428
27537
  }, displayChart(item)));
27429
- return /*#__PURE__*/React__default["default"].createElement(MainContainer$1, {
27538
+ return /*#__PURE__*/React__default["default"].createElement(MainContainer, {
27430
27539
  id: "MainContainer"
27431
27540
  }, IsPopupChartsOpen && /*#__PURE__*/React__default["default"].createElement(ModalOverlay, {
27432
27541
  id: "ModalOverlay",
@@ -27438,7 +27547,7 @@ const PopupCharts = props => {
27438
27547
  height: height,
27439
27548
  width: width,
27440
27549
  onClick: e => e.stopPropagation()
27441
- }, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$d, null, title), /*#__PURE__*/React__default["default"].createElement(CloseXIconContainer, {
27550
+ }, /*#__PURE__*/React__default["default"].createElement(TitleContainer$1, null, /*#__PURE__*/React__default["default"].createElement(Title$c, null, title), /*#__PURE__*/React__default["default"].createElement(CloseXIconContainer, {
27442
27551
  onClick: e => closePopupCharts(e)
27443
27552
  }, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, null))), /*#__PURE__*/React__default["default"].createElement(ChartsContainer, {
27444
27553
  id: "ChartsContainer",
@@ -27536,7 +27645,7 @@ const TopToggleListMainContainer = styled__default["default"].div`
27536
27645
  padding: 0 24px;
27537
27646
  width: ${props => props.width};
27538
27647
  `;
27539
- const Title$c = styled__default["default"].h4`
27648
+ const Title$b = styled__default["default"].h4`
27540
27649
  font-size: 14px;
27541
27650
  font-weight: 600;
27542
27651
  margin: 20px 0 12px;
@@ -27566,7 +27675,7 @@ const TopToggleList = props => {
27566
27675
  } = props;
27567
27676
  return /*#__PURE__*/React__default["default"].createElement(TopToggleListMainContainer, {
27568
27677
  width: width
27569
- }, /*#__PURE__*/React__default["default"].createElement(Title$c, null, title), /*#__PURE__*/React__default["default"].createElement(ListContainer, {
27678
+ }, /*#__PURE__*/React__default["default"].createElement(Title$b, null, title), /*#__PURE__*/React__default["default"].createElement(ListContainer, {
27570
27679
  height: height
27571
27680
  }, list.map(item => /*#__PURE__*/React__default["default"].createElement(ListItem, {
27572
27681
  key: item.value
@@ -27628,7 +27737,7 @@ const TitleContainer = styled__default["default"].div`
27628
27737
  justify-content: flex-start;
27629
27738
  margin: 0 0 10px 0;
27630
27739
  `;
27631
- const Title$b = styled__default["default"].h3`
27740
+ const Title$a = styled__default["default"].h3`
27632
27741
  user-select: none;
27633
27742
  text-align: left;
27634
27743
  margin: 0;
@@ -27903,7 +28012,7 @@ const Heatmap = props => {
27903
28012
  className: "HeatmapWrapper"
27904
28013
  }, /*#__PURE__*/React__default["default"].createElement(TitleContainer, {
27905
28014
  className: "TitleContainer"
27906
- }, /*#__PURE__*/React__default["default"].createElement(Title$b, {
28015
+ }, /*#__PURE__*/React__default["default"].createElement(Title$a, {
27907
28016
  className: "Title"
27908
28017
  }, title)), refreshRequired && renderBars(), !refreshRequired && renderBars(), renderLegend()));
27909
28018
  };
@@ -28322,7 +28431,7 @@ const TooltipTitle$7 = styled__default["default"].div`
28322
28431
  font-size: 14px;
28323
28432
  font-weight: 600;
28324
28433
  `;
28325
- const Title$a = styled__default["default"].h5`
28434
+ const Title$9 = styled__default["default"].h5`
28326
28435
  font-weight: 500;
28327
28436
  font-size: 18px;
28328
28437
  line-height: 20px;
@@ -28483,7 +28592,7 @@ const BarChart = props => {
28483
28592
  height: height,
28484
28593
  width: width,
28485
28594
  ref: controlsContainerRef
28486
- }, /*#__PURE__*/React__default["default"].createElement(Controls$7, null, /*#__PURE__*/React__default["default"].createElement(Title$a, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
28595
+ }, /*#__PURE__*/React__default["default"].createElement(Controls$7, null, /*#__PURE__*/React__default["default"].createElement(Title$9, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
28487
28596
  width: "100%",
28488
28597
  height: "100%"
28489
28598
  }, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
@@ -28656,7 +28765,7 @@ const Controls$6 = styled__default["default"].div`
28656
28765
  flex-direction: column;
28657
28766
  background-color: white;
28658
28767
  `;
28659
- const Title$9 = styled__default["default"].h5`
28768
+ const Title$8 = styled__default["default"].h5`
28660
28769
  font-size: 18px;
28661
28770
  font-weight: 400;
28662
28771
  margin: 0 0 30px;
@@ -28922,9 +29031,9 @@ const DoubleBarSingleLine = props => {
28922
29031
  noDataText: noDataText
28923
29032
  }) : /*#__PURE__*/React__default["default"].createElement(Controls$6, {
28924
29033
  className: "Controls"
28925
- }, title && title.trim() !== '' && /*#__PURE__*/React__default["default"].createElement(Title$9, null, title), /*#__PURE__*/React__default["default"].createElement(ChartsWrapper, {
29034
+ }, title && title.trim() !== '' && /*#__PURE__*/React__default["default"].createElement(Title$8, null, title), /*#__PURE__*/React__default["default"].createElement(ChartsWrapper, {
28926
29035
  width: dynamicWidth //{hasScroll ? `${data.length * 178}px` : 'auto'}
28927
- }, /*#__PURE__*/React__default["default"].createElement(LineChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, _extends$1({
29036
+ }, /*#__PURE__*/React__default["default"].createElement(LineChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.LineChart, _extends({
28928
29037
  data: transformedData
28929
29038
  }, syncCharts, {
28930
29039
  margin: {
@@ -28963,7 +29072,7 @@ const DoubleBarSingleLine = props => {
28963
29072
  }, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
28964
29073
  content: CustomLabelLine,
28965
29074
  position: "top"
28966
- })))))), /*#__PURE__*/React__default["default"].createElement(BarChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, _extends$1({
29075
+ })))))), /*#__PURE__*/React__default["default"].createElement(BarChartWrapper, null, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, null, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, _extends({
28967
29076
  data: data,
28968
29077
  barGap: 13,
28969
29078
  barCategoryGap: data.length >= limitViewableItems ? 178 : 50,
@@ -29026,7 +29135,7 @@ const CheckboxGroupContainer = styled__default["default"].div`
29026
29135
  height: 21px;
29027
29136
  gap: 20px;
29028
29137
  `;
29029
- const Title$8 = styled__default["default"].h5`
29138
+ const Title$7 = styled__default["default"].h5`
29030
29139
  font-weight: 500;
29031
29140
  font-size: 18px;
29032
29141
  line-height: 20px;
@@ -29078,7 +29187,7 @@ const Controls$5 = styled__default["default"].div`
29078
29187
  display: flex;
29079
29188
  align-items: center;
29080
29189
  `;
29081
- const Label$1 = styled__default["default"].div`
29190
+ const Label = styled__default["default"].div`
29082
29191
  display: flex;
29083
29192
  padding: 0 10px 0 10px;
29084
29193
  white-space: nowrap;
@@ -29158,7 +29267,7 @@ const CheckBox = props => {
29158
29267
  width: iconSize,
29159
29268
  height: iconSize,
29160
29269
  color: disabled ? colorDisabled : colorUnchecked
29161
- })), /*#__PURE__*/React__default["default"].createElement(Label$1, {
29270
+ })), /*#__PURE__*/React__default["default"].createElement(Label, {
29162
29271
  className: "Label",
29163
29272
  "data-testid": "label"
29164
29273
  }, label)));
@@ -29354,7 +29463,7 @@ const AreaChart = props => {
29354
29463
  height: height
29355
29464
  }) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderContainer$2, {
29356
29465
  "data-testid": "header-container"
29357
- }, /*#__PURE__*/React__default["default"].createElement(Title$8, {
29466
+ }, /*#__PURE__*/React__default["default"].createElement(Title$7, {
29358
29467
  "data-testid": "title"
29359
29468
  }, title), /*#__PURE__*/React__default["default"].createElement(CheckboxGroupContainer, {
29360
29469
  "data-testid": "checkbox-group-container"
@@ -29853,7 +29962,7 @@ const HeaderContainer$1 = styled__default["default"].div`
29853
29962
  align-items: center;
29854
29963
  padding-bottom: 8px;
29855
29964
  `;
29856
- const Title$7 = styled__default["default"].h3`
29965
+ const Title$6 = styled__default["default"].h3`
29857
29966
  font-size: 18px;
29858
29967
  font-weight: 400;
29859
29968
  margin: 0;
@@ -29917,7 +30026,7 @@ const BreakdownPanel = props => {
29917
30026
  height: height
29918
30027
  }) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(HeaderContainer$1, {
29919
30028
  "data-testid": "header-container"
29920
- }, /*#__PURE__*/React__default["default"].createElement(Title$7, {
30029
+ }, /*#__PURE__*/React__default["default"].createElement(Title$6, {
29921
30030
  "data-testid": "title"
29922
30031
  }, title)), /*#__PURE__*/React__default["default"].createElement(CategorySalesMainContainer, {
29923
30032
  "data-testid": "category-sales-main-container"
@@ -30082,6 +30191,7 @@ const ZoomControlsContainer = styled__default["default"].div`
30082
30191
  font-family: "Poppins", sans-serif;
30083
30192
  backdrop-filter: blur(8px);
30084
30193
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
30194
+ flex-direction: column;
30085
30195
  `;
30086
30196
  const ZoomPercentage = styled__default["default"].span`
30087
30197
  font-size: 18px;
@@ -30128,6 +30238,7 @@ const ZoomResetButton = styled__default["default"].button`
30128
30238
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.92));
30129
30239
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
30130
30240
  transition: all 0.2s ease-in-out;
30241
+ margin-left: 80px;
30131
30242
 
30132
30243
  &:hover {
30133
30244
  background: linear-gradient(to right, #f0f0f0, #eaeaea);
@@ -30146,6 +30257,21 @@ const ZoomResetButton = styled__default["default"].button`
30146
30257
  box-shadow: 0 0 0 3px rgba(100, 150, 250, 0.4);
30147
30258
  }
30148
30259
  `;
30260
+ const ZoomTitle = styled__default["default"].span`
30261
+ color: var(--Text-secondary, #484A4C);
30262
+ font-feature-settings: 'liga' off;
30263
+ font-family: Poppins;
30264
+ font-size: 14px;
30265
+ font-style: normal;
30266
+ font-weight: 400;
30267
+ line-height: normal;
30268
+ `;
30269
+ const ZoomInnerContainer = styled__default["default"].div`
30270
+ display: flex;
30271
+ align-items: center;
30272
+ align-self: flex-start;
30273
+ margin-left: 12px;
30274
+ `;
30149
30275
 
30150
30276
  // Enhanced color palette with bubble-like transparency and gradients
30151
30277
  const defaultColorPalette = [
@@ -30913,7 +31039,7 @@ const BubbleChart = _ref => {
30913
31039
  }
30914
31040
  })))), /*#__PURE__*/React__default["default"].createElement(ZoomControlsContainer, {
30915
31041
  "data-testid": "zoom-controls-container"
30916
- }, /*#__PURE__*/React__default["default"].createElement(ZoomPercentage, {
31042
+ }, /*#__PURE__*/React__default["default"].createElement(ZoomTitle, null, "* Press Ctrl + scroll to zoom the chart"), /*#__PURE__*/React__default["default"].createElement(ZoomInnerContainer, null, /*#__PURE__*/React__default["default"].createElement(ZoomPercentage, {
30917
31043
  "data-testid": "zoom-percentage"
30918
31044
  }, zoomLevel, "%"), /*#__PURE__*/React__default["default"].createElement(ZoomButton, {
30919
31045
  onClick: handleZoomOut,
@@ -30926,7 +31052,7 @@ const BubbleChart = _ref => {
30926
31052
  }, "+"), /*#__PURE__*/React__default["default"].createElement(ZoomResetButton, {
30927
31053
  onClick: handleReset,
30928
31054
  "data-testid": "zoom-reset-button"
30929
- }, "Reset"))));
31055
+ }, "Reset")))));
30930
31056
  };
30931
31057
 
30932
31058
  const BatteryChartContainer = styled__default["default"].div`
@@ -31433,7 +31559,7 @@ const ChartContainer = styled__default["default"].div`
31433
31559
  width: 100%;
31434
31560
  height: calc(100% - 70px);
31435
31561
  `;
31436
- const Title$6 = styled__default["default"].h2`
31562
+ const Title$5 = styled__default["default"].h2`
31437
31563
  color: #212121;
31438
31564
  font-family: "Poppins";
31439
31565
  font-size: 18px;
@@ -31580,6 +31706,12 @@ const BarLine = props => {
31580
31706
  // Calculate the number of visible bars like InnerBar component
31581
31707
  const visibleBarsCount = brushRange.endIndex - brushRange.startIndex + 1;
31582
31708
  const shouldShowLabels = visibleBarsCount <= 8;
31709
+ React$1.useEffect(() => {
31710
+ setBrushRange({
31711
+ startIndex: 0,
31712
+ endIndex: Math.min(6, brushAreaBarData.length - 1)
31713
+ });
31714
+ }, [brushAreaBarData]);
31583
31715
  return /*#__PURE__*/React__default["default"].createElement("div", {
31584
31716
  style: {
31585
31717
  width: "100%",
@@ -31691,7 +31823,8 @@ const BarLine = props => {
31691
31823
  startIndex: brushRange.startIndex,
31692
31824
  endIndex: brushRange.endIndex,
31693
31825
  className: "custom-brush",
31694
- onChange: handleBrushChange
31826
+ onChange: handleBrushChange,
31827
+ tickFormatter: value => value + 1
31695
31828
  })))), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31696
31829
  width: "100%",
31697
31830
  height: "40px",
@@ -31798,6 +31931,12 @@ const SingleChart = props => {
31798
31931
  // Calculate the number of visible bars
31799
31932
  const visibleBarsCount = brushRange.endIndex - brushRange.startIndex + 1;
31800
31933
  const shouldShowLabels = visibleBarsCount <= 8;
31934
+ React$1.useEffect(() => {
31935
+ setBrushRange({
31936
+ startIndex: 0,
31937
+ endIndex: Math.min(6, barData.length - 1)
31938
+ });
31939
+ }, [barData]);
31801
31940
  return /*#__PURE__*/React__default["default"].createElement("div", {
31802
31941
  style: {
31803
31942
  width: "100%",
@@ -31854,7 +31993,8 @@ const SingleChart = props => {
31854
31993
  startIndex: brushRange.startIndex,
31855
31994
  endIndex: brushRange.endIndex,
31856
31995
  className: "custom-brush",
31857
- onChange: handleBrushChange
31996
+ onChange: handleBrushChange,
31997
+ tickFormatter: value => value + 1
31858
31998
  }))), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31859
31999
  width: "100%",
31860
32000
  height: "40px",
@@ -31998,6 +32138,12 @@ const InnerBar = props => {
31998
32138
  // Calculate the number of visible bars
31999
32139
  const visibleBarsCount = brushRange.endIndex - brushRange.startIndex + 1;
32000
32140
  const shouldShowLabels = visibleBarsCount <= 8;
32141
+ React$1.useEffect(() => {
32142
+ setBrushRange({
32143
+ startIndex: 0,
32144
+ endIndex: Math.min(6, brushInnerBarData.length - 1)
32145
+ });
32146
+ }, [brushInnerBarData]);
32001
32147
  return /*#__PURE__*/React__default["default"].createElement("div", {
32002
32148
  style: {
32003
32149
  width: "100%",
@@ -32041,7 +32187,8 @@ const InnerBar = props => {
32041
32187
  startIndex: brushRange.startIndex,
32042
32188
  endIndex: brushRange.endIndex,
32043
32189
  className: "custom-brush",
32044
- onChange: handleBrushChange
32190
+ onChange: handleBrushChange,
32191
+ tickFormatter: value => value + 1
32045
32192
  }))), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
32046
32193
  width: "100%",
32047
32194
  height: "40px",
@@ -32079,7 +32226,7 @@ const BrushChart = props => {
32079
32226
  return /*#__PURE__*/React__default["default"].createElement(Container, {
32080
32227
  height: height,
32081
32228
  width: width
32082
- }, /*#__PURE__*/React__default["default"].createElement(Title$6, null, title), /*#__PURE__*/React__default["default"].createElement(SegmentedContainer, {
32229
+ }, /*#__PURE__*/React__default["default"].createElement(Title$5, null, title), /*#__PURE__*/React__default["default"].createElement(SegmentedContainer, {
32083
32230
  gap: "8px",
32084
32231
  options: segmentedbuttonOptions ? segmentedbuttonOptions.map(value => ({
32085
32232
  value
@@ -32143,7 +32290,7 @@ const Controls$3 = styled__default["default"].div`
32143
32290
  padding: 12px 32px;
32144
32291
  }
32145
32292
  `;
32146
- const Title$5 = styled__default["default"].span`
32293
+ const Title$4 = styled__default["default"].span`
32147
32294
  color: #212121;
32148
32295
  display: inline-block;
32149
32296
  font-size: 18px;
@@ -32404,7 +32551,7 @@ const SingleBarLineCharts = _ref => {
32404
32551
  height: height
32405
32552
  }, data?.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Controls$3, {
32406
32553
  className: "Controls"
32407
- }, title !== '' && /*#__PURE__*/React__default["default"].createElement(Title$5, null, title), totalsData.length > 0 && /*#__PURE__*/React__default["default"].createElement(LinnerDataBoxWrap, {
32554
+ }, title !== '' && /*#__PURE__*/React__default["default"].createElement(Title$4, null, title), totalsData.length > 0 && /*#__PURE__*/React__default["default"].createElement(LinnerDataBoxWrap, {
32408
32555
  width: "40%",
32409
32556
  height: "60px",
32410
32557
  data: totalsData
@@ -32696,7 +32843,7 @@ const TooltipTitle$2 = styled__default["default"].div`
32696
32843
  font-size: 14px;
32697
32844
  font-weight: 600;
32698
32845
  `;
32699
- const Title$4 = styled__default["default"].h5`
32846
+ const Title$3 = styled__default["default"].h5`
32700
32847
  font-weight: 500;
32701
32848
  font-size: 18px;
32702
32849
  line-height: 20px;
@@ -32872,7 +33019,7 @@ const BarChartWithAreaChart = props => {
32872
33019
  ref: controlsContainerRef
32873
33020
  }, /*#__PURE__*/React__default["default"].createElement(Controls$2, {
32874
33021
  className: "Controls"
32875
- }, /*#__PURE__*/React__default["default"].createElement(Title$4, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
33022
+ }, /*#__PURE__*/React__default["default"].createElement(Title$3, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
32876
33023
  height: barChartHeight
32877
33024
  }, /*#__PURE__*/React__default["default"].createElement(recharts.ComposedChart, {
32878
33025
  data: barChartData
@@ -32945,7 +33092,7 @@ const Controls$1 = styled__default["default"].div`
32945
33092
  padding: 12px 32px;
32946
33093
  }
32947
33094
  `;
32948
- const Title$3 = styled__default["default"].span`
33095
+ const Title$2 = styled__default["default"].span`
32949
33096
  color: #212121;
32950
33097
  display: inline-block;
32951
33098
  font-size: 18px;
@@ -33100,7 +33247,7 @@ const BarChartTwoRows = props => {
33100
33247
  ref: controlsContainerRef
33101
33248
  }, /*#__PURE__*/React__default["default"].createElement(Controls$1, {
33102
33249
  className: "Controls"
33103
- }, title !== '' && /*#__PURE__*/React__default["default"].createElement(Title$3, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
33250
+ }, title !== '' && /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
33104
33251
  height: barChartHeight
33105
33252
  }, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
33106
33253
  width: width,
@@ -33179,7 +33326,7 @@ const TooltipTitle = styled__default["default"].div`
33179
33326
  font-size: 14px;
33180
33327
  font-weight: 600;
33181
33328
  `;
33182
- const Title$2 = styled__default["default"].h5`
33329
+ const Title$1 = styled__default["default"].h5`
33183
33330
  font-weight: 500;
33184
33331
  font-size: 18px;
33185
33332
  line-height: 20px;
@@ -33302,7 +33449,7 @@ const TwoBarCharts = props => {
33302
33449
  height: height,
33303
33450
  width: width,
33304
33451
  ref: controlsContainerRef
33305
- }, /*#__PURE__*/React__default["default"].createElement(Controls, null, /*#__PURE__*/React__default["default"].createElement(Title$2, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
33452
+ }, /*#__PURE__*/React__default["default"].createElement(Controls, null, /*#__PURE__*/React__default["default"].createElement(Title$1, null, title), /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
33306
33453
  width: "100%",
33307
33454
  height: "100%"
33308
33455
  }, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
@@ -33482,7 +33629,7 @@ const TitleDiv = styled__default["default"].div`
33482
33629
  font-size: 10px;
33483
33630
  }
33484
33631
  `;
33485
- const TableWrapper$2 = styled__default["default"].div`
33632
+ const TableWrapper = styled__default["default"].div`
33486
33633
  overflow-x: auto;
33487
33634
  margin-bottom: 22px;
33488
33635
  &::-webkit-scrollbar {
@@ -33499,7 +33646,7 @@ const TableWrapper$2 = styled__default["default"].div`
33499
33646
  border-radius: 5px;
33500
33647
  }
33501
33648
  `;
33502
- const Table$2 = styled__default["default"].table`
33649
+ const Table = styled__default["default"].table`
33503
33650
  width: 100%;
33504
33651
  border-collapse: collapse;
33505
33652
  overflow: auto;
@@ -33729,7 +33876,7 @@ const CollapseData = props => {
33729
33876
  }) : /*#__PURE__*/React__default["default"].createElement(ArrowDownIcon, {
33730
33877
  width: "11px",
33731
33878
  height: "12px"
33732
- })), /*#__PURE__*/React__default["default"].createElement(TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/React__default["default"].createElement(TableWrapper$2, null, /*#__PURE__*/React__default["default"].createElement(Table$2, null, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/React__default["default"].createElement(Th, {
33879
+ })), /*#__PURE__*/React__default["default"].createElement(TitleDiv, null, `${parseFloat(section.value.toFixed(1))}${section.valueType}`))), activeIndex === section.key && /*#__PURE__*/React__default["default"].createElement(TableWrapper, null, /*#__PURE__*/React__default["default"].createElement(Table, null, /*#__PURE__*/React__default["default"].createElement("thead", null, /*#__PURE__*/React__default["default"].createElement("tr", null, section.table.map((headline, i) => /*#__PURE__*/React__default["default"].createElement(Th, {
33733
33880
  key: `${i + headline}`
33734
33881
  }, headline.title)))), /*#__PURE__*/React__default["default"].createElement("tbody", null, /*#__PURE__*/React__default["default"].createElement("tr", null, section.table.map((data, i) => {
33735
33882
  if (data.value !== null) {
@@ -33797,7 +33944,7 @@ const ModalContent = styled__default["default"].div`
33797
33944
  padding: 1rem 0 3rem;
33798
33945
  }
33799
33946
  `;
33800
- const Header$1 = styled__default["default"].div`
33947
+ const Header = styled__default["default"].div`
33801
33948
  position: relative;
33802
33949
  display: flex;
33803
33950
  justify-content: space-between;
@@ -33829,7 +33976,7 @@ const CloseButton = styled__default["default"].button`
33829
33976
  align-self: flex-end;
33830
33977
  }
33831
33978
  `;
33832
- const Title$1 = styled__default["default"].h2`
33979
+ const Title = styled__default["default"].h2`
33833
33980
  position: absolute;
33834
33981
  display: flex;
33835
33982
  align-items: center;
@@ -34007,7 +34154,7 @@ const InsightsCarousel = _ref => {
34007
34154
  const nextIndex = (currentIndex + 1) % totalChildren;
34008
34155
  return /*#__PURE__*/React__default["default"].createElement(Overlay, {
34009
34156
  className: className
34010
- }, /*#__PURE__*/React__default["default"].createElement(ModalContent, null, /*#__PURE__*/React__default["default"].createElement(Header$1, null, /*#__PURE__*/React__default["default"].createElement(Title$1, {
34157
+ }, /*#__PURE__*/React__default["default"].createElement(ModalContent, null, /*#__PURE__*/React__default["default"].createElement(Header, null, /*#__PURE__*/React__default["default"].createElement(Title, {
34011
34158
  $titleColor: titleColor
34012
34159
  }, /*#__PURE__*/React__default["default"].cloneElement(icon, {
34013
34160
  fill: iconColor
@@ -34305,1564 +34452,6 @@ DownloadProgress.defaultProps = {
34305
34452
  className: 'DownloadProgressMainContainer'
34306
34453
  };
34307
34454
 
34308
- const ModalWrapper = styled__default["default"].div`
34309
- font-family: "Poppins", sans-serif;
34310
- position: fixed;
34311
- top: 0;
34312
- left: 0;
34313
- width: 100%;
34314
- height: 100%;
34315
- background-color: rgba(0, 0, 0, 0.5);
34316
- display: flex;
34317
- justify-content: center;
34318
- align-items: center;
34319
- `;
34320
- const Modal = styled__default["default"].div`
34321
- display: flex;
34322
- gap: 30px;
34323
- padding: 20px;
34324
- flex-direction: column;
34325
- background-color: white;
34326
- border-radius: 12px;
34327
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
34328
- `;
34329
- const ModalHeader = styled__default["default"].div`
34330
- display: flex;
34331
- justify-content: space-between;
34332
- `;
34333
- const ModalButtons = styled__default["default"].div`
34334
- display: flex;
34335
- gap: 10px;
34336
- `;
34337
- const ModalTitle = styled__default["default"].h3`
34338
- margin: 0;
34339
- font-size: 24px;
34340
- `;
34341
- const ModalBody = styled__default["default"].div`
34342
- flex-grow: 1;
34343
- `;
34344
- styled__default["default"].div`
34345
- display: flex;
34346
- justify-content: flex-end;
34347
- padding: 20px;
34348
- border-top: 1px solid #ddd;
34349
- `;
34350
-
34351
- const ModalWithOverlay = props => {
34352
- const {
34353
- title = '',
34354
- children = null,
34355
- onOk = () => {},
34356
- onCancel = () => {},
34357
- cancelButtonText = 'Cancel',
34358
- cancelButtonLeftIcon = '',
34359
- cancelButtonRightIcon = '',
34360
- cancelButtonType = 'secondary',
34361
- okButtonText = 'OK',
34362
- okButtonLeftIcon = '',
34363
- okButtonRightIcon = '',
34364
- okButtonType = 'primary',
34365
- width = '400px',
34366
- height = 'auto',
34367
- overlayTransparent = false,
34368
- overlayOpacity = 0.797,
34369
- showCancelButton = true,
34370
- // Added this prop
34371
- showOkButton = true // Added this prop
34372
- } = props;
34373
- const overlayStyle = {
34374
- backgroundColor: overlayTransparent ? "transparent" : `rgba(0, 0, 0, ${overlayOpacity || 0.797})`
34375
- };
34376
- return /*#__PURE__*/React__default["default"].createElement(ModalWrapper, {
34377
- className: "modal-wrapper",
34378
- style: overlayStyle
34379
- }, /*#__PURE__*/React__default["default"].createElement(Modal, {
34380
- style: {
34381
- width,
34382
- height
34383
- }
34384
- }, /*#__PURE__*/React__default["default"].createElement(ModalHeader, {
34385
- className: "modal-header"
34386
- }, /*#__PURE__*/React__default["default"].createElement(ModalTitle, null, title), /*#__PURE__*/React__default["default"].createElement(ModalButtons, {
34387
- className: "modal-buttons"
34388
- }, showCancelButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
34389
- type: cancelButtonType,
34390
- leftIcon: cancelButtonLeftIcon,
34391
- rightIcon: cancelButtonRightIcon,
34392
- text: cancelButtonText,
34393
- onClick: onCancel
34394
- }), showOkButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
34395
- type: okButtonType,
34396
- leftIcon: okButtonLeftIcon,
34397
- rightIcon: okButtonRightIcon,
34398
- text: okButtonText,
34399
- onClick: onOk
34400
- }))), /*#__PURE__*/React__default["default"].createElement(ModalBody, {
34401
- className: "modal-body"
34402
- }, children)));
34403
- };
34404
-
34405
- /* ──────────────────────────────────────────
34406
- COLORS – map to your design-system tokens
34407
- Change only here if the palette shifts
34408
- ─────────────────────────────────────────── */
34409
- const c = {
34410
- surface: "#ffffff",
34411
- text: "#212121",
34412
- textSecondary: "#8d9299",
34413
- primary: "#016672",
34414
- // apply / highlight
34415
- primaryLight: "#d1e7ea",
34416
- border: "#e0e0e0"
34417
- };
34418
-
34419
- /* ───────────────────────── wrapper */
34420
- const CalendarWrapper = styled__default["default"].div`
34421
- width: 240px;
34422
- padding: 16px 16px 12px;
34423
- background: ${c.surface};
34424
- border-radius: 8px;
34425
- box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
34426
- user-select: none;
34427
- `;
34428
-
34429
- /* ───────────────────────── header */
34430
- const Header = styled__default["default"].h4`
34431
- margin: 0 0 12px;
34432
- color: ${c.text};
34433
-
34434
- /* Content/P3 Regular */
34435
- font-family: Poppins;
34436
- font-size: 12px;
34437
- font-style: normal;
34438
- font-weight: 400;
34439
- line-height: normal;
34440
- `;
34441
-
34442
- /* ───────────────────────── grid */
34443
- const Grid = styled__default["default"].div`
34444
- display: grid;
34445
- grid-template-columns: repeat(${({
34446
- columns
34447
- }) => columns}, 1fr);
34448
- gap: 6px 0px;
34449
- margin-bottom: 16px;
34450
- `;
34451
-
34452
- /* individual week cell */
34453
- const WeekCell = styled__default["default"].div`
34454
- padding: 6px 0;
34455
- font-size: 13px;
34456
- padding-top: 10px;
34457
- padding-bottom: 10px;
34458
- text-align: center;
34459
- cursor: pointer;
34460
- color: ${c.textSecondary};
34461
- transition: background 0.15s ease;
34462
- border-radius: 4px;
34463
-
34464
- ${({
34465
- $selected
34466
- }) => $selected && styled.css`
34467
-
34468
- background: ${c.primary};
34469
- color: #FFFFFF;
34470
- `}
34471
-
34472
- /* highlight range interior lighter */
34473
- ${({
34474
- $isRangeMiddle
34475
- }) => $isRangeMiddle && styled.css`
34476
- background: ${c.primaryLight};
34477
- border-radius: 0px;
34478
- color: ${c.text};
34479
- `}
34480
-
34481
- &:hover {
34482
- background: ${c.primaryLight};
34483
- color: ${c.text};
34484
- }
34485
- text-align: center;
34486
- font-feature-settings: "liga" off;
34487
-
34488
- /* Content/P3 Regular */
34489
- font-family: Poppins;
34490
- font-size: 12px;
34491
- font-style: normal;
34492
- font-weight: 400;
34493
- line-height: normal;
34494
- `;
34495
-
34496
- /* ───────────────────────── footer buttons */
34497
- const Footer = styled__default["default"].div`
34498
- display: flex;
34499
- justify-content: space-between;
34500
- gap: 8px;
34501
- `;
34502
- styled.css`
34503
- flex: 1 1 0;
34504
- height: 32px;
34505
- font-weight: 600;
34506
- font-size: 12px;
34507
- line-height: 32px;
34508
- text-align: center;
34509
- border-radius: 6px;
34510
- border: 1px solid transparent;
34511
- cursor: pointer;
34512
- transition:
34513
- opacity 0.15s ease,
34514
- background 0.15s ease;
34515
- &:disabled {
34516
- opacity: 0.4;
34517
- cursor: default;
34518
- }
34519
- `;
34520
-
34521
- /**
34522
- * WeeksCalendar
34523
- * -------------
34524
- * Props
34525
- * • year – four-digit year (required)
34526
- * • defaultStartWeek – number | null
34527
- * • defaultEndWeek – number | null
34528
- * • onApply(start,end) – callback, both numbers (inclusive)
34529
- * • onCancel() – callback
34530
- */
34531
- const WeeksCalendar = ({
34532
- year,
34533
- defaultStartWeek = null,
34534
- defaultEndWeek = null,
34535
- onApply,
34536
- onCancel
34537
- }) => {
34538
- // state -------------------------------------------------
34539
- const [startWeek, setStartWeek] = React$1.useState(defaultStartWeek);
34540
- const [endWeek, setEndWeek] = React$1.useState(defaultEndWeek);
34541
-
34542
- // derived helpers --------------------------------------
34543
- const hasSelection = startWeek !== null;
34544
- const isRange = hasSelection && endWeek !== null && endWeek !== startWeek;
34545
- const weeks = React$1.useMemo(() => [...Array(53)].map((_, i) => i + 1), []);
34546
- const handleCellClick = week => {
34547
- // first click → start
34548
-
34549
- if (!hasSelection) {
34550
- setStartWeek(week);
34551
- setEndWeek(null);
34552
- return;
34553
- }
34554
- // second click → decide range or single
34555
- if (hasSelection && endWeek === null) {
34556
- // second click on same cell turns it to single selection
34557
- if (week === startWeek) {
34558
- setEndWeek(null);
34559
- return;
34560
- }
34561
- // ensure ascending order
34562
- setEndWeek(week < startWeek ? startWeek : week);
34563
- setStartWeek(week < startWeek ? week : startWeek);
34564
- return;
34565
- }
34566
- // any later click resets selection and starts over
34567
- setStartWeek(week);
34568
- setEndWeek(null);
34569
- };
34570
- const clearAll = () => {
34571
- setStartWeek(null);
34572
- setEndWeek(null);
34573
- };
34574
-
34575
- // render ------------------------------------------------
34576
- const title = !hasSelection ? "Select Weeks" : !isRange ? `Week ${startWeek}, ${year}` : `Weeks ${startWeek}-${endWeek}, ${year}`;
34577
- return /*#__PURE__*/React__default["default"].createElement(CalendarWrapper, null, /*#__PURE__*/React__default["default"].createElement(Header, null, title), /*#__PURE__*/React__default["default"].createElement(Grid, {
34578
- columns: 6
34579
- }, weeks.map(wk => {
34580
- const selected = wk === startWeek || isRange && wk >= startWeek && wk <= endWeek;
34581
- return /*#__PURE__*/React__default["default"].createElement(WeekCell, {
34582
- key: wk,
34583
- "data-week": wk,
34584
- $selected: selected,
34585
- $isRangeMiddle: selected && wk !== startWeek && wk !== endWeek,
34586
- onClick: () => handleCellClick(wk)
34587
- }, wk);
34588
- })), /*#__PURE__*/React__default["default"].createElement(Footer, null, /*#__PURE__*/React__default["default"].createElement(Button$1, {
34589
- type: "secondary",
34590
- disabled: !hasSelection,
34591
- onClick: clearAll,
34592
- text: "CLEAR"
34593
- }), /*#__PURE__*/React__default["default"].createElement(Button$1, {
34594
- type: "primary",
34595
- disabled: !hasSelection,
34596
- onClick: () => {
34597
- if (hasSelection) onApply(startWeek, endWeek ?? startWeek);
34598
- },
34599
- text: "APPLY"
34600
- }), onCancel && /*#__PURE__*/React__default["default"].createElement("button", {
34601
- style: {
34602
- display: "none"
34603
- },
34604
- type: "button",
34605
- onClick: onCancel
34606
- })));
34607
- };
34608
- WeeksCalendar.propTypes = {
34609
- year: PropTypes.number.isRequired,
34610
- defaultStartWeek: PropTypes.number,
34611
- defaultEndWeek: PropTypes.number,
34612
- onApply: PropTypes.func.isRequired,
34613
- onCancel: PropTypes.func
34614
- };
34615
-
34616
- /* src/components/WeeksPicker/WeeksPicker.style.js */
34617
- const WeeksPickerContainer = styled__default["default"].div`
34618
- position: relative;
34619
- margin-bottom: 10px;
34620
- width: ${props => props.width || '100%'};
34621
- height: ${props => props.height || '60px'};
34622
- `;
34623
- const StyledInput$1 = styled__default["default"].input`
34624
- padding: 20px;
34625
- font-size: 14px;
34626
- border-radius: ${props => props.borderRadius || '4px'};
34627
- border: none;
34628
- outline: none;
34629
- width: ${props => props.width || '90%'};
34630
- height: ${props => props.height || '60px'};
34631
- transition: border-color 0.3s ease;
34632
- font-size: 14px;
34633
- font-weight: 400;
34634
- box-sizing: border-box;
34635
- color: ${props => props.disabled ? '#888' : (props.isFocused || props.value ? props.textColor : '#757575') || '#333'};
34636
- cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
34637
- `;
34638
- const StyledLabel = styled__default["default"].label`
34639
- font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
34640
- width: ${props => props.isFocused || props.hasValue ? 'auto' : '150px'};
34641
- color: ${props => props.disabled ? '#888' : (props.isFocused || props.hasValue ? props.borderColorFocus : '#757575') || '#333'};
34642
- position: absolute;
34643
- top: ${props => props.isFocused || props.hasValue ? '0px' : '50%'};
34644
- left: 15px;
34645
- background-color: ${props => props.isFocused || props.hasValue ? 'white' : 'transparent'};
34646
- transform: translateY(-50%);
34647
- transition: top 0.3s ease, font-size 0.3s ease;
34648
- display: flex;
34649
- font-weight: 400;
34650
- align-items: center;
34651
- box-sizing: border-box;
34652
- cursor: pointer;
34653
- `;
34654
- const RequiredIndicator = styled__default["default"].span`
34655
- color: red;
34656
- margin-left: 5px;
34657
- `;
34658
- styled__default["default"].div`
34659
- font-size: 12px;
34660
- color: red;
34661
- margin-top: 5px;
34662
- `;
34663
- const OptionsContainer = styled__default["default"].div`
34664
- position: relative;
34665
- z-index: 999;
34666
- `;
34667
- const InputContainer$1 = styled__default["default"].div`
34668
- display: flex;
34669
- flex-wrap: nowrap;
34670
- justify-content: flex-start;
34671
- align-content: center;
34672
- white-space: pre-wrap;
34673
- align-items: center;
34674
- overflow: hidden;
34675
- width: 100%;
34676
- height: 100%;
34677
- box-sizing: border-box;
34678
- background-color: transparent;
34679
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
34680
- font-family: "Poppins", sans-serif;
34681
- font-weight: 400;
34682
- font-size: 14px;
34683
- border-radius: 12px;
34684
- outline: none;
34685
- color: ${props => props.disabled ? '#888' : '#212121'};
34686
-
34687
- &:hover {
34688
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
34689
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
34690
- }
34691
-
34692
- &:focus {
34693
- border: 1px solid ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : props.borderColorFocus || '#212121'};
34694
- }
34695
- `;
34696
- const CalendarDiv = styled__default["default"].div`
34697
- position: absolute;
34698
- top: 16px;
34699
- right: 10px;
34700
- `;
34701
-
34702
- // src/components/WeeksPicker/WeeksPicker.jsx
34703
- const WeeksPicker = _ref => {
34704
- let {
34705
- label,
34706
- disabled,
34707
- borderColor,
34708
- borderColorFocus,
34709
- textColor,
34710
- required,
34711
- placeholder,
34712
- borderRadius,
34713
- year,
34714
- width,
34715
- height,
34716
- onChange,
34717
- selectedValue
34718
- } = _ref;
34719
- const [value, setValue] = React$1.useState("");
34720
- const inputRef = React$1.useRef(null);
34721
- const [isFocused, setIsFocused] = React$1.useState(false);
34722
- const [isOpen, setIsOpen] = React$1.useState(false);
34723
- const handleToggle = () => {
34724
- setIsOpen(!isOpen);
34725
- };
34726
- const onChangeEvent = e => {
34727
- onChange(e.target.value);
34728
- setValue(e.target.value);
34729
- };
34730
- React$1.useEffect(() => {
34731
- if (selectedValue) {
34732
- setValue(selectedValue);
34733
- }
34734
- }, [selectedValue]);
34735
- const handleApply = () => {
34736
- setIsOpen(false);
34737
- };
34738
- const handleCancel = () => {
34739
- setIsOpen(false);
34740
- };
34741
- const handleFocus = () => {
34742
- setIsFocused(true);
34743
- };
34744
- const handleBlur = () => {
34745
- setIsFocused(false);
34746
- };
34747
- return /*#__PURE__*/React__default["default"].createElement(WeeksPickerContainer, {
34748
- width: width,
34749
- height: height
34750
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer$1, {
34751
- onClick: handleToggle,
34752
- className: "InputContainer",
34753
- isFocused: isFocused,
34754
- hasValue: value,
34755
- disabled: disabled,
34756
- textColor: textColor,
34757
- borderColor: borderColor,
34758
- borderColorFocus: borderColorFocus
34759
- }, /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
34760
- className: "StyledLabel",
34761
- onClick: handleFocus,
34762
- isFocused: isFocused,
34763
- hasValue: value,
34764
- disabled: disabled,
34765
- textColor: textColor,
34766
- borderColor: borderColor,
34767
- borderColorFocus: borderColorFocus
34768
- }, label, required && /*#__PURE__*/React__default["default"].createElement(RequiredIndicator, null, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput$1, {
34769
- className: "StyledInput",
34770
- ref: inputRef,
34771
- value: value,
34772
- onChange: onChangeEvent,
34773
- onFocus: handleFocus,
34774
- onBlur: handleBlur,
34775
- isFocused: isFocused,
34776
- borderColorFocus: borderColorFocus,
34777
- borderRadius: borderRadius,
34778
- width: width,
34779
- height: height,
34780
- placeholder: isFocused ? placeholder : "",
34781
- disabled: disabled,
34782
- borderColor: borderColor,
34783
- textColor: textColor
34784
- }), /*#__PURE__*/React__default["default"].createElement(CalendarDiv, {
34785
- onClick: handleToggle
34786
- }, isOpen === true ? /*#__PURE__*/React__default["default"].createElement(CalendarInOpen, null) : /*#__PURE__*/React__default["default"].createElement(Calendar, null))), isOpen && /*#__PURE__*/React__default["default"].createElement(OptionsContainer, null, /*#__PURE__*/React__default["default"].createElement(WeeksCalendar, {
34787
- year: year,
34788
- onApply: (start, end) => {
34789
- handleApply();
34790
- const tempValue = end === start ? `Week ${start},${year}` : `Weeks ${start} - ${end},${year}`;
34791
- onChange(tempValue);
34792
- setValue(tempValue);
34793
- setIsOpen(!isOpen);
34794
- // close your modal here if needed …
34795
- },
34796
- onCancel: () => handleCancel()
34797
- })));
34798
- };
34799
- WeeksPicker.propTypes = {
34800
- label: PropTypes.string.isRequired,
34801
- year: PropTypes.number.isRequired,
34802
- onChange: PropTypes.func.isRequired,
34803
- defaultValues: PropTypes.arrayOf(PropTypes.number),
34804
- saveStartWeekID: PropTypes.func.isRequired,
34805
- saveEndWeekID: PropTypes.func.isRequired
34806
- };
34807
-
34808
- var DefaultContext = {
34809
- color: undefined,
34810
- size: undefined,
34811
- className: undefined,
34812
- style: undefined,
34813
- attr: undefined
34814
- };
34815
- var IconContext = React__default["default"].createContext && /*#__PURE__*/React__default["default"].createContext(DefaultContext);
34816
-
34817
- var _excluded = ["attr", "size", "title"];
34818
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
34819
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
34820
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
34821
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
34822
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
34823
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
34824
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
34825
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
34826
- function Tree2Element(tree) {
34827
- return tree && tree.map((node, i) => /*#__PURE__*/React__default["default"].createElement(node.tag, _objectSpread({
34828
- key: i
34829
- }, node.attr), Tree2Element(node.child)));
34830
- }
34831
- function GenIcon(data) {
34832
- return props => /*#__PURE__*/React__default["default"].createElement(IconBase, _extends({
34833
- attr: _objectSpread({}, data.attr)
34834
- }, props), Tree2Element(data.child));
34835
- }
34836
- function IconBase(props) {
34837
- var elem = conf => {
34838
- var {
34839
- attr,
34840
- size,
34841
- title
34842
- } = props,
34843
- svgProps = _objectWithoutProperties(props, _excluded);
34844
- var computedSize = size || conf.size || "1em";
34845
- var className;
34846
- if (conf.className) className = conf.className;
34847
- if (props.className) className = (className ? className + " " : "") + props.className;
34848
- return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
34849
- stroke: "currentColor",
34850
- fill: "currentColor",
34851
- strokeWidth: "0"
34852
- }, conf.attr, attr, svgProps, {
34853
- className: className,
34854
- style: _objectSpread(_objectSpread({
34855
- color: props.color || conf.color
34856
- }, conf.style), props.style),
34857
- height: computedSize,
34858
- width: computedSize,
34859
- xmlns: "http://www.w3.org/2000/svg"
34860
- }), title && /*#__PURE__*/React__default["default"].createElement("title", null, title), props.children);
34861
- };
34862
- return IconContext !== undefined ? /*#__PURE__*/React__default["default"].createElement(IconContext.Consumer, null, conf => elem(conf)) : elem(DefaultContext);
34863
- }
34864
-
34865
- // THIS FILE IS AUTO GENERATED
34866
- function FaEyeSlash (props) {
34867
- return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 640 512"},"child":[{"tag":"path","attr":{"d":"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},"child":[]}]})(props);
34868
- }
34869
-
34870
- const IconWrapper$1 = styled__default["default"].div`
34871
- display: flex;
34872
- align-items: center;
34873
- justify-content: center;
34874
- align-content: center;
34875
- padding: 2px;
34876
- cursor: ${props => props.disabled ? 'not-allowed' : props.pointer || 'default'};
34877
- `;
34878
-
34879
- // eslint-disable-next-line import/prefer-default-export
34880
- const getIcon = (icon, iconHeight, iconWidth, color, disabled, pointer, callBackOnClick) => {
34881
- const newIconHeight = iconHeight || '12px';
34882
- const newIconWidth = iconWidth || '12px';
34883
- const newColor = disabled ? '#D0D0D0' : color || '#212121';
34884
- switch (icon.toLowerCase()) {
34885
- case 'filter':
34886
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34887
- className: "FilterIcon",
34888
- pointer: pointer,
34889
- disabled: disabled,
34890
- onClick: callBackOnClick
34891
- }, /*#__PURE__*/React__default["default"].createElement(FilterIcon, {
34892
- height: newIconHeight,
34893
- width: newIconWidth,
34894
- color: newColor,
34895
- onClick: callBackOnClick
34896
- }));
34897
- case 'options':
34898
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34899
- className: "OptionsIcon",
34900
- pointer: pointer,
34901
- disabled: disabled,
34902
- onClick: callBackOnClick
34903
- }, /*#__PURE__*/React__default["default"].createElement(OptionsIcon, {
34904
- height: newIconHeight,
34905
- width: newIconWidth,
34906
- color: newColor,
34907
- onClick: callBackOnClick
34908
- }));
34909
- case 'download':
34910
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34911
- className: "DownloadIcon",
34912
- pointer: pointer,
34913
- disabled: disabled,
34914
- onClick: callBackOnClick
34915
- }, /*#__PURE__*/React__default["default"].createElement(DownloadIcon, {
34916
- height: newIconHeight,
34917
- width: newIconWidth,
34918
- color: newColor,
34919
- onClick: callBackOnClick
34920
- }));
34921
- case 'document':
34922
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34923
- className: "DocumentIcon",
34924
- pointer: pointer,
34925
- disabled: disabled,
34926
- onClick: callBackOnClick
34927
- }, /*#__PURE__*/React__default["default"].createElement(DocumentIcon, {
34928
- height: newIconHeight,
34929
- width: newIconWidth,
34930
- color: newColor,
34931
- onClick: callBackOnClick
34932
- }));
34933
- case 'fly':
34934
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34935
- className: "FlyIcon",
34936
- pointer: pointer,
34937
- disabled: disabled,
34938
- onClick: callBackOnClick
34939
- }, /*#__PURE__*/React__default["default"].createElement(FlyIcon, {
34940
- height: newIconHeight,
34941
- width: newIconWidth,
34942
- color: newColor,
34943
- onClick: callBackOnClick
34944
- }));
34945
- case 'bell':
34946
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34947
- className: "BellIcon",
34948
- pointer: pointer,
34949
- disabled: disabled,
34950
- onClick: callBackOnClick
34951
- }, /*#__PURE__*/React__default["default"].createElement(BellIcon, {
34952
- height: newIconHeight,
34953
- width: newIconWidth,
34954
- color: newColor,
34955
- onClick: callBackOnClick
34956
- }));
34957
- case 'maintenance':
34958
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34959
- className: "MaintenanceIcon",
34960
- pointer: pointer,
34961
- disabled: disabled,
34962
- onClick: callBackOnClick
34963
- }, /*#__PURE__*/React__default["default"].createElement(MaintenanceIcon, {
34964
- height: newIconHeight,
34965
- width: newIconWidth,
34966
- color: newColor,
34967
- onClick: callBackOnClick
34968
- }));
34969
- case 'exit':
34970
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34971
- className: "ExitIcon",
34972
- pointer: pointer,
34973
- disabled: disabled,
34974
- onClick: callBackOnClick
34975
- }, /*#__PURE__*/React__default["default"].createElement(ExitIcon, {
34976
- height: newIconHeight,
34977
- width: newIconWidth,
34978
- color: newColor,
34979
- onClick: callBackOnClick
34980
- }));
34981
- case 'eye':
34982
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34983
- className: "EyeIcon",
34984
- pointer: pointer,
34985
- disabled: disabled,
34986
- onClick: callBackOnClick
34987
- }, /*#__PURE__*/React__default["default"].createElement(EyeIcon, {
34988
- height: newIconHeight,
34989
- width: newIconWidth,
34990
- color: newColor,
34991
- onClick: callBackOnClick
34992
- }));
34993
- case 'search':
34994
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper$1, {
34995
- className: "SearchIcon",
34996
- pointer: pointer,
34997
- disabled: disabled,
34998
- onClick: callBackOnClick
34999
- }, /*#__PURE__*/React__default["default"].createElement(SearchIcon, {
35000
- height: newIconHeight,
35001
- width: newIconWidth,
35002
- color: newColor,
35003
- onClick: callBackOnClick
35004
- }));
35005
- default:
35006
- return '';
35007
- }
35008
- };
35009
-
35010
- /* eslint-disable no-nested-ternary */
35011
- const MainContainer = styled__default["default"].div`
35012
- position: relative;
35013
- display: flex;
35014
- flex-direction: column;
35015
- align-content: center;
35016
- justify-content: center;
35017
- align-items: flex-start;
35018
- width: ${props => props.width || '300px'};
35019
- font-family: "Poppins", sans-serif;
35020
- font-weight: 400;
35021
- font-size: 14px;
35022
- border-radius: ${props => props.size === 'small' ? '8px' : '12px'};
35023
- padding: 0;
35024
- cursor: ${props => props.disabled ? 'not-allowed' : 'default'};
35025
- `;
35026
- const Label = styled__default["default"].label`
35027
-
35028
- font-size: ${props => props.isFocused || props.hasValue ? '14px' : '14px'};
35029
- font-weight: 400;
35030
- padding-inline-end: 5px;
35031
- padding-inline-start: 5px;
35032
- margin-right: 10px;
35033
- z-index: 2;
35034
- color: ${props => props.error ? 'red' : props.disabled ? '#D0D0D0' : props.labelColor};
35035
- background-color: white;
35036
- position: absolute;
35037
- top: ${props => props.isFocused || props.hasValue ? '0px' : props.size === 'medium' ? '27px' : '17px'};
35038
- left: ${props => props.isFocused || props.hasValue ? '23px' : props.leftIcon && props.leftIcon !== 'none' ? '42px' : '16px'};
35039
- font-family: Poppins;
35040
- transform: translateY(-50%);
35041
- transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
35042
- display: flex;
35043
- align-items: center;
35044
- box-sizing: border-box;
35045
- max-height: 16px;
35046
- gap: 4px;
35047
- &:hover {
35048
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
35049
- }
35050
- `;
35051
- const InputContainer = styled__default["default"].div`
35052
-
35053
- display: flex;
35054
- flex-direction: row;
35055
- flex-wrap: nowrap;
35056
- justify-content: flex-start;
35057
- align-content: center;
35058
- white-space: pre-wrap;
35059
- align-items: center;
35060
- overflow: hidden;
35061
- padding: 0 16px;
35062
- gap: 14px;
35063
- width: 100%;
35064
- height: 100%;
35065
- box-sizing: border-box;
35066
- background-color: #fff;
35067
- border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : '#B1B1B1'};
35068
- font-family: "Poppins", sans-serif;
35069
- font-weight: 400;
35070
- font-size: 14px;
35071
- border-radius: ${props => props.size === 'small' ? '8px' : '12px'};
35072
- outline: none;
35073
- color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
35074
-
35075
- &:hover {
35076
- border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : props.labelColor || '#212121'};
35077
- }
35078
-
35079
- &:focus {
35080
- border: 1px solid ${props => props.disabled ? '#D0D0D0' : props.error ? 'red' : props.labelColor || '#212121'};
35081
- }
35082
-
35083
- `;
35084
- const InputSubContainer = styled__default["default"].div`
35085
-
35086
- display: flex;
35087
- flex-direction: column;
35088
- flex-wrap: nowrap;
35089
- align-content: center;
35090
- align-items: flex-start;
35091
- justify-content: center;
35092
- white-space: pre-wrap;
35093
- overflow: hidden;
35094
- padding: 5px 0;
35095
- width: 100%;
35096
- height: 100%;
35097
- min-height: ${props => props.size === 'medium' ? '52px' : '32px'};
35098
- box-sizing: border-box;
35099
- background-color: #fff;
35100
- border-radius: ${props => props.size === 'small' ? '8px' : '12px'};
35101
- outline: none;
35102
- color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
35103
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
35104
- `;
35105
- const StyledInput = styled__default["default"].input`
35106
- width: calc(100% - 10px);
35107
- height: 20px;
35108
- font-weight: 400;
35109
- font-size: 14px;
35110
- outline: none;
35111
- color: ${props => props.disabled ? '#D0D0D0' : '#212121'};
35112
- background-color: #fff;
35113
- border: none;
35114
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
35115
- `;
35116
- const ErrorMessage = styled__default["default"].div`
35117
- font-size: 12px;
35118
- color: red;
35119
- margin-top: 5px;
35120
- max-width: ${props => props.width || '300px'};
35121
- `;
35122
- const IconWrapper = styled__default["default"].div`
35123
- display: flex;
35124
- align-items: center;
35125
- justify-content: center;
35126
- align-content: center;
35127
- padding: 2px;
35128
- &:hover{
35129
- cursor: ${props => props.disabled ? 'not-allowed' : 'pointer'};
35130
- }
35131
- `;
35132
-
35133
- /* eslint-disable import/no-extraneous-dependencies */
35134
- const Input = _ref => {
35135
- let {
35136
- label,
35137
- labelEmptyValue,
35138
- size,
35139
- selectedValue,
35140
- placeHolder,
35141
- onChange,
35142
- onBlur,
35143
- required,
35144
- disabled,
35145
- width,
35146
- error,
35147
- errorMessage,
35148
- labelColor,
35149
- leftIcon,
35150
- rightIcon,
35151
- password,
35152
- leftIconOnClick,
35153
- rightIconOnClick
35154
- } = _ref;
35155
- const [isFocused, setIsFocused] = React$1.useState(false);
35156
- const [inputValue, setInputValue] = React$1.useState('');
35157
- const [showPassword, setShowPassword] = React$1.useState(false);
35158
- const inputRef = React$1.useRef(null);
35159
- const containerRef = React$1.useRef(null);
35160
- React$1.useEffect(() => {
35161
- setInputValue(selectedValue);
35162
- }, [selectedValue]);
35163
- const handleLabelClick = () => {
35164
- if (disabled) return;
35165
- setIsFocused(true);
35166
- if (inputRef?.current) {
35167
- inputRef?.current?.focus();
35168
- }
35169
- };
35170
- const handleInputChange = e => {
35171
- setIsFocused(true);
35172
- setInputValue(e.target.value);
35173
- if (inputRef?.current) {
35174
- inputRef?.current?.focus();
35175
- }
35176
- onChange({
35177
- newValue: e.target.value || ''
35178
- });
35179
- };
35180
- const handleFocus = () => {
35181
- setIsFocused(true);
35182
- if (inputRef?.current) {
35183
- inputRef?.current?.focus();
35184
- }
35185
- };
35186
- const handleBlur = () => {
35187
- onBlur();
35188
- setIsFocused(false);
35189
- };
35190
- const leftIconOnClickHandler = () => {
35191
- if (disabled) return;
35192
- leftIconOnClick({
35193
- leftIconOnClick: leftIcon
35194
- });
35195
- };
35196
- const rightIconOnClickHandler = () => {
35197
- if (disabled) return;
35198
- rightIconOnClick({
35199
- rightIconOnClick: rightIcon
35200
- });
35201
- };
35202
- const getLeftIcon = () => {
35203
- if (!leftIcon || leftIcon === 'none') return '';
35204
- return getIcon(leftIcon, '14px', '14px', error ? 'red' : labelColor, disabled, 'pointer', leftIconOnClickHandler);
35205
- };
35206
- const getRightIcon = () => {
35207
- if (!rightIcon || rightIcon === 'none') return '';
35208
- return getIcon(rightIcon, '14px', '14px', error ? 'red' : labelColor, disabled, 'pointer', rightIconOnClickHandler);
35209
- };
35210
- const toggleShowPassword = () => {
35211
- setShowPassword(!showPassword);
35212
- };
35213
- const getPasswordIcon = () => {
35214
- if (!password) return '';
35215
- if (showPassword) {
35216
- return /*#__PURE__*/React__default["default"].createElement(IconWrapper, {
35217
- className: "passwordEyeSlash",
35218
- disabled: disabled,
35219
- onClick: toggleShowPassword
35220
- }, /*#__PURE__*/React__default["default"].createElement(FaEyeSlash, {
35221
- onClick: toggleShowPassword,
35222
- color: error ? 'red' : labelColor
35223
- }));
35224
- }
35225
- return getIcon('eye', '14px', '14px', error ? 'red' : labelColor, disabled, 'pointer', toggleShowPassword);
35226
- };
35227
- return /*#__PURE__*/React__default["default"].createElement(MainContainer, {
35228
- className: "MainContainer",
35229
- width: width,
35230
- size: size,
35231
- disabled: disabled
35232
- }, /*#__PURE__*/React__default["default"].createElement(InputContainer, {
35233
- className: "InputContainer",
35234
- labelColor: labelColor,
35235
- disabled: disabled,
35236
- error: error,
35237
- isFocused: isFocused,
35238
- size: size
35239
- }, getLeftIcon(), /*#__PURE__*/React__default["default"].createElement(InputSubContainer, {
35240
- className: "InputSubContainer",
35241
- ref: containerRef,
35242
- labelColor: labelColor,
35243
- disabled: disabled,
35244
- error: error,
35245
- onClick: handleLabelClick,
35246
- size: size
35247
- }, /*#__PURE__*/React__default["default"].createElement(Label, {
35248
- className: "Label",
35249
- isFocused: isFocused,
35250
- labelColor: labelColor,
35251
- hasValue: inputValue,
35252
- leftIcon: leftIcon,
35253
- disabled: disabled,
35254
- error: error,
35255
- errorMessage: errorMessage,
35256
- onClick: handleLabelClick,
35257
- size: size
35258
- }, inputValue ? label : labelEmptyValue || label, required && /*#__PURE__*/React__default["default"].createElement("span", {
35259
- style: {
35260
- color: disabled ? '#D0D0D0' : 'red',
35261
- height: '16px'
35262
- }
35263
- }, "*")), /*#__PURE__*/React__default["default"].createElement(StyledInput, {
35264
- className: "StyledInput",
35265
- ref: inputRef,
35266
- type: password && !showPassword ? 'password' : 'text',
35267
- value: inputValue,
35268
- onChange: handleInputChange,
35269
- onClick: handleLabelClick,
35270
- onFocus: handleFocus,
35271
- onBlur: handleBlur,
35272
- disabled: disabled,
35273
- placeholder: isFocused ? placeHolder : '',
35274
- error: error,
35275
- isFocused: isFocused
35276
- })), password ? getPasswordIcon() : getRightIcon()), error && errorMessage?.length > 0 && /*#__PURE__*/React__default["default"].createElement(ErrorMessage, {
35277
- className: "ErrorMessage",
35278
- width: width
35279
- }, errorMessage));
35280
- };
35281
- Input.propTypes = {
35282
- placeHolder: PropTypes.string,
35283
- label: PropTypes.string,
35284
- labelEmptyValue: PropTypes.string,
35285
- size: PropTypes.string,
35286
- labelColor: PropTypes.string,
35287
- required: PropTypes.bool,
35288
- width: PropTypes.string,
35289
- disabled: PropTypes.bool,
35290
- error: PropTypes.bool,
35291
- errorMessage: PropTypes.string,
35292
- selectedValue: PropTypes.string,
35293
- onChange: PropTypes.func.isRequired,
35294
- leftIconOnClick: PropTypes.func,
35295
- rightIconOnClick: PropTypes.func,
35296
- onBlur: PropTypes.func,
35297
- leftIcon: PropTypes.string,
35298
- rightIcon: PropTypes.string,
35299
- password: PropTypes.bool
35300
- };
35301
- Input.defaultProps = {
35302
- placeHolder: 'Type...',
35303
- label: '',
35304
- labelEmptyValue: '',
35305
- size: 'medium',
35306
- labelColor: '#066768',
35307
- required: true,
35308
- width: '300px',
35309
- disabled: false,
35310
- error: false,
35311
- errorMessage: '',
35312
- selectedValue: '',
35313
- leftIcon: 'none',
35314
- rightIcon: 'none',
35315
- leftIconOnClick: () => {},
35316
- rightIconOnClick: () => {},
35317
- onBlur: () => {},
35318
- password: false
35319
- };
35320
-
35321
- const ToggleSwitchLabel = styled__default["default"].label`
35322
- display: inline-block;
35323
- position: relative;
35324
- cursor: pointer;
35325
- user-select: none;
35326
- opacity: ${({
35327
- disabled
35328
- }) => disabled ? 0.5 : 1};
35329
- `;
35330
- const ToggleInput = styled__default["default"].input`
35331
- display: none;
35332
- `;
35333
- const ToggleSlider = styled__default["default"].span`
35334
- display: block;
35335
- position: relative;
35336
- background: ${({
35337
- checked,
35338
- disabled
35339
- }) => checked ? disabled ? "#7bb1b0" : "#006d6a" : "#cfd8dc"};
35340
- border-radius: 999px;
35341
- transition: background 0.2s;
35342
- ${({
35343
- size
35344
- }) => {
35345
- switch (size) {
35346
- case "s":
35347
- return styled.css`width: 40px; height: 20px;`;
35348
- case "l":
35349
- return styled.css`width: 72px; height: 36px;`;
35350
- default:
35351
- return styled.css`width: 56px; height: 28px;`;
35352
- }
35353
- }}
35354
- &:before {
35355
- content: "";
35356
- position: absolute;
35357
- left: 3px;
35358
- top: 50%;
35359
- transform: translateY(-50%);
35360
- background: #fff;
35361
- border-radius: 50%;
35362
- transition: left 0.2s, width 0.2s, height 0.2s;
35363
- ${({
35364
- size
35365
- }) => {
35366
- switch (size) {
35367
- case "s":
35368
- return styled.css`width: 14px; height: 14px;`;
35369
- case "l":
35370
- return styled.css`width: 28px; height: 28px;`;
35371
- default:
35372
- return styled.css`width: 20px; height: 20px;`;
35373
- }
35374
- }}
35375
- left: ${({
35376
- checked,
35377
- size
35378
- }) => {
35379
- if (!checked) return "3px";
35380
- switch (size) {
35381
- case "s":
35382
- return "calc(100% - 17px)";
35383
- case "l":
35384
- return "calc(100% - 31px)";
35385
- default:
35386
- return "calc(100% - 23px)";
35387
- }
35388
- }};
35389
- }
35390
- `;
35391
-
35392
- /**
35393
- * ToggleSwitch component for on/off states.
35394
- * Supports small/large sizes and disabled state.
35395
- */
35396
- function ToggleSwitch(_ref) {
35397
- let {
35398
- checked,
35399
- onChange,
35400
- size = "m",
35401
- disabled = false,
35402
- ...props
35403
- } = _ref;
35404
- return /*#__PURE__*/React__default["default"].createElement(ToggleSwitchLabel, {
35405
- size: size,
35406
- disabled: disabled
35407
- }, /*#__PURE__*/React__default["default"].createElement(ToggleInput, _extends$1({
35408
- type: "checkbox",
35409
- checked: checked,
35410
- onChange: e => onChange?.(e.target.checked),
35411
- disabled: disabled
35412
- }, props)), /*#__PURE__*/React__default["default"].createElement(ToggleSlider, {
35413
- checked: checked,
35414
- size: size,
35415
- disabled: disabled
35416
- }));
35417
- }
35418
- ToggleSwitch.propTypes = {
35419
- checked: PropTypes.bool.isRequired,
35420
- onChange: PropTypes.func,
35421
- size: PropTypes.oneOf(["s", "m", "l"]),
35422
- disabled: PropTypes.bool
35423
- };
35424
-
35425
- const TableWrapper$1 = styled__default["default"].div`
35426
- width: ${props => props.width};
35427
- height: ${props => props.height};
35428
- padding: 20px;
35429
- background-color: #fff;
35430
- box-sizing: border-box;
35431
- position: relative;
35432
- `;
35433
- const Table$1 = styled__default["default"].table`
35434
- width: 100%;
35435
- margin-top: 24px;
35436
- border-spacing: unset;
35437
- `;
35438
- const Thead = styled__default["default"].thead``;
35439
- const HeaderCell = styled__default["default"].th`
35440
- font-weight: 600;
35441
- width: ${props => props.width};
35442
- padding-right: 8px;
35443
- padding-bottom: 12px;
35444
- `;
35445
- const Tbody = styled__default["default"].tbody``;
35446
- const BodyCell = styled__default["default"].td`
35447
- font-weight: 600;
35448
- width: ${props => props.width};
35449
- padding-right: 8px;
35450
- padding-bottom: 12px;
35451
- `;
35452
- const StyledRow = styled__default["default"].tr`
35453
- border-bottom: 1px solid #C8C8C8;
35454
- `;
35455
-
35456
- const ContainerTable = props => {
35457
- const {
35458
- width = '100%',
35459
- height = '300px',
35460
- columnsWidths = [430, 105, 210, 175, 148, 185, 104, 104, 140, 50, 50],
35461
- standardCellSkeletonHeight = 22,
35462
- isLoading = true,
35463
- children
35464
- } = props;
35465
- const TableWrapperRef = React$1.useRef(null);
35466
- const [numberOfRows, setNumberOfRows] = React$1.useState(3);
35467
- const calculateRows = () => {
35468
- if (TableWrapperRef.current) {
35469
- const wrapperHeight = TableWrapperRef.current.offsetHeight;
35470
-
35471
- // Calculate available space for rows
35472
- const titleHeight = 32; // First skeleton height
35473
- const subtitleHeight = 22; // Second skeleton height
35474
- const titleMargin = 24; // Margin top for subtitle
35475
- const headerRowHeight = standardCellSkeletonHeight + 22; // Approximate height of header row (22px skeleton + padding)
35476
- const bodyRowHeight = standardCellSkeletonHeight + 22; // Approximate height of body row (22px skeleton + padding)
35477
- const tablePadding = 20; // Approximate padding/margins for the table
35478
-
35479
- const usedHeight = titleHeight + subtitleHeight + titleMargin + headerRowHeight + tablePadding;
35480
- const availableHeight = wrapperHeight - usedHeight;
35481
-
35482
- // Calculate how many rows can fit
35483
- const maxRows = Math.floor(availableHeight / bodyRowHeight);
35484
-
35485
- // Set minimum of 3 rows, maximum based on available space
35486
- setNumberOfRows(Math.max(3, maxRows));
35487
- }
35488
- };
35489
- React$1.useEffect(() => {
35490
- calculateRows();
35491
- }, [height]);
35492
- return /*#__PURE__*/React__default["default"].createElement(TableWrapper$1, {
35493
- ref: TableWrapperRef,
35494
- width: width,
35495
- height: height
35496
- }, isLoading ? /*#__PURE__*/React__default["default"].createElement(Skeleton.SkeletonTheme, {
35497
- baseColor: "#EAEAEA",
35498
- highlightColor: "#F5F5F5"
35499
- }, /*#__PURE__*/React__default["default"].createElement(Skeleton__default["default"], {
35500
- width: 260,
35501
- height: 32
35502
- }), /*#__PURE__*/React__default["default"].createElement(Skeleton__default["default"], {
35503
- width: 260,
35504
- height: 22,
35505
- style: {
35506
- marginTop: 24
35507
- }
35508
- }), /*#__PURE__*/React__default["default"].createElement(Table$1, null, /*#__PURE__*/React__default["default"].createElement(Thead, null, /*#__PURE__*/React__default["default"].createElement(StyledRow, null, columnsWidths.map((width, index) => /*#__PURE__*/React__default["default"].createElement(HeaderCell, {
35509
- key: `header-cell-${index}`,
35510
- width: `${width}px`
35511
- }, /*#__PURE__*/React__default["default"].createElement(Skeleton__default["default"], {
35512
- width: '100%',
35513
- height: standardCellSkeletonHeight
35514
- }))))), /*#__PURE__*/React__default["default"].createElement(Tbody, null, Array.from({
35515
- length: numberOfRows
35516
- }).map((_, rowIndex) => /*#__PURE__*/React__default["default"].createElement(StyledRow, {
35517
- key: `row-${rowIndex}`
35518
- }, columnsWidths.map((width, colIndex) => /*#__PURE__*/React__default["default"].createElement(BodyCell, {
35519
- key: `cell-${rowIndex}-${colIndex}`,
35520
- width: `${width}px`
35521
- }, /*#__PURE__*/React__default["default"].createElement(Skeleton__default["default"], {
35522
- width: '100%',
35523
- height: standardCellSkeletonHeight
35524
- })))))))) : children);
35525
- };
35526
-
35527
- const MenuRouteContainer = styled__default["default"].div`
35528
- font-family: 'Poppins', sans-serif;
35529
- `;
35530
- const ButtonGroup = styled__default["default"].div`
35531
- display: flex;
35532
- justify-content: ${props => {
35533
- switch (props.pos) {
35534
- case 'left':
35535
- return 'flex-start';
35536
- case 'center':
35537
- return 'center';
35538
- case 'right':
35539
- return 'flex-end';
35540
- default:
35541
- return 'center';
35542
- }
35543
- }};
35544
- `;
35545
- const Button = styled__default["default"].button`
35546
- background-color: transparent;
35547
- border: none;
35548
- display: flex;
35549
- gap: 12px;
35550
- align-items: center;
35551
- color: #212121;
35552
- padding: 0 24px 10px;
35553
- font-size: 16px;
35554
- font-weight: 600;
35555
- &.active {
35556
- color: ${props => props.color || '#066768'};
35557
- border-bottom: 3px solid ${props => props.color || '#066768'};
35558
- }
35559
- &:disabled {
35560
- color: #717171;
35561
- cursor: not-allowed;
35562
- }
35563
- `;
35564
-
35565
- const Build = _ref => {
35566
- let {
35567
- width = '24',
35568
- height = '24',
35569
- fill = "#212121"
35570
- } = _ref;
35571
- return /*#__PURE__*/React__default["default"].createElement("svg", {
35572
- width: width,
35573
- height: height,
35574
- viewBox: "0 0 24 24",
35575
- fill: "none",
35576
- xmlns: "http://www.w3.org/2000/svg"
35577
- }, /*#__PURE__*/React__default["default"].createElement("path", {
35578
- d: "M20.7978 14.3728C20.9274 14.2408 21 14.0623 21 13.8758V12.0002C21 11.6122 20.6913 11.2972 20.31 11.2972H18.2399V5.21311L19.4183 4.01058C19.5753 3.85008 19.647 3.62208 19.6106 3.39807L19.1503 0.587512C19.0949 0.248505 18.8068 0 18.4696 0H16.6292C16.2916 0 16.004 0.248505 15.9486 0.587512L15.4882 3.39807C15.4514 3.62158 15.5231 3.84958 15.6806 4.01058L16.8589 5.21311V11.2972H14.7884C14.4071 11.2972 14.0984 11.6122 14.0984 12.0002V13.8753C14.0984 14.0618 14.171 14.2408 14.3006 14.3723L15.0185 15.1038V15.4588L14.3006 16.1903C14.171 16.3223 14.0984 16.5013 14.0984 16.6873V21.8905C14.0984 23.0535 15.0274 24 16.1689 24H18.929C20.0705 24 20.9995 23.0535 20.9995 21.8905V16.6878C20.9995 16.5013 20.9269 16.3228 20.7973 16.1908L20.0793 15.4593V15.1043L20.7978 14.3728ZM17.2137 1.40653H17.8851L18.1909 3.27257L17.5499 3.92658L16.9085 3.27257L17.2137 1.40653ZM19.6195 21.891C19.6195 22.2785 19.3098 22.594 18.9295 22.594H16.1694C15.7891 22.594 15.4794 22.2785 15.4794 21.891V21.1409H19.62L19.6195 21.891ZM19.6195 13.5843L18.9015 14.3158C18.7719 14.4478 18.6993 14.6263 18.6993 14.8128V15.7503C18.6993 15.9363 18.7719 16.1153 18.9015 16.2473L19.6195 16.9789V19.7344H15.4789V16.9789L16.1969 16.2473C16.3264 16.1153 16.3991 15.9363 16.3991 15.7503V14.8128C16.3991 14.6263 16.3264 14.4478 16.1969 14.3158L15.4789 13.5843V12.7038H19.6195V13.5843ZM7.50349 20.3582C6.99555 20.6978 7.15554 21.5158 7.75182 21.6323C8.21559 21.7413 8.67053 21.2783 8.56354 20.8053C8.48011 20.3247 7.89561 20.0777 7.50349 20.3582Z",
35579
- fill: fill
35580
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35581
- d: "M9.44437 0.959887C8.99507 0.803976 8.52368 1.13173 8.52368 1.59994V4.90256L7.83476 5.35485L7.1429 4.90208V1.60043C7.1429 1.13221 6.67101 0.804459 6.22221 0.96037C4.33566 1.61587 3.0413 3.37724 3.00104 5.34326C2.96323 7.1722 4.00716 8.85199 5.64426 9.67402L4.6347 20.5555C4.46333 22.4032 5.94576 24 7.83329 24C9.72082 24 11.2037 22.4032 11.0324 20.5555L10.0233 9.67789C10.7245 9.32793 11.327 8.81579 11.7861 8.17573C12.3621 7.37204 12.6665 6.42692 12.6665 5.44077C12.6665 3.42985 11.3717 1.62939 9.44437 0.959887ZM9.04761 8.61836C8.75643 8.72601 8.57475 9.0108 8.60274 9.31538L9.65649 20.6781C9.75421 21.7337 8.9111 22.6417 7.8328 22.6417C6.75498 22.6417 5.91139 21.7337 6.00959 20.6781L7.06384 9.31297C7.09183 9.00935 6.91113 8.72456 6.62093 8.61643C5.25193 8.10622 4.35187 6.80197 4.38182 5.36981C4.40343 4.31512 4.9303 3.34296 5.76162 2.72608V5.26507C5.76162 5.49193 5.87751 5.70432 6.06999 5.82982L7.45323 6.73488C7.68549 6.88645 7.98747 6.88645 8.21924 6.7344L9.59806 5.82934C9.79005 5.70336 9.90545 5.49193 9.90545 5.26507V2.72511C10.7579 3.35552 11.2862 4.35518 11.2862 5.44029C11.2857 6.84638 10.3862 8.1236 9.04761 8.61836Z",
35582
- fill: fill
35583
- }));
35584
- };
35585
-
35586
- const Track = _ref => {
35587
- let {
35588
- width = '24',
35589
- height = '24',
35590
- fill = "#212121"
35591
- } = _ref;
35592
- return /*#__PURE__*/React__default["default"].createElement("svg", {
35593
- width: width,
35594
- height: height,
35595
- viewBox: "0 0 24 24",
35596
- fill: "none",
35597
- xmlns: "http://www.w3.org/2000/svg"
35598
- }, /*#__PURE__*/React__default["default"].createElement("path", {
35599
- d: "M11.999 19.1706C8.2827 19.1706 5.02706 16.8561 2.95058 14.9152C1.80841 13.8472 1 13.0127 1 11.9967C1 10.9806 1.80741 10.1471 2.94758 9.08017C5.02507 7.13828 8.28271 4.82274 11.999 4.82274C15.7163 4.82274 18.9729 7.13828 21.0494 9.08017C22.1916 10.1482 23 10.9826 23 11.9977C23 13.0117 22.1906 13.8462 21.0474 14.9152C18.9709 16.8561 15.7153 19.1706 11.999 19.1706ZM11.999 6.41694C8.76935 6.41694 5.85246 8.50933 3.97483 10.2654C3.47119 10.7356 2.53487 11.6116 2.53487 11.9967C2.53487 12.3817 3.47319 13.2587 3.97783 13.7299C5.85446 15.485 8.76935 17.5764 11.999 17.5764C15.2286 17.5764 18.1435 15.485 20.0202 13.7299C20.5248 13.2587 21.4651 12.3807 21.4651 11.9977C21.4651 11.6137 20.5268 10.7367 20.0222 10.2655C18.1455 8.50934 15.2297 6.41694 11.999 6.41694Z",
35600
- fill: fill
35601
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35602
- d: "M12.0008 3.55814C11.5297 3.55814 11.1474 3.21439 11.1474 2.7907V1.76744C11.1474 1.34375 11.5297 1 12.0008 1C12.472 1 12.8542 1.34375 12.8542 1.76744V2.7907C12.8542 3.21439 12.472 3.55814 12.0008 3.55814ZM6.31135 5.11001C6.03577 5.11001 5.76463 4.99009 5.60017 4.76826L4.96899 3.91789C4.70786 3.56614 4.81342 3.08949 5.20569 2.85366C5.59906 2.61883 6.12801 2.71476 6.38914 3.06651L7.02032 3.91688C7.28145 4.26863 7.17589 4.74528 6.78362 4.98111C6.63805 5.06805 6.47359 5.11001 6.31135 5.11001ZM17.6869 5.11001C17.5247 5.11001 17.3591 5.06804 17.2136 4.98011C16.8224 4.74528 16.7168 4.26863 16.9791 3.91588L17.6114 3.0655C17.8725 2.71476 18.4015 2.61683 18.7948 2.85466C19.186 3.08949 19.2915 3.56614 19.0293 3.91889L18.397 4.76927C18.2326 4.9901 17.9625 5.11001 17.6869 5.11001ZM12.0008 23C11.5297 23 11.1474 22.6562 11.1474 22.2326V21.2093C11.1474 20.7856 11.5297 20.4419 12.0008 20.4419C12.472 20.4419 12.8542 20.7856 12.8542 21.2093V22.2326C12.8542 22.6562 12.472 23 12.0008 23ZM18.3215 21.2753C18.0459 21.2753 17.7758 21.1553 17.6114 20.9345L16.9791 20.0841C16.7169 19.7314 16.8224 19.2547 17.2136 19.0199C17.6058 18.7821 18.1359 18.88 18.397 19.2307L19.0293 20.0811C19.2916 20.4339 19.186 20.9105 18.7948 21.1453C18.6493 21.2333 18.4837 21.2753 18.3215 21.2753ZM5.67796 21.2753C5.51572 21.2753 5.35126 21.2333 5.20569 21.1463C4.81342 20.9105 4.70786 20.4339 4.96899 20.0821L5.60017 19.2317C5.86131 18.879 6.39026 18.7841 6.78362 19.0189C7.17589 19.2547 7.28145 19.7314 7.02032 20.0831L6.38914 20.9335C6.22468 21.1553 5.95354 21.2753 5.67796 21.2753Z",
35603
- fill: fill
35604
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35605
- d: "M12.1414 14.6391C11.9399 14.6391 11.7472 14.559 11.605 14.4168L10.1185 12.9303L8.63195 14.4168C8.33563 14.7131 7.8556 14.7131 7.55928 14.4168C7.26296 14.1205 7.26296 13.6405 7.55928 13.3441L9.58214 11.3213C9.87846 11.0249 10.3585 11.0249 10.6548 11.3213L12.1414 12.8078L14.4425 10.5441L14.6979 10.2929C14.4826 10.2005 14.3509 10.1836 14.0827 10.1549L13.7044 10.1134C13.2876 10.0679 12.9873 9.69359 13.0327 9.27776C13.0772 8.85995 13.4535 8.54289 13.8684 8.60611L14.1943 8.64167C16.6133 8.90045 16.8839 9.13652 17.4568 11.4498L17.5496 11.8261C17.6494 12.233 17.4005 12.6439 16.9945 12.7447C16.9333 12.7595 16.872 12.7664 16.8118 12.7664C16.471 12.7664 16.1609 12.5353 16.0759 12.1896L15.9959 11.8646C15.9265 11.5838 15.9328 11.5337 15.8065 11.3213L15.5764 11.5489L12.6777 14.4168C12.5355 14.559 12.3429 14.6391 12.1414 14.6391Z",
35606
- fill: fill
35607
- }));
35608
- };
35609
-
35610
- const Execute = _ref => {
35611
- let {
35612
- width = '24',
35613
- height = '24',
35614
- fill = "#212121"
35615
- } = _ref;
35616
- return /*#__PURE__*/React__default["default"].createElement("svg", {
35617
- width: width,
35618
- height: height,
35619
- viewBox: "0 0 24 24",
35620
- fill: "none",
35621
- xmlns: "http://www.w3.org/2000/svg"
35622
- }, /*#__PURE__*/React__default["default"].createElement("path", {
35623
- d: "M1.7579 23C1.61208 23 1.46954 22.9567 1.3483 22.8755C1.22706 22.7944 1.13257 22.6792 1.07677 22.5443C1.02097 22.4094 1.00637 22.261 1.03481 22.1179C1.06325 21.9747 1.13346 21.8432 1.23655 21.74L4.08812 18.8863C4.2272 18.7518 4.41347 18.6774 4.60682 18.6791C4.80016 18.6808 4.98512 18.7584 5.12184 18.8953C5.25856 19.0321 5.33611 19.2173 5.33779 19.4108C5.33947 19.6043 5.26515 19.7908 5.13082 19.93L2.27925 22.7837C2.21089 22.8524 2.12963 22.9069 2.04016 22.944C1.95068 22.9811 1.85476 23.0001 1.7579 23ZM5.14999 23C5.00417 23 4.86163 22.9567 4.74039 22.8755C4.61915 22.7944 4.52466 22.6792 4.46886 22.5443C4.41306 22.4094 4.39846 22.261 4.4269 22.1179C4.45534 21.9747 4.52555 21.8432 4.62864 21.74L6.05406 20.3131C6.12208 20.2426 6.20345 20.1864 6.29342 20.1477C6.38339 20.109 6.48015 20.0887 6.57806 20.0878C6.67598 20.0869 6.77308 20.1056 6.8637 20.1427C6.95433 20.1799 7.03666 20.2347 7.1059 20.304C7.17514 20.3733 7.22989 20.4557 7.26697 20.5464C7.30405 20.6371 7.3227 20.7343 7.32185 20.8323C7.321 20.9303 7.30066 21.0272 7.26201 21.1173C7.22337 21.2073 7.16719 21.2888 7.09676 21.3569L5.67134 22.7837C5.60298 22.8524 5.52172 22.9069 5.43225 22.944C5.34277 22.9811 5.24685 23.0001 5.14999 23ZM1.73652 19.5823C1.59085 19.5822 1.44849 19.5388 1.32741 19.4577C1.20633 19.3767 1.11195 19.2615 1.05618 19.1268C1.00041 18.9921 0.98575 18.8439 1.01404 18.7008C1.04234 18.5578 1.11232 18.4263 1.21517 18.3231L2.64058 16.8962C2.70861 16.8257 2.78998 16.7695 2.87994 16.7308C2.96991 16.6921 3.06667 16.6717 3.16459 16.6709C3.2625 16.67 3.3596 16.6887 3.45023 16.7258C3.54085 16.7629 3.62319 16.8178 3.69242 16.8871C3.76166 16.9564 3.81642 17.0388 3.85349 17.1295C3.89057 17.2202 3.90923 17.3174 3.90838 17.4154C3.90753 17.5134 3.88718 17.6103 3.84854 17.7004C3.80989 17.7904 3.75371 17.8719 3.68328 17.94L2.25787 19.3661C2.18948 19.4347 2.10822 19.4892 2.01875 19.5263C1.92928 19.5634 1.83337 19.5824 1.73652 19.5823Z",
35624
- fill: fill
35625
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35626
- "fill-rule": "evenodd",
35627
- "clip-rule": "evenodd",
35628
- d: "M10.4266 5.23524C14.8319 0.824773 21.9759 0.994548 22.2834 1.00267C22.471 1.00859 22.6492 1.08587 22.7819 1.21877C22.9145 1.35167 22.9915 1.53018 22.9972 1.71794C23.0061 2.02058 23.1749 9.1755 18.7682 13.5867C17.4105 15.0207 15.8334 16.2187 14.1025 17.1391L14.1272 19.3786C14.1297 19.6736 14.0737 19.9661 13.9623 20.2392C13.8509 20.5122 13.6864 20.7604 13.4783 20.9693L11.8317 22.6176C11.6934 22.7561 11.5051 22.8339 11.3096 22.8339C11.1451 22.834 10.9853 22.7789 10.8556 22.6775C10.726 22.5761 10.634 22.4342 10.5943 22.2744L9.85024 19.2946C9.75514 19.3524 9.65558 19.4029 9.55236 19.4458C9.28402 19.5571 8.99555 19.6142 8.70506 19.6135C8.41415 19.6143 8.12597 19.5574 7.85723 19.4459C7.58849 19.3344 7.34454 19.1705 7.13954 18.9639L5.05488 16.8772C4.64047 16.4616 4.40771 15.8984 4.40771 15.3112C4.40771 14.9029 4.52022 14.5063 4.72805 14.1628L1.7461 13.4166C1.61952 13.3849 1.50359 13.3202 1.41015 13.229C1.31671 13.1379 1.24911 13.0235 1.21425 12.8976C1.17938 12.7718 1.17851 12.6389 1.2117 12.5126C1.2449 12.3863 1.31098 12.2711 1.40321 12.1787L3.04985 10.5296C3.25704 10.3198 3.50452 10.1542 3.77737 10.0427C4.05023 9.93116 4.34281 9.8761 4.63749 9.8808L6.87751 9.90562C7.79715 8.17292 8.99396 6.59433 10.4266 5.23524ZM11.251 16.8169L7.19967 12.7622L7.20002 12.7612C8.11342 10.3043 9.57336 8.08756 11.4693 6.27899C12.7276 5.01966 14.2699 4.17681 15.7898 3.61295L20.3926 8.2204C19.8291 9.73967 18.9864 11.2819 17.7269 12.543C15.9202 14.441 13.7057 15.9025 11.251 16.8169ZM4.09328 11.5726C4.23607 11.4366 4.42492 11.3597 4.62201 11.3571L6.18016 11.3744C5.98649 11.8342 5.81139 12.3029 5.65553 12.7792C5.64749 12.8087 5.64132 12.8387 5.63702 12.8688L3.36693 12.3005L4.09328 11.5726ZM12.4356 19.9249L11.71 20.6519L11.1422 18.3806C11.1726 18.3763 11.2027 18.37 11.2326 18.3618C11.708 18.2059 12.1758 18.0308 12.6349 17.8372L12.6517 19.3949C12.6525 19.4931 12.6339 19.5906 12.5968 19.6816C12.5597 19.7725 12.5049 19.8552 12.4356 19.9249ZM6.09684 14.7882L6.61819 14.2663L9.74703 17.3983L9.22568 17.9202C9.08542 18.0545 8.8988 18.1295 8.7047 18.1295C8.51059 18.1295 8.32323 18.0545 8.18298 17.9202L6.09684 15.8327C5.95873 15.694 5.88118 15.5062 5.88118 15.3104C5.88118 15.1146 5.95873 14.9268 6.09684 14.7882ZM17.377 3.11417C19.1023 2.66213 20.6468 2.5293 21.5113 2.49152C21.4749 3.35736 21.3436 4.90377 20.8915 6.63167L17.377 3.11417Z",
35629
- fill: fill
35630
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35631
- "fill-rule": "evenodd",
35632
- "clip-rule": "evenodd",
35633
- d: "M12.5702 11.8494C13.0971 12.2829 13.7579 12.5201 14.4399 12.5206C14.8274 12.5213 15.2105 12.4454 15.5687 12.2972C15.9268 12.1489 16.2522 11.9314 16.526 11.657C17.0085 11.1744 17.3088 10.5393 17.376 9.85989C17.4431 9.18049 17.2728 8.49881 16.8941 7.93099C16.5155 7.36317 15.9519 6.94432 15.2993 6.74582C14.6468 6.54731 13.9456 6.58143 13.3154 6.84234C12.6851 7.10326 12.1647 7.57484 11.8429 8.17675C11.521 8.77865 11.4176 9.47365 11.5502 10.1433C11.6828 10.813 12.0433 11.4159 12.5702 11.8494ZM13.5057 8.42927C13.7692 8.21258 14.0996 8.09405 14.4406 8.09389C14.6343 8.09363 14.8261 8.13164 15.005 8.20574C15.1839 8.27985 15.3465 8.38858 15.4833 8.52571C15.7246 8.76701 15.8748 9.08457 15.9083 9.42428C15.9419 9.764 15.8567 10.1048 15.6673 10.3888C15.478 10.6727 15.1962 10.8821 14.8698 10.9813C14.5435 11.0805 14.193 11.0634 13.8778 10.9329C13.5627 10.8024 13.3025 10.5666 13.1417 10.2656C12.9808 9.96461 12.9291 9.61709 12.9955 9.28225C13.0619 8.9474 13.2422 8.64596 13.5057 8.42927Z",
35634
- fill: fill
35635
- }));
35636
- };
35637
-
35638
- const MenuRoute = props => {
35639
- const {
35640
- tabsPosition,
35641
- items,
35642
- color,
35643
- selecetIndex = 0,
35644
- onTabClick
35645
- } = props;
35646
- const [activeItem, setActiveItem] = React$1.useState(items[selecetIndex]?.key || items[0]?.key);
35647
- React$1.useEffect(() => {
35648
- if (selecetIndex >= 0 && selecetIndex < items.length) {
35649
- setActiveItem(items[selecetIndex]?.key);
35650
- }
35651
- }, [selecetIndex, items]);
35652
- const handleItemClick = (key, item) => {
35653
- if (item.disabled) return;
35654
- if (item.href) {
35655
- window.open(item.href, item.target || '_self');
35656
- return;
35657
- }
35658
- setActiveItem(key);
35659
- if (onTabClick) {
35660
- onTabClick(key);
35661
- }
35662
- };
35663
- return /*#__PURE__*/React__default["default"].createElement(MenuRouteContainer, null, /*#__PURE__*/React__default["default"].createElement(ButtonGroup, {
35664
- pos: tabsPosition
35665
- }, items.map(item => /*#__PURE__*/React__default["default"].createElement(Button, {
35666
- key: item.key,
35667
- onClick: () => handleItemClick(item.key, item),
35668
- disabled: item.disabled,
35669
- className: activeItem === item.key ? 'active' : '',
35670
- color: color
35671
- }, item.icon && /*#__PURE__*/React__default["default"].cloneElement(item.icon, {
35672
- fill: item.disabled ? '#717171' : activeItem === item.key ? color : item.icon.props.fill
35673
- }), /*#__PURE__*/React__default["default"].isValidElement(item.label) ? item.label : item.label))));
35674
- };
35675
-
35676
- const TableWrapper = styled__default["default"].div`
35677
- width: ${props => props.width};
35678
- height: ${props => props.height};
35679
- background-color: #fff;
35680
- box-sizing: border-box;
35681
- font-family: 'Poppins', sans-serif;
35682
- `;
35683
- styled__default["default"].table`
35684
- width: 100%;
35685
- margin-top: 24px;
35686
- border-spacing: unset;
35687
- `;
35688
- styled__default["default"].thead``;
35689
- styled__default["default"].th`
35690
- font-weight: 600;
35691
- width: ${props => props.width};
35692
- padding-right: 8px;
35693
- padding-bottom: 12px;
35694
- `;
35695
- styled__default["default"].tbody``;
35696
- styled__default["default"].td`
35697
- font-weight: 600;
35698
- width: ${props => props.width};
35699
- padding-right: 8px;
35700
- padding-bottom: 12px;
35701
- `;
35702
- styled__default["default"].tr`
35703
- border-bottom: 1px solid #C8C8C8;
35704
- `;
35705
- const NoInfoFound = styled__default["default"].div`
35706
- height: 100%;
35707
- box-sizing: border-box;
35708
- color: #212121;
35709
- position: relative;
35710
- `;
35711
- const TableTop = styled__default["default"].div`
35712
- display: flex;
35713
- align-items: center;
35714
- justify-content: space-between;
35715
- `;
35716
- const Title = styled__default["default"].h2`
35717
- font-size: 24px;
35718
- font-weight: 500;
35719
- margin: 0;
35720
- `;
35721
- const SubTitle = styled__default["default"].span`
35722
- font-size: 14px;
35723
- color: #8B8989;
35724
- `;
35725
- const NoEventsParent = styled__default["default"].div`
35726
- position: absolute;
35727
- top: 50%;
35728
- left: 50%;
35729
- transform: translate(-50%, -50%);
35730
- `;
35731
- const NoEventsWrapper = styled__default["default"].div`
35732
- display: flex;
35733
- align-items: center;
35734
- justify-content: center;
35735
- position: relative;
35736
- margin-bottom: 14px;
35737
- `;
35738
- const NoEventsMessage = styled__default["default"].span`
35739
- font-size: 18px;
35740
- font-weight: 400;
35741
- margin-bottom: 14px;
35742
- text-align: center;
35743
- display: block;
35744
- > strong {
35745
- font-size: 24px;
35746
- font-weight: 500;
35747
- }
35748
- `;
35749
-
35750
- const NoEvents = ({
35751
- width = '251',
35752
- height = '250'
35753
- }) => /*#__PURE__*/React__default["default"].createElement("svg", {
35754
- width: width,
35755
- height: height,
35756
- viewBox: "0 0 251 250",
35757
- fill: "none",
35758
- xmlns: "http://www.w3.org/2000/svg"
35759
- }, /*#__PURE__*/React__default["default"].createElement("rect", {
35760
- x: "0.5",
35761
- width: "250",
35762
- height: "250",
35763
- rx: "125",
35764
- fill: "#F3F7F7"
35765
- }), /*#__PURE__*/React__default["default"].createElement("rect", {
35766
- x: "79.0715",
35767
- y: "82.0254",
35768
- width: "91.9643",
35769
- height: "31.25",
35770
- fill: "#B4D1D2"
35771
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35772
- d: "M201.056 149.717V149.686C201.054 149.691 201.052 149.696 201.052 149.701C201.05 149.696 201.048 149.691 201.047 149.686V149.717C200.635 151.213 199.681 152.283 198.186 152.927C199.681 153.57 200.635 154.64 201.047 156.136V156.167C201.049 156.162 201.051 156.157 201.052 156.152C201.053 156.157 201.055 156.162 201.056 156.167V156.136C201.468 154.64 202.422 153.57 203.917 152.927C202.422 152.283 201.468 151.213 201.056 149.717ZM34.6198 71.7965V71.765C34.618 71.7702 34.6163 71.7755 34.6154 71.7808C34.6136 71.7755 34.6119 71.7702 34.611 71.765V71.7965C34.1985 73.2927 33.2449 74.3625 31.75 75.0059C33.2449 75.6494 34.1985 76.7192 34.611 78.2153V78.2468C34.6127 78.2416 34.6145 78.2363 34.6154 78.2311C34.6171 78.2363 34.6189 78.2416 34.6198 78.2468V78.2153C35.0322 76.7192 35.9859 75.6494 37.4808 75.0059C35.9859 74.3625 35.0322 73.2927 34.6198 71.7965ZM216.389 202.361V202.329C216.387 202.335 216.386 202.34 216.385 202.345C216.383 202.34 216.381 202.335 216.38 202.329V202.361C215.968 203.857 215.014 204.927 213.519 205.57C215.014 206.214 215.968 207.283 216.38 208.78V208.811C216.382 208.806 216.384 208.801 216.385 208.795C216.386 208.801 216.388 208.806 216.389 208.811V208.78C216.801 207.283 217.755 206.214 219.25 205.57C217.755 204.927 216.801 203.857 216.389 202.361ZM182.433 182.494V182.43C182.43 182.442 182.427 182.451 182.424 182.463C182.421 182.451 182.418 182.442 182.415 182.43V182.494C181.59 185.486 179.683 187.626 176.693 188.913C179.683 190.2 181.589 192.34 182.415 195.332V195.396C182.418 195.384 182.421 195.375 182.424 195.363C182.427 195.375 182.43 195.384 182.433 195.396V195.332C183.258 192.34 185.165 190.2 188.155 188.913C185.165 187.626 183.259 185.486 182.433 182.494ZM54.8385 110.651V110.587C54.8359 110.598 54.8324 110.608 54.8298 110.619C54.8271 110.608 54.8236 110.598 54.821 110.587V110.651C53.9961 113.642 52.0887 115.783 49.099 117.07C52.0887 118.357 53.9952 120.497 54.821 123.489V123.552C54.8236 123.541 54.8271 123.531 54.8298 123.52C54.8324 123.531 54.8359 123.541 54.8385 123.552V123.489C55.6635 120.497 57.5708 118.357 60.5605 117.07C57.5708 115.783 55.6643 113.642 54.8385 110.651ZM81.9624 38.3393V38.2754C81.9598 38.2868 81.9563 38.2964 81.9536 38.3078C81.951 38.2964 81.9475 38.2868 81.9449 38.2754V38.3393C81.1199 41.3307 79.2126 43.4712 76.2229 44.7581C79.2126 46.045 81.1191 48.1855 81.9449 51.177V51.2409C81.9475 51.2295 81.951 51.2198 81.9536 51.2085C81.9563 51.2198 81.9598 51.2295 81.9624 51.2409V51.177C82.7873 48.1855 84.6947 46.045 87.6844 44.7581C84.6947 43.4712 82.7882 41.3307 81.9624 38.3393Z",
35773
- fill: "#F2BB91"
35774
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35775
- d: "M49.3076 149.106C49.5096 148.924 49.8322 148.924 50.0342 149.106C50.2444 149.295 50.2443 149.609 50.0342 149.798L41.8711 157.145C41.6691 157.327 41.3465 157.327 41.1445 157.145C40.9344 156.956 40.9342 156.642 41.1445 156.453L49.3076 149.106ZM47.1309 154.494C47.8309 153.864 48.9601 153.864 49.6602 154.494C50.3686 155.131 50.3687 156.171 49.6602 156.809C48.9601 157.439 47.8309 157.439 47.1309 156.809C46.4223 156.171 46.4223 155.131 47.1309 154.494ZM48.9346 155.186C48.6384 154.919 48.1526 154.919 47.8564 155.186C47.5689 155.445 47.5688 155.858 47.8564 156.117C48.1526 156.383 48.6384 156.383 48.9346 156.117C49.2221 155.858 49.222 155.445 48.9346 155.186ZM41.5186 149.442C42.2186 148.812 43.3479 148.812 44.0479 149.442C44.7564 150.08 44.7564 151.121 44.0479 151.758C43.3478 152.388 42.2186 152.388 41.5186 151.758C40.81 151.121 40.81 150.08 41.5186 149.442ZM43.3223 150.134C43.0262 149.868 42.5403 149.868 42.2441 150.134C41.9564 150.393 41.9564 150.807 42.2441 151.066C42.5403 151.332 43.0261 151.332 43.3223 151.066C43.61 150.807 43.61 150.393 43.3223 150.134Z",
35776
- fill: "#9BC2C3",
35777
- stroke: "#9BC2C3",
35778
- "stroke-width": "0.276243"
35779
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35780
- d: "M136.808 199.106C137.01 198.924 137.332 198.924 137.534 199.106C137.744 199.295 137.744 199.609 137.534 199.798L129.371 207.145C129.169 207.327 128.846 207.327 128.645 207.145C128.434 206.956 128.434 206.642 128.645 206.453L136.808 199.106ZM134.631 204.494C135.331 203.864 136.46 203.864 137.16 204.494C137.869 205.131 137.869 206.171 137.16 206.809C136.46 207.439 135.331 207.439 134.631 206.809C133.922 206.171 133.922 205.131 134.631 204.494ZM136.435 205.186C136.138 204.919 135.653 204.919 135.356 205.186C135.069 205.445 135.069 205.858 135.356 206.117C135.653 206.383 136.138 206.383 136.435 206.117C136.722 205.858 136.722 205.445 136.435 205.186ZM129.019 199.442C129.719 198.812 130.848 198.812 131.548 199.442C132.256 200.08 132.256 201.121 131.548 201.758C130.848 202.388 129.719 202.388 129.019 201.758C128.31 201.121 128.31 200.08 129.019 199.442ZM130.822 200.134C130.526 199.868 130.04 199.868 129.744 200.134C129.456 200.393 129.456 200.807 129.744 201.066C130.04 201.332 130.526 201.332 130.822 201.066C131.11 200.807 131.11 200.393 130.822 200.134Z",
35781
- fill: "#9BC2C3",
35782
- stroke: "#9BC2C3",
35783
- "stroke-width": "0.276243"
35784
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35785
- d: "M147.872 44.6279C148.041 44.4584 148.317 44.4584 148.486 44.6279C148.655 44.7974 148.655 45.0717 148.486 45.2412L142.172 51.5557C142.002 51.725 141.728 51.725 141.558 51.5557C141.389 51.3861 141.389 51.1109 141.558 50.9414L147.872 44.6279ZM146.188 49.2578C146.743 48.703 147.642 48.703 148.197 49.2578C148.752 49.8126 148.752 50.7118 148.197 51.2666C147.642 51.8214 146.743 51.8214 146.188 51.2666C145.633 50.7118 145.633 49.8126 146.188 49.2578ZM147.584 49.8711C147.368 49.6553 147.017 49.6553 146.802 49.8711C146.586 50.0868 146.586 50.4376 146.802 50.6533C147.017 50.8691 147.368 50.8691 147.584 50.6533C147.8 50.4376 147.8 50.0868 147.584 49.8711ZM141.847 44.917C142.402 44.3622 143.301 44.3622 143.856 44.917C144.411 45.4718 144.411 46.371 143.856 46.9258C143.301 47.4805 142.402 47.4804 141.847 46.9258C141.293 46.371 141.293 45.4718 141.847 44.917ZM143.242 45.5303C143.026 45.3148 142.676 45.3146 142.461 45.5303C142.245 45.7459 142.245 46.0957 142.461 46.3115C142.676 46.5273 143.026 46.5273 143.242 46.3115C143.458 46.0958 143.458 45.746 143.242 45.5303Z",
35786
- fill: "#9BC2C3",
35787
- stroke: "#9BC2C3",
35788
- "stroke-width": "0.276243"
35789
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35790
- d: "M104.824 204.819V204.853C105.322 206.447 106.47 207.587 108.272 208.272C106.47 208.958 105.321 210.098 104.824 211.691V211.725C104.822 211.719 104.82 211.714 104.819 211.708C104.817 211.714 104.815 211.719 104.813 211.725V211.691C104.316 210.098 103.167 208.958 101.366 208.272C103.167 207.587 104.316 206.447 104.813 204.853V204.819C104.815 204.825 104.817 204.831 104.819 204.837C104.82 204.831 104.822 204.825 104.824 204.819Z",
35791
- fill: "#F2BB91"
35792
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35793
- d: "M170.333 116.525H81.4886V168.301C81.4886 172.916 85.0486 176.335 89.0397 176.335H162.782C166.773 176.335 170.333 172.916 170.333 168.301V116.525ZM143.996 91.7463V83.7126H107.825V91.7463C107.824 93.3501 106.49 94.65 104.842 94.65C103.194 94.65 101.859 93.3501 101.858 91.7463V83.7126H89.0397C85.0486 83.7126 81.4886 87.1311 81.4886 91.7463V110.714H170.333V91.7463C170.333 87.1311 166.773 83.7126 162.782 83.7126H149.963V91.7463C149.962 93.3501 148.628 94.65 146.98 94.65C145.332 94.65 143.997 93.3501 143.996 91.7463ZM176.3 168.301C176.3 175.766 170.427 182.142 162.782 182.142H89.0397C81.3947 182.142 75.5217 175.766 75.5217 168.301V91.7463C75.5217 84.2812 81.3947 77.9018 89.0397 77.9018H101.858V69.8715C101.858 68.2671 103.193 66.9678 104.842 66.9678C106.49 66.9678 107.825 68.2671 107.825 69.8715V77.9018H143.996V69.8715C143.996 68.2671 145.331 66.9678 146.98 66.9678C148.628 66.9678 149.963 68.2671 149.963 69.8715V77.9018H162.782C170.427 77.9018 176.3 84.2812 176.3 91.7463V168.301Z",
35794
- fill: "#519595"
35795
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35796
- "fill-rule": "evenodd",
35797
- "clip-rule": "evenodd",
35798
- d: "M114.622 129.954C116.552 129.954 118.356 130.941 119.55 132.411L120.021 133.068L120.039 133.093L120.049 133.117C121.121 135.065 121.132 137.505 120.039 139.391L120.032 139.405C118.863 141.349 116.806 142.537 114.622 142.537C112.644 142.537 110.817 141.634 109.607 140.101L109.129 139.405L109.118 139.391L109.122 139.388C108.03 137.502 108.039 135.064 109.111 133.117L109.122 133.093L109.139 133.068C110.298 131.237 112.341 129.954 114.622 129.954ZM114.622 139.841C116.534 139.841 118.221 138.278 118.221 136.245C118.221 134.315 116.552 132.65 114.622 132.65C112.59 132.65 111.023 134.334 111.023 136.245C111.023 138.26 112.608 139.841 114.622 139.841Z",
35799
- fill: "#519595"
35800
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35801
- d: "M138.966 130.358C139.839 129.795 141.08 129.89 141.831 130.639C142.581 131.389 142.675 132.628 142.112 133.5L141.831 133.848L112.137 163.503C111.28 164.359 109.782 164.359 108.925 163.503C108.067 162.646 108.067 161.151 108.925 160.294L138.618 130.639L138.966 130.358Z",
35802
- fill: "#519595"
35803
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35804
- "fill-rule": "evenodd",
35805
- "clip-rule": "evenodd",
35806
- d: "M141.145 153.978C139.951 152.508 138.147 151.521 136.217 151.521C133.936 151.521 131.893 152.804 130.734 154.635L130.717 154.66L130.706 154.684C129.635 156.631 129.622 159.073 130.713 160.958L130.724 160.972C131.896 162.923 133.957 164.104 136.217 164.104C138.402 164.104 140.458 162.916 141.627 160.972L141.634 160.958C142.727 159.072 142.717 156.632 141.644 154.684L141.634 154.66L141.616 154.635L141.145 153.978ZM136.217 161.408C138.129 161.408 139.817 159.845 139.817 157.813C139.817 155.882 138.147 154.217 136.217 154.217C134.185 154.217 132.618 155.901 132.618 157.813C132.618 159.827 134.203 161.408 136.217 161.408Z",
35807
- fill: "#519595"
35808
- }), /*#__PURE__*/React__default["default"].createElement("circle", {
35809
- cx: "171.036",
35810
- cy: "176.668",
35811
- r: "22.3214",
35812
- fill: "#F3F7F7",
35813
- stroke: "#519595",
35814
- "stroke-width": "5.35714"
35815
- }), /*#__PURE__*/React__default["default"].createElement("path", {
35816
- d: "M185.4 175.847C185.735 176.182 185.924 176.637 185.924 177.111C185.924 177.585 185.736 178.04 185.4 178.375C185.065 178.711 184.61 178.899 184.136 178.899L173.279 178.897L173.281 189.754C173.273 190.223 173.081 190.67 172.746 190.999C172.412 191.327 171.962 191.511 171.493 191.511C171.024 191.511 170.574 191.327 170.239 190.998C169.905 190.67 169.713 190.223 169.704 189.754L169.703 178.896L158.845 178.894C158.608 178.898 158.372 178.855 158.151 178.767C157.931 178.679 157.73 178.548 157.56 178.381C157.391 178.215 157.256 178.016 157.164 177.797C157.073 177.578 157.025 177.343 157.025 177.106C157.025 176.868 157.072 176.633 157.164 176.414C157.256 176.195 157.39 175.997 157.56 175.83C157.729 175.664 157.93 175.533 158.15 175.445C158.371 175.357 158.607 175.314 158.844 175.318L169.702 175.32L169.7 164.463C169.708 163.994 169.9 163.547 170.234 163.218C170.569 162.89 171.019 162.705 171.488 162.706C171.957 162.706 172.407 162.89 172.741 163.219C173.076 163.547 173.268 163.994 173.276 164.463L173.278 175.321L184.136 175.323C184.61 175.323 185.065 175.511 185.4 175.847Z",
35817
- fill: "#519595"
35818
- }));
35819
-
35820
- const Table = props => {
35821
- const {
35822
- width = '100%',
35823
- height = 'auto',
35824
- tableTitle = 'All Events',
35825
- data = [],
35826
- counter = 0,
35827
- onButtonClick = () => {},
35828
- buttonColor = '#066768',
35829
- buttonHoverColor = '#388586',
35830
- showSideButton = true,
35831
- onSideButtonClick = () => {},
35832
- sideButtonColor = '#066768',
35833
- sideButtonHoverColor = '#388586',
35834
- children = null
35835
- } = props;
35836
- return /*#__PURE__*/React__default["default"].createElement(TableWrapper, {
35837
- width: width,
35838
- height: height
35839
- }, data.length === 0 ? /*#__PURE__*/React__default["default"].createElement(NoInfoFound, null, /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title, null, tableTitle), /*#__PURE__*/React__default["default"].createElement(SubTitle, null, "No Events")), showSideButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
35840
- height: "45px",
35841
- leftIcon: "Plus",
35842
- text: "New Event",
35843
- borderRadius: "12px",
35844
- backgroundColor: sideButtonColor,
35845
- hoverBackgroundColor: sideButtonHoverColor,
35846
- onClick: onSideButtonClick
35847
- })), children, /*#__PURE__*/React__default["default"].createElement(NoEventsParent, null, /*#__PURE__*/React__default["default"].createElement(NoEventsWrapper, null, /*#__PURE__*/React__default["default"].createElement(NoEvents, null)), /*#__PURE__*/React__default["default"].createElement(NoEventsMessage, null, /*#__PURE__*/React__default["default"].createElement("strong", null, "You haven\u2019t created any events yet"), /*#__PURE__*/React__default["default"].createElement("br", null), "Let\u2019s get started and create your first one!"), /*#__PURE__*/React__default["default"].createElement(Button$1, {
35848
- height: "45px",
35849
- leftIcon: "Plus",
35850
- text: "New Event",
35851
- borderRadius: "12px",
35852
- backgroundColor: buttonColor,
35853
- hoverBackgroundColor: buttonHoverColor,
35854
- onClick: onButtonClick
35855
- }))) : /*#__PURE__*/React__default["default"].createElement(TableTop, null, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Title, null, tableTitle), /*#__PURE__*/React__default["default"].createElement(SubTitle, null, counter === 0 ? 'No' : counter, " Events")), showSideButton && /*#__PURE__*/React__default["default"].createElement(Button$1, {
35856
- height: "45px",
35857
- leftIcon: "Plus",
35858
- text: "New Event",
35859
- borderRadius: "12px",
35860
- backgroundColor: sideButtonColor,
35861
- hoverBackgroundColor: sideButtonHoverColor,
35862
- onClick: onSideButtonClick
35863
- })));
35864
- };
35865
-
35866
34455
  exports.AreaChart = AreaChart;
35867
34456
  exports.BannerEventBoxList = BannerEventBoxList;
35868
34457
  exports.BarChart = BarChart;
@@ -35873,44 +34462,32 @@ exports.BatteryChart = BatteryChart;
35873
34462
  exports.BreakdownPanel = BreakdownPanel;
35874
34463
  exports.BrushChart = BrushChart;
35875
34464
  exports.BubbleChart = BubbleChart;
35876
- exports.Build = Build;
35877
- exports.Button = Button$1;
34465
+ exports.Button = Button;
35878
34466
  exports.CollapseData = CollapseData;
35879
34467
  exports.CollapseHeader = CollapseHeader;
35880
- exports.ContainerTable = ContainerTable;
35881
34468
  exports.DialogOverlay = DialogOverlay;
35882
34469
  exports.DoubleBarSingleLine = DoubleBarSingleLine;
35883
34470
  exports.DoublePanelDataRow = DoublePanelDataRow;
35884
34471
  exports.DownloadProgress = DownloadProgress;
35885
- exports.DropdownNew = DropdownNew;
35886
34472
  exports.EventDetailsCard = EventDetailsCard;
35887
34473
  exports.EventList = EventList;
35888
- exports.Execute = Execute;
35889
34474
  exports.FilterPanel = FilterPanel;
35890
34475
  exports.Heatmap = Heatmap;
35891
34476
  exports.IconButton = IconButton;
35892
- exports.Input = Input;
35893
34477
  exports.InsightsCarousel = InsightsCarousel;
35894
34478
  exports.LinkButton = LinkButton;
35895
34479
  exports.LinnerDataBox = LinnerDataBox;
35896
34480
  exports.MarketShareDescription = MarketShareDescription;
35897
- exports.MenuRoute = MenuRoute;
35898
- exports.ModalWithOverlay = ModalWithOverlay;
35899
34481
  exports.OneColumnContainer = OneColumnContainer;
35900
34482
  exports.PerformanceAnalyticsLegend = PerformanceAnalyticsLegend;
35901
34483
  exports.PieChart = PieChart;
35902
34484
  exports.PopupCharts = PopupCharts;
35903
34485
  exports.QuickFilter = QuickFilter;
35904
34486
  exports.ReportTable = ReportTable;
35905
- exports.SearchInput = SearchInput;
35906
34487
  exports.SingleBarLineCharts = SingleBarLineCharts;
35907
34488
  exports.TabMenu = TabMenu;
35908
- exports.Table = Table;
35909
- exports.ToggleSwitch = ToggleSwitch;
35910
34489
  exports.TopToggleList = TopToggleList;
35911
34490
  exports.TotalDoughnutChart = TotalDoughnutChart;
35912
34491
  exports.TotalHorizontalCharts = TotalHorizontalCharts;
35913
- exports.Track = Track;
35914
34492
  exports.TwoBarCharts = TwoBarCharts;
35915
- exports.WeeksPicker = WeeksPicker;
35916
34493
  //# sourceMappingURL=index.js.map