@opengeoweb/time-slider-lite 15.3.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 (50) hide show
  1. package/index.esm.js +468 -131
  2. package/package.json +8 -8
  3. package/src/index.d.ts +0 -3
  4. package/src/lib/components/TimeSliderLite/TimeSliderLite.d.ts +0 -43
  5. package/src/lib/components/TimeSliderLite/TimeSliderLite.spec.d.ts +0 -1
  6. package/src/lib/components/TimeSliderLite/TimeSliderLite.stories.d.ts +0 -8
  7. package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.d.ts +0 -40
  8. package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.spec.d.ts +0 -1
  9. package/src/lib/components/TimeSliderLite/TimeSliderLiteConnect.stories.d.ts +0 -6
  10. package/src/lib/components/TimeSliderLite/index.d.ts +0 -4
  11. package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.d.ts +0 -131
  12. package/src/lib/components/TimeSliderLite/timeSliderLiteUtils.spec.d.ts +0 -1
  13. package/src/lib/components/TimeSliderLite/useOnToggleAnimation.d.ts +0 -3
  14. package/src/lib/components/TimeSliderLite/useOnToggleAnimation.spec.d.ts +0 -1
  15. package/src/lib/components/TimeSliderLiteBackground/TimeSliderDraggableNeedle.d.ts +0 -25
  16. package/src/lib/components/TimeSliderLiteBackground/TimeSliderDraggableNeedle.spec.d.ts +0 -1
  17. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackground.d.ts +0 -24
  18. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackground.stories.d.ts +0 -11
  19. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.d.ts +0 -16
  20. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteBackgroundSvg.spec.d.ts +0 -1
  21. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.d.ts +0 -14
  22. package/src/lib/components/TimeSliderLiteBackground/TimeSliderLiteClickableTimeline.spec.d.ts +0 -1
  23. package/src/lib/components/TimeSliderLiteBackground/TimeSliderZeroTimestamp.d.ts +0 -10
  24. package/src/lib/components/TimeSliderLiteButtons/ControlButtonGroup/ControlButtonGroup.d.ts +0 -8
  25. package/src/lib/components/TimeSliderLiteButtons/HideButton/HideButton.d.ts +0 -9
  26. package/src/lib/components/TimeSliderLiteButtons/MenuButton/MenuButton.d.ts +0 -9
  27. package/src/lib/components/TimeSliderLiteButtons/PlayButton/PlayButton.d.ts +0 -11
  28. package/src/lib/components/TimeSliderLiteButtons/StepButton/StepButton.d.ts +0 -11
  29. package/src/lib/components/TimeSliderLiteButtons/TimeSliderLiteButtonUtils.d.ts +0 -2
  30. package/src/lib/components/TimeSliderLiteOptionsMenu/AnimationSpeedOptions/AnimationSpeedOptions.d.ts +0 -13
  31. package/src/lib/components/TimeSliderLiteOptionsMenu/AnimationSpeedOptions/AnimationSpeedOptions.spec.d.ts +0 -1
  32. package/src/lib/components/TimeSliderLiteOptionsMenu/SubmenuSelectLabel.d.ts +0 -8
  33. package/src/lib/components/TimeSliderLiteOptionsMenu/SubmenuWrapper.d.ts +0 -8
  34. package/src/lib/components/TimeSliderLiteOptionsMenu/SubmenuWrapper.spec.d.ts +0 -1
  35. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeRangeOptions/DayHourSelector.d.ts +0 -21
  36. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeRangeOptions/DayHourSelector.spec.d.ts +0 -1
  37. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeRangeOptions/TimeRangeOptions.d.ts +0 -15
  38. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu.d.ts +0 -24
  39. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeSliderLiteOptionsMenu.spec.d.ts +0 -1
  40. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepOptions.d.ts +0 -15
  41. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepOptions.spec.d.ts +0 -1
  42. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeStepOptions/TimeStepSelector.d.ts +0 -11
  43. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch.d.ts +0 -8
  44. package/src/lib/components/TimeSliderLiteOptionsMenu/TimeZoneSwitch/TimeZoneSwitch.spec.d.ts +0 -1
  45. package/src/lib/components/TimeSliderLiteOptionsMenu/UpdateIntervalOptions/UpdateIntervalOptions.d.ts +0 -15
  46. package/src/lib/components/TimeSliderLiteOptionsMenu/UpdateIntervalOptions/UpdateIntervalOptions.spec.d.ts +0 -1
  47. package/src/lib/index.d.ts +0 -3
  48. package/src/lib/locales/i18n.d.ts +0 -24
  49. package/src/lib/locales/translations.spec.d.ts +0 -1
  50. package/src/lib/testUtils/Providers.d.ts +0 -24
package/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
1
  import { Card, Typography, IconButton, CardContent, Select, MenuItem, Grid, RadioGroup, FormControlLabel, Radio, Box, ToggleButtonGroup, ToggleButton, Divider, useTheme, ButtonGroup, Tooltip } from '@mui/material';
3
2
  import React, { useState, useEffect, useLayoutEffect, useRef, createElement } from 'react';
4
3
  import { Close, ChevronDown, ChevronUp, Options, Pause, Play, StepForward, StepBackward } from '@opengeoweb/theme';
4
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
5
5
  import { usePrevious, safelyInitI18nForTestsAndStories } from '@opengeoweb/shared';
6
6
  import { speedFactors, defaultAnimationDelayAtStart } from '@opengeoweb/time-slider';
7
7
  import i18n from 'i18next';
