@opengeoweb/shared 16.0.0 → 17.0.0

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 (190) hide show
  1. package/index.esm.js +937 -406
  2. package/package.json +3 -3
  3. package/src/index.d.ts +0 -7
  4. package/src/lib/components/AlertBanner/AlertBanner.d.ts +0 -16
  5. package/src/lib/components/AlertBanner/AlertBanner.spec.d.ts +0 -1
  6. package/src/lib/components/AlertBanner/AlertBanner.stories.d.ts +0 -8
  7. package/src/lib/components/AlertBanner/index.d.ts +0 -1
  8. package/src/lib/components/AlertIcon/AlertIcon.d.ts +0 -8
  9. package/src/lib/components/AlertIcon/index.d.ts +0 -1
  10. package/src/lib/components/AppHeader/AppHeader.d.ts +0 -10
  11. package/src/lib/components/AppHeader/AppHeader.spec.d.ts +0 -1
  12. package/src/lib/components/AppHeader/AppHeader.stories.d.ts +0 -8
  13. package/src/lib/components/AppHeader/index.d.ts +0 -1
  14. package/src/lib/components/AppLayout/AppLayout.d.ts +0 -7
  15. package/src/lib/components/AppLayout/AppLayout.spec.d.ts +0 -1
  16. package/src/lib/components/AppLayout/AppLayout.stories.d.ts +0 -8
  17. package/src/lib/components/AppLayout/index.d.ts +0 -1
  18. package/src/lib/components/Avatar/Avatar.d.ts +0 -8
  19. package/src/lib/components/Avatar/Avatar.stories.d.ts +0 -8
  20. package/src/lib/components/Avatar/index.d.ts +0 -1
  21. package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +0 -71
  22. package/src/lib/components/CanvasComponent/CanvasComponent.spec.d.ts +0 -1
  23. package/src/lib/components/CanvasComponent/CanvasComponent.stories.d.ts +0 -8
  24. package/src/lib/components/CanvasComponent/index.d.ts +0 -1
  25. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.d.ts +0 -12
  26. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.spec.d.ts +0 -1
  27. package/src/lib/components/ConfirmationDialog/ConfirmationButtons.stories.d.ts +0 -9
  28. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -22
  29. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.spec.d.ts +0 -1
  30. package/src/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -21
  31. package/src/lib/components/ConfirmationDialog/ConfirmationService.d.ts +0 -18
  32. package/src/lib/components/ConfirmationDialog/ConfirmationService.spec.d.ts +0 -1
  33. package/src/lib/components/ConfirmationDialog/index.d.ts +0 -3
  34. package/src/lib/components/CustomAccordion/CustomAccordion.d.ts +0 -13
  35. package/src/lib/components/CustomAccordion/CustomAccordion.spec.d.ts +0 -1
  36. package/src/lib/components/CustomAccordion/CustomAccordion.stories.d.ts +0 -8
  37. package/src/lib/components/CustomAccordion/index.d.ts +0 -1
  38. package/src/lib/components/CustomDialog/CustomDialog.d.ts +0 -18
  39. package/src/lib/components/CustomDialog/CustomDialog.spec.d.ts +0 -1
  40. package/src/lib/components/CustomDialog/CustomDialog.stories.d.ts +0 -22
  41. package/src/lib/components/CustomDialog/CustomDialogHeader.d.ts +0 -13
  42. package/src/lib/components/CustomDialog/CustomDialogHeader.spec.d.ts +0 -1
  43. package/src/lib/components/CustomDialog/CustomDialogHeader.stories.d.ts +0 -11
  44. package/src/lib/components/CustomDialog/index.d.ts +0 -2
  45. package/src/lib/components/CustomDialog/types.d.ts +0 -1
  46. package/src/lib/components/CustomIconButton/CustomIconButton.d.ts +0 -15
  47. package/src/lib/components/CustomIconButton/CustomIconButton.spec.d.ts +0 -1
  48. package/src/lib/components/CustomIconButton/CustomIconButton.stories.d.ts +0 -8
  49. package/src/lib/components/CustomIconButton/index.d.ts +0 -1
  50. package/src/lib/components/CustomSlider/CustomSlider.d.ts +0 -14
  51. package/src/lib/components/CustomSlider/CustomSlider.spec.d.ts +0 -1
  52. package/src/lib/components/CustomSlider/CustomSlider.stories.d.ts +0 -8
  53. package/src/lib/components/CustomSlider/index.d.ts +0 -1
  54. package/src/lib/components/CustomToggleButton/CustomToggleButton.d.ts +0 -8
  55. package/src/lib/components/CustomToggleButton/CustomToggleButton.spec.d.ts +0 -1
  56. package/src/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +0 -8
  57. package/src/lib/components/CustomToggleButton/index.d.ts +0 -1
  58. package/src/lib/components/CustomTooltip/CustomTooltip.d.ts +0 -5
  59. package/src/lib/components/CustomTooltip/CustomTooltip.spec.d.ts +0 -1
  60. package/src/lib/components/CustomTooltip/index.d.ts +0 -1
  61. package/src/lib/components/DraggableResizable/Draggable.d.ts +0 -16
  62. package/src/lib/components/DraggableResizable/Draggable.spec.d.ts +0 -1
  63. package/src/lib/components/DraggableResizable/Resizable.d.ts +0 -10
  64. package/src/lib/components/DraggableResizable/Resizable.spec.d.ts +0 -1
  65. package/src/lib/components/DraggableResizable/index.d.ts +0 -3
  66. package/src/lib/components/DraggableResizable/types.d.ts +0 -27
  67. package/src/lib/components/ErrorBoundary/ErrorBoundary.d.ts +0 -31
  68. package/src/lib/components/ErrorBoundary/ErrorBoundary.spec.d.ts +0 -1
  69. package/src/lib/components/ErrorBoundary/ErrorBoundary.stories.d.ts +0 -8
  70. package/src/lib/components/ErrorBoundary/index.d.ts +0 -1
  71. package/src/lib/components/Filter/Filter.d.ts +0 -18
  72. package/src/lib/components/Filter/Filter.spec.d.ts +0 -1
  73. package/src/lib/components/Filter/Filter.stories.d.ts +0 -8
  74. package/src/lib/components/Filter/FilterChip.d.ts +0 -14
  75. package/src/lib/components/Filter/FilterChip.spec.d.ts +0 -1
  76. package/src/lib/components/Filter/FilterList.d.ts +0 -19
  77. package/src/lib/components/Filter/FilterList.spec.d.ts +0 -1
  78. package/src/lib/components/Filter/FilterOption.d.ts +0 -12
  79. package/src/lib/components/Filter/FilterToggleButton.d.ts +0 -6
  80. package/src/lib/components/Filter/SearchField.d.ts +0 -8
  81. package/src/lib/components/Filter/SearchField.spec.d.ts +0 -1
  82. package/src/lib/components/Filter/index.d.ts +0 -7
  83. package/src/lib/components/LastUpdateTime/LastUpdateTime.d.ts +0 -14
  84. package/src/lib/components/LastUpdateTime/LastUpdateTime.spec.d.ts +0 -1
  85. package/src/lib/components/LastUpdateTime/LastUpdateTime.stories.d.ts +0 -8
  86. package/src/lib/components/LastUpdateTime/index.d.ts +0 -1
  87. package/src/lib/components/Providers/Providers.d.ts +0 -18
  88. package/src/lib/components/Providers/index.d.ts +0 -1
  89. package/src/lib/components/SearchField/SearchField.d.ts +0 -10
  90. package/src/lib/components/SearchField/SearchField.spec.d.ts +0 -1
  91. package/src/lib/components/SearchField/SearchFieldButtonContainer.d.ts +0 -9
  92. package/src/lib/components/SearchField/SearchFieldButtonContainer.spec.d.ts +0 -1
  93. package/src/lib/components/SearchField/index.d.ts +0 -2
  94. package/src/lib/components/SearchHighlight/SearchHighlight.d.ts +0 -7
  95. package/src/lib/components/SearchHighlight/SearchHighlight.spec.d.ts +0 -1
  96. package/src/lib/components/SearchHighlight/SearchHighlight.stories.d.ts +0 -8
  97. package/src/lib/components/SearchHighlight/index.d.ts +0 -1
  98. package/src/lib/components/StatusTag/StatusTag.d.ts +0 -17
  99. package/src/lib/components/StatusTag/StatusTag.spec.d.ts +0 -1
  100. package/src/lib/components/StatusTag/StatusTag.stories.d.ts +0 -8
  101. package/src/lib/components/StatusTag/index.d.ts +0 -1
  102. package/src/lib/components/Storybook/StorybookDocsWrapper.d.ts +0 -6
  103. package/src/lib/components/Storybook/index.d.ts +0 -1
  104. package/src/lib/components/SwitchButton/SwitchButton.d.ts +0 -8
  105. package/src/lib/components/SwitchButton/SwitchButton.spec.d.ts +0 -1
  106. package/src/lib/components/SwitchButton/index.d.ts +0 -1
  107. package/src/lib/components/ToggleMenu/ToggleMenu.d.ts +0 -30
  108. package/src/lib/components/ToggleMenu/ToggleMenu.spec.d.ts +0 -1
  109. package/src/lib/components/ToggleMenu/ToggleMenu.stories.d.ts +0 -8
  110. package/src/lib/components/ToggleMenu/index.d.ts +0 -1
  111. package/src/lib/components/ToolContainer/ToolContainer.d.ts +0 -5
  112. package/src/lib/components/ToolContainer/ToolContainer.spec.d.ts +0 -1
  113. package/src/lib/components/ToolContainer/ToolContainer.stories.d.ts +0 -16
  114. package/src/lib/components/ToolContainer/ToolContainerDraggable.d.ts +0 -39
  115. package/src/lib/components/ToolContainer/ToolContainerDraggable.spec.d.ts +0 -1
  116. package/src/lib/components/ToolContainer/ToolContainerDraggable.stories.d.ts +0 -13
  117. package/src/lib/components/ToolContainer/ToolContainerSnapShots.stories.d.ts +0 -13
  118. package/src/lib/components/ToolContainer/ToolFooter.d.ts +0 -3
  119. package/src/lib/components/ToolContainer/ToolFooter.spec.d.ts +0 -1
  120. package/src/lib/components/ToolContainer/ToolHeader.d.ts +0 -4
  121. package/src/lib/components/ToolContainer/ToolHeader.spec.d.ts +0 -1
  122. package/src/lib/components/ToolContainer/ToolHeader.stories.d.ts +0 -8
  123. package/src/lib/components/ToolContainer/index.d.ts +0 -7
  124. package/src/lib/components/ToolContainer/types.d.ts +0 -19
  125. package/src/lib/components/ToolContainer/useHandleSizeFromOutsideComponent.d.ts +0 -15
  126. package/src/lib/components/ToolContainer/useHandleSizeFromOutsideComponent.spec.d.ts +0 -1
  127. package/src/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -23
  128. package/src/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +0 -1
  129. package/src/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +0 -10
  130. package/src/lib/components/TooltipSelect/index.d.ts +0 -1
  131. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.d.ts +0 -3
  132. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.spec.d.ts +0 -1
  133. package/src/lib/components/UserMenu/CheatSheet/CheatSheet.stories.d.ts +0 -10
  134. package/src/lib/components/UserMenu/CheatSheet/ShortcutList.d.ts +0 -6
  135. package/src/lib/components/UserMenu/CheatSheet/ShortcutList.spec.d.ts +0 -1
  136. package/src/lib/components/UserMenu/CheatSheet/ShortcutSegment.d.ts +0 -7
  137. package/src/lib/components/UserMenu/CheatSheet/ShortcutSegment.spec.d.ts +0 -1
  138. package/src/lib/components/UserMenu/UserMenu.d.ts +0 -11
  139. package/src/lib/components/UserMenu/UserMenu.spec.d.ts +0 -1
  140. package/src/lib/components/UserMenu/UserMenu.stories.d.ts +0 -10
  141. package/src/lib/components/UserMenu/UserMenuItemCheatSheet.d.ts +0 -3
  142. package/src/lib/components/UserMenu/UserMenuItemCheatSheet.spec.d.ts +0 -1
  143. package/src/lib/components/UserMenu/UserMenuItemTheme.d.ts +0 -6
  144. package/src/lib/components/UserMenu/UserMenuItemTheme.spec.d.ts +0 -1
  145. package/src/lib/components/UserMenu/index.d.ts +0 -5
  146. package/src/lib/components/UserMenu/useUserMenu.d.ts +0 -7
  147. package/src/lib/components/UserMenu/useUserMenu.spec.d.ts +0 -1
  148. package/src/lib/components/UserMenu/utils.d.ts +0 -1
  149. package/src/lib/components/index.d.ts +0 -26
  150. package/src/lib/hooks/index.d.ts +0 -9
  151. package/src/lib/hooks/useDebounce/useDebounce.d.ts +0 -1
  152. package/src/lib/hooks/useDebounce/useDebounce.spec.d.ts +0 -1
  153. package/src/lib/hooks/useIsMounted/useIsMounted.d.ts +0 -4
  154. package/src/lib/hooks/useIsMounted/useIsMounted.spec.d.ts +0 -1
  155. package/src/lib/hooks/useMakeSureContainerStaysInsideWindow/useMakeSureContainerStaysInsideWindow.d.ts +0 -4
  156. package/src/lib/hooks/useMakeSureContainerStaysInsideWindow/useMakeSureContainerStaysInsideWindow.spec.d.ts +0 -1
  157. package/src/lib/hooks/usePoller/usePoller.d.ts +0 -3
  158. package/src/lib/hooks/usePoller/usePoller.spec.d.ts +0 -1
  159. package/src/lib/hooks/usePoller/usePoller.stories.d.ts +0 -6
  160. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.d.ts +0 -2
  161. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.spec.d.ts +0 -1
  162. package/src/lib/hooks/usePreventBrowserClose/usePreventBrowserClose.stories.d.ts +0 -6
  163. package/src/lib/hooks/usePrevious/usePrevious.d.ts +0 -1
  164. package/src/lib/hooks/usePrevious/usePrevious.spec.d.ts +0 -1
  165. package/src/lib/hooks/usePrevious/usePrevious.stories.d.ts +0 -6
  166. package/src/lib/hooks/useResizeObserver/useResizeObserver.d.ts +0 -2
  167. package/src/lib/hooks/useResizeObserver/useResizeObserver.spec.d.ts +0 -1
  168. package/src/lib/hooks/useScrollingInIsolation/useScrollingInIsolation.d.ts +0 -11
  169. package/src/lib/hooks/useScrollingInIsolation/useScrollingInIsolation.spec.d.ts +0 -1
  170. package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.d.ts +0 -2
  171. package/src/lib/hooks/useWheelStopPropagation/useWheelStopPropagation.spec.d.ts +0 -1
  172. package/src/lib/types/crss-types.d.ts +0 -26
  173. package/src/lib/types/edr-coverage-types.d.ts +0 -98
  174. package/src/lib/types/index.d.ts +0 -2
  175. package/src/lib/types/types.d.ts +0 -190
  176. package/src/lib/utils/axiosErrorUtils/axiosErrorUtils.d.ts +0 -9
  177. package/src/lib/utils/axiosErrorUtils/axiosErrorUtils.spec.d.ts +0 -1
  178. package/src/lib/utils/axiosErrorUtils/index.d.ts +0 -1
  179. package/src/lib/utils/dateUtils/dateFormats.d.ts +0 -8
  180. package/src/lib/utils/dateUtils/dateUtils.d.ts +0 -372
  181. package/src/lib/utils/dateUtils/dateUtils.spec.d.ts +0 -1
  182. package/src/lib/utils/dateUtils/index.d.ts +0 -2
  183. package/src/lib/utils/i18n.d.ts +0 -14
  184. package/src/lib/utils/i18n.spec.d.ts +0 -1
  185. package/src/lib/utils/index.d.ts +0 -6
  186. package/src/lib/utils/mapProjections.d.ts +0 -79
  187. package/src/lib/utils/renderCounter.d.ts +0 -21
  188. package/src/lib/utils/renderCounter.spec.d.ts +0 -1
  189. package/src/lib/utils/sessionStorage.d.ts +0 -28
  190. package/src/lib/utils/sessionStorage.spec.d.ts +0 -1
package/index.esm.js CHANGED
@@ -1,13 +1,13 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
1
  import { Box, Typography, useTheme, Tooltip, IconButton, Menu, ListSubheader, MenuItem, Grid, ListItemText, ListItemIcon, DialogTitle, Button, Dialog, DialogContent, DialogActions, Paper, CircularProgress, Alert, AlertTitle, Drawer, Link, Avatar as Avatar$1, ClickAwayListener, MenuList, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, styled, Select, Accordion, AccordionSummary, AccordionDetails, FormLabel, Switch, TextField, InputAdornment, Chip, Stack, debounce as debounce$1, ListItemButton, Checkbox } from '@mui/material';
2
+ import React, { useRef, useEffect, useState, Component } from 'react';
3
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
4
  import 'i18next';
4
5
  import { initReactI18next, useTranslation } from 'react-i18next';
5
- import React, { useRef, useEffect, useState, Component } from 'react';
6
6
  import Draggable from 'react-draggable';
7
7
  import { Resizable } from 're-resizable';
8
8
  import { Resize, BORDER_RADIUS, Options, Close, ChevronLeft, Exclamation, Success, Info, ChevronRight, GeoWebLogo, HamburgerMenu, Admin, useThemeContext, ThemeTypes, ArrowLeft, ArrowRight, KeyOption, KeyCommand, ArrowUp, ArrowDown, ChevronDown, Search, Clear, Cached, Filter as Filter$1 } from '@opengeoweb/theme';
9
9
  import { throttle, isEqual, merge, escapeRegExp, debounce } from 'lodash';
10
- import { parseISO, parse, format, isEqual as isEqual$1, add as add$1, sub as sub$1, differenceInYears as differenceInYears$1, differenceInMonths as differenceInMonths$1, differenceInDays as differenceInDays$1, differenceInMinutes as differenceInMinutes$1, differenceInHours as differenceInHours$1, differenceInSeconds as differenceInSeconds$1, roundToNearestMinutes as roundToNearestMinutes$1, isBefore as isBefore$1, isAfter as isAfter$1, isValid as isValid$1, getUnixTime, fromUnixTime, set as set$1, getHours as getHours$1, startOfDay, addMinutes, addHours, setSeconds as setSeconds$1, getDay, getDayOfYear, getMonth, getWeek, getYear, isWithinInterval } from 'date-fns';
10
+ import { add as add$1, startOfDay, addMinutes, addHours, format, differenceInDays as differenceInDays$1, differenceInHours as differenceInHours$1, differenceInMinutes as differenceInMinutes$1, differenceInMonths as differenceInMonths$1, differenceInSeconds as differenceInSeconds$1, differenceInYears as differenceInYears$1, fromUnixTime, getHours as getHours$1, isAfter as isAfter$1, isBefore as isBefore$1, isEqual as isEqual$1, isValid as isValid$1, parseISO, roundToNearestMinutes as roundToNearestMinutes$1, set as set$1, setSeconds as setSeconds$1, parse, sub as sub$1, getUnixTime, getDay, getDayOfYear, getMonth, getWeek, getYear, isWithinInterval } from 'date-fns';
11
11
  import { fi as fi$1, nl as nl$1, nb, enGB } from 'date-fns/locale';
12
12
 
