@opengeoweb/space-weather 16.0.0 → 17.0.1

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 (112) hide show
  1. package/index.esm.js +1037 -368
  2. package/package.json +7 -7
  3. package/src/index.d.ts +0 -10
  4. package/src/lib/components/Bulletin/Bulletin.d.ts +0 -10
  5. package/src/lib/components/Bulletin/Bulletin.noNewBulletins.stories.d.ts +0 -8
  6. package/src/lib/components/Bulletin/Bulletin.spec.d.ts +0 -1
  7. package/src/lib/components/Bulletin/Bulletin.stories.d.ts +0 -8
  8. package/src/lib/components/Bulletin/BulletinControls.d.ts +0 -6
  9. package/src/lib/components/Bulletin/BulletinControls.spec.d.ts +0 -1
  10. package/src/lib/components/Bulletin/BulletinHistoryDialog.d.ts +0 -7
  11. package/src/lib/components/Bulletin/BulletinHistoryDialog.spec.d.ts +0 -1
  12. package/src/lib/components/Bulletin/BulletinHistoryDialog.stories.d.ts +0 -7
  13. package/src/lib/components/Bulletin/BulletinHistoryList.d.ts +0 -8
  14. package/src/lib/components/Bulletin/BulletinHistoryList.spec.d.ts +0 -1
  15. package/src/lib/components/Bulletin/BulletinTabs.d.ts +0 -11
  16. package/src/lib/components/Bulletin/BulletinTabs.spec.d.ts +0 -1
  17. package/src/lib/components/Bulletin/BulletinViewer.d.ts +0 -9
  18. package/src/lib/components/Bulletin/BulletinViewer.spec.d.ts +0 -1
  19. package/src/lib/components/Bulletin/index.d.ts +0 -4
  20. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.d.ts +0 -15
  21. package/src/lib/components/ComponentsLookUp/ComponentsLookUp.spec.d.ts +0 -1
  22. package/src/lib/components/ComponentsLookUp/index.d.ts +0 -1
  23. package/src/lib/components/ContentDialog/ContentDialog.d.ts +0 -12
  24. package/src/lib/components/ContentDialog/ContentDialog.spec.d.ts +0 -1
  25. package/src/lib/components/ContentDialog/ContentDialog.stories.d.ts +0 -12
  26. package/src/lib/components/ContentDialog/index.d.ts +0 -1
  27. package/src/lib/components/Layout/Layout.d.ts +0 -18
  28. package/src/lib/components/Layout/Layout.spec.d.ts +0 -1
  29. package/src/lib/components/Layout/index.d.ts +0 -1
  30. package/src/lib/components/LifeCycleDialog/EditFormFields/CategoryLabelStatusTag.d.ts +0 -7
  31. package/src/lib/components/LifeCycleDialog/EditFormFields/DataSourceStatusTag.d.ts +0 -7
  32. package/src/lib/components/LifeCycleDialog/EditFormFields/EditFormFields.styles.d.ts +0 -15
  33. package/src/lib/components/LifeCycleDialog/EditFormFields/EventLevel.d.ts +0 -3
  34. package/src/lib/components/LifeCycleDialog/EditFormFields/GScaleStatusTag.d.ts +0 -8
  35. package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.d.ts +0 -3
  36. package/src/lib/components/LifeCycleDialog/EditFormFields/PeakFlux.spec.d.ts +0 -1
  37. package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.d.ts +0 -10
  38. package/src/lib/components/LifeCycleDialog/EditFormFields/StartTimeEndTime.spec.d.ts +0 -1
  39. package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.d.ts +0 -3
  40. package/src/lib/components/LifeCycleDialog/EditFormFields/SuddenImpulse.spec.d.ts +0 -1
  41. package/src/lib/components/LifeCycleDialog/EditFormFields/Threshold.d.ts +0 -7
  42. package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.d.ts +0 -8
  43. package/src/lib/components/LifeCycleDialog/EditFormFields/XrayClassPeakClass.spec.d.ts +0 -1
  44. package/src/lib/components/LifeCycleDialog/EditFormFields/index.d.ts +0 -9
  45. package/src/lib/components/LifeCycleDialog/EditFormFields/validations.d.ts +0 -5
  46. package/src/lib/components/LifeCycleDialog/EditFormFields/validations.spec.d.ts +0 -1
  47. package/src/lib/components/LifeCycleDialog/FormWrapper.d.ts +0 -9
  48. package/src/lib/components/LifeCycleDialog/LifeCycleActions.d.ts +0 -7
  49. package/src/lib/components/LifeCycleDialog/LifeCycleActions.spec.d.ts +0 -1
  50. package/src/lib/components/LifeCycleDialog/LifeCycleColumn.d.ts +0 -10
  51. package/src/lib/components/LifeCycleDialog/LifeCycleColumn.spec.d.ts +0 -1
  52. package/src/lib/components/LifeCycleDialog/LifeCycleDialog.d.ts +0 -12
  53. package/src/lib/components/LifeCycleDialog/LifeCycleDialog.spec.d.ts +0 -1
  54. package/src/lib/components/LifeCycleDialog/LifeCycleDialog.stories.d.ts +0 -34
  55. package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.d.ts +0 -11
  56. package/src/lib/components/LifeCycleDialog/LifeCycleDisplay.spec.d.ts +0 -1
  57. package/src/lib/components/LifeCycleDialog/LifeCycleEdit.d.ts +0 -19
  58. package/src/lib/components/LifeCycleDialog/LifeCycleEdit.spec.d.ts +0 -1
  59. package/src/lib/components/LifeCycleDialog/LifeCycleEdit.unregister.spec.d.ts +0 -1
  60. package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.d.ts +0 -8
  61. package/src/lib/components/LifeCycleDialog/LifeCycleEditOptions.spec.d.ts +0 -1
  62. package/src/lib/components/LifeCycleDialog/index.d.ts +0 -5
  63. package/src/lib/components/LifeCycleDialog/utils.d.ts +0 -10
  64. package/src/lib/components/LifeCycleDialog/utils.spec.d.ts +0 -1
  65. package/src/lib/components/NotificationTrigger/NotificationTrigger.d.ts +0 -3
  66. package/src/lib/components/NotificationTrigger/NotificationTrigger.spec.d.ts +0 -1
  67. package/src/lib/components/NotificationTrigger/NotificationTrigger.stories.d.ts +0 -7
  68. package/src/lib/components/NotificationTrigger/NotificationTriggerContext.d.ts +0 -14
  69. package/src/lib/components/NotificationTrigger/NotificationTriggerContext.spec.d.ts +0 -1
  70. package/src/lib/components/NotificationTrigger/index.d.ts +0 -2
  71. package/src/lib/components/Notifications/NotificationList.d.ts +0 -13
  72. package/src/lib/components/Notifications/NotificationList.spec.d.ts +0 -1
  73. package/src/lib/components/Notifications/NotificationRow.d.ts +0 -8
  74. package/src/lib/components/Notifications/NotificationRow.spec.d.ts +0 -7
  75. package/src/lib/components/Notifications/NotificationRow.stories.d.ts +0 -8
  76. package/src/lib/components/Notifications/NotificationTabs.d.ts +0 -9
  77. package/src/lib/components/Notifications/NotificationTabs.spec.d.ts +0 -1
  78. package/src/lib/components/Notifications/Notifications.d.ts +0 -10
  79. package/src/lib/components/Notifications/Notifications.spec.d.ts +0 -1
  80. package/src/lib/components/Notifications/Notifications.stories.d.ts +0 -15
  81. package/src/lib/components/Notifications/index.d.ts +0 -3
  82. package/src/lib/components/Notifications/utils.d.ts +0 -2
  83. package/src/lib/components/Notifications/utils.spec.d.ts +0 -1
  84. package/src/lib/components/Providers/Providers.d.ts +0 -4
  85. package/src/lib/components/Providers/index.d.ts +0 -1
  86. package/src/lib/components/TimeSeries/GraphErrors.d.ts +0 -12
  87. package/src/lib/components/TimeSeries/Graphs.d.ts +0 -12
  88. package/src/lib/components/TimeSeries/Graphs.spec.d.ts +0 -1
  89. package/src/lib/components/TimeSeries/Graphs.stories.d.ts +0 -10
  90. package/src/lib/components/TimeSeries/TimeSeries.d.ts +0 -3
  91. package/src/lib/components/TimeSeries/TimeSeries.spec.d.ts +0 -1
  92. package/src/lib/components/TimeSeries/TimeSeries.stories.d.ts +0 -9
  93. package/src/lib/components/TimeSeries/TimeSeries.utils.d.ts +0 -4
  94. package/src/lib/components/TimeSeries/TimeSeries.utils.spec.d.ts +0 -1
  95. package/src/lib/components/TimeSeries/TimeSeriesHeader.d.ts +0 -3
  96. package/src/lib/components/TimeSeries/createChartSeriesData.d.ts +0 -4
  97. package/src/lib/components/TimeSeries/createChartSeriesData.spec.d.ts +0 -1
  98. package/src/lib/components/TimeSeries/index.d.ts +0 -1
  99. package/src/lib/components/TimeSeries/styles.d.ts +0 -14
  100. package/src/lib/components/TimeSeries/types.d.ts +0 -34
  101. package/src/lib/components/TimeSeries/utils.d.ts +0 -22
  102. package/src/lib/components/TimeSeries/utils.spec.d.ts +0 -1
  103. package/src/lib/demo.stories.d.ts +0 -5
  104. package/src/lib/types.d.ts +0 -207
  105. package/src/lib/utils/DummyData.d.ts +0 -367
  106. package/src/lib/utils/defaultTimeRange.d.ts +0 -4
  107. package/src/lib/utils/fakedata.d.ts +0 -21
  108. package/src/lib/utils/i18n.d.ts +0 -7
  109. package/src/lib/utils/spaceweather-api/api.d.ts +0 -16
  110. package/src/lib/utils/spaceweather-api/fakeApi.d.ts +0 -8
  111. package/src/lib/utils/spaceweather-api/hooks.d.ts +0 -38
  112. package/src/lib/utils/storybookUtils.d.ts +0 -2
package/index.esm.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
1
  import { Grid, Button, Box, DialogContent, useTheme, List, ListSubheader, ListItemButton, ListItemText, Tabs, Tab, Typography, Skeleton, Card, CardContent, ListItem, MenuItem, Backdrop, CircularProgress, LinearProgress } from '@mui/material';
3
2
  import React, { useMemo, useState, useRef, useEffect } from 'react';
4
3
  import { SHARED_NAMESPACE, sessionStorageProvider, AlertBanner, CustomDialog, ToolHeader, dateUtils, StatusTag, useConfirmationDialog, usePreventBrowserClose, CustomTooltip, ErrorBoundary } from '@opengeoweb/shared';
5
4
  import 'i18next';
6
5
  import { useTranslation } from 'react-i18next';
7
6
  import { FORM_FIELDS_NAMESPACE, ReactHookFormProvider, errorMessages, ReactHookFormSelect, ReactHookFormNumberField, ReactHookFormDateTime, ReactHookFormTextField, ReactHookFormHiddenInput } from '@opengeoweb/form-fields';
7
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
8
8
  import { useQueryClient, useMutation, useQuery, useQueries } from '@tanstack/react-query';
9
9
  import { getHeaders, handleResponse, useAuthQuery, useAuthenticationContext } from '@opengeoweb/api';
10
10
  import { Notifications as Notifications$1, Edit, SubdirectoryArrowRight, useThemeContext, EChartsDarkTheme, EChartsLightTheme } from '@opengeoweb/theme';
