@opengeoweb/cap 9.14.0 → 9.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -2,16 +2,38 @@ import React from 'react';
2
2
  import { useApiContext, useApi, createNonAuthApiInstance, ApiProvider } from '@opengeoweb/api';
3
3
  import { Grid, Typography, Box, Card, CircularProgress } from '@mui/material';
4
4
  import { Box as Box$1 } from '@mui/system';
5
- import { dateUtils, AlertBanner, withEggs } from '@opengeoweb/shared';
5
+ import { dateUtils, AlertBanner } from '@opengeoweb/shared';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { useSelector, useDispatch } from 'react-redux';
8
8
  import { createEntityAdapter, createSlice, createSelector } from '@reduxjs/toolkit';
9
9
  import 'i18next';
10
10
  import { ConfigurableMapConnect } from '@opengeoweb/core';
11
- import { mapSelectors, coreModuleConfig } from '@opengeoweb/store';
11
+ import { mapSelectors } from '@opengeoweb/store';
12
12
  import { webmapUtils } from '@opengeoweb/webmap';
13
13
  import { MapViewLayer, MapWarningProperties } from '@opengeoweb/webmap-react';
14
- import { ThemeWrapper } from '@opengeoweb/theme';
14
+
15
+ var en = {
16
+ "map-view-cap-error-title": "Something went wrong with loading the configuration file",
17
+ "warning-list-cap-alert-banner-title": "Note: Only map is affected by timeslider based filtering",
18
+ "warning-list-cap-error-title": "Something went wrong with loading the configuration file",
19
+ "warning-list-row-event": "Event",
20
+ "warning-list-row-severity": "Severity",
21
+ "warning-list-row-expires": "Expires",
22
+ "warning-list-row-not-expired": "(not expired)"
23
+ };
24
+ var fi = {
25
+ "map-view-cap-error-title": "🚧 ei käännetty",
26
+ "warning-list-cap-alert-banner-title": "🚧 ei käännetty",
27
+ "warning-list-cap-error-title": "🚧 ei käännetty",
28
+ "warning-list-row-event": "🚧 ei käännetty",
29
+ "warning-list-row-severity": "🚧 ei käännetty",
30
+ "warning-list-row-expires": "🚧 ei käännetty",
31
+ "warning-list-row-not-expired": "🚧 ei käännetty"
32
+ };
33
+ var capTrans = {
34
+ en: en,
35
+ fi: fi
36
+ };
15
37
 
16
38
  /* *
17
39
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -164,17 +186,17 @@ var $TypeError$g = TypeError;
164
186
 
165
187
  // `RequireObjectCoercible` abstract operation
166
188
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
167
- var requireObjectCoercible$6 = function (it) {
189
+ var requireObjectCoercible$7 = function (it) {
168
190
  if (isNullOrUndefined$4(it)) throw new $TypeError$g("Can't call method on " + it);
169
191
  return it;
170
192
  };
171
193
 
172
194
  // toObject with fallback for non-array-like ES3 strings
173
195
  var IndexedObject$2 = indexedObject;
174
- var requireObjectCoercible$5 = requireObjectCoercible$6;
196
+ var requireObjectCoercible$6 = requireObjectCoercible$7;
175
197
 
176
198
  var toIndexedObject$5 = function (it) {
177
- return IndexedObject$2(requireObjectCoercible$5(it));
199
+ return IndexedObject$2(requireObjectCoercible$6(it));
178
200
  };
179
201
 
180
202
  var check = function (it) {
@@ -182,7 +204,7 @@ var check = function (it) {
182
204
  };
183
205
 
184
206
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
185
- var global$m =
207
+ var global$l =
186
208
  // eslint-disable-next-line es/no-global-this -- safe
187
209
  check(typeof globalThis == 'object' && globalThis) ||
188
210
  check(typeof window == 'object' && window) ||
@@ -193,49 +215,49 @@ var global$m =
193
215
  // eslint-disable-next-line no-new-func -- fallback
194
216
  (function () { return this; })() || Function('return this')();
195
217
 
196
- var shared$4 = {exports: {}};
218
+ var sharedStore = {exports: {}};
197
219
 
198
- var global$l = global$m;
220
+ var global$k = global$l;
199
221
 
200
222
  // eslint-disable-next-line es/no-object-defineproperty -- safe
201
223
  var defineProperty$6 = Object.defineProperty;
202
224
 
203
225
  var defineGlobalProperty$3 = function (key, value) {
204
226
  try {
205
- defineProperty$6(global$l, key, { value: value, configurable: true, writable: true });
227
+ defineProperty$6(global$k, key, { value: value, configurable: true, writable: true });
206
228
  } catch (error) {
207
- global$l[key] = value;
229
+ global$k[key] = value;
208
230
  } return value;
209
231
  };
210
232
 
211
- var global$k = global$m;
233
+ var globalThis$1 = global$l;
212
234
  var defineGlobalProperty$2 = defineGlobalProperty$3;
213
235
 
214
236
  var SHARED = '__core-js_shared__';
215
- var store$3 = global$k[SHARED] || defineGlobalProperty$2(SHARED, {});
216
-
217
- var sharedStore = store$3;
237
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
218
238
 
219
- var store$2 = sharedStore;
220
-
221
- (shared$4.exports = function (key, value) {
222
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
223
- })('versions', []).push({
224
- version: '3.35.1',
239
+ (store$3.versions || (store$3.versions = [])).push({
240
+ version: '3.36.1',
225
241
  mode: 'global',
226
242
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
227
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
243
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
228
244
  source: 'https://github.com/zloirock/core-js'
229
245
  });
230
246
 
231
- var requireObjectCoercible$4 = requireObjectCoercible$6;
247
+ var store$2 = sharedStore.exports;
248
+
249
+ var shared$4 = function (key, value) {
250
+ return store$2[key] || (store$2[key] = value || {});
251
+ };
252
+
253
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
232
254
 
233
255
  var $Object$3 = Object;
234
256
 
235
257
  // `ToObject` abstract operation
236
258
  // https://tc39.es/ecma262/#sec-toobject
237
259
  var toObject$6 = function (argument) {
238
- return $Object$3(requireObjectCoercible$4(argument));
260
+ return $Object$3(requireObjectCoercible$5(argument));
239
261
  };
240
262
 
241
263
  var uncurryThis$i = functionUncurryThis;
@@ -262,7 +284,7 @@ var uid$2 = function (key) {
262
284
 
263
285
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
264
286
 
265
- var global$j = global$m;
287
+ var global$j = global$l;
266
288
  var userAgent$3 = engineUserAgent;
267
289
 
268
290
  var process$3 = global$j.process;
@@ -293,7 +315,7 @@ var engineV8Version = version;
293
315
  /* eslint-disable es/no-symbol -- required for testing */