13
13
  var en = {
@@ -641,7 +641,7 @@ var StatusTag = function StatusTag(_ref) {
641
641
  icon = _ref.icon,
642
642
  sx = _ref.sx;
643
643
  _objectWithoutPropertiesLoose(_ref, _excluded$e);
644
- return jsxs(Box, {
644
+ return /*#__PURE__*/jsxs(Box, {
645
645
  alignItems: "center",
646
646
  className: "statusTag",
647
647
  "data-testid": "statusTag",
@@ -649,13 +649,13 @@ var StatusTag = function StatusTag(_ref) {
649
649
  position: "relative",
650
650
  sx: Object.assign({}, tagStyle(color), Array.isArray(sx) ? Object.assign.apply(Object, [{}].concat(sx)) : sx),
651
651
  textAlign: "center",
652
- children: [jsx(Box, {
652
+ children: [/*#__PURE__*/jsx(Box, {
653
653
  sx: {
654
654
  position: 'absolute',
655
655
  color: 'geowebColors.iconButtons.flat.default.color'
656
656
  },
657
657
  children: icon
658
- }), jsx(Typography, {
658
+ }), /*#__PURE__*/jsx(Typography, {
659
659
  sx: {
660
660
  width: '100%'
661
661
  },
@@ -682,6 +682,7 @@ var StatusTag = function StatusTag(_ref) {
682
682
  * Copyright 2025 - Finnish Meteorological Institute (FMI)
683
683
  * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
684
684
  * */
685
+
685
686
  var SHARED_NAMESPACE = 'shared';
686
687
  var geowebLanguages = ['en', 'fi', 'no', 'nl'];
687
688
  var loadAllTranslations = function loadAllTranslations(i18nInstance, translationsToLoad) {
@@ -733,7 +734,7 @@ var DraggableComponent$1 = function DraggableComponent(_ref) {
733
734
  y: pos.y
734
735
  });
735
736
  };
736
- return jsx(Draggable, Object.assign({
737
+ return /*#__PURE__*/jsx(Draggable, Object.assign({
737
738
  bounds: bounds
738
739
  }, props, {
739
740
  enableUserSelectHack: false,
@@ -800,6 +801,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
800
801
  width: width,
801
802
  height: height
802
803
  });
804
+
803
805
  // fix for when initial maxHeight gets cleared
804
806
  // eslint-disable-next-line no-param-reassign
805
807
  node.style.height = height + "px";
@@ -819,7 +821,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
819
821
  onResizeStop(event, direction, node, delta);
820
822
  }, [setSize, onResizeStop, size]);
821
823
  var boundsProps = useBoundsProps(nodeRef);
822
- return jsx(Resizable, Object.assign({
824
+ return /*#__PURE__*/jsx(Resizable, Object.assign({
823
825
  minHeight: minHeight,
824
826
  minWidth: minWidth,
825
827
  onResizeStop: onStopResize,
@@ -827,7 +829,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
827
829
  }, boundsProps, {
828
830
  enable: enable,
829
831
  handleComponent: {
830
- bottomRight: jsx(Resize, {
832
+ bottomRight: /*#__PURE__*/jsx(Resize, {
831
833
  className: "resizableHandle",
832
834
  style: {
833
835
  fill: "" + theme.palette.geowebColors.buttons.flat["default"].color
@@ -836,7 +838,7 @@ var ResizeComponent = function ResizeComponent(_ref) {
836
838
  display: 'none'
837
839
  }
838
840
  }),
839
- bottomLeft: jsx(Resize, {
841
+ bottomLeft: /*#__PURE__*/jsx(Resize, {
840
842
  className: "resizableHandle",
841
843
  isRightAligned: true,
842
844
  style: {
@@ -853,6 +855,24 @@ var ResizeComponent = function ResizeComponent(_ref) {
853
855
  }));
854
856
  };
855
857
 
858
+ /* *
859
+ * Licensed under the Apache License, Version 2.0 (the "License");
860
+ * you may not use this file except in compliance with the License.
861
+ * You may obtain a copy of the License at
862
+ *
863
+ * http://www.apache.org/licenses/LICENSE-2.0
864
+ *
865
+ * Unless required by applicable law or agreed to in writing, software
866
+ * distributed under the License is distributed on an "AS IS" BASIS,
867
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
868
+ * See the License for the specific language governing permissions and
869
+ * limitations under the License.
870
+ *
871
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
872
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
873
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
874
+ * */
875
+
856
876
  var defaultDelay = 1000;
857
877
  var useControlledTooltip = function useControlledTooltip() {
858
878
  var _React$useState = React.useState(false),
@@ -876,7 +896,7 @@ var useControlledTooltip = function useControlledTooltip() {
876
896
  return [delayedTooltip, setTooltipOpen];
877
897
  };
878
898
  var CustomTooltip = function CustomTooltip(props) {
879
- return jsx(Tooltip, Object.assign({}, props, {
899
+ return /*#__PURE__*/jsx(Tooltip, Object.assign({}, props, {
880
900
  disableInteractive: true,
881
901
  enterDelay: defaultDelay,
882
902
  enterNextDelay: defaultDelay
@@ -917,7 +937,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
917
937
  });
918
938
  }, [defaultTooltipProps, tooltipTitle]);
919
939
  var renderIconButton = function renderIconButton() {
920
- return jsxs(IconButton, Object.assign({
940
+ return /*#__PURE__*/jsxs(IconButton, Object.assign({
921
941
  "aria-label": tooltipTitle
922
942
  }, props, {
923
943
  "aria-pressed": isSelected,
@@ -932,7 +952,7 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
932
952
  color: "geowebColors.iconButtons." + variant + ".default.color"
933
953
  }
934
954
  }),
935
- children: [children, shouldShowExtraOptionsIndicator ? jsx(Box, {
955
+ children: [children, shouldShowExtraOptionsIndicator ? /*#__PURE__*/jsx(Box, {
936
956
  "data-testid": "extra-options-indicator",
937
957
  sx: {
938
958
  position: 'absolute',
@@ -947,12 +967,29 @@ var CustomIconButtonNoMemo = /*#__PURE__*/React.forwardRef(function (_ref, ref)
947
967
  }) : null]
948
968
  }));
949
969
  };
950
- return tooltipTitle && !props.disabled ? jsx(CustomTooltip, Object.assign({}, tooltipProps, {
970
+ return tooltipTitle && !props.disabled ? /*#__PURE__*/jsx(CustomTooltip, Object.assign({}, tooltipProps, {
951
971
  children: renderIconButton()
952
972
  })) : renderIconButton();
953
973
  });
954
974
  var CustomIconButton = /*#__PURE__*/React.memo(CustomIconButtonNoMemo);
955
975
 
976
+ /* *
977
+ * Licensed under the Apache License, Version 2.0 (the "License");
978
+ * you may not use this file except in compliance with the License.
979
+ * You may obtain a copy of the License at
980
+ *
981
+ * http://www.apache.org/licenses/LICENSE-2.0
982
+ *
983
+ * Unless required by applicable law or agreed to in writing, software
984
+ * distributed under the License is distributed on an "AS IS" BASIS,
985
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
986
+ * See the License for the specific language governing permissions and
987
+ * limitations under the License.
988
+ *
989
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
990
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
991
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
992
+ * */
956
993
  var getPosition = function getPosition(menuPosition) {
957
994
  switch (menuPosition) {
958
995
  case 'bottom':
@@ -1009,7 +1046,7 @@ var ToggleMenu = function ToggleMenu(_ref) {
1009
1046
  _ref$isDefaultOpen = _ref.isDefaultOpen,
1010
1047
  isDefaultOpen = _ref$isDefaultOpen === void 0 ? false : _ref$isDefaultOpen,
1011
1048
  _ref$buttonIcon = _ref.buttonIcon,
1012
- buttonIcon = _ref$buttonIcon === void 0 ? jsx(Options, {}) : _ref$buttonIcon,
1049
+ buttonIcon = _ref$buttonIcon === void 0 ? /*#__PURE__*/jsx(Options, {}) : _ref$buttonIcon,
1013
1050
  _ref$isDisabled = _ref.isDisabled,
1014
1051
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled;
1015
1052
  var _React$useState = React.useState(null),
@@ -1032,8 +1069,8 @@ var ToggleMenu = function ToggleMenu(_ref) {
1032
1069
  setAnchorEl(document.getElementById(buttonTestId));
1033
1070
  }
1034
1071
  }, [isDefaultOpen, buttonTestId]);
1035
- return jsxs(Fragment, {
1036
- children: [jsx(CustomIconButton, {
1072
+ return /*#__PURE__*/jsxs(Fragment, {
1073
+ children: [/*#__PURE__*/jsx(CustomIconButton, {
1037
1074
  "data-testid": buttonTestId,
1038
1075
  disabled: isDisabled,
1039
1076
  id: buttonTestId,
@@ -1046,7 +1083,7 @@ var ToggleMenu = function ToggleMenu(_ref) {
1046
1083
  },
1047
1084
  variant: variant,
1048
1085
  children: buttonIcon
1049
- }), jsxs(Menu, {
1086
+ }), /*#__PURE__*/jsxs(Menu, {
1050
1087
  anchorEl: anchorEl,
1051
1088
  anchorOrigin: anchorOrigin,
1052
1089
  onClose: function onClose(event, reason) {
@@ -1070,9 +1107,9 @@ var ToggleMenu = function ToggleMenu(_ref) {
1070
1107
  })
1071
1108
  },
1072
1109
  transformOrigin: transformOrigin,
1073
- children: [menuTitle ? jsx(ListSubheader, {
1110
+ children: [menuTitle ? /*#__PURE__*/jsx(ListSubheader, {
1074
1111
  "data-testid": "toggleMenuTitle",
1075
- children: jsx(Typography, {
1112
+ children: /*#__PURE__*/jsx(Typography, {
1076
1113
  sx: {
1077
1114
  fontSize: '12px'
1078
1115
  },
@@ -1083,25 +1120,25 @@ var ToggleMenu = function ToggleMenu(_ref) {
1083
1120
  icon = menuItem.icon,
1084
1121
  action = menuItem.action,
1085
1122
  isDisabled = menuItem.isDisabled;
1086
- return jsx(MenuItem, {
1123
+ return /*#__PURE__*/jsx(MenuItem, {
1087
1124
  disabled: isDisabled,
1088
1125
  onClick: function onClick(event) {
1089
1126
  action(event);
1090
1127
  handleClose(event);
1091
1128
  },
1092
1129
  selected: menuItem.isSelected,
1093
- children: jsxs(Grid, {
1130
+ children: /*#__PURE__*/jsxs(Grid, {
1094
1131
  container: true,
1095
1132
  justifyContent: "space-between",
1096
1133
  size: "grow",
1097
1134
  spacing: 2,
1098
- children: [jsx(Grid, {
1099
- children: jsx(ListItemText, {
1135
+ children: [/*#__PURE__*/jsx(Grid, {
1136
+ children: /*#__PURE__*/jsx(ListItemText, {
1100
1137
  children: text
1101
1138
  })
1102
- }), icon ? jsx(Grid, {
1139
+ }), icon ? /*#__PURE__*/jsx(Grid, {
1103
1140
  alignItems: "flex-end",
1104
- children: jsx(ListItemIcon, {
1141
+ children: /*#__PURE__*/jsx(ListItemIcon, {
1105
1142
  sx: {
1106
1143
  '&.MuiListItemIcon-root': {
1107
1144
  minWidth: '24px'
@@ -1112,15 +1149,32 @@ var ToggleMenu = function ToggleMenu(_ref) {
1112
1149
  }) : null]
1113
1150
  })
1114
1151
  }, text);
1115
- }) : jsx("div", {}) // Needed to make the menu work without any menuItems
1152
+ }) : /*#__PURE__*/jsx("div", {}) // Needed to make the menu work without any menuItems
1116
1153
  , children]
1117
1154
  })]
1118
1155
  });
1119
1156
  };
1120
1157
 
1158
+ /* *
1159
+ * Licensed under the Apache License, Version 2.0 (the "License");
1160
+ * you may not use this file except in compliance with the License.
1161
+ * You may obtain a copy of the License at
1162
+ *
1163
+ * http://www.apache.org/licenses/LICENSE-2.0
1164
+ *
1165
+ * Unless required by applicable law or agreed to in writing, software
1166
+ * distributed under the License is distributed on an "AS IS" BASIS,
1167
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1168
+ * See the License for the specific language governing permissions and
1169
+ * limitations under the License.
1170
+ *
1171
+ * Copyright 2025 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1172
+ * Copyright 2025 - Finnish Meteorological Institute (FMI)
1173
+ * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
1174
+ * */
1121
1175
  var Title = function Title(_ref) {
1122
1176
  var title = _ref.title;
1123
- return jsx(Typography, {
1177
+ return /*#__PURE__*/jsx(Typography, {
1124
1178
  component: "span",
1125
1179
  "data-testid": "customDialog-title",
1126
1180
  sx: {
@@ -1141,7 +1195,7 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1141
1195
  onClose = _ref2.onClose;
1142
1196
  var _useSharedTranslation = useSharedTranslation(),
1143
1197
  t = _useSharedTranslation.t;
1144
- return !headerActions ? jsxs(DialogTitle, {
1198
+ return !headerActions ? /*#__PURE__*/jsxs(DialogTitle, {
1145
1199
  id: "dialog-title",
1146
1200
  sx: {
1147
1201
  zIndex: 1,
@@ -1150,9 +1204,9 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1150
1204
  justifyContent: 'space-between',
1151
1205
  alignItems: 'center'
1152
1206
  },
1153
- children: [title ? jsx(Title, {
1207
+ children: [title ? /*#__PURE__*/jsx(Title, {
1154
1208
  title: title
1155
- }) : null, jsx(CustomIconButton, {
1209
+ }) : null, /*#__PURE__*/jsx(CustomIconButton, {
1156
1210
  "aria-label": "close",
1157
1211
  "data-testid": "customDialog-close",
1158
1212
  onClick: function onClick() {
@@ -1163,11 +1217,11 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1163
1217
  color: 'geowebColors.greys.accessible'
1164
1218
  }
1165
1219
  },
1166
- children: jsx(Close, {
1220
+ children: /*#__PURE__*/jsx(Close, {
1167
1221
  "data-testid": "CloseIcon"
1168
1222
  })
1169
1223
  })]
1170
- }) : jsxs(Grid, {
1224
+ }) : /*#__PURE__*/jsxs(Grid, {
1171
1225
  alignItems: "center",
1172
1226
  "aria-label": "Dialog options header",
1173
1227
  container: true,
@@ -1178,34 +1232,34 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1178
1232
  px: 1,
1179
1233
  zIndex: 1
1180
1234
  },
1181
- children: [jsx(Grid, {
1235
+ children: [/*#__PURE__*/jsx(Grid, {
1182
1236
  size: 4,
1183
- children: jsx(Button, {
1237
+ children: /*#__PURE__*/jsx(Button, {
1184
1238
  "aria-label": "close",
1185
1239
  "data-testid": "contentdialog-close",
1186
1240
  onClick: function onClick() {
1187
1241
  return onClose('CLOSED');
1188
1242
  },
1189
- startIcon: jsx(ChevronLeft, {}),
1243
+ startIcon: /*#__PURE__*/jsx(ChevronLeft, {}),
1190
1244
  sx: {
1191
1245
  textTransform: 'uppercase'
1192
1246
  },
1193
1247
  variant: "flat",
1194
1248
  children: t('shared-customdialog-back')
1195
1249
  })
1196
- }), jsx(Grid, {
1250
+ }), /*#__PURE__*/jsx(Grid, {
1197
1251
  size: 4,
1198
1252
  sx: {
1199
1253
  display: 'flex',
1200
1254
  justifyContent: 'center',
1201
1255
  textAlign: 'center'
1202
1256
  },
1203
- children: title ? jsx(Title, {
1257
+ children: title ? /*#__PURE__*/jsx(Title, {
1204
1258
  title: title
1205
1259
  }) : null
1206
- }), jsx(Grid, {
1260
+ }), /*#__PURE__*/jsx(Grid, {
1207
1261
  size: 4,
1208
- children: jsx(Box, {
1262
+ children: /*#__PURE__*/jsx(Box, {
1209
1263
  sx: {
1210
1264
  display: 'flex',
1211
1265
  justifyContent: 'flex-end',
@@ -1213,8 +1267,8 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1213
1267
  marginLeft: 1
1214
1268
  }
1215
1269
  },
1216
- children: jsxs(Box, {
1217
- children: [jsx(Box, {
1270
+ children: /*#__PURE__*/jsxs(Box, {
1271
+ children: [/*#__PURE__*/jsx(Box, {
1218
1272
  display: {
1219
1273
  xs: 'none',
1220
1274
  lg: 'flex'
@@ -1225,7 +1279,7 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1225
1279
  variant = _ref3.variant,
1226
1280
  _ref3$isDisabled = _ref3.isDisabled,
1227
1281
  isDisabled = _ref3$isDisabled === void 0 ? false : _ref3$isDisabled;
1228
- return jsx(Button, {
1282
+ return /*#__PURE__*/jsx(Button, {
1229
1283
  disabled: isDisabled,
1230
1284
  onClick: action,
1231
1285
  sx: {
@@ -1235,12 +1289,12 @@ var CustomDialogHeader = function CustomDialogHeader(_ref2) {
1235
1289
  children: text
1236
1290
  }, text + "-" + variant);
1237
1291
  })
1238
- }), jsx(Box, {
1292
+ }), /*#__PURE__*/jsx(Box, {
1239
1293
  display: {
1240
1294
  sm: 'block',
1241
1295
  lg: 'none'
1242
1296
  },
1243
- children: headerActions.length > 0 && jsx(ToggleMenu, {
1297
+ children: headerActions.length > 0 && /*#__PURE__*/jsx(ToggleMenu, {
1244
1298
  menuItems: headerActions.map(function (_ref4) {
1245
1299
  var text = _ref4.text,
1246
1300
  action = _ref4.action,
@@ -1277,7 +1331,7 @@ var PaperComponent = function PaperComponent(_ref) {
1277
1331
  props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
1278
1332
  var maxWidth = '98%';
1279
1333
  var maxHeight = '98%';
1280
- return jsx(ResizeComponent, Object.assign({
1334
+ return /*#__PURE__*/jsx(ResizeComponent, Object.assign({
1281
1335
  className: "custom-dialog-resize",
1282
1336
  maxHeight: maxHeight,
1283
1337
  maxWidth: maxWidth,
@@ -1309,7 +1363,7 @@ var PaperComponent = function PaperComponent(_ref) {
1309
1363
  topLeft: true
1310
1364
  },
1311
1365
  resizeRatio: [2, 2],
1312
- children: hasLayout ? jsx(Paper, Object.assign({}, props, {
1366
+ children: hasLayout ? /*#__PURE__*/jsx(Paper, Object.assign({}, props, {
1313
1367
  sx: {
1314
1368
  margin: '0px!important',
1315
1369
  width: '100%!important',
@@ -1344,10 +1398,11 @@ var CustomDialog = function CustomDialog(_ref2) {
1344
1398
  var _React$useState = React.useState(resizableDefaultSize),
1345
1399
  size = _React$useState[0],
1346
1400
  setSize = _React$useState[1];
1347
- return jsx(Dialog, Object.assign({
1401
+ return /*#__PURE__*/jsx(Dialog, Object.assign({
1348
1402
  "aria-labelledby": "dialog-title",
1349
- "data-testid": "customDialog",
1403
+ "data-testid": "customDialog"
1350
1404
  // fix for briefly showing default options when closing dialog
1405
+ ,
1351
1406
  transitionDuration: 0
1352
1407
  }, isResizable && {
1353
1408
  PaperComponent: PaperComponent
@@ -1392,20 +1447,20 @@ var CustomDialog = function CustomDialog(_ref2) {
1392
1447
  }
1393
1448
  })
1394
1449
  }, other, {
1395
- children: hasLayout ? jsxs(Fragment, {
1396
- children: [jsx(CustomDialogHeader, {
1450
+ children: hasLayout ? /*#__PURE__*/jsxs(Fragment, {
1451
+ children: [/*#__PURE__*/jsx(CustomDialogHeader, {
1397
1452
  headerActions: headerActions,
1398
1453
  onClose: _onClose,
1399
1454
  title: title
1400
- }), jsxs(DialogContent, {
1455
+ }), /*#__PURE__*/jsxs(DialogContent, {
1401
1456
  sx: {
1402
1457
  padding: '8px 16px'
1403
1458
  },
1404
- children: [description ? jsx(Typography, {
1459
+ children: [description ? /*#__PURE__*/jsx(Typography, {
1405
1460
  variant: "body1",
1406
1461
  children: description
1407
1462
  }) : null, children]
1408
- }), !headerActions && jsx(DialogActions, {
1463
+ }), !headerActions && /*#__PURE__*/jsx(DialogActions, {
1409
1464
  sx: {
1410
1465
  padding: 2,
1411
1466
  flexDirection: {
@@ -1419,6 +1474,23 @@ var CustomDialog = function CustomDialog(_ref2) {
1419
1474
  }));
1420
1475
  };
1421
1476
 
1477
+ /* *
1478
+ * Licensed under the Apache License, Version 2.0 (the "License");
1479
+ * you may not use this file except in compliance with the License.
1480
+ * You may obtain a copy of the License at
1481
+ *
1482
+ * http://www.apache.org/licenses/LICENSE-2.0
1483
+ *
1484
+ * Unless required by applicable law or agreed to in writing, software
1485
+ * distributed under the License is distributed on an "AS IS" BASIS,
1486
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1487
+ * See the License for the specific language governing permissions and
1488
+ * limitations under the License.
1489
+ *
1490
+ * Copyright 2025 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1491
+ * Copyright 2025 - Finnish Meteorological Institute (FMI)
1492
+ * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
1493
+ * */
1422
1494
  var confirmStyle = {
1423
1495
  width: {
1424
1496
  xs: '100%',
@@ -1446,8 +1518,8 @@ var ConfirmationButtons = function ConfirmationButtons(_ref) {
1446
1518
  confirmLabel = _ref.confirmLabel;
1447
1519
  var _useSharedTranslation = useSharedTranslation(),
1448
1520
  t = _useSharedTranslation.t;
1449
- return jsxs(Fragment, {
1450
- children: [jsx(Button, {
1521
+ return /*#__PURE__*/jsxs(Fragment, {
1522
+ children: [/*#__PURE__*/jsx(Button, {
1451
1523
  "data-testid": "confirmationDialog-cancel",
1452
1524
  onClick: function onClick() {
1453
1525
  return onClose('CANCELLED');
@@ -1466,7 +1538,7 @@ var ConfirmationButtons = function ConfirmationButtons(_ref) {
1466
1538
  },
1467
1539
  variant: "tertiary",
1468
1540
  children: cancelLabel != null ? cancelLabel : t('shared-confirmation-cancel')
1469
- }), isLoading ? jsx(Box, {
1541
+ }), isLoading ? /*#__PURE__*/jsx(Box, {
1470
1542
  "data-testid": "confirm-dialog-spinner",
1471
1543
  sx: Object.assign({}, confirmStyle, {
1472
1544
  height: '40px',
@@ -1474,11 +1546,11 @@ var ConfirmationButtons = function ConfirmationButtons(_ref) {
1474
1546
  justifyContent: 'center',
1475
1547
  alignItems: 'center'
1476
1548
  }),
1477
- children: jsx(CircularProgress, {
1549
+ children: /*#__PURE__*/jsx(CircularProgress, {
1478
1550
  color: "secondary",
1479
1551
  size: 40
1480
1552
  })
1481
- }) : jsx(Button, {
1553
+ }) : /*#__PURE__*/jsx(Button, {
1482
1554
  autoFocus: !disableAutoFocus,
1483
1555
  "data-testid": "confirmationDialog-confirm",
1484
1556
  onClick: onSubmit,
@@ -1517,8 +1589,8 @@ var ConfirmationDialog = function ConfirmationDialog(_ref) {
1517
1589
  var rest = _objectWithoutPropertiesLoose(other, _excluded2$1); // remove unwanted props
1518
1590
  var _useSharedTranslation = useSharedTranslation(),
1519
1591
  t = _useSharedTranslation.t;
1520
- return jsx(CustomDialog, Object.assign({
1521
- actions: jsx(ConfirmationButtons, {
1592
+ return /*#__PURE__*/jsx(CustomDialog, Object.assign({
1593
+ actions: /*#__PURE__*/jsx(ConfirmationButtons, {
1522
1594
  cancelLabel: cancelLabel,
1523
1595
  confirmLabel: confirmLabel,
1524
1596
  disableAutoFocus: disableAutoFocus,
@@ -1688,6 +1760,7 @@ var useIsMounted = function useIsMounted() {
1688
1760
  var adjustPosition = function adjustPosition(bbox, containingView, position, setPosition) {
1689
1761
  var isHorizontallyLarger = bbox.width > containingView.width;
1690
1762
  var isVerticallyLarger = bbox.height > containingView.height;
1763
+
1691
1764
  // Check corner cases first
1692
1765
  // bottom left
1693
1766
  if (bbox.x < containingView.x && bbox.bottom >= containingView.bottom) {
@@ -1771,10 +1844,10 @@ var useMakeSureContainerStaysInsideWindow = function useMakeSureContainerStaysIn
1771
1844
  Accepts a value and timeout and will debounce
1772
1845
 
1773
1846
  @param {S} value: value of element
1774
- @param {timeout} number: timer
1775
- @return {value: S}
1847
+ @param {timeout} number: timer
1848
+ @return {value: S}
1776
1849
 
1777
- @example:
1850
+ @example:
1778
1851
  const debouncedName = useDebounce('testing', 2000)
1779
1852
  */
1780
1853
  var useDebounce = function useDebounce(value, timeout) {
@@ -1814,6 +1887,7 @@ var useDebounce = function useDebounce(value, timeout) {
1814
1887
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
1815
1888
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1816
1889
  * */
1890
+
1817
1891
  var useWheelStopPropagation = function useWheelStopPropagation() {
1818
1892
  var ref = React.useRef(null);
1819
1893
  React.useEffect(function () {
@@ -1853,11 +1927,7 @@ var useWheelStopPropagation = function useWheelStopPropagation() {
1853
1927
  * Copyright 2025 - Finnish Meteorological Institute (FMI)
1854
1928
  * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
1855
1929
  * */
1856
- /**
1857
- * This hook allows to stop wheel events from propagating to parent elements.
1858
- * Normally, when you scroll a child element, the scroll event will propagate to the parent element,
1859
- * as calling event.stopPropagation() on syncthetic events does not stop the propagation
1860
- */
1930
+
1861
1931
  var useScrollingInIsolation = function useScrollingInIsolation(options) {
1862
1932
  var scrollInIsolationRef = React.useRef(null);
1863
1933
  React.useEffect(function () {
@@ -1877,6 +1947,7 @@ var useScrollingInIsolation = function useScrollingInIsolation(options) {
1877
1947
  element.addEventListener('wheel', handleWheel, {
1878
1948
  passive: false
1879
1949
  });
1950
+
1880
1951
  // eslint-disable-next-line consistent-return
1881
1952
  return function () {
1882
1953
  element.removeEventListener('wheel', handleWheel);
@@ -1935,6 +2006,7 @@ var useDialogActions = function useDialogActions(awaitingPromiseRef, defaultOpti
1935
2006
  var _React$useState = React.useState(defaultOptions),
1936
2007
  confirmationState = _React$useState[0],
1937
2008
  setConfirmationState = _React$useState[1];
2009
+
1938
2010
  // eslint-disable-next-line @typescript-eslint/promise-function-async
1939
2011
  var openConfirmation = function openConfirmation(options) {
1940
2012
  setConfirmationState(options);
@@ -1947,6 +2019,7 @@ var useDialogActions = function useDialogActions(awaitingPromiseRef, defaultOpti
1947
2019
  };
1948
2020
  });
1949
2021
  };
2022
+
1950
2023
  // clears state with timeout delay so optional values provided by the prop 'content' of ConfirmationDialog can be read
1951
2024
  var clearState = function clearState() {
1952
2025
  return setTimeout(function () {
@@ -2017,9 +2090,9 @@ var ConfirmationServiceProvider = function ConfirmationServiceProvider(_ref) {
2017
2090
  confirmationState = _useDialogActions.confirmationState,
2018
2091
  handleSubmit = _useDialogActions.handleSubmit,
2019
2092
  handleClose = _useDialogActions.handleClose;
2020
- return jsxs(ConfirmationServiceContext.Provider, {
2093
+ return /*#__PURE__*/jsxs(ConfirmationServiceContext.Provider, {
2021
2094
  value: openConfirmation,
2022
- children: [children, jsx(ConfirmationDialog, Object.assign({
2095
+ children: [children, /*#__PURE__*/jsx(ConfirmationDialog, Object.assign({
2023
2096
  onClose: handleClose,
2024
2097
  onSubmit: handleSubmit,
2025
2098
  open: Boolean(confirmationState)
@@ -2027,6 +2100,24 @@ var ConfirmationServiceProvider = function ConfirmationServiceProvider(_ref) {
2027
2100
  });
2028
2101
  };
2029
2102
 
2103
+ /* *
2104
+ * Licensed under the Apache License, Version 2.0 (the "License");
2105
+ * you may not use this file except in compliance with the License.
2106
+ * You may obtain a copy of the License at
2107
+ *
2108
+ * http://www.apache.org/licenses/LICENSE-2.0
2109
+ *
2110
+ * Unless required by applicable law or agreed to in writing, software
2111
+ * distributed under the License is distributed on an "AS IS" BASIS,
2112
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2113
+ * See the License for the specific language governing permissions and
2114
+ * limitations under the License.
2115
+ *
2116
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2117
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2118
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2119
+ * */
2120
+
2030
2121
  var AlertIcon = function AlertIcon(_ref) {
2031
2122
  var _ref$severity = _ref.severity,
2032
2123
  severity = _ref$severity === void 0 ? 'error' : _ref$severity,
@@ -2034,21 +2125,21 @@ var AlertIcon = function AlertIcon(_ref) {
2034
2125
  dataTestId = _ref$dataTestId === void 0 ? 'alert-icon' : _ref$dataTestId;
2035
2126
  switch (severity) {
2036
2127
  case 'info':
2037
- return jsx(Info, {
2128
+ return /*#__PURE__*/jsx(Info, {
2038
2129
  "data-testid": dataTestId,
2039
2130
  sx: {
2040
2131
  color: 'geowebColors.functional.notification'
2041
2132
  }
2042
2133
  });
2043
2134
  case 'success':
2044
- return jsx(Success, {
2135
+ return /*#__PURE__*/jsx(Success, {
2045
2136
  "data-testid": dataTestId,
2046
2137
  sx: {
2047
2138
  color: 'geowebColors.functional.success'
2048
2139
  }
2049
2140
  });
2050
2141
  case 'warning':
2051
- return jsx(Exclamation, {
2142
+ return /*#__PURE__*/jsx(Exclamation, {
2052
2143
  "data-testid": dataTestId,
2053
2144
  sx: {
2054
2145
  color: 'geowebColors.functional.warning'
@@ -2056,7 +2147,7 @@ var AlertIcon = function AlertIcon(_ref) {
2056
2147
  });
2057
2148
  case 'error':
2058
2149
  default:
2059
- return jsx(Exclamation, {
2150
+ return /*#__PURE__*/jsx(Exclamation, {
2060
2151
  "data-testid": dataTestId,
2061
2152
  sx: {
2062
2153
  color: 'geowebColors.functional.error'
@@ -2065,6 +2156,23 @@ var AlertIcon = function AlertIcon(_ref) {
2065
2156
  }
2066
2157
  };
2067
2158
 
2159
+ /* *
2160
+ * Licensed under the Apache License, Version 2.0 (the "License");
2161
+ * you may not use this file except in compliance with the License.
2162
+ * You may obtain a copy of the License at
2163
+ *
2164
+ * http://www.apache.org/licenses/LICENSE-2.0
2165
+ *
2166
+ * Unless required by applicable law or agreed to in writing, software
2167
+ * distributed under the License is distributed on an "AS IS" BASIS,
2168
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2169
+ * See the License for the specific language governing permissions and
2170
+ * limitations under the License.
2171
+ *
2172
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2173
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2174
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2175
+ * */
2068
2176
  var AlertBanner = function AlertBanner(_ref) {
2069
2177
  var title = _ref.title,
2070
2178
  _ref$severity = _ref.severity,
@@ -2087,8 +2195,8 @@ var AlertBanner = function AlertBanner(_ref) {
2087
2195
  if (!isOpen) {
2088
2196
  return null;
2089
2197
  }
2090
- return jsxs(Alert, {
2091
- action: shouldClose ? jsx(Button, {
2198
+ return /*#__PURE__*/jsxs(Alert, {
2199
+ action: shouldClose ? /*#__PURE__*/jsx(Button, {
2092
2200
  onClick: function onClick() {
2093
2201
  return setIsOpen(false);
2094
2202
  },
@@ -2099,7 +2207,7 @@ var AlertBanner = function AlertBanner(_ref) {
2099
2207
  children: t('shared-close-caps')
2100
2208
  }) : undefined,
2101
2209
  "data-testid": dataTestId,
2102
- icon: jsx(AlertIcon, {
2210
+ icon: /*#__PURE__*/jsx(AlertIcon, {
2103
2211
  severity: severity
2104
2212
  }),
2105
2213
  severity: severity,
@@ -2131,7 +2239,7 @@ var AlertBanner = function AlertBanner(_ref) {
2131
2239
  padding: 0
2132
2240
  }
2133
2241
  },
2134
- children: [jsx(AlertTitle, {
2242
+ children: [/*#__PURE__*/jsx(AlertTitle, {
2135
2243
  sx: {
2136
2244
  fontSize: '14px',
2137
2245
  fontWeight: 'normal',
@@ -2141,7 +2249,7 @@ var AlertBanner = function AlertBanner(_ref) {
2141
2249
  lineHeight: isCompact ? '18px' : '24px'
2142
2250
  },
2143
2251
  children: title
2144
- }), info ? jsx(Box, {
2252
+ }), info ? /*#__PURE__*/jsx(Box, {
2145
2253
  sx: {
2146
2254
  fontSize: '16px',
2147
2255
  marginTop: 1,
@@ -2149,12 +2257,12 @@ var AlertBanner = function AlertBanner(_ref) {
2149
2257
  lineHeight: '22px'
2150
2258
  },
2151
2259
  children: info
2152
- }) : null, actionButtonProps ? jsx(Button, {
2260
+ }) : null, actionButtonProps ? /*#__PURE__*/jsx(Button, {
2153
2261
  onClick: function onClick(event) {
2154
2262
  setIsOpen(false);
2155
2263
  actionButtonProps.onClick(event);
2156
2264
  },
2157
- startIcon: jsx(ChevronRight, {}),
2265
+ startIcon: /*#__PURE__*/jsx(ChevronRight, {}),
2158
2266
  sx: {
2159
2267
  backgroundColor: 'transparent!important'
2160
2268
  },
@@ -2164,17 +2272,35 @@ var AlertBanner = function AlertBanner(_ref) {
2164
2272
  });
2165
2273
  };
2166
2274
 
2275
+ /* *
2276
+ * Licensed under the Apache License, Version 2.0 (the "License");
2277
+ * you may not use this file except in compliance with the License.
2278
+ * You may obtain a copy of the License at
2279
+ *
2280
+ * http://www.apache.org/licenses/LICENSE-2.0
2281
+ *
2282
+ * Unless required by applicable law or agreed to in writing, software
2283
+ * distributed under the License is distributed on an "AS IS" BASIS,
2284
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2285
+ * See the License for the specific language governing permissions and
2286
+ * limitations under the License.
2287
+ *
2288
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2289
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2290
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2291
+ * */
2292
+
2167
2293
  var AppLayout = function AppLayout(_ref) {
2168
2294
  var header = _ref.header,
2169
2295
  children = _ref.children;
2170
- return jsxs(Box, {
2296
+ return /*#__PURE__*/jsxs(Box, {
2171
2297
  "data-testid": "appLayout",
2172
2298
  sx: {
2173
2299
  height: '100dvh',
2174
2300
  display: 'flex',
2175
2301
  flexDirection: 'column'
2176
2302
  },
2177
- children: [header, jsx(Box, {
2303
+ children: [header, /*#__PURE__*/jsx(Box, {
2178
2304
  component: "main",
2179
2305
  sx: {
2180
2306
  flex: 1,
@@ -2185,8 +2311,26 @@ var AppLayout = function AppLayout(_ref) {
2185
2311
  });
2186
2312
  };
2187
2313
 
2314
+ /* *
2315
+ * Licensed under the Apache License, Version 2.0 (the "License");
2316
+ * you may not use this file except in compliance with the License.
2317
+ * You may obtain a copy of the License at
2318
+ *
2319
+ * http://www.apache.org/licenses/LICENSE-2.0
2320
+ *
2321
+ * Unless required by applicable law or agreed to in writing, software
2322
+ * distributed under the License is distributed on an "AS IS" BASIS,
2323
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2324
+ * See the License for the specific language governing permissions and
2325
+ * limitations under the License.
2326
+ *
2327
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2328
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2329
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2330
+ * */
2331
+
2188
2332
  var AppHeader = function AppHeader(_ref) {
2189
- var _sx, _theme$palette$geoweb;
2333
+ var _ref2, _theme$palette$geoweb;
2190
2334
  var menu = _ref.menu,
2191
2335
  userMenu = _ref.userMenu,
2192
2336
  workspaceTopBar = _ref.workspaceTopBar,
@@ -2206,10 +2350,10 @@ var AppHeader = function AppHeader(_ref) {
2206
2350
  }
2207
2351
  setIsDrawerOpen(false);
2208
2352
  };
2209
- return jsxs(Box, {
2353
+ return /*#__PURE__*/jsxs(Box, {
2210
2354
  component: "header",
2211
2355
  role: "heading",
2212
- sx: (_sx = {
2356
+ sx: (_ref2 = {
2213
2357
  height: 40,
2214
2358
  backgroundColor: theme.palette.geowebColors.brand.brand,
2215
2359
  color: theme.palette.common.white,
@@ -2217,9 +2361,9 @@ var AppHeader = function AppHeader(_ref) {
2217
2361
  zIndex: 1000,
2218
2362
  display: 'flex',
2219
2363
  padding: '0 16px'
2220
- }, _sx[theme.breakpoints.up('md')] = {
2364
+ }, _ref2[theme.breakpoints.up('md')] = {
2221
2365
  padding: '0 24px'
2222
- }, _sx[theme.breakpoints.up('sm')] = {
2366
+ }, _ref2[theme.breakpoints.up('sm')] = {
2223
2367
  '.workspace-topbar': {
2224
2368
  marginLeft: 3,
2225
2369
  maxWidth: 260
@@ -2231,28 +2375,28 @@ var AppHeader = function AppHeader(_ref) {
2231
2375
  maxWidth: 'initial',
2232
2376
  display: 'block'
2233
2377
  }
2234
- }, _sx),
2235
- children: [jsxs(Box, {
2378
+ }, _ref2),
2379
+ children: [/*#__PURE__*/jsxs(Box, {
2236
2380
  onClick: onClick,
2237
2381
  sx: {
2238
2382
  display: 'inherit',
2239
2383
  alignItems: 'center',
2240
2384
  cursor: onClick ? 'pointer' : 'auto'
2241
2385
  },
2242
- children: [(_theme$palette$geoweb = theme.palette.geowebColors.logo) != null && _theme$palette$geoweb.image ? jsx("img", {
2386
+ children: [(_theme$palette$geoweb = theme.palette.geowebColors.logo) != null && _theme$palette$geoweb.image ? /*#__PURE__*/jsx("img", {
2243
2387
  alt: "GeoWeb",
2244
2388
  src: theme.palette.geowebColors.logo.image,
2245
2389
  style: {
2246
2390
  height: '29px',
2247
2391
  width: '47px'
2248
2392
  }
2249
- }) : jsx(GeoWebLogo, {
2393
+ }) : /*#__PURE__*/jsx(GeoWebLogo, {
2250
2394
  style: {
2251
2395
  position: 'relative',
2252
2396
  top: '-1px',
2253
2397
  right: '-1px'
2254
2398
  }
2255
- }), jsx(Typography, {
2399
+ }), /*#__PURE__*/jsx(Typography, {
2256
2400
  sx: {
2257
2401
  display: 'none',
2258
2402
  fontSize: '20px',
@@ -2271,21 +2415,21 @@ var AppHeader = function AppHeader(_ref) {
2271
2415
  variant: "h1",
2272
2416
  children: title
2273
2417
  })]
2274
- }), menu ? jsxs(Box, {
2418
+ }), menu ? /*#__PURE__*/jsxs(Box, {
2275
2419
  className: "hamburger-btn",
2276
2420
  sx: {
2277
2421
  display: 'flex',
2278
2422
  alignItems: 'center',
2279
2423
  marginLeft: 1
2280
2424
  },
2281
- children: [jsx(CustomIconButton, {
2425
+ children: [/*#__PURE__*/jsx(CustomIconButton, {
2282
2426
  "data-testid": "menuButton",
2283
2427
  isSelected: isDrawerOpen,
2284
2428
  onClick: function onClick() {
2285
2429
  return onToggleDrawer(true);
2286
2430
  },
2287
- children: jsx(HamburgerMenu, {})
2288
- }), jsx(Drawer, {
2431
+ children: /*#__PURE__*/jsx(HamburgerMenu, {})
2432
+ }), /*#__PURE__*/jsx(Drawer, {
2289
2433
  anchor: "left",
2290
2434
  "data-testid": "app-drawer",
2291
2435
  onClick: function onClick() {
@@ -2301,7 +2445,7 @@ var AppHeader = function AppHeader(_ref) {
2301
2445
  top: '40px'
2302
2446
  }
2303
2447
  },
2304
- children: jsx(Box, {
2448
+ children: /*#__PURE__*/jsx(Box, {
2305
2449
  role: "presentation",
2306
2450
  sx: {
2307
2451
  width: '250px',
@@ -2310,7 +2454,7 @@ var AppHeader = function AppHeader(_ref) {
2310
2454
  children: menu
2311
2455
  })
2312
2456
  })]
2313
- }) : null, jsx(Box, {
2457
+ }) : null, /*#__PURE__*/jsx(Box, {
2314
2458
  className: "workspace-topbar",
2315
2459
  sx: {
2316
2460
  flexGrow: 1,
@@ -2320,7 +2464,7 @@ var AppHeader = function AppHeader(_ref) {
2320
2464
  maxWidth: 168
2321
2465
  },
2322
2466
  children: workspaceTopBar
2323
- }), jsx(Box, {
2467
+ }), /*#__PURE__*/jsx(Box, {
2324
2468
  sx: {
2325
2469
  display: 'flex',
2326
2470
  alignItems: 'center',
@@ -2413,11 +2557,11 @@ var ErrorBoundary = /*#__PURE__*/function (_React$Component) {
2413
2557
  overflowY: 'scroll'
2414
2558
  };
2415
2559
  if (error) {
2416
- return jsx(Box, {
2560
+ return /*#__PURE__*/jsx(Box, {
2417
2561
  sx: displayOnTop ? displayOnTopStyles : normalStyles,
2418
- children: jsx(AlertBanner, {
2419
- info: jsxs("div", {
2420
- children: [jsx("br", {}), error.toString(), jsx("br", {}), errorInfo == null ? void 0 : errorInfo.componentStack, jsx("br", {}), jsx("br", {}), jsx(Link, {
2562
+ children: /*#__PURE__*/jsx(AlertBanner, {
2563
+ info: /*#__PURE__*/jsxs("div", {
2564
+ children: [/*#__PURE__*/jsx("br", {}), error.toString(), /*#__PURE__*/jsx("br", {}), errorInfo == null ? void 0 : errorInfo.componentStack, /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx("br", {}), /*#__PURE__*/jsx(Link, {
2421
2565
  onClick: function onClick() {
2422
2566
  return window.location.reload();
2423
2567
  },
@@ -2441,6 +2585,23 @@ ErrorBoundary.defaultProps = {
2441
2585
  onError: function onError() {}
2442
2586
  };
2443
2587
 
2588
+ /* *
2589
+ * Licensed under the Apache License, Version 2.0 (the "License");
2590
+ * you may not use this file except in compliance with the License.
2591
+ * You may obtain a copy of the License at
2592
+ *
2593
+ * http://www.apache.org/licenses/LICENSE-2.0
2594
+ *
2595
+ * Unless required by applicable law or agreed to in writing, software
2596
+ * distributed under the License is distributed on an "AS IS" BASIS,
2597
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2598
+ * See the License for the specific language governing permissions and
2599
+ * limitations under the License.
2600
+ *
2601
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2602
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
2603
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2604
+ * */
2444
2605
  var styles$5 = {
2445
2606
  small: {
2446
2607
  height: 16,
@@ -2456,7 +2617,7 @@ var Avatar = function Avatar(_ref) {
2456
2617
  _ref$author = _ref.author,
2457
2618
  author = _ref$author === void 0 ? false : _ref$author;
2458
2619
  var theme = useTheme();
2459
- return jsx(Avatar$1, {
2620
+ return /*#__PURE__*/jsx(Avatar$1, {
2460
2621
  "data-testid": "avatar",
2461
2622
  sx: Object.assign({}, styles$5[size], {
2462
2623
  bgcolor: author ? theme.palette.geowebColors.buttons.icon.disabled.color : undefined
@@ -2465,6 +2626,24 @@ var Avatar = function Avatar(_ref) {
2465
2626
  });
2466
2627
  };
2467
2628
 
2629
+ /* *
2630
+ * Licensed under the Apache License, Version 2.0 (the "License");
2631
+ * you may not use this file except in compliance with the License.
2632
+ * You may obtain a copy of the License at
2633
+ *
2634
+ * http://www.apache.org/licenses/LICENSE-2.0
2635
+ *
2636
+ * Unless required by applicable law or agreed to in writing, software
2637
+ * distributed under the License is distributed on an "AS IS" BASIS,
2638
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2639
+ * See the License for the specific language governing permissions and
2640
+ * limitations under the License.
2641
+ *
2642
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2643
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2644
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2645
+ * */
2646
+
2468
2647
  var styles$4 = {
2469
2648
  container: {
2470
2649
  position: 'absolute',
@@ -2499,8 +2678,8 @@ var UserMenu = function UserMenu(_ref) {
2499
2678
  _ref$isAdmin = _ref.isAdmin,
2500
2679
  isAdmin = _ref$isAdmin === void 0 ? false : _ref$isAdmin;
2501
2680
  var toggleRef = useRef(null);
2502
- return jsxs(Fragment, {
2503
- children: [jsx(CustomIconButton, {
2681
+ return /*#__PURE__*/jsxs(Fragment, {
2682
+ children: [/*#__PURE__*/jsx(CustomIconButton, {
2504
2683
  "data-testid": "userButton",
2505
2684
  onClick: onToggle,
2506
2685
  ref: toggleRef,
@@ -2519,10 +2698,10 @@ var UserMenu = function UserMenu(_ref) {
2519
2698
  }
2520
2699
  })
2521
2700
  },
2522
- children: !isAdmin ? jsx(Avatar, {
2701
+ children: !isAdmin ? /*#__PURE__*/jsx(Avatar, {
2523
2702
  children: initials
2524
- }) : jsxs(Fragment, {
2525
- children: [jsx(Admin, {}), initials ? jsx("div", {
2703
+ }) : /*#__PURE__*/jsxs(Fragment, {
2704
+ children: [/*#__PURE__*/jsx(Admin, {}), initials ? /*#__PURE__*/jsx("div", {
2526
2705
  style: {
2527
2706
  position: 'absolute',
2528
2707
  fontSize: '14px',
@@ -2533,10 +2712,10 @@ var UserMenu = function UserMenu(_ref) {
2533
2712
  children: initials
2534
2713
  }) : null]
2535
2714
  })
2536
- }), isOpen ? jsx(Paper, {
2715
+ }), isOpen ? /*#__PURE__*/jsx(Paper, {
2537
2716
  "data-testid": "userMenu",
2538
2717
  sx: styles$4.container,
2539
- children: jsx(ClickAwayListener, {
2718
+ children: /*#__PURE__*/jsx(ClickAwayListener, {
2540
2719
  mouseEvent: "onMouseDown",
2541
2720
  onClickAway: function onClickAway(event) {
2542
2721
  var _toggleRef$current;
@@ -2545,7 +2724,7 @@ var UserMenu = function UserMenu(_ref) {
2545
2724
  }
2546
2725
  onClose();
2547
2726
  },
2548
- children: jsx(MenuList, {
2727
+ children: /*#__PURE__*/jsx(MenuList, {
2549
2728
  sx: styles$4.userMenu,
2550
2729
  variant: "menu",
2551
2730
  children: children
@@ -2555,6 +2734,23 @@ var UserMenu = function UserMenu(_ref) {
2555
2734
  });
2556
2735
  };
2557
2736
 
2737
+ /* *
2738
+ * Licensed under the Apache License, Version 2.0 (the "License");
2739
+ * you may not use this file except in compliance with the License.
2740
+ * You may obtain a copy of the License at
2741
+ *
2742
+ * http://www.apache.org/licenses/LICENSE-2.0
2743
+ *
2744
+ * Unless required by applicable law or agreed to in writing, software
2745
+ * distributed under the License is distributed on an "AS IS" BASIS,
2746
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2747
+ * See the License for the specific language governing permissions and
2748
+ * limitations under the License.
2749
+ *
2750
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2751
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2752
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2753
+ * */
2558
2754
  var MenuItemTheme = function MenuItemTheme(_ref) {
2559
2755
  var enableSpecialThemes = _ref.enableSpecialThemes;
2560
2756
  var _useThemeContext = useThemeContext(),
@@ -2562,46 +2758,46 @@ var MenuItemTheme = function MenuItemTheme(_ref) {
2562
2758
  setThemeName = _useThemeContext.setThemeName;
2563
2759
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
2564
2760
  t = _useTranslation.t;
2565
- return jsx(MenuItem, {
2761
+ return /*#__PURE__*/jsx(MenuItem, {
2566
2762
  divider: true,
2567
- children: jsxs(Grid, {
2763
+ children: /*#__PURE__*/jsxs(Grid, {
2568
2764
  container: true,
2569
- children: [jsx(Grid, {
2765
+ children: [/*#__PURE__*/jsx(Grid, {
2570
2766
  children: t('shared-choose-app-mode')
2571
- }), jsx(Grid, {
2572
- children: jsxs(RadioGroup, {
2767
+ }), /*#__PURE__*/jsx(Grid, {
2768
+ children: /*#__PURE__*/jsxs(RadioGroup, {
2573
2769
  onChange: function onChange(event, value) {
2574
2770
  if (value && setThemeName) {
2575
2771
  setThemeName(value);
2576
2772
  }
2577
2773
  },
2578
- children: [jsx(FormControlLabel, {
2579
- control: jsx(Radio, {
2774
+ children: [/*#__PURE__*/jsx(FormControlLabel, {
2775
+ control: /*#__PURE__*/jsx(Radio, {
2580
2776
  checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.LIGHT_THEME
2581
2777
  }),
2582
2778
  label: t('shared-light'),
2583
2779
  value: ThemeTypes.LIGHT_THEME
2584
- }), jsx(FormControlLabel, {
2585
- control: jsx(Radio, {
2780
+ }), /*#__PURE__*/jsx(FormControlLabel, {
2781
+ control: /*#__PURE__*/jsx(Radio, {
2586
2782
  checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.DARK_THEME
2587
2783
  }),
2588
2784
  label: t('shared-dark'),
2589
2785
  value: ThemeTypes.DARK_THEME
2590
- }), enableSpecialThemes ? jsxs(Fragment, {
2591
- children: [jsx(FormControlLabel, {
2592
- control: jsx(Radio, {
2786
+ }), enableSpecialThemes ? /*#__PURE__*/jsxs(Fragment, {
2787
+ children: [/*#__PURE__*/jsx(FormControlLabel, {
2788
+ control: /*#__PURE__*/jsx(Radio, {
2593
2789
  checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.DEMO_THEME
2594
2790
  }),
2595
2791
  label: "Demo",
2596
2792
  value: ThemeTypes.DEMO_THEME
2597
- }), jsx(FormControlLabel, {
2598
- control: jsx(Radio, {
2793
+ }), /*#__PURE__*/jsx(FormControlLabel, {
2794
+ control: /*#__PURE__*/jsx(Radio, {
2599
2795
  checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.XMAS_THEME
2600
2796
  }),
2601
2797
  label: "" + t('shared-xmas'),
2602
2798
  value: ThemeTypes.XMAS_THEME
2603
- }), jsx(FormControlLabel, {
2604
- control: jsx(Radio, {
2799
+ }), /*#__PURE__*/jsx(FormControlLabel, {
2800
+ control: /*#__PURE__*/jsx(Radio, {
2605
2801
  checked: (namedTheme == null ? void 0 : namedTheme.name) === ThemeTypes.EUMETNET_THEME
2606
2802
  }),
2607
2803
  label: "EUMETNET",
@@ -2614,9 +2810,26 @@ var MenuItemTheme = function MenuItemTheme(_ref) {
2614
2810
  });
2615
2811
  };
2616
2812
 
2617
- // drag handles will be handled by DraggableResizable/Resizable
2813
+ /* *
2814
+ * Licensed under the Apache License, Version 2.0 (the "License");
2815
+ * you may not use this file except in compliance with the License.
2816
+ * You may obtain a copy of the License at
2817
+ *
2818
+ * http://www.apache.org/licenses/LICENSE-2.0
2819
+ *
2820
+ * Unless required by applicable law or agreed to in writing, software
2821
+ * distributed under the License is distributed on an "AS IS" BASIS,
2822
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2823
+ * See the License for the specific language governing permissions and
2824
+ * limitations under the License.
2825
+ *
2826
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2827
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2828
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2829
+ * */
2830
+
2618
2831
  var ToolFooter = function ToolFooter() {
2619
- return jsx(Box, {
2832
+ return /*#__PURE__*/jsx(Box, {
2620
2833
  component: "footer",
2621
2834
  role: "contentinfo",
2622
2835
  sx: {
@@ -2629,6 +2842,24 @@ var ToolFooter = function ToolFooter() {
2629
2842
  });
2630
2843
  };
2631
2844
 
2845
+ /* *
2846
+ * Licensed under the Apache License, Version 2.0 (the "License");
2847
+ * you may not use this file except in compliance with the License.
2848
+ * You may obtain a copy of the License at
2849
+ *
2850
+ * http://www.apache.org/licenses/LICENSE-2.0
2851
+ *
2852
+ * Unless required by applicable law or agreed to in writing, software
2853
+ * distributed under the License is distributed on an "AS IS" BASIS,
2854
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2855
+ * See the License for the specific language governing permissions and
2856
+ * limitations under the License.
2857
+ *
2858
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2859
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2860
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2861
+ * */
2862
+
2632
2863
  var headerStyle = {
2633
2864
  containerType: 'inline-size',
2634
2865
  containerName: 'tool-header',
@@ -2704,7 +2935,7 @@ var ToolHeader = function ToolHeader(_ref) {
2704
2935
  _ref$rightHeaderCompo = _ref.rightHeaderComponent,
2705
2936
  rightHeaderComponent = _ref$rightHeaderCompo === void 0 ? null : _ref$rightHeaderCompo,
2706
2937
  _ref$closeIcon = _ref.closeIcon,
2707
- closeIcon = _ref$closeIcon === void 0 ? jsx(Close, {
2938
+ closeIcon = _ref$closeIcon === void 0 ? /*#__PURE__*/jsx(Close, {
2708
2939
  "data-testid": "CloseIcon"
2709
2940
  }) : _ref$closeIcon;
2710
2941
  var styles = getStyle(size);
@@ -2713,7 +2944,7 @@ var ToolHeader = function ToolHeader(_ref) {
2713
2944
  var columnSizeLeft = title ? columnSizeIcon : 12 - columnSizeIcon;
2714
2945
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
2715
2946
  t = _useTranslation.t;
2716
- return jsx(Box, {
2947
+ return /*#__PURE__*/jsx(Box, {
2717
2948
  "aria-label": "toolheader",
2718
2949
  className: className,
2719
2950
  component: "header",
@@ -2725,7 +2956,7 @@ var ToolHeader = function ToolHeader(_ref) {
2725
2956
  zIndex: 2,
2726
2957
  cursor: isDraggable ? 'move' : null
2727
2958
  }),
2728
- children: jsxs(Grid, {
2959
+ children: /*#__PURE__*/jsxs(Grid, {
2729
2960
  alignItems: "center",
2730
2961
  container: true,
2731
2962
  justifyContent: "space-between",
@@ -2733,14 +2964,14 @@ var ToolHeader = function ToolHeader(_ref) {
2733
2964
  padding: styles.padding,
2734
2965
  height: styles.height
2735
2966
  },
2736
- children: [jsx(Grid, {
2967
+ children: [/*#__PURE__*/jsx(Grid, {
2737
2968
  className: "header-left",
2738
2969
  size: columnSizeLeft,
2739
2970
  sx: {
2740
2971
  paddingRight: 1
2741
2972
  },
2742
2973
  children: leftHeaderComponent != null ? leftHeaderComponent : null
2743
- }), jsx(Grid, {
2974
+ }), /*#__PURE__*/jsx(Grid, {
2744
2975
  alignItems: "center",
2745
2976
  className: "header-title",
2746
2977
  container: true,
@@ -2749,7 +2980,7 @@ var ToolHeader = function ToolHeader(_ref) {
2749
2980
  sx: {
2750
2981
  minHeight: 12
2751
2982
  },
2752
- children: title ? jsx(Typography, {
2983
+ children: title ? /*#__PURE__*/jsx(Typography, {
2753
2984
  noWrap: true,
2754
2985
  role: "heading",
2755
2986
  sx: {
@@ -2762,18 +2993,18 @@ var ToolHeader = function ToolHeader(_ref) {
2762
2993
  variant: "h2",
2763
2994
  children: title
2764
2995
  }) : null
2765
- }), jsxs(Grid, {
2996
+ }), /*#__PURE__*/jsxs(Grid, {
2766
2997
  className: "header-right",
2767
2998
  container: true,
2768
2999
  justifyContent: "flex-end",
2769
3000
  size: columnSizeIcon,
2770
- children: [rightHeaderComponent != null ? rightHeaderComponent : null, onClose ? jsx(CustomTooltip, {
3001
+ children: [rightHeaderComponent != null ? rightHeaderComponent : null, onClose ? /*#__PURE__*/jsx(CustomTooltip, {
2771
3002
  placement: "bottom",
2772
3003
  sx: {
2773
3004
  pointerEvents: 'none'
2774
3005
  },
2775
3006
  title: t('shared-close'),
2776
- children: jsx(CustomIconButton, {
3007
+ children: /*#__PURE__*/jsx(CustomIconButton, {
2777
3008
  "data-testid": "closeBtn",
2778
3009
  onClick: onClose,
2779
3010
  onTouchEnd: onClose,
@@ -2828,12 +3059,12 @@ var ToolContainer = function ToolContainer(_ref) {
2828
3059
  dragHandleIcon = _ref.dragHandleIcon,
2829
3060
  closeIcon = _ref.closeIcon,
2830
3061
  props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
2831
- return jsxs(Paper, Object.assign({
3062
+ return /*#__PURE__*/jsxs(Paper, Object.assign({
2832
3063
  elevation: elevation,
2833
3064
  sx: styles$3.container
2834
3065
  }, props, {
2835
- children: [jsx(ErrorBoundary, {
2836
- children: jsx(ToolHeader, {
3066
+ children: [/*#__PURE__*/jsx(ErrorBoundary, {
3067
+ children: /*#__PURE__*/jsx(ToolHeader, {
2837
3068
  className: headerClassName,
2838
3069
  closeIcon: closeIcon,
2839
3070
  dragHandleIcon: dragHandleIcon,
@@ -2844,13 +3075,13 @@ var ToolContainer = function ToolContainer(_ref) {
2844
3075
  size: size,
2845
3076
  title: title
2846
3077
  })
2847
- }), jsx(Box, {
3078
+ }), /*#__PURE__*/jsx(Box, {
2848
3079
  style: {
2849
3080
  maxHeight: maxHeight
2850
3081
  },
2851
3082
  sx: styles$3.content,
2852
3083
  children: children
2853
- }), isResizable ? jsx(ToolFooter, {}) : null]
3084
+ }), isResizable ? /*#__PURE__*/jsx(ToolFooter, {}) : null]
2854
3085
  }));
2855
3086
  };
2856
3087
 
@@ -2877,6 +3108,7 @@ var getNewPositionSize = function getNewPositionSize(element, boundsNode, isRigh
2877
3108
  var elementStyle = getComputedStyle(element);
2878
3109
  var initialX = parseFloat(isRightAligned ? elementStyle.right : elementStyle.left);
2879
3110
  var initialY = parseFloat(elementStyle.top); // only use style.top since we don't support bottom alignment (yet?)
3111
+
2880
3112
  var elementBboxHeight = newSize !== undefined && typeof newSize.height === 'number' ? newSize.height : elementBbox.height;
2881
3113
  var elementBboxWidth = newSize !== undefined && typeof newSize.width === 'number' ? newSize.width : elementBbox.width;
2882
3114
  var isElementLarger = elementBboxHeight >= parentBbox.height;
@@ -2889,15 +3121,18 @@ var getNewPositionSize = function getNewPositionSize(element, boundsNode, isRigh
2889
3121
  if (isElementWider) {
2890
3122
  newX = isRightAligned ? initialX : -initialX;
2891
3123
  }
3124
+
2892
3125
  // vertical constrains
2893
3126
  if (isElementLarger) {
2894
3127
  newY = -initialY;
2895
3128
  }
3129
+
2896
3130
  // top aligned
2897
3131
  var newTop = newY + initialY + newHeight;
2898
3132
  if (newTop > parentBbox.height) {
2899
3133
  newY = parentBbox.height - newTop + position.y;
2900
3134
  }
3135
+
2901
3136
  // right aligned
2902
3137
  if (isRightAligned) {
2903
3138
  var newLeft = parentBbox.x + parentBbox.width - initialX + newX - newWidth;
@@ -2943,10 +3178,12 @@ var useHandleSizeFromOutsideComponent = function useHandleSizeFromOutsideCompone
2943
3178
  var _nodeRef$current;
2944
3179
  return bounds === 'parent' ? (_nodeRef$current = nodeRef.current) == null ? void 0 : _nodeRef$current.parentNode : document.querySelector(bounds);
2945
3180
  }, [bounds, nodeRef]);
3181
+
2946
3182
  // store the position as ref so we can access it in another ref
2947
3183
  var refPosition = React.useRef(position);
2948
3184
  refPosition.current = position;
2949
3185
  var lastSize = React.useRef(startSize);
3186
+
2950
3187
  // handle size from outside component
2951
3188
  React.useEffect(function () {
2952
3189
  var boundsNode = getBoundsNode();
@@ -2961,6 +3198,7 @@ var useHandleSizeFromOutsideComponent = function useHandleSizeFromOutsideCompone
2961
3198
  }
2962
3199
  }
2963
3200
  }, [startSize, isRightAligned, lastSize, getBoundsNode, nodeRef, updateDomDirectly, onChangeSize]);
3201
+
2964
3202
  // observe parent div dimensions
2965
3203
  var resizeObserverRef = React.useRef(new ResizeObserver(function (entry) {
2966
3204
  var boundsTarget = entry[0].target;
@@ -3043,6 +3281,8 @@ var calculateNewPosition = function calculateNewPosition(position, isRightAligne
3043
3281
  y: y
3044
3282
  };
3045
3283
  };
3284
+ // source of opening
3285
+
3046
3286
  var DraggableComponent = function DraggableComponent(_ref) {
3047
3287
  var title = _ref.title,
3048
3288
  _ref$bounds = _ref.bounds,
@@ -3173,8 +3413,8 @@ var DraggableComponent = function DraggableComponent(_ref) {
3173
3413
  setSize(size);
3174
3414
  }
3175
3415
  });
3176
- return isOpen ? jsxs(Fragment, {
3177
- children: [isDragging ? jsx(Box, {
3416
+ return isOpen ? /*#__PURE__*/jsxs(Fragment, {
3417
+ children: [isDragging ? /*#__PURE__*/jsx(Box, {
3178
3418
  "data-testid": "dragging-overlay",
3179
3419
  sx: {
3180
3420
  top: 0,
@@ -3184,7 +3424,7 @@ var DraggableComponent = function DraggableComponent(_ref) {
3184
3424
  position: 'absolute',
3185
3425
  zIndex: 999
3186
3426
  }
3187
- }) : null, jsx(DraggableComponent$1, {
3427
+ }) : null, /*#__PURE__*/jsx(DraggableComponent$1, {
3188
3428
  bounds: bounds,
3189
3429
  cancel: cancel,
3190
3430
  handle: "." + headerClassName,
@@ -3193,7 +3433,7 @@ var DraggableComponent = function DraggableComponent(_ref) {
3193
3433
  onStop: onStopDrag,
3194
3434
  position: position,
3195
3435
  setIsDragging: setIsDragging,
3196
- children: jsx(Box, {
3436
+ children: /*#__PURE__*/jsx(Box, {
3197
3437
  "aria-label": title,
3198
3438
  className: "toolContainerDraggable",
3199
3439
  ref: nodeRef,
@@ -3208,14 +3448,14 @@ var DraggableComponent = function DraggableComponent(_ref) {
3208
3448
  }
3209
3449
  }),
3210
3450
  tabIndex: -1,
3211
- children: jsx(ResizeComponent, Object.assign({}, props, {
3451
+ children: /*#__PURE__*/jsx(ResizeComponent, Object.assign({}, props, {
3212
3452
  nodeRef: nodeRef,
3213
3453
  onResize: onResize,
3214
3454
  onResizeStart: onStartResize,
3215
3455
  onResizeStop: onStopResize,
3216
3456
  setSize: setSize,
3217
3457
  size: size,
3218
- children: jsx(ToolContainer, {
3458
+ children: /*#__PURE__*/jsx(ToolContainer, {
3219
3459
  className: className,
3220
3460
  closeIcon: closeIcon,
3221
3461
  dragHandleIcon: dragHandleIcon,
@@ -3237,12 +3477,29 @@ var DraggableComponent = function DraggableComponent(_ref) {
3237
3477
  }) : null;
3238
3478
  };
3239
3479
 
3240
- var segmentStyle = {
3241
- margin: '0 2px',
3242
- verticalAlign: 'middle',
3243
- fontSize: 14,
3244
- fontWeight: 500,
3245
- letterSpacing: 0.25,
3480
+ /* *
3481
+ * Licensed under the Apache License, Version 2.0 (the "License");
3482
+ * you may not use this file except in compliance with the License.
3483
+ * You may obtain a copy of the License at
3484
+ *
3485
+ * http://www.apache.org/licenses/LICENSE-2.0
3486
+ *
3487
+ * Unless required by applicable law or agreed to in writing, software
3488
+ * distributed under the License is distributed on an "AS IS" BASIS,
3489
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3490
+ * See the License for the specific language governing permissions and
3491
+ * limitations under the License.
3492
+ *
3493
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3494
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3495
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3496
+ * */
3497
+ var segmentStyle = {
3498
+ margin: '0 2px',
3499
+ verticalAlign: 'middle',
3500
+ fontSize: 14,
3501
+ fontWeight: 500,
3502
+ letterSpacing: 0.25,
3246
3503
  justifyContent: 'center'
3247
3504
  };
3248
3505
  var styles$2 = {
@@ -3267,7 +3524,7 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
3267
3524
  type = _ref$type === void 0 ? 'text' : _ref$type,
3268
3525
  children = _ref.children;
3269
3526
  if (type === 'divider') {
3270
- return jsx(Typography, {
3527
+ return /*#__PURE__*/jsx(Typography, {
3271
3528
  component: "span",
3272
3529
  "data-testid": "segment-divider",
3273
3530
  sx: styles$2.divider,
@@ -3275,7 +3532,7 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
3275
3532
  });
3276
3533
  }
3277
3534
  if (type === 'icon') {
3278
- return jsx(Typography, {
3535
+ return /*#__PURE__*/jsx(Typography, {
3279
3536
  component: "span",
3280
3537
  "data-testid": "segment-icon",
3281
3538
  sx: styles$2.icon,
@@ -3283,14 +3540,14 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
3283
3540
  });
3284
3541
  }
3285
3542
  if (type === 'connect') {
3286
- return jsx(Typography, {
3543
+ return /*#__PURE__*/jsx(Typography, {
3287
3544
  component: "span",
3288
3545
  "data-testid": "segment-connect",
3289
3546
  sx: styles$2.connect,
3290
3547
  children: children
3291
3548
  });
3292
3549
  }
3293
- return jsx(Typography, {
3550
+ return /*#__PURE__*/jsx(Typography, {
3294
3551
  component: "span",
3295
3552
  "data-testid": "segment-text",
3296
3553
  sx: segmentStyle,
@@ -3298,6 +3555,24 @@ var ShortCutSegment = function ShortCutSegment(_ref) {
3298
3555
  });
3299
3556
  };
3300
3557
 
3558
+ /* *
3559
+ * Licensed under the Apache License, Version 2.0 (the "License");
3560
+ * you may not use this file except in compliance with the License.
3561
+ * You may obtain a copy of the License at
3562
+ *
3563
+ * http://www.apache.org/licenses/LICENSE-2.0
3564
+ *
3565
+ * Unless required by applicable law or agreed to in writing, software
3566
+ * distributed under the License is distributed on an "AS IS" BASIS,
3567
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3568
+ * See the License for the specific language governing permissions and
3569
+ * limitations under the License.
3570
+ *
3571
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3572
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3573
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3574
+ * */
3575
+ /* eslint-disable i18next/no-literal-string */
3301
3576
  var ShortcutList = function ShortcutList(_ref) {
3302
3577
  var _ref$platform = _ref.platform,
3303
3578
  platform = _ref$platform === void 0 ? 'windows' : _ref$platform;
@@ -3305,400 +3580,400 @@ var ShortcutList = function ShortcutList(_ref) {
3305
3580
  t = _useTranslation.t;
3306
3581
  var shortcuts = [{
3307
3582
  titleKey: 'shared-choose-selected-time',
3308
- description: jsx(ShortCutSegment, {
3583
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3309
3584
  children: t('shared-shortcut-left-click')
3310
3585
  })
3311
3586
  }, {
3312
3587
  titleKey: 'shared-move-selected-time',
3313
- description: jsx(ShortCutSegment, {
3588
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3314
3589
  children: t('shared-shortcut-mouse-scroll-timeslider')
3315
3590
  })
3316
3591
  }, {
3317
3592
  titleKey: 'shared-move-one-step',
3318
- description: jsxs(Fragment, {
3319
- children: [jsx(ShortCutSegment, {
3593
+ description: /*#__PURE__*/jsxs(Fragment, {
3594
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3320
3595
  type: "icon",
3321
3596
  children: "Ctrl"
3322
- }), jsx(ShortCutSegment, {
3597
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3323
3598
  type: "connect",
3324
3599
  children: "+"
3325
- }), jsx(ShortCutSegment, {
3600
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3326
3601
  type: "icon",
3327
- children: jsx(ArrowLeft, {})
3328
- }), jsx(ShortCutSegment, {
3602
+ children: /*#__PURE__*/jsx(ArrowLeft, {})
3603
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3329
3604
  type: "divider",
3330
3605
  children: t('shared-shortcut-or')
3331
- }), jsx(ShortCutSegment, {
3606
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3332
3607
  type: "icon",
3333
- children: jsx(ArrowRight, {})
3608
+ children: /*#__PURE__*/jsx(ArrowRight, {})
3334
3609
  })]
3335
3610
  }),
3336
- descriptionMac: jsxs(Fragment, {
3337
- children: [jsx(ShortCutSegment, {
3611
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3612
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3338
3613
  type: "icon",
3339
3614
  children: "Ctrl"
3340
- }), jsx(ShortCutSegment, {
3615
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3341
3616
  type: "connect",
3342
3617
  children: "+"
3343
- }), jsx(ShortCutSegment, {
3618
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3344
3619
  type: "icon",
3345
3620
  children: "Shift"
3346
- }), jsx(ShortCutSegment, {
3621
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3347
3622
  type: "connect",
3348
3623
  children: "+"
3349
- }), jsx(ShortCutSegment, {
3624
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3350
3625
  type: "icon",
3351
- children: jsx(ArrowLeft, {})
3352
- }), jsx(ShortCutSegment, {
3626
+ children: /*#__PURE__*/jsx(ArrowLeft, {})
3627
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3353
3628
  type: "divider",
3354
3629
  children: t('shared-shortcut-or')
3355
- }), jsx(ShortCutSegment, {
3630
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3356
3631
  type: "icon",
3357
- children: jsx(ArrowRight, {})
3632
+ children: /*#__PURE__*/jsx(ArrowRight, {})
3358
3633
  })]
3359
3634
  })
3360
3635
  }, {
3361
3636
  titleKey: 'shared-toggle-timeslider',
3362
- description: jsx(ShortCutSegment, {
3637
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3363
3638
  type: "icon",
3364
3639
  children: "T"
3365
3640
  })
3366
3641
  }, {
3367
3642
  titleKey: 'shared-timeslider-scale',
3368
- description: jsx(ShortCutSegment, {
3643
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3369
3644
  children: t('shared-shortcut-hold-click')
3370
3645
  })
3371
3646
  }, {
3372
3647
  titleKey: 'shared-expand-timeslider-scale',
3373
- description: jsxs(Fragment, {
3374
- children: [jsx(ShortCutSegment, {
3648
+ description: /*#__PURE__*/jsxs(Fragment, {
3649
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3375
3650
  type: "icon",
3376
3651
  children: "Ctrl"
3377
- }), jsx(ShortCutSegment, {
3652
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3378
3653
  children: t('shared-shortcut-scroll')
3379
3654
  })]
3380
3655
  })
3381
3656
  }, {
3382
3657
  titleKey: 'shared-mouseover-selected-time',
3383
- description: jsx(ShortCutSegment, {
3658
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3384
3659
  children: t('shared-shortcut-hover')
3385
3660
  })
3386
3661
  }, {
3387
3662
  titleKey: 'shared-mouseover-on-off',
3388
- description: jsxs(Fragment, {
3389
- children: [jsx(ShortCutSegment, {
3663
+ description: /*#__PURE__*/jsxs(Fragment, {
3664
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3390
3665
  type: "icon",
3391
3666
  children: "Ctrl"
3392
- }), jsx(ShortCutSegment, {
3667
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3393
3668
  type: "connect",
3394
3669
  children: "+"
3395
- }), jsx(ShortCutSegment, {
3670
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3396
3671
  type: "icon",
3397
3672
  children: "Alt"
3398
- }), jsx(ShortCutSegment, {
3673
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3399
3674
  type: "connect",
3400
3675
  children: "+"
3401
- }), jsx(ShortCutSegment, {
3676
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3402
3677
  type: "icon",
3403
3678
  children: "h"
3404
3679
  })]
3405
3680
  }),
3406
- descriptionMac: jsxs(Fragment, {
3407
- children: [jsx(ShortCutSegment, {
3681
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3682
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3408
3683
  type: "icon",
3409
3684
  children: "Ctrl"
3410
- }), jsx(ShortCutSegment, {
3685
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3411
3686
  type: "connect",
3412
3687
  children: "+"
3413
- }), jsx(ShortCutSegment, {
3688
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3414
3689
  type: "icon",
3415
- children: jsx(KeyOption, {})
3416
- }), jsx(ShortCutSegment, {
3690
+ children: /*#__PURE__*/jsx(KeyOption, {})
3691
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3417
3692
  type: "connect",
3418
3693
  children: "+"
3419
- }), jsx(ShortCutSegment, {
3694
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3420
3695
  type: "icon",
3421
3696
  children: "h"
3422
3697
  })]
3423
3698
  })
3424
3699
  }, {
3425
3700
  titleKey: 'shared-toggle-syncviewer',
3426
- description: jsx(ShortCutSegment, {
3701
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3427
3702
  type: "icon",
3428
3703
  children: "Y"
3429
3704
  })
3430
3705
  }, {
3431
3706
  titleKey: 'shared-change-timestep-or-speed',
3432
- description: jsxs(Fragment, {
3433
- children: [jsx(ShortCutSegment, {
3707
+ description: /*#__PURE__*/jsxs(Fragment, {
3708
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3434
3709
  type: "icon",
3435
3710
  children: "Ctrl"
3436
- }), jsx(ShortCutSegment, {
3711
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3437
3712
  type: "connect",
3438
3713
  children: "+"
3439
- }), jsx(ShortCutSegment, {
3714
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3440
3715
  type: "icon",
3441
- children: jsx(ArrowUp, {})
3442
- }), jsx(ShortCutSegment, {
3716
+ children: /*#__PURE__*/jsx(ArrowUp, {})
3717
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3443
3718
  type: "divider",
3444
3719
  children: t('shared-shortcut-or')
3445
- }), jsx(ShortCutSegment, {
3720
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3446
3721
  type: "icon",
3447
- children: jsx(ArrowDown, {})
3448
- }), jsxs(ShortCutSegment, {
3722
+ children: /*#__PURE__*/jsx(ArrowDown, {})
3723
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3449
3724
  children: ["(", t('shared-shortcut-when-active'), ")"]
3450
3725
  })]
3451
3726
  }),
3452
- descriptionMac: jsxs(Fragment, {
3453
- children: [jsx(ShortCutSegment, {
3727
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3728
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3454
3729
  type: "icon",
3455
- children: jsx(KeyCommand, {})
3456
- }), jsx(ShortCutSegment, {
3730
+ children: /*#__PURE__*/jsx(KeyCommand, {})
3731
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3457
3732
  type: "connect",
3458
3733
  children: "+"
3459
- }), jsx(ShortCutSegment, {
3734
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3460
3735
  type: "icon",
3461
- children: jsx(ArrowUp, {})
3462
- }), jsx(ShortCutSegment, {
3736
+ children: /*#__PURE__*/jsx(ArrowUp, {})
3737
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3463
3738
  type: "divider",
3464
3739
  children: t('shared-shortcut-or')
3465
- }), jsx(ShortCutSegment, {
3740
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3466
3741
  type: "icon",
3467
- children: jsx(ArrowDown, {})
3468
- }), jsxs(ShortCutSegment, {
3742
+ children: /*#__PURE__*/jsx(ArrowDown, {})
3743
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3469
3744
  children: ["(", t('shared-shortcut-when-active'), ")"]
3470
3745
  })]
3471
3746
  })
3472
3747
  }, {
3473
3748
  titleKey: 'shared-return-to-current-time',
3474
- description: jsx(ShortCutSegment, {
3749
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3475
3750
  type: "icon",
3476
3751
  children: t('shared-shortcut-home')
3477
3752
  }),
3478
- descriptionMac: jsxs(Fragment, {
3479
- children: [jsx(ShortCutSegment, {
3753
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3754
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3480
3755
  type: "icon",
3481
3756
  children: "fn"
3482
- }), jsx(ShortCutSegment, {
3757
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3483
3758
  type: "connect",
3484
3759
  children: "+"
3485
- }), jsx(ShortCutSegment, {
3760
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3486
3761
  type: "icon",
3487
- children: jsx(ArrowLeft, {})
3762
+ children: /*#__PURE__*/jsx(ArrowLeft, {})
3488
3763
  })]
3489
3764
  })
3490
3765
  }, {
3491
3766
  titleKey: 'shared-toggle-layerinformation',
3492
- description: jsx(ShortCutSegment, {
3767
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3493
3768
  type: "icon",
3494
3769
  children: "D"
3495
3770
  })
3496
3771
  }, {
3497
3772
  titleKey: 'shared-change-layer-values-scrolling',
3498
- description: jsxs(Fragment, {
3499
- children: [jsx(ShortCutSegment, {
3773
+ description: /*#__PURE__*/jsxs(Fragment, {
3774
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3500
3775
  type: "icon",
3501
3776
  children: "Ctrl"
3502
- }), jsxs(ShortCutSegment, {
3777
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3503
3778
  children: [' ', t('shared-shortcut-mouse-scroll')]
3504
3779
  })]
3505
3780
  }),
3506
- descriptionMac: jsxs(Fragment, {
3507
- children: [jsx(ShortCutSegment, {
3781
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3782
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3508
3783
  type: "icon",
3509
- children: jsx(KeyCommand, {})
3510
- }), jsxs(ShortCutSegment, {
3784
+ children: /*#__PURE__*/jsx(KeyCommand, {})
3785
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3511
3786
  children: [' ', t('shared-shortcut-mouse-scroll')]
3512
3787
  })]
3513
3788
  })
3514
3789
  }, {
3515
3790
  titleKey: 'shared-change-layermanager-small',
3516
- description: jsxs(Fragment, {
3517
- children: [jsx(ShortCutSegment, {
3791
+ description: /*#__PURE__*/jsxs(Fragment, {
3792
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3518
3793
  type: "icon",
3519
3794
  children: "Ctrl"
3520
- }), jsx(ShortCutSegment, {
3795
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3521
3796
  children: " + "
3522
- }), jsx(ShortCutSegment, {
3797
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3523
3798
  type: "icon",
3524
3799
  children: "Alt"
3525
- }), jsx(ShortCutSegment, {
3800
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3526
3801
  children: " + "
3527
- }), jsx(ShortCutSegment, {
3802
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3528
3803
  type: "icon",
3529
3804
  children: "s"
3530
3805
  })]
3531
3806
  }),
3532
- descriptionMac: jsxs(Fragment, {
3533
- children: [jsx(ShortCutSegment, {
3807
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3808
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3534
3809
  type: "icon",
3535
3810
  children: "Ctrl"
3536
- }), jsx(ShortCutSegment, {
3811
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3537
3812
  children: " + "
3538
- }), jsx(ShortCutSegment, {
3813
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3539
3814
  type: "icon",
3540
- children: jsx(KeyOption, {})
3541
- }), jsx(ShortCutSegment, {
3815
+ children: /*#__PURE__*/jsx(KeyOption, {})
3816
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3542
3817
  children: " + "
3543
- }), jsx(ShortCutSegment, {
3818
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3544
3819
  type: "icon",
3545
3820
  children: "s"
3546
3821
  })]
3547
3822
  })
3548
3823
  }, {
3549
3824
  titleKey: 'shared-change-layermanager-medium',
3550
- description: jsxs(Fragment, {
3551
- children: [jsx(ShortCutSegment, {
3825
+ description: /*#__PURE__*/jsxs(Fragment, {
3826
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3552
3827
  type: "icon",
3553
3828
  children: "Ctrl"
3554
- }), jsx(ShortCutSegment, {
3829
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3555
3830
  children: " + "
3556
- }), jsx(ShortCutSegment, {
3831
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3557
3832
  type: "icon",
3558
3833
  children: "Alt"
3559
- }), jsx(ShortCutSegment, {
3834
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3560
3835
  children: " + "
3561
- }), jsx(ShortCutSegment, {
3836
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3562
3837
  type: "icon",
3563
3838
  children: "m"
3564
3839
  })]
3565
3840
  }),
3566
- descriptionMac: jsxs(Fragment, {
3567
- children: [jsx(ShortCutSegment, {
3841
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3842
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3568
3843
  type: "icon",
3569
3844
  children: "Ctrl"
3570
- }), jsx(ShortCutSegment, {
3845
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3571
3846
  children: " + "
3572
- }), jsx(ShortCutSegment, {
3847
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3573
3848
  type: "icon",
3574
- children: jsx(KeyOption, {})
3575
- }), jsx(ShortCutSegment, {
3849
+ children: /*#__PURE__*/jsx(KeyOption, {})
3850
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3576
3851
  children: " + "
3577
- }), jsx(ShortCutSegment, {
3852
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3578
3853
  type: "icon",
3579
3854
  children: "m"
3580
3855
  })]
3581
3856
  })
3582
3857
  }, {
3583
3858
  titleKey: 'shared-change-layermanager-large',
3584
- description: jsxs(Fragment, {
3585
- children: [jsx(ShortCutSegment, {
3859
+ description: /*#__PURE__*/jsxs(Fragment, {
3860
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3586
3861
  type: "icon",
3587
3862
  children: "Ctrl"
3588
- }), jsx(ShortCutSegment, {
3863
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3589
3864
  children: " + "
3590
- }), jsx(ShortCutSegment, {
3865
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3591
3866
  type: "icon",
3592
3867
  children: "Alt"
3593
- }), jsx(ShortCutSegment, {
3868
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3594
3869
  children: " + "
3595
- }), jsx(ShortCutSegment, {
3870
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3596
3871
  type: "icon",
3597
3872
  children: "l"
3598
3873
  })]
3599
3874
  }),
3600
- descriptionMac: jsxs(Fragment, {
3601
- children: [jsx(ShortCutSegment, {
3875
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3876
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3602
3877
  type: "icon",
3603
3878
  children: "Ctrl"
3604
- }), jsx(ShortCutSegment, {
3879
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3605
3880
  children: " + "
3606
- }), jsx(ShortCutSegment, {
3881
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3607
3882
  type: "icon",
3608
- children: jsx(KeyOption, {})
3609
- }), jsx(ShortCutSegment, {
3883
+ children: /*#__PURE__*/jsx(KeyOption, {})
3884
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3610
3885
  children: " + "
3611
- }), jsx(ShortCutSegment, {
3886
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3612
3887
  type: "icon",
3613
3888
  children: "l"
3614
3889
  })]
3615
3890
  })
3616
3891
  }, {
3617
3892
  titleKey: 'shared-shortcut-toggle-workspace-time-scroll',
3618
- description: jsx(ShortCutSegment, {
3893
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3619
3894
  type: "icon",
3620
3895
  children: "S"
3621
3896
  }),
3622
- descriptionMac: jsx(ShortCutSegment, {
3897
+ descriptionMac: /*#__PURE__*/jsx(ShortCutSegment, {
3623
3898
  type: "icon",
3624
3899
  children: "S"
3625
3900
  })
3626
3901
  }, {
3627
3902
  titleKey: 'shared-shortcut-open-location-search',
3628
- description: jsx(ShortCutSegment, {
3903
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3629
3904
  type: "icon",
3630
3905
  children: "F"
3631
3906
  }),
3632
- descriptionMac: jsx(ShortCutSegment, {
3907
+ descriptionMac: /*#__PURE__*/jsx(ShortCutSegment, {
3633
3908
  type: "icon",
3634
3909
  children: "F"
3635
3910
  })
3636
3911
  }, {
3637
3912
  titleKey: 'shared-shortcut-zoom-to-location',
3638
- description: jsxs(Fragment, {
3639
- children: [jsx(ShortCutSegment, {
3913
+ description: /*#__PURE__*/jsxs(Fragment, {
3914
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3640
3915
  type: "icon",
3641
3916
  children: "Shift"
3642
- }), jsxs(ShortCutSegment, {
3917
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3643
3918
  children: [" ", t('shared-shortcut-mouse-click')]
3644
3919
  })]
3645
3920
  }),
3646
- descriptionMac: jsxs(Fragment, {
3647
- children: [jsx(ShortCutSegment, {
3921
+ descriptionMac: /*#__PURE__*/jsxs(Fragment, {
3922
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3648
3923
  type: "icon",
3649
3924
  children: "Shift"
3650
- }), jsxs(ShortCutSegment, {
3925
+ }), /*#__PURE__*/jsxs(ShortCutSegment, {
3651
3926
  children: [" ", t('shared-shortcut-mouse-click')]
3652
3927
  })]
3653
3928
  })
3654
3929
  }, {
3655
3930
  titleKey: 'shared-shortcut-copy-view-preset-content-split-window',
3656
- description: jsxs(Fragment, {
3657
- children: [jsx(ShortCutSegment, {
3931
+ description: /*#__PURE__*/jsxs(Fragment, {
3932
+ children: [/*#__PURE__*/jsx(ShortCutSegment, {
3658
3933
  type: "icon",
3659
3934
  children: "Shift"
3660
- }), jsx(ShortCutSegment, {
3935
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3661
3936
  children: " + "
3662
- }), jsx(ShortCutSegment, {
3937
+ }), /*#__PURE__*/jsx(ShortCutSegment, {
3663
3938
  children: t('shared-shortcut-split-button')
3664
3939
  })]
3665
3940
  })
3666
3941
  }, {
3667
3942
  titleKey: 'shared-shortcut-toggle-location-info',
3668
- description: jsx(ShortCutSegment, {
3943
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3669
3944
  type: "icon",
3670
3945
  children: "I"
3671
3946
  }),
3672
- descriptionMac: jsx(ShortCutSegment, {
3947
+ descriptionMac: /*#__PURE__*/jsx(ShortCutSegment, {
3673
3948
  type: "icon",
3674
3949
  children: "I"
3675
3950
  })
3676
3951
  }, {
3677
3952
  titleKey: 'shared-shortcut-toggle-measure-tool',
3678
- description: jsx(ShortCutSegment, {
3953
+ description: /*#__PURE__*/jsx(ShortCutSegment, {
3679
3954
  type: "icon",
3680
3955
  children: "M"
3681
3956
  }),
3682
- descriptionMac: jsx(ShortCutSegment, {
3957
+ descriptionMac: /*#__PURE__*/jsx(ShortCutSegment, {
3683
3958
  type: "icon",
3684
3959
  children: "M"
3685
3960
  })
3686
3961
  }];
3687
- return jsx(List, {
3962
+ return /*#__PURE__*/jsx(List, {
3688
3963
  "data-testid": "list-" + platform,
3689
3964
  children: shortcuts.map(function (shortcut, index) {
3690
- return jsx(ListItem, {
3965
+ return /*#__PURE__*/jsx(ListItem, {
3691
3966
  divider: index !== shortcuts.length - 1,
3692
3967
  sx: {
3693
3968
  minHeight: 56
3694
3969
  },
3695
- children: jsxs(Grid, {
3970
+ children: /*#__PURE__*/jsxs(Grid, {
3696
3971
  alignItems: "center",
3697
3972
  container: true,
3698
3973
  direction: "row",
3699
3974
  justifyContent: "space-between",
3700
3975
  size: "grow",
3701
- children: [jsx(Grid, {
3976
+ children: [/*#__PURE__*/jsx(Grid, {
3702
3977
  sx: {
3703
3978
  fontSize: 12,
3704
3979
  fontWeight: 300,
@@ -3706,8 +3981,8 @@ var ShortcutList = function ShortcutList(_ref) {
3706
3981
  opacity: 0.67
3707
3982
  },
3708
3983
  children: t(shortcut.titleKey)
3709
- }), jsx(Grid, {
3710
- children: jsx(Box, {
3984
+ }), /*#__PURE__*/jsx(Grid, {
3985
+ children: /*#__PURE__*/jsx(Box, {
3711
3986
  sx: {
3712
3987
  alignItems: 'center'
3713
3988
  },
@@ -3720,11 +3995,28 @@ var ShortcutList = function ShortcutList(_ref) {
3720
3995
  });
3721
3996
  };
3722
3997
 
3998
+ /* *
3999
+ * Licensed under the Apache License, Version 2.0 (the "License");
4000
+ * you may not use this file except in compliance with the License.
4001
+ * You may obtain a copy of the License at
4002
+ *
4003
+ * http://www.apache.org/licenses/LICENSE-2.0
4004
+ *
4005
+ * Unless required by applicable law or agreed to in writing, software
4006
+ * distributed under the License is distributed on an "AS IS" BASIS,
4007
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4008
+ * See the License for the specific language governing permissions and
4009
+ * limitations under the License.
4010
+ *
4011
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4012
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
4013
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4014
+ * */
3723
4015
  var TabPanel = function TabPanel(_ref) {
3724
4016
  var children = _ref.children,
3725
4017
  value = _ref.value,
3726
4018
  index = _ref.index;
3727
- return jsx("div", {
4019
+ return /*#__PURE__*/jsx("div", {
3728
4020
  "aria-labelledby": "tab-" + index,
3729
4021
  hidden: value !== index,
3730
4022
  id: "tabpanel-" + index,
@@ -3748,33 +4040,50 @@ var CheatSheet = function CheatSheet() {
3748
4040
  var onChangeTab = function onChangeTab(_event, newValue) {
3749
4041
  setActiveTab(newValue);
3750
4042
  };
3751
- return jsxs(Box, {
4043
+ return /*#__PURE__*/jsxs(Box, {
3752
4044
  sx: styles$1.container,
3753
- children: [jsxs(Tabs, {
4045
+ children: [/*#__PURE__*/jsxs(Tabs, {
3754
4046
  "aria-label": "platform",
3755
4047
  onChange: onChangeTab,
3756
4048
  value: activeTab,
3757
- children: [jsx(Tab, {
4049
+ children: [/*#__PURE__*/jsx(Tab, {
3758
4050
  label: "Windows",
3759
4051
  sx: styles$1.tab
3760
- }), jsx(Tab, {
4052
+ }), /*#__PURE__*/jsx(Tab, {
3761
4053
  label: "Mac",
3762
4054
  sx: styles$1.tab
3763
4055
  })]
3764
- }), jsx(TabPanel, {
4056
+ }), /*#__PURE__*/jsx(TabPanel, {
3765
4057
  index: 0,
3766
4058
  value: activeTab,
3767
- children: jsx(ShortcutList, {})
3768
- }), jsx(TabPanel, {
4059
+ children: /*#__PURE__*/jsx(ShortcutList, {})
4060
+ }), /*#__PURE__*/jsx(TabPanel, {
3769
4061
  index: 1,
3770
4062
  value: activeTab,
3771
- children: jsx(ShortcutList, {
4063
+ children: /*#__PURE__*/jsx(ShortcutList, {
3772
4064
  platform: "mac"
3773
4065
  })
3774
4066
  })]
3775
4067
  });
3776
4068
  };
3777
4069
 
4070
+ /* *
4071
+ * Licensed under the Apache License, Version 2.0 (the "License");
4072
+ * you may not use this file except in compliance with the License.
4073
+ * You may obtain a copy of the License at
4074
+ *
4075
+ * http://www.apache.org/licenses/LICENSE-2.0
4076
+ *
4077
+ * Unless required by applicable law or agreed to in writing, software
4078
+ * distributed under the License is distributed on an "AS IS" BASIS,
4079
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4080
+ * See the License for the specific language governing permissions and
4081
+ * limitations under the License.
4082
+ *
4083
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4084
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
4085
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4086
+ * */
3778
4087
  var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
3779
4088
  var _React$useState = React.useState(false),
3780
4089
  open = _React$useState[0],
@@ -3787,24 +4096,24 @@ var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
3787
4096
  };
3788
4097
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
3789
4098
  t = _useTranslation.t;
3790
- return jsxs(Fragment, {
3791
- children: [jsx(MenuItem, {
4099
+ return /*#__PURE__*/jsxs(Fragment, {
4100
+ children: [/*#__PURE__*/jsx(MenuItem, {
3792
4101
  "data-testid": "cheatsheet-btn",
3793
4102
  divider: true,
3794
4103
  onClick: onOpen,
3795
- children: jsx(Grid, {
4104
+ children: /*#__PURE__*/jsx(Grid, {
3796
4105
  container: true,
3797
- children: jsx(Grid, {
4106
+ children: /*#__PURE__*/jsx(Grid, {
3798
4107
  children: t('shared-cheat-sheet')
3799
4108
  })
3800
4109
  })
3801
- }), jsx(Backdrop, {
4110
+ }), /*#__PURE__*/jsx(Backdrop, {
3802
4111
  "data-testid": "cheatsheet-content",
3803
4112
  open: open,
3804
4113
  sx: {
3805
4114
  zIndex: 1
3806
4115
  },
3807
- children: jsx(DraggableComponent, {
4116
+ children: /*#__PURE__*/jsx(DraggableComponent, {
3808
4117
  bounds: "parent",
3809
4118
  isOpen: true,
3810
4119
  minHeight: 300,
@@ -3814,7 +4123,7 @@ var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
3814
4123
  width: 700
3815
4124
  },
3816
4125
  title: t('shared-cheat-sheet'),
3817
- children: jsx(CheatSheet, {})
4126
+ children: /*#__PURE__*/jsx(CheatSheet, {})
3818
4127
  })
3819
4128
  })]
3820
4129
  });
@@ -3837,6 +4146,7 @@ var UserMenuItemCheatSheet = function UserMenuItemCheatSheet() {
3837
4146
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
3838
4147
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3839
4148
  * */
4149
+
3840
4150
  var useUserMenu = function useUserMenu(open) {
3841
4151
  if (open === void 0) {
3842
4152
  open = false;
@@ -3874,6 +4184,7 @@ var useUserMenu = function useUserMenu(open) {
3874
4184
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
3875
4185
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3876
4186
  * */
4187
+
3877
4188
  var getInitials = function getInitials(name) {
3878
4189
  if (!name) {
3879
4190
  return '';
@@ -3968,6 +4279,7 @@ var CustomSlider = function CustomSlider(_ref) {
3968
4279
  return element.classList.remove('selectedLabel');
3969
4280
  });
3970
4281
  }, [value, themeContext.namedTheme]);
4282
+
3971
4283
  // autofocus
3972
4284
  React.useEffect(function () {
3973
4285
  if (shouldAutoFocus && element.current) {
@@ -3977,7 +4289,7 @@ var CustomSlider = function CustomSlider(_ref) {
3977
4289
  // eslint-disable-next-line react-hooks/exhaustive-deps
3978
4290
  }, []);
3979
4291
  var mergedStyles = merge(extraStyles, sliderStyle);
3980
- return jsx(Slider, Object.assign({
4292
+ return /*#__PURE__*/jsx(Slider, Object.assign({
3981
4293
  orientation: orientation,
3982
4294
  ref: element,
3983
4295
  role: "slider",
@@ -4003,7 +4315,7 @@ var CustomToggleButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4003
4315
  _ref$value = _ref.value,
4004
4316
  value = _ref$value === void 0 ? 0 : _ref$value,
4005
4317
  props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
4006
- return jsx(ToggleButton, Object.assign({
4318
+ return /*#__PURE__*/jsx(ToggleButton, Object.assign({
4007
4319
  className: variant + " " + className,
4008
4320
  ref: ref,
4009
4321
  value: value
@@ -4075,11 +4387,11 @@ var TooltipSelect = function TooltipSelect(_ref) {
4075
4387
  var scrollInIsolationRef = useScrollingInIsolation({
4076
4388
  onWheel: onWheel
4077
4389
  });
4078
- return jsx(CustomTooltip, {
4390
+ return /*#__PURE__*/jsx(CustomTooltip, {
4079
4391
  open: tooltipOpen,
4080
4392
  placement: "top",
4081
4393
  title: tooltip,
4082
- children: jsx(StyledSelect, Object.assign({
4394
+ children: /*#__PURE__*/jsx(StyledSelect, Object.assign({
4083
4395
  additionalStyling: additionalStyling,
4084
4396
  disableUnderline: true,
4085
4397
  hasBackgroundColor: hasBackgroundColor,
@@ -4096,6 +4408,7 @@ var TooltipSelect = function TooltipSelect(_ref) {
4096
4408
  }, props))
4097
4409
  });
4098
4410
  };
4411
+
4099
4412
  // Style the select
4100
4413
  var BaseSelect = styled(Select, {
4101
4414
  shouldForwardProp: function shouldForwardProp(prop) {
@@ -4113,7 +4426,7 @@ var StyledSelect = styled(/*#__PURE__*/React.forwardRef(function (_ref3, ref) {
4113
4426
  var className = _ref3.className,
4114
4427
  additionalStyling = _ref3.additionalStyling,
4115
4428
  props = _objectWithoutPropertiesLoose(_ref3, _excluded2);
4116
- return jsx(BaseSelect, Object.assign({}, props, {
4429
+ return /*#__PURE__*/jsx(BaseSelect, Object.assign({}, props, {
4117
4430
  MenuProps: {
4118
4431
  classes: {
4119
4432
  paper: className
@@ -4255,7 +4568,7 @@ var CustomAccordion = function CustomAccordion(_ref) {
4255
4568
  setExpanded = _React$useState[1];
4256
4569
  var theme = useTheme();
4257
4570
  var iconColor = theme.palette.geowebColors.buttons.icon["default"].color;
4258
- return jsxs(Accordion, Object.assign({}, props, {
4571
+ return /*#__PURE__*/jsxs(Accordion, Object.assign({}, props, {
4259
4572
  defaultExpanded: defaultExpanded,
4260
4573
  disableGutters: disableGutters,
4261
4574
  elevation: expanded ? expandedElevation : collapsedElevation,
@@ -4267,38 +4580,38 @@ var CustomAccordion = function CustomAccordion(_ref) {
4267
4580
  timeout: transitionDuration
4268
4581
  }
4269
4582
  },
4270
- children: [jsx(AccordionSummary, {
4583
+ children: [/*#__PURE__*/jsx(AccordionSummary, {
4271
4584
  "aria-label": expanded ? 'Drawer opened' : 'Drawer closed',
4272
4585
  component: "div",
4273
4586
  "data-testid": title && amountOfItems ? title + " " + amountOfItems : title,
4274
- expandIcon: CustomExpandIcon ? jsx(CustomExpandIcon, {
4587
+ expandIcon: CustomExpandIcon ? /*#__PURE__*/jsx(CustomExpandIcon, {
4275
4588
  style: {
4276
4589
  fill: "" + iconColor
4277
4590
  }
4278
- }) : jsx(ChevronDown, {
4591
+ }) : /*#__PURE__*/jsx(ChevronDown, {
4279
4592
  style: {
4280
4593
  fill: "" + iconColor
4281
4594
  }
4282
4595
  }),
4283
- children: jsxs(Box, {
4596
+ children: /*#__PURE__*/jsxs(Box, {
4284
4597
  sx: {
4285
4598
  display: 'flex',
4286
4599
  justifyContent: 'space-between',
4287
4600
  width: '100%'
4288
4601
  },
4289
- children: [jsxs(Box, {
4602
+ children: [/*#__PURE__*/jsxs(Box, {
4290
4603
  sx: {
4291
4604
  width: '100%',
4292
4605
  display: 'flex',
4293
4606
  justifyContent: 'space-between'
4294
4607
  },
4295
- children: [jsx(Box, {
4608
+ children: [/*#__PURE__*/jsx(Box, {
4296
4609
  sx: {
4297
4610
  display: 'flex',
4298
4611
  justifyContent: 'flex-start'
4299
4612
  },
4300
4613
  children: title
4301
- }), jsx(Box, {
4614
+ }), /*#__PURE__*/jsx(Box, {
4302
4615
  sx: {
4303
4616
  display: 'flex',
4304
4617
  justifyContent: 'flex-end',
@@ -4306,7 +4619,7 @@ var CustomAccordion = function CustomAccordion(_ref) {
4306
4619
  },
4307
4620
  children: title2
4308
4621
  })]
4309
- }), jsx(Box, {
4622
+ }), /*#__PURE__*/jsx(Box, {
4310
4623
  sx: {
4311
4624
  display: 'flex',
4312
4625
  justifyContent: 'flex-end',
@@ -4315,13 +4628,31 @@ var CustomAccordion = function CustomAccordion(_ref) {
4315
4628
  children: amountOfItems
4316
4629
  })]
4317
4630
  })
4318
- }), jsx(AccordionDetails, {
4631
+ }), /*#__PURE__*/jsx(AccordionDetails, {
4319
4632
  sx: detailsSx,
4320
4633
  children: children
4321
4634
  })]
4322
4635
  }));
4323
4636
  };
4324
4637
 
4638
+ /* *
4639
+ * Licensed under the Apache License, Version 2.0 (the "License");
4640
+ * you may not use this file except in compliance with the License.
4641
+ * You may obtain a copy of the License at
4642
+ *
4643
+ * http://www.apache.org/licenses/LICENSE-2.0
4644
+ *
4645
+ * Unless required by applicable law or agreed to in writing, software
4646
+ * distributed under the License is distributed on an "AS IS" BASIS,
4647
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4648
+ * See the License for the specific language governing permissions and
4649
+ * limitations under the License.
4650
+ *
4651
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4652
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
4653
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4654
+ * */
4655
+
4325
4656
  var highlightStyle = {
4326
4657
  background: '#ffeecc'
4327
4658
  };
@@ -4330,7 +4661,7 @@ var SearchHighlight = function SearchHighlight(_ref) {
4330
4661
  text = _ref$text === void 0 ? '' : _ref$text,
4331
4662
  search = _ref.search;
4332
4663
  if (search === '') {
4333
- return jsx("span", {
4664
+ return /*#__PURE__*/jsx("span", {
4334
4665
  children: text
4335
4666
  });
4336
4667
  }
@@ -4341,19 +4672,19 @@ var SearchHighlight = function SearchHighlight(_ref) {
4341
4672
  return escapeRegExp(word);
4342
4673
  }).join('|');
4343
4674
  var textParts = text.split(new RegExp("(" + searchRegex + ")", 'gi'));
4344
- return jsx(Fragment, {
4675
+ return /*#__PURE__*/jsx(Fragment, {
4345
4676
  children: textParts.map(function (part, index) {
4346
4677
  var key = part + "-" + index;
4347
4678
  if (searchWords.some(function (search) {
4348
4679
  return part.toLocaleLowerCase().includes(search);
4349
4680
  })) {
4350
- return jsx("mark", {
4681
+ return /*#__PURE__*/jsx("mark", {
4351
4682
  "data-testid": "mark",
4352
4683
  style: highlightStyle,
4353
4684
  children: part
4354
4685
  }, key);
4355
4686
  }
4356
- return jsx("span", {
4687
+ return /*#__PURE__*/jsx("span", {
4357
4688
  children: part
4358
4689
  }, key);
4359
4690
  })
@@ -4377,17 +4708,17 @@ var SwitchButton = function SwitchButton(_ref) {
4377
4708
  _ref$tooltip = _ref.tooltip,
4378
4709
  tooltip = _ref$tooltip === void 0 ? 'Switch mode' : _ref$tooltip,
4379
4710
  props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4380
- return jsx(CustomTooltip, {
4711
+ return /*#__PURE__*/jsx(CustomTooltip, {
4381
4712
  className: "switch-button",
4382
4713
  title: tooltip,
4383
- children: jsxs("span", {
4714
+ children: /*#__PURE__*/jsxs("span", {
4384
4715
  role: "button",
4385
- children: [jsx(FormLabel, {
4716
+ children: [/*#__PURE__*/jsx(FormLabel, {
4386
4717
  sx: styles.label,
4387
4718
  children: inActiveLabel
4388
- }), jsx(Switch, Object.assign({
4719
+ }), /*#__PURE__*/jsx(Switch, Object.assign({
4389
4720
  "data-testid": "switchMode"
4390
- }, props)), jsx(FormLabel, {
4721
+ }, props)), /*#__PURE__*/jsx(FormLabel, {
4391
4722
  sx: styles.label,
4392
4723
  children: activeLabel
4393
4724
  })]
@@ -4395,6 +4726,24 @@ var SwitchButton = function SwitchButton(_ref) {
4395
4726
  });
4396
4727
  };
4397
4728
 
4729
+ /* *
4730
+ * Licensed under the Apache License, Version 2.0 (the "License");
4731
+ * you may not use this file except in compliance with the License.
4732
+ * You may obtain a copy of the License at
4733
+ *
4734
+ * http://www.apache.org/licenses/LICENSE-2.0
4735
+ *
4736
+ * Unless required by applicable law or agreed to in writing, software
4737
+ * distributed under the License is distributed on an "AS IS" BASIS,
4738
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4739
+ * See the License for the specific language governing permissions and
4740
+ * limitations under the License.
4741
+ *
4742
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4743
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
4744
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4745
+ * */
4746
+
4398
4747
  var isURL = function isURL(string) {
4399
4748
  return /^https?:\/\//.test(string);
4400
4749
  };
@@ -4402,11 +4751,11 @@ var ClearButton$1 = function ClearButton(_ref) {
4402
4751
  var onClick = _ref.onClick;
4403
4752
  var _useSharedTranslation = useSharedTranslation(),
4404
4753
  t = _useSharedTranslation.t;
4405
- return jsx(CustomIconButton, {
4754
+ return /*#__PURE__*/jsx(CustomIconButton, {
4406
4755
  onClick: onClick,
4407
4756
  sx: buttonStyle,
4408
4757
  tooltipTitle: t('shared-clear'),
4409
- children: jsx(Clear, {})
4758
+ children: /*#__PURE__*/jsx(Clear, {})
4410
4759
  });
4411
4760
  };
4412
4761
  var buttonStyle = {
@@ -4423,17 +4772,17 @@ var SearchFieldButton = function SearchFieldButton(_ref2) {
4423
4772
  var _useSharedTranslation2 = useSharedTranslation(),
4424
4773
  t = _useSharedTranslation2.t;
4425
4774
  if (isURL(localSearchString) && setPopupIsOpen) {
4426
- return jsxs(Fragment, {
4427
- children: [jsx("div", {
4775
+ return /*#__PURE__*/jsxs(Fragment, {
4776
+ children: [/*#__PURE__*/jsx("div", {
4428
4777
  style: {
4429
4778
  marginRight: '15px'
4430
4779
  },
4431
- children: jsx(ClearButton$1, {
4780
+ children: /*#__PURE__*/jsx(ClearButton$1, {
4432
4781
  onClick: function onClick() {
4433
4782
  return onClickClear();
4434
4783
  }
4435
4784
  })
4436
- }), jsx(Button, {
4785
+ }), /*#__PURE__*/jsx(Button, {
4437
4786
  onClick: function onClick() {
4438
4787
  return setPopupIsOpen(true);
4439
4788
  },
@@ -4443,19 +4792,37 @@ var SearchFieldButton = function SearchFieldButton(_ref2) {
4443
4792
  });
4444
4793
  }
4445
4794
  if (localSearchString) {
4446
- return jsx(ClearButton$1, {
4795
+ return /*#__PURE__*/jsx(ClearButton$1, {
4447
4796
  onClick: function onClick() {
4448
4797
  return onClickClear();
4449
4798
  }
4450
4799
  });
4451
4800
  }
4452
- return jsx(CustomIconButton, {
4801
+ return /*#__PURE__*/jsx(CustomIconButton, {
4453
4802
  sx: buttonStyle,
4454
4803
  tooltipTitle: t('shared-search'),
4455
- children: jsx(Search, {})
4804
+ children: /*#__PURE__*/jsx(Search, {})
4456
4805
  });
4457
4806
  };
4458
4807
 
4808
+ /* *
4809
+ * Licensed under the Apache License, Version 2.0 (the "License");
4810
+ * you may not use this file except in compliance with the License.
4811
+ * You may obtain a copy of the License at
4812
+ *
4813
+ * http://www.apache.org/licenses/LICENSE-2.0
4814
+ *
4815
+ * Unless required by applicable law or agreed to in writing, software
4816
+ * distributed under the License is distributed on an "AS IS" BASIS,
4817
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4818
+ * See the License for the specific language governing permissions and
4819
+ * limitations under the License.
4820
+ *
4821
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4822
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
4823
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4824
+ * */
4825
+
4459
4826
  var stylesSmall = {
4460
4827
  '.MuiInputLabel-root': {
4461
4828
  lineHeight: '16px',
@@ -4492,6 +4859,7 @@ var SearchField$1 = function SearchField(_ref) {
4492
4859
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
4493
4860
  t = _useTranslation.t;
4494
4861
  var translatedLabel = label != null ? label : onOpenServicePopup ? t('shared-search-services') : t('shared-search');
4862
+
4495
4863
  // eslint-disable-next-line react-hooks/exhaustive-deps
4496
4864
  var setSearchFilterDebounced = React.useCallback(debounce(setSearchFilter, 300), []);
4497
4865
  var handleChange = function handleChange(text) {
@@ -4522,6 +4890,7 @@ var SearchField$1 = function SearchField(_ref) {
4522
4890
  document.removeEventListener('keydown', keyDownHandler);
4523
4891
  };
4524
4892
  }, [urlIsValid, localSearchString, onOpenServicePopup]);
4893
+
4525
4894
  // mirror store unless typing a URL
4526
4895
  React.useEffect(function () {
4527
4896
  if (isURL(localSearchString)) {
@@ -4530,7 +4899,7 @@ var SearchField$1 = function SearchField(_ref) {
4530
4899
  setLocalSearchString(searchFilter);
4531
4900
  // eslint-disable-next-line react-hooks/exhaustive-deps
4532
4901
  }, [searchFilter]);
4533
- return jsx(TextField, {
4902
+ return /*#__PURE__*/jsx(TextField, {
4534
4903
  autoFocus: true,
4535
4904
  fullWidth: true,
4536
4905
  label: translatedLabel,
@@ -4539,9 +4908,9 @@ var SearchField$1 = function SearchField(_ref) {
4539
4908
  },
4540
4909
  slotProps: {
4541
4910
  input: {
4542
- endAdornment: jsx(InputAdornment, {
4911
+ endAdornment: /*#__PURE__*/jsx(InputAdornment, {
4543
4912
  position: "end",
4544
- children: jsx(SearchFieldButton, {
4913
+ children: /*#__PURE__*/jsx(SearchFieldButton, {
4545
4914
  localSearchString: localSearchString,
4546
4915
  onClickClear: function onClickClear() {
4547
4916
  setLocalSearchString('');
@@ -4562,6 +4931,24 @@ var SearchField$1 = function SearchField(_ref) {
4562
4931
  });
4563
4932
  };
4564
4933
 
4934
+ /* *
4935
+ * Licensed under the Apache License, Version 2.0 (the "License");
4936
+ * you may not use this file except in compliance with the License.
4937
+ * You may obtain a copy of the License at
4938
+ *
4939
+ * http://www.apache.org/licenses/LICENSE-2.0
4940
+ *
4941
+ * Unless required by applicable law or agreed to in writing, software
4942
+ * distributed under the License is distributed on an "AS IS" BASIS,
4943
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4944
+ * See the License for the specific language governing permissions and
4945
+ * limitations under the License.
4946
+ *
4947
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4948
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
4949
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4950
+ * */
4951
+
4565
4952
  var getLastUpdateTitle = function getLastUpdateTitle(time, t) {
4566
4953
  return t('shared-last-updated', {
4567
4954
  time: time
@@ -4579,14 +4966,14 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4579
4966
  iconButtonSx = _ref.iconButtonSx;
4580
4967
  var _useTranslation = useTranslation(SHARED_NAMESPACE),
4581
4968
  t = _useTranslation.t;
4582
- return jsxs(Box, {
4969
+ return /*#__PURE__*/jsxs(Box, {
4583
4970
  sx: {
4584
4971
  display: 'flex',
4585
4972
  alignItems: 'center',
4586
4973
  height: '100%',
4587
4974
  justifyContent: 'flex-end'
4588
4975
  },
4589
- children: [!hideLabel && jsx(Typography, {
4976
+ children: [!hideLabel && /*#__PURE__*/jsx(Typography, {
4590
4977
  "data-testid": dataTestId,
4591
4978
  sx: {
4592
4979
  color: 'geowebColors.captions.captionStatus.rgba',
@@ -4595,7 +4982,7 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4595
4982
  letterSpacing: '0.33px'
4596
4983
  },
4597
4984
  children: getLastUpdateTitle(lastUpdateTime, t)
4598
- }), showRefreshButton ? jsx(CustomIconButton, {
4985
+ }), showRefreshButton ? /*#__PURE__*/jsx(CustomIconButton, {
4599
4986
  "data-testid": "refresh-button",
4600
4987
  onClick: onPressRefresh,
4601
4988
  sx: [{
@@ -4607,7 +4994,7 @@ var LastUpdateTime = function LastUpdateTime(_ref) {
4607
4994
  }, iconButtonSx],
4608
4995
  tooltipTitle: t('shared-click-to-refresh'),
4609
4996
  variant: "tool",
4610
- children: jsx(Cached, {})
4997
+ children: /*#__PURE__*/jsx(Cached, {})
4611
4998
  }) : null]
4612
4999
  });
4613
5000
  };
@@ -4626,6 +5013,7 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4626
5013
  _this.redrawTimer = null;
4627
5014
  _this.loopHasStarted = false;
4628
5015
  _this.mounted = false;
5016
+ _this._isFocussed = void 0;
4629
5017
  _this.updateCanvas = _this.updateCanvas.bind(_this);
4630
5018
  _this.handleMouseMoveEvent = _this.handleMouseMoveEvent.bind(_this);
4631
5019
  _this.handleMouseUpEvent = _this.handleMouseUpEvent.bind(_this);
@@ -4745,12 +5133,13 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4745
5133
  onTouchEnd();
4746
5134
  };
4747
5135
  _proto.handleTouchMoveEvent = function handleTouchMoveEvent(event) {
4748
- var _event$touches, _touch$target, _target$offsetLeft;
5136
+ var _event$touches, _ref, _target$offsetLeft;
4749
5137
  var _this$props3 = this.props,
4750
5138
  onTouchMove = _this$props3.onTouchMove,
4751
5139
  onCanvasClick = _this$props3.onCanvasClick;
4752
5140
  var touch = (_event$touches = event.touches) == null ? void 0 : _event$touches[0];
4753
- var target = (_touch$target = touch == null ? void 0 : touch.target) != null ? _touch$target : null;
5141
+ var target = (_ref = touch == null ? void 0 : touch.target) != null ? _ref : null;
5142
+
4754
5143
  // Use ?? so 0 is allowed, and optional chaining for safety
4755
5144
  var x = touch ? touch.clientX - ((_target$offsetLeft = target == null ? void 0 : target.offsetLeft) != null ? _target$offsetLeft : 0) : undefined;
4756
5145
  var y = touch == null ? void 0 : touch.clientY;
@@ -4865,7 +5254,7 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4865
5254
  var _this4 = this;
4866
5255
  this.updateCanvas();
4867
5256
  this._handleWindowResize();
4868
- return jsx("div", {
5257
+ return /*#__PURE__*/jsx("div", {
4869
5258
  onBlur: this.onBlur,
4870
5259
  onFocus: this.onFocus,
4871
5260
  ref: this.canvascontaineroutside,
@@ -4878,7 +5267,7 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4878
5267
  overflow: 'hidden'
4879
5268
  },
4880
5269
  tabIndex: 0,
4881
- children: jsx("div", {
5270
+ children: /*#__PURE__*/jsx("div", {
4882
5271
  "data-testid": "canvas-container",
4883
5272
  ref: this.canvascontainer,
4884
5273
  style: {
@@ -4890,7 +5279,7 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4890
5279
  display: 'block',
4891
5280
  border: 'none'
4892
5281
  },
4893
- children: jsx("div", {
5282
+ children: /*#__PURE__*/jsx("div", {
4894
5283
  "aria-label": "canvas",
4895
5284
  role: "presentation",
4896
5285
  style: {
@@ -4898,7 +5287,7 @@ var CanvasComponent = /*#__PURE__*/function (_Component) {
4898
5287
  width: 0,
4899
5288
  height: 0
4900
5289
  },
4901
- children: jsx("canvas", {
5290
+ children: /*#__PURE__*/jsx("canvas", {
4902
5291
  "data-testid": "canvas",
4903
5292
  ref: function ref(canvas) {
4904
5293
  _this4.canvas = canvas;
@@ -4940,6 +5329,24 @@ CanvasComponent.defaultProps = {
4940
5329
  }
4941
5330
  };
4942
5331
 
5332
+ /* *
5333
+ * Licensed under the Apache License, Version 2.0 (the "License");
5334
+ * you may not use this file except in compliance with the License.
5335
+ * You may obtain a copy of the License at
5336
+ *
5337
+ * http://www.apache.org/licenses/LICENSE-2.0
5338
+ *
5339
+ * Unless required by applicable law or agreed to in writing, software
5340
+ * distributed under the License is distributed on an "AS IS" BASIS,
5341
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5342
+ * See the License for the specific language governing permissions and
5343
+ * limitations under the License.
5344
+ *
5345
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5346
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
5347
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5348
+ * */
5349
+
4943
5350
  var FilterChip = function FilterChip(_ref) {
4944
5351
  var label = _ref.label,
4945
5352
  id = _ref.id,
@@ -4962,7 +5369,7 @@ var FilterChip = function FilterChip(_ref) {
4962
5369
  var clickIconHandler = function clickIconHandler(event) {
4963
5370
  return onClickIcon == null ? void 0 : onClickIcon(chipRef.current, event);
4964
5371
  };
4965
- return jsx(Chip, {
5372
+ return /*#__PURE__*/jsx(Chip, {
4966
5373
  color: isSelected ? 'secondary' : 'default',
4967
5374
  deleteIcon: actionIcon,
4968
5375
  disabled: isDisabled,
@@ -4989,10 +5396,28 @@ var FilterChip = function FilterChip(_ref) {
4989
5396
  borderColor: 'transparent'
4990
5397
  }
4991
5398
  },
4992
- variant: isSelected ? 'filled' : 'outlined'
5399
+ variant: isSelected ? 'filled' : 'outlined' // Chip does not have a selected state so theme class cannot be used for styling
4993
5400
  });
4994
5401
  };
4995
5402
 
5403
+ /* *
5404
+ * Licensed under the Apache License, Version 2.0 (the "License");
5405
+ * you may not use this file except in compliance with the License.
5406
+ * You may obtain a copy of the License at
5407
+ *
5408
+ * http://www.apache.org/licenses/LICENSE-2.0
5409
+ *
5410
+ * Unless required by applicable law or agreed to in writing, software
5411
+ * distributed under the License is distributed on an "AS IS" BASIS,
5412
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5413
+ * See the License for the specific language governing permissions and
5414
+ * limitations under the License.
5415
+ *
5416
+ * Copyright 2025 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5417
+ * Copyright 2025 - Finnish Meteorological Institute (FMI)
5418
+ * Copyright 2025 - The Norwegian Meteorological Institute (MET Norway)
5419
+ * */
5420
+
4996
5421
  var FilterToggleButton = function FilterToggleButton(_ref) {
4997
5422
  var _t, _t2;
4998
5423
  var isOpen = _ref.isOpen,
@@ -5001,9 +5426,9 @@ var FilterToggleButton = function FilterToggleButton(_ref) {
5001
5426
  var _useSharedTranslation = useSharedTranslation(),
5002
5427
  t = _useSharedTranslation.t;
5003
5428
  var tooltipTitle = isOpen ? (_t = t('shared-filter-hide-labels')) != null ? _t : '' : (_t2 = t('shared-filter-show-labels')) != null ? _t2 : '';
5004
- return jsx(Tooltip, {
5429
+ return /*#__PURE__*/jsx(Tooltip, {
5005
5430
  title: tooltipTitle,
5006
- children: jsxs(CustomIconButton, {
5431
+ children: /*#__PURE__*/jsxs(CustomIconButton, {
5007
5432
  "aria-pressed": isOpen,
5008
5433
  "data-testid": "workspace-label-filter-toggle",
5009
5434
  id: "labels-filter",
@@ -5017,7 +5442,7 @@ var FilterToggleButton = function FilterToggleButton(_ref) {
5017
5442
  alignItems: 'center'
5018
5443
  },
5019
5444
  variant: "tool",
5020
- children: [jsx(Filter$1, {}), activeLabelFilterCount > 0 && jsx(Typography, {
5445
+ children: [/*#__PURE__*/jsx(Filter$1, {}), activeLabelFilterCount > 0 && /*#__PURE__*/jsx(Typography, {
5021
5446
  component: "span",
5022
5447
  sx: {
5023
5448
  fontSize: '13px',
@@ -5029,6 +5454,24 @@ var FilterToggleButton = function FilterToggleButton(_ref) {
5029
5454
  });
5030
5455
  };
5031
5456
 
5457
+ /* *
5458
+ * Licensed under the Apache License, Version 2.0 (the "License");
5459
+ * you may not use this file except in compliance with the License.
5460
+ * You may obtain a copy of the License at
5461
+ *
5462
+ * http://www.apache.org/licenses/LICENSE-2.0
5463
+ *
5464
+ * Unless required by applicable law or agreed to in writing, software
5465
+ * distributed under the License is distributed on an "AS IS" BASIS,
5466
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5467
+ * See the License for the specific language governing permissions and
5468
+ * limitations under the License.
5469
+ *
5470
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5471
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
5472
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5473
+ * */
5474
+
5032
5475
  var FilterList = function FilterList(_ref) {
5033
5476
  var _ref$filters = _ref.filters,
5034
5477
  filters = _ref$filters === void 0 ? [] : _ref$filters,
@@ -5045,7 +5488,7 @@ var FilterList = function FilterList(_ref) {
5045
5488
  activeLabelFilterCount = _ref$activeLabelFilte === void 0 ? 0 : _ref$activeLabelFilte;
5046
5489
  var _useSharedTranslation = useSharedTranslation(),
5047
5490
  t = _useSharedTranslation.t;
5048
- return jsxs(Stack, {
5491
+ return /*#__PURE__*/jsxs(Stack, {
5049
5492
  className: "filter-list",
5050
5493
  "data-testid": "filterList",
5051
5494
  direction: "row",
@@ -5055,11 +5498,11 @@ var FilterList = function FilterList(_ref) {
5055
5498
  rowGap: 1,
5056
5499
  alignItems: 'center'
5057
5500
  },
5058
- children: [showLabelFilterToggle && onToggleLabelFilter ? jsx(FilterToggleButton, {
5501
+ children: [showLabelFilterToggle && onToggleLabelFilter ? /*#__PURE__*/jsx(FilterToggleButton, {
5059
5502
  activeLabelFilterCount: activeLabelFilterCount,
5060
5503
  isOpen: isLabelFilterOpen,
5061
5504
  onToggle: onToggleLabelFilter
5062
- }) : null, jsx(FilterChip, {
5505
+ }) : null, /*#__PURE__*/jsx(FilterChip, {
5063
5506
  handleClick: function handleClick(key) {
5064
5507
  return onChipClick(key, !isAllSelected);
5065
5508
  },
@@ -5067,7 +5510,7 @@ var FilterList = function FilterList(_ref) {
5067
5510
  isSelected: isAllSelected,
5068
5511
  label: t('shared-filter-all')
5069
5512
  }), filters.map(function (filter) {
5070
- return jsx(FilterChip, {
5513
+ return /*#__PURE__*/jsx(FilterChip, {
5071
5514
  handleClick: function handleClick(key) {
5072
5515
  // If they are all isSelected ensure that if one is clicked that one will be the only one set to selected
5073
5516
  var selected = isAllSelected ? true : !filter.isSelected;
@@ -5082,24 +5525,42 @@ var FilterList = function FilterList(_ref) {
5082
5525
  });
5083
5526
  };
5084
5527
 
5528
+ /* *
5529
+ * Licensed under the Apache License, Version 2.0 (the "License");
5530
+ * you may not use this file except in compliance with the License.
5531
+ * You may obtain a copy of the License at
5532
+ *
5533
+ * http://www.apache.org/licenses/LICENSE-2.0
5534
+ *
5535
+ * Unless required by applicable law or agreed to in writing, software
5536
+ * distributed under the License is distributed on an "AS IS" BASIS,
5537
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5538
+ * See the License for the specific language governing permissions and
5539
+ * limitations under the License.
5540
+ *
5541
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5542
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
5543
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5544
+ * */
5545
+
5085
5546
  var DEBOUNCE_TIMEOUT = 300;
5086
5547
  var SearchButton = function SearchButton(_ref) {
5087
5548
  var label = _ref.label;
5088
- return jsx(CustomIconButton, {
5549
+ return /*#__PURE__*/jsx(CustomIconButton, {
5089
5550
  edge: "end",
5090
5551
  size: "large",
5091
5552
  tooltipTitle: label,
5092
- children: jsx(Search, {})
5553
+ children: /*#__PURE__*/jsx(Search, {})
5093
5554
  });
5094
5555
  };
5095
5556
  var ClearButton = function ClearButton(_ref2) {
5096
5557
  var onClick = _ref2.onClick;
5097
- return jsx(CustomIconButton, {
5558
+ return /*#__PURE__*/jsx(CustomIconButton, {
5098
5559
  edge: "end",
5099
5560
  onClick: onClick,
5100
5561
  size: "large",
5101
5562
  tooltipTitle: "Clear",
5102
- children: jsx(Clear, {})
5563
+ children: /*#__PURE__*/jsx(Clear, {})
5103
5564
  });
5104
5565
  };
5105
5566
  var SearchField = function SearchField(_ref3) {
@@ -5112,9 +5573,10 @@ var SearchField = function SearchField(_ref3) {
5112
5573
  var _useSharedTranslation = useSharedTranslation(),
5113
5574
  t = _useSharedTranslation.t;
5114
5575
  var label = t('shared-filter-search');
5576
+
5115
5577
  // eslint-disable-next-line react-hooks/exhaustive-deps
5116
5578
  var handleValueChangeDebounced = React.useCallback(debounce$1(valueChanged, DEBOUNCE_TIMEOUT), []);
5117
- return jsx(TextField, {
5579
+ return /*#__PURE__*/jsx(TextField, {
5118
5580
  autoFocus: true,
5119
5581
  fullWidth: true,
5120
5582
  label: label,
@@ -5125,14 +5587,14 @@ var SearchField = function SearchField(_ref3) {
5125
5587
  size: "small",
5126
5588
  slotProps: {
5127
5589
  input: {
5128
- endAdornment: jsx(InputAdornment, {
5590
+ endAdornment: /*#__PURE__*/jsx(InputAdornment, {
5129
5591
  position: "end",
5130
- children: localValue ? jsx(ClearButton, {
5592
+ children: localValue ? /*#__PURE__*/jsx(ClearButton, {
5131
5593
  onClick: function onClick() {
5132
5594
  setLocalValue('');
5133
5595
  valueChanged('');
5134
5596
  }
5135
- }) : jsx(SearchButton, {
5597
+ }) : /*#__PURE__*/jsx(SearchButton, {
5136
5598
  label: label
5137
5599
  })
5138
5600
  })
@@ -5167,18 +5629,18 @@ var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5167
5629
  _ref$showSearchField = _ref.showSearchField,
5168
5630
  showSearchField = _ref$showSearchField === void 0 ? true : _ref$showSearchField,
5169
5631
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
5170
- return jsx(Box, {
5632
+ return /*#__PURE__*/jsx(Box, {
5171
5633
  ref: ref,
5172
5634
  sx: Object.assign({
5173
5635
  marginBottom: '8px',
5174
5636
  width: '100%'
5175
5637
  }, Array.isArray(props.sx) ? Object.assign.apply(Object, [{}].concat(props.sx)) : props.sx),
5176
- children: jsxs(Stack, {
5638
+ children: /*#__PURE__*/jsxs(Stack, {
5177
5639
  spacing: 1,
5178
- children: [showSearchField ? jsx(SearchField, {
5640
+ children: [showSearchField ? /*#__PURE__*/jsx(SearchField, {
5179
5641
  value: searchQuery,
5180
5642
  valueChanged: onSearch
5181
- }) : null, jsx(FilterList, {
5643
+ }) : null, /*#__PURE__*/jsx(FilterList, {
5182
5644
  activeLabelFilterCount: activeLabelFilterCount,
5183
5645
  filters: filters,
5184
5646
  isAllSelected: isAllSelected,
@@ -5191,6 +5653,23 @@ var Filter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5191
5653
  });
5192
5654
  });
5193
5655
 
5656
+ /* *
5657
+ * Licensed under the Apache License, Version 2.0 (the "License");
5658
+ * you may not use this file except in compliance with the License.
5659
+ * You may obtain a copy of the License at
5660
+ *
5661
+ * http://www.apache.org/licenses/LICENSE-2.0
5662
+ *
5663
+ * Unless required by applicable law or agreed to in writing, software
5664
+ * distributed under the License is distributed on an "AS IS" BASIS,
5665
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5666
+ * See the License for the specific language governing permissions and
5667
+ * limitations under the License.
5668
+ *
5669
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5670
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
5671
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5672
+ * */
5194
5673
  var FilterOption = function FilterOption(_ref) {
5195
5674
  var optionId = _ref.optionId,
5196
5675
  checked = _ref.checked,
@@ -5205,10 +5684,10 @@ var FilterOption = function FilterOption(_ref) {
5205
5684
  var updateShowOnly = debounce(function (show) {
5206
5685
  return setShowOnly(show);
5207
5686
  }, 100);
5208
- return jsx(ListItem, {
5687
+ return /*#__PURE__*/jsx(ListItem, {
5209
5688
  dense: true,
5210
5689
  disablePadding: true,
5211
- secondaryAction: showOnly ? jsx(CustomIconButton, {
5690
+ secondaryAction: showOnly ? /*#__PURE__*/jsx(CustomIconButton, {
5212
5691
  "aria-label": "Only " + label,
5213
5692
  edge: "end",
5214
5693
  onClick: function onClick() {
@@ -5224,7 +5703,7 @@ var FilterOption = function FilterOption(_ref) {
5224
5703
  backgroundColor: 'transparent',
5225
5704
  width: 'auto'
5226
5705
  },
5227
- children: jsx(Typography, {
5706
+ children: /*#__PURE__*/jsx(Typography, {
5228
5707
  sx: {
5229
5708
  color: 'geowebColors.buttons.primary.default.fill',
5230
5709
  fontSize: '14px',
@@ -5240,7 +5719,7 @@ var FilterOption = function FilterOption(_ref) {
5240
5719
  marginLeft: '-12px',
5241
5720
  fontSize: '12px'
5242
5721
  },
5243
- children: jsxs(ListItemButton, {
5722
+ children: /*#__PURE__*/jsxs(ListItemButton, {
5244
5723
  dense: true,
5245
5724
  disableGutters: true,
5246
5725
  onClick: function onClick() {
@@ -5256,11 +5735,11 @@ var FilterOption = function FilterOption(_ref) {
5256
5735
  sx: {
5257
5736
  padding: 0
5258
5737
  },
5259
- children: [jsx(ListItemIcon, {
5738
+ children: [/*#__PURE__*/jsx(ListItemIcon, {
5260
5739
  sx: {
5261
5740
  width: '42px'
5262
5741
  },
5263
- children: jsx(Checkbox, {
5742
+ children: /*#__PURE__*/jsx(Checkbox, {
5264
5743
  checked: checked,
5265
5744
  disableRipple: true,
5266
5745
  name: optionId,
@@ -5272,9 +5751,9 @@ var FilterOption = function FilterOption(_ref) {
5272
5751
  },
5273
5752
  tabIndex: -1
5274
5753
  })
5275
- }), jsx(ListItemText, {
5754
+ }), /*#__PURE__*/jsx(ListItemText, {
5276
5755
  id: optionId,
5277
- primary: jsx(Box, {
5756
+ primary: /*#__PURE__*/jsx(Box, {
5278
5757
  sx: labelStyle,
5279
5758
  children: label
5280
5759
  })
@@ -5291,7 +5770,7 @@ var StorybookDocsWrapper = function StorybookDocsWrapper(_ref) {
5291
5770
  _ref$sx = _ref.sx,
5292
5771
  sx = _ref$sx === void 0 ? [] : _ref$sx,
5293
5772
  props = _objectWithoutPropertiesLoose(_ref, _excluded);
5294
- return jsx(Box, Object.assign({
5773
+ return /*#__PURE__*/jsx(Box, Object.assign({
5295
5774
  sx: [].concat(isDark ? [{
5296
5775
  backgroundColor: 'geowebColors.background.surfaceBrowser'
5297
5776
  }] : [], Array.isArray(sx) ? sx : [sx])
@@ -5317,7 +5796,9 @@ var StorybookDocsWrapper = function StorybookDocsWrapper(_ref) {
5317
5796
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
5318
5797
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5319
5798
  * */
5799
+
5320
5800
  var DEFAULT_ERROR_MESSAGE = 'An error has occurred';
5801
+
5321
5802
  // Guard function for detecting an AxiosError (typically the kind of error returned by the backend)
5322
5803
  var isAxiosError = function isAxiosError(error) {
5323
5804
  return error.isAxiosError !== undefined;
@@ -5342,11 +5823,13 @@ var isAuthError = function isAuthError(error) {
5342
5823
  return isAuthStatusCode(cause);
5343
5824
  }
5344
5825
  if (cause && typeof cause === 'object') {
5345
- var status = cause.status;
5826
+ var _ref = cause,
5827
+ status = _ref.status;
5346
5828
  if (typeof status === 'number' && isAuthStatusCode(status)) {
5347
5829
  return true;
5348
5830
  }
5349
- var statusCode = cause.statusCode;
5831
+ var _ref2 = cause,
5832
+ statusCode = _ref2.statusCode;
5350
5833
  if (typeof statusCode === 'number' && isAuthStatusCode(statusCode)) {
5351
5834
  return true;
5352
5835
  }
@@ -5435,7 +5918,7 @@ var DATE_FORMAT_NAME_OF_DAY = 'eee dd/MM/yyyy HH:mm';
5435
5918
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
5436
5919
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5437
5920
  * */
5438
- // eslint-disable-next-line no-restricted-imports
5921
+
5439
5922
  var getDateFnsLocale = function getDateFnsLocale(locale) {
5440
5923
  if (locale === 'fi') {
5441
5924
  return fi$1;
@@ -5448,6 +5931,7 @@ var getDateFnsLocale = function getDateFnsLocale(locale) {
5448
5931
  }
5449
5932
  return enGB;
5450
5933
  };
5934
+
5451
5935
  /**
5452
5936
  * Parsing date strings with geoweb dateUtils:
5453
5937
  *
@@ -5490,6 +5974,7 @@ var getDateFnsLocale = function getDateFnsLocale(locale) {
5490
5974
  * dateToString(new Date('2022-10-10T15:30:00Z'), 'HH:ss dd MMM yyyy')
5491
5975
  *
5492
5976
  */
5977
+
5493
5978
  /**
5494
5979
  * Parse an ISO string to a date
5495
5980
  *
@@ -5523,6 +6008,7 @@ var isValidIsoDateString = function isValidIsoDateString(input) {
5523
6008
  }
5524
6009
  return isoStringToDate(input) !== undefined;
5525
6010
  };
6011
+
5526
6012
  /**
5527
6013
  * Parse a string to a date
5528
6014
  *
@@ -5563,6 +6049,7 @@ var dateToIsoString = function dateToIsoString(input) {
5563
6049
  }
5564
6050
  return input.toISOString();
5565
6051
  };
6052
+
5566
6053
  /**
5567
6054
  * Use this if you initialise a date without a timezone to set it to utc correctly
5568
6055
  * eg.
@@ -5586,6 +6073,7 @@ var setUTCDate = function setUTCDate(inDate) {
5586
6073
  utcDate.setUTCHours(inDate.getHours(), inDate.getMinutes(), inDate.getSeconds(), inDate.getMilliseconds());
5587
6074
  return utcDate;
5588
6075
  };
6076
+
5589
6077
  /**
5590
6078
  * Format a date to a string
5591
6079
  *
@@ -5615,6 +6103,7 @@ var dateToString = function dateToString(inDate, strFormat, utc, locale) {
5615
6103
  });
5616
6104
  return formattedDate;
5617
6105
  };
6106
+
5618
6107
  /**
5619
6108
  * Find out if a date is between two other dates.
5620
6109
  *
@@ -5640,6 +6129,7 @@ var isBetween = function isBetween(date, from, to, inclusivity) {
5640
6129
  var isAfterEqual = inclusivity[1] === ']';
5641
6130
  return (isBeforeEqual ? isEqual$1(from, date) || isBefore(from, date) : isBefore(from, date)) && (isAfterEqual ? isEqual$1(to, date) || isAfter(to, date) : isAfter(to, date));
5642
6131
  };
6132
+
5643
6133
  /**
5644
6134
  * Creates a new Date object with the specified date and time, or the current date and time if no arguments are provided.
5645
6135
  *
@@ -5660,6 +6150,7 @@ var isBetween = function isBetween(date, from, to, inclusivity) {
5660
6150
  * createDate('2022-12-13T00:00:00.000Z');
5661
6151
  * // => 2022-12-13T00:00:00.000Z
5662
6152
  */
6153
+
5663
6154
  var createDate = function createDate(yearOrIsoString, month, day, hours, minutes, seconds, milliseconds) {
5664
6155
  if (hours === void 0) {
5665
6156
  hours = 0;
@@ -5681,6 +6172,7 @@ var createDate = function createDate(yearOrIsoString, month, day, hours, minutes
5681
6172
  }
5682
6173
  return new Date(yearOrIsoString, month, day, hours, minutes, seconds, milliseconds);
5683
6174
  };
6175
+
5684
6176
  /**
5685
6177
  *
5686
6178
  * @param date
@@ -5690,6 +6182,7 @@ var createDate = function createDate(yearOrIsoString, month, day, hours, minutes
5690
6182
  var add = function add(date, duration) {
5691
6183
  return add$1(date, duration);
5692
6184
  };
6185
+
5693
6186
  /**
5694
6187
  *
5695
6188
  * @param date
@@ -5699,6 +6192,7 @@ var add = function add(date, duration) {
5699
6192
  var sub = function sub(date, duration) {
5700
6193
  return sub$1(date, duration);
5701
6194
  };
6195
+
5702
6196
  /**
5703
6197
  * Finds the number of years between to dates
5704
6198
  *
@@ -5706,9 +6200,11 @@ var sub = function sub(date, duration) {
5706
6200
  * @param dateRight - the earlier date
5707
6201
  * @returns {number} the number of minutes
5708
6202
  */
6203
+
5709
6204
  var differenceInYears = function differenceInYears(dateLeft, dateRight) {
5710
6205
  return differenceInYears$1(dateLeft, dateRight);
5711
6206
  };
6207
+
5712
6208
  /**
5713
6209
  * Finds the number of months between to dates
5714
6210
  *
@@ -5716,9 +6212,11 @@ var differenceInYears = function differenceInYears(dateLeft, dateRight) {
5716
6212
  * @param dateRight - the earlier date
5717
6213
  * @returns {number} the number of minutes
5718
6214
  */
6215
+
5719
6216
  var differenceInMonths = function differenceInMonths(dateLeft, dateRight) {
5720
6217
  return differenceInMonths$1(dateLeft, dateRight);
5721
6218
  };
6219
+
5722
6220
  /**
5723
6221
  * Finds the number of days between to dates
5724
6222
  *
@@ -5726,9 +6224,11 @@ var differenceInMonths = function differenceInMonths(dateLeft, dateRight) {
5726
6224
  * @param dateRight - the earlier date
5727
6225
  * @returns {number} the number of minutes
5728
6226
  */
6227
+
5729
6228
  var differenceInDays = function differenceInDays(dateLeft, dateRight) {
5730
6229
  return differenceInDays$1(dateLeft, dateRight);
5731
6230
  };
6231
+
5732
6232
  /**
5733
6233
  * Finds the number of minuts between to dates
5734
6234
  *
@@ -5739,6 +6239,7 @@ var differenceInDays = function differenceInDays(dateLeft, dateRight) {
5739
6239
  var differenceInMinutes = function differenceInMinutes(dateLeft, dateRight) {
5740
6240
  return differenceInMinutes$1(dateLeft, dateRight);
5741
6241
  };
6242
+
5742
6243
  /**
5743
6244
  * Finds the number of hours between to dates
5744
6245
  *
@@ -5751,6 +6252,7 @@ var differenceInHours = function differenceInHours(dateLeft, dateRight, rounding
5751
6252
  roundingMethod: roundingMethod
5752
6253
  }) : differenceInHours$1(dateLeft, dateRight);
5753
6254
  };
6255
+
5754
6256
  /**
5755
6257
  * Finds the number of seconds between to dates
5756
6258
  *
@@ -5761,6 +6263,7 @@ var differenceInHours = function differenceInHours(dateLeft, dateRight, rounding
5761
6263
  var differenceInSeconds = function differenceInSeconds(dateLeft, dateRight) {
5762
6264
  return differenceInSeconds$1(dateLeft, dateRight);
5763
6265
  };
6266
+
5764
6267
  /**
5765
6268
  *
5766
6269
  * @param date - the date to be rounded
@@ -5770,6 +6273,7 @@ var differenceInSeconds = function differenceInSeconds(dateLeft, dateRight) {
5770
6273
  var roundToNearestMinutes = function roundToNearestMinutes(date, options) {
5771
6274
  return roundToNearestMinutes$1(date, options);
5772
6275
  };
6276
+
5773
6277
  /**
5774
6278
  *
5775
6279
  * @param date - the date that should be before the other one to return true
@@ -5781,6 +6285,7 @@ var isBefore = function isBefore(date, dateToCompare) {
5781
6285
  var before = isBefore$1(date, dateToCompare);
5782
6286
  return before;
5783
6287
  };
6288
+
5784
6289
  /**
5785
6290
  *
5786
6291
  * @param date - the date that should be after the other one to return true
@@ -5791,6 +6296,7 @@ var isBefore = function isBefore(date, dateToCompare) {
5791
6296
  var isAfter = function isAfter(date, dateToCompare) {
5792
6297
  return isAfter$1(date, dateToCompare);
5793
6298
  };
6299
+
5794
6300
  /**
5795
6301
  * Gracefully parsing string to a date, setting tz to UTC even if it's missing or input is invalid
5796
6302
  * Note: use getUtcFromString() to convert a string to a date with stricter returns
@@ -5808,6 +6314,7 @@ var utc = function utc(dateStr) {
5808
6314
  }
5809
6315
  return (_isoStringToDate2 = isoStringToDate(dateStr)) != null ? _isoStringToDate2 : createDate();
5810
6316
  };
6317
+
5811
6318
  /**
5812
6319
  * Parsing string to a date. Stricter check, will return undefined when dateString is invalid.
5813
6320
  * @param dateStr - string containing date
@@ -5830,6 +6337,7 @@ var getOffsetStr = function getOffsetStr(dateStr) {
5830
6337
  var groups = offsetMatcher.exec(dateStr);
5831
6338
  return groups ? groups[1] : null;
5832
6339
  };
6340
+
5833
6341
  /**
5834
6342
  * Check if a date object is valid
5835
6343
  * @param {Date | number} date - date to be checked
@@ -5838,6 +6346,7 @@ var getOffsetStr = function getOffsetStr(dateStr) {
5838
6346
  var isValid = function isValid(date) {
5839
6347
  return isValid$1(date);
5840
6348
  };
6349
+
5841
6350
  /**
5842
6351
  * Get the seconds timestamp of the given date
5843
6352
  * @param {Date} date - the given date
@@ -5846,6 +6355,7 @@ var isValid = function isValid(date) {
5846
6355
  var unix = function unix(date) {
5847
6356
  return getUnixTime(date);
5848
6357
  };
6358
+
5849
6359
  /**
5850
6360
  * Get the seconds timestamp based on the given iso string.
5851
6361
  * @param {string} date - the given date as iso string
@@ -5854,6 +6364,7 @@ var unix = function unix(date) {
5854
6364
  var unixFromISOString = function unixFromISOString(date) {
5855
6365
  return date ? parseISO(date).getTime() / 1000 : NaN;
5856
6366
  };
6367
+
5857
6368
  /**
5858
6369
  * Return the Date object for a given timestamp
5859
6370
  * @param {number} unixTime - timestamp
@@ -5883,6 +6394,7 @@ var parseCustomDateString = function parseCustomDateString(dateStr) {
5883
6394
  }
5884
6395
  return new Date(dateStr);
5885
6396
  };
6397
+
5886
6398
  /**
5887
6399
  * Returns Date in UTC
5888
6400
  * @returns {Date} - Date in UTC
@@ -5890,6 +6402,7 @@ var parseCustomDateString = function parseCustomDateString(dateStr) {
5890
6402
  var getNowUtc = function getNowUtc() {
5891
6403
  return createDate();
5892
6404
  };
6405
+
5893
6406
  /**
5894
6407
  * Returns current time as string
5895
6408
  * @param {string} strFormat - [default: "yyyy-MM-dd'T'HH:mm:ss'Z'"] format of string
@@ -5906,6 +6419,7 @@ var getCurrentTimeAsString = function getCurrentTimeAsString(strFormat, utc) {
5906
6419
  }
5907
6420
  return dateToString(getNowUtc(), strFormat, utc);
5908
6421
  };
6422
+
5909
6423
  /**
5910
6424
  * Set date values to a given date (by default it is assumed you are passing the new values in UTC).
5911
6425
  * Note that months start at 0!
@@ -5945,6 +6459,7 @@ var set = function set(date, values, useLocalTimeZone) {
5945
6459
  }
5946
6460
  return newDate;
5947
6461
  };
6462
+
5948
6463
  /**
5949
6464
  * Get hours of a passed date in UTC (or local timezone if passed false)
5950
6465
  * @param date - the date of which to extract hours
@@ -5960,6 +6475,7 @@ var getHours = function getHours(date, utc) {
5960
6475
  }
5961
6476
  return getHours$1(date);
5962
6477
  };
6478
+
5963
6479
  /**
5964
6480
  * Return the start of hour for the given date. The result will be in UTC.
5965
6481
  * @param date - the date of which to retrieve the start of the hour
@@ -5974,6 +6490,7 @@ var startOfHourUTC = function startOfHourUTC(date) {
5974
6490
  milliseconds: 0
5975
6491
  });
5976
6492
  };
6493
+
5977
6494
  /**
5978
6495
  * Return the start of a day for the given date. The result will be in UTC.
5979
6496
  * @param date - the date of which to retrieve the start of day
@@ -5989,6 +6506,7 @@ var startOfDayUTC = function startOfDayUTC(date) {
5989
6506
  milliseconds: 0
5990
6507
  });
5991
6508
  };
6509
+
5992
6510
  /**
5993
6511
  * Return the start of a week for the given date. The result will be in UTC.
5994
6512
  * @param date - the date of which to retrieve the start of the week
@@ -6006,6 +6524,7 @@ var startOfWeekUTC = function startOfWeekUTC(date) {
6006
6524
  milliseconds: 0
6007
6525
  });
6008
6526
  };
6527
+
6009
6528
  /**
6010
6529
  * Return the start of a month for the given date. The result will be in UTC.
6011
6530
  * @param date - the date of which to retrieve the start of the month
@@ -6020,6 +6539,7 @@ var startOfMonthUTC = function startOfMonthUTC(date) {
6020
6539
  milliseconds: 0
6021
6540
  });
6022
6541
  };
6542
+
6023
6543
  /**
6024
6544
  * Return the start of a year for the given date. The result will be in UTC.
6025
6545
  * @param date - the date of which to retrieve the start of the year
@@ -6037,6 +6557,7 @@ var startOfYearUTC = function startOfYearUTC(date) {
6037
6557
  milliseconds: 0
6038
6558
  });
6039
6559
  };
6560
+
6040
6561
  // TODO - IF TODAY time is going to be used, we need to edit this to handle the time.
6041
6562
  // - now.getTimezoneOffset(); by subtracting the timezone offset, this can be used to convert the time to similar to UTC, because startOfDay retuns values in local time with offset
6042
6563
  /**
@@ -6058,6 +6579,7 @@ var convertNOWFormatToUTC = function convertNOWFormatToUTC(timeValue) {
6058
6579
  }
6059
6580
  throw new Error('Invalid endTime format');
6060
6581
  };
6582
+
6061
6583
  /**
6062
6584
  * Parse custom time format of NOW+-hours and minutes || TODAY+-hours and minutes into UTC. The result will be in UTC.
6063
6585
  * @param timeValue - string value
@@ -6077,6 +6599,7 @@ var convertNOWandTODAYFormatsToUTC = function convertNOWandTODAYFormatsToUTC(tim
6077
6599
  }
6078
6600
  throw new Error('Invalid endTime format');
6079
6601
  };
6602
+
6080
6603
  /**
6081
6604
  * @name setSeconds
6082
6605
  * @category Second Helpers
@@ -6196,6 +6719,7 @@ var index = /*#__PURE__*/Object.freeze({
6196
6719
  * Copyright 2024 - Finnish Meteorological Institute (FMI)
6197
6720
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
6198
6721
  * */
6722
+
6199
6723
  var PROJECTION = {
6200
6724
  EPSG_3035: {
6201
6725
  name: 'ETRS89-extended / LAEA Europe',
@@ -6242,7 +6766,7 @@ var PROJECTION = {
6242
6766
  value: 'EPSG:4326'
6243
6767
  },
6244
6768
  EPSG_5041: {
6245
- name: 'Europe Polar Stereographic (EPSG:5041)',
6769
+ name: 'Europe Polar Stereographic',
6246
6770
  value: 'EPSG:5041'
6247
6771
  },
6248
6772
  EPSG_7399: {
@@ -6257,14 +6781,6 @@ var PROJECTION = {
6257
6781
  name: 'The Netherlands (28992)',
6258
6782
  value: 'EPSG:28992'
6259
6783
  },
6260
- EPSG_32661: {
6261
- name: 'Europe Polar Stereographic',
6262
- value: 'EPSG:32661'
6263
- },
6264
- EPSG_54030: {
6265
- name: 'Europe Robinson',
6266
- value: 'EPSG:54030'
6267
- },
6268
6784
  EPSG_900913: {
6269
6785
  name: 'Google Maps Global Mercator',
6270
6786
  value: 'EPSG:900913'
@@ -6306,6 +6822,7 @@ var PROJECTION = {
6306
6822
  */
6307
6823
  var RenderCounter = /*#__PURE__*/function () {
6308
6824
  function RenderCounter() {
6825
+ this.numRenders = void 0;
6309
6826
  this.numRenders = new Map();
6310
6827
  }
6311
6828
  var _proto = RenderCounter.prototype;
@@ -6317,6 +6834,7 @@ var RenderCounter = /*#__PURE__*/function () {
6317
6834
  };
6318
6835
  _proto.count = function count(id) {
6319
6836
  this.numRenders.set(id, this.get(id) + 1);
6837
+
6320
6838
  // Enable next line (for debugging) to track the number of renders per component in the developer console
6321
6839
  // console.log('numRenders', id, this.get(id));
6322
6840
  };
@@ -6345,15 +6863,16 @@ var renderCounter = new RenderCounter();
6345
6863
  * Copyright 2024 - Finnish Meteorological Institute (FMI)
6346
6864
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
6347
6865
  * */
6348
- var SessionStorageKey;
6349
- (function (SessionStorageKey) {
6866
+
6867
+ var SessionStorageKey = /*#__PURE__*/function (SessionStorageKey) {
6350
6868
  SessionStorageKey["CONFIG"] = "config";
6351
6869
  SessionStorageKey["OAUTH_STATE"] = "oauth_state";
6352
6870
  SessionStorageKey["OAUTH_CODE_VERIFIER"] = "code_verifier";
6353
6871
  SessionStorageKey["OAUTH_CODE_CHALLENGE"] = "code_challenge";
6354
6872
  SessionStorageKey["HAS_AUTHENTICATED"] = "has_authenticated";
6355
6873
  SessionStorageKey["CALLBACK_URL"] = "callback_url";
6356
- })(SessionStorageKey || (SessionStorageKey = {}));
6874
+ return SessionStorageKey;
6875
+ }({});
6357
6876
  var sessionStorageProvider = {
6358
6877
  setConfig: function setConfig(value) {
6359
6878
  return sessionStorage.setItem(SessionStorageKey.CONFIG, JSON.stringify(value));
@@ -6423,10 +6942,22 @@ var sessionStorageProvider = {
6423
6942
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
6424
6943
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
6425
6944
  * */
6945
+
6946
+ // Supported interfaces are EDR
6947
+
6426
6948
  // eslint-disable-next-line no-redeclare
6427
6949
  var SystemScope = {
6428
6950
  user: 'user',
6429
- system: 'system'
6951
+ system: 'system',
6952
+ plugin: 'plugin'
6430
6953
  };
6431
6954
 
6955
+ // This is a copy of PlotPreset in libs/timeseries/src/lib/components/TimeSeries/types.ts
6956
+
6957
+ // This is a copy of Plot in libs/timeseries/src/lib/components/TimeSeries/types.ts
6958
+
6959
+ // This is a copy of Parameter in libs/timeseries/src/lib/components/TimeSeries/types.ts
6960
+
6961
+ // This is a near copy of EDRInstance in libs/timeseries/src/lib/components/TimeSeries/types.ts
6962
+
6432
6963
  export { AlertBanner, AlertIcon, AppHeader, AppLayout, Avatar, CanvasComponent, ConfirmationButtons, ConfirmationDialog, ConfirmationServiceProvider, CustomAccordion, CustomDialog, CustomDialogHeader, CustomIconButton, CustomSlider, CustomToggleButton, CustomTooltip, DEBOUNCE_TIMEOUT, DEFAULT_ERROR_MESSAGE, DEFAULT_FILTER_HEIGHT, DraggableComponent$1 as Draggable, ErrorBoundary, Filter, FilterChip, FilterOption, LastUpdateTime, PROJECTION, ResizeComponent as Resizable, SHARED_NAMESPACE, SearchField$1 as SearchField, SearchFieldButton, SearchHighlight, SessionStorageKey, StatusTag, StorybookDocsWrapper, StyledSelect, SwitchButton, SystemScope, ToggleMenu, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, adjustPosition, calculateDialogSizeAndPosition, calculateStartSize, index as dateUtils, defaultDelay, getAxiosErrorMessage, getAxiosWarningMessage, getErrorMessage, getInitials, getLastUpdateTitle, getPosition, getWarningMessage, isAuthError, isAxiosAuthError, isAxiosError, loadAllTranslations, pollingIntervalTimeout, renderCounter, safelyInitI18nForTestsAndStories, sessionStorageProvider, sharedTranslations, showPrompt, sliderHeaderStyle, tooltipContainerStyles, useConfirmationDialog, useControlledTooltip, useDebounce, useDialogActions, useIsMounted, useMakeSureContainerStaysInsideWindow, usePoller, usePreventBrowserClose, usePrevious, useResizeObserver, useScrollingInIsolation, useUserMenu, useWheelStopPropagation };