@@ -186,23 +186,41 @@ var swTranslations = {
186
186
  * Copyright 2024 - Finnish Meteorological Institute (FMI)
187
187
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
188
188
  * */
189
+
189
190
  var SPACE_WEATHER_NAMESPACE = 'spaceweather';
190
191
  var ns = [SPACE_WEATHER_NAMESPACE, SHARED_NAMESPACE, FORM_FIELDS_NAMESPACE];
191
192
  var useSpaceweatherTranslation = function useSpaceweatherTranslation() {
192
193
  return useTranslation(ns);
193
194
  };
194
195
 
196
+ /* *
197
+ * Licensed under the Apache License, Version 2.0 (the "License");
198
+ * you may not use this file except in compliance with the License.
199
+ * You may obtain a copy of the License at
200
+ *
201
+ * http://www.apache.org/licenses/LICENSE-2.0
202
+ *
203
+ * Unless required by applicable law or agreed to in writing, software
204
+ * distributed under the License is distributed on an "AS IS" BASIS,
205
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
206
+ * See the License for the specific language governing permissions and
207
+ * limitations under the License.
208
+ *
209
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
210
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
211
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
212
+ * */
195
213
  var BulletinControls = function BulletinControls(_ref) {
196
214
  var onOpenBulletinHistory = _ref.onOpenBulletinHistory;
197
215
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
198
216
  t = _useSpaceweatherTrans.t;
199
- return jsx(Grid, {
217
+ return /*#__PURE__*/jsx(Grid, {
200
218
  alignItems: "flex-end",
201
219
  container: true,
202
220
  direction: "row",
203
221
  justifyContent: "flex-end",
204
- children: jsx(Grid, {
205
- children: jsx(Button, {
222
+ children: /*#__PURE__*/jsx(Grid, {
223
+ children: /*#__PURE__*/jsx(Button, {
206
224
  color: "secondary",
207
225
  "data-testid": "history",
208
226
  onClick: function onClick() {
@@ -220,19 +238,32 @@ var BulletinControls = function BulletinControls(_ref) {
220
238
  });
221
239
  };
222
240
 
223
- var SWErrors;
224
- (function (SWErrors) {
225
- SWErrors["USER_CANCELLED"] = "User Cancelled";
226
- })(SWErrors || (SWErrors = {}));
227
- var EventCategory;
228
- (function (EventCategory) {
241
+ /* *
242
+ * Licensed under the Apache License, Version 2.0 (the "License");
243
+ * you may not use this file except in compliance with the License.
244
+ * You may obtain a copy of the License at
245
+ *
246
+ * http://www.apache.org/licenses/LICENSE-2.0
247
+ *
248
+ * Unless required by applicable law or agreed to in writing, software
249
+ * distributed under the License is distributed on an "AS IS" BASIS,
250
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
251
+ * See the License for the specific language governing permissions and
252
+ * limitations under the License.
253
+ *
254
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
255
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
256
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
257
+ * */
258
+
259
+ var EventCategory = /*#__PURE__*/function (EventCategory) {
229
260
  EventCategory["XRAY_RADIO_BLACKOUT"] = "Radio Blackout";
230
261
  EventCategory["GEOMAGNETIC"] = "Geomagnetic";
231
262
  EventCategory["PROTON_FLUX"] = "Proton Flux";
232
263
  EventCategory["ELECTRON_FLUX"] = "Electron Flux";
233
- })(EventCategory || (EventCategory = {}));
234
- var EventCategoryDetail;
235
- (function (EventCategoryDetail) {
264
+ return EventCategory;
265
+ }({});
266
+ var EventCategoryDetail = /*#__PURE__*/function (EventCategoryDetail) {
236
267
  EventCategoryDetail["GEOMAGNETIC_STORM"] = "Geomagnetic Storm";
237
268
  EventCategoryDetail["GEOMAGNETIC_SUDDEN_IMPULSE"] = "Geomagnetic Sudden Impulse";
238
269
  EventCategoryDetail["KP_INDEX"] = "Kp Index";
@@ -240,7 +271,8 @@ var EventCategoryDetail;
240
271
  EventCategoryDetail["PROTON_FLUX_10"] = "Proton Flux 10MeV";
241
272
  EventCategoryDetail["ELECTRON_FLUX_2"] = "Electron Flux 2MeV";
242
273
  EventCategoryDetail["ELECTRON_FLUENCE"] = "Electron Fluence";
243
- })(EventCategoryDetail || (EventCategoryDetail = {}));
274
+ return EventCategoryDetail;
275
+ }({});
244
276
  var EventCategoryDetails = {
245
277
  XRAY_RADIO_BLACKOUT: [''],
246
278
  // XRAY_RADIO_BLACKOUT doesn't have a categorydetail
@@ -248,11 +280,12 @@ var EventCategoryDetails = {
248
280
  PROTON_FLUX: ['PROTON_FLUX_100', 'PROTON_FLUX_10'],
249
281
  ELECTRON_FLUX: ['ELECTRON_FLUX_2', 'ELECTRON_FLUENCE']
250
282
  };
251
- var NotificationLabel;
252
- (function (NotificationLabel) {
283
+ var NotificationLabel = /*#__PURE__*/function (NotificationLabel) {
253
284
  NotificationLabel["ALERT"] = "Alert";
254
285
  NotificationLabel["WARNING"] = "Warning";
255
- })(NotificationLabel || (NotificationLabel = {}));
286
+ return NotificationLabel;
287
+ }({});
288
+
256
289
  // Possible label options based on the categorydetail
257
290
  var EventLabels = {
258
291
  '': ['ALERT'],
@@ -283,11 +316,31 @@ var EventLevels = {
283
316
  PROTON_FLUX: ['S1', 'S2', 'S3', 'S4', 'S5']
284
317
  };
285
318
  var XrayClasses = ['M1', 'M5', 'X1', 'X10', 'X20'];
286
- var BulletinType$1;
287
- (function (BulletinType) {
319
+
320
+ // Due to index signature issues, need to use type. See: https://github.com/microsoft/TypeScript/issues/15300
321
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
322
+
323
+ // Notification info sent to backend
324
+
325
+ /**
326
+ * SWEventLifeCycle is to aggregate an SWEvent. Its state is derived inside the backend from 1 or more Notifications.
327
+ * The notifications property will list both notifications -> the issue and the summary.
328
+ */
329
+
330
+ /**
331
+ * Event is a aggregation of lifecycles which belong together, e.g. a KNMI lifecycle which is based on a MetOffice lifecycle. Lifecycles itself are based on several Notifications.
332
+ * Event is used in the Notification List to represent a single list item with both incoming (external provider) lifecycle and outgoing (internal provider) lifecycle.
333
+ */
334
+
335
+ /**
336
+ * Bulletin types
337
+ */
338
+
339
+ var BulletinType$1 = /*#__PURE__*/function (BulletinType) {
288
340
  BulletinType["technical"] = "TECHNICAL";
289
341
  BulletinType["plain"] = "PLAIN";
290
- })(BulletinType$1 || (BulletinType$1 = {}));
342
+ return BulletinType;
343
+ }({});
291
344
 
292
345
  function _OverloadYield(e, d) {
293
346
  this.v = e, this.k = d;
@@ -601,7 +654,9 @@ function _regeneratorRuntime() {
601
654
 
602
655
  var config$1 = sessionStorageProvider.getConfig();
603
656
  var spaceweatherBaseUrl = config$1.GW_SW_BASE_URL || '';
657
+
604
658
  // API
659
+
605
660
  // Bulletin section
606
661
  var getBulletinHistoryList = /*#__PURE__*/function () {
607
662
  var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(auth) {
@@ -639,6 +694,7 @@ var getBulletin = /*#__PURE__*/function () {
639
694
  return _ref2.apply(this, arguments);
640
695
  };
641
696
  }();
697
+
642
698
  // Notification section
643
699
  var getEventList = /*#__PURE__*/function () {
644
700
  var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(auth, params) {
@@ -822,6 +878,7 @@ var useBulletin = function useBulletin() {
822
878
  var useBulletinHistory = function useBulletinHistory() {
823
879
  return useAuthQuery(['bulletin-history-list'], getBulletinHistoryList, false);
824
880
  };
881
+
825
882
  // Notification section
826
883
  var useEventList = function useEventList(params) {
827
884
  var _useAuthenticationCon = useAuthenticationContext(),
@@ -1135,6 +1192,23 @@ var useGetTimeSeries = function useGetTimeSeries(options) {
1135
1192
  });
1136
1193
  };
1137
1194
 
1195
+ /* *
1196
+ * Licensed under the Apache License, Version 2.0 (the "License");
1197
+ * you may not use this file except in compliance with the License.
1198
+ * You may obtain a copy of the License at
1199
+ *
1200
+ * http://www.apache.org/licenses/LICENSE-2.0
1201
+ *
1202
+ * Unless required by applicable law or agreed to in writing, software
1203
+ * distributed under the License is distributed on an "AS IS" BASIS,
1204
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1205
+ * See the License for the specific language governing permissions and
1206
+ * limitations under the License.
1207
+ *
1208
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1209
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
1210
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1211
+ * */
1138
1212
  var NotificationTriggerContext = /*#__PURE__*/React.createContext({
1139
1213
  notificationTriggers: [],
1140
1214
  error: null,
@@ -1155,7 +1229,7 @@ var NotificationTriggerProvider = function NotificationTriggerProvider(_ref) {
1155
1229
  onFetchNewNotificationTriggerData: refetchApiData
1156
1230
  };
1157
1231
  }, [notificationTriggers, error, refetchApiData]);
1158
- return jsx(NotificationTriggerContext.Provider, {
1232
+ return /*#__PURE__*/jsx(NotificationTriggerContext.Provider, {
1159
1233
  value: contextValue,
1160
1234
  children: children
1161
1235
  });
@@ -1165,6 +1239,23 @@ var useNotificationTriggerContext = function useNotificationTriggerContext() {
1165
1239
  return context;
1166
1240
  };
1167
1241
 
1242
+ /* *
1243
+ * Licensed under the Apache License, Version 2.0 (the "License");
1244
+ * you may not use this file except in compliance with the License.
1245
+ * You may obtain a copy of the License at
1246
+ *
1247
+ * http://www.apache.org/licenses/LICENSE-2.0
1248
+ *
1249
+ * Unless required by applicable law or agreed to in writing, software
1250
+ * distributed under the License is distributed on an "AS IS" BASIS,
1251
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1252
+ * See the License for the specific language governing permissions and
1253
+ * limitations under the License.
1254
+ *
1255
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1256
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1257
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1258
+ * */
1168
1259
  var NotificationTrigger = function NotificationTrigger() {
1169
1260
  var _useNotificationTrigg = useNotificationTriggerContext(),
1170
1261
  notificationTriggers = _useNotificationTrigg.notificationTriggers,
@@ -1172,13 +1263,13 @@ var NotificationTrigger = function NotificationTrigger() {
1172
1263
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
1173
1264
  t = _useSpaceweatherTrans.t;
1174
1265
  if (error) {
1175
- return jsx(AlertBanner, {
1266
+ return /*#__PURE__*/jsx(AlertBanner, {
1176
1267
  dataTestId: "notificationtrigger-error",
1177
1268
  severity: "error",
1178
1269
  title: t('notification-trigger-error') + " " + error.message
1179
1270
  });
1180
1271
  }
1181
- return notificationTriggers && notificationTriggers.length > 0 ? jsx(AlertBanner, {
1272
+ return notificationTriggers && notificationTriggers.length > 0 ? /*#__PURE__*/jsx(AlertBanner, {
1182
1273
  dataTestId: "notificationtrigger-alert",
1183
1274
  severity: "warning",
1184
1275
  title: notificationTriggers.length === 1 ? t('notification-trigger-single') : t('notification-trigger-multiple', {
@@ -1204,7 +1295,7 @@ var ContentDialog = function ContentDialog(_ref) {
1204
1295
  toggleStatus();
1205
1296
  }
1206
1297
  };
1207
- return jsxs(CustomDialog, Object.assign({
1298
+ return /*#__PURE__*/jsxs(CustomDialog, Object.assign({
1208
1299
  hasLayout: false,
1209
1300
  headerActions: [],
1210
1301
  maxWidth: other.maxWidth ? other.maxWidth : 'lg',
@@ -1212,16 +1303,16 @@ var ContentDialog = function ContentDialog(_ref) {
1212
1303
  open: open,
1213
1304
  title: title
1214
1305
  }, other, {
1215
- children: [jsx(ToolHeader, {
1306
+ children: [/*#__PURE__*/jsx(ToolHeader, {
1216
1307
  onClose: handleClose,
1217
1308
  size: "xs",
1218
1309
  title: title
1219
- }), jsx(NotificationTrigger, {}), alertBanner !== null && alertBanner, jsx(Box, {
1310
+ }), /*#__PURE__*/jsx(NotificationTrigger, {}), alertBanner !== null && alertBanner, /*#__PURE__*/jsx(Box, {
1220
1311
  sx: {
1221
1312
  backgroundColor: 'geowebColors.background.surface',
1222
1313
  overflow: 'auto'
1223
1314
  },
1224
- children: jsx(DialogContent, {
1315
+ children: /*#__PURE__*/jsx(DialogContent, {
1225
1316
  sx: {
1226
1317
  pt: 2
1227
1318
  },
@@ -1231,6 +1322,23 @@ var ContentDialog = function ContentDialog(_ref) {
1231
1322
  }));
1232
1323
  };
1233
1324
 
1325
+ /* *
1326
+ * Licensed under the Apache License, Version 2.0 (the "License");
1327
+ * you may not use this file except in compliance with the License.
1328
+ * You may obtain a copy of the License at
1329
+ *
1330
+ * http://www.apache.org/licenses/LICENSE-2.0
1331
+ *
1332
+ * Unless required by applicable law or agreed to in writing, software
1333
+ * distributed under the License is distributed on an "AS IS" BASIS,
1334
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1335
+ * See the License for the specific language governing permissions and
1336
+ * limitations under the License.
1337
+ *
1338
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1339
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1340
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1341
+ * */
1234
1342
  var BulletinHistoryList = function BulletinHistoryList(_ref) {
1235
1343
  var selectedBulletin = _ref.selectedBulletin,
1236
1344
  bulletinHistoryList = _ref.bulletinHistoryList,
@@ -1238,26 +1346,26 @@ var BulletinHistoryList = function BulletinHistoryList(_ref) {
1238
1346
  var theme = useTheme();
1239
1347
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
1240
1348
  t = _useSpaceweatherTrans.t;
1241
- return jsxs(List, {
1349
+ return /*#__PURE__*/jsxs(List, {
1242
1350
  sx: {
1243
1351
  height: 550,
1244
1352
  overflowY: 'scroll',
1245
1353
  paddingTop: '0px'
1246
1354
  },
1247
- children: [jsx(ListSubheader, {
1355
+ children: [/*#__PURE__*/jsx(ListSubheader, {
1248
1356
  sx: {
1249
1357
  fontSize: '12px',
1250
1358
  backgroundColor: theme.palette.geowebColors.background.surfaceApp
1251
1359
  },
1252
1360
  children: t('bulletin-publication-date')
1253
1361
  }), bulletinHistoryList.map(function (bulletin) {
1254
- return jsx(ListItemButton, {
1362
+ return /*#__PURE__*/jsx(ListItemButton, {
1255
1363
  "data-testid": "historyItem",
1256
1364
  onClick: function onClick() {
1257
1365
  onSelectBulletin(bulletin.bulletin_id);
1258
1366
  },
1259
1367
  selected: selectedBulletin === bulletin.bulletin_id,
1260
- children: jsx(ListItemText, {
1368
+ children: /*#__PURE__*/jsx(ListItemText, {
1261
1369
  primary: dateUtils.dateToString(dateUtils.utc(bulletin.message.overview.timestamp), dateUtils.DATE_FORMAT_DATEPICKER),
1262
1370
  slotProps: {
1263
1371
  primary: {
@@ -1270,11 +1378,28 @@ var BulletinHistoryList = function BulletinHistoryList(_ref) {
1270
1378
  });
1271
1379
  };
1272
1380
 
1273
- var BulletinType;
1274
- (function (BulletinType) {
1381
+ /* *
1382
+ * Licensed under the Apache License, Version 2.0 (the "License");
1383
+ * you may not use this file except in compliance with the License.
1384
+ * You may obtain a copy of the License at
1385
+ *
1386
+ * http://www.apache.org/licenses/LICENSE-2.0
1387
+ *
1388
+ * Unless required by applicable law or agreed to in writing, software
1389
+ * distributed under the License is distributed on an "AS IS" BASIS,
1390
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1391
+ * See the License for the specific language governing permissions and
1392
+ * limitations under the License.
1393
+ *
1394
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1395
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1396
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1397
+ * */
1398
+ var BulletinType = /*#__PURE__*/function (BulletinType) {
1275
1399
  BulletinType["technical"] = "TECHNICAL";
1276
1400
  BulletinType["plain"] = "PLAIN";
1277
- })(BulletinType || (BulletinType = {}));
1401
+ return BulletinType;
1402
+ }({});
1278
1403
  var styles$6 = {
1279
1404
  tabsRoot: {
1280
1405
  borderBottom: '2px solid rgba(0, 0, 0, 0.12)'
@@ -1288,10 +1413,10 @@ var BulletinTabs = function BulletinTabs(_ref) {
1288
1413
  onSetBulletinType = _ref.onSetBulletinType;
1289
1414
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
1290
1415
  t = _useSpaceweatherTrans.t;
1291
- return jsx(Box, {
1416
+ return /*#__PURE__*/jsx(Box, {
1292
1417
  "data-testid": "bulletintabs",
1293
1418
  sx: styles$6.bulletinTab,
1294
- children: jsxs(Tabs, {
1419
+ children: /*#__PURE__*/jsxs(Tabs, {
1295
1420
  indicatorColor: "secondary",
1296
1421
  onChange: function onChange(event, value) {
1297
1422
  onSetBulletinType(value);
@@ -1299,11 +1424,11 @@ var BulletinTabs = function BulletinTabs(_ref) {
1299
1424
  sx: styles$6.tabsRoot,
1300
1425
  textColor: "secondary",
1301
1426
  value: selected,
1302
- children: [jsx(Tab, {
1427
+ children: [/*#__PURE__*/jsx(Tab, {
1303
1428
  "data-testid": "technical",
1304
1429
  label: t('bulletin-technical-forecast'),
1305
1430
  value: BulletinType.technical
1306
- }), jsx(Tab, {
1431
+ }), /*#__PURE__*/jsx(Tab, {
1307
1432
  "data-testid": "plain",
1308
1433
  label: t('bulletin-plain-language'),
1309
1434
  value: BulletinType.plain
@@ -1312,6 +1437,23 @@ var BulletinTabs = function BulletinTabs(_ref) {
1312
1437
  });
1313
1438
  };
1314
1439
 
1440
+ /* *
1441
+ * Licensed under the Apache License, Version 2.0 (the "License");
1442
+ * you may not use this file except in compliance with the License.
1443
+ * You may obtain a copy of the License at
1444
+ *
1445
+ * http://www.apache.org/licenses/LICENSE-2.0
1446
+ *
1447
+ * Unless required by applicable law or agreed to in writing, software
1448
+ * distributed under the License is distributed on an "AS IS" BASIS,
1449
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1450
+ * See the License for the specific language governing permissions and
1451
+ * limitations under the License.
1452
+ *
1453
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1454
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1455
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1456
+ * */
1315
1457
  var styles$5 = {
1316
1458
  bulletinContentSmall: {
1317
1459
  height: '100%',
@@ -1335,10 +1477,10 @@ var BulletinViewer = function BulletinViewer(_ref) {
1335
1477
  bulletinContent = "<p style=\"text-align: right; margin: 0px\"><b>" + t('bulletin-published') + " </b>" + dateUtils.dateToString(dateUtils.utc(bulletin.message.overview.timestamp), dateUtils.DATE_FORMAT_DATEPICKER + "' UTC'") + "</p>";
1336
1478
  bulletinContent += bulletinType === BulletinType$1.technical ? bulletin.message.overview.content : bulletin.message.overview.simplified_content;
1337
1479
  }
1338
- return jsx(Box, {
1480
+ return /*#__PURE__*/jsx(Box, {
1339
1481
  "data-testid": "bulletinviewer",
1340
1482
  sx: smallContent ? styles$5.bulletinContentSmall : styles$5.bulletinContentLarge,
1341
- children: !!bulletin && jsx(Typography, {
1483
+ children: !!bulletin && /*#__PURE__*/jsx(Typography, {
1342
1484
  dangerouslySetInnerHTML: {
1343
1485
  __html: bulletinContent
1344
1486
  },
@@ -1348,6 +1490,23 @@ var BulletinViewer = function BulletinViewer(_ref) {
1348
1490
  });
1349
1491
  };
1350
1492
 
1493
+ /* *
1494
+ * Licensed under the Apache License, Version 2.0 (the "License");
1495
+ * you may not use this file except in compliance with the License.
1496
+ * You may obtain a copy of the License at
1497
+ *
1498
+ * http://www.apache.org/licenses/LICENSE-2.0
1499
+ *
1500
+ * Unless required by applicable law or agreed to in writing, software
1501
+ * distributed under the License is distributed on an "AS IS" BASIS,
1502
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1503
+ * See the License for the specific language governing permissions and
1504
+ * limitations under the License.
1505
+ *
1506
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1507
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
1508
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1509
+ * */
1351
1510
  var BulletinHistoryDialog = function BulletinHistoryDialog(_ref) {
1352
1511
  var open = _ref.open,
1353
1512
  toggleStatus = _ref.toggleStatus;
@@ -1384,56 +1543,56 @@ var BulletinHistoryDialog = function BulletinHistoryDialog(_ref) {
1384
1543
  return bulletin.bulletin_id === selectedBulletin;
1385
1544
  });
1386
1545
  }, [bulletinHistoryList, selectedBulletin]);
1387
- return jsx(ContentDialog, {
1546
+ return /*#__PURE__*/jsx(ContentDialog, {
1388
1547
  "data-testid": "history-dialog",
1389
1548
  disableEscapeKeyDown: true,
1390
1549
  fullWidth: true,
1391
1550
  open: open,
1392
1551
  title: t('bulletin-forecast-history-title'),
1393
1552
  toggleStatus: toggleStatus,
1394
- children: jsxs(Grid, {
1553
+ children: /*#__PURE__*/jsxs(Grid, {
1395
1554
  container: true,
1396
- children: [jsxs(Grid, {
1555
+ children: [/*#__PURE__*/jsxs(Grid, {
1397
1556
  size: 2,
1398
- children: [!!bulletinHistoryList && jsx(BulletinHistoryList, {
1557
+ children: [!!bulletinHistoryList && /*#__PURE__*/jsx(BulletinHistoryList, {
1399
1558
  bulletinHistoryList: bulletinHistoryList,
1400
1559
  onSelectBulletin: setSelectedBulletin,
1401
1560
  selectedBulletin: selectedBulletin
1402
- }), !!isFetching && jsx(Skeleton, {
1561
+ }), !!isFetching && /*#__PURE__*/jsx(Skeleton, {
1403
1562
  "data-testid": "history-dialog-loading",
1404
1563
  height: 558,
1405
1564
  variant: "rectangular",
1406
1565
  width: "90%"
1407
- }), !!error && jsx(AlertBanner, {
1566
+ }), !!error && /*#__PURE__*/jsx(AlertBanner, {
1408
1567
  dataTestId: "history-dialog-error",
1409
1568
  severity: "error",
1410
1569
  title: error.message ? error.message : ''
1411
1570
  })]
1412
- }), jsx(Grid, {
1571
+ }), /*#__PURE__*/jsx(Grid, {
1413
1572
  size: 10,
1414
- children: jsxs(Grid, {
1573
+ children: /*#__PURE__*/jsxs(Grid, {
1415
1574
  alignItems: "stretch",
1416
1575
  container: true,
1417
1576
  direction: "column",
1418
1577
  spacing: 0,
1419
- children: [jsx(BulletinTabs, {
1578
+ children: [/*#__PURE__*/jsx(BulletinTabs, {
1420
1579
  onSetBulletinType: setBulletinType,
1421
1580
  selected: bulletinType
1422
- }), jsxs(Grid, {
1423
- children: [jsx(Box, {
1581
+ }), /*#__PURE__*/jsxs(Grid, {
1582
+ children: [/*#__PURE__*/jsx(Box, {
1424
1583
  sx: {
1425
1584
  padding: '10px 0px 0px 10px'
1426
1585
  },
1427
- children: !!selectedBulletinItem && jsx(BulletinViewer, {
1586
+ children: !!selectedBulletinItem && /*#__PURE__*/jsx(BulletinViewer, {
1428
1587
  bulletin: selectedBulletinItem,
1429
1588
  bulletinType: bulletinType,
1430
1589
  smallContent: false
1431
1590
  })
1432
- }), !!isFetching && jsx(Skeleton, {
1591
+ }), !!isFetching && /*#__PURE__*/jsx(Skeleton, {
1433
1592
  height: 500,
1434
1593
  variant: "rectangular",
1435
1594
  width: "100%"
1436
- }), !!error && jsx(AlertBanner, {
1595
+ }), !!error && /*#__PURE__*/jsx(AlertBanner, {
1437
1596
  severity: "error",
1438
1597
  title: error.message ? error.message : ''
1439
1598
  })]
@@ -1444,6 +1603,23 @@ var BulletinHistoryDialog = function BulletinHistoryDialog(_ref) {
1444
1603
  });
1445
1604
  };
1446
1605
 
1606
+ /* *
1607
+ * Licensed under the Apache License, Version 2.0 (the "License");
1608
+ * you may not use this file except in compliance with the License.
1609
+ * You may obtain a copy of the License at
1610
+ *
1611
+ * http://www.apache.org/licenses/LICENSE-2.0
1612
+ *
1613
+ * Unless required by applicable law or agreed to in writing, software
1614
+ * distributed under the License is distributed on an "AS IS" BASIS,
1615
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616
+ * See the License for the specific language governing permissions and
1617
+ * limitations under the License.
1618
+ *
1619
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1620
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1621
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1622
+ * */
1447
1623
  var maxHeight$1 = '22vh';
1448
1624
  var styles$4 = {
1449
1625
  BulletinHeader: {
@@ -1458,6 +1634,7 @@ var styles$4 = {
1458
1634
  minHeight: '175px'
1459
1635
  }
1460
1636
  };
1637
+
1461
1638
  /**
1462
1639
  * Bulletin
1463
1640
  * View the latest bulletin from Met Office, and access the history list
@@ -1482,60 +1659,77 @@ var BulletinComponent = function BulletinComponent() {
1482
1659
  isFetching = _useBulletin.isFetching,
1483
1660
  error = _useBulletin.error;
1484
1661
  var hasNoAvailableBulletinsFromLasth24h = result !== null && !(result != null && result.bulletin_id) && error === null && !isFetching;
1485
- return jsxs(Grid, {
1662
+ return /*#__PURE__*/jsxs(Grid, {
1486
1663
  container: true,
1487
1664
  size: 12,
1488
1665
  spacing: 1,
1489
- children: [jsx(Grid, {
1666
+ children: [/*#__PURE__*/jsx(Grid, {
1490
1667
  size: 12,
1491
- children: jsx(Typography, {
1668
+ children: /*#__PURE__*/jsx(Typography, {
1492
1669
  sx: styles$4.BulletinHeader,
1493
1670
  variant: "subtitle1",
1494
1671
  children: t('bulletin-title')
1495
1672
  })
1496
- }), jsx(Grid, {
1673
+ }), /*#__PURE__*/jsx(Grid, {
1497
1674
  size: 12,
1498
- children: jsxs(Card, {
1675
+ children: /*#__PURE__*/jsxs(Card, {
1499
1676
  elevation: 0,
1500
1677
  sx: styles$4.card,
1501
1678
  variant: "outlined",
1502
- children: [jsx(BulletinTabs, {
1679
+ children: [/*#__PURE__*/jsx(BulletinTabs, {
1503
1680
  onSetBulletinType: setBulletinType,
1504
1681
  selected: bulletinType
1505
- }), jsxs(CardContent, {
1682
+ }), /*#__PURE__*/jsxs(CardContent, {
1506
1683
  sx: styles$4.cardContent,
1507
- children: [!!hasNoAvailableBulletinsFromLasth24h && jsx(AlertBanner, {
1684
+ children: [!!hasNoAvailableBulletinsFromLasth24h && /*#__PURE__*/jsx(AlertBanner, {
1508
1685
  dataTestId: "bulletin-no-avail-bulletins",
1509
1686
  info: t('bulletin-historical'),
1510
1687
  severity: "info",
1511
1688
  title: t('bulletin-not-available')
1512
- }), !!(result != null && result.bulletin_id) && jsx(BulletinViewer, {
1689
+ }), !!(result != null && result.bulletin_id) && /*#__PURE__*/jsx(BulletinViewer, {
1513
1690
  bulletin: result,
1514
1691
  bulletinType: bulletinType
1515
- }), !!isFetching && jsx(Skeleton, {
1692
+ }), !!isFetching && /*#__PURE__*/jsx(Skeleton, {
1516
1693
  "data-testid": "bulletin-loading",
1517
1694
  height: "100%",
1518
1695
  variant: "rectangular",
1519
1696
  width: "100%"
1520
- }), !!error && jsx(AlertBanner, {
1697
+ }), !!error && /*#__PURE__*/jsx(AlertBanner, {
1521
1698
  dataTestId: "bulletin-error",
1522
1699
  severity: "error",
1523
1700
  title: error.message ? error.message : ''
1524
1701
  })]
1525
1702
  })]
1526
1703
  })
1527
- }), jsx(Grid, {
1704
+ }), /*#__PURE__*/jsx(Grid, {
1528
1705
  size: 12,
1529
- children: jsx(BulletinControls, {
1706
+ children: /*#__PURE__*/jsx(BulletinControls, {
1530
1707
  onOpenBulletinHistory: toggleBulletinHistory
1531
1708
  })
1532
- }), jsx(BulletinHistoryDialog, {
1709
+ }), /*#__PURE__*/jsx(BulletinHistoryDialog, {
1533
1710
  open: bulletinHistoryOpen,
1534
1711
  toggleStatus: toggleBulletinHistory
1535
1712
  })]
1536
1713
  });
1537
1714
  };
1538
1715
 
1716
+ /* *
1717
+ * Licensed under the Apache License, Version 2.0 (the "License");
1718
+ * you may not use this file except in compliance with the License.
1719
+ * You may obtain a copy of the License at
1720
+ *
1721
+ * http://www.apache.org/licenses/LICENSE-2.0
1722
+ *
1723
+ * Unless required by applicable law or agreed to in writing, software
1724
+ * distributed under the License is distributed on an "AS IS" BASIS,
1725
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1726
+ * See the License for the specific language governing permissions and
1727
+ * limitations under the License.
1728
+ *
1729
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1730
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1731
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1732
+ * */
1539
1733
  var spaceweatherLayoutStyles = {
1540
1734
  height: 'calc(100% - 56px)',
1541
1735
  overflowY: 'auto',
@@ -1584,29 +1778,29 @@ var Layout = function Layout(_ref) {
1584
1778
  var leftTop = _ref.leftTop,
1585
1779
  leftBottom = _ref.leftBottom,
1586
1780
  right = _ref.right;
1587
- return jsx(Box, {
1781
+ return /*#__PURE__*/jsx(Box, {
1588
1782
  sx: spaceweatherLayoutStyles,
1589
- children: jsx(Grid, {
1783
+ children: /*#__PURE__*/jsx(Grid, {
1590
1784
  className: "spaceweatherLayoutContainer",
1591
1785
  container: true,
1592
- children: jsxs(Grid, {
1786
+ children: /*#__PURE__*/jsxs(Grid, {
1593
1787
  className: "gridContainer",
1594
1788
  container: true,
1595
1789
  spacing: 3,
1596
1790
  sx: {
1597
1791
  marginTop: '5px'
1598
1792
  },
1599
- children: [jsxs(Grid, {
1793
+ children: [/*#__PURE__*/jsxs(Grid, {
1600
1794
  className: "col-left",
1601
1795
  container: true,
1602
- children: [jsx(Grid, {
1796
+ children: [/*#__PURE__*/jsx(Grid, {
1603
1797
  size: 12,
1604
1798
  children: leftTop
1605
- }), jsx(Grid, {
1799
+ }), /*#__PURE__*/jsx(Grid, {
1606
1800
  size: 12,
1607
1801
  children: leftBottom
1608
1802
  })]
1609
- }), jsx(Grid, {
1803
+ }), /*#__PURE__*/jsx(Grid, {
1610
1804
  className: "col-right",
1611
1805
  size: 12,
1612
1806
  children: right
@@ -1674,6 +1868,23 @@ var getStatusTagColorFromContent = function getStatusTagColorFromContent(type) {
1674
1868
  }
1675
1869
  };
1676
1870
 
1871
+ /* *
1872
+ * Licensed under the Apache License, Version 2.0 (the "License");
1873
+ * you may not use this file except in compliance with the License.
1874
+ * You may obtain a copy of the License at
1875
+ *
1876
+ * http://www.apache.org/licenses/LICENSE-2.0
1877
+ *
1878
+ * Unless required by applicable law or agreed to in writing, software
1879
+ * distributed under the License is distributed on an "AS IS" BASIS,
1880
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1881
+ * See the License for the specific language governing permissions and
1882
+ * limitations under the License.
1883
+ *
1884
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1885
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
1886
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
1887
+ * */
1677
1888
  var listRowStyles = {
1678
1889
  padding: '2px',
1679
1890
  width: '100%',
@@ -1761,76 +1972,76 @@ var NotificationRow = function NotificationRow(_ref) {
1761
1972
  var internalTagContent = getStatusTagContent(internalProviderLifeCycle, event.categorydetail);
1762
1973
  var externalTagContent = getStatusTagContent(externalProviderLifeCycle, event.categorydetail);
1763
1974
  var eventlevel = event.originator !== 'KNMI' ? externalProviderLifeCycle.eventlevel : internalProviderLifeCycle.eventlevel;
1764
- return jsx(ListItemButton, {
1975
+ return /*#__PURE__*/jsx(ListItemButton, {
1765
1976
  "data-testid": "notificationRow-listitem",
1766
1977
  onClick: function onClick() {
1767
1978
  onNotificationRowClick(event);
1768
1979
  },
1769
1980
  sx: listRowStyles,
1770
- children: jsx(Card, {
1981
+ children: /*#__PURE__*/jsx(Card, {
1771
1982
  className: "notificationListRowContainer",
1772
1983
  elevation: 0,
1773
1984
  variant: "outlined",
1774
- children: jsx(CardContent, {
1985
+ children: /*#__PURE__*/jsx(CardContent, {
1775
1986
  className: "rowContainer",
1776
- children: jsxs(Grid, {
1987
+ children: /*#__PURE__*/jsxs(Grid, {
1777
1988
  alignItems: "center",
1778
1989
  container: true,
1779
1990
  justifyContent: "left",
1780
- children: [jsx(Grid, {
1991
+ children: [/*#__PURE__*/jsx(Grid, {
1781
1992
  className: "col-1",
1782
- children: jsxs(Typography, {
1993
+ children: /*#__PURE__*/jsxs(Typography, {
1783
1994
  variant: "body2",
1784
1995
  children: ["" + (eventlevel ? eventlevel + " " : '') + EventCategory[event.category], event.originator !== 'KNMI' ? dateUtils.dateToString(dateUtils.utc(externalProviderLifeCycle.lastissuetime), ": " + dateUtils.DATE_FORMAT_DATEPICKER) : '']
1785
1996
  })
1786
- }), jsx(Grid, {
1997
+ }), /*#__PURE__*/jsx(Grid, {
1787
1998
  className: "col-2",
1788
1999
  container: true,
1789
2000
  "data-testid": "notificationRow-externalStatusTag",
1790
2001
  justifyContent: "right",
1791
- children: event.originator !== 'KNMI' && jsx(StatusTag, {
2002
+ children: event.originator !== 'KNMI' && /*#__PURE__*/jsx(StatusTag, {
1792
2003
  color: getStatusTagColorFromContent(externalTagContent),
1793
2004
  content: externalTagContent,
1794
2005
  sx: {
1795
2006
  width: '68px'
1796
2007
  }
1797
2008
  })
1798
- }), jsx(Grid, {
2009
+ }), /*#__PURE__*/jsx(Grid, {
1799
2010
  className: "col-3",
1800
2011
  container: true,
1801
2012
  justifyContent: "right",
1802
- children: event.notacknowledged === true && jsx(Notifications$1, {
2013
+ children: event.notacknowledged === true && /*#__PURE__*/jsx(Notifications$1, {
1803
2014
  color: "warning",
1804
2015
  "data-testid": "newNotificationRowIcon-small"
1805
2016
  })
1806
- }), jsxs(Grid, {
2017
+ }), /*#__PURE__*/jsxs(Grid, {
1807
2018
  className: "col-4",
1808
2019
  container: true,
1809
- children: [event.notacknowledged === true && jsx(Notifications$1, {
2020
+ children: [event.notacknowledged === true && /*#__PURE__*/jsx(Notifications$1, {
1810
2021
  className: "col-4-notificationIcon",
1811
2022
  color: "warning",
1812
2023
  "data-testid": "newNotificationRowIcon-large"
1813
- }), event.notacknowledged !== true && internalProviderLifeCycle.draft !== true && !!internalProviderLifeCycle.lastissuetime && jsx(Typography, {
2024
+ }), event.notacknowledged !== true && internalProviderLifeCycle.draft !== true && !!internalProviderLifeCycle.lastissuetime && /*#__PURE__*/jsx(Typography, {
1814
2025
  "data-testid": "notificationRow-internalLastIssueTime",
1815
2026
  variant: "body2",
1816
2027
  children: dateUtils.dateToString(dateUtils.utc(internalProviderLifeCycle.lastissuetime), dateUtils.DATE_FORMAT_DATEPICKER)
1817
2028
  })]
1818
- }), jsxs(Grid, {
2029
+ }), /*#__PURE__*/jsxs(Grid, {
1819
2030
  className: "col-5",
1820
2031
  container: true,
1821
2032
  "data-testid": "notificationRow-internalStatusTagDraft",
1822
2033
  justifyContent: "right",
1823
- children: [event.notacknowledged !== true && internalProviderLifeCycle.draft !== true && !!internalProviderLifeCycle.lastissuetime && jsx(StatusTag, {
2034
+ children: [event.notacknowledged !== true && internalProviderLifeCycle.draft !== true && !!internalProviderLifeCycle.lastissuetime && /*#__PURE__*/jsx(StatusTag, {
1824
2035
  color: getStatusTagColorFromContent(internalTagContent),
1825
2036
  content: internalTagContent,
1826
2037
  sx: {
1827
2038
  width: '68px'
1828
2039
  }
1829
- }), internalProviderLifeCycle.draft !== undefined && !!internalProviderLifeCycle.draft && jsx(Button, {
2040
+ }), internalProviderLifeCycle.draft !== undefined && !!internalProviderLifeCycle.draft && /*#__PURE__*/jsx(Button, {
1830
2041
  color: "secondary",
1831
2042
  "data-testid": "notificationRow-draft",
1832
2043
  size: "small",
1833
- startIcon: jsx(Edit, {
2044
+ startIcon: /*#__PURE__*/jsx(Edit, {
1834
2045
  color: "secondary"
1835
2046
  }),
1836
2047
  sx: {
@@ -1845,18 +2056,35 @@ var NotificationRow = function NotificationRow(_ref) {
1845
2056
  }, event.eventid);
1846
2057
  };
1847
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 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2073
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2074
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2075
+ * */
1848
2076
  var NotificationTabs = function NotificationTabs(_ref) {
1849
2077
  var activeTab = _ref.activeTab,
1850
2078
  newNotifications = _ref.newNotifications,
1851
2079
  _onChange = _ref.onChange;
1852
2080
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
1853
2081
  t = _useSpaceweatherTrans.t;
1854
- var icon = newNotifications !== null && newNotifications.length > 0 ? jsx(Notifications$1, {
2082
+ var icon = newNotifications !== null && newNotifications.length > 0 ? /*#__PURE__*/jsx(Notifications$1, {
1855
2083
  color: "warning",
1856
2084
  "data-testid": "newNotificationTabIcon",
1857
2085
  fontSize: "small"
1858
2086
  }) : null;
1859
- return jsxs(Tabs, {
2087
+ return /*#__PURE__*/jsxs(Tabs, {
1860
2088
  indicatorColor: "secondary",
1861
2089
  onChange: function onChange(event, value) {
1862
2090
  _onChange(value);
@@ -1865,7 +2093,7 @@ var NotificationTabs = function NotificationTabs(_ref) {
1865
2093
  textColor: "secondary",
1866
2094
  value: activeTab,
1867
2095
  variant: "scrollable",
1868
- children: [jsx(Tab, {
2096
+ children: [/*#__PURE__*/jsx(Tab, {
1869
2097
  "data-testid": "newNotificationTabAll",
1870
2098
  icon: icon,
1871
2099
  label: t('notification-tab-all'),
@@ -1880,11 +2108,11 @@ var NotificationTabs = function NotificationTabs(_ref) {
1880
2108
  },
1881
2109
  value: "ALL"
1882
2110
  }), Object.keys(EventCategory).map(function (key) {
1883
- return jsx(Tab, {
2111
+ return /*#__PURE__*/jsx(Tab, {
1884
2112
  label: EventCategory[key],
1885
2113
  value: key
1886
2114
  }, key);
1887
- }), jsx(Tab, {
2115
+ }), /*#__PURE__*/jsx(Tab, {
1888
2116
  "data-testid": "newNotificationTabKNMI",
1889
2117
  label: "KNMI",
1890
2118
  value: "KNMI"
@@ -1892,6 +2120,23 @@ var NotificationTabs = function NotificationTabs(_ref) {
1892
2120
  });
1893
2121
  };
1894
2122
 
2123
+ /* *
2124
+ * Licensed under the Apache License, Version 2.0 (the "License");
2125
+ * you may not use this file except in compliance with the License.
2126
+ * You may obtain a copy of the License at
2127
+ *
2128
+ * http://www.apache.org/licenses/LICENSE-2.0
2129
+ *
2130
+ * Unless required by applicable law or agreed to in writing, software
2131
+ * distributed under the License is distributed on an "AS IS" BASIS,
2132
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2133
+ * See the License for the specific language governing permissions and
2134
+ * limitations under the License.
2135
+ *
2136
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2137
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2138
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2139
+ * */
1895
2140
  var maxHeight = '33vh';
1896
2141
  var NotificationList = function NotificationList(_ref) {
1897
2142
  var tabValue = _ref.tabValue,
@@ -1905,19 +2150,19 @@ var NotificationList = function NotificationList(_ref) {
1905
2150
  var handleChange = function handleChange(newValue) {
1906
2151
  onChangeTabValue(newValue);
1907
2152
  };
1908
- return jsxs(Grid, {
2153
+ return /*#__PURE__*/jsxs(Grid, {
1909
2154
  container: true,
1910
2155
  spacing: 0,
1911
- children: [jsx(Grid, {
2156
+ children: [/*#__PURE__*/jsx(Grid, {
1912
2157
  size: 12,
1913
- children: jsx(NotificationTabs, {
2158
+ children: /*#__PURE__*/jsx(NotificationTabs, {
1914
2159
  activeTab: tabValue,
1915
2160
  newNotifications: newNotifications,
1916
2161
  onChange: handleChange
1917
2162
  })
1918
- }), jsx(Grid, {
2163
+ }), /*#__PURE__*/jsx(Grid, {
1919
2164
  size: 12,
1920
- children: jsx(Card, {
2165
+ children: /*#__PURE__*/jsx(Card, {
1921
2166
  elevation: 0,
1922
2167
  sx: {
1923
2168
  boxShadow: 'inset 0 0 2px 0 rgba(0, 0, 0, 0.5)',
@@ -1925,31 +2170,31 @@ var NotificationList = function NotificationList(_ref) {
1925
2170
  paddingBottom: '2px'
1926
2171
  },
1927
2172
  variant: "outlined",
1928
- children: jsxs(CardContent, {
2173
+ children: /*#__PURE__*/jsxs(CardContent, {
1929
2174
  sx: {
1930
2175
  height: maxHeight,
1931
2176
  minHeight: '306px',
1932
2177
  padding: '4px 8px',
1933
2178
  overflowY: 'scroll'
1934
2179
  },
1935
- children: [!!eventList && jsx(List, {
2180
+ children: [!!eventList && /*#__PURE__*/jsx(List, {
1936
2181
  sx: {
1937
2182
  padding: 0
1938
2183
  },
1939
2184
  children: eventList.map(function (event) {
1940
- return jsx(NotificationRow, {
2185
+ return /*#__PURE__*/jsx(NotificationRow, {
1941
2186
  event: event,
1942
2187
  onNotificationRowClick: function onNotificationRowClick(_event) {
1943
2188
  handleNotificatioNRowClick(_event);
1944
2189
  }
1945
2190
  }, event.eventid);
1946
2191
  })
1947
- }), !!isLoading && jsx(Skeleton, {
2192
+ }), !!isLoading && /*#__PURE__*/jsx(Skeleton, {
1948
2193
  "data-testid": "notificationList-skeleton",
1949
2194
  height: "100%",
1950
2195
  variant: "rectangular",
1951
2196
  width: "100%"
1952
- }), !!error && jsx(AlertBanner, {
2197
+ }), !!error && /*#__PURE__*/jsx(AlertBanner, {
1953
2198
  dataTestId: "notificationList-alert",
1954
2199
  severity: "error",
1955
2200
  title: error.message ? error.message : ''
@@ -1960,6 +2205,23 @@ var NotificationList = function NotificationList(_ref) {
1960
2205
  });
1961
2206
  };
1962
2207
 
2208
+ /* *
2209
+ * Licensed under the Apache License, Version 2.0 (the "License");
2210
+ * you may not use this file except in compliance with the License.
2211
+ * You may obtain a copy of the License at
2212
+ *
2213
+ * http://www.apache.org/licenses/LICENSE-2.0
2214
+ *
2215
+ * Unless required by applicable law or agreed to in writing, software
2216
+ * distributed under the License is distributed on an "AS IS" BASIS,
2217
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2218
+ * See the License for the specific language governing permissions and
2219
+ * limitations under the License.
2220
+ *
2221
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2222
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2223
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2224
+ * */
1963
2225
  var styles$3 = {
1964
2226
  optionButton: {
1965
2227
  marginRight: '10px'
@@ -1970,25 +2232,25 @@ var LifeCycleActions = function LifeCycleActions(_ref) {
1970
2232
  onAction = _ref.onAction;
1971
2233
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
1972
2234
  t = _useSpaceweatherTrans.t;
1973
- return jsxs(Grid, {
2235
+ return /*#__PURE__*/jsxs(Grid, {
1974
2236
  alignItems: "center",
1975
2237
  container: true,
1976
2238
  "data-testid": "lifecycle-actions-displaybuttons",
1977
2239
  justifyContent: "flex-end",
1978
2240
  size: 12,
1979
- children: [jsx(Grid, {
1980
- children: (actions.includes('updated') || actions.includes('extended')) && jsx(Button, {
2241
+ children: [/*#__PURE__*/jsx(Grid, {
2242
+ children: (actions.includes('updated') || actions.includes('extended')) && /*#__PURE__*/jsx(Button, {
1981
2243
  color: "secondary",
1982
2244
  "data-testid": "updateextend",
1983
2245
  onClick: function onClick() {
1984
2246
  return onAction('Updateextend');
1985
2247
  },
1986
- startIcon: jsx(Edit, {}),
2248
+ startIcon: /*#__PURE__*/jsx(Edit, {}),
1987
2249
  sx: styles$3.optionButton,
1988
2250
  children: t('notification-update-extend')
1989
2251
  })
1990
- }), jsx(Grid, {
1991
- children: actions.includes('summarised') && jsx(Button, {
2252
+ }), /*#__PURE__*/jsx(Grid, {
2253
+ children: actions.includes('summarised') && /*#__PURE__*/jsx(Button, {
1992
2254
  color: "secondary",
1993
2255
  "data-testid": "summarise",
1994
2256
  onClick: function onClick() {
@@ -1998,8 +2260,8 @@ var LifeCycleActions = function LifeCycleActions(_ref) {
1998
2260
  variant: "contained",
1999
2261
  children: t('notification-summarise')
2000
2262
  })
2001
- }), jsx(Grid, {
2002
- children: actions.includes('cancelled') && jsx(Button, {
2263
+ }), /*#__PURE__*/jsx(Grid, {
2264
+ children: actions.includes('cancelled') && /*#__PURE__*/jsx(Button, {
2003
2265
  color: "secondary",
2004
2266
  "data-testid": "cancel",
2005
2267
  onClick: function onClick() {
@@ -2035,7 +2297,8 @@ var constructBaseNotification = function constructBaseNotification(event, mode)
2035
2297
  var draftNotification = event.lifecycles.internalprovider.notifications.find(function (notification) {
2036
2298
  return notification.draft;
2037
2299
  });
2038
- var neweventstart = draftNotification.neweventstart;
2300
+ var _ref = draftNotification,
2301
+ neweventstart = _ref.neweventstart;
2039
2302
  var neweventend = draftNotification.neweventend && draftNotification.neweventend !== null && draftNotification.neweventend !== '' ? draftNotification.neweventend : undefined;
2040
2303
  return Object.assign({
2041
2304
  originator: 'KNMI'
@@ -2052,9 +2315,9 @@ var constructBaseNotification = function constructBaseNotification(event, mode)
2052
2315
  }
2053
2316
  case 'internalprovider':
2054
2317
  {
2055
- var _event$lifecycles$ext;
2318
+ var _externalprovider;
2056
2319
  var lifeCycle = event.lifecycles.internalprovider;
2057
- var externalNotifications = (_event$lifecycles$ext = event.lifecycles.externalprovider) != null && _event$lifecycles$ext.notifications ? event.lifecycles.externalprovider.notifications : [];
2320
+ var externalNotifications = (_externalprovider = event.lifecycles.externalprovider) != null && _externalprovider.notifications ? event.lifecycles.externalprovider.notifications : [];
2058
2321
  var lastExternalNotification = externalNotifications.length > 0 ? externalNotifications[externalNotifications.length - 1] : {};
2059
2322
  var _neweventstart = lifeCycle.eventstart;
2060
2323
  var _neweventend = lifeCycle.eventend && lifeCycle.eventend !== null && lifeCycle.eventend !== '' ? lifeCycle.eventend : undefined;
@@ -2189,6 +2452,23 @@ var getNewInternalStatusTagContent = function getNewInternalStatusTagContent(act
2189
2452
  return 'Alert';
2190
2453
  };
2191
2454
 
2455
+ /* *
2456
+ * Licensed under the Apache License, Version 2.0 (the "License");
2457
+ * you may not use this file except in compliance with the License.
2458
+ * You may obtain a copy of the License at
2459
+ *
2460
+ * http://www.apache.org/licenses/LICENSE-2.0
2461
+ *
2462
+ * Unless required by applicable law or agreed to in writing, software
2463
+ * distributed under the License is distributed on an "AS IS" BASIS,
2464
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2465
+ * See the License for the specific language governing permissions and
2466
+ * limitations under the License.
2467
+ *
2468
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2469
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2470
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2471
+ * */
2192
2472
  var styles$2 = {
2193
2473
  notificationHeader: {
2194
2474
  marginTop: '15px',
@@ -2210,29 +2490,29 @@ var LifeCycleColumn = function LifeCycleColumn(_ref) {
2210
2490
  type = _ref.type;
2211
2491
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
2212
2492
  t = _useSpaceweatherTrans.t;
2213
- return jsxs(List, {
2493
+ return /*#__PURE__*/jsxs(List, {
2214
2494
  "data-testid": "lifecycle-column",
2215
- children: [jsx(ListItem, {
2216
- children: jsxs(Grid, {
2495
+ children: [/*#__PURE__*/jsx(ListItem, {
2496
+ children: /*#__PURE__*/jsxs(Grid, {
2217
2497
  container: true,
2218
2498
  size: 12,
2219
2499
  spacing: 1,
2220
- children: [jsxs(Grid, {
2500
+ children: [/*#__PURE__*/jsxs(Grid, {
2221
2501
  size: 6,
2222
- children: [jsx(Typography, {
2502
+ children: [/*#__PURE__*/jsx(Typography, {
2223
2503
  "data-testid": "lifecycle-column-owner",
2224
2504
  variant: "overline",
2225
2505
  children: t('notification-originator')
2226
- }), jsx(Typography, {
2506
+ }), /*#__PURE__*/jsx(Typography, {
2227
2507
  variant: "body1",
2228
2508
  children: lifeCycle.owner
2229
2509
  })]
2230
- }), categoryDetail ? jsxs(Grid, {
2510
+ }), categoryDetail ? /*#__PURE__*/jsxs(Grid, {
2231
2511
  size: 6,
2232
- children: [jsx(Typography, {
2512
+ children: [/*#__PURE__*/jsx(Typography, {
2233
2513
  variant: "overline",
2234
2514
  children: t('notification-category-detail')
2235
- }), jsx(Typography, {
2515
+ }), /*#__PURE__*/jsx(Typography, {
2236
2516
  "data-testid": "lifecycle-column-categorydetail",
2237
2517
  variant: "body1",
2238
2518
  children: EventCategoryDetail[categoryDetail]
@@ -2248,30 +2528,32 @@ var LifeCycleColumn = function LifeCycleColumn(_ref) {
2248
2528
  var eventStartFormat = formatDateWithUTC(notification.neweventstart);
2249
2529
  var eventEndFormat = notification.neweventend && notification.neweventend !== '' ? formatDateWithUTC(notification.neweventend) : null;
2250
2530
  var statusTagContent = getStatusTagContent$1(notification.label, categoryDetail, notification.changestateto);
2251
- return jsx(ListItem, {
2252
- "data-testid": notification.notificationid + "-" + notification.issuetime,
2253
- children: jsxs(Grid, {
2531
+ return /*#__PURE__*/jsx(ListItem, {
2532
+ "data-testid": notification.notificationid + "-" + notification.issuetime
2533
+ // eslint-disable-next-line react/no-array-index-key
2534
+ ,
2535
+ children: /*#__PURE__*/jsxs(Grid, {
2254
2536
  container: true,
2255
2537
  spacing: 1,
2256
- children: [jsxs(Grid, {
2538
+ children: [/*#__PURE__*/jsxs(Grid, {
2257
2539
  size: 12,
2258
2540
  sx: styles$2.notificationHeader,
2259
- children: [key !== 0 && jsx(SubdirectoryArrowRight, {}), jsxs(Grid, {
2541
+ children: [key !== 0 && /*#__PURE__*/jsx(SubdirectoryArrowRight, {}), /*#__PURE__*/jsxs(Grid, {
2260
2542
  container: true,
2261
2543
  "data-testid": "lifecycle-column-notification",
2262
- children: [jsxs(Grid, {
2544
+ children: [/*#__PURE__*/jsxs(Grid, {
2263
2545
  size: 10,
2264
- children: [jsx(Typography, {
2546
+ children: [/*#__PURE__*/jsx(Typography, {
2265
2547
  variant: "overline",
2266
2548
  children: t('notification-issue-time')
2267
- }), jsx(Typography, {
2549
+ }), /*#__PURE__*/jsx(Typography, {
2268
2550
  "data-testid": "lifecycle-issuetime",
2269
2551
  variant: "body1",
2270
2552
  children: formatDateWithUTC(notification.issuetime)
2271
2553
  })]
2272
- }), jsx(Grid, {
2554
+ }), /*#__PURE__*/jsx(Grid, {
2273
2555
  size: 2,
2274
- children: jsx(StatusTag, {
2556
+ children: /*#__PURE__*/jsx(StatusTag, {
2275
2557
  color: getStatusTagColorFromContent(statusTagContent),
2276
2558
  content: statusTagContent,
2277
2559
  sx: {
@@ -2280,208 +2562,208 @@ var LifeCycleColumn = function LifeCycleColumn(_ref) {
2280
2562
  })
2281
2563
  })]
2282
2564
  })]
2283
- }), !!notification.datasource && jsxs(Grid, {
2565
+ }), !!notification.datasource && /*#__PURE__*/jsxs(Grid, {
2284
2566
  size: 12,
2285
- children: [jsx(Typography, {
2567
+ children: [/*#__PURE__*/jsx(Typography, {
2286
2568
  variant: "overline",
2287
2569
  children: t('notification-source')
2288
- }), jsx(Typography, {
2570
+ }), /*#__PURE__*/jsx(Typography, {
2289
2571
  "data-testid": "lifecycle-column-datasource",
2290
2572
  variant: "body1",
2291
2573
  children: notification.datasource
2292
2574
  })]
2293
- }), jsx(Grid, {
2575
+ }), /*#__PURE__*/jsx(Grid, {
2294
2576
  size: 12,
2295
- children: jsxs(Grid, {
2577
+ children: /*#__PURE__*/jsxs(Grid, {
2296
2578
  container: true,
2297
- children: [!!notification.neweventlevel && jsxs(Grid, {
2579
+ children: [!!notification.neweventlevel && /*#__PURE__*/jsxs(Grid, {
2298
2580
  size: 2,
2299
- children: [jsx(Typography, {
2581
+ children: [/*#__PURE__*/jsx(Typography, {
2300
2582
  variant: "overline",
2301
2583
  children: t('notification-event-level')
2302
- }), jsx(Typography, {
2584
+ }), /*#__PURE__*/jsx(Typography, {
2303
2585
  "data-testid": "lifecycle-column-neweventlevel",
2304
2586
  variant: "body1",
2305
2587
  children: notification.neweventlevel
2306
2588
  })]
2307
- }), !!notification.threshold && jsxs(Grid, {
2589
+ }), !!notification.threshold && /*#__PURE__*/jsxs(Grid, {
2308
2590
  size: 3,
2309
- children: [jsx(Typography, {
2591
+ children: [/*#__PURE__*/jsx(Typography, {
2310
2592
  variant: "overline",
2311
2593
  children: t('notification-threshold')
2312
- }), jsx(Typography, {
2594
+ }), /*#__PURE__*/jsx(Typography, {
2313
2595
  "data-testid": "lifecycle-column-threshold",
2314
2596
  variant: "body1",
2315
2597
  children: notification.threshold
2316
2598
  })]
2317
- }), !!notification.thresholdunit && jsxs(Grid, {
2599
+ }), !!notification.thresholdunit && /*#__PURE__*/jsxs(Grid, {
2318
2600
  size: 3,
2319
- children: [jsx(Typography, {
2601
+ children: [/*#__PURE__*/jsx(Typography, {
2320
2602
  variant: "overline",
2321
2603
  children: t('notification-threshold-unit')
2322
- }), jsx(Typography, {
2604
+ }), /*#__PURE__*/jsx(Typography, {
2323
2605
  "data-testid": "lifecycle-column-thresholdunit",
2324
2606
  variant: "body1",
2325
2607
  children: notification.thresholdunit
2326
2608
  })]
2327
- }), !!notification.initialgscale && jsxs(Grid, {
2609
+ }), !!notification.initialgscale && /*#__PURE__*/jsxs(Grid, {
2328
2610
  size: 3,
2329
- children: [jsx(Typography, {
2611
+ children: [/*#__PURE__*/jsx(Typography, {
2330
2612
  variant: "overline",
2331
2613
  children: t('notification-g-scale')
2332
- }), jsx(Typography, {
2614
+ }), /*#__PURE__*/jsx(Typography, {
2333
2615
  "data-testid": "lifecycle-column-initialgscale",
2334
2616
  variant: "body1",
2335
2617
  children: notification.initialgscale
2336
2618
  })]
2337
2619
  })]
2338
2620
  })
2339
- }), !!notification.xrayclass && jsx(Grid, {
2621
+ }), !!notification.xrayclass && /*#__PURE__*/jsx(Grid, {
2340
2622
  size: 12,
2341
- children: jsxs(Grid, {
2623
+ children: /*#__PURE__*/jsxs(Grid, {
2342
2624
  container: true,
2343
- children: [jsxs(Grid, {
2625
+ children: [/*#__PURE__*/jsxs(Grid, {
2344
2626
  size: 2,
2345
- children: [jsx(Typography, {
2627
+ children: [/*#__PURE__*/jsx(Typography, {
2346
2628
  variant: "overline",
2347
2629
  children: t('notification-xray-class')
2348
- }), jsx(Typography, {
2630
+ }), /*#__PURE__*/jsx(Typography, {
2349
2631
  "data-testid": "lifecycle-column-xrayclass",
2350
2632
  variant: "body1",
2351
2633
  children: notification.xrayclass
2352
2634
  })]
2353
- }), !!notification.peakclass && jsxs(Grid, {
2635
+ }), !!notification.peakclass && /*#__PURE__*/jsxs(Grid, {
2354
2636
  size: 2,
2355
- children: [jsx(Typography, {
2637
+ children: [/*#__PURE__*/jsx(Typography, {
2356
2638
  variant: "overline",
2357
2639
  children: t('notification-peak-class')
2358
- }), jsx(Typography, {
2640
+ }), /*#__PURE__*/jsx(Typography, {
2359
2641
  "data-testid": "lifecycle-column-peakclass",
2360
2642
  variant: "body1",
2361
2643
  children: notification.peakclass
2362
2644
  })]
2363
2645
  })]
2364
2646
  })
2365
- }), !!notification.peakflux && jsx(Grid, {
2647
+ }), !!notification.peakflux && /*#__PURE__*/jsx(Grid, {
2366
2648
  size: 12,
2367
- children: jsxs(Grid, {
2649
+ children: /*#__PURE__*/jsxs(Grid, {
2368
2650
  container: true,
2369
- children: [jsxs(Grid, {
2651
+ children: [/*#__PURE__*/jsxs(Grid, {
2370
2652
  size: 5,
2371
- children: [jsx(Typography, {
2653
+ children: [/*#__PURE__*/jsx(Typography, {
2372
2654
  variant: "overline",
2373
2655
  children: t('notification-peak-flux')
2374
- }), jsx(Typography, {
2656
+ }), /*#__PURE__*/jsx(Typography, {
2375
2657
  "data-testid": "lifecycle-column-peakflux",
2376
2658
  variant: "body1",
2377
2659
  children: notification.peakflux
2378
2660
  })]
2379
- }), !!notification.peakfluxtime && jsxs(Grid, {
2661
+ }), !!notification.peakfluxtime && /*#__PURE__*/jsxs(Grid, {
2380
2662
  size: 5,
2381
- children: [jsx(Typography, {
2663
+ children: [/*#__PURE__*/jsx(Typography, {
2382
2664
  variant: "overline",
2383
2665
  children: t('notification-peak-flux-time')
2384
- }), jsx(Typography, {
2666
+ }), /*#__PURE__*/jsx(Typography, {
2385
2667
  "data-testid": "lifecycle-column-peakfluxtime",
2386
2668
  variant: "body1",
2387
2669
  children: formatDateWithUTC(notification.peakfluxtime)
2388
2670
  })]
2389
2671
  })]
2390
2672
  })
2391
- }), !!notification.impulsetime && jsx(Grid, {
2673
+ }), !!notification.impulsetime && /*#__PURE__*/jsx(Grid, {
2392
2674
  size: 12,
2393
- children: jsxs(Grid, {
2675
+ children: /*#__PURE__*/jsxs(Grid, {
2394
2676
  container: true,
2395
- children: [jsxs(Grid, {
2677
+ children: [/*#__PURE__*/jsxs(Grid, {
2396
2678
  size: 5,
2397
- children: [jsx(Typography, {
2679
+ children: [/*#__PURE__*/jsx(Typography, {
2398
2680
  variant: "overline",
2399
2681
  children: t('notification-impulse-time')
2400
- }), jsx(Typography, {
2682
+ }), /*#__PURE__*/jsx(Typography, {
2401
2683
  "data-testid": "lifecycle-column-impulsetime",
2402
2684
  variant: "body1",
2403
2685
  children: formatDateWithUTC(notification.impulsetime)
2404
2686
  })]
2405
- }), !!notification.magnetometerdeflection && jsxs(Grid, {
2687
+ }), !!notification.magnetometerdeflection && /*#__PURE__*/jsxs(Grid, {
2406
2688
  size: 3,
2407
- children: [jsx(Typography, {
2689
+ children: [/*#__PURE__*/jsx(Typography, {
2408
2690
  variant: "overline",
2409
2691
  children: t('notification-magnetometer')
2410
- }), jsx(Typography, {
2692
+ }), /*#__PURE__*/jsx(Typography, {
2411
2693
  "data-testid": "lifecycle-column-magnetometerdeflection",
2412
2694
  variant: "body1",
2413
2695
  children: notification.magnetometerdeflection
2414
2696
  })]
2415
2697
  })]
2416
2698
  })
2417
- }), !!notification.shocktime && jsx(Grid, {
2699
+ }), !!notification.shocktime && /*#__PURE__*/jsx(Grid, {
2418
2700
  size: 12,
2419
- children: jsxs(Grid, {
2701
+ children: /*#__PURE__*/jsxs(Grid, {
2420
2702
  container: true,
2421
- children: [jsxs(Grid, {
2703
+ children: [/*#__PURE__*/jsxs(Grid, {
2422
2704
  size: 5,
2423
- children: [jsx(Typography, {
2705
+ children: [/*#__PURE__*/jsx(Typography, {
2424
2706
  variant: "overline",
2425
2707
  children: t('notification-shock-time')
2426
- }), jsx(Typography, {
2708
+ }), /*#__PURE__*/jsx(Typography, {
2427
2709
  "data-testid": "lifecycle-column-shocktime",
2428
2710
  variant: "body1",
2429
2711
  children: formatDateWithUTC(notification.shocktime)
2430
2712
  })]
2431
- }), !!notification.observedpolaritybz && jsxs(Grid, {
2713
+ }), !!notification.observedpolaritybz && /*#__PURE__*/jsxs(Grid, {
2432
2714
  size: 3,
2433
- children: [jsx(Typography, {
2715
+ children: [/*#__PURE__*/jsx(Typography, {
2434
2716
  variant: "overline",
2435
2717
  children: t('notification-polarity')
2436
- }), jsx(Typography, {
2718
+ }), /*#__PURE__*/jsx(Typography, {
2437
2719
  "data-testid": "lifecycle-column-observedpolaritybz",
2438
2720
  variant: "body1",
2439
2721
  children: notification.observedpolaritybz
2440
2722
  })]
2441
- }), !!notification.observedsolarwind && jsxs(Grid, {
2723
+ }), !!notification.observedsolarwind && /*#__PURE__*/jsxs(Grid, {
2442
2724
  size: 4,
2443
- children: [jsx(Typography, {
2725
+ children: [/*#__PURE__*/jsx(Typography, {
2444
2726
  variant: "overline",
2445
2727
  children: t('notification-solar-wind')
2446
- }), jsx(Typography, {
2728
+ }), /*#__PURE__*/jsx(Typography, {
2447
2729
  "data-testid": "lifecycle-column-observedsolarwind",
2448
2730
  variant: "body1",
2449
2731
  children: notification.observedsolarwind
2450
2732
  })]
2451
2733
  })]
2452
2734
  })
2453
- }), jsx(Grid, {
2735
+ }), /*#__PURE__*/jsx(Grid, {
2454
2736
  size: 12,
2455
- children: jsxs(Grid, {
2737
+ children: /*#__PURE__*/jsxs(Grid, {
2456
2738
  container: true,
2457
- children: [jsxs(Grid, {
2739
+ children: [/*#__PURE__*/jsxs(Grid, {
2458
2740
  size: 5,
2459
- children: [jsx(Typography, {
2741
+ children: [/*#__PURE__*/jsx(Typography, {
2460
2742
  variant: "overline",
2461
2743
  children: t('notification-start')
2462
- }), jsx(Typography, {
2744
+ }), /*#__PURE__*/jsx(Typography, {
2463
2745
  "data-testid": "lifecycle-column-eventstart",
2464
2746
  children: eventStartFormat
2465
2747
  })]
2466
- }), !!eventEndFormat && jsxs(Grid, {
2748
+ }), !!eventEndFormat && /*#__PURE__*/jsxs(Grid, {
2467
2749
  size: 5,
2468
- children: [jsx(Typography, {
2750
+ children: [/*#__PURE__*/jsx(Typography, {
2469
2751
  variant: "overline",
2470
2752
  children: t('notification-end')
2471
- }), jsx(Typography, {
2753
+ }), /*#__PURE__*/jsx(Typography, {
2472
2754
  "data-testid": "lifecycle-column-eventend",
2473
2755
  children: eventEndFormat
2474
2756
  })]
2475
2757
  })]
2476
2758
  })
2477
- }), jsxs(Grid, {
2759
+ }), /*#__PURE__*/jsxs(Grid, {
2478
2760
  size: 12,
2479
- children: [type === 'external' && !!notification.message && jsxs(Fragment, {
2480
- children: [jsx(Typography, {
2761
+ children: [type === 'external' && !!notification.message && /*#__PURE__*/jsxs(Fragment, {
2762
+ children: [/*#__PURE__*/jsx(Typography, {
2481
2763
  sx: styles$2.messageHeader,
2482
2764
  variant: "body2",
2483
2765
  children: t('notification-potential-impact')
2484
- }), jsx(Typography, {
2766
+ }), /*#__PURE__*/jsx(Typography, {
2485
2767
  "data-testid": "lifecycle-column-message-impact",
2486
2768
  sx: {
2487
2769
  mb: 2
@@ -2489,13 +2771,13 @@ var LifeCycleColumn = function LifeCycleColumn(_ref) {
2489
2771
  variant: "body2",
2490
2772
  children: notification.message
2491
2773
  })]
2492
- }), type === 'internal' && jsxs(Fragment, {
2493
- children: [!!notification.title && jsx(Typography, {
2774
+ }), type === 'internal' && /*#__PURE__*/jsxs(Fragment, {
2775
+ children: [!!notification.title && /*#__PURE__*/jsx(Typography, {
2494
2776
  "data-testid": "lifecycle-column-title",
2495
2777
  sx: styles$2.messageHeader,
2496
2778
  variant: "body2",
2497
2779
  children: notification.title
2498
- }), jsx(Typography, {
2780
+ }), /*#__PURE__*/jsx(Typography, {
2499
2781
  "data-testid": "lifecycle-column-message",
2500
2782
  variant: "body2",
2501
2783
  children: notification.message
@@ -2508,6 +2790,23 @@ var LifeCycleColumn = function LifeCycleColumn(_ref) {
2508
2790
  });
2509
2791
  };
2510
2792
 
2793
+ /* *
2794
+ * Licensed under the Apache License, Version 2.0 (the "License");
2795
+ * you may not use this file except in compliance with the License.
2796
+ * You may obtain a copy of the License at
2797
+ *
2798
+ * http://www.apache.org/licenses/LICENSE-2.0
2799
+ *
2800
+ * Unless required by applicable law or agreed to in writing, software
2801
+ * distributed under the License is distributed on an "AS IS" BASIS,
2802
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2803
+ * See the License for the specific language governing permissions and
2804
+ * limitations under the License.
2805
+ *
2806
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2807
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2808
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2809
+ * */
2511
2810
  var FormWrapper = function FormWrapper(_ref) {
2512
2811
  var baseNotificationData = _ref.baseNotificationData,
2513
2812
  baseNotificationType = _ref.baseNotificationType,
@@ -2518,7 +2817,7 @@ var FormWrapper = function FormWrapper(_ref) {
2518
2817
  reValidateMode: 'onChange',
2519
2818
  criteriaMode: 'all'
2520
2819
  };
2521
- return jsx(ReactHookFormProvider, {
2820
+ return /*#__PURE__*/jsx(ReactHookFormProvider, {
2522
2821
  options: formOptions,
2523
2822
  children: children
2524
2823
  });
@@ -2541,6 +2840,7 @@ var FormWrapper = function FormWrapper(_ref) {
2541
2840
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
2542
2841
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2543
2842
  * */
2843
+
2544
2844
  var styles$1 = {
2545
2845
  inputField: {
2546
2846
  width: 200,
@@ -2557,6 +2857,24 @@ var styles$1 = {
2557
2857
  }
2558
2858
  };
2559
2859
 
2860
+ /* *
2861
+ * Licensed under the Apache License, Version 2.0 (the "License");
2862
+ * you may not use this file except in compliance with the License.
2863
+ * You may obtain a copy of the License at
2864
+ *
2865
+ * http://www.apache.org/licenses/LICENSE-2.0
2866
+ *
2867
+ * Unless required by applicable law or agreed to in writing, software
2868
+ * distributed under the License is distributed on an "AS IS" BASIS,
2869
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2870
+ * See the License for the specific language governing permissions and
2871
+ * limitations under the License.
2872
+ *
2873
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2874
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2875
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2876
+ * */
2877
+
2560
2878
  var isCategoryDetailRequired = function isCategoryDetailRequired(t, value, category) {
2561
2879
  if (category !== 'XRAY_RADIO_BLACKOUT' && !value) {
2562
2880
  return t(errorMessages.required, {
@@ -2584,6 +2902,24 @@ var isInPastOrFutureAllowed = function isInPastOrFutureAllowed(t, ownDate, isFut
2584
2902
  return dateUtils.isAfter(dateUtils.utc(), date) || t('notification-date-in-past');
2585
2903
  };
2586
2904
 
2905
+ /* *
2906
+ * Licensed under the Apache License, Version 2.0 (the "License");
2907
+ * you may not use this file except in compliance with the License.
2908
+ * You may obtain a copy of the License at
2909
+ *
2910
+ * http://www.apache.org/licenses/LICENSE-2.0
2911
+ *
2912
+ * Unless required by applicable law or agreed to in writing, software
2913
+ * distributed under the License is distributed on an "AS IS" BASIS,
2914
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2915
+ * See the License for the specific language governing permissions and
2916
+ * limitations under the License.
2917
+ *
2918
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2919
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
2920
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
2921
+ * */
2922
+
2587
2923
  var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2588
2924
  var statusTagText = _ref.statusTagText,
2589
2925
  setStatusTagText = _ref.setStatusTagText;
@@ -2595,13 +2931,13 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2595
2931
  trigger = _useFormContext.trigger;
2596
2932
  var category = watch('category');
2597
2933
  var categorydetail = watch('categorydetail');
2598
- return jsxs(Fragment, {
2599
- children: [jsxs(Grid, {
2934
+ return /*#__PURE__*/jsxs(Fragment, {
2935
+ children: [/*#__PURE__*/jsxs(Grid, {
2600
2936
  container: true,
2601
2937
  size: 12,
2602
- children: [jsx(Grid, {
2938
+ children: [/*#__PURE__*/jsx(Grid, {
2603
2939
  size: 5,
2604
- children: jsx(ReactHookFormSelect, {
2940
+ children: /*#__PURE__*/jsx(ReactHookFormSelect, {
2605
2941
  inputProps: {
2606
2942
  SelectDisplayProps: {
2607
2943
  'data-testid': 'category-select'
@@ -2625,15 +2961,15 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2625
2961
  },
2626
2962
  sx: styles$1.inputField,
2627
2963
  children: Object.keys(EventCategory).map(function (key) {
2628
- return jsx(MenuItem, {
2964
+ return /*#__PURE__*/jsx(MenuItem, {
2629
2965
  value: key,
2630
2966
  children: EventCategory[key]
2631
2967
  }, key);
2632
2968
  })
2633
2969
  })
2634
- }), jsx(Grid, {
2970
+ }), /*#__PURE__*/jsx(Grid, {
2635
2971
  size: 5,
2636
- children: jsx(ReactHookFormSelect, {
2972
+ children: /*#__PURE__*/jsx(ReactHookFormSelect, {
2637
2973
  disabled: category === 'XRAY_RADIO_BLACKOUT',
2638
2974
  inputProps: {
2639
2975
  SelectDisplayProps: {
@@ -2658,16 +2994,16 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2658
2994
  },
2659
2995
  sx: category !== 'XRAY_RADIO_BLACKOUT' ? styles$1.inputField : styles$1.hide,
2660
2996
  children: EventCategoryDetails[category].map(function (detail) {
2661
- return jsx(MenuItem, {
2997
+ return /*#__PURE__*/jsx(MenuItem, {
2662
2998
  value: detail,
2663
2999
  children: EventCategoryDetail[detail]
2664
3000
  }, detail);
2665
3001
  })
2666
3002
  })
2667
- }), jsx(Grid, {
3003
+ }), /*#__PURE__*/jsx(Grid, {
2668
3004
  "data-testid": "notification-tag",
2669
3005
  size: 2,
2670
- children: jsx(StatusTag, {
3006
+ children: /*#__PURE__*/jsx(StatusTag, {
2671
3007
  color: getStatusTagColorFromContent(statusTagText),
2672
3008
  content: statusTagText,
2673
3009
  sx: {
@@ -2675,12 +3011,12 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2675
3011
  }
2676
3012
  })
2677
3013
  })]
2678
- }), jsx(Grid, {
3014
+ }), /*#__PURE__*/jsx(Grid, {
2679
3015
  container: true,
2680
3016
  size: 12,
2681
- children: jsx(Grid, {
3017
+ children: /*#__PURE__*/jsx(Grid, {
2682
3018
  size: 5,
2683
- children: jsx(ReactHookFormSelect, {
3019
+ children: /*#__PURE__*/jsx(ReactHookFormSelect, {
2684
3020
  inputProps: {
2685
3021
  SelectDisplayProps: {
2686
3022
  'data-testid': 'label-select'
@@ -2697,7 +3033,7 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2697
3033
  },
2698
3034
  sx: styles$1.inputField,
2699
3035
  children: EventLabels[categorydetail].map(function (label) {
2700
- return jsx(MenuItem, {
3036
+ return /*#__PURE__*/jsx(MenuItem, {
2701
3037
  value: label,
2702
3038
  children: categorydetail === 'GEOMAGNETIC_STORM' ? 'Watch' : NotificationLabel[label]
2703
3039
  }, label);
@@ -2708,15 +3044,32 @@ var CategoryLabelStatusTag = function CategoryLabelStatusTag(_ref) {
2708
3044
  });
2709
3045
  };
2710
3046
 
3047
+ /* *
3048
+ * Licensed under the Apache License, Version 2.0 (the "License");
3049
+ * you may not use this file except in compliance with the License.
3050
+ * You may obtain a copy of the License at
3051
+ *
3052
+ * http://www.apache.org/licenses/LICENSE-2.0
3053
+ *
3054
+ * Unless required by applicable law or agreed to in writing, software
3055
+ * distributed under the License is distributed on an "AS IS" BASIS,
3056
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3057
+ * See the License for the specific language governing permissions and
3058
+ * limitations under the License.
3059
+ *
3060
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3061
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3062
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3063
+ * */
2711
3064
  var PeakFlux = function PeakFlux() {
2712
3065
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
2713
3066
  t = _useSpaceweatherTrans.t;
2714
- return jsxs(Grid, {
3067
+ return /*#__PURE__*/jsxs(Grid, {
2715
3068
  container: true,
2716
3069
  size: 12,
2717
- children: [jsx(Grid, {
3070
+ children: [/*#__PURE__*/jsx(Grid, {
2718
3071
  size: 5,
2719
- children: jsx(ReactHookFormNumberField, {
3072
+ children: /*#__PURE__*/jsx(ReactHookFormNumberField, {
2720
3073
  inputMode: "decimal",
2721
3074
  label: t('notification-peak-flux'),
2722
3075
  name: "peakflux",
@@ -2734,9 +3087,9 @@ var PeakFlux = function PeakFlux() {
2734
3087
  },
2735
3088
  sx: styles$1.inputField
2736
3089
  })
2737
- }), jsx(Grid, {
3090
+ }), /*#__PURE__*/jsx(Grid, {
2738
3091
  size: 5,
2739
- children: jsx(ReactHookFormDateTime, {
3092
+ children: /*#__PURE__*/jsx(ReactHookFormDateTime, {
2740
3093
  "data-testid": "peakfluxtime-picker",
2741
3094
  disableFuture: true,
2742
3095
  label: t('notification-peak-flux-time'),
@@ -2760,6 +3113,23 @@ var PeakFlux = function PeakFlux() {
2760
3113
  });
2761
3114
  };
2762
3115
 
3116
+ /* *
3117
+ * Licensed under the Apache License, Version 2.0 (the "License");
3118
+ * you may not use this file except in compliance with the License.
3119
+ * You may obtain a copy of the License at
3120
+ *
3121
+ * http://www.apache.org/licenses/LICENSE-2.0
3122
+ *
3123
+ * Unless required by applicable law or agreed to in writing, software
3124
+ * distributed under the License is distributed on an "AS IS" BASIS,
3125
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3126
+ * See the License for the specific language governing permissions and
3127
+ * limitations under the License.
3128
+ *
3129
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3130
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
3131
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3132
+ * */
2763
3133
  var _isInFuture = function isInFuture(t, ownDate, isAllowed) {
2764
3134
  var own = dateUtils.getUtcFromString(ownDate);
2765
3135
  if (!own || isAllowed) {
@@ -2794,13 +3164,13 @@ var StartTimeEndTime = function StartTimeEndTime(_ref) {
2794
3164
  getValues = _useFormContext.getValues;
2795
3165
  var label = watch('label');
2796
3166
  var allowEndDateInPast = actionMode === 'Summarise' || actionMode === 'Cancel';
2797
- return jsxs(Grid, {
3167
+ return /*#__PURE__*/jsxs(Grid, {
2798
3168
  "align-items": "flex-start",
2799
3169
  container: true,
2800
3170
  size: 12,
2801
- children: [jsx(Grid, {
3171
+ children: [/*#__PURE__*/jsx(Grid, {
2802
3172
  size: 5,
2803
- children: jsx(ReactHookFormDateTime, {
3173
+ children: /*#__PURE__*/jsx(ReactHookFormDateTime, {
2804
3174
  "data-testid": "start-date-picker",
2805
3175
  label: t('notification-start-time'),
2806
3176
  name: "neweventstart",
@@ -2822,9 +3192,9 @@ var StartTimeEndTime = function StartTimeEndTime(_ref) {
2822
3192
  shouldHideUTC: true,
2823
3193
  sx: styles$1.inputField
2824
3194
  })
2825
- }), jsx(Grid, {
3195
+ }), /*#__PURE__*/jsx(Grid, {
2826
3196
  size: 5,
2827
- children: (actionMode === 'Summarise' || label === 'WARNING') && jsx(ReactHookFormDateTime, {
3197
+ children: (actionMode === 'Summarise' || label === 'WARNING') && /*#__PURE__*/jsx(ReactHookFormDateTime, {
2828
3198
  "data-testid": "end-date-picker",
2829
3199
  disablePast: !allowEndDateInPast,
2830
3200
  label: t('notification-end-time'),
@@ -2853,6 +3223,24 @@ var StartTimeEndTime = function StartTimeEndTime(_ref) {
2853
3223
  });
2854
3224
  };
2855
3225
 
3226
+ /* *
3227
+ * Licensed under the Apache License, Version 2.0 (the "License");
3228
+ * you may not use this file except in compliance with the License.
3229
+ * You may obtain a copy of the License at
3230
+ *
3231
+ * http://www.apache.org/licenses/LICENSE-2.0
3232
+ *
3233
+ * Unless required by applicable law or agreed to in writing, software
3234
+ * distributed under the License is distributed on an "AS IS" BASIS,
3235
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3236
+ * See the License for the specific language governing permissions and
3237
+ * limitations under the License.
3238
+ *
3239
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3240
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3241
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3242
+ * */
3243
+
2856
3244
  var _isValidPeakClass = function isValidPeakClass(t, value) {
2857
3245
  var regexPeakClass = /^[MX]\d+\.\d$/;
2858
3246
  return regexPeakClass.test(value) ? true : t('notification-peak-class-error');
@@ -2865,12 +3253,12 @@ var XrayClassPeakClass = function XrayClassPeakClass(_ref) {
2865
3253
  watch = _useFormContext.watch,
2866
3254
  setValue = _useFormContext.setValue;
2867
3255
  var category = watch('category');
2868
- return jsxs(Grid, {
3256
+ return /*#__PURE__*/jsxs(Grid, {
2869
3257
  container: true,
2870
3258
  size: 12,
2871
- children: [jsx(Grid, {
3259
+ children: [/*#__PURE__*/jsx(Grid, {
2872
3260
  size: 5,
2873
- children: jsx(ReactHookFormSelect, {
3261
+ children: /*#__PURE__*/jsx(ReactHookFormSelect, {
2874
3262
  inputProps: {
2875
3263
  SelectDisplayProps: {
2876
3264
  'data-testid': 'xrayclass-select'
@@ -2894,15 +3282,15 @@ var XrayClassPeakClass = function XrayClassPeakClass(_ref) {
2894
3282
  },
2895
3283
  sx: styles$1.inputField,
2896
3284
  children: Object.keys(XrayClasses).map(function (key) {
2897
- return jsx(MenuItem, {
3285
+ return /*#__PURE__*/jsx(MenuItem, {
2898
3286
  value: XrayClasses[parseInt(key, 10)],
2899
3287
  children: XrayClasses[parseInt(key, 10)]
2900
3288
  }, key);
2901
3289
  })
2902
3290
  })
2903
- }), actionMode === 'Summarise' && jsx(Grid, {
3291
+ }), actionMode === 'Summarise' && /*#__PURE__*/jsx(Grid, {
2904
3292
  size: 5,
2905
- children: jsx(ReactHookFormTextField, {
3293
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
2906
3294
  label: t('notification-peak-class'),
2907
3295
  name: "peakclass",
2908
3296
  rules: {
@@ -2925,6 +3313,24 @@ var XrayClassPeakClass = function XrayClassPeakClass(_ref) {
2925
3313
  });
2926
3314
  };
2927
3315
 
3316
+ /* *
3317
+ * Licensed under the Apache License, Version 2.0 (the "License");
3318
+ * you may not use this file except in compliance with the License.
3319
+ * You may obtain a copy of the License at
3320
+ *
3321
+ * http://www.apache.org/licenses/LICENSE-2.0
3322
+ *
3323
+ * Unless required by applicable law or agreed to in writing, software
3324
+ * distributed under the License is distributed on an "AS IS" BASIS,
3325
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3326
+ * See the License for the specific language governing permissions and
3327
+ * limitations under the License.
3328
+ *
3329
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3330
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3331
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3332
+ * */
3333
+
2928
3334
  var Threshold = function Threshold(_ref) {
2929
3335
  var hasEventLevel = _ref.hasEventLevel,
2930
3336
  hasThresholdUnit = _ref.hasThresholdUnit;
@@ -2941,12 +3347,12 @@ var Threshold = function Threshold(_ref) {
2941
3347
  setValue('thresholdunit', unit);
2942
3348
  }
2943
3349
  }, [category, categorydetail, setValue, hasThresholdUnit]);
2944
- return jsxs(Grid, {
3350
+ return /*#__PURE__*/jsxs(Grid, {
2945
3351
  container: true,
2946
3352
  size: 12,
2947
- children: [jsx(Grid, {
3353
+ children: [/*#__PURE__*/jsx(Grid, {
2948
3354
  size: 5,
2949
- children: category === 'XRAY_RADIO_BLACKOUT' || category === 'PROTON_FLUX' || categorydetail === 'KP_INDEX' ? jsx(ReactHookFormSelect, {
3355
+ children: category === 'XRAY_RADIO_BLACKOUT' || category === 'PROTON_FLUX' || categorydetail === 'KP_INDEX' ? /*#__PURE__*/jsx(ReactHookFormSelect, {
2950
3356
  inputProps: {
2951
3357
  SelectDisplayProps: {
2952
3358
  'data-testid': 'threshold-select'
@@ -2974,12 +3380,12 @@ var Threshold = function Threshold(_ref) {
2974
3380
  },
2975
3381
  sx: styles$1.inputField,
2976
3382
  children: ThresholdValues[category].map(function (value) {
2977
- return jsx(MenuItem, {
3383
+ return /*#__PURE__*/jsx(MenuItem, {
2978
3384
  value: value,
2979
3385
  children: value
2980
3386
  }, value);
2981
3387
  })
2982
- }) : jsx(ReactHookFormNumberField, {
3388
+ }) : /*#__PURE__*/jsx(ReactHookFormNumberField, {
2983
3389
  inputMode: "decimal",
2984
3390
  label: t('notification-threshold'),
2985
3391
  name: "threshold",
@@ -2993,9 +3399,9 @@ var Threshold = function Threshold(_ref) {
2993
3399
  },
2994
3400
  sx: styles$1.inputField
2995
3401
  })
2996
- }), category !== 'GEOMAGNETIC' && jsx(Grid, {
3402
+ }), category !== 'GEOMAGNETIC' && /*#__PURE__*/jsx(Grid, {
2997
3403
  size: 5,
2998
- children: jsx(ReactHookFormTextField, {
3404
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
2999
3405
  disabled: true,
3000
3406
  label: t('notification-threshold-unit'),
3001
3407
  name: "thresholdunit",
@@ -3013,8 +3419,26 @@ var Threshold = function Threshold(_ref) {
3013
3419
  });
3014
3420
  };
3015
3421
 
3422
+ /* *
3423
+ * Licensed under the Apache License, Version 2.0 (the "License");
3424
+ * you may not use this file except in compliance with the License.
3425
+ * You may obtain a copy of the License at
3426
+ *
3427
+ * http://www.apache.org/licenses/LICENSE-2.0
3428
+ *
3429
+ * Unless required by applicable law or agreed to in writing, software
3430
+ * distributed under the License is distributed on an "AS IS" BASIS,
3431
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3432
+ * See the License for the specific language governing permissions and
3433
+ * limitations under the License.
3434
+ *
3435
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3436
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3437
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3438
+ * */
3439
+
3016
3440
  var EventLevel = function EventLevel() {
3017
- var _EventLevels$category;
3441
+ var _EventLevels;
3018
3442
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
3019
3443
  t = _useSpaceweatherTrans.t;
3020
3444
  var _useFormContext = useFormContext(),
@@ -3022,12 +3446,12 @@ var EventLevel = function EventLevel() {
3022
3446
  setValue = _useFormContext.setValue;
3023
3447
  var category = watch('category');
3024
3448
  var categorydetail = watch('categorydetail');
3025
- return jsx(Grid, {
3449
+ return /*#__PURE__*/jsx(Grid, {
3026
3450
  container: true,
3027
3451
  size: 12,
3028
- children: jsx(Grid, {
3452
+ children: /*#__PURE__*/jsx(Grid, {
3029
3453
  size: 5,
3030
- children: jsx(ReactHookFormSelect, {
3454
+ children: /*#__PURE__*/jsx(ReactHookFormSelect, {
3031
3455
  inputProps: {
3032
3456
  SelectDisplayProps: {
3033
3457
  'data-testid': 'eventlevel-select'
@@ -3054,8 +3478,8 @@ var EventLevel = function EventLevel() {
3054
3478
  required: true
3055
3479
  },
3056
3480
  sx: styles$1.inputField,
3057
- children: (_EventLevels$category = EventLevels[category]) == null ? void 0 : _EventLevels$category.map(function (eventlevel) {
3058
- return jsx(MenuItem, {
3481
+ children: (_EventLevels = EventLevels[category]) == null ? void 0 : _EventLevels.map(function (eventlevel) {
3482
+ return /*#__PURE__*/jsx(MenuItem, {
3059
3483
  value: eventlevel,
3060
3484
  children: eventlevel
3061
3485
  }, eventlevel);
@@ -3065,18 +3489,35 @@ var EventLevel = function EventLevel() {
3065
3489
  });
3066
3490
  };
3067
3491
 
3492
+ /* *
3493
+ * Licensed under the Apache License, Version 2.0 (the "License");
3494
+ * you may not use this file except in compliance with the License.
3495
+ * You may obtain a copy of the License at
3496
+ *
3497
+ * http://www.apache.org/licenses/LICENSE-2.0
3498
+ *
3499
+ * Unless required by applicable law or agreed to in writing, software
3500
+ * distributed under the License is distributed on an "AS IS" BASIS,
3501
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3502
+ * See the License for the specific language governing permissions and
3503
+ * limitations under the License.
3504
+ *
3505
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3506
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3507
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3508
+ * */
3068
3509
  var SuddenImpulse = function SuddenImpulse() {
3069
3510
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
3070
3511
  t = _useSpaceweatherTrans.t;
3071
3512
  var _useFormContext = useFormContext(),
3072
3513
  watch = _useFormContext.watch;
3073
3514
  var label = watch('label');
3074
- return label === 'ALERT' ? jsxs(Grid, {
3515
+ return label === 'ALERT' ? /*#__PURE__*/jsxs(Grid, {
3075
3516
  container: true,
3076
3517
  size: 12,
3077
- children: [jsx(Grid, {
3518
+ children: [/*#__PURE__*/jsx(Grid, {
3078
3519
  size: 5,
3079
- children: jsx(ReactHookFormDateTime, {
3520
+ children: /*#__PURE__*/jsx(ReactHookFormDateTime, {
3080
3521
  "data-testid": "impulsetime-picker",
3081
3522
  disableFuture: true,
3082
3523
  label: t('notification-impulse-time'),
@@ -3096,9 +3537,9 @@ var SuddenImpulse = function SuddenImpulse() {
3096
3537
  shouldHideUTC: true,
3097
3538
  sx: styles$1.inputField
3098
3539
  })
3099
- }), jsx(Grid, {
3540
+ }), /*#__PURE__*/jsx(Grid, {
3100
3541
  size: 5,
3101
- children: jsx(ReactHookFormNumberField, {
3542
+ children: /*#__PURE__*/jsx(ReactHookFormNumberField, {
3102
3543
  inputMode: "decimal",
3103
3544
  label: t('notification-magnetometer'),
3104
3545
  name: "magnetometerdeflection",
@@ -3113,12 +3554,12 @@ var SuddenImpulse = function SuddenImpulse() {
3113
3554
  sx: styles$1.inputField
3114
3555
  })
3115
3556
  })]
3116
- }) : jsxs(Fragment, {
3117
- children: [jsx(Grid, {
3557
+ }) : /*#__PURE__*/jsxs(Fragment, {
3558
+ children: [/*#__PURE__*/jsx(Grid, {
3118
3559
  container: true,
3119
- children: jsx(Grid, {
3560
+ children: /*#__PURE__*/jsx(Grid, {
3120
3561
  size: 11,
3121
- children: jsx(ReactHookFormDateTime, {
3562
+ children: /*#__PURE__*/jsx(ReactHookFormDateTime, {
3122
3563
  "data-testid": "shocktime-picker",
3123
3564
  disableFuture: true,
3124
3565
  label: t('notification-shock-time'),
@@ -3139,11 +3580,11 @@ var SuddenImpulse = function SuddenImpulse() {
3139
3580
  sx: styles$1.inputField
3140
3581
  })
3141
3582
  })
3142
- }), jsxs(Grid, {
3583
+ }), /*#__PURE__*/jsxs(Grid, {
3143
3584
  container: true,
3144
- children: [jsx(Grid, {
3585
+ children: [/*#__PURE__*/jsx(Grid, {
3145
3586
  size: 5,
3146
- children: jsx(ReactHookFormNumberField, {
3587
+ children: /*#__PURE__*/jsx(ReactHookFormNumberField, {
3147
3588
  inputMode: "decimal",
3148
3589
  label: t('notification-polarity'),
3149
3590
  name: "observedpolaritybz",
@@ -3165,9 +3606,9 @@ var SuddenImpulse = function SuddenImpulse() {
3165
3606
  },
3166
3607
  sx: styles$1.inputField
3167
3608
  })
3168
- }), jsx(Grid, {
3609
+ }), /*#__PURE__*/jsx(Grid, {
3169
3610
  size: 6,
3170
- children: jsx(ReactHookFormNumberField, {
3611
+ children: /*#__PURE__*/jsx(ReactHookFormNumberField, {
3171
3612
  inputMode: "decimal",
3172
3613
  label: t('notification-solar-wind'),
3173
3614
  name: "observedsolarwind",
@@ -3194,17 +3635,34 @@ var SuddenImpulse = function SuddenImpulse() {
3194
3635
  });
3195
3636
  };
3196
3637
 
3638
+ /* *
3639
+ * Licensed under the Apache License, Version 2.0 (the "License");
3640
+ * you may not use this file except in compliance with the License.
3641
+ * You may obtain a copy of the License at
3642
+ *
3643
+ * http://www.apache.org/licenses/LICENSE-2.0
3644
+ *
3645
+ * Unless required by applicable law or agreed to in writing, software
3646
+ * distributed under the License is distributed on an "AS IS" BASIS,
3647
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3648
+ * See the License for the specific language governing permissions and
3649
+ * limitations under the License.
3650
+ *
3651
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3652
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3653
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3654
+ * */
3197
3655
  var DataSourceStatustag = function DataSourceStatustag(_ref) {
3198
3656
  var statusTagText = _ref.statusTagText,
3199
3657
  eventTypeDisabled = _ref.eventTypeDisabled;
3200
3658
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
3201
3659
  t = _useSpaceweatherTrans.t;
3202
- return jsxs(Grid, {
3660
+ return /*#__PURE__*/jsxs(Grid, {
3203
3661
  container: true,
3204
3662
  size: 12,
3205
- children: [jsx(Grid, {
3663
+ children: [/*#__PURE__*/jsx(Grid, {
3206
3664
  size: 10,
3207
- children: jsx(ReactHookFormTextField, {
3665
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
3208
3666
  label: t('notification-source'),
3209
3667
  name: "datasource",
3210
3668
  rules: {
@@ -3217,10 +3675,10 @@ var DataSourceStatustag = function DataSourceStatustag(_ref) {
3217
3675
  },
3218
3676
  sx: styles$1.inputField
3219
3677
  })
3220
- }), !!eventTypeDisabled && jsx(Grid, {
3678
+ }), !!eventTypeDisabled && /*#__PURE__*/jsx(Grid, {
3221
3679
  "data-testid": "notification-tag",
3222
3680
  size: 2,
3223
- children: jsx(StatusTag, {
3681
+ children: /*#__PURE__*/jsx(StatusTag, {
3224
3682
  color: getStatusTagColorFromContent(statusTagText),
3225
3683
  content: statusTagText,
3226
3684
  sx: {
@@ -3231,6 +3689,23 @@ var DataSourceStatustag = function DataSourceStatustag(_ref) {
3231
3689
  });
3232
3690
  };
3233
3691
 
3692
+ /* *
3693
+ * Licensed under the Apache License, Version 2.0 (the "License");
3694
+ * you may not use this file except in compliance with the License.
3695
+ * You may obtain a copy of the License at
3696
+ *
3697
+ * http://www.apache.org/licenses/LICENSE-2.0
3698
+ *
3699
+ * Unless required by applicable law or agreed to in writing, software
3700
+ * distributed under the License is distributed on an "AS IS" BASIS,
3701
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3702
+ * See the License for the specific language governing permissions and
3703
+ * limitations under the License.
3704
+ *
3705
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3706
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3707
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3708
+ * */
3234
3709
  var GScaleStatusTag = function GScaleStatusTag(_ref) {
3235
3710
  var statusTagText = _ref.statusTagText,
3236
3711
  actionMode = _ref.actionMode,
@@ -3241,12 +3716,12 @@ var GScaleStatusTag = function GScaleStatusTag(_ref) {
3241
3716
  watch = _useFormContext.watch;
3242
3717
  var label = watch('label');
3243
3718
  var categorydetail = watch('categorydetail');
3244
- return jsxs(Grid, {
3719
+ return /*#__PURE__*/jsxs(Grid, {
3245
3720
  container: true,
3246
3721
  size: 12,
3247
- children: [jsx(Grid, {
3722
+ children: [/*#__PURE__*/jsx(Grid, {
3248
3723
  size: 10,
3249
- children: jsx(ReactHookFormTextField, {
3724
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
3250
3725
  label: t('notification-g-scale'),
3251
3726
  name: "initialgscale",
3252
3727
  rules: {
@@ -3259,10 +3734,10 @@ var GScaleStatusTag = function GScaleStatusTag(_ref) {
3259
3734
  },
3260
3735
  sx: styles$1.inputField
3261
3736
  })
3262
- }), !!eventTypeDisabled && jsx(Grid, {
3737
+ }), !!eventTypeDisabled && /*#__PURE__*/jsx(Grid, {
3263
3738
  "data-testid": "notification-tag",
3264
3739
  size: 2,
3265
- children: jsx(StatusTag, {
3740
+ children: /*#__PURE__*/jsx(StatusTag, {
3266
3741
  color: getStatusTagColorFromContent(statusTagText),
3267
3742
  content: getNewInternalStatusTagContent(actionMode, label, categorydetail),
3268
3743
  sx: {
@@ -3273,6 +3748,23 @@ var GScaleStatusTag = function GScaleStatusTag(_ref) {
3273
3748
  });
3274
3749
  };
3275
3750
 
3751
+ /* *
3752
+ * Licensed under the Apache License, Version 2.0 (the "License");
3753
+ * you may not use this file except in compliance with the License.
3754
+ * You may obtain a copy of the License at
3755
+ *
3756
+ * http://www.apache.org/licenses/LICENSE-2.0
3757
+ *
3758
+ * Unless required by applicable law or agreed to in writing, software
3759
+ * distributed under the License is distributed on an "AS IS" BASIS,
3760
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3761
+ * See the License for the specific language governing permissions and
3762
+ * limitations under the License.
3763
+ *
3764
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3765
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
3766
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
3767
+ * */
3276
3768
  var useConditionalFields = function useConditionalFields(actionMode) {
3277
3769
  var _useFormContext = useFormContext(),
3278
3770
  watch = _useFormContext.watch,
@@ -3280,6 +3772,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3280
3772
  var category = watch('category');
3281
3773
  var categorydetail = watch('categorydetail');
3282
3774
  var label = watch('label');
3775
+
3283
3776
  // GScale
3284
3777
  var hasGScale = categorydetail === 'GEOMAGNETIC_STORM';
3285
3778
  React.useEffect(function () {
@@ -3287,6 +3780,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3287
3780
  unregister(['initialgscale']);
3288
3781
  }
3289
3782
  }, [hasGScale, unregister]);
3783
+
3290
3784
  // DataSource
3291
3785
  var hasDataSource = categorydetail !== 'GEOMAGNETIC_STORM';
3292
3786
  React.useEffect(function () {
@@ -3294,6 +3788,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3294
3788
  unregister(['datasource']);
3295
3789
  }
3296
3790
  }, [hasDataSource, unregister]);
3791
+
3297
3792
  // SuddenImpulse
3298
3793
  var hasSuddenImpulse = categorydetail === 'GEOMAGNETIC_SUDDEN_IMPULSE';
3299
3794
  var isAlert = label === 'ALERT';
@@ -3305,6 +3800,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3305
3800
  unregister(['shocktime', 'observedpolaritybz', 'observedsolarwind']);
3306
3801
  }
3307
3802
  }, [hasSuddenImpulse, isAlert, unregister]);
3803
+
3308
3804
  // EventLevel
3309
3805
  var hasEventLevel = categorydetail !== 'GEOMAGNETIC_STORM' && categorydetail !== 'GEOMAGNETIC_SUDDEN_IMPULSE' && categorydetail !== 'PROTON_FLUX_100' && category !== 'ELECTRON_FLUX';
3310
3806
  React.useEffect(function () {
@@ -3312,6 +3808,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3312
3808
  unregister(['neweventlevel']);
3313
3809
  }
3314
3810
  }, [hasEventLevel, unregister]);
3811
+
3315
3812
  // Threshold
3316
3813
  var hasThreshold = categorydetail !== 'GEOMAGNETIC_STORM' && categorydetail !== 'GEOMAGNETIC_SUDDEN_IMPULSE';
3317
3814
  var hasThresholdUnit = hasThreshold && category !== 'GEOMAGNETIC';
@@ -3323,6 +3820,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3323
3820
  unregister(['thresholdunit']);
3324
3821
  }
3325
3822
  }, [hasThreshold, hasThresholdUnit, unregister]);
3823
+
3326
3824
  // XrayClassPeakClass
3327
3825
  var hasXrayClassPeakClass = category === 'XRAY_RADIO_BLACKOUT';
3328
3826
  var hasPeakClass = hasXrayClassPeakClass && actionMode === 'Summarise';
@@ -3334,6 +3832,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3334
3832
  unregister(['peakclass']);
3335
3833
  }
3336
3834
  }, [hasXrayClassPeakClass, hasPeakClass, unregister]);
3835
+
3337
3836
  // PeakFlux
3338
3837
  var hasPeakFlux = actionMode === 'Summarise';
3339
3838
  React.useEffect(function () {
@@ -3341,6 +3840,7 @@ var useConditionalFields = function useConditionalFields(actionMode) {
3341
3840
  unregister(['peakflux', 'peakfluxtime']);
3342
3841
  }
3343
3842
  }, [hasPeakFlux, unregister]);
3843
+
3344
3844
  // EventEnd
3345
3845
  var hasEventEnd = actionMode === 'Summarise' || label === 'WARNING';
3346
3846
  React.useEffect(function () {
@@ -3377,43 +3877,42 @@ var LifeCycleEditOptions = function LifeCycleEditOptions(_ref) {
3377
3877
  hasThresholdUnit = _useConditionalFields.hasThresholdUnit,
3378
3878
  hasXrayClassPeakClass = _useConditionalFields.hasXrayClassPeakClass,
3379
3879
  hasPeakFlux = _useConditionalFields.hasPeakFlux;
3380
- return jsxs(Grid, {
3880
+ return /*#__PURE__*/jsxs(Grid, {
3381
3881
  alignItems: "center",
3382
3882
  container: true,
3383
- children: [eventTypeDisabled ? jsxs(Fragment, {
3384
- children: [jsx(ReactHookFormHiddenInput, {
3883
+ children: [eventTypeDisabled ? /*#__PURE__*/jsxs(Fragment, {
3884
+ children: [/*#__PURE__*/jsx(ReactHookFormHiddenInput, {
3385
3885
  "data-testid": "category",
3386
3886
  name: "category"
3387
- }), jsx(ReactHookFormHiddenInput, {
3887
+ }), /*#__PURE__*/jsx(ReactHookFormHiddenInput, {
3388
3888
  "data-testid": "categorydetail",
3389
3889
  name: "categorydetail"
3390
- }), jsx(ReactHookFormHiddenInput, {
3890
+ }), /*#__PURE__*/jsx(ReactHookFormHiddenInput, {
3391
3891
  "data-testid": "label",
3392
3892
  name: "label"
3393
3893
  })]
3394
- }) : jsx(CategoryLabelStatusTag, {
3894
+ }) : /*#__PURE__*/jsx(CategoryLabelStatusTag, {
3395
3895
  setStatusTagText: setStatusTagText,
3396
3896
  statusTagText: statusTagText
3397
- }), !!hasGScale && jsx(GScaleStatusTag, {
3897
+ }), !!hasGScale && /*#__PURE__*/jsx(GScaleStatusTag, {
3398
3898
  actionMode: actionMode,
3399
3899
  eventTypeDisabled: eventTypeDisabled,
3400
3900
  statusTagText: statusTagText
3401
- }), !!hasDataSource && jsx(DataSourceStatustag, {
3901
+ }), !!hasDataSource && /*#__PURE__*/jsx(DataSourceStatustag, {
3402
3902
  eventTypeDisabled: eventTypeDisabled,
3403
3903
  statusTagText: statusTagText
3404
- }), !!hasSuddenImpulse && jsx(SuddenImpulse, {}), !!hasEventLevel && jsx(EventLevel, {}), !!hasThreshold && jsx(Threshold, {
3904
+ }), !!hasSuddenImpulse && /*#__PURE__*/jsx(SuddenImpulse, {}), !!hasEventLevel && /*#__PURE__*/jsx(EventLevel, {}), !!hasThreshold && /*#__PURE__*/jsx(Threshold, {
3405
3905
  hasEventLevel: hasEventLevel,
3406
3906
  hasThresholdUnit: hasThresholdUnit
3407
- }), !!hasXrayClassPeakClass && jsx(XrayClassPeakClass, {
3907
+ }), !!hasXrayClassPeakClass && /*#__PURE__*/jsx(XrayClassPeakClass, {
3408
3908
  actionMode: actionMode
3409
- }), !!hasPeakFlux && jsx(PeakFlux, {}), jsx(StartTimeEndTime, {
3909
+ }), !!hasPeakFlux && /*#__PURE__*/jsx(PeakFlux, {}), /*#__PURE__*/jsx(StartTimeEndTime, {
3410
3910
  actionMode: actionMode
3411
3911
  })]
3412
3912
  });
3413
3913
  };
3414
3914
 
3415
3915
  var _excluded = ["baseNotificationData", "baseNotificationType"];
3416
- // hidden input helpers, should not be part of send formdata
3417
3916
  var HIDDEN_INPUT_HELPER_IS_POPULATE_REQUEST = 'IS_POPULATE_REQUEST';
3418
3917
  var useIsPopulateFormHelpers = function useIsPopulateFormHelpers() {
3419
3918
  var _useFormContext = useFormContext(),
@@ -3427,7 +3926,7 @@ var useIsPopulateFormHelpers = function useIsPopulateFormHelpers() {
3427
3926
  return setValue(HIDDEN_INPUT_HELPER_IS_POPULATE_REQUEST, isPopulate);
3428
3927
  };
3429
3928
  var PopulateFieldHelper = function PopulateFieldHelper() {
3430
- return jsx("input", Object.assign({
3929
+ return /*#__PURE__*/jsx("input", Object.assign({
3431
3930
  defaultValue: "false"
3432
3931
  }, register(HIDDEN_INPUT_HELPER_IS_POPULATE_REQUEST), {
3433
3932
  type: "hidden"
@@ -3565,6 +4064,7 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3565
4064
  };
3566
4065
  }())();
3567
4066
  };
4067
+
3568
4068
  // On first load, try (if there are no validation errors) to immediately retrieve the template
3569
4069
  React.useEffect(function () {
3570
4070
  if (baseNotificationType !== 'draft' && baseNotificationType !== 'new') {
@@ -3572,24 +4072,24 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3572
4072
  }
3573
4073
  // eslint-disable-next-line react-hooks/exhaustive-deps
3574
4074
  }, []);
3575
- return jsxs(Grid, {
4075
+ return /*#__PURE__*/jsxs(Grid, {
3576
4076
  container: true,
3577
4077
  "data-testid": "edit-lifecycle",
3578
4078
  spacing: 1,
3579
- children: [jsx(Grid, {
4079
+ children: [/*#__PURE__*/jsx(Grid, {
3580
4080
  size: 12,
3581
- children: jsx(LifeCycleEditOptions, {
4081
+ children: /*#__PURE__*/jsx(LifeCycleEditOptions, {
3582
4082
  actionMode: actionMode,
3583
4083
  eventTypeDisabled: eventTypeDisabled,
3584
4084
  statusTagContent: statusTagContent
3585
4085
  })
3586
- }), jsxs(Grid, {
4086
+ }), /*#__PURE__*/jsxs(Grid, {
3587
4087
  container: true,
3588
4088
  size: 12,
3589
4089
  spacing: 1,
3590
- children: [jsx(Grid, {
4090
+ children: [/*#__PURE__*/jsx(Grid, {
3591
4091
  size: 9,
3592
- children: jsx(ReactHookFormTextField, {
4092
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
3593
4093
  label: t('notification-event-title'),
3594
4094
  name: "title",
3595
4095
  rules: {
@@ -3606,15 +4106,15 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3606
4106
  },
3607
4107
  sx: styles.inputField
3608
4108
  })
3609
- }), jsx(Grid, {
4109
+ }), /*#__PURE__*/jsx(Grid, {
3610
4110
  size: 3,
3611
- children: jsx(CustomTooltip, {
4111
+ children: /*#__PURE__*/jsx(CustomTooltip, {
3612
4112
  placement: "top",
3613
4113
  style: {
3614
4114
  verticalAlign: 'baseLine'
3615
4115
  },
3616
4116
  title: t('notification-populate-title'),
3617
- children: jsx(Button, {
4117
+ children: /*#__PURE__*/jsx(Button, {
3618
4118
  color: "secondary",
3619
4119
  "data-testid": "notification-repopulate",
3620
4120
  onClick: function onClick() {
@@ -3626,9 +4126,9 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3626
4126
  })
3627
4127
  })
3628
4128
  })]
3629
- }), jsx(Grid, {
4129
+ }), /*#__PURE__*/jsx(Grid, {
3630
4130
  size: 12,
3631
- children: jsx(ReactHookFormTextField, {
4131
+ children: /*#__PURE__*/jsx(ReactHookFormTextField, {
3632
4132
  multiline: true,
3633
4133
  name: "message",
3634
4134
  placeholder: t('notification-event-description'),
@@ -3650,23 +4150,23 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3650
4150
  },
3651
4151
  variant: "outlined"
3652
4152
  })
3653
- }), jsx(PopulateFieldHelper, {}), jsxs(Grid, {
4153
+ }), /*#__PURE__*/jsx(PopulateFieldHelper, {}), /*#__PURE__*/jsxs(Grid, {
3654
4154
  alignItems: "center",
3655
4155
  container: true,
3656
4156
  "data-testid": "new-notification-options",
3657
4157
  justifyContent: "flex-end",
3658
4158
  size: 12,
3659
4159
  spacing: 0,
3660
- children: [jsx(Grid, {
3661
- children: jsx(Button, {
4160
+ children: [/*#__PURE__*/jsx(Grid, {
4161
+ children: /*#__PURE__*/jsx(Button, {
3662
4162
  color: "secondary",
3663
4163
  "data-testid": "discard",
3664
4164
  onClick: handleDiscard,
3665
4165
  sx: styles.optionButton,
3666
4166
  children: t('notification-discard')
3667
4167
  })
3668
- }), jsx(Grid, {
3669
- children: jsx(Button, {
4168
+ }), /*#__PURE__*/jsx(Grid, {
4169
+ children: /*#__PURE__*/jsx(Button, {
3670
4170
  color: "secondary",
3671
4171
  "data-testid": "draft",
3672
4172
  onClick: function onClick() {
@@ -3676,8 +4176,8 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3676
4176
  variant: "outlined",
3677
4177
  children: t('notification-save')
3678
4178
  })
3679
- }), jsx(Grid, {
3680
- children: jsx(Button, {
4179
+ }), /*#__PURE__*/jsx(Grid, {
4180
+ children: /*#__PURE__*/jsx(Button, {
3681
4181
  color: "secondary",
3682
4182
  "data-testid": "issue",
3683
4183
  onClick: function onClick() {
@@ -3688,15 +4188,15 @@ var LifeCycleEditForm = function LifeCycleEditForm(_ref) {
3688
4188
  children: t('notification-issue')
3689
4189
  })
3690
4190
  })]
3691
- }), jsx(Backdrop, {
4191
+ }), /*#__PURE__*/jsx(Backdrop, {
3692
4192
  "data-testid": "loader",
3693
4193
  open: isPendingPostNotfication || isPendingDiscardDraft || isPendingPopulateTemplate,
3694
4194
  sx: styles.backdrop,
3695
- children: jsx(CircularProgress, {
4195
+ children: /*#__PURE__*/jsx(CircularProgress, {
3696
4196
  color: "inherit"
3697
4197
  })
3698
4198
  }), hiddenInputFields.map(function (field) {
3699
- return jsx(ReactHookFormHiddenInput, {
4199
+ return /*#__PURE__*/jsx(ReactHookFormHiddenInput, {
3700
4200
  name: field
3701
4201
  }, field);
3702
4202
  })]
@@ -3706,15 +4206,32 @@ var LifeCycleEdit = function LifeCycleEdit(_ref3) {
3706
4206
  var baseNotificationData = _ref3.baseNotificationData,
3707
4207
  baseNotificationType = _ref3.baseNotificationType,
3708
4208
  otherProps = _objectWithoutPropertiesLoose(_ref3, _excluded);
3709
- return jsx(FormWrapper, {
4209
+ return /*#__PURE__*/jsx(FormWrapper, {
3710
4210
  baseNotificationData: baseNotificationData,
3711
4211
  baseNotificationType: baseNotificationType,
3712
- children: jsx(LifeCycleEditForm, Object.assign({}, otherProps, {
4212
+ children: /*#__PURE__*/jsx(LifeCycleEditForm, Object.assign({}, otherProps, {
3713
4213
  baseNotificationType: baseNotificationType
3714
4214
  }))
3715
4215
  });
3716
4216
  };
3717
4217
 
4218
+ /* *
4219
+ * Licensed under the Apache License, Version 2.0 (the "License");
4220
+ * you may not use this file except in compliance with the License.
4221
+ * You may obtain a copy of the License at
4222
+ *
4223
+ * http://www.apache.org/licenses/LICENSE-2.0
4224
+ *
4225
+ * Unless required by applicable law or agreed to in writing, software
4226
+ * distributed under the License is distributed on an "AS IS" BASIS,
4227
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4228
+ * See the License for the specific language governing permissions and
4229
+ * limitations under the License.
4230
+ *
4231
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4232
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4233
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4234
+ * */
3718
4235
  var getActionModeForDraft = function getActionModeForDraft(actionMode, label, changestateto) {
3719
4236
  if (actionMode !== 'none') {
3720
4237
  return actionMode;
@@ -3730,7 +4247,7 @@ var getActionModeForDraft = function getActionModeForDraft(actionMode, label, ch
3730
4247
  return actionMode;
3731
4248
  };
3732
4249
  var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3733
- var _result$lifecycles, _result$lifecycles2, _result$lifecycles$ex;
4250
+ var _result$lifecycles, _result$lifecycles2, _externalprovider;
3734
4251
  var eventId = _ref.eventId,
3735
4252
  toggleDialogOpen = _ref.toggleDialogOpen,
3736
4253
  onFormChange = _ref.onFormChange,
@@ -3750,34 +4267,34 @@ var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3750
4267
  };
3751
4268
  var draft = (result == null || (_result$lifecycles = result.lifecycles) == null || (_result$lifecycles = _result$lifecycles.internalprovider) == null ? void 0 : _result$lifecycles.draft) === true ? result.lifecycles.internalprovider.notifications[result.lifecycles.internalprovider.notifications.length - 1] : false;
3752
4269
  var isInternalProviderLifeCycle = result == null || (_result$lifecycles2 = result.lifecycles) == null || (_result$lifecycles2 = _result$lifecycles2.internalprovider) == null ? void 0 : _result$lifecycles2.eventid;
3753
- return jsxs(Fragment, {
3754
- children: [!!result && jsxs(Grid, {
4270
+ return /*#__PURE__*/jsxs(Fragment, {
4271
+ children: [!!result && /*#__PURE__*/jsxs(Grid, {
3755
4272
  container: true,
3756
4273
  "data-testid": "display-lifecycle",
3757
- children: [(_result$lifecycles$ex = result.lifecycles.externalprovider) != null && _result$lifecycles$ex.firstissuetime ? jsx(Grid, {
4274
+ children: [(_externalprovider = result.lifecycles.externalprovider) != null && _externalprovider.firstissuetime ? /*#__PURE__*/jsx(Grid, {
3758
4275
  "data-testid": "display-lifecycle-externalcolumn",
3759
4276
  size: 6,
3760
- children: jsx(LifeCycleColumn, {
4277
+ children: /*#__PURE__*/jsx(LifeCycleColumn, {
3761
4278
  categoryDetail: result.categorydetail,
3762
4279
  lifeCycle: result.lifecycles.externalprovider,
3763
4280
  type: "external"
3764
4281
  })
3765
- }) : null, jsxs(Grid, {
4282
+ }) : null, /*#__PURE__*/jsxs(Grid, {
3766
4283
  "data-testid": "display-lifecycle-internalcolumn",
3767
4284
  size: result.lifecycles.externalprovider ? 6 : 12,
3768
- children: [isInternalProviderLifeCycle ? jsx(LifeCycleColumn, {
4285
+ children: [isInternalProviderLifeCycle ? /*#__PURE__*/jsx(LifeCycleColumn, {
3769
4286
  categoryDetail: result.categorydetail,
3770
4287
  lifeCycle: result.lifecycles.internalprovider,
3771
4288
  type: "internal"
3772
- }) : null, jsxs(ListItem, {
4289
+ }) : null, /*#__PURE__*/jsxs(ListItem, {
3773
4290
  children: [
3774
4291
  // internalprovider notification exists already - no action chosen - display buttons
3775
- isInternalProviderLifeCycle && actionMode === 'none' && !draft ? jsx(LifeCycleActions, {
4292
+ isInternalProviderLifeCycle && actionMode === 'none' && !draft ? /*#__PURE__*/jsx(LifeCycleActions, {
3776
4293
  actions: result.lifecycles.internalprovider.canbe,
3777
4294
  onAction: onAction
3778
4295
  }) : null,
3779
4296
  // No internalprovider notification issued yet - incoming externalprovider notification exists - default in data from last external provider notification
3780
- result !== undefined && !draft && !isInternalProviderLifeCycle && actionMode === 'none' && jsx(LifeCycleEdit, {
4297
+ result !== undefined && !draft && !isInternalProviderLifeCycle && actionMode === 'none' && /*#__PURE__*/jsx(LifeCycleEdit, {
3781
4298
  baseNotificationData: result,
3782
4299
  baseNotificationType: "externalprovider",
3783
4300
  eventTypeDisabled: true,
@@ -3789,16 +4306,16 @@ var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3789
4306
  }),
3790
4307
  // internalprovider notification exists already (no draft) - we are performing an action after pressing one of the buttons -
3791
4308
  // base category, type and message off of existing (inernal) event. Any other fields are based off of last external notification if present
3792
- isInternalProviderLifeCycle && !draft && actionMode !== 'none' ? jsxs(Grid, {
4309
+ isInternalProviderLifeCycle && !draft && actionMode !== 'none' ? /*#__PURE__*/jsxs(Grid, {
3793
4310
  container: true,
3794
4311
  "data-testid": "lifecycle-display-internaleditaction",
3795
4312
  spacing: 1,
3796
- children: [jsx(Grid, {
4313
+ children: [/*#__PURE__*/jsx(Grid, {
3797
4314
  size: 12,
3798
- children: jsx(SubdirectoryArrowRight, {})
3799
- }), jsx(Grid, {
4315
+ children: /*#__PURE__*/jsx(SubdirectoryArrowRight, {})
4316
+ }), /*#__PURE__*/jsx(Grid, {
3800
4317
  size: 12,
3801
- children: jsx(LifeCycleEdit, {
4318
+ children: /*#__PURE__*/jsx(LifeCycleEdit, {
3802
4319
  actionMode: actionMode,
3803
4320
  baseNotificationData: result,
3804
4321
  baseNotificationType: "internalprovider",
@@ -3812,16 +4329,17 @@ var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3812
4329
  })]
3813
4330
  }) : null,
3814
4331
  // internalprovider draft notification exists - base category, type and start/end time off event filled in from draft
3815
- isInternalProviderLifeCycle && draft ? jsxs(Grid, {
4332
+
4333
+ isInternalProviderLifeCycle && draft ? /*#__PURE__*/jsxs(Grid, {
3816
4334
  container: true,
3817
4335
  "data-testid": "lifecycle-display-internaldraftedit",
3818
4336
  spacing: 1,
3819
- children: [result.lifecycles.internalprovider.notifications.length > 1 && jsx(Grid, {
4337
+ children: [result.lifecycles.internalprovider.notifications.length > 1 && /*#__PURE__*/jsx(Grid, {
3820
4338
  size: 12,
3821
- children: jsx(SubdirectoryArrowRight, {})
3822
- }), jsx(Grid, {
4339
+ children: /*#__PURE__*/jsx(SubdirectoryArrowRight, {})
4340
+ }), /*#__PURE__*/jsx(Grid, {
3823
4341
  size: 12,
3824
- children: jsx(LifeCycleEdit, {
4342
+ children: /*#__PURE__*/jsx(LifeCycleEdit, {
3825
4343
  actionMode: getActionModeForDraft(actionMode, draft.label, draft.changestateto),
3826
4344
  baseNotificationData: result,
3827
4345
  baseNotificationType: "draft",
@@ -3836,12 +4354,12 @@ var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3836
4354
  }) : null]
3837
4355
  })]
3838
4356
  })]
3839
- }), isFetching ? jsx(Skeleton, {
4357
+ }), isFetching ? /*#__PURE__*/jsx(Skeleton, {
3840
4358
  "data-testid": "display-lifecycle-loading",
3841
4359
  height: 500,
3842
4360
  variant: "rectangular",
3843
4361
  width: "100%"
3844
- }) : null, error ? jsx(AlertBanner, {
4362
+ }) : null, error ? /*#__PURE__*/jsx(AlertBanner, {
3845
4363
  dataTestId: "display-lifecycle-error",
3846
4364
  severity: "error",
3847
4365
  title: error.message ? error.message : ''
@@ -3849,6 +4367,24 @@ var LifeCycleDisplay = function LifeCycleDisplay(_ref) {
3849
4367
  });
3850
4368
  };
3851
4369
 
4370
+ /* *
4371
+ * Licensed under the Apache License, Version 2.0 (the "License");
4372
+ * you may not use this file except in compliance with the License.
4373
+ * You may obtain a copy of the License at
4374
+ *
4375
+ * http://www.apache.org/licenses/LICENSE-2.0
4376
+ *
4377
+ * Unless required by applicable law or agreed to in writing, software
4378
+ * distributed under the License is distributed on an "AS IS" BASIS,
4379
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4380
+ * See the License for the specific language governing permissions and
4381
+ * limitations under the License.
4382
+ *
4383
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4384
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
4385
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4386
+ * */
4387
+
3852
4388
  var getDialogTitle = function getDialogTitle(t, dialogMode, event) {
3853
4389
  var titleTime = event != null && event.lifecycles.internalprovider && event.lifecycles.internalprovider.draft !== true ? dateUtils.dateToString(dateUtils.utc(event.lifecycles.externalprovider ? event.lifecycles.externalprovider.firstissuetime : event.lifecycles.internalprovider.firstissuetime), dateUtils.DATE_FORMAT_DATEPICKER + "' UTC'") : 'Draft';
3854
4390
  if (dialogMode !== 'new') {
@@ -3908,8 +4444,8 @@ var LifeCycleDialog = function LifeCycleDialog(_ref) {
3908
4444
  toggleStatus();
3909
4445
  }
3910
4446
  };
3911
- return jsxs(ContentDialog, {
3912
- alertBanner: errorStoreMessage || errorRetrievePopulate ? jsx(AlertBanner, {
4447
+ return /*#__PURE__*/jsxs(ContentDialog, {
4448
+ alertBanner: errorStoreMessage || errorRetrievePopulate ? /*#__PURE__*/jsx(AlertBanner, {
3913
4449
  info: errorStoreMessage || errorRetrievePopulate,
3914
4450
  severity: "error",
3915
4451
  title: errorStoreMessage ? t('dialog-save-error') : t('dialog-template-error')
@@ -3922,14 +4458,14 @@ var LifeCycleDialog = function LifeCycleDialog(_ref) {
3922
4458
  open: open,
3923
4459
  title: getDialogTitle(t, dialogMode, event),
3924
4460
  toggleStatus: onToggleDialog,
3925
- children: [dialogMode === 'new' && jsx(LifeCycleEdit, {
4461
+ children: [dialogMode === 'new' && /*#__PURE__*/jsx(LifeCycleEdit, {
3926
4462
  baseNotificationType: "new",
3927
4463
  onFormChange: onChangeForm,
3928
4464
  setErrorRetrievePopulate: setErrorRetrievePopulate,
3929
4465
  setErrorStoreMessage: setErrorStoreMessage,
3930
4466
  statusTagContent: "Alert",
3931
4467
  toggleDialogOpen: onToggleDialog
3932
- }), dialogMode !== 'new' && jsx(LifeCycleDisplay, {
4468
+ }), dialogMode !== 'new' && /*#__PURE__*/jsx(LifeCycleDisplay, {
3933
4469
  eventId: dialogMode,
3934
4470
  onFormChange: onChangeForm,
3935
4471
  setErrorRetrievePopulate: setErrorRetrievePopulate,
@@ -3949,6 +4485,7 @@ var constructParams = function constructParams(tabValue) {
3949
4485
  category: tabValue
3950
4486
  };
3951
4487
  };
4488
+
3952
4489
  /**
3953
4490
  * Notifications
3954
4491
  * View incoming notifications and issue new notifications following the notification lifecycle
@@ -4035,15 +4572,15 @@ var Notifications = function Notifications() {
4035
4572
  return _ref.apply(this, arguments);
4036
4573
  };
4037
4574
  }();
4038
- return jsxs(Grid, {
4575
+ return /*#__PURE__*/jsxs(Grid, {
4039
4576
  container: true,
4040
4577
  spacing: 1,
4041
4578
  style: {
4042
4579
  height: '100%'
4043
4580
  },
4044
- children: [jsx(Grid, {
4581
+ children: [/*#__PURE__*/jsx(Grid, {
4045
4582
  size: 12,
4046
- children: jsx(Typography, {
4583
+ children: /*#__PURE__*/jsx(Typography, {
4047
4584
  sx: {
4048
4585
  textAlign: 'center',
4049
4586
  fontWeight: 500
@@ -4051,9 +4588,9 @@ var Notifications = function Notifications() {
4051
4588
  variant: "subtitle1",
4052
4589
  children: t('notification-title')
4053
4590
  })
4054
- }), jsx(Grid, {
4591
+ }), /*#__PURE__*/jsx(Grid, {
4055
4592
  size: 12,
4056
- children: jsx(NotificationList, {
4593
+ children: /*#__PURE__*/jsx(NotificationList, {
4057
4594
  error: errorList,
4058
4595
  eventList: eventList || null,
4059
4596
  handleNotificatioNRowClick: handleNotificatioNRowClick,
@@ -4062,17 +4599,17 @@ var Notifications = function Notifications() {
4062
4599
  onChangeTabValue: setTabValue,
4063
4600
  tabValue: tabValue
4064
4601
  })
4065
- }), jsx(Grid, {
4602
+ }), /*#__PURE__*/jsx(Grid, {
4066
4603
  size: 12,
4067
- children: jsx(Grid, {
4604
+ children: /*#__PURE__*/jsx(Grid, {
4068
4605
  container: true,
4069
4606
  justifyContent: "flex-end",
4070
- children: jsx(Grid, {
4607
+ children: /*#__PURE__*/jsx(Grid, {
4071
4608
  sx: {
4072
4609
  marginTop: '8px',
4073
4610
  marginRight: 1
4074
4611
  },
4075
- children: jsx(Button, {
4612
+ children: /*#__PURE__*/jsx(Button, {
4076
4613
  color: "secondary",
4077
4614
  "data-testid": "notifications-newnotification",
4078
4615
  onClick: toggleCreateNotification,
@@ -4082,7 +4619,7 @@ var Notifications = function Notifications() {
4082
4619
  })
4083
4620
  })
4084
4621
  })
4085
- }), !!lifeCycleDialogOpen && jsx(LifeCycleDialog, Object.assign({
4622
+ }), !!lifeCycleDialogOpen && /*#__PURE__*/jsx(LifeCycleDialog, Object.assign({
4086
4623
  dialogMode: lifeCycleDialogMode,
4087
4624
  open: lifeCycleDialogOpen,
4088
4625
  toggleStatus: toggleDialogOpen
@@ -4092,6 +4629,24 @@ var Notifications = function Notifications() {
4092
4629
  });
4093
4630
  };
4094
4631
 
4632
+ /* *
4633
+ * Licensed under the Apache License, Version 2.0 (the "License");
4634
+ * you may not use this file except in compliance with the License.
4635
+ * You may obtain a copy of the License at
4636
+ *
4637
+ * http://www.apache.org/licenses/LICENSE-2.0
4638
+ *
4639
+ * Unless required by applicable law or agreed to in writing, software
4640
+ * distributed under the License is distributed on an "AS IS" BASIS,
4641
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4642
+ * See the License for the specific language governing permissions and
4643
+ * limitations under the License.
4644
+ *
4645
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4646
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
4647
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4648
+ * */
4649
+
4095
4650
  var createDataset = function createDataset(data) {
4096
4651
  return data != null && data.length ? data.map(function (_ref) {
4097
4652
  var timestamp = _ref.timestamp,
@@ -4128,6 +4683,7 @@ var mirrorSeries = function mirrorSeries(dataset) {
4128
4683
  * Copyright 2024 - Finnish Meteorological Institute (FMI)
4129
4684
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4130
4685
  * */
4686
+
4131
4687
  var curveColors = {
4132
4688
  kpIndex: '#417505',
4133
4689
  kpIndexForecast: '#8db04e',
@@ -4143,6 +4699,24 @@ var curveColors = {
4143
4699
  currentTime: '#186dff'
4144
4700
  };
4145
4701
 
4702
+ /* *
4703
+ * Licensed under the Apache License, Version 2.0 (the "License");
4704
+ * you may not use this file except in compliance with the License.
4705
+ * You may obtain a copy of the License at
4706
+ *
4707
+ * http://www.apache.org/licenses/LICENSE-2.0
4708
+ *
4709
+ * Unless required by applicable law or agreed to in writing, software
4710
+ * distributed under the License is distributed on an "AS IS" BASIS,
4711
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4712
+ * See the License for the specific language governing permissions and
4713
+ * limitations under the License.
4714
+ *
4715
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4716
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
4717
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
4718
+ * */
4719
+
4146
4720
  var dateFormat = 'MM-dd HH:mm';
4147
4721
  var TITLE_KP_FORECAST = 'Kp Index Forecast';
4148
4722
  var TITLE_XRAY = "X-ray Solar Flux (W/m\xB2)";
@@ -4155,6 +4729,7 @@ var CHART_TOP_MARGIN = 20; // space for chart title
4155
4729
  var PLOT_TOP_MARGIN = 24; // space for graph title
4156
4730
  var CHART_BOTTOM_MARGIN = 48; // space for zoombar
4157
4731
  var DATA_ZOOM_LABEL_WIDTH = 76; // space for data zoom labels
4732
+
4158
4733
  // config
4159
4734
  var config = [
4160
4735
  // 1 Kp Index
@@ -4693,15 +5268,32 @@ var getTooltip = function getTooltip() {
4693
5268
  };
4694
5269
  };
4695
5270
 
5271
+ /* *
5272
+ * Licensed under the Apache License, Version 2.0 (the "License");
5273
+ * you may not use this file except in compliance with the License.
5274
+ * You may obtain a copy of the License at
5275
+ *
5276
+ * http://www.apache.org/licenses/LICENSE-2.0
5277
+ *
5278
+ * Unless required by applicable law or agreed to in writing, software
5279
+ * distributed under the License is distributed on an "AS IS" BASIS,
5280
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5281
+ * See the License for the specific language governing permissions and
5282
+ * limitations under the License.
5283
+ *
5284
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5285
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
5286
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5287
+ * */
4696
5288
  var GraphErrors = function GraphErrors(_ref) {
4697
5289
  var data = _ref.data,
4698
5290
  graphHeight = _ref.graphHeight,
4699
5291
  chartHeight = _ref.chartHeight;
4700
5292
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
4701
5293
  t = _useSpaceweatherTrans.t;
4702
- return jsx(Fragment, {
5294
+ return /*#__PURE__*/jsx(Fragment, {
4703
5295
  children: data.map(function (chart, index) {
4704
- return jsx(Box$1
5296
+ return /*#__PURE__*/jsx(Box$1
4705
5297
  // eslint-disable-next-line react/no-array-index-key
4706
5298
  , {
4707
5299
  sx: {
@@ -4714,11 +5306,11 @@ var GraphErrors = function GraphErrors(_ref) {
4714
5306
  opacity: chart.error ? 1 : 0,
4715
5307
  pointerEvents: 'none'
4716
5308
  },
4717
- children: chart.error ? jsx(Box$1, {
5309
+ children: chart.error ? /*#__PURE__*/jsx(Box$1, {
4718
5310
  sx: {
4719
5311
  paddingTop: 2
4720
5312
  },
4721
- children: jsx(AlertBanner, {
5313
+ children: /*#__PURE__*/jsx(AlertBanner, {
4722
5314
  severity: "error",
4723
5315
  title: chart.error ? chart.error : t('graph-error')
4724
5316
  })
@@ -4728,6 +5320,24 @@ var GraphErrors = function GraphErrors(_ref) {
4728
5320
  });
4729
5321
  };
4730
5322
 
5323
+ /* *
5324
+ * Licensed under the Apache License, Version 2.0 (the "License");
5325
+ * you may not use this file except in compliance with the License.
5326
+ * You may obtain a copy of the License at
5327
+ *
5328
+ * http://www.apache.org/licenses/LICENSE-2.0
5329
+ *
5330
+ * Unless required by applicable law or agreed to in writing, software
5331
+ * distributed under the License is distributed on an "AS IS" BASIS,
5332
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5333
+ * See the License for the specific language governing permissions and
5334
+ * limitations under the License.
5335
+ *
5336
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5337
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
5338
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5339
+ * */
5340
+
4731
5341
  var getOption = function getOption(data, beginTime, endTime, graphHeight) {
4732
5342
  var tooltip = getTooltip();
4733
5343
  var grid = getGrid(config, graphHeight);
@@ -4790,7 +5400,7 @@ var Graphs = function Graphs(_ref) {
4790
5400
  var isDark = (namedTheme == null ? void 0 : namedTheme.theme.palette.mode) === 'dark';
4791
5401
  var option = getOption(data, beginTime, endTime, graphHeight);
4792
5402
  var height = chartHeight + "px";
4793
- return jsx(ReactECharts, {
5403
+ return /*#__PURE__*/jsx(ReactECharts, {
4794
5404
  notMerge: true,
4795
5405
  onEvents: {
4796
5406
  dataZoom: onUserAction,
@@ -4873,10 +5483,27 @@ var getGraphHeightInPx = function getGraphHeightInPx() {
4873
5483
  return graphHeightInPx;
4874
5484
  };
4875
5485
 
5486
+ /* *
5487
+ * Licensed under the Apache License, Version 2.0 (the "License");
5488
+ * you may not use this file except in compliance with the License.
5489
+ * You may obtain a copy of the License at
5490
+ *
5491
+ * http://www.apache.org/licenses/LICENSE-2.0
5492
+ *
5493
+ * Unless required by applicable law or agreed to in writing, software
5494
+ * distributed under the License is distributed on an "AS IS" BASIS,
5495
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5496
+ * See the License for the specific language governing permissions and
5497
+ * limitations under the License.
5498
+ *
5499
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5500
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
5501
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5502
+ * */
4876
5503
  var TimeSeriesHeader = function TimeSeriesHeader() {
4877
5504
  var _useSpaceweatherTrans = useSpaceweatherTranslation(),
4878
5505
  t = _useSpaceweatherTrans.t;
4879
- return jsx(Typography, {
5506
+ return /*#__PURE__*/jsx(Typography, {
4880
5507
  style: {
4881
5508
  textAlign: 'center',
4882
5509
  fontWeight: 500
@@ -4916,7 +5543,23 @@ var getEndTime = function getEndTime() {
4916
5543
  var beginTime = getBeginTime();
4917
5544
  var endTime = getEndTime();
4918
5545
 
4919
- // eslint-disable-next-line @typescript-eslint/naming-convention
5546
+ /* *
5547
+ * Licensed under the Apache License, Version 2.0 (the "License");
5548
+ * you may not use this file except in compliance with the License.
5549
+ * You may obtain a copy of the License at
5550
+ *
5551
+ * http://www.apache.org/licenses/LICENSE-2.0
5552
+ *
5553
+ * Unless required by applicable law or agreed to in writing, software
5554
+ * distributed under the License is distributed on an "AS IS" BASIS,
5555
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5556
+ * See the License for the specific language governing permissions and
5557
+ * limitations under the License.
5558
+ *
5559
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
5560
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
5561
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
5562
+ * */
4920
5563
  var time_start = dateUtils.dateToString(beginTime);
4921
5564
  // eslint-disable-next-line @typescript-eslint/naming-convention
4922
5565
  var time_stop = dateUtils.dateToString(endTime);
@@ -4937,11 +5580,13 @@ var defaultErrorData = config.map(function (graphItem) {
4937
5580
  error: ''
4938
5581
  };
4939
5582
  });
5583
+
4940
5584
  // component
4941
5585
  var TimeSeries = function TimeSeries() {
4942
5586
  var _useUserSleeping = useUserSleeping(),
4943
5587
  isUserSleeping = _useUserSleeping[0],
4944
5588
  resetUserIsSleeping = _useUserSleeping[1];
5589
+
4945
5590
  // only refetch if user is sleeping
4946
5591
  var _useGetStreams = useGetStreams(!isUserSleeping),
4947
5592
  streamsData = _useGetStreams.data;
@@ -5002,6 +5647,7 @@ var TimeSeries = function TimeSeries() {
5002
5647
  }
5003
5648
  return newGraphData;
5004
5649
  });
5650
+
5005
5651
  // eslint-disable-next-line react-hooks/exhaustive-deps
5006
5652
  }, [timeSeriesResults]);
5007
5653
  React.useEffect(function () {
@@ -5039,52 +5685,52 @@ var TimeSeries = function TimeSeries() {
5039
5685
  }).length > 0;
5040
5686
  var graphHeight = getGraphHeightInPx();
5041
5687
  var chartHeight = CHART_TOP_MARGIN + (PLOT_TOP_MARGIN + graphHeight) * config.length + CHART_BOTTOM_MARGIN;
5042
- return jsxs(Grid, {
5688
+ return /*#__PURE__*/jsxs(Grid, {
5043
5689
  container: true,
5044
5690
  sx: {
5045
5691
  backgroundColor: 'geowebColors.background.surfaceApp'
5046
5692
  },
5047
- children: [jsx(Grid, {
5693
+ children: [/*#__PURE__*/jsx(Grid, {
5048
5694
  size: 12,
5049
- children: jsx(TimeSeriesHeader, {})
5050
- }), jsx(Grid, {
5695
+ children: /*#__PURE__*/jsx(TimeSeriesHeader, {})
5696
+ }), /*#__PURE__*/jsx(Grid, {
5051
5697
  size: 12,
5052
5698
  sx: {
5053
5699
  paddingTop: '0px!important',
5054
5700
  paddingBottom: '4px'
5055
5701
  },
5056
- children: isLoading ? jsx(LinearProgress, {
5702
+ children: isLoading ? /*#__PURE__*/jsx(LinearProgress, {
5057
5703
  color: "secondary",
5058
5704
  "data-testid": "timeline-loadingbar",
5059
5705
  sx: {
5060
5706
  marginLeft: CHART_LEFT_MARGIN + "px",
5061
5707
  marginRight: CHART_RIGHT_MARGIN + "px"
5062
5708
  }
5063
- }) : jsx(Box, {
5709
+ }) : /*#__PURE__*/jsx(Box, {
5064
5710
  sx: {
5065
5711
  height: 4
5066
5712
  }
5067
5713
  })
5068
- }), jsx(Grid, {
5714
+ }), /*#__PURE__*/jsx(Grid, {
5069
5715
  size: 12,
5070
5716
  sx: {
5071
5717
  height: chartHeight
5072
5718
  },
5073
- children: jsxs(Card, {
5719
+ children: /*#__PURE__*/jsxs(Card, {
5074
5720
  sx: {
5075
5721
  height: chartHeight,
5076
5722
  border: 'solid 1px',
5077
5723
  borderColor: 'geowebColors.cards.cardContainerBorder',
5078
5724
  boxShadow: 'none'
5079
5725
  },
5080
- children: [jsx(Graphs, {
5726
+ children: [/*#__PURE__*/jsx(Graphs, {
5081
5727
  beginTime: beginTime,
5082
5728
  chartHeight: chartHeight,
5083
5729
  data: graphData,
5084
5730
  endTime: endTime,
5085
5731
  graphHeight: graphHeight,
5086
5732
  onUserAction: onUserAction
5087
- }), jsx(GraphErrors, {
5733
+ }), /*#__PURE__*/jsx(GraphErrors, {
5088
5734
  chartHeight: chartHeight,
5089
5735
  data: errorData,
5090
5736
  graphHeight: graphHeight
@@ -7206,6 +7852,7 @@ var generateFakeEventList = function generateFakeEventList(todayDate, yesterdayD
7206
7852
  }
7207
7853
  }];
7208
7854
  };
7855
+
7209
7856
  // Event list containing fake events that gets retrieved when doing a get /eventlist request using the current date
7210
7857
  var fakeEventList = generateFakeEventList(todayDate, yesterdayDate, dayBeforeYesterdayDate, dayMin3Date);
7211
7858
  var fakeEventListFixedDates = generateFakeEventList('2022-01-05', '2022-01-04', '2022-01-03', '2022-01-02');
@@ -8530,12 +9177,14 @@ var getDummyTimeSerie = function getDummyTimeSerie(stream, parameter) {
8530
9177
  return kpIndexDummyData;
8531
9178
  }
8532
9179
  };
9180
+
8533
9181
  // Bulletin section
8534
9182
  var bulletinEndpoints = [http.get(/.*\/bulletin\/getBulletin$/, function () {
8535
9183
  return HttpResponse.json(fakeBulletins[0]);
8536
9184
  }), http.get(/.*\/bulletin\/getBulletinHistory$/, function () {
8537
9185
  return HttpResponse.json(fakeBulletins);
8538
9186
  })];
9187
+
8539
9188
  // Notification section
8540
9189
  var notificationEndpoints = [http.get(/.*\/notification\/eventList$/, function (_ref) {
8541
9190
  var request = _ref.request;
@@ -8596,15 +9245,35 @@ var timeseriesEndpoints = [http.get(/.*\/timeseries\/streams$/, function () {
8596
9245
  })];
8597
9246
  var requestHandlers = [].concat(bulletinEndpoints, notificationEndpoints, timeseriesEndpoints);
8598
9247
 
9248
+ /* *
9249
+ * Licensed under the Apache License, Version 2.0 (the "License");
9250
+ * you may not use this file except in compliance with the License.
9251
+ * You may obtain a copy of the License at
9252
+ *
9253
+ * http://www.apache.org/licenses/LICENSE-2.0
9254
+ *
9255
+ * Unless required by applicable law or agreed to in writing, software
9256
+ * distributed under the License is distributed on an "AS IS" BASIS,
9257
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9258
+ * See the License for the specific language governing permissions and
9259
+ * limitations under the License.
9260
+ *
9261
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
9262
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
9263
+ * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
9264
+ * */
8599
9265
  var spaceweatherViewPreset = {
8600
9266
  componentType: 'SpaceweatherModule'};
9267
+
9268
+ // base type for connected modules
9269
+
8601
9270
  var SpaceweatherWrapper = function SpaceweatherWrapper() {
8602
- return jsxs(NotificationTriggerProvider, {
8603
- children: [jsx(NotificationTrigger, {}), jsx(ErrorBoundary, {
8604
- children: jsx(Layout, {
8605
- leftBottom: jsx(Notifications, {}),
8606
- leftTop: jsx(BulletinComponent, {}),
8607
- right: jsx(TimeSeries, {})
9271
+ return /*#__PURE__*/jsxs(NotificationTriggerProvider, {
9272
+ children: [/*#__PURE__*/jsx(NotificationTrigger, {}), /*#__PURE__*/jsx(ErrorBoundary, {
9273
+ children: /*#__PURE__*/jsx(Layout, {
9274
+ leftBottom: /*#__PURE__*/jsx(Notifications, {}),
9275
+ leftTop: /*#__PURE__*/jsx(BulletinComponent, {}),
9276
+ right: /*#__PURE__*/jsx(TimeSeries, {})
8608
9277
  })
8609
9278
  })]
8610
9279
  });
@@ -8613,7 +9282,7 @@ var componentsLookUp = function componentsLookUp(payload) {
8613
9282
  var componentType = payload.componentType;
8614
9283
  switch (componentType) {
8615
9284
  case spaceweatherViewPreset.componentType:
8616
- return jsx(SpaceweatherWrapper, {
9285
+ return /*#__PURE__*/jsx(SpaceweatherWrapper, {
8617
9286
  "data-testid": "spaceweathermodule"
8618
9287
  });
8619
9288
  default: