@opengeoweb/sigmet-airmet 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
@@ -15,6 +15,25 @@ import { LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSel
15
15
  import { useAuthenticationContext } from '@opengeoweb/authentication';
16
16
  import { Box as Box$1 } from '@mui/system';
17
17
 
18
+ var en = {
19
+ "sigmet-airmet": "sigmet"
20
+ };
21
+ var fi = {
22
+ "sigmet-airmet": "sigmet"
23
+ };
24
+ var no = {
25
+ "sigmet-airmet": "sigmet"
26
+ };
27
+ var nl = {
28
+ "sigmet-airmet": "sigmet"
29
+ };
30
+ var sigmetAirmet = {
31
+ en: en,
32
+ fi: fi,
33
+ no: no,
34
+ nl: nl
35
+ };
36
+
18
37
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
19
38
 
20
39
  var fails$o = function (exec) {
@@ -83,17 +102,17 @@ var $TypeError$i = TypeError;
83
102
 
84
103
  // `RequireObjectCoercible` abstract operation
85
104
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
86
- var requireObjectCoercible$6 = function (it) {
105
+ var requireObjectCoercible$7 = function (it) {
87
106
  if (isNullOrUndefined$4(it)) throw new $TypeError$i("Can't call method on " + it);
88
107
  return it;
89
108
  };
90
109
 
91
110
  // toObject with fallback for non-array-like ES3 strings
92
111
  var IndexedObject$2 = indexedObject;
93
- var requireObjectCoercible$5 = requireObjectCoercible$6;
112
+ var requireObjectCoercible$6 = requireObjectCoercible$7;
94
113
 
95
114
  var toIndexedObject$5 = function (it) {
96
- return IndexedObject$2(requireObjectCoercible$5(it));
115
+ return IndexedObject$2(requireObjectCoercible$6(it));
97
116
  };
98
117
 
99
118
  var check = function (it) {
@@ -101,7 +120,7 @@ var check = function (it) {
101
120
  };
102
121
 
103
122
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
104
- var global$o =
123
+ var global$n =
105
124
  // eslint-disable-next-line es/no-global-this -- safe
106
125
  check(typeof globalThis == 'object' && globalThis) ||
107
126
  check(typeof window == 'object' && window) ||
@@ -112,49 +131,49 @@ var global$o =
112
131
  // eslint-disable-next-line no-new-func -- fallback
113
132
  (function () { return this; })() || Function('return this')();
114
133
 
115
- var shared$4 = {exports: {}};
134
+ var sharedStore = {exports: {}};
116
135
 
117
- var global$n = global$o;
136
+ var global$m = global$n;
118
137
 
119
138
  // eslint-disable-next-line es/no-object-defineproperty -- safe
120
139
  var defineProperty$7 = Object.defineProperty;
121
140
 
122
141
  var defineGlobalProperty$3 = function (key, value) {
123
142
  try {
124
- defineProperty$7(global$n, key, { value: value, configurable: true, writable: true });
143
+ defineProperty$7(global$m, key, { value: value, configurable: true, writable: true });
125
144
  } catch (error) {
126
- global$n[key] = value;
145
+ global$m[key] = value;
127
146
  } return value;
128
147
  };
129
148
 
130
- var global$m = global$o;
149
+ var globalThis$1 = global$n;
131
150
  var defineGlobalProperty$2 = defineGlobalProperty$3;
132
151
 
133
152
  var SHARED = '__core-js_shared__';
134
- var store$3 = global$m[SHARED] || defineGlobalProperty$2(SHARED, {});
135
-
136
- var sharedStore = store$3;
153
+ var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
137
154
 
138
- var store$2 = sharedStore;
139
-
140
- (shared$4.exports = function (key, value) {
141
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
142
- })('versions', []).push({
143
- version: '3.35.1',
155
+ (store$3.versions || (store$3.versions = [])).push({
156
+ version: '3.36.1',
144
157
  mode: 'global',
145
158
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
146
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
159
+ license: 'https://github.com/zloirock/core-js/blob/v3.36.1/LICENSE',
147
160
  source: 'https://github.com/zloirock/core-js'
148
161
  });
149
162
 
150
- var requireObjectCoercible$4 = requireObjectCoercible$6;
163
+ var store$2 = sharedStore.exports;
164
+
165
+ var shared$4 = function (key, value) {
166
+ return store$2[key] || (store$2[key] = value || {});
167
+ };
168
+
169
+ var requireObjectCoercible$5 = requireObjectCoercible$7;
151
170
 
152
171
  var $Object$3 = Object;
153
172
 
154
173
  // `ToObject` abstract operation
155
174
  // https://tc39.es/ecma262/#sec-toobject
156
175
  var toObject$6 = function (argument) {
157
- return $Object$3(requireObjectCoercible$4(argument));
176
+ return $Object$3(requireObjectCoercible$5(argument));
158
177
  };
159
178
 
160
179
  var uncurryThis$k = functionUncurryThis;
@@ -181,7 +200,7 @@ var uid$2 = function (key) {
181
200
 
182
201
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
183
202
 
184
- var global$l = global$o;
203
+ var global$l = global$n;
185
204
  var userAgent$3 = engineUserAgent;
186
205
 
187
206
  var process$3 = global$l.process;
@@ -212,7 +231,7 @@ var engineV8Version = version;
212
231
  /* eslint-disable es/no-symbol -- required for testing */
213
232
  var V8_VERSION$1 = engineV8Version;
214
233
  var fails$l = fails$o;
215
- var global$k = global$o;
234
+ var global$k = global$n;
216
235
 
217
236
  var $String$5 = global$k.String;
218
237
 
@@ -235,8 +254,8 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
235
254
  && !Symbol.sham
236
255
  && typeof Symbol.iterator == 'symbol';
237
256
 
238
- var global$j = global$o;
239
- var shared$3 = shared$4.exports;
257
+ var global$j = global$n;
258
+ var shared$3 = shared$4;
240
259
  var hasOwn$b = hasOwnProperty_1;
241
260
  var uid$1 = uid$2;
242
261
  var NATIVE_SYMBOL = symbolConstructorDetection;
@@ -268,18 +287,18 @@ var isCallable$n = typeof documentAll == 'undefined' && documentAll !== undefine
268
287
 
269
288
  var isCallable$m = isCallable$n;
270
289
 
271
- var isObject$b = function (it) {
290
+ var isObject$c = function (it) {
272
291
  return typeof it == 'object' ? it !== null : isCallable$m(it);
273
292
  };
274
293
 
275
- var isObject$a = isObject$b;
294
+ var isObject$b = isObject$c;
276
295
 
277
296
  var $String$4 = String;
278
297
  var $TypeError$h = TypeError;
279
298
 
280
299
  // `Assert: Type(argument) is Object`
281
- var anObject$f = function (argument) {
282
- if (isObject$a(argument)) return argument;
300
+ var anObject$e = function (argument) {
301
+ if (isObject$b(argument)) return argument;
283
302
  throw new $TypeError$h($String$4(argument) + ' is not an object');
284
303
  };
285
304
 
@@ -308,12 +327,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$e && fails$j(function () {
308
327
 
309
328
  var objectDefineProperty = {};
310
329
 
311
- var global$i = global$o;
312
- var isObject$9 = isObject$b;
330
+ var global$i = global$n;
331
+ var isObject$a = isObject$c;
313
332
 
314
333
  var document$3 = global$i.document;
315
334
  // typeof document.createElement is 'object' in old IE
316
- var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
335
+ var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
317
336
 
318
337
  var documentCreateElement$2 = function (it) {
319
338
  return EXISTS$1 ? document$3.createElement(it) : {};
@@ -339,7 +358,7 @@ var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {
339
358
  return call$i.apply(call$i, arguments);
340
359
  };
341
360
 
342
- var global$h = global$o;
361
+ var global$h = global$n;
343
362
  var isCallable$l = isCallable$n;
344
363
 
345
364
  var aFunction = function (argument) {
@@ -401,7 +420,7 @@ var getMethod$4 = function (V, P) {
401
420
 
402
421
  var call$h = functionCall;
403
422
  var isCallable$i = isCallable$n;
404
- var isObject$8 = isObject$b;
423
+ var isObject$9 = isObject$c;
405
424
 
406
425
  var $TypeError$f = TypeError;
407
426
 
@@ -409,14 +428,14 @@ var $TypeError$f = TypeError;
409
428
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
410
429
  var ordinaryToPrimitive$1 = function (input, pref) {
411
430
  var fn, val;
412
- if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$8(val = call$h(fn, input))) return val;
413
- if (isCallable$i(fn = input.valueOf) && !isObject$8(val = call$h(fn, input))) return val;
414
- if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$8(val = call$h(fn, input))) return val;
431
+ if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
432
+ if (isCallable$i(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
433
+ if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
415
434
  throw new $TypeError$f("Can't convert object to primitive value");
416
435
  };
417
436
 
418
437
  var call$g = functionCall;
419
- var isObject$7 = isObject$b;
438
+ var isObject$8 = isObject$c;
420
439
  var isSymbol$1 = isSymbol$2;
421
440
  var getMethod$3 = getMethod$4;
422
441
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
@@ -428,13 +447,13 @@ var TO_PRIMITIVE = wellKnownSymbol$i('toPrimitive');
428
447
  // `ToPrimitive` abstract operation
429
448
  // https://tc39.es/ecma262/#sec-toprimitive
430
449
  var toPrimitive$1 = function (input, pref) {
431
- if (!isObject$7(input) || isSymbol$1(input)) return input;
450
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
432
451
  var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
433
452
  var result;
434
453
  if (exoticToPrim) {
435
454
  if (pref === undefined) pref = 'default';
436
455
  result = call$g(exoticToPrim, input, pref);
437
- if (!isObject$7(result) || isSymbol$1(result)) return result;
456
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
438
457
  throw new $TypeError$e("Can't convert object to primitive value");
439
458
  }
440
459
  if (pref === undefined) pref = 'number';
@@ -454,7 +473,7 @@ var toPropertyKey$2 = function (argument) {
454
473
  var DESCRIPTORS$c = descriptors;
455
474
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
456
475
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
457
- var anObject$e = anObject$f;
476
+ var anObject$d = anObject$e;
458
477
  var toPropertyKey$1 = toPropertyKey$2;
459
478
 
460
479
  var $TypeError$d = TypeError;
@@ -469,9 +488,9 @@ var WRITABLE = 'writable';
469
488
  // `Object.defineProperty` method
470
489
  // https://tc39.es/ecma262/#sec-object.defineproperty
471
490
  objectDefineProperty.f = DESCRIPTORS$c ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
472
- anObject$e(O);
491
+ anObject$d(O);
473
492
  P = toPropertyKey$1(P);
474
- anObject$e(Attributes);
493
+ anObject$d(Attributes);
475
494
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
476
495
  var current = $getOwnPropertyDescriptor$1(O, P);
477
496
  if (current && current[WRITABLE]) {
@@ -484,9 +503,9 @@ objectDefineProperty.f = DESCRIPTORS$c ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
484
503
  }
485
504
  } return $defineProperty(O, P, Attributes);
486
505
  } : $defineProperty : function defineProperty(O, P, Attributes) {
487
- anObject$e(O);
506
+ anObject$d(O);
488
507
  P = toPropertyKey$1(P);
489
- anObject$e(Attributes);
508
+ anObject$d(Attributes);
490
509
  if (IE8_DOM_DEFINE$1) try {
491
510
  return $defineProperty(O, P, Attributes);
492
511
  } catch (error) { /* empty */ }
@@ -557,6 +576,7 @@ var createMethod$3 = function (IS_INCLUDES) {
557
576
  return function ($this, el, fromIndex) {
558
577
  var O = toIndexedObject$4($this);
559
578
  var length = lengthOfArrayLike$3(O);
579
+ if (length === 0) return !IS_INCLUDES && -1;
560
580
  var index = toAbsoluteIndex(fromIndex, length);
561
581
  var value;
562
582
  // Array#includes uses SameValueZero equality algorithm
@@ -628,7 +648,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
628
648
  var DESCRIPTORS$b = descriptors;
629
649
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
630
650
  var definePropertyModule$3 = objectDefineProperty;
631
- var anObject$d = anObject$f;
651
+ var anObject$c = anObject$e;
632
652
  var toIndexedObject$2 = toIndexedObject$5;
633
653
  var objectKeys$1 = objectKeys$2;
634
654
 
@@ -636,7 +656,7 @@ var objectKeys$1 = objectKeys$2;
636
656
  // https://tc39.es/ecma262/#sec-object.defineproperties
637
657
  // eslint-disable-next-line es/no-object-defineproperties -- safe
638
658
  objectDefineProperties.f = DESCRIPTORS$b && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
639
- anObject$d(O);
659
+ anObject$c(O);
640
660
  var props = toIndexedObject$2(Properties);
641
661
  var keys = objectKeys$1(Properties);
642
662
  var length = keys.length;
@@ -650,7 +670,7 @@ var getBuiltIn$5 = getBuiltIn$7;
650
670
 
651
671
  var html$2 = getBuiltIn$5('document', 'documentElement');
652
672
 
653
- var shared$2 = shared$4.exports;
673
+ var shared$2 = shared$4;
654
674
  var uid = uid$2;
655
675
 
656
676
  var keys$1 = shared$2('keys');
@@ -660,7 +680,7 @@ var sharedKey$3 = function (key) {
660
680
  };
661
681
 
662
682
  /* global ActiveXObject -- old IE, WSH */
663
- var anObject$c = anObject$f;
683
+ var anObject$b = anObject$e;
664
684
  var definePropertiesModule = objectDefineProperties;
665
685
  var enumBugKeys$1 = enumBugKeys$3;
666
686
  var hiddenKeys$2 = hiddenKeys$4;
@@ -734,7 +754,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
734
754
  var objectCreate = Object.create || function create(O, Properties) {
735
755
  var result;
736
756
  if (O !== null) {
737
- EmptyConstructor[PROTOTYPE] = anObject$c(O);
757
+ EmptyConstructor[PROTOTYPE] = anObject$b(O);
738
758
  result = new EmptyConstructor();
739
759
  EmptyConstructor[PROTOTYPE] = null;
740
760
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -766,7 +786,7 @@ var addToUnscopables$2 = function (key) {
766
786
 
767
787
  var iterators = {};
768
788
 
769
- var global$g = global$o;
789
+ var global$g = global$n;
770
790
  var isCallable$h = isCallable$n;
771
791
 
772
792
  var WeakMap$1 = global$g.WeakMap;
@@ -794,11 +814,11 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value
794
814
  };
795
815
 
796
816
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
797
- var global$f = global$o;
798
- var isObject$6 = isObject$b;
817
+ var global$f = global$n;
818
+ var isObject$7 = isObject$c;
799
819
  var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
800
820
  var hasOwn$9 = hasOwnProperty_1;
801
- var shared$1 = sharedStore;
821
+ var shared$1 = sharedStore.exports;
802
822
  var sharedKey$1 = sharedKey$3;
803
823
  var hiddenKeys$1 = hiddenKeys$4;
804
824
 
@@ -814,7 +834,7 @@ var enforce = function (it) {
814
834
  var getterFor = function (TYPE) {
815
835
  return function (it) {
816
836
  var state;
817
- if (!isObject$6(it) || (state = get(it)).type !== TYPE) {
837
+ if (!isObject$7(it) || (state = get(it)).type !== TYPE) {
818
838
  throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
819
839
  } return state;
820
840
  };
@@ -927,7 +947,7 @@ var functionName = {
927
947
 
928
948
  var uncurryThis$g = functionUncurryThis;
929
949
  var isCallable$g = isCallable$n;
930
- var store = sharedStore;
950
+ var store = sharedStore.exports;
931
951
 
932
952
  var functionToString = uncurryThis$g(Function.toString);
933
953
 
@@ -1046,13 +1066,13 @@ var getBuiltIn$4 = getBuiltIn$7;
1046
1066
  var uncurryThis$e = functionUncurryThis;
1047
1067
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1048
1068
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1049
- var anObject$b = anObject$f;
1069
+ var anObject$a = anObject$e;
1050
1070
 
1051
1071
  var concat$2 = uncurryThis$e([].concat);
1052
1072
 
1053
1073
  // all object keys, includes non-enumerable and symbols
1054
1074
  var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1055
- var keys = getOwnPropertyNamesModule.f(anObject$b(it));
1075
+ var keys = getOwnPropertyNamesModule.f(anObject$a(it));
1056
1076
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1057
1077
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1058
1078
  };
@@ -1097,7 +1117,7 @@ var POLYFILL = isForced$3.POLYFILL = 'P';
1097
1117
 
1098
1118
  var isForced_1 = isForced$3;
1099
1119
 
1100
- var global$e = global$o;
1120
+ var global$e = global$n;
1101
1121
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1102
1122
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
1103
1123
  var defineBuiltIn$7 = defineBuiltIn$8;
@@ -1185,7 +1205,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
1185
1205
 
1186
1206
  var fails$e = fails$o;
1187
1207
  var isCallable$b = isCallable$n;
1188
- var isObject$5 = isObject$b;
1208
+ var isObject$6 = isObject$c;
1189
1209
  var getPrototypeOf$1 = objectGetPrototypeOf;
1190
1210
  var defineBuiltIn$6 = defineBuiltIn$8;
1191
1211
  var wellKnownSymbol$g = wellKnownSymbol$j;
@@ -1208,7 +1228,7 @@ if ([].keys) {
1208
1228
  }
1209
1229
  }
1210
1230
 
1211
- var NEW_ITERATOR_PROTOTYPE = !isObject$5(IteratorPrototype$2) || fails$e(function () {
1231
+ var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$e(function () {
1212
1232
  var test = {};
1213
1233
  // FF44- legacy iterators case
1214
1234
  return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
@@ -1268,10 +1288,10 @@ var functionUncurryThisAccessor = function (object, key, method) {
1268
1288
  } catch (error) { /* empty */ }
1269
1289
  };
1270
1290
 
1271
- var isObject$4 = isObject$b;
1291
+ var isObject$5 = isObject$c;
1272
1292
 
1273
1293
  var isPossiblePrototype$1 = function (argument) {
1274
- return isObject$4(argument) || argument === null;
1294
+ return isObject$5(argument) || argument === null;
1275
1295
  };
1276
1296
 
1277
1297
  var isPossiblePrototype = isPossiblePrototype$1;
@@ -1286,7 +1306,8 @@ var aPossiblePrototype$1 = function (argument) {
1286
1306
 
1287
1307
  /* eslint-disable no-proto -- safe */
1288
1308
  var uncurryThisAccessor = functionUncurryThisAccessor;
1289
- var anObject$a = anObject$f;
1309
+ var isObject$4 = isObject$c;
1310
+ var requireObjectCoercible$4 = requireObjectCoercible$7;
1290
1311
  var aPossiblePrototype = aPossiblePrototype$1;
1291
1312
 
1292
1313
  // `Object.setPrototypeOf` method
@@ -1303,8 +1324,9 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1303
1324
  CORRECT_SETTER = test instanceof Array;
1304
1325
  } catch (error) { /* empty */ }
1305
1326
  return function setPrototypeOf(O, proto) {
1306
- anObject$a(O);
1327
+ requireObjectCoercible$4(O);
1307
1328
  aPossiblePrototype(proto);
1329
+ if (!isObject$4(O)) return O;
1308
1330
  if (CORRECT_SETTER) setter(O, proto);
1309
1331
  else O.__proto__ = proto;
1310
1332
  return O;
@@ -1589,7 +1611,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1589
1611
 
1590
1612
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1591
1613
 
1592
- var global$d = global$o;
1614
+ var global$d = global$n;
1593
1615
  var DOMIterables = domIterables;
1594
1616
  var DOMTokenListPrototype = domTokenListPrototype;
1595
1617
  var ArrayIteratorMethods = es_array_iterator;
@@ -2120,6 +2142,8 @@ var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2120
2142
 
2121
2143
  var $TypeError$b = TypeError;
2122
2144
 
2145
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
2146
+
2123
2147
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
2124
2148
  var createMethod$2 = function (IS_RIGHT) {
2125
2149
  return function (that, callbackfn, argumentsLength, memo) {
@@ -2127,6 +2151,7 @@ var createMethod$2 = function (IS_RIGHT) {
2127
2151
  var self = IndexedObject(O);
2128
2152
  var length = lengthOfArrayLike$2(O);
2129
2153
  aCallable$6(callbackfn);
2154
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$b(REDUCE_EMPTY);
2130
2155
  var index = IS_RIGHT ? length - 1 : 0;
2131
2156
  var i = IS_RIGHT ? -1 : 1;
2132
2157
  if (argumentsLength < 2) while (true) {
@@ -2137,7 +2162,7 @@ var createMethod$2 = function (IS_RIGHT) {
2137
2162
  }
2138
2163
  index += i;
2139
2164
  if (IS_RIGHT ? index < 0 : length <= index) {
2140
- throw new $TypeError$b('Reduce of empty array with no initial value');
2165
+ throw new $TypeError$b(REDUCE_EMPTY);
2141
2166
  }
2142
2167
  }
2143
2168
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -2166,7 +2191,7 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2166
2191
  });
2167
2192
  };
2168
2193
 
2169
- var global$c = global$o;
2194
+ var global$c = global$n;
2170
2195
  var classof$8 = classofRaw$2;
2171
2196
 
2172
2197
  var engineIsNode = classof$8(global$c.process) === 'process';
@@ -2239,7 +2264,7 @@ var toString$8 = function (argument) {
2239
2264
  return $String(argument);
2240
2265
  };
2241
2266
 
2242
- var anObject$9 = anObject$f;
2267
+ var anObject$9 = anObject$e;
2243
2268
 
2244
2269
  // `RegExp.prototype.flags` getter implementation
2245
2270
  // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
@@ -2272,7 +2297,7 @@ var regexpGetFlags = function (R) {
2272
2297
 
2273
2298
  var PROPER_FUNCTION_NAME = functionName.PROPER;
2274
2299
  var defineBuiltIn$4 = defineBuiltIn$8;
2275
- var anObject$8 = anObject$f;
2300
+ var anObject$8 = anObject$e;
2276
2301
  var $toString = toString$8;
2277
2302
  var fails$a = fails$o;
2278
2303
  var getRegExpFlags$1 = regexpGetFlags;
@@ -2296,7 +2321,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
2296
2321
  }, { unsafe: true });
2297
2322
  }
2298
2323
 
2299
- var isObject$3 = isObject$b;
2324
+ var isObject$3 = isObject$c;
2300
2325
  var classof$5 = classofRaw$2;
2301
2326
  var wellKnownSymbol$a = wellKnownSymbol$j;
2302
2327
 
@@ -2338,7 +2363,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
2338
2363
  var $$a = _export;
2339
2364
  var uncurryThis$b = functionUncurryThis;
2340
2365
  var notARegExp = notARegexp;
2341
- var requireObjectCoercible$3 = requireObjectCoercible$6;
2366
+ var requireObjectCoercible$3 = requireObjectCoercible$7;
2342
2367
  var toString$7 = toString$8;
2343
2368
  var correctIsRegExpLogic = correctIsRegexpLogic;
2344
2369
 
@@ -2943,7 +2968,7 @@ var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u200
2943
2968
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2944
2969
 
2945
2970
  var uncurryThis$a = functionUncurryThis;
2946
- var requireObjectCoercible$2 = requireObjectCoercible$6;
2971
+ var requireObjectCoercible$2 = requireObjectCoercible$7;
2947
2972
  var toString$6 = toString$8;
2948
2973
  var whitespaces$1 = whitespaces$2;
2949
2974
 
@@ -2973,7 +2998,7 @@ var stringTrim = {
2973
2998
  trim: createMethod$1(3)
2974
2999
  };
2975
3000
 
2976
- var global$b = global$o;
3001
+ var global$b = global$n;
2977
3002
  var fails$9 = fails$o;
2978
3003
  var uncurryThis$9 = functionUncurryThis;
2979
3004
  var toString$5 = toString$8;
@@ -4992,6 +5017,7 @@ const Tac = ({
4992
5017
  }), children));
4993
5018
  };
4994
5019
 
5020
+ const source = 'app';
4995
5021
  const MapViewGeoJson = ({
4996
5022
  baseLayers: initialBaseLayers,
4997
5023
  projection: initialProjection,
@@ -5064,13 +5090,13 @@ const MapViewGeoJson = ({
5064
5090
  },
5065
5091
  "data-testid": "MapView"
5066
5092
  }, /*#__PURE__*/React.createElement(MapControls, null, /*#__PURE__*/React.createElement(LayerManagerMapButtonConnect, {
5067
- source: "module",
5093
+ source: source,
5068
5094
  mapId: mapId
5069
5095
  }), /*#__PURE__*/React.createElement(LegendMapButtonConnect, {
5070
- source: "module",
5096
+ source: source,
5071
5097
  mapId: mapId
5072
5098
  }), /*#__PURE__*/React.createElement(MultiDimensionSelectMapButtonsConnect, {
5073
- source: "module",
5099
+ source: source,
5074
5100
  mapId: mapId
5075
5101
  })), /*#__PURE__*/React.createElement(MapViewConnect, {
5076
5102
  mapId: mapId
@@ -5089,11 +5115,12 @@ const MapViewGeoJson = ({
5089
5115
  mapId: mapId
5090
5116
  })), /*#__PURE__*/React.createElement(LegendConnect, {
5091
5117
  showMapId: true,
5092
- mapId: mapId
5118
+ mapId: mapId,
5119
+ source: source
5093
5120
  }), /*#__PURE__*/React.createElement(LayerManagerConnect, {
5094
5121
  mapId: mapId,
5095
5122
  bounds: "parent",
5096
- source: "module",
5123
+ source: source,
5097
5124
  isDocked: true
5098
5125
  }));
5099
5126
  };
@@ -8304,7 +8331,7 @@ $$8({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
8304
8331
  });
8305
8332
 
8306
8333
  var isCallable$8 = isCallable$n;
8307
- var isObject$2 = isObject$b;
8334
+ var isObject$2 = isObject$c;
8308
8335
  var setPrototypeOf$1 = objectSetPrototypeOf;
8309
8336
 
8310
8337
  // makes subclassing work correct for wrapped built-ins
@@ -8323,7 +8350,7 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
8323
8350
  };
8324
8351
 
8325
8352
  var fails$7 = fails$o;
8326
- var global$a = global$o;
8353
+ var global$a = global$n;
8327
8354
 
8328
8355
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
8329
8356
  var $RegExp$2 = global$a.RegExp;
@@ -8391,7 +8418,7 @@ var setSpecies$2 = function (CONSTRUCTOR_NAME) {
8391
8418
  };
8392
8419
 
8393
8420
  var fails$6 = fails$o;
8394
- var global$9 = global$o;
8421
+ var global$9 = global$n;
8395
8422
 
8396
8423
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
8397
8424
  var $RegExp$1 = global$9.RegExp;
@@ -8402,7 +8429,7 @@ var regexpUnsupportedDotAll = fails$6(function () {
8402
8429
  });
8403
8430
 
8404
8431
  var fails$5 = fails$o;
8405
- var global$8 = global$o;
8432
+ var global$8 = global$n;
8406
8433
 
8407
8434
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
8408
8435
  var $RegExp = global$8.RegExp;
@@ -8414,7 +8441,7 @@ var regexpUnsupportedNcg = fails$5(function () {
8414
8441
  });
8415
8442
 
8416
8443
  var DESCRIPTORS$2 = descriptors;
8417
- var global$7 = global$o;
8444
+ var global$7 = global$n;
8418
8445
  var uncurryThis$8 = functionUncurryThis;
8419
8446
  var isForced$1 = isForced_1;
8420
8447
  var inheritIfRequired = inheritIfRequired$1;
@@ -8638,7 +8665,7 @@ var uncurryThis$7 = functionUncurryThis;
8638
8665
  var toString$3 = toString$8;
8639
8666
  var regexpFlags = regexpFlags$1;
8640
8667
  var stickyHelpers = regexpStickyHelpers;
8641
- var shared = shared$4.exports;
8668
+ var shared = shared$4;
8642
8669
  var create = objectCreate;
8643
8670
  var getInternalState = internalState.get;
8644
8671
  var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
@@ -8762,7 +8789,7 @@ $$7({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
8762
8789
  var $$6 = _export;
8763
8790
  var call$a = functionCall;
8764
8791
  var isCallable$7 = isCallable$n;
8765
- var anObject$7 = anObject$f;
8792
+ var anObject$7 = anObject$e;
8766
8793
  var toString$2 = toString$8;
8767
8794
 
8768
8795
  var DELEGATES_TO_EXEC = function () {
@@ -8882,7 +8909,7 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
8882
8909
  var uncurryThis$6 = functionUncurryThis;
8883
8910
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
8884
8911
  var toString$1 = toString$8;
8885
- var requireObjectCoercible$1 = requireObjectCoercible$6;
8912
+ var requireObjectCoercible$1 = requireObjectCoercible$7;
8886
8913
 
8887
8914
  var charAt$2 = uncurryThis$6(''.charAt);
8888
8915
  var charCodeAt = uncurryThis$6(''.charCodeAt);
@@ -8971,7 +8998,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
8971
8998
  };
8972
8999
 
8973
9000
  var call$7 = functionCall;
8974
- var anObject$6 = anObject$f;
9001
+ var anObject$6 = anObject$e;
8975
9002
  var isCallable$6 = isCallable$n;
8976
9003
  var classof$2 = classofRaw$2;
8977
9004
  var regexpExec = regexpExec$2;
@@ -8996,13 +9023,13 @@ var call$6 = functionCall;
8996
9023
  var uncurryThis$4 = functionUncurryThis;
8997
9024
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
8998
9025
  var fails$2 = fails$o;
8999
- var anObject$5 = anObject$f;
9026
+ var anObject$5 = anObject$e;
9000
9027
  var isCallable$5 = isCallable$n;
9001
9028
  var isNullOrUndefined$2 = isNullOrUndefined$5;
9002
9029
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
9003
9030
  var toLength = toLength$2;
9004
9031
  var toString = toString$8;
9005
- var requireObjectCoercible = requireObjectCoercible$6;
9032
+ var requireObjectCoercible = requireObjectCoercible$7;
9006
9033
  var advanceStringIndex = advanceStringIndex$1;
9007
9034
  var getMethod$2 = getMethod$4;
9008
9035
  var getSubstitution = getSubstitution$1;
@@ -10498,7 +10525,7 @@ const ProductFormDialogContent = ({
10498
10525
  areActionsDisabled: dialogActionsDisabled
10499
10526
  }),
10500
10527
  style: {
10501
- zIndex: 1000
10528
+ zIndex: 100
10502
10529
  },
10503
10530
  sx: {
10504
10531
  ' .MuiDialogContent-root': {
@@ -10812,7 +10839,7 @@ var aConstructor$1 = function (argument) {
10812
10839
  throw new $TypeError$4(tryToString$2(argument) + ' is not a constructor');
10813
10840
  };
10814
10841
 
10815
- var anObject$4 = anObject$f;
10842
+ var anObject$4 = anObject$e;
10816
10843
  var aConstructor = aConstructor$1;
10817
10844
  var isNullOrUndefined$1 = isNullOrUndefined$5;
10818
10845
  var wellKnownSymbol$4 = wellKnownSymbol$j;
@@ -10867,7 +10894,7 @@ var userAgent$2 = engineUserAgent;
10867
10894
  // eslint-disable-next-line redos/no-vulnerable -- safe
10868
10895
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
10869
10896
 
10870
- var global$6 = global$o;
10897
+ var global$6 = global$n;
10871
10898
  var apply = functionApply;
10872
10899
  var bind$3 = functionBindContext;
10873
10900
  var isCallable$3 = isCallable$n;
@@ -10984,7 +11011,7 @@ var task$1 = {
10984
11011
  clear: clear
10985
11012
  };
10986
11013
 
10987
- var global$5 = global$o;
11014
+ var global$5 = global$n;
10988
11015
  var DESCRIPTORS = descriptors;
10989
11016
 
10990
11017
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -11030,7 +11057,7 @@ var userAgent = engineUserAgent;
11030
11057
 
11031
11058
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
11032
11059
 
11033
- var global$4 = global$o;
11060
+ var global$4 = global$n;
11034
11061
  var safeGetBuiltIn = safeGetBuiltIn$1;
11035
11062
  var bind$2 = functionBindContext;
11036
11063
  var macrotask = task$1.set;
@@ -11124,7 +11151,7 @@ var perform$3 = function (exec) {
11124
11151
  }
11125
11152
  };
11126
11153
 
11127
- var global$3 = global$o;
11154
+ var global$3 = global$n;
11128
11155
 
11129
11156
  var promiseNativeConstructor = global$3.Promise;
11130
11157
 
@@ -11138,7 +11165,7 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
11138
11165
  && typeof window == 'object'
11139
11166
  && typeof document == 'object';
11140
11167
 
11141
- var global$2 = global$o;
11168
+ var global$2 = global$n;
11142
11169
  var NativePromiseConstructor$3 = promiseNativeConstructor;
11143
11170
  var isCallable$2 = isCallable$n;
11144
11171
  var isForced = isForced_1;
@@ -11208,7 +11235,7 @@ newPromiseCapability$2.f = function (C) {
11208
11235
 
11209
11236
  var $$5 = _export;
11210
11237
  var IS_NODE = engineIsNode;
11211
- var global$1 = global$o;
11238
+ var global$1 = global$n;
11212
11239
  var call$5 = functionCall;
11213
11240
  var defineBuiltIn$1 = defineBuiltIn$8;
11214
11241
  var setPrototypeOf = objectSetPrototypeOf;
@@ -11216,7 +11243,7 @@ var setToStringTag = setToStringTag$4;
11216
11243
  var setSpecies = setSpecies$2;
11217
11244
  var aCallable$3 = aCallable$9;
11218
11245
  var isCallable$1 = isCallable$n;
11219
- var isObject$1 = isObject$b;
11246
+ var isObject$1 = isObject$c;
11220
11247
  var anInstance = anInstance$1;
11221
11248
  var speciesConstructor = speciesConstructor$1;
11222
11249
  var task = task$1.set;
@@ -11520,7 +11547,7 @@ var getIteratorMethod$2 = function (it) {
11520
11547
 
11521
11548
  var call$4 = functionCall;
11522
11549
  var aCallable$2 = aCallable$9;
11523
- var anObject$3 = anObject$f;
11550
+ var anObject$3 = anObject$e;
11524
11551
  var tryToString$1 = tryToString$4;
11525
11552
  var getIteratorMethod$1 = getIteratorMethod$2;
11526
11553
 
@@ -11533,7 +11560,7 @@ var getIterator$1 = function (argument, usingIterator) {
11533
11560
  };
11534
11561
 
11535
11562
  var call$3 = functionCall;
11536
- var anObject$2 = anObject$f;
11563
+ var anObject$2 = anObject$e;
11537
11564
  var getMethod = getMethod$4;
11538
11565
 
11539
11566
  var iteratorClose$1 = function (iterator, kind, value) {
@@ -11558,7 +11585,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
11558
11585
 
11559
11586
  var bind = functionBindContext;
11560
11587
  var call$2 = functionCall;
11561
- var anObject$1 = anObject$f;
11588
+ var anObject$1 = anObject$e;
11562
11589
  var tryToString = tryToString$4;
11563
11590
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
11564
11591
  var lengthOfArrayLike = lengthOfArrayLike$4;
@@ -11779,8 +11806,8 @@ $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
11779
11806
  }
11780
11807
  });
11781
11808
 
11782
- var anObject = anObject$f;
11783
- var isObject = isObject$b;
11809
+ var anObject = anObject$e;
11810
+ var isObject = isObject$c;
11784
11811
  var newPromiseCapability = newPromiseCapability$2;
11785
11812
 
11786
11813
  var promiseResolve$1 = function (C, x) {
@@ -14390,4 +14417,4 @@ ConnectedModuleWrapper = null) => {
14390
14417
  }
14391
14418
  };
14392
14419
 
14393
- export { AirmetComponentsLookUp, AirmetForm, AirmetPhenomena, AirmetType, CloudLevelUnits, ContentDialog, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductList, ProductListRow, ProductStatusDescription, SigmetComponentsLookUp, SigmetForm, SigmetPhenomena, SigmetType, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createApi$1 as createApi, createApi as createFakeApi, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, sigmetConfig };
14420
+ export { AirmetComponentsLookUp, AirmetForm, AirmetPhenomena, AirmetType, CloudLevelUnits, ContentDialog, Direction, DownloadSigmetAirmetConfigWrapper, LevelUnits, MapViewGeoJson, MetInfoWrapper, MovementUnit, ProductList, ProductListRow, ProductStatusDescription, SigmetComponentsLookUp, SigmetForm, SigmetPhenomena, SigmetType, StartOrEndDrawing, VisibilityCause, WindUnit, airmetConfig, createApi$1 as createApi, createApi as createFakeApi, isInstanceOfAirmet, isInstanceOfCancelAirmet, isInstanceOfCancelSigmet, isInstanceOfCancelSigmetOrAirmet, isInstanceOfSigmet, isInstanceOfSigmetOrAirmet, sigmetAirmet as saTranslations, sigmetConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "9.14.0",
3
+ "version": "9.16.0",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,7 +25,9 @@
25
25
  "lodash": "^4.17.21",
26
26
  "@redux-eggs/redux-toolkit": "^2.2.0",
27
27
  "@redux-eggs/saga-extension": "^2.2.0",
28
- "@reduxjs/toolkit": "^1.9.7"
28
+ "@reduxjs/toolkit": "^1.9.7",
29
+ "i18next": "^23.7.11",
30
+ "react-i18next": "^13.5.0"
29
31
  },
30
32
  "peerDependencies": {
31
33
  "react": "18"
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import saTranslations from '../locales/sigmet-airmet.json';
1
2
  export * from './lib/components/ProductForms';
2
3
  export * from './lib/components/ContentDialog';
3
4
  export * from './lib/components/MapViewGeoJson';
@@ -8,3 +9,4 @@ export { createApi as createFakeApi } from './lib/utils/fakeApi';
8
9
  export { sigmetConfig, airmetConfig } from './lib/utils/config';
9
10
  export * from './lib/types';
10
11
  export * from './lib/components/ComponentsLookUp';
12
+ export { saTranslations };
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface SATranslationWrapperProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const SigmetAirmetI18nProvider: React.FC<SATranslationWrapperProps>;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Providers';
@@ -0,0 +1,2 @@
1
+ export declare const SA_NAMESPACE = "sigmetairmet";
2
+ export declare const initSigmetAirmetI18n: () => void;