294
316
  var V8_VERSION$1 = engineV8Version;
295
317
  var fails$h = fails$k;
296
- var global$i = global$m;
318
+ var global$i = global$l;
297
319
 
298
320
  var $String$5 = global$i.String;
299
321
 
@@ -316,8 +338,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
316
338
  && !Symbol.sham
317
339
  && typeof Symbol.iterator == 'symbol';
318
340
 
319
- var global$h = global$m;
320
- var shared$3 = shared$4.exports;
341
+ var global$h = global$l;
342
+ var shared$3 = shared$4;
321
343
  var hasOwn$9 = hasOwnProperty_1;
322
344
  var uid$1 = uid$2;
323
345
  var NATIVE_SYMBOL = symbolConstructorDetection;
@@ -349,18 +371,18 @@ var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefine
349
371
 
350
372
  var isCallable$k = isCallable$l;
351
373
 
352
- var isObject$b = function (it) {
374
+ var isObject$c = function (it) {
353
375
  return typeof it == 'object' ? it !== null : isCallable$k(it);
354
376
  };
355
377
 
356
- var isObject$a = isObject$b;
378
+ var isObject$b = isObject$c;
357
379
 
358
380
  var $String$4 = String;
359
381
  var $TypeError$f = TypeError;
360
382
 
361
383
  // `Assert: Type(argument) is Object`
362
- var anObject$d = function (argument) {
363
- if (isObject$a(argument)) return argument;
384
+ var anObject$c = function (argument) {
385
+ if (isObject$b(argument)) return argument;
364
386
  throw new $TypeError$f($String$4(argument) + ' is not an object');
365
387
  };
366
388
 
@@ -389,12 +411,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$f(function () {
389
411
 
390
412
  var objectDefineProperty = {};
391
413
 
392
- var global$g = global$m;
393
- var isObject$9 = isObject$b;
414
+ var global$g = global$l;
415
+ var isObject$a = isObject$c;
394
416
 
395
417
  var document$3 = global$g.document;
396
418
  // typeof document.createElement is 'object' in old IE
397
- var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
419
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
398
420
 
399
421
  var documentCreateElement$2 = function (it) {
400
422
  return EXISTS$1 ? document$3.createElement(it) : {};
@@ -420,7 +442,7 @@ var functionCall = NATIVE_BIND$2 ? call$h.bind(call$h) : function () {
420
442
  return call$h.apply(call$h, arguments);
421
443
  };
422
444
 
423
- var global$f = global$m;
445
+ var global$f = global$l;
424
446
  var isCallable$j = isCallable$l;
425
447
 
426
448
  var aFunction = function (argument) {
@@ -482,7 +504,7 @@ var getMethod$4 = function (V, P) {
482
504
 
483
505
  var call$g = functionCall;
484
506
  var isCallable$g = isCallable$l;
485
- var isObject$8 = isObject$b;
507
+ var isObject$9 = isObject$c;
486
508
 
487
509
  var $TypeError$d = TypeError;
488
510
 
@@ -490,14 +512,14 @@ var $TypeError$d = TypeError;
490
512
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
491
513
  var ordinaryToPrimitive$1 = function (input, pref) {
492
514
  var fn, val;
493
- if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
494
- if (isCallable$g(fn = input.valueOf) && !isObject$8(val = call$g(fn, input))) return val;
495
- if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$8(val = call$g(fn, input))) return val;
515
+ if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
516
+ if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$g(fn, input))) return val;
517
+ if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
496
518
  throw new $TypeError$d("Can't convert object to primitive value");
497
519
  };
498
520
 
499
521
  var call$f = functionCall;
500
- var isObject$7 = isObject$b;
522
+ var isObject$8 = isObject$c;
501
523
  var isSymbol$1 = isSymbol$2;
502
524
  var getMethod$3 = getMethod$4;
503
525
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -509,13 +531,13 @@ var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
509
531
  // `ToPrimitive` abstract operation
510
532
  // https://tc39.es/ecma262/#sec-toprimitive
511
533
  var toPrimitive$1 = function (input, pref) {
512
- if (!isObject$7(input) || isSymbol$1(input)) return input;
534
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
513
535
  var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
514
536
  var result;
515
537
  if (exoticToPrim) {
516
538
  if (pref === undefined) pref = 'default';
517
539
  result = call$f(exoticToPrim, input, pref);
518
- if (!isObject$7(result) || isSymbol$1(result)) return result;
540
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
519
541
  throw new $TypeError$c("Can't convert object to primitive value");
520
542
  }
521
543
  if (pref === undefined) pref = 'number';
@@ -535,7 +557,7 @@ var toPropertyKey$2 = function (argument) {
535
557
  var DESCRIPTORS$9 = descriptors;
536
558
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
537
559
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
538
- var anObject$c = anObject$d;
560
+ var anObject$b = anObject$c;
539
561
  var toPropertyKey$1 = toPropertyKey$2;
540
562
 
541
563
  var $TypeError$b = TypeError;
@@ -550,9 +572,9 @@ var WRITABLE = 'writable';
550
572
  // `Object.defineProperty` method
551
573
  // https://tc39.es/ecma262/#sec-object.defineproperty
552
574
  objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
553
- anObject$c(O);
575
+ anObject$b(O);
554
576
  P = toPropertyKey$1(P);
555
- anObject$c(Attributes);
577
+ anObject$b(Attributes);
556
578
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
557
579
  var current = $getOwnPropertyDescriptor$1(O, P);
558
580
  if (current && current[WRITABLE]) {
@@ -565,9 +587,9 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
565
587
  }
566
588
  } return $defineProperty(O, P, Attributes);
567
589
  } : $defineProperty : function defineProperty(O, P, Attributes) {
568
- anObject$c(O);
590
+ anObject$b(O);
569
591
  P = toPropertyKey$1(P);
570
- anObject$c(Attributes);
592
+ anObject$b(Attributes);
571
593
  if (IE8_DOM_DEFINE$1) try {
572
594
  return $defineProperty(O, P, Attributes);
573
595
  } catch (error) { /* empty */ }
@@ -638,6 +660,7 @@ var createMethod$2 = function (IS_INCLUDES) {
638
660
  return function ($this, el, fromIndex) {
639
661
  var O = toIndexedObject$4($this);
640
662
  var length = lengthOfArrayLike$4(O);
663
+ if (length === 0) return !IS_INCLUDES && -1;
641
664
  var index = toAbsoluteIndex(fromIndex, length);
642
665
  var value;
643
666
  // Array#includes uses SameValueZero equality algorithm
@@ -709,7 +732,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
709
732
  var DESCRIPTORS$8 = descriptors;
710
733
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
711
734
  var definePropertyModule$3 = objectDefineProperty;
712
- var anObject$b = anObject$d;
735
+ var anObject$a = anObject$c;
713
736
  var toIndexedObject$2 = toIndexedObject$5;
714
737
  var objectKeys$1 = objectKeys$2;
715
738
 
@@ -717,7 +740,7 @@ var objectKeys$1 = objectKeys$2;
717
740
  // https://tc39.es/ecma262/#sec-object.defineproperties
718
741
  // eslint-disable-next-line es/no-object-defineproperties -- safe
719
742
  objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
720
- anObject$b(O);
743
+ anObject$a(O);
721
744
  var props = toIndexedObject$2(Properties);
722
745
  var keys = objectKeys$1(Properties);
723
746
  var length = keys.length;
@@ -731,7 +754,7 @@ var getBuiltIn$5 = getBuiltIn$7;
731
754
 
732
755
  var html$2 = getBuiltIn$5('document', 'documentElement');
733
756
 
734
- var shared$2 = shared$4.exports;
757
+ var shared$2 = shared$4;
735
758
  var uid = uid$2;
736
759
 
737
760
  var keys = shared$2('keys');
@@ -741,7 +764,7 @@ var sharedKey$3 = function (key) {
741
764
  };
742
765
 
743
766
  /* global ActiveXObject -- old IE, WSH */
744
- var anObject$a = anObject$d;
767
+ var anObject$9 = anObject$c;
745
768
  var definePropertiesModule = objectDefineProperties;
746
769
  var enumBugKeys$1 = enumBugKeys$3;
747
770
  var hiddenKeys$2 = hiddenKeys$4;
@@ -815,7 +838,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
815
838
  var objectCreate = Object.create || function create(O, Properties) {
816
839
  var result;
817
840
  if (O !== null) {
818
- EmptyConstructor[PROTOTYPE] = anObject$a(O);
841
+ EmptyConstructor[PROTOTYPE] = anObject$9(O);
819
842
  result = new EmptyConstructor();
820
843
  EmptyConstructor[PROTOTYPE] = null;
821
844
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -847,7 +870,7 @@ var addToUnscopables$3 = function (key) {
847
870
 
848
871
  var iterators = {};
849
872
 
850
- var global$e = global$m;
873
+ var global$e = global$l;
851
874
  var isCallable$f = isCallable$l;
852
875
 
853
876
  var WeakMap$1 = global$e.WeakMap;
@@ -875,11 +898,11 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value
875
898
  };
876
899
 
877
900
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
878
- var global$d = global$m;
879
- var isObject$6 = isObject$b;
901
+ var global$d = global$l;
902
+ var isObject$7 = isObject$c;
880
903
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
881
904
  var hasOwn$7 = hasOwnProperty_1;
882
- var shared$1 = sharedStore;
905
+ var shared$1 = sharedStore.exports;
883
906
  var sharedKey$1 = sharedKey$3;
884
907
  var hiddenKeys$1 = hiddenKeys$4;
885
908
 
@@ -895,7 +918,7 @@ var enforce = function (it) {
895
918
  var getterFor = function (TYPE) {
896
919
  return function (it) {
897
920
  var state;
898
- if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
921
+ if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
899
922
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
900
923
  } return state;
901
924
  };
@@ -1008,7 +1031,7 @@ var functionName = {
1008
1031
 
1009
1032
  var uncurryThis$e = functionUncurryThis;
1010
1033
  var isCallable$e = isCallable$l;
1011
- var store = sharedStore;
1034
+ var store = sharedStore.exports;
1012
1035
 
1013
1036
  var functionToString = uncurryThis$e(Function.toString);
1014
1037
 
@@ -1127,13 +1150,13 @@ var getBuiltIn$4 = getBuiltIn$7;
1127
1150
  var uncurryThis$c = functionUncurryThis;
1128
1151
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1129
1152
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1130
- var anObject$9 = anObject$d;
1153
+ var anObject$8 = anObject$c;
1131
1154
 
1132
1155
  var concat$2 = uncurryThis$c([].concat);
1133
1156
 
1134
1157
  // all object keys, includes non-enumerable and symbols
1135
1158
  var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1136
- var keys = getOwnPropertyNamesModule.f(anObject$9(it));
1159
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
1137
1160
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1138
1161
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1139
1162
  };
@@ -1178,7 +1201,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1178
1201
 
1179
1202
  var isForced_1 = isForced$2;
1180
1203
 
1181
- var global$c = global$m;
1204
+ var global$c = global$l;
1182
1205
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1183
1206
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1184
1207
  var defineBuiltIn$5 = defineBuiltIn$6;
@@ -1266,7 +1289,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1266
1289
 
1267
1290
  var fails$a = fails$k;
1268
1291
  var isCallable$9 = isCallable$l;
1269
- var isObject$5 = isObject$b;
1292
+ var isObject$6 = isObject$c;
1270
1293
  var getPrototypeOf$1 = objectGetPrototypeOf;
1271
1294
  var defineBuiltIn$4 = defineBuiltIn$6;
1272
1295
  var wellKnownSymbol$g = wellKnownSymbol$j;
@@ -1289,7 +1312,7 @@ if ([].keys) {
1289
1312
  }
1290
1313
  }
1291
1314
 
1292
- var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$a(function () {
1315
+ var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$a(function () {
1293
1316
  var test = {};
1294
1317
  // FF44- legacy iterators case
1295
1318
  return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
@@ -1349,10 +1372,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
1349
1372
  } catch (error) { /* empty */ }
1350
1373
  };
1351
1374
 
1352
- var isObject$4 = isObject$b;
1375
+ var isObject$5 = isObject$c;
1353
1376
 
1354
1377
  var isPossiblePrototype$1 = function (argument) {
1355
- return isObject$4(argument) || argument === null;
1378
+ return isObject$5(argument) || argument === null;
1356
1379
  };
1357
1380
 
1358
1381
  var isPossiblePrototype = isPossiblePrototype$1;
@@ -1367,7 +1390,8 @@ var aPossiblePrototype$1 = function (argument) {
1367
1390
 
1368
1391
  /* eslint-disable no-proto -- safe */
1369
1392
  var uncurryThisAccessor = functionUncurryThisAccessor;
1370
- var anObject$8 = anObject$d;
1393
+ var isObject$4 = isObject$c;
1394
+ var requireObjectCoercible$4 = requireObjectCoercible$7;
1371
1395
  var aPossiblePrototype = aPossiblePrototype$1;
1372
1396
 
1373
1397
  // `Object.setPrototypeOf` method
@@ -1384,8 +1408,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1384
1408
  CORRECT_SETTER = test instanceof Array;
1385
1409
  } catch (error) { /* empty */ }
1386
1410
  return function setPrototypeOf(O, proto) {
1387
- anObject$8(O);
1411
+ requireObjectCoercible$4(O);
1388
1412
  aPossiblePrototype(proto);
1413
+ if (!isObject$4(O)) return O;
1389
1414
  if (CORRECT_SETTER) setter(O, proto);
1390
1415
  else O.__proto__ = proto;
1391
1416
  return O;
@@ -1603,7 +1628,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1603
1628
 
1604
1629
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1605
1630
 
1606
- var global$b = global$m;
1631
+ var global$b = global$l;
1607
1632
  var DOMIterables = domIterables;
1608
1633
  var DOMTokenListPrototype = domTokenListPrototype;
1609
1634
  var ArrayIteratorMethods = es_array_iterator;
@@ -1698,7 +1723,7 @@ var toString$5 = function (argument) {
1698
1723
  return $String(argument);
1699
1724
  };
1700
1725
 
1701
- var isObject$3 = isObject$b;
1726
+ var isObject$3 = isObject$c;
1702
1727
  var classof$5 = classofRaw$2;
1703
1728
  var wellKnownSymbol$a = wellKnownSymbol$j;
1704
1729
 
@@ -1743,7 +1768,7 @@ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1743
1768
  var toLength$1 = toLength$3;
1744
1769
  var toString$4 = toString$5;
1745
1770
  var notARegExp$1 = notARegexp;
1746
- var requireObjectCoercible$3 = requireObjectCoercible$6;
1771
+ var requireObjectCoercible$3 = requireObjectCoercible$7;
1747
1772
  var correctIsRegExpLogic$1 = correctIsRegexpLogic;
1748
1773
 
1749
1774
  var stringSlice$4 = uncurryThis$9(''.slice);
@@ -1869,29 +1894,6 @@ $$c({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
1869
1894
  assign: assign
1870
1895
  });
1871
1896
 
1872
- var en = {
1873
- "map-view-cap-error-title": "Something went wrong with loading the configuration file",
1874
- "warning-list-cap-alert-banner-title": "Note: Only map is affected by timeslider based filtering",
1875
- "warning-list-cap-error-title": "Something went wrong with loading the configuration file",
1876
- "warning-list-row-event": "Event",
1877
- "warning-list-row-severity": "Severity",
1878
- "warning-list-row-expires": "Expires",
1879
- "warning-list-row-not-expired": "(not expired)"
1880
- };
1881
- var fi = {
1882
- "map-view-cap-error-title": "🚧 ei käännetty",
1883
- "warning-list-cap-alert-banner-title": "🚧 ei käännetty",
1884
- "warning-list-cap-error-title": "🚧 ei käännetty",
1885
- "warning-list-row-event": "🚧 ei käännetty",
1886
- "warning-list-row-severity": "🚧 ei käännetty",
1887
- "warning-list-row-expires": "🚧 ei käännetty",
1888
- "warning-list-row-not-expired": "🚧 ei käännetty"
1889
- };
1890
- var capTrans = {
1891
- en: en,
1892
- fi: fi
1893
- };
1894
-
1895
1897
  const CAP_NAMESPACE = 'cap';
1896
1898
 
1897
1899
  /* *
@@ -2303,7 +2305,7 @@ var isConstructor$2 = !construct || fails$8(function () {
2303
2305
 
2304
2306
  var isArray = isArray$2;
2305
2307
  var isConstructor$1 = isConstructor$2;
2306
- var isObject$2 = isObject$b;
2308
+ var isObject$2 = isObject$c;
2307
2309
  var wellKnownSymbol$8 = wellKnownSymbol$j;
2308
2310
 
2309
2311
  var SPECIES$4 = wellKnownSymbol$8('species');
@@ -2382,6 +2384,8 @@ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
2382
2384
 
2383
2385
  var $TypeError$7 = TypeError;
2384
2386
 
2387
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
2388
+
2385
2389
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
2386
2390
  var createMethod$1 = function (IS_RIGHT) {
2387
2391
  return function (that, callbackfn, argumentsLength, memo) {
@@ -2389,6 +2393,7 @@ var createMethod$1 = function (IS_RIGHT) {
2389
2393
  var self = IndexedObject(O);
2390
2394
  var length = lengthOfArrayLike$1(O);
2391
2395
  aCallable$6(callbackfn);
2396
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$7(REDUCE_EMPTY);
2392
2397
  var index = IS_RIGHT ? length - 1 : 0;
2393
2398
  var i = IS_RIGHT ? -1 : 1;
2394
2399
  if (argumentsLength < 2) while (true) {
@@ -2399,7 +2404,7 @@ var createMethod$1 = function (IS_RIGHT) {
2399
2404
  }
2400
2405
  index += i;
2401
2406
  if (IS_RIGHT ? index < 0 : length <= index) {
2402
- throw new $TypeError$7('Reduce of empty array with no initial value');
2407
+ throw new $TypeError$7(REDUCE_EMPTY);
2403
2408
  }
2404
2409
  }
2405
2410
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -2428,7 +2433,7 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2428
2433
  });
2429
2434
  };
2430
2435
 
2431
- var global$a = global$m;
2436
+ var global$a = global$l;
2432
2437
  var classof$2 = classofRaw$2;
2433
2438
 
2434
2439
  var engineIsNode = classof$2(global$a.process) === 'process';
@@ -2507,7 +2512,7 @@ var aConstructor$1 = function (argument) {
2507
2512
  throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
2508
2513
  };
2509
2514
 
2510
- var anObject$7 = anObject$d;
2515
+ var anObject$7 = anObject$c;
2511
2516
  var aConstructor = aConstructor$1;
2512
2517
  var isNullOrUndefined$2 = isNullOrUndefined$5;
2513
2518
  var wellKnownSymbol$6 = wellKnownSymbol$j;
@@ -2549,7 +2554,7 @@ var userAgent$2 = engineUserAgent;
2549
2554
  // eslint-disable-next-line redos/no-vulnerable -- safe
2550
2555
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
2551
2556
 
2552
- var global$9 = global$m;
2557
+ var global$9 = global$l;
2553
2558
  var apply$1 = functionApply;
2554
2559
  var bind$3 = functionBindContext;
2555
2560
  var isCallable$5 = isCallable$l;
@@ -2666,7 +2671,7 @@ var task$1 = {
2666
2671
  clear: clear
2667
2672
  };
2668
2673
 
2669
- var global$8 = global$m;
2674
+ var global$8 = global$l;
2670
2675
  var DESCRIPTORS = descriptors;
2671
2676
 
2672
2677
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2712,7 +2717,7 @@ var userAgent = engineUserAgent;
2712
2717
 
2713
2718
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
2714
2719
 
2715
- var global$7 = global$m;
2720
+ var global$7 = global$l;
2716
2721
  var safeGetBuiltIn = safeGetBuiltIn$1;
2717
2722
  var bind$2 = functionBindContext;
2718
2723
  var macrotask = task$1.set;
@@ -2806,7 +2811,7 @@ var perform$4 = function (exec) {
2806
2811
  }
2807
2812
  };
2808
2813
 
2809
- var global$6 = global$m;
2814
+ var global$6 = global$l;
2810
2815
 
2811
2816
  var promiseNativeConstructor = global$6.Promise;
2812
2817
 
@@ -2820,7 +2825,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
2820
2825
  && typeof window == 'object'
2821
2826
  && typeof document == 'object';
2822
2827
 
2823
- var global$5 = global$m;
2828
+ var global$5 = global$l;
2824
2829
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2825
2830
  var isCallable$4 = isCallable$l;
2826
2831
  var isForced = isForced_1;
@@ -2890,7 +2895,7 @@ newPromiseCapability$2.f = function (C) {
2890
2895
 
2891
2896
  var $$8 = _export;
2892
2897
  var IS_NODE = engineIsNode;
2893
- var global$4 = global$m;
2898
+ var global$4 = global$l;
2894
2899
  var call$a = functionCall;
2895
2900
  var defineBuiltIn$2 = defineBuiltIn$6;
2896
2901
  var setPrototypeOf = objectSetPrototypeOf;
@@ -2898,7 +2903,7 @@ var setToStringTag = setToStringTag$4;
2898
2903
  var setSpecies = setSpecies$1;
2899
2904
  var aCallable$4 = aCallable$b;
2900
2905
  var isCallable$3 = isCallable$l;
2901
- var isObject$1 = isObject$b;
2906
+ var isObject$1 = isObject$c;
2902
2907
  var anInstance = anInstance$1;
2903
2908
  var speciesConstructor = speciesConstructor$1;
2904
2909
  var task = task$1.set;
@@ -3202,7 +3207,7 @@ var getIteratorMethod$2 = function (it) {
3202
3207
 
3203
3208
  var call$9 = functionCall;
3204
3209
  var aCallable$3 = aCallable$b;
3205
- var anObject$6 = anObject$d;
3210
+ var anObject$6 = anObject$c;
3206
3211
  var tryToString$1 = tryToString$4;
3207
3212
  var getIteratorMethod$1 = getIteratorMethod$2;
3208
3213
 
@@ -3215,7 +3220,7 @@ var getIterator$1 = function (argument, usingIterator) {
3215
3220
  };
3216
3221
 
3217
3222
  var call$8 = functionCall;
3218
- var anObject$5 = anObject$d;
3223
+ var anObject$5 = anObject$c;
3219
3224
  var getMethod$1 = getMethod$4;
3220
3225
 
3221
3226
  var iteratorClose$1 = function (iterator, kind, value) {
@@ -3240,7 +3245,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
3240
3245
 
3241
3246
  var bind = functionBindContext;
3242
3247
  var call$7 = functionCall;
3243
- var anObject$4 = anObject$d;
3248
+ var anObject$4 = anObject$c;
3244
3249
  var tryToString = tryToString$4;
3245
3250
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
3246
3251
  var lengthOfArrayLike = lengthOfArrayLike$5;
@@ -3461,8 +3466,8 @@ $$4({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3461
3466
  }
3462
3467
  });
3463
3468
 
3464
- var anObject$3 = anObject$d;
3465
- var isObject = isObject$b;
3469
+ var anObject$3 = anObject$c;
3470
+ var isObject = isObject$c;
3466
3471
  var newPromiseCapability = newPromiseCapability$2;
3467
3472
 
3468
3473
  var promiseResolve$1 = function (C, x) {
@@ -3536,7 +3541,7 @@ $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
3536
3541
  var $$1 = _export;
3537
3542
  var uncurryThis$4 = functionUncurryThis;
3538
3543
  var notARegExp = notARegexp;
3539
- var requireObjectCoercible$2 = requireObjectCoercible$6;
3544
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
3540
3545
  var toString$3 = toString$5;
3541
3546
  var correctIsRegExpLogic = correctIsRegexpLogic;
3542
3547
 
@@ -3584,7 +3589,7 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
3584
3589
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3585
3590
  };
3586
3591
 
3587
- var anObject$2 = anObject$d;
3592
+ var anObject$2 = anObject$c;
3588
3593
 
3589
3594
  // `RegExp.prototype.flags` getter implementation
3590
3595
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -3603,7 +3608,7 @@ var regexpFlags$1 = function () {
3603
3608
  };
3604
3609
 
3605
3610
  var fails$4 = fails$k;
3606
- var global$3 = global$m;
3611
+ var global$3 = global$l;
3607
3612
 
3608
3613
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
3609
3614
  var $RegExp$2 = global$3.RegExp;
@@ -3634,7 +3639,7 @@ var regexpStickyHelpers = {
3634
3639
  };
3635
3640
 
3636
3641
  var fails$3 = fails$k;
3637
- var global$2 = global$m;
3642
+ var global$2 = global$l;
3638
3643
 
3639
3644
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3640
3645
  var $RegExp$1 = global$2.RegExp;
@@ -3645,7 +3650,7 @@ var regexpUnsupportedDotAll = fails$3(function () {
3645
3650
  });
3646
3651
 
3647
3652
  var fails$2 = fails$k;
3648
- var global$1 = global$m;
3653
+ var global$1 = global$l;
3649
3654
 
3650
3655
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3651
3656
  var $RegExp = global$1.RegExp;
@@ -3663,7 +3668,7 @@ var uncurryThis$3 = functionUncurryThis;
3663
3668
  var toString$2 = toString$5;
3664
3669
  var regexpFlags = regexpFlags$1;
3665
3670
  var stickyHelpers = regexpStickyHelpers;
3666
- var shared = shared$4.exports;
3671
+ var shared = shared$4;
3667
3672
  var create = objectCreate;
3668
3673
  var getInternalState = internalState.get;
3669
3674
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
@@ -3861,7 +3866,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
3861
3866
  var uncurryThis$2 = functionUncurryThis;
3862
3867
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
3863
3868
  var toString$1 = toString$5;
3864
- var requireObjectCoercible$1 = requireObjectCoercible$6;
3869
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
3865
3870
 
3866
3871
  var charAt$2 = uncurryThis$2(''.charAt);
3867
3872
  var charCodeAt = uncurryThis$2(''.charCodeAt);
@@ -3950,7 +3955,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
3950
3955
  };
3951
3956
 
3952
3957
  var call$1 = functionCall;
3953
- var anObject$1 = anObject$d;
3958
+ var anObject$1 = anObject$c;
3954
3959
  var isCallable$1 = isCallable$l;
3955
3960
  var classof = classofRaw$2;
3956
3961
  var regexpExec = regexpExec$2;
@@ -3975,13 +3980,13 @@ var call = functionCall;
3975
3980
  var uncurryThis = functionUncurryThis;
3976
3981
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
3977
3982
  var fails = fails$k;
3978
- var anObject = anObject$d;
3983
+ var anObject = anObject$c;
3979
3984
  var isCallable = isCallable$l;
3980
3985
  var isNullOrUndefined = isNullOrUndefined$5;
3981
3986
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
3982
3987
  var toLength = toLength$3;
3983
3988
  var toString = toString$5;
3984
- var requireObjectCoercible = requireObjectCoercible$6;
3989
+ var requireObjectCoercible = requireObjectCoercible$7;
3985
3990
  var advanceStringIndex = advanceStringIndex$1;
3986
3991
  var getMethod = getMethod$4;
3987
3992
  var getSubstitution = getSubstitution$1;
@@ -4447,54 +4452,6 @@ const MapViewCapConnectWrapper = ({
4447
4452
  });
4448
4453
  };
4449
4454
 
4450
- /* *
4451
- * Licensed under the Apache License, Version 2.0 (the "License");
4452
- * you may not use this file except in compliance with the License.
4453
- * You may obtain a copy of the License at
4454
- *
4455
- * http://www.apache.org/licenses/LICENSE-2.0
4456
- *
4457
- * Unless required by applicable law or agreed to in writing, software
4458
- * distributed under the License is distributed on an "AS IS" BASIS,
4459
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4460
- * See the License for the specific language governing permissions and
4461
- * limitations under the License.
4462
- *
4463
- * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4464
- * Copyright 2022 - Finnish Meteorological Institute (FMI)
4465
- * */
4466
- const capModuleConfig = {
4467
- id: 'capStore-module',
4468
- reducersMap: {
4469
- capStore: reducer
4470
- }
4471
- };
4472
-
4473
- const CapThemeWrapper = ({
4474
- theme,
4475
- children
4476
- }) => /*#__PURE__*/React.createElement(ThemeWrapper, {
4477
- theme: theme
4478
- }, children);
4479
- withEggs([capModuleConfig, ...coreModuleConfig])(({
4480
- theme,
4481
- children
4482
- }) => ( /*#__PURE__*/React.createElement(CapThemeWrapper, {
4483
- theme: theme
4484
- }, children)));
4485
- const CapTranslationsWrapper = ({
4486
- children
4487
- }) => {
4488
- const {
4489
- i18n
4490
- } = useTranslation();
4491
- React.useEffect(() => {
4492
- i18n.addResourceBundle('en', CAP_NAMESPACE, capTrans.en);
4493
- i18n.addResourceBundle('fi', CAP_NAMESPACE, capTrans.fi);
4494
- }, [i18n]);
4495
- return children;
4496
- };
4497
-
4498
4455
  /* *
4499
4456
  * Licensed under the Apache License, Version 2.0 (the "License");
4500
4457
  * you may not use this file except in compliance with the License.
@@ -4530,7 +4487,7 @@ const ComponentsLookUp = ({
4530
4487
  switch (componentType) {
4531
4488
  case 'CapWarningMap':
4532
4489
  {
4533
- return /*#__PURE__*/React.createElement(CapTranslationsWrapper, null, /*#__PURE__*/React.createElement(ApiProvider, {
4490
+ return /*#__PURE__*/React.createElement(ApiProvider, {
4534
4491
  config: {
4535
4492
  baseURL: config.baseURL
4536
4493
  },
@@ -4541,22 +4498,45 @@ const ComponentsLookUp = ({
4541
4498
  srs: (_b = initialProps.mapPreset.proj) === null || _b === void 0 ? void 0 : _b.srs,
4542
4499
  layers: initialProps.mapPreset.layers,
4543
4500
  productConfigKey: productConfigKey
4544
- })));
4501
+ }));
4545
4502
  }
4546
4503
  case 'CapWarningList':
4547
4504
  {
4548
- return /*#__PURE__*/React.createElement(CapTranslationsWrapper, null, /*#__PURE__*/React.createElement(ApiProvider, {
4505
+ return /*#__PURE__*/React.createElement(ApiProvider, {
4549
4506
  config: {
4550
4507
  baseURL: config.baseURL
4551
4508
  },
4552
4509
  createApi: createApi
4553
4510
  }, /*#__PURE__*/React.createElement(WarningListCapConnectWrapper, {
4554
4511
  productConfigKey: productConfigKey
4555
- })));
4512
+ }));
4556
4513
  }
4557
4514
  default:
4558
4515
  return null;
4559
4516
  }
4560
4517
  };
4561
4518
 
4562
- export { ComponentsLookUp, capModuleConfig, reducer as capReducer };
4519
+ /* *
4520
+ * Licensed under the Apache License, Version 2.0 (the "License");
4521
+ * you may not use this file except in compliance with the License.
4522
+ * You may obtain a copy of the License at
4523
+ *
4524
+ * http://www.apache.org/licenses/LICENSE-2.0
4525
+ *
4526
+ * Unless required by applicable law or agreed to in writing, software
4527
+ * distributed under the License is distributed on an "AS IS" BASIS,
4528
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4529
+ * See the License for the specific language governing permissions and
4530
+ * limitations under the License.
4531
+ *
4532
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
4533
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
4534
+ * */
4535
+ const capModuleConfig = {
4536
+ id: 'capStore-module',
4537
+ reducersMap: {
4538
+ capStore: reducer
4539
+ }
4540
+ };
4541
+
4542
+ export { ComponentsLookUp, capModuleConfig, reducer as capReducer, capTrans };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/cap",
3
- "version": "9.14.0",
3
+ "version": "9.16.0",
4
4
  "description": "GeoWeb Common Alerting Protocol (CAP) library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/index.d.ts CHANGED
@@ -1 +1,3 @@
1
+ import capTrans from '../locales/cap.json';
1
2
  export * from './lib';
3
+ export { capTrans };
@@ -25,6 +25,5 @@ export interface CapStoreProviderProps extends ThemeProviderProps {
25
25
  store: Store;
26
26
  }
27
27
  export declare const CapThemeStoreProvider: React.FC<CapThemeStoreProviderProps>;
28
- export declare const CapTranslationsWrapper: React.FC<CapTranslationsWrapperProps>;
29
28
  export declare const CapI18nProvider: React.FC<CapTranslationsWrapperProps>;
30
29
  export {};