@@ -164,18 +164,18 @@ var SubmenuWrapper = function SubmenuWrapper(_ref) {
164
164
  setSubmenu = _ref.setSubmenu,
165
165
  title = _ref.title,
166
166
  props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
167
- return jsxs(Card, Object.assign({}, props, {
167
+ return /*#__PURE__*/jsxs(Card, Object.assign({}, props, {
168
168
  sx: Object.assign({
169
169
  position: 'relative'
170
170
  }, Array.isArray(sx) ? Object.assign.apply(Object, [{}].concat(sx)) : sx),
171
- children: [jsx(Typography, {
171
+ children: [/*#__PURE__*/jsx(Typography, {
172
172
  sx: {
173
173
  fontWeight: '500',
174
174
  padding: '16px',
175
175
  paddingBottom: '0px'
176
176
  },
177
177
  children: title
178
- }), jsx(IconButton, {
178
+ }), /*#__PURE__*/jsx(IconButton, {
179
179
  "data-testid": "TimeSliderLite-submenuWrapper-closeButton",
180
180
  onClick: function onClick() {
181
181
  return setSubmenu == null ? void 0 : setSubmenu(null);
@@ -186,7 +186,7 @@ var SubmenuWrapper = function SubmenuWrapper(_ref) {
186
186
  top: 4,
187
187
  right: 4
188
188
  },
189
- children: closeButtonIcon != null ? closeButtonIcon : jsx(Close, {
189
+ children: closeButtonIcon != null ? closeButtonIcon : /*#__PURE__*/jsx(Close, {
190
190
  "data-testid": "TimeSliderLite-submenuWrapper-defaultCloseIcon"
191
191
  })
192
192
  }), children]
@@ -210,6 +210,7 @@ var SubmenuWrapper = function SubmenuWrapper(_ref) {
210
210
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
211
211
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
212
212
  * */
213
+
213
214
  var DAY_TO_MILLISECOND = 24 * 60 * 60 * 1000;
214
215
  var DAY_TO_SECOND = 86400;
215
216
  var HOUR_TO_SECOND = 3600;
@@ -244,12 +245,14 @@ var defaultTimeSliderLiteUpdate = function defaultTimeSliderLiteUpdate(options)
244
245
  setTimeRange = options.setTimeRange;
245
246
  var newCurrentTime = Math.floor(Date.now() * MILLISECOND_TO_SECOND);
246
247
  var delta = newCurrentTime - currentTime;
248
+
247
249
  // Update current time and trigger update in useDefaultTimeRange hook
248
250
  setCurrentTime(currentTime + delta);
249
251
  if (timeRange && setTimeRange) {
250
252
  setTimeRange([timeRange[0] + delta, timeRange[1] + delta]);
251
253
  }
252
254
  };
255
+
253
256
  /**
254
257
  * Connected hook for updating time range and current time every 10 seconds
255
258
  * @param updateInterval Update interval in minutes
@@ -282,6 +285,7 @@ var useAutoUpdate = function useAutoUpdate(timeRange, setTimeRange, options) {
282
285
  currentTime: currentTime
283
286
  };
284
287
  };
288
+
285
289
  /**
286
290
  * Reformats a date that has capitalized first letter and colon separator for time
287
291
  * @param dateString Date string from Date.toLocaleDateString
@@ -291,6 +295,7 @@ var reformatFinnishDateString = function reformatFinnishDateString(dateString) {
291
295
  var charPositionOfTimestamp = -4;
292
296
  return dateString.charAt(0).toUpperCase() + dateString.slice(1, charPositionOfTimestamp) + dateString.slice(charPositionOfTimestamp).replace('.', ':');
293
297
  };
298
+
294
299
  /**
295
300
  * Marks UTC time with Z after hh:mm or hh.mm or appends UTC to the end of the date string
296
301
  * If two matches of time are found, the second one is marked
@@ -390,6 +395,7 @@ var hoursAndDaysToSeconds = function hoursAndDaysToSeconds(hours, days) {
390
395
  };
391
396
  var TIME_SLIDER_LITE_DEFAULT_MAX_FORECAST_RANGE = 2 * SEVEN_DAYS_IN_SECONDS;
392
397
  var TIME_SLIDER_LITE_DEFAULT_MAX_OBSERVED_RANGE = SEVEN_DAYS_IN_SECONDS;
398
+
393
399
  /**
394
400
  * Checks which layers have observed/forecasted data and returns a default time range
395
401
  * @param layers layerTypes.ReduxLayer[] Map layers
@@ -483,8 +489,7 @@ var generateCustomTimeList = function generateCustomTimeList(currentTime, startT
483
489
  forecastTimeList.reverse();
484
490
  return [].concat(observedTimeList, forecastTimeList);
485
491
  };
486
- var TickMode;
487
- (function (TickMode) {
492
+ var TickMode = /*#__PURE__*/function (TickMode) {
488
493
  TickMode[TickMode["DAY"] = 1] = "DAY";
489
494
  TickMode[TickMode["HALF_A_DAY"] = 2] = "HALF_A_DAY";
490
495
  TickMode[TickMode["SIX_HOURS"] = 4] = "SIX_HOURS";
@@ -492,7 +497,8 @@ var TickMode;
492
497
  TickMode[TickMode["ONE_HOUR"] = 24] = "ONE_HOUR";
493
498
  TickMode[TickMode["HALF_AN_HOUR"] = 48] = "HALF_AN_HOUR";
494
499
  TickMode[TickMode["FIFTEEN_MINUTES"] = 96] = "FIFTEEN_MINUTES";
495
- })(TickMode || (TickMode = {}));
500
+ return TickMode;
501
+ }(TickMode || {});
496
502
  var subTicksPerDay = function subTicksPerDay(dayWidthInPixels) {
497
503
  if (dayWidthInPixels < 40) {
498
504
  return TickMode.DAY;
@@ -602,6 +608,23 @@ var timeSliderLiteUtils = /*#__PURE__*/Object.freeze({
602
608
  useDefaultTimeRange: useDefaultTimeRange
603
609
  });
604
610
 
611
+ /* *
612
+ * Licensed under the Apache License, Version 2.0 (the "License");
613
+ * you may not use this file except in compliance with the License.
614
+ * You may obtain a copy of the License at
615
+ *
616
+ * http://www.apache.org/licenses/LICENSE-2.0
617
+ *
618
+ * Unless required by applicable law or agreed to in writing, software
619
+ * distributed under the License is distributed on an "AS IS" BASIS,
620
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
621
+ * See the License for the specific language governing permissions and
622
+ * limitations under the License.
623
+ *
624
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
625
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
626
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
627
+ * */
605
628
  var TIME_SLIDER_LITE_NAMESPACE = 'timesliderlite';
606
629
  var initTimeSliderLiteI18n = function initTimeSliderLiteI18n(language, i18nInstance) {
607
630
  var i18nInst = i18nInstance != null ? i18nInstance : i18n;
@@ -627,7 +650,7 @@ var TimeSliderLiteI18nProvider = function TimeSliderLiteI18nProvider(_ref) {
627
650
  language = _ref.language,
628
651
  i18nInstance = _ref.i18nInstance;
629
652
  initTimeSliderLiteI18n(language, i18nInstance);
630
- return jsx(I18nextProvider, {
653
+ return /*#__PURE__*/jsx(I18nextProvider, {
631
654
  i18n: i18nInstance != null ? i18nInstance : i18n,
632
655
  children: children
633
656
  });
@@ -636,6 +659,24 @@ var useTimesliderLiteTranslation = function useTimesliderLiteTranslation() {
636
659
  return useTranslation(TIME_SLIDER_LITE_NAMESPACE);
637
660
  };
638
661
 
662
+ /* *
663
+ * Licensed under the Apache License, Version 2.0 (the "License");
664
+ * you may not use this file except in compliance with the License.
665
+ * You may obtain a copy of the License at
666
+ *
667
+ * http://www.apache.org/licenses/LICENSE-2.0
668
+ *
669
+ * Unless required by applicable law or agreed to in writing, software
670
+ * distributed under the License is distributed on an "AS IS" BASIS,
671
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
672
+ * See the License for the specific language governing permissions and
673
+ * limitations under the License.
674
+ *
675
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
676
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
677
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
678
+ * */
679
+
639
680
  var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
640
681
  var _useAnimationSpeed$;
641
682
  var dropdownButtonIcon = _ref.dropdownButtonIcon,
@@ -657,7 +698,7 @@ var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
657
698
  var animationSpeed = (_useAnimationSpeed$ = useAnimationSpeed == null ? void 0 : useAnimationSpeed[0]) != null ? _useAnimationSpeed$ : defaultSpeedFactor;
658
699
  var setAnimationSpeed = useAnimationSpeed == null ? void 0 : useAnimationSpeed[1];
659
700
  var readOnly = !setAnimationSpeed || speedOptions.length < 2;
660
- return jsx(CardContent, {
701
+ return /*#__PURE__*/jsx(CardContent, {
661
702
  className: "TimeSliderLite-animationSpeedOptions",
662
703
  "data-testid": "TimeSliderLite-animationSpeedOptions",
663
704
  sx: {
@@ -665,7 +706,7 @@ var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
665
706
  marginBottom: '-8px',
666
707
  minWidth: '200px'
667
708
  },
668
- children: jsx(Select, {
709
+ children: /*#__PURE__*/jsx(Select, {
669
710
  IconComponent: dropdownButtonIcon,
670
711
  className: "TimeSliderLite-animationSpeedSelect",
671
712
  "data-testid": "TimeSliderLite-animationSpeedSelect",
@@ -685,7 +726,7 @@ var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
685
726
  children: speedOptions.map(function (option) {
686
727
  var postfix = option === defaultSpeedFactor ? translatedSpeedOptionPostfix : speedOptionItemPostfix;
687
728
  var label = speedOptionItemPrefix + option + postfix;
688
- return jsx(MenuItem, {
729
+ return /*#__PURE__*/jsx(MenuItem, {
689
730
  value: String(option),
690
731
  children: label
691
732
  }, String(option));
@@ -694,10 +735,28 @@ var AnimationSpeedOptions = function AnimationSpeedOptions(_ref) {
694
735
  });
695
736
  };
696
737
 
738
+ /* *
739
+ * Licensed under the Apache License, Version 2.0 (the "License");
740
+ * you may not use this file except in compliance with the License.
741
+ * You may obtain a copy of the License at
742
+ *
743
+ * http://www.apache.org/licenses/LICENSE-2.0
744
+ *
745
+ * Unless required by applicable law or agreed to in writing, software
746
+ * distributed under the License is distributed on an "AS IS" BASIS,
747
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
748
+ * See the License for the specific language governing permissions and
749
+ * limitations under the License.
750
+ *
751
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
752
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
753
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
754
+ * */
755
+
697
756
  var SubmenuSelectLabel = function SubmenuSelectLabel(_ref) {
698
757
  var children = _ref.children,
699
758
  isDisabled = _ref.isDisabled;
700
- return jsx(Typography, {
759
+ return /*#__PURE__*/jsx(Typography, {
701
760
  sx: {
702
761
  opacity: isDisabled ? 0.5 : 1,
703
762
  fontWeight: '400',
@@ -716,7 +775,7 @@ var CustomSelect = function CustomSelect(_ref) {
716
775
  setValue = _ref.setValue,
717
776
  props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
718
777
  var availableOptions = Array.from(Array(amountOfOptions).keys());
719
- return jsx(Select, Object.assign({}, props, {
778
+ return /*#__PURE__*/jsx(Select, Object.assign({}, props, {
720
779
  IconComponent: dropdownButtonIcon,
721
780
  autoWidth: false,
722
781
  "data-testid": "TimeSliderLite-customSelect-" + itemPostFix,
@@ -736,7 +795,7 @@ var CustomSelect = function CustomSelect(_ref) {
736
795
  },
737
796
  value: String(availableOptions.includes(value) ? value : availableOptions[availableOptions.length - 1]),
738
797
  children: availableOptions.map(function (option) {
739
- return jsxs(MenuItem, {
798
+ return /*#__PURE__*/jsxs(MenuItem, {
740
799
  value: String(option),
741
800
  children: [option, " ", itemPostFix]
742
801
  }, option);
@@ -760,23 +819,23 @@ var DayHourSelector = function DayHourSelector(_ref2) {
760
819
  var remainingHours = getRemainingHours(maxHours, days);
761
820
  var amountOfDayOptions = maxHours ? Math.floor(maxHours / 24) + 1 : 1;
762
821
  var amountOfHourOptions = maxHours ? Math.min(24, remainingHours + 1) : 1;
763
- return jsxs(Grid, {
822
+ return /*#__PURE__*/jsxs(Grid, {
764
823
  container: true,
765
824
  sx: sx,
766
- children: [jsx(Grid, {
825
+ children: [/*#__PURE__*/jsx(Grid, {
767
826
  size: {
768
827
  xs: 3
769
828
  },
770
- children: jsx(SubmenuSelectLabel, {
829
+ children: /*#__PURE__*/jsx(SubmenuSelectLabel, {
771
830
  isDisabled: isDisabled || amountOfDayOptions === 1 && amountOfHourOptions === 1,
772
831
  children: label
773
832
  })
774
- }), jsx(Grid, {
833
+ }), /*#__PURE__*/jsx(Grid, {
775
834
  paddingX: "4px",
776
835
  size: {
777
836
  xs: 4.5
778
837
  },
779
- children: jsx(CustomSelect, {
838
+ children: /*#__PURE__*/jsx(CustomSelect, {
780
839
  amountOfOptions: amountOfDayOptions,
781
840
  disabled: isDisabled || amountOfDayOptions === 1,
782
841
  dropdownButtonIcon: dropdownButtonIcon,
@@ -784,12 +843,12 @@ var DayHourSelector = function DayHourSelector(_ref2) {
784
843
  setValue: setDays,
785
844
  value: days
786
845
  })
787
- }), jsx(Grid, {
846
+ }), /*#__PURE__*/jsx(Grid, {
788
847
  paddingLeft: "4px",
789
848
  size: {
790
849
  xs: 4.5
791
850
  },
792
- children: jsx(CustomSelect, {
851
+ children: /*#__PURE__*/jsx(CustomSelect, {
793
852
  amountOfOptions: amountOfHourOptions,
794
853
  disabled: isDisabled || amountOfHourOptions === 1,
795
854
  dropdownButtonIcon: dropdownButtonIcon,
@@ -801,6 +860,24 @@ var DayHourSelector = function DayHourSelector(_ref2) {
801
860
  });
802
861
  };
803
862
 
863
+ /* *
864
+ * Licensed under the Apache License, Version 2.0 (the "License");
865
+ * you may not use this file except in compliance with the License.
866
+ * You may obtain a copy of the License at
867
+ *
868
+ * http://www.apache.org/licenses/LICENSE-2.0
869
+ *
870
+ * Unless required by applicable law or agreed to in writing, software
871
+ * distributed under the License is distributed on an "AS IS" BASIS,
872
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
873
+ * See the License for the specific language governing permissions and
874
+ * limitations under the License.
875
+ *
876
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
877
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
878
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
879
+ * */
880
+
804
881
  var TIME_SELECTOR_MIN_WIDTH = '21em';
805
882
  var TimeRangeOptions = function TimeRangeOptions(_ref) {
806
883
  var _ref$currentTime = _ref.currentTime,
@@ -870,7 +947,7 @@ var TimeRangeOptions = function TimeRangeOptions(_ref) {
870
947
  var maxEndTime = Math.max(defaultTimeRange[1], customTimeRange[1]);
871
948
  var forecastHoursToCurrentTime = (maxEndTime - currentTime) * SECOND_TO_HOUR;
872
949
  var maxForecastHours = forecastHoursToCurrentTime > 0 ? Math.floor(forecastHoursToCurrentTime) : 0;
873
- return jsxs(CardContent, {
950
+ return /*#__PURE__*/jsxs(CardContent, {
874
951
  className: "TimeSliderLite-timeRangeOptions",
875
952
  "data-testid": "TimeSliderLite-timeRangeOptions",
876
953
  sx: {
@@ -882,7 +959,7 @@ var TimeRangeOptions = function TimeRangeOptions(_ref) {
882
959
  paddingBottom: '16px'
883
960
  }
884
961
  },
885
- children: [t('menu.timeRange.description'), jsxs(RadioGroup, {
962
+ children: [t('menu.timeRange.description'), /*#__PURE__*/jsxs(RadioGroup, {
886
963
  defaultValue: isDefault ? 'default' : 'custom',
887
964
  name: "time-range-radio-button-group",
888
965
  onChange: handleIsDefaultChange,
@@ -891,20 +968,20 @@ var TimeRangeOptions = function TimeRangeOptions(_ref) {
891
968
  marginTop: 1
892
969
  },
893
970
  value: isDefault ? 'default' : 'custom',
894
- children: [jsx(FormControlLabel, {
895
- control: jsx(Radio, {}),
971
+ children: [/*#__PURE__*/jsx(FormControlLabel, {
972
+ control: /*#__PURE__*/jsx(Radio, {}),
896
973
  disabled: isReadOnly,
897
974
  label: t('common.default'),
898
975
  value: "default"
899
- }), jsx(FormControlLabel, {
900
- control: jsx(Radio, {}),
976
+ }), /*#__PURE__*/jsx(FormControlLabel, {
977
+ control: /*#__PURE__*/jsx(Radio, {}),
901
978
  disabled: isReadOnly,
902
979
  label: t('common.custom'),
903
980
  value: "custom"
904
981
  })]
905
- }), jsxs(Box, {
982
+ }), /*#__PURE__*/jsxs(Box, {
906
983
  minWidth: TIME_SELECTOR_MIN_WIDTH,
907
- children: [jsx(DayHourSelector, {
984
+ children: [/*#__PURE__*/jsx(DayHourSelector, {
908
985
  dropdownButtonIcon: dropdownButtonIcon,
909
986
  isDisabled: isDefault,
910
987
  label: t('common.observed'),
@@ -914,7 +991,7 @@ var TimeRangeOptions = function TimeRangeOptions(_ref) {
914
991
  },
915
992
  useDays: [observedDays, setObservedDays],
916
993
  useHours: [observedHours, setObservedHours]
917
- }), jsx(DayHourSelector, {
994
+ }), /*#__PURE__*/jsx(DayHourSelector, {
918
995
  dropdownButtonIcon: dropdownButtonIcon,
919
996
  isDisabled: isDefault,
920
997
  label: t('common.forecast'),
@@ -950,7 +1027,7 @@ var TimeStepSelector = function TimeStepSelector(_ref) {
950
1027
  var availableOptionKeys = allOptionsKeys.filter(function (option) {
951
1028
  return Number(option) >= defaultTimeStep;
952
1029
  });
953
- return jsx(Select, Object.assign({}, props, {
1030
+ return /*#__PURE__*/jsx(Select, Object.assign({}, props, {
954
1031
  IconComponent: dropdownButtonIcon,
955
1032
  className: "TimeSliderLite-timeStepSelect",
956
1033
  "data-testid": "TimeSliderLite-timeStepSelect",
@@ -968,7 +1045,7 @@ var TimeStepSelector = function TimeStepSelector(_ref) {
968
1045
  },
969
1046
  value: String(availableOptionKeys.includes(String(value)) ? value : availableOptionKeys[availableOptionKeys.length - 1]),
970
1047
  children: availableOptionKeys.map(function (option) {
971
- return jsx(MenuItem, {
1048
+ return /*#__PURE__*/jsx(MenuItem, {
972
1049
  value: String(option),
973
1050
  children: options[option]
974
1051
  }, String(option));
@@ -976,6 +1053,24 @@ var TimeStepSelector = function TimeStepSelector(_ref) {
976
1053
  }));
977
1054
  };
978
1055
 
1056
+ /* *
1057
+ * Licensed under the Apache License, Version 2.0 (the "License");
1058
+ * you may not use this file except in compliance with the License.
1059
+ * You may obtain a copy of the License at
1060
+ *
1061
+ * http://www.apache.org/licenses/LICENSE-2.0
1062
+ *
1063
+ * Unless required by applicable law or agreed to in writing, software
1064
+ * distributed under the License is distributed on an "AS IS" BASIS,
1065
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1066
+ * See the License for the specific language governing permissions and
1067
+ * limitations under the License.
1068
+ *
1069
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1070
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1071
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1072
+ * */
1073
+
979
1074
  var TimeStepOptions = function TimeStepOptions(_ref) {
980
1075
  var useTimeStep = _ref.useTimeStep,
981
1076
  _ref$defaultTimeStep = _ref.defaultTimeStep,
@@ -1014,7 +1109,7 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1014
1109
  setTimeStep(defaultTimeStep);
1015
1110
  }
1016
1111
  };
1017
- return jsxs(CardContent, {
1112
+ return /*#__PURE__*/jsxs(CardContent, {
1018
1113
  "data-testid": "TimeSliderLite-timeStepOptions",
1019
1114
  sx: {
1020
1115
  paddingTop: '4px',
@@ -1025,7 +1120,7 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1025
1120
  paddingBottom: '16px'
1026
1121
  }
1027
1122
  },
1028
- children: [jsxs(RadioGroup, {
1123
+ children: [/*#__PURE__*/jsxs(RadioGroup, {
1029
1124
  defaultValue: isDefault ? 'default' : 'custom',
1030
1125
  name: "time-range-radio-button-group",
1031
1126
  onChange: handleIsDefaultChange,
@@ -1034,32 +1129,32 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1034
1129
  marginTop: 1
1035
1130
  },
1036
1131
  value: isDefault ? 'default' : 'custom',
1037
- children: [jsx(FormControlLabel, {
1038
- control: jsx(Radio, {}),
1132
+ children: [/*#__PURE__*/jsx(FormControlLabel, {
1133
+ control: /*#__PURE__*/jsx(Radio, {}),
1039
1134
  disabled: isReadOnly,
1040
1135
  label: t('common.default'),
1041
1136
  value: "default"
1042
- }), jsx(FormControlLabel, {
1043
- control: jsx(Radio, {}),
1137
+ }), /*#__PURE__*/jsx(FormControlLabel, {
1138
+ control: /*#__PURE__*/jsx(Radio, {}),
1044
1139
  disabled: isReadOnly,
1045
1140
  label: t('common.custom'),
1046
1141
  value: "custom"
1047
1142
  })]
1048
- }), jsxs(Grid, {
1143
+ }), /*#__PURE__*/jsxs(Grid, {
1049
1144
  container: true,
1050
1145
  width: 250,
1051
- children: [jsx(Grid, {
1146
+ children: [/*#__PURE__*/jsx(Grid, {
1052
1147
  size: {
1053
1148
  xs: 4
1054
1149
  },
1055
1150
  sx: {
1056
1151
  marginY: 1
1057
1152
  },
1058
- children: jsx(SubmenuSelectLabel, {
1153
+ children: /*#__PURE__*/jsx(SubmenuSelectLabel, {
1059
1154
  isDisabled: isDefault,
1060
1155
  children: t('common.observed')
1061
1156
  })
1062
- }), jsx(Grid, {
1157
+ }), /*#__PURE__*/jsx(Grid, {
1063
1158
  paddingX: "4px",
1064
1159
  size: {
1065
1160
  xs: 8
@@ -1067,7 +1162,7 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1067
1162
  sx: {
1068
1163
  marginY: 1
1069
1164
  },
1070
- children: jsx(TimeStepSelector, {
1165
+ children: /*#__PURE__*/jsx(TimeStepSelector, {
1071
1166
  defaultTimeStep: defaultTimeStep[0],
1072
1167
  disabled: isDefault,
1073
1168
  dropdownButtonIcon: dropdownButtonIcon,
@@ -1075,20 +1170,20 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1075
1170
  timeStepOptions: timeStepOptions,
1076
1171
  value: observedTimeStep
1077
1172
  })
1078
- }), jsx(Grid, {
1173
+ }), /*#__PURE__*/jsx(Grid, {
1079
1174
  size: {
1080
1175
  xs: 4
1081
1176
  },
1082
- children: jsx(SubmenuSelectLabel, {
1177
+ children: /*#__PURE__*/jsx(SubmenuSelectLabel, {
1083
1178
  isDisabled: isDefault,
1084
1179
  children: t('common.forecast')
1085
1180
  })
1086
- }), jsx(Grid, {
1181
+ }), /*#__PURE__*/jsx(Grid, {
1087
1182
  paddingX: "4px",
1088
1183
  size: {
1089
1184
  xs: 8
1090
1185
  },
1091
- children: jsx(TimeStepSelector, {
1186
+ children: /*#__PURE__*/jsx(TimeStepSelector, {
1092
1187
  defaultTimeStep: defaultTimeStep[1],
1093
1188
  disabled: isDefault,
1094
1189
  dropdownButtonIcon: dropdownButtonIcon,
@@ -1101,6 +1196,24 @@ var TimeStepOptions = function TimeStepOptions(_ref) {
1101
1196
  });
1102
1197
  };
1103
1198
 
1199
+ /* *
1200
+ * Licensed under the Apache License, Version 2.0 (the "License");
1201
+ * you may not use this file except in compliance with the License.
1202
+ * You may obtain a copy of the License at
1203
+ *
1204
+ * http://www.apache.org/licenses/LICENSE-2.0
1205
+ *
1206
+ * Unless required by applicable law or agreed to in writing, software
1207
+ * distributed under the License is distributed on an "AS IS" BASIS,
1208
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1209
+ * See the License for the specific language governing permissions and
1210
+ * limitations under the License.
1211
+ *
1212
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1213
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1214
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1215
+ * */
1216
+
1104
1217
  var availableTimeZones = ['LT', 'UTC'];
1105
1218
  var styles$3 = {
1106
1219
  root: {
@@ -1126,7 +1239,7 @@ var TimeZoneSwitch = function TimeZoneSwitch(_ref) {
1126
1239
  setTimeZone = _ref$useTimeZone2[1];
1127
1240
  var _useTimesliderLiteTra = useTimesliderLiteTranslation(),
1128
1241
  t = _useTimesliderLiteTra.t;
1129
- return jsx(ToggleButtonGroup, {
1242
+ return /*#__PURE__*/jsx(ToggleButtonGroup, {
1130
1243
  className: "TimeSliderLite-timeZoneSwitch",
1131
1244
  "data-testid": "TimeSliderLite-timeZoneSwitch",
1132
1245
  disabled: !setTimeZone,
@@ -1139,7 +1252,7 @@ var TimeZoneSwitch = function TimeZoneSwitch(_ref) {
1139
1252
  sx: styles$3.root,
1140
1253
  value: timeZone != null ? timeZone : 'LT',
1141
1254
  children: availableTimeZones.map(function (zone) {
1142
- return jsx(ToggleButton, {
1255
+ return /*#__PURE__*/jsx(ToggleButton, {
1143
1256
  value: zone,
1144
1257
  children: t("menu." + zone)
1145
1258
  }, zone);
@@ -1147,6 +1260,24 @@ var TimeZoneSwitch = function TimeZoneSwitch(_ref) {
1147
1260
  });
1148
1261
  };
1149
1262
 
1263
+ /* *
1264
+ * Licensed under the Apache License, Version 2.0 (the "License");
1265
+ * you may not use this file except in compliance with the License.
1266
+ * You may obtain a copy of the License at
1267
+ *
1268
+ * http://www.apache.org/licenses/LICENSE-2.0
1269
+ *
1270
+ * Unless required by applicable law or agreed to in writing, software
1271
+ * distributed under the License is distributed on an "AS IS" BASIS,
1272
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1273
+ * See the License for the specific language governing permissions and
1274
+ * limitations under the License.
1275
+ *
1276
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1277
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1278
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1279
+ * */
1280
+
1150
1281
  var defaultUpdateIntervalOptions = [1, 2, 5, 10, 15, 30, 60];
1151
1282
  var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1152
1283
  var _useUpdateInterval$, _updateIntervalOption;
@@ -1172,7 +1303,7 @@ var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1172
1303
  var defaultValue = (_updateIntervalOption = updateIntervalOptions.find(function (option) {
1173
1304
  return option === defaultUpdateInterval;
1174
1305
  })) != null ? _updateIntervalOption : Math.min.apply(Math, updateIntervalOptions);
1175
- return jsx(CardContent, {
1306
+ return /*#__PURE__*/jsx(CardContent, {
1176
1307
  className: "TimeSliderLite-updateIntervalOptions",
1177
1308
  "data-testid": "TimeSliderLite-updateIntervalOptions",
1178
1309
  sx: {
@@ -1180,7 +1311,7 @@ var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1180
1311
  marginBottom: '-8px',
1181
1312
  minWidth: '200px'
1182
1313
  },
1183
- children: jsx(Select, {
1314
+ children: /*#__PURE__*/jsx(Select, {
1184
1315
  IconComponent: dropdownButtonIcon,
1185
1316
  className: "TimeSliderLite-updateIntervalSelect",
1186
1317
  "data-testid": "TimeSliderLite-updateIntervalSelect",
@@ -1199,7 +1330,7 @@ var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1199
1330
  value: String(updateInterval != null ? updateInterval : defaultValue),
1200
1331
  children: updateIntervalOptions.map(function (option) {
1201
1332
  var label = option === defaultValue ? "" + intervalOptionPrefix + option + translatedDefaultOptionPostfix : "" + intervalOptionPrefix + option + translatedIntervalOptionPostfix;
1202
- return jsx(MenuItem, {
1333
+ return /*#__PURE__*/jsx(MenuItem, {
1203
1334
  value: String(option),
1204
1335
  children: label
1205
1336
  }, String(option));
@@ -1208,6 +1339,24 @@ var UpdateIntervalOptions = function UpdateIntervalOptions(_ref) {
1208
1339
  });
1209
1340
  };
1210
1341
 
1342
+ /* *
1343
+ * Licensed under the Apache License, Version 2.0 (the "License");
1344
+ * you may not use this file except in compliance with the License.
1345
+ * You may obtain a copy of the License at
1346
+ *
1347
+ * http://www.apache.org/licenses/LICENSE-2.0
1348
+ *
1349
+ * Unless required by applicable law or agreed to in writing, software
1350
+ * distributed under the License is distributed on an "AS IS" BASIS,
1351
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1352
+ * See the License for the specific language governing permissions and
1353
+ * limitations under the License.
1354
+ *
1355
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1356
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1357
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1358
+ * */
1359
+
1211
1360
  var styles$2 = {
1212
1361
  button: {
1213
1362
  height: '36px',
@@ -1224,14 +1373,15 @@ var styles$2 = {
1224
1373
  }
1225
1374
  }
1226
1375
  };
1376
+
1227
1377
  // TODO: Add translations
1228
- var SubmenuTitleTranslations;
1229
- (function (SubmenuTitleTranslations) {
1378
+ var SubmenuTitleTranslations = /*#__PURE__*/function (SubmenuTitleTranslations) {
1230
1379
  SubmenuTitleTranslations["TIME_RANGE"] = "menu.timeRange";
1231
1380
  SubmenuTitleTranslations["TIME_STEP"] = "menu.timeStep";
1232
1381
  SubmenuTitleTranslations["SPEED"] = "menu.speed";
1233
1382
  SubmenuTitleTranslations["UPDATE_INTERVAL"] = "menu.updateInterval";
1234
- })(SubmenuTitleTranslations || (SubmenuTitleTranslations = {}));
1383
+ return SubmenuTitleTranslations;
1384
+ }({});
1235
1385
  var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1236
1386
  var closeButtonIcon = _ref.closeButtonIcon,
1237
1387
  _ref$currentTime = _ref.currentTime,
@@ -1265,8 +1415,8 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1265
1415
  var _React$useState2 = React.useState(0),
1266
1416
  submenuLeft = _React$useState2[0],
1267
1417
  setSubmenuLeft = _React$useState2[1];
1268
- return jsxs(Fragment, {
1269
- children: [!!submenu && jsxs(SubmenuWrapper, {
1418
+ return /*#__PURE__*/jsxs(Fragment, {
1419
+ children: [!!submenu && /*#__PURE__*/jsxs(SubmenuWrapper, {
1270
1420
  closeButtonIcon: closeButtonIcon,
1271
1421
  setSubmenu: setSubmenu,
1272
1422
  sx: Object.assign({
@@ -1274,30 +1424,30 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1274
1424
  marginLeft: '-12px'
1275
1425
  }, Array.isArray(subMenuSx) ? Object.assign.apply(Object, [{}].concat(subMenuSx)) : subMenuSx),
1276
1426
  title: t(submenu + ".title"),
1277
- children: [submenu === SubmenuTitleTranslations.TIME_RANGE && jsx(TimeRangeOptions, {
1427
+ children: [submenu === SubmenuTitleTranslations.TIME_RANGE && /*#__PURE__*/jsx(TimeRangeOptions, {
1278
1428
  currentTime: currentTime,
1279
1429
  defaultTimeRange: defaultTimeRange,
1280
1430
  dropdownButtonIcon: dropdownButtonIcon,
1281
1431
  useTimeRange: useTimeRange
1282
- }), submenu === SubmenuTitleTranslations.TIME_STEP && jsx(TimeStepOptions, {
1432
+ }), submenu === SubmenuTitleTranslations.TIME_STEP && /*#__PURE__*/jsx(TimeStepOptions, {
1283
1433
  defaultTimeStep: defaultTimeStep,
1284
1434
  dropdownButtonIcon: dropdownButtonIcon,
1285
1435
  timeStepOptions: timeStepOptions,
1286
1436
  useTimeStep: useTimeStep
1287
- }), submenu === SubmenuTitleTranslations.SPEED && jsx(AnimationSpeedOptions, {
1437
+ }), submenu === SubmenuTitleTranslations.SPEED && /*#__PURE__*/jsx(AnimationSpeedOptions, {
1288
1438
  defaultSpeedFactor: defaultSpeedFactor,
1289
1439
  dropdownButtonIcon: dropdownButtonIcon,
1290
1440
  speedOptionItemPostfix: speedOptionItemPostfix,
1291
1441
  speedOptionItemPrefix: speedOptionItemPrefix,
1292
1442
  speedOptions: speedOptions,
1293
1443
  useAnimationSpeed: useAnimationSpeed
1294
- }), submenu === SubmenuTitleTranslations.UPDATE_INTERVAL && jsx(UpdateIntervalOptions, {
1444
+ }), submenu === SubmenuTitleTranslations.UPDATE_INTERVAL && /*#__PURE__*/jsx(UpdateIntervalOptions, {
1295
1445
  defaultUpdateInterval: defaultUpdateInterval,
1296
1446
  dropdownButtonIcon: dropdownButtonIcon,
1297
1447
  updateIntervalOptions: updateIntervalOptions,
1298
1448
  useUpdateInterval: useUpdateInterval
1299
1449
  })]
1300
- }), jsxs(Box, {
1450
+ }), /*#__PURE__*/jsxs(Box, {
1301
1451
  sx: Object.assign({
1302
1452
  backgroundColor: 'geowebColors.background.surface',
1303
1453
  borderRadius: 1,
@@ -1306,7 +1456,7 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1306
1456
  marginY: 1,
1307
1457
  visibility: menuOpen ? 'visible' : 'hidden'
1308
1458
  }, Array.isArray(sx) ? Object.assign.apply(Object, [{}].concat(sx)) : sx),
1309
- children: [jsx(ToggleButtonGroup, {
1459
+ children: [/*#__PURE__*/jsx(ToggleButtonGroup, {
1310
1460
  "data-testid": "TimeSliderLite-optionsMenu",
1311
1461
  exclusive: true,
1312
1462
  onChange: function onChange(event, newOption) {
@@ -1321,18 +1471,18 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1321
1471
  },
1322
1472
  value: submenu,
1323
1473
  children: Object.values(SubmenuTitleTranslations).map(function (value) {
1324
- return jsx(ToggleButton, {
1474
+ return /*#__PURE__*/jsx(ToggleButton, {
1325
1475
  sx: styles$2.button,
1326
1476
  value: value,
1327
1477
  children: t(value + ".button")
1328
1478
  }, value);
1329
1479
  })
1330
- }), jsx(TimeZoneSwitch$1, {
1480
+ }), /*#__PURE__*/jsx(TimeZoneSwitch$1, {
1331
1481
  useTimeZone: useTimeZone != null ? useTimeZone : ['LT']
1332
- }), jsx(Divider, {
1482
+ }), /*#__PURE__*/jsx(Divider, {
1333
1483
  flexItem: true,
1334
1484
  orientation: "vertical"
1335
- }), jsx(IconButton, {
1485
+ }), /*#__PURE__*/jsx(IconButton, {
1336
1486
  "data-testid": "TimeSliderLite-optionsMenu-closeButton",
1337
1487
  onClick: function onClick() {
1338
1488
  return setMenuOpen == null ? void 0 : setMenuOpen(false);
@@ -1341,12 +1491,29 @@ var TimeSliderLiteOptionsMenu = function TimeSliderLiteOptionsMenu(_ref) {
1341
1491
  sx: {
1342
1492
  margin: 0.5
1343
1493
  },
1344
- children: closeButtonIcon != null ? closeButtonIcon : jsx(Close, {})
1494
+ children: closeButtonIcon != null ? closeButtonIcon : /*#__PURE__*/jsx(Close, {})
1345
1495
  })]
1346
1496
  })]
1347
1497
  });
1348
1498
  };
1349
1499
 
1500
+ /* *
1501
+ * Licensed under the Apache License, Version 2.0 (the "License");
1502
+ * you may not use this file except in compliance with the License.
1503
+ * You may obtain a copy of the License at
1504
+ *
1505
+ * http://www.apache.org/licenses/LICENSE-2.0
1506
+ *
1507
+ * Unless required by applicable law or agreed to in writing, software
1508
+ * distributed under the License is distributed on an "AS IS" BASIS,
1509
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1510
+ * See the License for the specific language governing permissions and
1511
+ * limitations under the License.
1512
+ *
1513
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1514
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1515
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1516
+ * */
1350
1517
  var DRAG_AREA_WIDTH = 10;
1351
1518
  var NEEDLE_WIDTH = 5;
1352
1519
  var SHADOW_SPREAD = 2;
@@ -1355,7 +1522,7 @@ var NeedleShadow = function NeedleShadow(_ref) {
1355
1522
  stroke = _ref.stroke,
1356
1523
  height = _ref.height,
1357
1524
  width = _ref.width;
1358
- return jsx("line", {
1525
+ return /*#__PURE__*/jsx("line", {
1359
1526
  "data-testid": "TimeSliderLite-NeedleShadow",
1360
1527
  filter: "blur(0.5px)",
1361
1528
  stroke: stroke,
@@ -1372,7 +1539,7 @@ var NeedleLine = function NeedleLine(_ref2) {
1372
1539
  stroke = _ref2.stroke,
1373
1540
  height = _ref2.height,
1374
1541
  width = _ref2.width;
1375
- return jsx("line", {
1542
+ return /*#__PURE__*/jsx("line", {
1376
1543
  "data-testid": "TimeSliderLite-NeedleLine",
1377
1544
  stroke: stroke,
1378
1545
  strokeLinecap: "round",
@@ -1433,7 +1600,7 @@ var TimeSliderDraggableNeedle = function TimeSliderDraggableNeedle(_ref3) {
1433
1600
  });
1434
1601
  var localLabel = language === 'fi' || language === 'sv-FI' ? reformatFinnishDateString(dateString) : dateString;
1435
1602
  var label = timeZone === 'UTC' ? shortUTCTime(localLabel) : localLabel;
1436
- return jsx(Draggable, {
1603
+ return /*#__PURE__*/jsx(Draggable, {
1437
1604
  axis: "x",
1438
1605
  bounds: {
1439
1606
  left: -needleDragAreaWidth / 2,
@@ -1462,7 +1629,7 @@ var TimeSliderDraggableNeedle = function TimeSliderDraggableNeedle(_ref3) {
1462
1629
  x: x,
1463
1630
  y: 0
1464
1631
  },
1465
- children: jsxs(Box, {
1632
+ children: /*#__PURE__*/jsxs(Box, {
1466
1633
  className: "TimeSliderLite-DraggableNeedle",
1467
1634
  "data-testid": "TimeSliderLite-DraggableNeedle",
1468
1635
  onDoubleClick: onDoubleClick,
@@ -1470,24 +1637,24 @@ var TimeSliderDraggableNeedle = function TimeSliderDraggableNeedle(_ref3) {
1470
1637
  sx: {
1471
1638
  overflow: 'visible'
1472
1639
  },
1473
- children: [jsxs("svg", {
1640
+ children: [/*#__PURE__*/jsxs("svg", {
1474
1641
  cursor: "ew-resize",
1475
1642
  "data-testid": "TimeSliderLite-NeedleSvg",
1476
1643
  height: height,
1477
1644
  style: style,
1478
1645
  width: needleDragAreaWidth,
1479
- children: [jsx(NeedleShadow, {
1646
+ children: [/*#__PURE__*/jsx(NeedleShadow, {
1480
1647
  height: height,
1481
1648
  stroke: timeSliderLite.needleShadow.stroke,
1482
1649
  width: needleWidth,
1483
1650
  x: needleDragAreaWidth / 2
1484
- }), jsx(NeedleLine, {
1651
+ }), /*#__PURE__*/jsx(NeedleLine, {
1485
1652
  height: height,
1486
1653
  stroke: currentTimeSelected ? timeSliderLite.needleDefault.stroke : timeSliderLite.needle.stroke,
1487
1654
  width: needleWidth,
1488
1655
  x: needleDragAreaWidth / 2
1489
1656
  })]
1490
- }), jsxs(Box, {
1657
+ }), /*#__PURE__*/jsxs(Box, {
1491
1658
  bottom: "-1px",
1492
1659
  className: "TimeSliderLite-timeStamp",
1493
1660
  position: "absolute",
@@ -1504,7 +1671,7 @@ var TimeSliderDraggableNeedle = function TimeSliderDraggableNeedle(_ref3) {
1504
1671
  transform: "translate(calc(-50% + " + needleWidth + "px + " + needleLabelOffset[0] + "px), " + needleLabelOffset[1] + "px)",
1505
1672
  zIndex: needleLabelZIndex != null ? needleLabelZIndex : null
1506
1673
  },
1507
- children: [label, jsx(Box, {
1674
+ children: [label, /*#__PURE__*/jsx(Box, {
1508
1675
  bottom: "-4px",
1509
1676
  className: "TimeSliderLite-timeStamp-tail",
1510
1677
  height: "10px",
@@ -1522,6 +1689,24 @@ var TimeSliderDraggableNeedle = function TimeSliderDraggableNeedle(_ref3) {
1522
1689
  });
1523
1690
  };
1524
1691
 
1692
+ /* *
1693
+ * Licensed under the Apache License, Version 2.0 (the "License");
1694
+ * you may not use this file except in compliance with the License.
1695
+ * You may obtain a copy of the License at
1696
+ *
1697
+ * http://www.apache.org/licenses/LICENSE-2.0
1698
+ *
1699
+ * Unless required by applicable law or agreed to in writing, software
1700
+ * distributed under the License is distributed on an "AS IS" BASIS,
1701
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1702
+ * See the License for the specific language governing permissions and
1703
+ * limitations under the License.
1704
+ *
1705
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1706
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1707
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1708
+ * */
1709
+
1525
1710
  var OBSERVED_PADDING_DAYS = 1;
1526
1711
  var FORECAST_PADDING_DAYS = OBSERVED_PADDING_DAYS + 2;
1527
1712
  var TICK_HEIGHT = 6;
@@ -1548,11 +1733,12 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1548
1733
  var _useTheme = useTheme(),
1549
1734
  timeSliderLite = _useTheme.palette.geowebColors.timeSliderLite;
1550
1735
  if (!width) {
1551
- return jsx("svg", {
1736
+ return /*#__PURE__*/jsx("svg", {
1552
1737
  height: height,
1553
1738
  style: style
1554
1739
  });
1555
1740
  }
1741
+
1556
1742
  // Convert start and end time from Unix timestamp to JavaScript Date object
1557
1743
  var startDate = new Date(startTime * SECOND_TO_MILLISECOND);
1558
1744
  var endDate = new Date(endTime * SECOND_TO_MILLISECOND);
@@ -1570,6 +1756,7 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1570
1756
  var showHourLabel = !hideHourLabels && tickSpacing > HOUR_LABEL_BREAKPOINT;
1571
1757
  var limitHourLabelsToEveryThirdHour = maxTimeStep && maxTimeStep > 60 * 60;
1572
1758
  var showHourLabelEveryThirdHour = limitHourLabelsToEveryThirdHour || tickSpacing < HOUR_LABEL_EVERY_THIRD_HOUR_BREAKPOINT;
1759
+
1573
1760
  // Set up variables for date labels and background colors
1574
1761
  var dayLabels = [];
1575
1762
  var dayLabelDate = new Date(startTime * SECOND_TO_MILLISECOND - OBSERVED_PADDING_DAYS * DAY_TO_MILLISECOND);
@@ -1593,7 +1780,7 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1593
1780
  day: 'numeric'
1594
1781
  });
1595
1782
  var label = dateString.charAt(0).toUpperCase() + dateString.slice(1);
1596
- return jsx("text", {
1783
+ return /*#__PURE__*/jsx("text", {
1597
1784
  fill: timeSliderLite.timeline.fill,
1598
1785
  fontSize: "12px",
1599
1786
  style: {
@@ -1636,7 +1823,7 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1636
1823
  return baseRectangle;
1637
1824
  }).flat();
1638
1825
  var dailyLabels = !showMonthLabel ? dayLabels.map(function (label, index) {
1639
- return jsx("text", {
1826
+ return /*#__PURE__*/jsx("text", {
1640
1827
  fill: timeSliderLite.timeline.fill,
1641
1828
  fontSize: "12px",
1642
1829
  style: {
@@ -1660,14 +1847,14 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1660
1847
  fill: timeSliderLite.timeline.fill,
1661
1848
  fontSize: '12px'
1662
1849
  };
1663
- return jsxs("g", {
1664
- children: [jsx("text", Object.assign({}, defaultProps, {
1850
+ return /*#__PURE__*/jsxs("g", {
1851
+ children: [/*#__PURE__*/jsx("text", Object.assign({}, defaultProps, {
1665
1852
  style: {
1666
1853
  userSelect: 'none'
1667
1854
  },
1668
1855
  textAnchor: "end",
1669
1856
  children: value
1670
- })), jsx("text", Object.assign({}, defaultProps, {
1857
+ })), /*#__PURE__*/jsx("text", Object.assign({}, defaultProps, {
1671
1858
  style: {
1672
1859
  userSelect: 'none'
1673
1860
  },
@@ -1718,7 +1905,7 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1718
1905
  }));
1719
1906
  });
1720
1907
  }).flat();
1721
- return jsxs("svg", {
1908
+ return /*#__PURE__*/jsxs("svg", {
1722
1909
  height: height,
1723
1910
  style: style,
1724
1911
  width: width + TIME_SLIDER_LITE_PADDING_RIGHT,
@@ -1726,6 +1913,24 @@ var TimeSliderLiteBackgroundSvg = function TimeSliderLiteBackgroundSvg(_ref) {
1726
1913
  });
1727
1914
  };
1728
1915
 
1916
+ /* *
1917
+ * Licensed under the Apache License, Version 2.0 (the "License");
1918
+ * you may not use this file except in compliance with the License.
1919
+ * You may obtain a copy of the License at
1920
+ *
1921
+ * http://www.apache.org/licenses/LICENSE-2.0
1922
+ *
1923
+ * Unless required by applicable law or agreed to in writing, software
1924
+ * distributed under the License is distributed on an "AS IS" BASIS,
1925
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1926
+ * See the License for the specific language governing permissions and
1927
+ * limitations under the License.
1928
+ *
1929
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1930
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1931
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1932
+ * */
1933
+
1729
1934
  var HOVER_NEEDLE_WIDTH = 1;
1730
1935
  var DEFAULT_OPACITY = 0.5;
1731
1936
  var TimeSliderClickableTimeline = function TimeSliderClickableTimeline(_ref) {
@@ -1753,7 +1958,7 @@ var TimeSliderClickableTimeline = function TimeSliderClickableTimeline(_ref) {
1753
1958
  if (isNaN(x)) {
1754
1959
  return null;
1755
1960
  }
1756
- return jsx("svg", {
1961
+ return /*#__PURE__*/jsx("svg", {
1757
1962
  "data-testid": "TimeSliderLite-clickableTimeline",
1758
1963
  onClick: function onClick() {
1759
1964
  return setSelectedTime(needleSuggestion);
@@ -1773,7 +1978,7 @@ var TimeSliderClickableTimeline = function TimeSliderClickableTimeline(_ref) {
1773
1978
  height: '100%',
1774
1979
  cursor: 'pointer'
1775
1980
  },
1776
- children: jsx("line", {
1981
+ children: /*#__PURE__*/jsx("line", {
1777
1982
  opacity: isShown ? opacity : 0,
1778
1983
  stroke: timeSliderLite.timeline.stroke,
1779
1984
  strokeWidth: HOVER_NEEDLE_WIDTH,
@@ -1788,6 +1993,23 @@ var TimeSliderClickableTimeline = function TimeSliderClickableTimeline(_ref) {
1788
1993
  });
1789
1994
  };
1790
1995
 
1996
+ /* *
1997
+ * Licensed under the Apache License, Version 2.0 (the "License");
1998
+ * you may not use this file except in compliance with the License.
1999
+ * You may obtain a copy of the License at
2000
+ *
2001
+ * http://www.apache.org/licenses/LICENSE-2.0
2002
+ *
2003
+ * Unless required by applicable law or agreed to in writing, software
2004
+ * distributed under the License is distributed on an "AS IS" BASIS,
2005
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2006
+ * See the License for the specific language governing permissions and
2007
+ * limitations under the License.
2008
+ *
2009
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2010
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
2011
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2012
+ * */
1791
2013
  var styles$1 = {
1792
2014
  centeredBox: {
1793
2015
  borderRadius: '4px',
@@ -1822,7 +2044,7 @@ var TimeSliderZeroTimestamp = function TimeSliderZeroTimestamp(_ref) {
1822
2044
  });
1823
2045
  var localLabel = language === 'fi' || language === 'sv-FI' ? reformatFinnishDateString(dateString) : dateString;
1824
2046
  var label = timeZone === 'UTC' ? shortUTCTime(localLabel) : localLabel;
1825
- return jsx(Box, {
2047
+ return /*#__PURE__*/jsx(Box, {
1826
2048
  className: "TimeSliderLite-zeroTimeStamp",
1827
2049
  sx: Object.assign({}, styles$1.centeredBox, timeSliderLite.needleLabel, {
1828
2050
  fontSize: '13px',
@@ -1834,6 +2056,24 @@ var TimeSliderZeroTimestamp = function TimeSliderZeroTimestamp(_ref) {
1834
2056
  });
1835
2057
  };
1836
2058
 
2059
+ /* *
2060
+ * Licensed under the Apache License, Version 2.0 (the "License");
2061
+ * you may not use this file except in compliance with the License.
2062
+ * You may obtain a copy of the License at
2063
+ *
2064
+ * http://www.apache.org/licenses/LICENSE-2.0
2065
+ *
2066
+ * Unless required by applicable law or agreed to in writing, software
2067
+ * distributed under the License is distributed on an "AS IS" BASIS,
2068
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2069
+ * See the License for the specific language governing permissions and
2070
+ * limitations under the License.
2071
+ *
2072
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2073
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2074
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2075
+ * */
2076
+
1837
2077
  var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1838
2078
  var height = _ref.height,
1839
2079
  draggableTimeStamp = _ref.draggableTimeStamp,
@@ -1873,7 +2113,7 @@ var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1873
2113
  observer.disconnect();
1874
2114
  };
1875
2115
  }, [sliderAreaRef]);
1876
- return jsxs(Box, {
2116
+ return /*#__PURE__*/jsxs(Box, {
1877
2117
  "data-testid": "TimeSliderLite-Background",
1878
2118
  ref: sliderAreaRef,
1879
2119
  sx: {
@@ -1883,7 +2123,7 @@ var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1883
2123
  width: '100%',
1884
2124
  backgroundColor: timeSliderLite.timelineBackgroundObserved.fill
1885
2125
  },
1886
- children: [jsx(TimeSliderLiteBackgroundSvg, {
2126
+ children: [/*#__PURE__*/jsx(TimeSliderLiteBackgroundSvg, {
1887
2127
  currentTime: currentTime,
1888
2128
  disableForecast: disableForecast,
1889
2129
  endTime: endTime,
@@ -1896,7 +2136,7 @@ var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1896
2136
  timeStep: timeStep,
1897
2137
  timeZone: timeZone,
1898
2138
  width: areaWidth
1899
- }), jsx(TimeSliderClickableTimeline, {
2139
+ }), /*#__PURE__*/jsx(TimeSliderClickableTimeline, {
1900
2140
  currentTime: currentTime,
1901
2141
  disableForecast: disableForecast,
1902
2142
  endTime: endTime,
@@ -1906,7 +2146,7 @@ var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1906
2146
  timeStep: timeStep,
1907
2147
  timeZone: timeZone,
1908
2148
  width: areaWidth
1909
- }), !!drawNeedle && (!zerorange ? jsx(TimeSliderDraggableNeedle, {
2149
+ }), !!drawNeedle && (!zerorange ? /*#__PURE__*/jsx(TimeSliderDraggableNeedle, {
1910
2150
  currentTime: currentTime,
1911
2151
  currentTimeSelected: currentTimeSelected,
1912
2152
  disableForecast: disableForecast,
@@ -1928,7 +2168,7 @@ var TimeSliderLiteBackground = function TimeSliderLiteBackground(_ref) {
1928
2168
  timeStep: timeStep,
1929
2169
  timeZone: timeZone,
1930
2170
  width: areaWidth
1931
- }) : jsx(TimeSliderZeroTimestamp, {
2171
+ }) : /*#__PURE__*/jsx(TimeSliderZeroTimestamp, {
1932
2172
  currentTime: currentTime,
1933
2173
  timeStep: timeStep,
1934
2174
  timeZone: timeZone,
@@ -1943,7 +2183,7 @@ var ControlButtonGroup = function ControlButtonGroup(_ref) {
1943
2183
  right = _ref.right,
1944
2184
  left = _ref.left,
1945
2185
  props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
1946
- return jsx(ButtonGroup, Object.assign({
2186
+ return /*#__PURE__*/jsx(ButtonGroup, Object.assign({
1947
2187
  fullWidth: true,
1948
2188
  orientation: "horizontal"
1949
2189
  }, props, {
@@ -1982,6 +2222,7 @@ var ControlButtonGroup = function ControlButtonGroup(_ref) {
1982
2222
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
1983
2223
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1984
2224
  * */
2225
+
1985
2226
  var timeSliderLiteButtonDefaultProps = {
1986
2227
  sx: {
1987
2228
  width: '36px',
@@ -1989,6 +2230,24 @@ var timeSliderLiteButtonDefaultProps = {
1989
2230
  }
1990
2231
  };
1991
2232
 
2233
+ /* *
2234
+ * Licensed under the Apache License, Version 2.0 (the "License");
2235
+ * you may not use this file except in compliance with the License.
2236
+ * You may obtain a copy of the License at
2237
+ *
2238
+ * http://www.apache.org/licenses/LICENSE-2.0
2239
+ *
2240
+ * Unless required by applicable law or agreed to in writing, software
2241
+ * distributed under the License is distributed on an "AS IS" BASIS,
2242
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2243
+ * See the License for the specific language governing permissions and
2244
+ * limitations under the License.
2245
+ *
2246
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2247
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2248
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2249
+ * */
2250
+
1992
2251
  var HideButton = function HideButton(_ref) {
1993
2252
  var _settings$icon$hide, _settings$icon, _settings$icon$show, _settings$icon2;
1994
2253
  var isVisible = _ref.isVisible,
@@ -1996,12 +2255,12 @@ var HideButton = function HideButton(_ref) {
1996
2255
  onClick = _ref.onClick;
1997
2256
  var _useTimesliderLiteTra = useTimesliderLiteTranslation(),
1998
2257
  t = _useTimesliderLiteTra.t;
1999
- var hideIcon = (_settings$icon$hide = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.hide) != null ? _settings$icon$hide : jsx(ChevronDown, {});
2000
- var showIcon = (_settings$icon$show = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.show) != null ? _settings$icon$show : jsx(ChevronUp, {});
2001
- return jsx(Tooltip, {
2258
+ var hideIcon = (_settings$icon$hide = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.hide) != null ? _settings$icon$hide : /*#__PURE__*/jsx(ChevronDown, {});
2259
+ var showIcon = (_settings$icon$show = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.show) != null ? _settings$icon$show : /*#__PURE__*/jsx(ChevronUp, {});
2260
+ return /*#__PURE__*/jsx(Tooltip, {
2002
2261
  placement: "top-end",
2003
2262
  title: isVisible ? t('controlButtons.hide') : t('controlButtons.show'),
2004
- children: jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2263
+ children: /*#__PURE__*/jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2005
2264
  "aria-selected": !isVisible,
2006
2265
  "data-testid": "TimeSliderLite-HideButton",
2007
2266
  onClick: onClick,
@@ -2010,6 +2269,24 @@ var HideButton = function HideButton(_ref) {
2010
2269
  });
2011
2270
  };
2012
2271
 
2272
+ /* *
2273
+ * Licensed under the Apache License, Version 2.0 (the "License");
2274
+ * you may not use this file except in compliance with the License.
2275
+ * You may obtain a copy of the License at
2276
+ *
2277
+ * http://www.apache.org/licenses/LICENSE-2.0
2278
+ *
2279
+ * Unless required by applicable law or agreed to in writing, software
2280
+ * distributed under the License is distributed on an "AS IS" BASIS,
2281
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2282
+ * See the License for the specific language governing permissions and
2283
+ * limitations under the License.
2284
+ *
2285
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2286
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2287
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2288
+ * */
2289
+
2013
2290
  var MenuButton = function MenuButton(_ref) {
2014
2291
  var _settings$icon;
2015
2292
  var menuOpen = _ref.menuOpen,
@@ -2017,8 +2294,8 @@ var MenuButton = function MenuButton(_ref) {
2017
2294
  settings = _ref.settings;
2018
2295
  var _useTimesliderLiteTra = useTimesliderLiteTranslation(),
2019
2296
  t = _useTimesliderLiteTra.t;
2020
- var icon = (_settings$icon = settings == null ? void 0 : settings.icon) != null ? _settings$icon : jsx(Options, {});
2021
- var Button = jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2297
+ var icon = (_settings$icon = settings == null ? void 0 : settings.icon) != null ? _settings$icon : /*#__PURE__*/jsx(Options, {});
2298
+ var Button = /*#__PURE__*/jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2022
2299
  "aria-selected": menuOpen,
2023
2300
  "data-testid": "TimeSliderLite-MenuButton",
2024
2301
  onClick: onClick,
@@ -2030,13 +2307,31 @@ var MenuButton = function MenuButton(_ref) {
2030
2307
  if (menuOpen) {
2031
2308
  return Button;
2032
2309
  }
2033
- return jsx(Tooltip, {
2310
+ return /*#__PURE__*/jsx(Tooltip, {
2034
2311
  placement: "top-start",
2035
2312
  title: t('menu.title'),
2036
2313
  children: Button
2037
2314
  });
2038
2315
  };
2039
2316
 
2317
+ /* *
2318
+ * Licensed under the Apache License, Version 2.0 (the "License");
2319
+ * you may not use this file except in compliance with the License.
2320
+ * You may obtain a copy of the License at
2321
+ *
2322
+ * http://www.apache.org/licenses/LICENSE-2.0
2323
+ *
2324
+ * Unless required by applicable law or agreed to in writing, software
2325
+ * distributed under the License is distributed on an "AS IS" BASIS,
2326
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2327
+ * See the License for the specific language governing permissions and
2328
+ * limitations under the License.
2329
+ *
2330
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2331
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2332
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2333
+ * */
2334
+
2040
2335
  var PlayButton = function PlayButton(_ref) {
2041
2336
  var _settings$icon$pause, _settings$icon, _settings$icon$play, _settings$icon2;
2042
2337
  var isAnimating = _ref.isAnimating,
@@ -2046,15 +2341,15 @@ var PlayButton = function PlayButton(_ref) {
2046
2341
  tooltipDelay = _ref.tooltipDelay;
2047
2342
  var _useTimesliderLiteTra = useTimesliderLiteTranslation(),
2048
2343
  t = _useTimesliderLiteTra.t;
2049
- var pauseIcon = (_settings$icon$pause = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.pause) != null ? _settings$icon$pause : jsx(Pause, {});
2050
- var playIcon = (_settings$icon$play = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.play) != null ? _settings$icon$play : jsx(Play, {});
2051
- return jsx(Tooltip, {
2344
+ var pauseIcon = (_settings$icon$pause = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.pause) != null ? _settings$icon$pause : /*#__PURE__*/jsx(Pause, {});
2345
+ var playIcon = (_settings$icon$play = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.play) != null ? _settings$icon$play : /*#__PURE__*/jsx(Play, {});
2346
+ return /*#__PURE__*/jsx(Tooltip, {
2052
2347
  enterDelay: tooltipDelay,
2053
2348
  enterNextDelay: tooltipDelay,
2054
2349
  placement: "top",
2055
2350
  title: isAnimating ? t('controlButtons.pause') : t('controlButtons.play'),
2056
- children: jsx("span", {
2057
- children: jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2351
+ children: /*#__PURE__*/jsx("span", {
2352
+ children: /*#__PURE__*/jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2058
2353
  "data-testid": "TimeSliderLite-PlayButton",
2059
2354
  disabled: isDisabled,
2060
2355
  onClick: function onClick() {
@@ -2069,6 +2364,24 @@ var PlayButton = function PlayButton(_ref) {
2069
2364
  });
2070
2365
  };
2071
2366
 
2367
+ /* *
2368
+ * Licensed under the Apache License, Version 2.0 (the "License");
2369
+ * you may not use this file except in compliance with the License.
2370
+ * You may obtain a copy of the License at
2371
+ *
2372
+ * http://www.apache.org/licenses/LICENSE-2.0
2373
+ *
2374
+ * Unless required by applicable law or agreed to in writing, software
2375
+ * distributed under the License is distributed on an "AS IS" BASIS,
2376
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2377
+ * See the License for the specific language governing permissions and
2378
+ * limitations under the License.
2379
+ *
2380
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2381
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2382
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2383
+ * */
2384
+
2072
2385
  var StepButton = function StepButton(_ref) {
2073
2386
  var _settings$icon$forwar, _settings$icon, _settings$icon$backwa, _settings$icon2;
2074
2387
  var forward = _ref.forward,
@@ -2081,19 +2394,19 @@ var StepButton = function StepButton(_ref) {
2081
2394
  t = _useTimesliderLiteTra.t;
2082
2395
  var forwardTitle = t('controlButtons.forward');
2083
2396
  var backwardTitle = t('controlButtons.backward');
2084
- var forwardIcon = (_settings$icon$forwar = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.forward) != null ? _settings$icon$forwar : jsx(StepForward, {
2397
+ var forwardIcon = (_settings$icon$forwar = settings == null || (_settings$icon = settings.icon) == null ? void 0 : _settings$icon.forward) != null ? _settings$icon$forwar : /*#__PURE__*/jsx(StepForward, {
2085
2398
  "data-testid": "step-forward-svg-path"
2086
2399
  });
2087
- var backwardIcon = (_settings$icon$backwa = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.backward) != null ? _settings$icon$backwa : jsx(StepBackward, {
2400
+ var backwardIcon = (_settings$icon$backwa = settings == null || (_settings$icon2 = settings.icon) == null ? void 0 : _settings$icon2.backward) != null ? _settings$icon$backwa : /*#__PURE__*/jsx(StepBackward, {
2088
2401
  "data-testid": "step-backward-svg-path"
2089
2402
  });
2090
- return jsx(Tooltip, {
2403
+ return /*#__PURE__*/jsx(Tooltip, {
2091
2404
  enterDelay: tooltipDelay,
2092
2405
  enterNextDelay: tooltipDelay,
2093
2406
  placement: "top",
2094
2407
  title: forward ? forwardTitle : backwardTitle,
2095
- children: jsx("span", {
2096
- children: jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2408
+ children: /*#__PURE__*/jsx("span", {
2409
+ children: /*#__PURE__*/jsx(IconButton, Object.assign({}, timeSliderLiteButtonDefaultProps, {
2097
2410
  "aria-label": forward ? forwardTitle : backwardTitle,
2098
2411
  "data-testid": "TimeSliderLite-StepButton" + (forward ? 'Forward' : 'Backward'),
2099
2412
  disabled: isDisabled,
@@ -2104,6 +2417,24 @@ var StepButton = function StepButton(_ref) {
2104
2417
  });
2105
2418
  };
2106
2419
 
2420
+ /* *
2421
+ * Licensed under the Apache License, Version 2.0 (the "License");
2422
+ * you may not use this file except in compliance with the License.
2423
+ * You may obtain a copy of the License at
2424
+ *
2425
+ * http://www.apache.org/licenses/LICENSE-2.0
2426
+ *
2427
+ * Unless required by applicable law or agreed to in writing, software
2428
+ * distributed under the License is distributed on an "AS IS" BASIS,
2429
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2430
+ * See the License for the specific language governing permissions and
2431
+ * limitations under the License.
2432
+ *
2433
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2434
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2435
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2436
+ * */
2437
+
2107
2438
  var TIME_SLIDER_LITE_DEFAULT_HEIGHT = 40;
2108
2439
  var TIME_SLIDER_LITE_DEFAULT_TIME_STEP = 5;
2109
2440
  var TIME_SLIDER_LITE_TOOLTIP_DELAY = 3000;
@@ -2205,6 +2536,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2205
2536
  setRawSelectedTime(roundedStartTime);
2206
2537
  return;
2207
2538
  }
2539
+
2208
2540
  // Handle stepping over current time
2209
2541
  if (newSteppedTime >= currentTime && currentTime > rawSelectedTime && !isObservedTimeRange) {
2210
2542
  setRawSelectedTime(firstForecastTime);
@@ -2224,6 +2556,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2224
2556
  onToggleAnimation();
2225
2557
  }
2226
2558
  };
2559
+
2227
2560
  // Handle time range selection
2228
2561
  useEffect(function () {
2229
2562
  var userDraggingNeedle = rawSelectedTime !== selectedTime || rawSelectedTime === roundedEndTime;
@@ -2238,7 +2571,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2238
2571
  // eslint-disable-next-line react-hooks/exhaustive-deps
2239
2572
  }, [startTime, endTime, needleDisabled, timeStep]);
2240
2573
  var tooltipDelay = menuOpen ? TIME_SLIDER_LITE_TOOLTIP_DELAY : undefined;
2241
- return jsxs(Grid, {
2574
+ return /*#__PURE__*/jsxs(Grid, {
2242
2575
  container: true,
2243
2576
  "data-testid": "timeSliderLite-" + mapId,
2244
2577
  sx: Object.assign({}, styles.container, Array.isArray(sx) ? Object.assign.apply(Object, [{}].concat(sx)) : sx, {
@@ -2246,40 +2579,40 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2246
2579
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2247
2580
  boxShadow: isVisible ? sx == null ? void 0 : sx.boxShadow : undefined
2248
2581
  }),
2249
- children: [isVisible ? jsxs(Fragment, {
2250
- children: [jsx(Grid, {
2582
+ children: [isVisible ? /*#__PURE__*/jsxs(Fragment, {
2583
+ children: [/*#__PURE__*/jsx(Grid, {
2251
2584
  sx: {
2252
2585
  height: height + "px"
2253
2586
  },
2254
- children: controlButtons || jsxs(ControlButtonGroup, {
2587
+ children: controlButtons || /*#__PURE__*/jsxs(ControlButtonGroup, {
2255
2588
  left: true,
2256
- children: [!hideMenuButton && jsxs(Fragment, {
2257
- children: [jsx(MenuButton, {
2589
+ children: [!hideMenuButton && /*#__PURE__*/jsxs(Fragment, {
2590
+ children: [/*#__PURE__*/jsx(MenuButton, {
2258
2591
  menuOpen: menuOpen,
2259
2592
  onClick: onToggleMenu,
2260
2593
  settings: settings == null ? void 0 : settings.menuButton
2261
- }), jsx(Divider, {
2594
+ }), /*#__PURE__*/jsx(Divider, {
2262
2595
  orientation: "vertical",
2263
2596
  sx: {
2264
2597
  height: height + "px",
2265
2598
  margin: '2px'
2266
2599
  }
2267
2600
  })]
2268
- }), !hidePlayButton && jsx(PlayButton, {
2601
+ }), !hidePlayButton && /*#__PURE__*/jsx(PlayButton, {
2269
2602
  isAnimating: isAnimating,
2270
2603
  isDisabled: needleDisabled,
2271
2604
  onTogglePlayButton: onToggleAnimation,
2272
2605
  settings: settings == null ? void 0 : settings.playButton,
2273
2606
  tooltipDelay: tooltipDelay
2274
- }), !hideStepButtons && jsxs(Fragment, {
2275
- children: [jsx(StepButton, {
2607
+ }), !hideStepButtons && /*#__PURE__*/jsxs(Fragment, {
2608
+ children: [/*#__PURE__*/jsx(StepButton, {
2276
2609
  isDisabled: needleDisabled,
2277
2610
  onClick: function onClick() {
2278
2611
  return handleTimeStep(-timeStepSeconds);
2279
2612
  },
2280
2613
  settings: settings == null ? void 0 : settings.stepButton,
2281
2614
  tooltipDelay: tooltipDelay
2282
- }), jsx(StepButton, {
2615
+ }), /*#__PURE__*/jsx(StepButton, {
2283
2616
  forward: true,
2284
2617
  isDisabled: needleDisabled,
2285
2618
  onClick: function onClick() {
@@ -2290,8 +2623,8 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2290
2623
  })]
2291
2624
  })]
2292
2625
  })
2293
- }), jsx(Grid, {
2294
- children: jsx(TimeSliderLiteBackground, {
2626
+ }), /*#__PURE__*/jsx(Grid, {
2627
+ children: /*#__PURE__*/jsx(TimeSliderLiteBackground, {
2295
2628
  currentTime: currentTime,
2296
2629
  currentTimeSelected: !!autoUpdateSelectedTime && !isAnimating,
2297
2630
  disableForecast: isObservedTimeRange,
@@ -2314,17 +2647,17 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2314
2647
  zerorange: needleDisabled
2315
2648
  })
2316
2649
  })]
2317
- }) : jsx(Grid, {}), jsx(Grid, {
2650
+ }) : /*#__PURE__*/jsx(Grid, {}), /*#__PURE__*/jsx(Grid, {
2318
2651
  sx: {
2319
2652
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2320
2653
  boxShadow: isVisible ? 'none' : sx == null ? void 0 : sx.boxShadow,
2321
2654
  borderRadius: isVisible ? 'none' : '4px',
2322
2655
  height: height + "px"
2323
2656
  },
2324
- children: hideButton || jsx(ControlButtonGroup, {
2657
+ children: hideButton || /*#__PURE__*/jsx(ControlButtonGroup, {
2325
2658
  className: "timeSliderLite-hideButtonGroup-" + (isVisible ? 'hide' : 'show'),
2326
2659
  right: isVisible,
2327
- children: jsx(HideButton, {
2660
+ children: /*#__PURE__*/jsx(HideButton, {
2328
2661
  isVisible: isVisible,
2329
2662
  onClick: onToggleTimeSlider,
2330
2663
  settings: settings == null ? void 0 : settings.hideButton
@@ -2351,6 +2684,7 @@ var TimeSliderLite = function TimeSliderLite(_ref) {
2351
2684
  * Copyright 2023 - Finnish Meteorological Institute (FMI)
2352
2685
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2353
2686
  * */
2687
+
2354
2688
  var useOnToggleAnimation = function useOnToggleAnimation(dispatch, mapId, selectedTime, timeStep, defaultTimeStep, startTime, endTime, isAnimating, timeSliderProps) {
2355
2689
  var startMapAnimation = function startMapAnimation() {
2356
2690
  var _timeStep$, _timeStep$2, _timeSliderProps$curr, _timeSliderProps$curr2;
@@ -2425,6 +2759,7 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_ref) {
2425
2759
  var _ref4 = overrideUseTimeZone || useTimeZone,
2426
2760
  timeZone = _ref4[0],
2427
2761
  setTimeZone = _ref4[1];
2762
+
2428
2763
  // eslint-disable-next-line react/hook-use-state
2429
2764
  var useUpdateInterval = React.useState(null);
2430
2765
  var _ref5 = overrideUseUpdateInterval || useUpdateInterval,
@@ -2485,6 +2820,7 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_ref) {
2485
2820
  var onToggleAnimation = useOnToggleAnimation(dispatch, mapId, selectedTime, timeStep, defaultTimeStep, startTime, endTime, isAnimating, Object.assign({}, timeSliderProps, {
2486
2821
  timeZone: timeZone
2487
2822
  }));
2823
+
2488
2824
  // Restart animation if auto updated
2489
2825
  useEffect(function () {
2490
2826
  if (isAnimating) {
@@ -2508,12 +2844,13 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_ref) {
2508
2844
  }
2509
2845
  setTimeStep(newTimeStep);
2510
2846
  };
2511
- return jsxs(Fragment, {
2512
- children: [!!isVisible && !!menuOpen && jsx(TimeSliderLiteOptionsMenu, Object.assign({
2847
+ return /*#__PURE__*/jsxs(Fragment, {
2848
+ children: [!!isVisible && !!menuOpen && /*#__PURE__*/jsx(TimeSliderLiteOptionsMenu, Object.assign({
2513
2849
  TimeZoneSwitch: timeSliderProps == null || (_timeSliderProps$sett = timeSliderProps.settings) == null ? void 0 : _timeSliderProps$sett.TimeZoneSwitch,
2514
2850
  closeButtonIcon: (_timeSliderProps$sett2 = timeSliderProps.settings) == null || (_timeSliderProps$sett2 = _timeSliderProps$sett2.closeButton) == null ? void 0 : _timeSliderProps$sett2.icon,
2515
2851
  defaultTimeRange: [defaultStartTime, defaultEndTime],
2516
- defaultTimeStep: defaultTimeStep,
2852
+ defaultTimeStep: defaultTimeStep // TODO: Calculate from layers
2853
+ ,
2517
2854
  dropdownButtonIcon: (_timeSliderProps$sett3 = timeSliderProps.settings) == null || (_timeSliderProps$sett3 = _timeSliderProps$sett3.dropdownButton) == null ? void 0 : _timeSliderProps$sett3.icon,
2518
2855
  menuOpen: menuOpen,
2519
2856
  setMenuOpen: setMenuOpen,
@@ -2522,7 +2859,7 @@ var TimeSliderLiteConnect = function TimeSliderLiteConnect(_ref) {
2522
2859
  useTimeStep: [timeStep, handleTimeStepChange],
2523
2860
  useTimeZone: [timeZone, setTimeZone],
2524
2861
  useUpdateInterval: [updateInterval, setUpdateInterval]
2525
- }, TimeSliderLiteOptionsMenuProps)), jsx(TimeSliderLite, Object.assign({
2862
+ }, TimeSliderLiteOptionsMenuProps)), /*#__PURE__*/jsx(TimeSliderLite, Object.assign({
2526
2863
  currentTime: currentTime,
2527
2864
  endTime: endTime,
2528
2865
  isAnimating: !!isAnimating,