@opengeoweb/taf 9.31.0 → 9.32.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.
package/index.esm.js CHANGED
@@ -425,7 +425,7 @@ var check = function (it) {
425
425
  };
426
426
 
427
427
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
428
- var global$m =
428
+ var globalThis_1 =
429
429
  // eslint-disable-next-line es/no-global-this -- safe
430
430
  check(typeof globalThis == 'object' && globalThis) ||
431
431
  check(typeof window == 'object' && window) ||
@@ -438,30 +438,30 @@ var global$m =
438
438
 
439
439
  var sharedStore = {exports: {}};
440
440
 
441
- var global$l = global$m;
441
+ var globalThis$n = globalThis_1;
442
442
 
443
443
  // eslint-disable-next-line es/no-object-defineproperty -- safe
444
444
  var defineProperty$6 = Object.defineProperty;
445
445
 
446
446
  var defineGlobalProperty$3 = function (key, value) {
447
447
  try {
448
- defineProperty$6(global$l, key, { value: value, configurable: true, writable: true });
448
+ defineProperty$6(globalThis$n, key, { value: value, configurable: true, writable: true });
449
449
  } catch (error) {
450
- global$l[key] = value;
450
+ globalThis$n[key] = value;
451
451
  } return value;
452
452
  };
453
453
 
454
- var globalThis$1 = global$m;
454
+ var globalThis$m = globalThis_1;
455
455
  var defineGlobalProperty$2 = defineGlobalProperty$3;
456
456
 
457
457
  var SHARED = '__core-js_shared__';
458
- var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
458
+ var store$3 = sharedStore.exports = globalThis$m[SHARED] || defineGlobalProperty$2(SHARED, {});
459
459
 
460
460
  (store$3.versions || (store$3.versions = [])).push({
461
- version: '3.37.1',
461
+ version: '3.39.0',
462
462
  mode: 'global',
463
463
  copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
464
- license: 'https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE',
464
+ license: 'https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE',
465
465
  source: 'https://github.com/zloirock/core-js'
466
466
  });
467
467
 
@@ -505,13 +505,18 @@ var uid$2 = function (key) {
505
505
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$9(++id + postfix, 36);
506
506
  };
507
507
 
508
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
508
+ var globalThis$l = globalThis_1;
509
509
 
510
- var global$k = global$m;
511
- var userAgent$5 = engineUserAgent;
510
+ var navigator = globalThis$l.navigator;
511
+ var userAgent$7 = navigator && navigator.userAgent;
512
512
 
513
- var process$3 = global$k.process;
514
- var Deno$1 = global$k.Deno;
513
+ var environmentUserAgent = userAgent$7 ? String(userAgent$7) : '';
514
+
515
+ var globalThis$k = globalThis_1;
516
+ var userAgent$6 = environmentUserAgent;
517
+
518
+ var process$3 = globalThis$k.process;
519
+ var Deno$1 = globalThis$k.Deno;
515
520
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
516
521
  var v8 = versions && versions.v8;
517
522
  var match, version;
@@ -525,22 +530,22 @@ if (v8) {
525
530
 
526
531
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
527
532
  // so check `userAgent` even if `.v8` exists, but 0
528
- if (!version && userAgent$5) {
529
- match = userAgent$5.match(/Edge\/(\d+)/);
533
+ if (!version && userAgent$6) {
534
+ match = userAgent$6.match(/Edge\/(\d+)/);
530
535
  if (!match || match[1] >= 74) {
531
- match = userAgent$5.match(/Chrome\/(\d+)/);
536
+ match = userAgent$6.match(/Chrome\/(\d+)/);
532
537
  if (match) version = +match[1];
533
538
  }
534
539
  }
535
540
 
536
- var engineV8Version = version;
541
+ var environmentV8Version = version;
537
542
 
538
543
  /* eslint-disable es/no-symbol -- required for testing */
539
- var V8_VERSION$1 = engineV8Version;
544
+ var V8_VERSION$1 = environmentV8Version;
540
545
  var fails$m = fails$p;
541
- var global$j = global$m;
546
+ var globalThis$j = globalThis_1;
542
547
 
543
- var $String$5 = global$j.String;
548
+ var $String$5 = globalThis$j.String;
544
549
 
545
550
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
546
551
  var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(function () {
@@ -557,18 +562,18 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(func
557
562
  /* eslint-disable es/no-symbol -- required for testing */
558
563
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
559
564
 
560
- var useSymbolAsUid = NATIVE_SYMBOL$1
561
- && !Symbol.sham
562
- && typeof Symbol.iterator == 'symbol';
565
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
566
+ !Symbol.sham &&
567
+ typeof Symbol.iterator == 'symbol';
563
568
 
564
- var global$i = global$m;
569
+ var globalThis$i = globalThis_1;
565
570
  var shared$3 = shared$4;
566
571
  var hasOwn$a = hasOwnProperty_1;
567
572
  var uid$1 = uid$2;
568
573
  var NATIVE_SYMBOL = symbolConstructorDetection;
569
574
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
570
575
 
571
- var Symbol$2 = global$i.Symbol;
576
+ var Symbol$2 = globalThis$i.Symbol;
572
577
  var WellKnownSymbolsStore = shared$3('wks');
573
578
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
574
579
 
@@ -634,10 +639,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () {
634
639
 
635
640
  var objectDefineProperty = {};
636
641
 
637
- var global$h = global$m;
642
+ var globalThis$h = globalThis_1;
638
643
  var isObject$9 = isObject$b;
639
644
 
640
- var document$3 = global$h.document;
645
+ var document$3 = globalThis$h.document;
641
646
  // typeof document.createElement is 'object' in old IE
642
647
  var EXISTS$1 = isObject$9(document$3) && isObject$9(document$3.createElement);
643
648
 
@@ -665,7 +670,7 @@ var functionCall = NATIVE_BIND$2 ? call$i.bind(call$i) : function () {
665
670
  return call$i.apply(call$i, arguments);
666
671
  };
667
672
 
668
- var global$g = global$m;
673
+ var globalThis$g = globalThis_1;
669
674
  var isCallable$j = isCallable$l;
670
675
 
671
676
  var aFunction = function (argument) {
@@ -673,7 +678,7 @@ var aFunction = function (argument) {
673
678
  };
674
679
 
675
680
  var getBuiltIn$7 = function (namespace, method) {
676
- return arguments.length < 2 ? aFunction(global$g[namespace]) : global$g[namespace] && global$g[namespace][method];
681
+ return arguments.length < 2 ? aFunction(globalThis$g[namespace]) : globalThis$g[namespace] && globalThis$g[namespace][method];
677
682
  };
678
683
 
679
684
  var uncurryThis$i = functionUncurryThis;
@@ -1012,7 +1017,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
1012
1017
  activeXDocument.write(scriptTag(''));
1013
1018
  activeXDocument.close();
1014
1019
  var temp = activeXDocument.parentWindow.Object;
1015
- activeXDocument = null; // avoid memory leak
1020
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
1021
+ activeXDocument = null;
1016
1022
  return temp;
1017
1023
  };
1018
1024
 
@@ -1093,10 +1099,10 @@ var addToUnscopables$2 = function (key) {
1093
1099
 
1094
1100
  var iterators = {};
1095
1101
 
1096
- var global$f = global$m;
1102
+ var globalThis$f = globalThis_1;
1097
1103
  var isCallable$f = isCallable$l;
1098
1104
 
1099
- var WeakMap$1 = global$f.WeakMap;
1105
+ var WeakMap$1 = globalThis$f.WeakMap;
1100
1106
 
1101
1107
  var weakMapBasicDetection = isCallable$f(WeakMap$1) && /native code/.test(String(WeakMap$1));
1102
1108
 
@@ -1121,7 +1127,7 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$8 ? function (object, key, value
1121
1127
  };
1122
1128
 
1123
1129
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
1124
- var global$e = global$m;
1130
+ var globalThis$e = globalThis_1;
1125
1131
  var isObject$6 = isObject$b;
1126
1132
  var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
1127
1133
  var hasOwn$8 = hasOwnProperty_1;
@@ -1130,8 +1136,8 @@ var sharedKey$1 = sharedKey$3;
1130
1136
  var hiddenKeys$1 = hiddenKeys$4;
1131
1137
 
1132
1138
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1133
- var TypeError$2 = global$e.TypeError;
1134
- var WeakMap = global$e.WeakMap;
1139
+ var TypeError$2 = globalThis$e.TypeError;
1140
+ var WeakMap = globalThis$e.WeakMap;
1135
1141
  var set$1, get, has;
1136
1142
 
1137
1143
  var enforce = function (it) {
@@ -1426,7 +1432,7 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
1426
1432
 
1427
1433
  var isForced_1 = isForced$2;
1428
1434
 
1429
- var global$d = global$m;
1435
+ var globalThis$d = globalThis_1;
1430
1436
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1431
1437
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1432
1438
  var defineBuiltIn$6 = defineBuiltIn$7;
@@ -1455,11 +1461,11 @@ var _export = function (options, source) {
1455
1461
  var STATIC = options.stat;
1456
1462
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1457
1463
  if (GLOBAL) {
1458
- target = global$d;
1464
+ target = globalThis$d;
1459
1465
  } else if (STATIC) {
1460
- target = global$d[TARGET] || defineGlobalProperty(TARGET, {});
1466
+ target = globalThis$d[TARGET] || defineGlobalProperty(TARGET, {});
1461
1467
  } else {
1462
- target = global$d[TARGET] && global$d[TARGET].prototype;
1468
+ target = globalThis$d[TARGET] && globalThis$d[TARGET].prototype;
1463
1469
  }
1464
1470
  if (target) for (key in source) {
1465
1471
  sourceProperty = source[key];
@@ -1785,7 +1791,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1785
1791
  var target = state.target;
1786
1792
  var index = state.index++;
1787
1793
  if (!target || index >= target.length) {
1788
- state.target = undefined;
1794
+ state.target = null;
1789
1795
  return createIterResultObject(undefined, true);
1790
1796
  }
1791
1797
  switch (state.kind) {
@@ -1876,10 +1882,30 @@ $$e({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }
1876
1882
  assign: assign
1877
1883
  });
1878
1884
 
1879
- var global$c = global$m;
1885
+ /* global Bun, Deno -- detection */
1886
+ var globalThis$c = globalThis_1;
1887
+ var userAgent$5 = environmentUserAgent;
1880
1888
  var classof$7 = classofRaw$2;
1881
1889
 
1882
- var engineIsNode = classof$7(global$c.process) === 'process';
1890
+ var userAgentStartsWith = function (string) {
1891
+ return userAgent$5.slice(0, string.length) === string;
1892
+ };
1893
+
1894
+ var environment = (function () {
1895
+ if (userAgentStartsWith('Bun/')) return 'BUN';
1896
+ if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
1897
+ if (userAgentStartsWith('Deno/')) return 'DENO';
1898
+ if (userAgentStartsWith('Node.js/')) return 'NODE';
1899
+ if (globalThis$c.Bun && typeof Bun.version == 'string') return 'BUN';
1900
+ if (globalThis$c.Deno && typeof Deno.version == 'object') return 'DENO';
1901
+ if (classof$7(globalThis$c.process) === 'process') return 'NODE';
1902
+ if (globalThis$c.window && globalThis$c.document) return 'BROWSER';
1903
+ return 'REST';
1904
+ })();
1905
+
1906
+ var ENVIRONMENT$1 = environment;
1907
+
1908
+ var environmentIsNode = ENVIRONMENT$1 === 'NODE';
1883
1909
 
1884
1910
  var makeBuiltIn = makeBuiltInExports;
1885
1911
  var defineProperty = objectDefineProperty;
@@ -2080,12 +2106,12 @@ var validateArgumentsLength$1 = function (passed, required) {
2080
2106
  return passed;
2081
2107
  };
2082
2108
 
2083
- var userAgent$4 = engineUserAgent;
2109
+ var userAgent$4 = environmentUserAgent;
2084
2110
 
2085
2111
  // eslint-disable-next-line redos/no-vulnerable -- safe
2086
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
2112
+ var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
2087
2113
 
2088
- var global$b = global$m;
2114
+ var globalThis$b = globalThis_1;
2089
2115
  var apply$1 = functionApply;
2090
2116
  var bind$3 = functionBindContext;
2091
2117
  var isCallable$5 = isCallable$l;
@@ -2095,16 +2121,16 @@ var html = html$2;
2095
2121
  var arraySlice$1 = arraySlice$2;
2096
2122
  var createElement = documentCreateElement$2;
2097
2123
  var validateArgumentsLength = validateArgumentsLength$1;
2098
- var IS_IOS$1 = engineIsIos;
2099
- var IS_NODE$4 = engineIsNode;
2100
-
2101
- var set = global$b.setImmediate;
2102
- var clear = global$b.clearImmediate;
2103
- var process$2 = global$b.process;
2104
- var Dispatch = global$b.Dispatch;
2105
- var Function$1 = global$b.Function;
2106
- var MessageChannel = global$b.MessageChannel;
2107
- var String$1 = global$b.String;
2124
+ var IS_IOS$1 = environmentIsIos;
2125
+ var IS_NODE$3 = environmentIsNode;
2126
+
2127
+ var set = globalThis$b.setImmediate;
2128
+ var clear = globalThis$b.clearImmediate;
2129
+ var process$2 = globalThis$b.process;
2130
+ var Dispatch = globalThis$b.Dispatch;
2131
+ var Function$1 = globalThis$b.Function;
2132
+ var MessageChannel = globalThis$b.MessageChannel;
2133
+ var String$1 = globalThis$b.String;
2108
2134
  var counter = 0;
2109
2135
  var queue$2 = {};
2110
2136
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -2112,7 +2138,7 @@ var $location, defer, channel, port;
2112
2138
 
2113
2139
  fails$c(function () {
2114
2140
  // Deno throws a ReferenceError on `location` access without `--location` flag
2115
- $location = global$b.location;
2141
+ $location = globalThis$b.location;
2116
2142
  });
2117
2143
 
2118
2144
  var run = function (id) {
@@ -2135,7 +2161,7 @@ var eventListener = function (event) {
2135
2161
 
2136
2162
  var globalPostMessageDefer = function (id) {
2137
2163
  // old engines have not location.origin
2138
- global$b.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2164
+ globalThis$b.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2139
2165
  };
2140
2166
 
2141
2167
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
@@ -2154,7 +2180,7 @@ if (!set || !clear) {
2154
2180
  delete queue$2[id];
2155
2181
  };
2156
2182
  // Node.js 0.8-
2157
- if (IS_NODE$4) {
2183
+ if (IS_NODE$3) {
2158
2184
  defer = function (id) {
2159
2185
  process$2.nextTick(runner(id));
2160
2186
  };
@@ -2173,14 +2199,14 @@ if (!set || !clear) {
2173
2199
  // Browsers with postMessage, skip WebWorkers
2174
2200
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2175
2201
  } else if (
2176
- global$b.addEventListener &&
2177
- isCallable$5(global$b.postMessage) &&
2178
- !global$b.importScripts &&
2202
+ globalThis$b.addEventListener &&
2203
+ isCallable$5(globalThis$b.postMessage) &&
2204
+ !globalThis$b.importScripts &&
2179
2205
  $location && $location.protocol !== 'file:' &&
2180
2206
  !fails$c(globalPostMessageDefer)
2181
2207
  ) {
2182
2208
  defer = globalPostMessageDefer;
2183
- global$b.addEventListener('message', eventListener, false);
2209
+ globalThis$b.addEventListener('message', eventListener, false);
2184
2210
  // IE8-
2185
2211
  } else if (ONREADYSTATECHANGE in createElement('script')) {
2186
2212
  defer = function (id) {
@@ -2202,7 +2228,7 @@ var task$1 = {
2202
2228
  clear: clear
2203
2229
  };
2204
2230
 
2205
- var global$a = global$m;
2231
+ var globalThis$a = globalThis_1;
2206
2232
  var DESCRIPTORS$1 = descriptors;
2207
2233
 
2208
2234
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -2210,8 +2236,8 @@ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2210
2236
 
2211
2237
  // Avoid NodeJS experimental warning
2212
2238
  var safeGetBuiltIn$1 = function (name) {
2213
- if (!DESCRIPTORS$1) return global$a[name];
2214
- var descriptor = getOwnPropertyDescriptor$1(global$a, name);
2239
+ if (!DESCRIPTORS$1) return globalThis$a[name];
2240
+ var descriptor = getOwnPropertyDescriptor$1(globalThis$a, name);
2215
2241
  return descriptor && descriptor.value;
2216
2242
  };
2217
2243
 
@@ -2240,28 +2266,28 @@ Queue$2.prototype = {
2240
2266
 
2241
2267
  var queue$1 = Queue$2;
2242
2268
 
2243
- var userAgent$3 = engineUserAgent;
2269
+ var userAgent$3 = environmentUserAgent;
2244
2270
 
2245
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
2271
+ var environmentIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
2246
2272
 
2247
- var userAgent$2 = engineUserAgent;
2273
+ var userAgent$2 = environmentUserAgent;
2248
2274
 
2249
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
2275
+ var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
2250
2276
 
2251
- var global$9 = global$m;
2277
+ var globalThis$9 = globalThis_1;
2252
2278
  var safeGetBuiltIn = safeGetBuiltIn$1;
2253
2279
  var bind$2 = functionBindContext;
2254
2280
  var macrotask = task$1.set;
2255
2281
  var Queue$1 = queue$1;
2256
- var IS_IOS = engineIsIos;
2257
- var IS_IOS_PEBBLE = engineIsIosPebble;
2258
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2259
- var IS_NODE$3 = engineIsNode;
2260
-
2261
- var MutationObserver = global$9.MutationObserver || global$9.WebKitMutationObserver;
2262
- var document$2 = global$9.document;
2263
- var process$1 = global$9.process;
2264
- var Promise$1 = global$9.Promise;
2282
+ var IS_IOS = environmentIsIos;
2283
+ var IS_IOS_PEBBLE = environmentIsIosPebble;
2284
+ var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
2285
+ var IS_NODE$2 = environmentIsNode;
2286
+
2287
+ var MutationObserver = globalThis$9.MutationObserver || globalThis$9.WebKitMutationObserver;
2288
+ var document$2 = globalThis$9.document;
2289
+ var process$1 = globalThis$9.process;
2290
+ var Promise$1 = globalThis$9.Promise;
2265
2291
  var microtask$1 = safeGetBuiltIn('queueMicrotask');
2266
2292
  var notify$1, toggle, node, promise, then;
2267
2293
 
@@ -2271,7 +2297,7 @@ if (!microtask$1) {
2271
2297
 
2272
2298
  var flush = function () {
2273
2299
  var parent, fn;
2274
- if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
2300
+ if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
2275
2301
  while (fn = queue.get()) try {
2276
2302
  fn();
2277
2303
  } catch (error) {
@@ -2283,7 +2309,7 @@ if (!microtask$1) {
2283
2309
 
2284
2310
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2285
2311
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2286
- if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2312
+ if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
2287
2313
  toggle = true;
2288
2314
  node = document$2.createTextNode('');
2289
2315
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -2301,7 +2327,7 @@ if (!microtask$1) {
2301
2327
  then(flush);
2302
2328
  };
2303
2329
  // Node.js without promises
2304
- } else if (IS_NODE$3) {
2330
+ } else if (IS_NODE$2) {
2305
2331
  notify$1 = function () {
2306
2332
  process$1.nextTick(flush);
2307
2333
  };
@@ -2313,7 +2339,7 @@ if (!microtask$1) {
2313
2339
  // - setTimeout
2314
2340
  } else {
2315
2341
  // `webpack` dev server bug on IE global methods - use bind(fn, global)
2316
- macrotask = bind$2(macrotask, global$9);
2342
+ macrotask = bind$2(macrotask, globalThis$9);
2317
2343
  notify$1 = function () {
2318
2344
  macrotask(flush);
2319
2345
  };
@@ -2342,34 +2368,23 @@ var perform$3 = function (exec) {
2342
2368
  }
2343
2369
  };
2344
2370
 
2345
- var global$8 = global$m;
2346
-
2347
- var promiseNativeConstructor = global$8.Promise;
2371
+ var globalThis$8 = globalThis_1;
2348
2372
 
2349
- /* global Deno -- Deno case */
2350
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
2373
+ var promiseNativeConstructor = globalThis$8.Promise;
2351
2374
 
2352
- var IS_DENO$1 = engineIsDeno;
2353
- var IS_NODE$2 = engineIsNode;
2354
-
2355
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
2356
- && typeof window == 'object'
2357
- && typeof document == 'object';
2358
-
2359
- var global$7 = global$m;
2375
+ var globalThis$7 = globalThis_1;
2360
2376
  var NativePromiseConstructor$3 = promiseNativeConstructor;
2361
2377
  var isCallable$4 = isCallable$l;
2362
2378
  var isForced = isForced_1;
2363
2379
  var inspectSource = inspectSource$3;
2364
2380
  var wellKnownSymbol$8 = wellKnownSymbol$i;
2365
- var IS_BROWSER = engineIsBrowser;
2366
- var IS_DENO = engineIsDeno;
2367
- var V8_VERSION = engineV8Version;
2381
+ var ENVIRONMENT = environment;
2382
+ var V8_VERSION = environmentV8Version;
2368
2383
 
2369
2384
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
2370
2385
  var SPECIES$1 = wellKnownSymbol$8('species');
2371
2386
  var SUBCLASSING = false;
2372
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(global$7.PromiseRejectionEvent);
2387
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(globalThis$7.PromiseRejectionEvent);
2373
2388
 
2374
2389
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2375
2390
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -2392,7 +2407,7 @@ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
2392
2407
  SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
2393
2408
  if (!SUBCLASSING) return true;
2394
2409
  // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
2395
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
2410
+ } return !GLOBAL_CORE_JS_PROMISE && (ENVIRONMENT === 'BROWSER' || ENVIRONMENT === 'DENO') && !NATIVE_PROMISE_REJECTION_EVENT$1;
2396
2411
  });
2397
2412
 
2398
2413
  var promiseConstructorDetection = {
@@ -2425,8 +2440,8 @@ newPromiseCapability$2.f = function (C) {
2425
2440
  };
2426
2441
 
2427
2442
  var $$d = _export;
2428
- var IS_NODE$1 = engineIsNode;
2429
- var global$6 = global$m;
2443
+ var IS_NODE$1 = environmentIsNode;
2444
+ var globalThis$6 = globalThis_1;
2430
2445
  var call$b = functionCall;
2431
2446
  var defineBuiltIn$3 = defineBuiltIn$7;
2432
2447
  var setPrototypeOf = objectSetPrototypeOf;
@@ -2456,13 +2471,13 @@ var setInternalState = InternalStateModule.set;
2456
2471
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
2457
2472
  var PromiseConstructor = NativePromiseConstructor$2;
2458
2473
  var PromisePrototype = NativePromisePrototype$1;
2459
- var TypeError$1 = global$6.TypeError;
2460
- var document$1 = global$6.document;
2461
- var process = global$6.process;
2474
+ var TypeError$1 = globalThis$6.TypeError;
2475
+ var document$1 = globalThis$6.document;
2476
+ var process = globalThis$6.process;
2462
2477
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
2463
2478
  var newGenericPromiseCapability = newPromiseCapability$1;
2464
2479
 
2465
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$6.dispatchEvent);
2480
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$6.dispatchEvent);
2466
2481
  var UNHANDLED_REJECTION = 'unhandledrejection';
2467
2482
  var REJECTION_HANDLED = 'rejectionhandled';
2468
2483
  var PENDING = 0;
@@ -2535,14 +2550,14 @@ var dispatchEvent = function (name, promise, reason) {
2535
2550
  event.promise = promise;
2536
2551
  event.reason = reason;
2537
2552
  event.initEvent(name, false, true);
2538
- global$6.dispatchEvent(event);
2553
+ globalThis$6.dispatchEvent(event);
2539
2554
  } else event = { promise: promise, reason: reason };
2540
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$6['on' + name])) handler(event);
2555
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$6['on' + name])) handler(event);
2541
2556
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
2542
2557
  };
2543
2558
 
2544
2559
  var onUnhandled = function (state) {
2545
- call$b(task, global$6, function () {
2560
+ call$b(task, globalThis$6, function () {
2546
2561
  var promise = state.facade;
2547
2562
  var value = state.value;
2548
2563
  var IS_UNHANDLED = isUnhandled(state);
@@ -2565,7 +2580,7 @@ var isUnhandled = function (state) {
2565
2580
  };
2566
2581
 
2567
2582
  var onHandleUnhandled = function (state) {
2568
- call$b(task, global$6, function () {
2583
+ call$b(task, globalThis$6, function () {
2569
2584
  var promise = state.facade;
2570
2585
  if (IS_NODE$1) {
2571
2586
  process.emit('rejectionHandled', promise);
@@ -2644,7 +2659,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2644
2659
  reactions: new Queue(),
2645
2660
  rejection: false,
2646
2661
  state: PENDING,
2647
- value: undefined
2662
+ value: null
2648
2663
  });
2649
2664
  };
2650
2665
 
@@ -2704,6 +2719,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
2704
2719
  }
2705
2720
  }
2706
2721
 
2722
+ // `Promise` constructor
2723
+ // https://tc39.es/ecma262/#sec-promise-executor
2707
2724
  $$d({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
2708
2725
  Promise: PromiseConstructor
2709
2726
  });
@@ -3053,10 +3070,10 @@ var regexpFlags$1 = function () {
3053
3070
  };
3054
3071
 
3055
3072
  var fails$b = fails$p;
3056
- var global$5 = global$m;
3073
+ var globalThis$5 = globalThis_1;
3057
3074
 
3058
3075
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
3059
- var $RegExp$2 = global$5.RegExp;
3076
+ var $RegExp$2 = globalThis$5.RegExp;
3060
3077
 
3061
3078
  var UNSUPPORTED_Y$1 = fails$b(function () {
3062
3079
  var re = $RegExp$2('a', 'y');
@@ -3084,10 +3101,10 @@ var regexpStickyHelpers = {
3084
3101
  };
3085
3102
 
3086
3103
  var fails$a = fails$p;
3087
- var global$4 = global$m;
3104
+ var globalThis$4 = globalThis_1;
3088
3105
 
3089
3106
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
3090
- var $RegExp$1 = global$4.RegExp;
3107
+ var $RegExp$1 = globalThis$4.RegExp;
3091
3108
 
3092
3109
  var regexpUnsupportedDotAll = fails$a(function () {
3093
3110
  var re = $RegExp$1('.', 's');
@@ -3095,10 +3112,10 @@ var regexpUnsupportedDotAll = fails$a(function () {
3095
3112
  });
3096
3113
 
3097
3114
  var fails$9 = fails$p;
3098
- var global$3 = global$m;
3115
+ var globalThis$3 = globalThis_1;
3099
3116
 
3100
3117
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
3101
- var $RegExp = global$3.RegExp;
3118
+ var $RegExp = globalThis$3.RegExp;
3102
3119
 
3103
3120
  var regexpUnsupportedNcg = fails$9(function () {
3104
3121
  var re = $RegExp('(?<a>b)', 'g');
@@ -3606,7 +3623,7 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
3606
3623
 
3607
3624
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
3608
3625
 
3609
- var global$2 = global$m;
3626
+ var globalThis$2 = globalThis_1;
3610
3627
  var DOMIterables = domIterables;
3611
3628
  var DOMTokenListPrototype = domTokenListPrototype;
3612
3629
  var ArrayIteratorMethods = es_array_iterator;
@@ -3638,55 +3655,11 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
3638
3655
  };
3639
3656
 
3640
3657
  for (var COLLECTION_NAME in DOMIterables) {
3641
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3658
+ handlePrototype(globalThis$2[COLLECTION_NAME] && globalThis$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
3642
3659
  }
3643
3660
 
3644
3661
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
3645
3662
 
3646
- /******************************************************************************
3647
- Copyright (c) Microsoft Corporation.
3648
-
3649
- Permission to use, copy, modify, and/or distribute this software for any
3650
- purpose with or without fee is hereby granted.
3651
-
3652
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3653
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3654
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3655
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3656
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3657
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3658
- PERFORMANCE OF THIS SOFTWARE.
3659
- ***************************************************************************** */
3660
- /* global Reflect, Promise, SuppressedError, Symbol */
3661
-
3662
-
3663
- function __rest(s, e) {
3664
- var t = {};
3665
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3666
- t[p] = s[p];
3667
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
3668
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3669
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3670
- t[p[i]] = s[p[i]];
3671
- }
3672
- return t;
3673
- }
3674
-
3675
- function __awaiter(thisArg, _arguments, P, generator) {
3676
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3677
- return new (P || (P = Promise))(function (resolve, reject) {
3678
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
3679
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
3680
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
3681
- step((generator = generator.apply(thisArg, _arguments || [])).next());
3682
- });
3683
- }
3684
-
3685
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
3686
- var e = new Error(message);
3687
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
3688
- };
3689
-
3690
3663
  var $$6 = _export;
3691
3664
  var $includes = arrayIncludes.includes;
3692
3665
  var fails$6 = fails$p;
@@ -3819,25 +3792,22 @@ const ViewModeButtons = ({
3819
3792
  t
3820
3793
  } = useTafTranslation();
3821
3794
  return !canBe.includes('CANCELLED') && !canBe.includes('CORRECTED') && !canBe.includes('AMENDED') ? null : jsxs(Fragment, {
3822
- children: [canBe.includes('CANCELLED') && jsx(Button, Object.assign({
3795
+ children: [canBe.includes('CANCELLED') && jsx(Button, {
3823
3796
  "data-testid": "canceltaf",
3824
3797
  variant: "tertiary",
3825
- onClick: () => onTafViewModeButtonPress('CANCEL')
3826
- }, {
3798
+ onClick: () => onTafViewModeButtonPress('CANCEL'),
3827
3799
  children: t('button-cancel')
3828
- })), canBe.includes('CORRECTED') && jsx(Button, Object.assign({
3800
+ }), canBe.includes('CORRECTED') && jsx(Button, {
3829
3801
  "data-testid": "correcttaf",
3830
3802
  variant: "tertiary",
3831
- onClick: () => onTafViewModeButtonPress('CORRECT')
3832
- }, {
3803
+ onClick: () => onTafViewModeButtonPress('CORRECT'),
3833
3804
  children: t('button-correct')
3834
- })), canBe.includes('AMENDED') && jsx(Button, Object.assign({
3805
+ }), canBe.includes('AMENDED') && jsx(Button, {
3835
3806
  "data-testid": "amendtaf",
3836
3807
  variant: "tertiary",
3837
- onClick: () => onTafViewModeButtonPress('AMEND')
3838
- }, {
3808
+ onClick: () => onTafViewModeButtonPress('AMEND'),
3839
3809
  children: t('button-amend')
3840
- }))]
3810
+ })]
3841
3811
  });
3842
3812
  };
3843
3813
  const TafFormButtons = ({
@@ -3850,14 +3820,13 @@ const TafFormButtons = ({
3850
3820
  const {
3851
3821
  t
3852
3822
  } = useTafTranslation();
3853
- return jsxs(Grid2, Object.assign({
3823
+ return jsxs(Grid2, {
3854
3824
  container: true,
3855
3825
  columns: 24,
3856
3826
  sx: [{
3857
3827
  justifyContent: 'flex-end'
3858
- }, ...(Array.isArray(buttonsStyle) ? buttonsStyle : [buttonsStyle])]
3859
- }, {
3860
- children: [jsx(Grid2, Object.assign({
3828
+ }, ...(Array.isArray(buttonsStyle) ? buttonsStyle : [buttonsStyle])],
3829
+ children: [jsx(Grid2, {
3861
3830
  container: true,
3862
3831
  columns: 24,
3863
3832
  size: {
@@ -3866,22 +3835,20 @@ const TafFormButtons = ({
3866
3835
  },
3867
3836
  sx: {
3868
3837
  justifyContent: 'flex-end'
3869
- }
3870
- }, {
3838
+ },
3871
3839
  children: _isFormDisabled ? jsx(ViewModeButtons, {
3872
3840
  canBe: _canBe,
3873
3841
  onTafViewModeButtonPress: onTafViewModeButtonPress
3874
3842
  }) : jsxs(Fragment, {
3875
- children: [jsx(Button, Object.assign({
3843
+ children: [jsx(Button, {
3876
3844
  "data-testid": "cleartaf",
3877
3845
  variant: "tertiary",
3878
3846
  onClick: () => {
3879
3847
  // Simply discard the changes and close the dialog.
3880
3848
  onTafEditModeButtonPress('CLEAR');
3881
- }
3882
- }, {
3849
+ },
3883
3850
  children: t('button-clear')
3884
- })), jsx(Button, Object.assign({
3851
+ }), jsx(Button, {
3885
3852
  "data-testid": "savedrafttaf",
3886
3853
  variant: "tertiary",
3887
3854
  onClick: () => {
@@ -3893,10 +3860,9 @@ const TafFormButtons = ({
3893
3860
  if action DRAFT_CORRECT - new status will be DRAFT_CORRECTED
3894
3861
  */
3895
3862
  onTafEditModeButtonPress(tafActionToDraftAction(tafAction));
3896
- }
3897
- }, {
3863
+ },
3898
3864
  children: t('button-save')
3899
- })), jsx(Button, Object.assign({
3865
+ }), jsx(Button, {
3900
3866
  "data-testid": "publishtaf",
3901
3867
  variant: "tertiary",
3902
3868
  onClick: () => {
@@ -3908,20 +3874,43 @@ const TafFormButtons = ({
3908
3874
  if action DRAFT_CORRECT - new status will be CORRECTED
3909
3875
  */
3910
3876
  onTafEditModeButtonPress(tafActionToPublishAction(tafAction));
3911
- }
3912
- }, {
3877
+ },
3913
3878
  children: t('button-publish')
3914
- }))]
3879
+ })]
3915
3880
  })
3916
- })), jsx(Grid2, {
3881
+ }), jsx(Grid2, {
3917
3882
  columns: 24,
3918
3883
  size: {
3919
3884
  sm: 1
3920
3885
  }
3921
3886
  })]
3922
- }));
3887
+ });
3923
3888
  };
3924
3889
 
3890
+ function _objectWithoutPropertiesLoose(r, e) {
3891
+ if (null == r) return {};
3892
+ var t = {};
3893
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
3894
+ if (e.indexOf(n) >= 0) continue;
3895
+ t[n] = r[n];
3896
+ }
3897
+ return t;
3898
+ }
3899
+ function _toPrimitive(t, r) {
3900
+ if ("object" != typeof t || !t) return t;
3901
+ var e = t[Symbol.toPrimitive];
3902
+ if (void 0 !== e) {
3903
+ var i = e.call(t, r );
3904
+ if ("object" != typeof i) return i;
3905
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3906
+ }
3907
+ return (String )(t);
3908
+ }
3909
+ function _toPropertyKey(t) {
3910
+ var i = _toPrimitive(t, "string");
3911
+ return "symbol" == typeof i ? i : i + "";
3912
+ }
3913
+
3925
3914
  var classof = classofRaw$2;
3926
3915
 
3927
3916
  // `IsArray` abstract operation
@@ -4067,8 +4056,8 @@ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
4067
4056
  var $$3 = _export;
4068
4057
  var $reduce = arrayReduce.left;
4069
4058
  var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
4070
- var CHROME_VERSION = engineV8Version;
4071
- var IS_NODE = engineIsNode;
4059
+ var CHROME_VERSION = environmentV8Version;
4060
+ var IS_NODE = environmentIsNode;
4072
4061
 
4073
4062
  // Chrome 80-82 has a critical bug
4074
4063
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
@@ -4147,15 +4136,15 @@ $$2({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
4147
4136
  }
4148
4137
  });
4149
4138
 
4150
- var global$1 = global$m;
4139
+ var globalThis$1 = globalThis_1;
4151
4140
  var fails$2 = fails$p;
4152
4141
  var uncurryThis$1 = functionUncurryThis;
4153
4142
  var toString$2 = toString$8;
4154
4143
  var trim = stringTrim.trim;
4155
4144
  var whitespaces = whitespaces$3;
4156
4145
 
4157
- var $parseInt$1 = global$1.parseInt;
4158
- var Symbol$1 = global$1.Symbol;
4146
+ var $parseInt$1 = globalThis$1.parseInt;
4147
+ var Symbol$1 = globalThis$1.Symbol;
4159
4148
  var ITERATOR = Symbol$1 && Symbol$1.iterator;
4160
4149
  var hex = /^[+-]?0x/i;
4161
4150
  var exec = uncurryThis$1(hex.exec);
@@ -4292,7 +4281,7 @@ const prependZeroes = (value, totalDigits) => {
4292
4281
  const zeroes = '0'.repeat(numZeroesToAdd);
4293
4282
  return zeroes + valueAsString;
4294
4283
  };
4295
- const getFieldValue = fieldValue => fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.trim().toUpperCase();
4284
+ const getFieldValue = fieldValue => fieldValue == null ? void 0 : fieldValue.trim().toUpperCase();
4296
4285
 
4297
4286
  const FORMAT_DAYS_HOURS = 'ddHH';
4298
4287
  const FORMAT_DAYS_HOURS_MINUTES = 'ddHHmm';
@@ -4444,7 +4433,7 @@ const validateValidField = (value, tafStart, tafEnd) => {
4444
4433
  // Validate length and ensure it doesn't contain any other characters than numbers and / and has either XXXX/XXXX or XXXXXX format
4445
4434
  if (trimmedValue.length < lengthFM || trimmedValue.length > lengthBECMGTEMPO || !(trimmedValue.match(/^[0-9]{4}\/[0-9]{4}$/) || trimmedValue.match(/^[0-9]{6}$/)) ||
4446
4435
  // only allow dates with / fully typed
4447
- (tafStart === null || tafStart === void 0 ? void 0 : tafStart.indexOf('/')) > -1 && trimmedValue.length !== lengthBECMGTEMPO || (tafEnd === null || tafEnd === void 0 ? void 0 : tafEnd.indexOf('/')) > -1 && trimmedValue.length !== lengthBECMGTEMPO) {
4436
+ (tafStart == null ? void 0 : tafStart.indexOf('/')) > -1 && trimmedValue.length !== lengthBECMGTEMPO || (tafEnd == null ? void 0 : tafEnd.indexOf('/')) > -1 && trimmedValue.length !== lengthBECMGTEMPO) {
4448
4437
  return invalidChangeValidInterFieldMessage;
4449
4438
  }
4450
4439
  // Ensure valid date(s) can be made
@@ -4578,7 +4567,7 @@ const config$1 = [{
4578
4567
  key: 'unit',
4579
4568
  size: 1
4580
4569
  }];
4581
- const configAsObject$1 = Object.assign(config$1).reduce((list, item) => Object.assign(Object.assign({}, list), {
4570
+ const configAsObject$1 = Object.assign(config$1).reduce((list, item) => Object.assign({}, list, {
4582
4571
  [item.key]: item
4583
4572
  }), {});
4584
4573
  // formatters
@@ -5198,15 +5187,12 @@ function parseWeatherToObject(value) {
5198
5187
  const trimmedWeather = Object.keys(value).reduce((obj, key) => {
5199
5188
  // only parse it if it has a value
5200
5189
  if (value[key] && String(value[key]).trim()) {
5201
- return Object.assign(Object.assign({}, obj), {
5190
+ return Object.assign({}, obj, {
5202
5191
  [key]: String(obj[key]).trim()
5203
5192
  });
5204
5193
  }
5205
5194
  // if it doesn't have a value, remove it from the list
5206
- const _a = obj,
5207
- _b = key;
5208
- _a[_b];
5209
- const rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
5195
+ const rest = _objectWithoutPropertiesLoose(obj, [key].map(_toPropertyKey));
5210
5196
  return rest;
5211
5197
  }, value);
5212
5198
  return trimmedWeather;
@@ -5229,7 +5215,7 @@ const config = [{
5229
5215
  key: 'unit',
5230
5216
  size: 2
5231
5217
  }];
5232
- const configAsObject = Object.assign(config).reduce((list, item) => Object.assign(Object.assign({}, list), {
5218
+ const configAsObject = Object.assign(config).reduce((list, item) => Object.assign({}, list, {
5233
5219
  [item.key]: item
5234
5220
  }), {});
5235
5221
  // wind formatters:
@@ -5309,13 +5295,13 @@ const extractValidateWindSections = (value, validation = false) => {
5309
5295
  const valDirection = validateDirection(direction);
5310
5296
  // If validated not ok - add validation feedback
5311
5297
  const validations = typeof valDirection === 'string' ? obj.validations.concat(valDirection) : obj.validations;
5312
- return Object.assign(Object.assign({}, obj), {
5298
+ return Object.assign({}, obj, {
5313
5299
  direction,
5314
5300
  remainder,
5315
5301
  validations
5316
5302
  });
5317
5303
  }
5318
- return Object.assign(Object.assign({}, obj), {
5304
+ return Object.assign({}, obj, {
5319
5305
  direction,
5320
5306
  remainder
5321
5307
  });
@@ -5335,13 +5321,13 @@ const extractValidateWindSections = (value, validation = false) => {
5335
5321
  const valSpeed = validateSpeed(speed);
5336
5322
  // If validated not ok - add validation feedback
5337
5323
  const validations = typeof valSpeed === 'string' ? obj.validations.concat(valSpeed) : obj.validations;
5338
- return Object.assign(Object.assign({}, obj), {
5324
+ return Object.assign({}, obj, {
5339
5325
  speed,
5340
5326
  remainder,
5341
5327
  validations
5342
5328
  });
5343
5329
  }
5344
- return Object.assign(Object.assign({}, obj), {
5330
+ return Object.assign({}, obj, {
5345
5331
  speed,
5346
5332
  remainder
5347
5333
  });
@@ -5366,13 +5352,13 @@ const extractValidateWindSections = (value, validation = false) => {
5366
5352
  // If validated not ok - add validation feedback
5367
5353
  typeof valGust === 'string' && returnObj.validations.push(valGust);
5368
5354
  const validations = typeof valGust === 'string' ? obj.validations.concat(valGust) : obj.validations;
5369
- return Object.assign(Object.assign({}, obj), {
5355
+ return Object.assign({}, obj, {
5370
5356
  gust,
5371
5357
  remainder,
5372
5358
  validations
5373
5359
  });
5374
5360
  }
5375
- return Object.assign(Object.assign({}, obj), {
5361
+ return Object.assign({}, obj, {
5376
5362
  gust,
5377
5363
  remainder
5378
5364
  });
@@ -5385,7 +5371,7 @@ const extractValidateWindSections = (value, validation = false) => {
5385
5371
  // Validate units
5386
5372
  const valUnits = validateUnit(returnObj.remainder);
5387
5373
  const validations = typeof valUnits === 'string' ? obj.validations.concat(valUnits) : obj.validations;
5388
- return Object.assign(Object.assign({}, obj), {
5374
+ return Object.assign({}, obj, {
5389
5375
  validations
5390
5376
  });
5391
5377
  }
@@ -5410,12 +5396,12 @@ const parseWindToObject = value => {
5410
5396
  // Extract wind sections - no validation
5411
5397
  const windSections = extractValidateWindSections(trimmedValue, false);
5412
5398
  const gust = windSections.gust === 'P99' || windSections.gust === '' ? windSections.gust : parseInt(windSections.gust, 10);
5413
- const windObject = Object.assign(Object.assign({
5399
+ const windObject = Object.assign({
5414
5400
  direction: windSections.direction === 'VRB' ? windSections.direction : parseInt(windSections.direction, 10),
5415
5401
  speed: windSections.speed === 'P99' ? windSections.speed : parseInt(windSections.speed, 10)
5416
5402
  }, gust !== '' ? {
5417
5403
  gust
5418
- } : {}), {
5404
+ } : {}, {
5419
5405
  unit: windSections.unit
5420
5406
  });
5421
5407
  return windObject;
@@ -5536,25 +5522,25 @@ const formatCloudsToString = clouds => {
5536
5522
  {
5537
5523
  if (clouds[key].verticalVisibility !== undefined) {
5538
5524
  // Format Vertical Visibility
5539
- return Object.assign(Object.assign({}, list), {
5525
+ return Object.assign({}, list, {
5540
5526
  [key]: `VV${prependZeroes(clouds[key].verticalVisibility, 3)}`
5541
5527
  });
5542
5528
  }
5543
5529
  if (clouds[key].coverage) {
5544
5530
  // Format Cloud
5545
- return Object.assign(Object.assign({}, list), {
5531
+ return Object.assign({}, list, {
5546
5532
  [key]: formatSingleCloud(clouds[key])
5547
5533
  });
5548
5534
  }
5549
5535
  // Format No Significant Clouds
5550
- return Object.assign(Object.assign({}, list), {
5536
+ return Object.assign({}, list, {
5551
5537
  [key]: clouds[key]
5552
5538
  });
5553
5539
  }
5554
5540
  default:
5555
5541
  {
5556
5542
  // Other cloud keys can only contain a cloud
5557
- return Object.assign(Object.assign({}, list), {
5543
+ return Object.assign({}, list, {
5558
5544
  [key]: formatSingleCloud(clouds[key])
5559
5545
  });
5560
5546
  }
@@ -5590,7 +5576,7 @@ const parseCloudsToObject = clouds => {
5590
5576
  const trimmedValue = String(clouds[key]).trim();
5591
5577
  if (isVerticalVisibility(trimmedValue)) {
5592
5578
  // Parse Vertical Visibility
5593
- return Object.assign(Object.assign({}, list), {
5579
+ return Object.assign({}, list, {
5594
5580
  [key]: {
5595
5581
  verticalVisibility: parseInt(trimmedValue.substring(2, 5), 10)
5596
5582
  }
@@ -5598,29 +5584,26 @@ const parseCloudsToObject = clouds => {
5598
5584
  }
5599
5585
  if (trimmedValue === 'NSC') {
5600
5586
  // Parse No Significant Clouds
5601
- return Object.assign(Object.assign({}, list), {
5587
+ return Object.assign({}, list, {
5602
5588
  [key]: trimmedValue
5603
5589
  });
5604
5590
  }
5605
5591
  // Parse Cloud
5606
- return Object.assign(Object.assign({}, list), {
5592
+ return Object.assign({}, list, {
5607
5593
  [key]: parseSingleCloud(trimmedValue)
5608
5594
  });
5609
5595
  }
5610
5596
  default:
5611
5597
  {
5612
5598
  // Other cloud keys can only contain a cloud
5613
- return Object.assign(Object.assign({}, list), {
5599
+ return Object.assign({}, list, {
5614
5600
  [key]: parseSingleCloud(String(clouds[key]))
5615
5601
  });
5616
5602
  }
5617
5603
  }
5618
5604
  }
5619
5605
  // if it doesn't have a value, remove it from the list
5620
- const _a = list,
5621
- _b = key;
5622
- _a[_b];
5623
- const rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
5606
+ const rest = _objectWithoutPropertiesLoose(list, [key].map(_toPropertyKey));
5624
5607
  return rest;
5625
5608
  }, clouds);
5626
5609
  };
@@ -5995,6 +5978,16 @@ const validateFourthCloud = (firstCloudValue, secondCloudValue, thirdCloudValue,
5995
5978
  const DATE_FORMAT_ISSUE_TIME = `ddHHmm'Z`;
5996
5979
  const DATE_FORMAT_BASE_TIME = 'HH:mm dd MMM';
5997
5980
 
5981
+ const _excluded$4 = ["cavOK"],
5982
+ _excluded2 = ["visibility"],
5983
+ _excluded3 = ["cloud"],
5984
+ _excluded4 = ["weather"],
5985
+ _excluded5 = ["wind"],
5986
+ _excluded6 = ["visibility"],
5987
+ _excluded7 = ["IS_DRAFT"],
5988
+ _excluded8 = ["changeGroups"],
5989
+ _excluded9 = ["valid"],
5990
+ _excluded10 = ["valid"];
5998
5991
  const emptyBaseForecast = {
5999
5992
  wind: '',
6000
5993
  visibility: '',
@@ -6021,29 +6014,29 @@ function formatFormValues(row) {
6021
6014
  switch (key) {
6022
6015
  case 'valid':
6023
6016
  {
6024
- return Object.assign(Object.assign({}, list), {
6017
+ return Object.assign({}, list, {
6025
6018
  valid: formatValidToString(list[key])
6026
6019
  });
6027
6020
  }
6028
6021
  case 'wind':
6029
6022
  {
6030
- return Object.assign(Object.assign({}, list), {
6023
+ return Object.assign({}, list, {
6031
6024
  wind: formatWindToString(list[key])
6032
6025
  });
6033
6026
  }
6034
6027
  case 'visibility':
6035
6028
  {
6036
6029
  // Assume if visibility field set - no cavOK
6037
- return Object.assign(Object.assign({}, list), {
6030
+ return Object.assign({}, list, {
6038
6031
  visibility: formatVisibilityToString(list[key])
6039
6032
  });
6040
6033
  }
6041
6034
  case 'cavOK':
6042
6035
  {
6043
6036
  // Assume if cavOK field set to true - no visibility field, otherwise return the original list containing the visibility and remove cavOK
6044
- const formData = __rest(list, ["cavOK"]);
6037
+ const formData = _objectWithoutPropertiesLoose(list, _excluded$4);
6045
6038
  if (list[key]) {
6046
- return Object.assign(Object.assign({}, formData), {
6039
+ return Object.assign({}, formData, {
6047
6040
  visibility: formatVisibilityToString(list[key])
6048
6041
  });
6049
6042
  }
@@ -6051,7 +6044,7 @@ function formatFormValues(row) {
6051
6044
  }
6052
6045
  case 'cloud':
6053
6046
  {
6054
- return Object.assign(Object.assign({}, list), {
6047
+ return Object.assign({}, list, {
6055
6048
  cloud: formatCloudsToString(list[key])
6056
6049
  });
6057
6050
  }
@@ -6068,29 +6061,29 @@ function reduceRowValues(row, tafStart, tafEnd) {
6068
6061
  switch (key) {
6069
6062
  case 'valid':
6070
6063
  {
6071
- return Object.assign(Object.assign({}, list), {
6064
+ return Object.assign({}, list, {
6072
6065
  valid: parseValidToObject(list[key], tafStart, tafEnd)
6073
6066
  });
6074
6067
  }
6075
6068
  case 'wind':
6076
6069
  {
6077
- return Object.assign(Object.assign({}, list), {
6070
+ return Object.assign({}, list, {
6078
6071
  wind: parseWindToObject(list[key])
6079
6072
  });
6080
6073
  }
6081
6074
  case 'visibility':
6082
6075
  {
6083
- return Object.assign(Object.assign({}, list), parseVisibilityToObject(list[key]));
6076
+ return Object.assign({}, list, parseVisibilityToObject(list[key]));
6084
6077
  }
6085
6078
  case 'weather':
6086
6079
  {
6087
- return Object.assign(Object.assign({}, list), {
6080
+ return Object.assign({}, list, {
6088
6081
  weather: parseWeatherToObject(list[key])
6089
6082
  });
6090
6083
  }
6091
6084
  case 'cloud':
6092
6085
  {
6093
- return Object.assign(Object.assign({}, list), {
6086
+ return Object.assign({}, list, {
6094
6087
  cloud: parseCloudsToObject(list[key])
6095
6088
  });
6096
6089
  }
@@ -6098,7 +6091,7 @@ function reduceRowValues(row, tafStart, tafEnd) {
6098
6091
  case 'change':
6099
6092
  case 'probability':
6100
6093
  {
6101
- return Object.assign(Object.assign({}, list), {
6094
+ return Object.assign({}, list, {
6102
6095
  [key]: String(list[key]).trim()
6103
6096
  });
6104
6097
  }
@@ -6117,7 +6110,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6117
6110
  {
6118
6111
  // if cavOK is set - remove visibility from the list
6119
6112
  if (reducedRow.cavOK) {
6120
- const rest = __rest(list, ["visibility"]);
6113
+ const rest = _objectWithoutPropertiesLoose(list, _excluded2);
6121
6114
  return rest;
6122
6115
  }
6123
6116
  return list;
@@ -6126,7 +6119,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6126
6119
  {
6127
6120
  // If cloud is undefined or empty, remove it from the list
6128
6121
  if (!reducedRow.cloud || Object.keys(reducedRow.cloud).length === 0) {
6129
- const rest = __rest(list, ["cloud"]);
6122
+ const rest = _objectWithoutPropertiesLoose(list, _excluded3);
6130
6123
  return rest;
6131
6124
  }
6132
6125
  return list;
@@ -6135,7 +6128,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6135
6128
  {
6136
6129
  // If empty, remove it from the list
6137
6130
  if (!reducedRow.weather.weather1) {
6138
- const rest = __rest(list, ["weather"]);
6131
+ const rest = _objectWithoutPropertiesLoose(list, _excluded4);
6139
6132
  return rest;
6140
6133
  }
6141
6134
  return list;
@@ -6144,7 +6137,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6144
6137
  {
6145
6138
  // If empty, remove it from the list
6146
6139
  if (!reducedRow.wind.direction && isNaN(Number(reducedRow.wind.direction))) {
6147
- const rest = __rest(list, ["wind"]);
6140
+ const rest = _objectWithoutPropertiesLoose(list, _excluded5);
6148
6141
  return rest;
6149
6142
  }
6150
6143
  return list;
@@ -6153,7 +6146,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6153
6146
  {
6154
6147
  // If empty, remove it from the list
6155
6148
  if (!reducedRow.visibility.range && isNaN(reducedRow.visibility.range)) {
6156
- const rest = __rest(list, ["visibility"]);
6149
+ const rest = _objectWithoutPropertiesLoose(list, _excluded6);
6157
6150
  return rest;
6158
6151
  }
6159
6152
  return list;
@@ -6162,10 +6155,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6162
6155
  case 'probability':
6163
6156
  // If empty, remove it from the list
6164
6157
  if (!reducedRow[key]) {
6165
- const _a = list,
6166
- _b = key;
6167
- _a[_b];
6168
- const rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
6158
+ const rest = _objectWithoutPropertiesLoose(list, [key].map(_toPropertyKey));
6169
6159
  return rest;
6170
6160
  }
6171
6161
  return list;
@@ -6173,10 +6163,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6173
6163
  {
6174
6164
  // If empty, remove it from the list
6175
6165
  if (!reducedRow[key]) {
6176
- const _c = list,
6177
- _d = key;
6178
- _c[_d];
6179
- const rest = __rest(_c, [typeof _d === "symbol" ? _d : _d + ""]);
6166
+ const rest = _objectWithoutPropertiesLoose(list, [key].map(_toPropertyKey));
6180
6167
  return rest;
6181
6168
  }
6182
6169
  return list;
@@ -6189,7 +6176,7 @@ function parseFormValues(row, tafStart, tafEnd) {
6189
6176
  }, reducedRow);
6190
6177
  }
6191
6178
  const convertTafValuesToObject = formData => {
6192
- const productToPost = __rest(formData, ["IS_DRAFT"]);
6179
+ const productToPost = _objectWithoutPropertiesLoose(formData, _excluded7);
6193
6180
  const tafStart = productToPost.validDateStart;
6194
6181
  const tafEnd = productToPost.validDateEnd;
6195
6182
  const parsedChangeGroups = productToPost.changeGroups && productToPost.changeGroups
@@ -6198,7 +6185,7 @@ const convertTafValuesToObject = formData => {
6198
6185
  // filter out empty changegroup rows
6199
6186
  .filter(value => Object.keys(value).length);
6200
6187
  const parsedBaseForecast = productToPost.baseForecast && parseFormValues(productToPost.baseForecast, tafStart, tafEnd);
6201
- const parsedFormValues = Object.assign(Object.assign({}, productToPost), {
6188
+ const parsedFormValues = Object.assign({}, productToPost, {
6202
6189
  baseForecast: parsedBaseForecast,
6203
6190
  changeGroups: parsedChangeGroups
6204
6191
  });
@@ -6208,7 +6195,7 @@ const convertTafValuesToObject = formData => {
6208
6195
  {
6209
6196
  // remove changeGroups when empty
6210
6197
  if (!parsedFormValues.changeGroups || !parsedFormValues.changeGroups.length) {
6211
- const rest = __rest(list, ["changeGroups"]);
6198
+ const rest = _objectWithoutPropertiesLoose(list, _excluded8);
6212
6199
  return rest;
6213
6200
  }
6214
6201
  return list;
@@ -6220,10 +6207,7 @@ const convertTafValuesToObject = formData => {
6220
6207
  {
6221
6208
  // remove when empty
6222
6209
  if (!parsedFormValues[key]) {
6223
- const _a = list,
6224
- _b = key;
6225
- _a[_b];
6226
- const rest = __rest(_a, [typeof _b === "symbol" ? _b : _b + ""]);
6210
+ const rest = _objectWithoutPropertiesLoose(list, [key].map(_toPropertyKey));
6227
6211
  return rest;
6228
6212
  }
6229
6213
  return list;
@@ -6244,14 +6228,14 @@ const shouldRetrieveTAC = product => {
6244
6228
  };
6245
6229
  const getFieldNames = (isChangeGroup, index) => {
6246
6230
  const namePrefix = !isChangeGroup ? 'baseForecast' : `changeGroups[${index}]`;
6247
- return Object.assign(Object.assign(Object.assign({}, !isChangeGroup && {
6231
+ return Object.assign({}, !isChangeGroup && {
6248
6232
  messageType: 'messageType',
6249
6233
  location: 'location',
6250
6234
  issueDate: 'issueDate'
6251
- }), isChangeGroup && {
6235
+ }, isChangeGroup && {
6252
6236
  probability: `${namePrefix}.probability`,
6253
6237
  change: `${namePrefix}.change`
6254
- }), {
6238
+ }, {
6255
6239
  valid: `${namePrefix}.valid`,
6256
6240
  wind: `${namePrefix}.wind`,
6257
6241
  visibility: `${namePrefix}.visibility`,
@@ -6333,7 +6317,7 @@ const useDragOrder = (trigger, move) => {
6333
6317
  const [oldIndex, newIndex] = lastDragOrder;
6334
6318
  if (oldIndex !== null && newIndex !== null) {
6335
6319
  // trigger validation of all fields
6336
- trigger();
6320
+ void trigger();
6337
6321
  }
6338
6322
  }, [lastDragOrder, trigger]);
6339
6323
  return {
@@ -6375,8 +6359,8 @@ const isTafAmendedCorrectedChanged = (originalTaf, currentTaf) => {
6375
6359
  baseForecast: currentBaseF,
6376
6360
  changeGroups: currentChG
6377
6361
  } = currentTaf;
6378
- const originalNoValid = __rest(originalBaseF, ["valid"]);
6379
- const currentNoValid = __rest(currentBaseF, ["valid"]);
6362
+ const originalNoValid = _objectWithoutPropertiesLoose(originalBaseF, _excluded9);
6363
+ const currentNoValid = _objectWithoutPropertiesLoose(currentBaseF, _excluded10);
6380
6364
  return !isEqual(originalNoValid, currentNoValid) || !isEqual(originalChG, currentChG);
6381
6365
  };
6382
6366
  const getConfirmationDialogContent = (action, isFormDirty, t) => {
@@ -6473,35 +6457,35 @@ const getAmendedCorrectedTafTimes = (taf, tafAction) => {
6473
6457
  start: _now,
6474
6458
  end: taf.baseForecast.valid.end
6475
6459
  };
6476
- return Object.assign(Object.assign({}, taf), {
6460
+ return Object.assign({}, taf, {
6477
6461
  previousValidDateStart,
6478
6462
  previousValidDateEnd,
6479
6463
  validDateStart: _now,
6480
- baseForecast: Object.assign(Object.assign({}, taf.baseForecast), {
6464
+ baseForecast: Object.assign({}, taf.baseForecast, {
6481
6465
  valid: validObj
6482
6466
  })
6483
6467
  });
6484
6468
  }
6485
- return Object.assign(Object.assign({}, taf), {
6469
+ return Object.assign({}, taf, {
6486
6470
  previousValidDateStart,
6487
6471
  previousValidDateEnd
6488
6472
  });
6489
6473
  };
6490
- const createChangeGroup = changeGroup => Object.assign(Object.assign(Object.assign({}, emptyChangegroup), changeGroup), {
6491
- weather: Object.assign(Object.assign({}, emptyChangegroup.weather), changeGroup.weather),
6492
- cloud: Object.assign(Object.assign({}, emptyChangegroup.cloud), changeGroup.cloud)
6474
+ const createChangeGroup = changeGroup => Object.assign({}, emptyChangegroup, changeGroup, {
6475
+ weather: Object.assign({}, emptyChangegroup.weather, changeGroup.weather),
6476
+ cloud: Object.assign({}, emptyChangegroup.cloud, changeGroup.cloud)
6493
6477
  });
6494
6478
  const prepareTafValues = (_taf, tafAction, addEmptyChangeGroups = false) => {
6495
- var _a;
6479
+ var _taf$changeGroups;
6496
6480
  // If action is AMEND/CORRECT/DRAFT_AMEND/DRAFT_CORRECTION - add previous valid start and end
6497
6481
  // If action is AMEND/DRAFT_AMEND - update validity start time to current time
6498
6482
  const taf = tafAction === 'AMEND' || tafAction === 'DRAFT_AMEND' || tafAction === 'CORRECT' || tafAction === 'DRAFT_CORRECT' ? getAmendedCorrectedTafTimes(_taf, tafAction) : _taf;
6499
6483
  const formattedBaseForecast = formatFormValues(taf.baseForecast);
6500
- const baseForecast = Object.assign(Object.assign(Object.assign({}, emptyBaseForecast), formattedBaseForecast), {
6501
- weather: Object.assign(Object.assign({}, emptyBaseForecast.weather), formattedBaseForecast.weather),
6502
- cloud: Object.assign(Object.assign({}, emptyBaseForecast.cloud), formattedBaseForecast.cloud)
6484
+ const baseForecast = Object.assign({}, emptyBaseForecast, formattedBaseForecast, {
6485
+ weather: Object.assign({}, emptyBaseForecast.weather, formattedBaseForecast.weather),
6486
+ cloud: Object.assign({}, emptyBaseForecast.cloud, formattedBaseForecast.cloud)
6503
6487
  });
6504
- const formattedChangeGroups = ((_a = taf.changeGroups) === null || _a === void 0 ? void 0 : _a.map(formatFormValues)) || [];
6488
+ const formattedChangeGroups = ((_taf$changeGroups = taf.changeGroups) == null ? void 0 : _taf$changeGroups.map(formatFormValues)) || [];
6505
6489
  const changeGroups = formattedChangeGroups.map(createChangeGroup);
6506
6490
  // If addEmptyChangeGroups is true - ensure there are at least MIN_NUMBER_CHANGE_GROUP changegroups
6507
6491
  if (addEmptyChangeGroups) {
@@ -6510,12 +6494,12 @@ const prepareTafValues = (_taf, tafAction, addEmptyChangeGroups = false) => {
6510
6494
  Array.from(Array(changeGroupsToAdd)).map(() => changeGroups.push(emptyChangegroup));
6511
6495
  }
6512
6496
  }
6513
- return Object.assign(Object.assign({
6497
+ return Object.assign({
6514
6498
  issueDate: '',
6515
6499
  previousId: null,
6516
6500
  previousValidDateStart: null,
6517
6501
  previousValidDateEnd: null
6518
- }, taf), {
6502
+ }, taf, {
6519
6503
  messageType: getMessageType(taf, tafAction),
6520
6504
  baseForecast,
6521
6505
  changeGroups,
@@ -6530,8 +6514,8 @@ const clearTafFormData = tafFormValues => {
6530
6514
  };
6531
6515
  const emptyChangeGroups = [];
6532
6516
  Array.from(Array(MIN_NUMBER_CHANGE_GROUP)).map(() => emptyChangeGroups.push(emptyChangegroup));
6533
- return Object.assign(Object.assign({}, tafFormValues), {
6534
- baseForecast: Object.assign(Object.assign({}, emptyBaseForecast), baseForecast),
6517
+ return Object.assign({}, tafFormValues, {
6518
+ baseForecast: Object.assign({}, emptyBaseForecast, baseForecast),
6535
6519
  // Add empty change groups
6536
6520
  changeGroups: emptyChangeGroups
6537
6521
  });
@@ -6577,7 +6561,7 @@ const DragHandle = ({
6577
6561
  isDisabled: _isDisabled = false,
6578
6562
  index
6579
6563
  }) => {
6580
- return jsx(CustomIconButton, Object.assign({
6564
+ return jsx(CustomIconButton, {
6581
6565
  className: "handle",
6582
6566
  "data-testid": `dragHandle-${index}`,
6583
6567
  disableRipple: true,
@@ -6592,10 +6576,9 @@ const DragHandle = ({
6592
6576
  backgroundColor: 'transparent'
6593
6577
  }
6594
6578
  }
6595
- }
6596
- }, {
6579
+ },
6597
6580
  children: jsx(DragHandle$1, {})
6598
- }));
6581
+ });
6599
6582
  };
6600
6583
 
6601
6584
  /* *
@@ -6616,7 +6599,7 @@ const DragHandle = ({
6616
6599
  * Copyright 2024 - The Norwegian Meteorological Institute (MET Norway)
6617
6600
  * */
6618
6601
  const getCustomError = (error, isChangeGroup, rowIndex) => {
6619
- return Object.assign(Object.assign({}, error), {
6602
+ return Object.assign({}, error, {
6620
6603
  isChangeGroup,
6621
6604
  rowIndex
6622
6605
  });
@@ -6685,24 +6668,24 @@ const IssuesButton = ({
6685
6668
  const buttonColor = `geowebColors.functional.${errorStatus}`;
6686
6669
  const toggleIssuesPane = newPosition => _setIsIssuesPaneOpen(!_isIssuesPaneOpen, newPosition);
6687
6670
  const onClickButton = event => {
6688
- var _a;
6671
+ var _document$getElementB;
6689
6672
  const {
6690
6673
  left,
6691
6674
  top
6692
6675
  } = event.currentTarget.getBoundingClientRect();
6693
- const parentOffset = ((_a = document.getElementById('tafmodule')) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect()) || {
6676
+ const parentOffset = ((_document$getElementB = document.getElementById('tafmodule')) == null ? void 0 : _document$getElementB.getBoundingClientRect()) || {
6694
6677
  top: 0,
6695
6678
  left: 0
6696
6679
  };
6697
6680
  const newPosition = {
6698
6681
  left: left - parentOffset.left + 100,
6682
+ // button width margin
6699
6683
  top: top - parentOffset.top
6700
6684
  };
6701
6685
  toggleIssuesPane(newPosition);
6702
6686
  };
6703
- return jsx(CustomTooltip, Object.assign({
6704
- title: t('issues-button-title')
6705
- }, {
6687
+ return jsx(CustomTooltip, {
6688
+ title: t('issues-button-title'),
6706
6689
  children: jsx(Chip, {
6707
6690
  "data-testid": "issuesButton",
6708
6691
  className: `status-${errorStatus}`,
@@ -6722,7 +6705,7 @@ const IssuesButton = ({
6722
6705
  fontSize: 12
6723
6706
  }
6724
6707
  })
6725
- }));
6708
+ });
6726
6709
  };
6727
6710
 
6728
6711
  const getPaneTitle = (sumOfErrors, t) => {
@@ -6783,7 +6766,7 @@ const IssuesPane = ({
6783
6766
  t
6784
6767
  } = useTafTranslation();
6785
6768
  const rootElement = document.getElementById(MODAL_DIALOG_ELEMENT) || document.body;
6786
- return /*#__PURE__*/ReactDOM.createPortal(jsx(ToolContainerDraggable, Object.assign({
6769
+ return /*#__PURE__*/ReactDOM.createPortal(jsx(ToolContainerDraggable, {
6787
6770
  startSize: {
6788
6771
  width: '577px',
6789
6772
  height: '200px'
@@ -6800,38 +6783,34 @@ const IssuesPane = ({
6800
6783
  if (event.x !== 0 && event.y !== 0) {
6801
6784
  _onUserHasDragged();
6802
6785
  }
6803
- }
6804
- }, {
6805
- children: jsxs(Box, Object.assign({
6786
+ },
6787
+ children: jsxs(Box, {
6806
6788
  component: "div",
6807
6789
  sx: {
6808
6790
  marginTop: '16px',
6809
6791
  marginLeft: '24px'
6810
- }
6811
- }, {
6812
- children: [_errorList.length === 0 && jsx(Box, Object.assign({
6792
+ },
6793
+ children: [_errorList.length === 0 && jsx(Box, {
6813
6794
  component: "div",
6814
6795
  sx: {
6815
6796
  fontSize: '4rem'
6816
6797
  },
6817
- "data-testid": "zeroIssuesImage"
6818
- }, {
6798
+ "data-testid": "zeroIssuesImage",
6819
6799
  children: jsx(ThumbsUp, {
6820
6800
  sx: {
6821
6801
  height: '69px',
6822
6802
  width: '58px'
6823
6803
  }
6824
6804
  })
6825
- })), _errorList.length > 0 && _errorList.map((error, index) => jsx(Typography
6805
+ }), _errorList.length > 0 && _errorList.map((error, index) => jsx(Typography
6826
6806
  // eslint-disable-next-line react/no-array-index-key
6827
- , Object.assign({
6807
+ , {
6828
6808
  variant: "body1",
6829
- "data-testid": "errorMessage"
6830
- }, {
6809
+ "data-testid": "errorMessage",
6831
6810
  children: getErrorMessage(error, index)
6832
- }), `message-${index}`))]
6833
- }))
6834
- })), rootElement);
6811
+ }, `message-${index}`))]
6812
+ })
6813
+ }), rootElement);
6835
6814
  };
6836
6815
 
6837
6816
  const TafModuleContext = /*#__PURE__*/React.createContext({
@@ -6876,44 +6855,41 @@ const TafModuleProvider = ({
6876
6855
  const contextState = useTafModuleState({
6877
6856
  onPreventCloseView: _onPreventCloseView
6878
6857
  });
6879
- return jsx(TafModuleContext.Provider, Object.assign({
6880
- value: contextState
6881
- }, {
6858
+ return jsx(TafModuleContext.Provider, {
6859
+ value: contextState,
6882
6860
  children: children
6883
- }));
6861
+ });
6884
6862
  };
6885
6863
 
6886
6864
  const TafAvatar = ({
6887
6865
  editor,
6888
6866
  tooltipPlacement: _tooltipPlacement = 'bottom'
6889
6867
  }) => {
6890
- return jsx(CustomTooltip, Object.assign({
6868
+ return jsx(CustomTooltip, {
6891
6869
  title: `Editor: ${editor}`,
6892
- placement: _tooltipPlacement
6893
- }, {
6870
+ placement: _tooltipPlacement,
6894
6871
  children: jsx("span", {
6895
- children: jsx(Avatar, Object.assign({
6896
- size: "small"
6897
- }, {
6872
+ children: jsx(Avatar, {
6873
+ size: "small",
6898
6874
  children: getInitials(editor)
6899
- }))
6875
+ })
6900
6876
  })
6901
- }));
6877
+ });
6902
6878
  };
6903
6879
 
6904
6880
  const TAF_MODULE_ID = 'tafmodule';
6905
6881
  const ResponsiveWrapper = ({
6906
6882
  children
6907
- }) => jsx(Box, Object.assign({
6883
+ }) => jsx(Box, {
6908
6884
  sx: {
6909
6885
  containerType: 'inline-size',
6910
6886
  containerName: TAF_MODULE_ID,
6911
6887
  height: '100%'
6912
- }
6913
- }, {
6888
+ },
6914
6889
  children: children
6915
- }));
6890
+ });
6916
6891
 
6892
+ const _excluded$3 = ["shouldPreventUppercase"];
6917
6893
  const textFieldStyle = (theme, shouldPreventUppercase) => ({
6918
6894
  // input
6919
6895
  marginBottom: '4px',
@@ -6988,11 +6964,11 @@ const getTafErrors = (name, errors) => {
6988
6964
  return getDeepProperty(nameAsArray, errors);
6989
6965
  };
6990
6966
  const getDisplayValue = (value, disabled) => disabled && !value ? '-' : value;
6991
- const BaseTextField = /*#__PURE__*/React__default.memo(_a => {
6992
- var {
6967
+ const BaseTextField = /*#__PURE__*/React__default.memo(_ref => {
6968
+ let {
6993
6969
  shouldPreventUppercase = false
6994
- } = _a,
6995
- props = __rest(_a, ["shouldPreventUppercase"]);
6970
+ } = _ref,
6971
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
6996
6972
  const theme = useTheme();
6997
6973
  const styling = textFieldStyle(theme, shouldPreventUppercase);
6998
6974
  return jsx(TextField, Object.assign({
@@ -7073,12 +7049,11 @@ const TafFormTextField = ({
7073
7049
  _onBlur();
7074
7050
  }, [_onBlur, _name, setValue, _shouldPreventUppercase]);
7075
7051
  const hasError = !!fieldErrors;
7076
- return jsx(Grid2, Object.assign({
7052
+ return jsx(Grid2, {
7077
7053
  sx: {
7078
7054
  width: `${100 / 13}%`,
7079
7055
  minWidth: 60
7080
- }
7081
- }, {
7056
+ },
7082
7057
  children: jsx(Controller, {
7083
7058
  render: ({
7084
7059
  field
@@ -7108,7 +7083,7 @@ const TafFormTextField = ({
7108
7083
  defaultValue: _defaultValue,
7109
7084
  rules: rules
7110
7085
  })
7111
- }));
7086
+ });
7112
7087
  };
7113
7088
 
7114
7089
  /* *
@@ -7215,16 +7190,21 @@ const TafFormOptionsButton = ({
7215
7190
  });
7216
7191
  };
7217
7192
 
7193
+ const _excluded$2 = ["isNotRequiredForAction", "isChangeGroup", "disabled", "index", "onRemoveChangeGroup", "field", "dragHandle", "onAddChangeGroupBelow", "onAddChangeGroupAbove", "onClearRow"];
7218
7194
  const getDefaultValue = (fieldName, data) => {
7219
7195
  if (!data) {
7220
7196
  return '';
7221
7197
  }
7222
7198
  return String(getDeepProperty(fieldName.split('.'), data) || '');
7223
7199
  };
7224
- const getRequiredCrossFields = fieldNames => [[fieldNames.valid], [fieldNames.change, fieldNames.probability], [fieldNames.wind, fieldNames.visibility, fieldNames.weather1, fieldNames.cloud1] // sub fields
7200
+ const getRequiredCrossFields = fieldNames => [[fieldNames.valid],
7201
+ // main fields
7202
+ [fieldNames.change, fieldNames.probability],
7203
+ // main optional fields
7204
+ [fieldNames.wind, fieldNames.visibility, fieldNames.weather1, fieldNames.cloud1] // sub fields
7225
7205
  ];
7226
- const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7227
- var {
7206
+ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
7207
+ let {
7228
7208
  isNotRequiredForAction,
7229
7209
  isChangeGroup = false,
7230
7210
  disabled = false,
@@ -7235,8 +7215,8 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7235
7215
  onAddChangeGroupBelow = () => {},
7236
7216
  onAddChangeGroupAbove = () => {},
7237
7217
  onClearRow = () => {}
7238
- } = _a,
7239
- props = __rest(_a, ["isNotRequiredForAction", "isChangeGroup", "disabled", "index", "onRemoveChangeGroup", "field", "dragHandle", "onAddChangeGroupBelow", "onAddChangeGroupAbove", "onClearRow"]);
7218
+ } = _ref,
7219
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
7240
7220
  const namePrefix = !isChangeGroup ? 'baseForecast' : `changeGroups[${index}]`;
7241
7221
  const fieldNames = getFieldNames(isChangeGroup, index);
7242
7222
  const {
@@ -7358,15 +7338,13 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7358
7338
  '&.sortable-ghost': {
7359
7339
  opacity: 0.5
7360
7340
  }
7361
- }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]
7362
- }, {
7363
- children: [jsxs(Grid2, Object.assign({
7341
+ }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])],
7342
+ children: [jsxs(Grid2, {
7364
7343
  container: true,
7365
7344
  size: "grow",
7366
7345
  sx: {
7367
7346
  justifyContent: 'flex-end'
7368
- }
7369
- }, {
7347
+ },
7370
7348
  children: [!isChangeGroup && jsxs(Fragment, {
7371
7349
  children: [jsx(TafFormTextField, {
7372
7350
  label: "Type",
@@ -7384,16 +7362,15 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7384
7362
  shouldPreventUppercase: true
7385
7363
  })]
7386
7364
  }), isChangeGroup && jsxs(Fragment, {
7387
- children: [jsx(Box, Object.assign({
7365
+ children: [jsx(Box, {
7388
7366
  sx: {
7389
7367
  display: 'flex',
7390
7368
  justifyContent: 'center',
7391
7369
  marginRight: '2px',
7392
7370
  minWidth: 60
7393
- }
7394
- }, {
7371
+ },
7395
7372
  children: !disabled && dragHandle
7396
- })), jsx(TafFormTextField, {
7373
+ }), jsx(TafFormTextField, {
7397
7374
  label: "Prob",
7398
7375
  name: fieldNames.probability,
7399
7376
  disabled: disabled,
@@ -7414,7 +7391,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7414
7391
  onBlur: () => {
7415
7392
  if (isChangeGroup) {
7416
7393
  const nextValidFieldName = getValidFieldFromNextRow();
7417
- trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName]);
7394
+ void trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName]);
7418
7395
  }
7419
7396
  }
7420
7397
  }), jsx(TafFormTextField, {
@@ -7443,7 +7420,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7443
7420
  if (isChangeGroup) {
7444
7421
  const nextValidFieldName = getValidFieldFromNextRow();
7445
7422
  const previousValidFieldNames = getPreviousValidFields(index);
7446
- trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName, ...previousValidFieldNames]);
7423
+ void trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName, ...previousValidFieldNames]);
7447
7424
  }
7448
7425
  }
7449
7426
  })]
@@ -7466,7 +7443,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7466
7443
  if (isChangeGroup) {
7467
7444
  const nextValidFieldName = getValidFieldFromNextRow();
7468
7445
  const previousValidFieldNames = getPreviousValidFields(index);
7469
- trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName, ...previousValidFieldNames]);
7446
+ void trigger([...subFields, ...mainOptionalFields, ...mainFields, ...nextValidFieldName, ...previousValidFieldNames]);
7470
7447
  }
7471
7448
  }
7472
7449
  }), jsx(TafFormTextField, {
@@ -7483,7 +7460,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7483
7460
  },
7484
7461
  onBlur: () => {
7485
7462
  if (isChangeGroup) {
7486
- trigger([...subFields, ...mainFields]);
7463
+ void trigger([...subFields, ...mainFields]);
7487
7464
  }
7488
7465
  },
7489
7466
  autoFocus: !isChangeGroup
@@ -7505,7 +7482,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7505
7482
  }],
7506
7483
  onBlur: () => {
7507
7484
  const fields = isChangeGroup ? [...subFields, ...mainFields] : subFields;
7508
- trigger([...fields, fieldNames.weather1, fieldNames.weather2, fieldNames.weather3]);
7485
+ void trigger([...fields, fieldNames.weather1, fieldNames.weather2, fieldNames.weather3]);
7509
7486
  }
7510
7487
  }), jsx(TafFormTextField, {
7511
7488
  label: "Weather",
@@ -7603,7 +7580,7 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7603
7580
  }
7604
7581
  }
7605
7582
  })]
7606
- })), !disabled && jsx(Grid2, Object.assign({
7583
+ }), !disabled && jsx(Grid2, {
7607
7584
  container: true,
7608
7585
  sx: {
7609
7586
  justifyContent: 'flex-end',
@@ -7611,17 +7588,16 @@ const TafFormRow = /*#__PURE__*/React__default.forwardRef((_a, ref) => {
7611
7588
  width: '3.5%',
7612
7589
  marginBottom: '14px',
7613
7590
  minWidth: 28
7614
- }
7615
- }, {
7591
+ },
7616
7592
  children: jsx(TafFormOptionsButton, {
7617
7593
  isChangeGroup: isChangeGroup,
7618
7594
  addChangeGroupBelow: addChangeGroupBelow,
7619
7595
  addChangeGroupAbove: addChangeGroupAbove,
7620
- removeChangeGroup: () => onRemoveChangeGroup === null || onRemoveChangeGroup === void 0 ? void 0 : onRemoveChangeGroup(index),
7596
+ removeChangeGroup: () => onRemoveChangeGroup == null ? void 0 : onRemoveChangeGroup(index),
7621
7597
  clearRow: clearRow,
7622
7598
  index: index
7623
7599
  })
7624
- }))]
7600
+ })]
7625
7601
  }));
7626
7602
  });
7627
7603
 
@@ -7650,7 +7626,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7650
7626
  auth
7651
7627
  } = useAuthenticationContext();
7652
7628
  const dispatch = useDispatch();
7653
- const isEditor = editor === (auth === null || auth === void 0 ? void 0 : auth.username) || false;
7629
+ const isEditor = editor === (auth == null ? void 0 : auth.username) || false;
7654
7630
  const isDefaultDisabled = getIsFormDefaultDisabled(originalTaf.status);
7655
7631
  const confirmDialog = useConfirmationDialog();
7656
7632
  const {
@@ -7736,10 +7712,10 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7736
7712
  const isLatestEditor = (latestEditor, userName) => {
7737
7713
  return latestEditor !== '' && latestEditor !== null && latestEditor !== userName;
7738
7714
  };
7739
- const setIsEditor = checked => __awaiter(void 0, void 0, void 0, function* () {
7740
- const username = checked ? auth === null || auth === void 0 ? void 0 : auth.username : '';
7715
+ const setIsEditor = async checked => {
7716
+ const username = checked ? auth == null ? void 0 : auth.username : '';
7741
7717
  // make sure to get the latest changes
7742
- const latestList = yield _fetchNewTafList();
7718
+ const latestList = await _fetchNewTafList();
7743
7719
  const {
7744
7720
  editor: latestEditor
7745
7721
  } = latestList.find(taf => taf.taf.uuid === originalTaf.uuid);
@@ -7747,18 +7723,18 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7747
7723
  // do nothing, correct editor is already set
7748
7724
  return true;
7749
7725
  }
7750
- if (!checked && isLatestEditor(latestEditor, auth === null || auth === void 0 ? void 0 : auth.username)) {
7726
+ if (!checked && isLatestEditor(latestEditor, auth == null ? void 0 : auth.username)) {
7751
7727
  // do nothing, someone else is editor so user will already get set to viewer mode
7752
7728
  return true;
7753
7729
  }
7754
- if (checked && isLatestEditor(latestEditor, auth === null || auth === void 0 ? void 0 : auth.username)) {
7755
- yield confirmDialog({
7730
+ if (checked && isLatestEditor(latestEditor, auth == null ? void 0 : auth.username)) {
7731
+ await confirmDialog({
7756
7732
  title: t('switch-title'),
7757
7733
  description: t('switch-description'),
7758
7734
  confirmLabel: t('switch-confirm')
7759
7735
  });
7760
7736
  }
7761
- const didSucceed = yield _onSwitchEditor(Object.assign(Object.assign({}, tafFromBackend), {
7737
+ const didSucceed = await _onSwitchEditor(Object.assign({}, tafFromBackend, {
7762
7738
  editor: username
7763
7739
  }));
7764
7740
  if (didSucceed) {
@@ -7769,24 +7745,24 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7769
7745
  }));
7770
7746
  }
7771
7747
  return didSucceed;
7772
- });
7748
+ };
7773
7749
  const onSwitchMode = event => {
7774
7750
  const {
7775
7751
  checked
7776
7752
  } = event.target;
7777
7753
  if (!checked && isFormDirty) {
7778
- confirmDialog({
7754
+ void confirmDialog({
7779
7755
  title: t('confirm-dialog-title'),
7780
7756
  description: t('switch-description-viewer'),
7781
7757
  confirmLabel: t('switch-confirm-viewer')
7782
- }).then(() => __awaiter(void 0, void 0, void 0, function* () {
7783
- const didSucceed = yield setIsEditor(checked);
7758
+ }).then(async () => {
7759
+ const didSucceed = await setIsEditor(checked);
7784
7760
  if (didSucceed) {
7785
7761
  resetFormState(isDefaultDisabled, undefined);
7786
7762
  }
7787
- }));
7763
+ });
7788
7764
  } else {
7789
- setIsEditor(checked);
7765
+ void setIsEditor(checked);
7790
7766
  }
7791
7767
  };
7792
7768
  const onTafEditModeButtonPress = action => {
@@ -7795,13 +7771,13 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7795
7771
  case 'DRAFT_AMEND':
7796
7772
  case 'DRAFT_CORRECT':
7797
7773
  toggleIsDraft(true);
7798
- handleSubmit(data => {
7799
- _onFormAction(action, convertTafValuesToObject(data));
7774
+ void handleSubmit(data => {
7775
+ void _onFormAction(action, convertTafValuesToObject(data));
7800
7776
  resetFormValues(getValues());
7801
7777
  })();
7802
7778
  break;
7803
7779
  case 'CLEAR':
7804
- showConfirmDialog(action).then(() => {
7780
+ void showConfirmDialog(action).then(() => {
7805
7781
  const emptiedForm = clearTafFormData(getValues());
7806
7782
  resetFormValues(emptiedForm, true);
7807
7783
  showSnackbar(t('clear-message'));
@@ -7811,14 +7787,14 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7811
7787
  case 'CORRECT':
7812
7788
  case 'PUBLISH':
7813
7789
  toggleIsDraft(false);
7814
- handleSubmit(data => __awaiter(void 0, void 0, void 0, function* () {
7815
- yield showConfirmDialog(action);
7816
- const didSucceed = yield _onFormAction(action, convertTafValuesToObject(data));
7790
+ void handleSubmit(async data => {
7791
+ await showConfirmDialog(action);
7792
+ const didSucceed = await _onFormAction(action, convertTafValuesToObject(data));
7817
7793
  if (didSucceed) {
7818
7794
  resetFormState(true, null, convertTafValuesToObject(data));
7819
7795
  }
7820
7796
  return true;
7821
- }))().then(() => {
7797
+ })().then(() => {
7822
7798
  const hasFormErrors = Object.keys(errors).length;
7823
7799
  const formNodeRef = formRef.current;
7824
7800
  if (hasFormErrors && formNodeRef) {
@@ -7830,7 +7806,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7830
7806
  left
7831
7807
  } = getFormRowPosition(firstFormGroupWithError);
7832
7808
  const tafModuleNode = formNodeRef.closest('#tafmodule');
7833
- const tafModuleNodeTop = tafModuleNode === null || tafModuleNode === void 0 ? void 0 : tafModuleNode.getBoundingClientRect().top;
7809
+ const tafModuleNodeTop = tafModuleNode == null ? void 0 : tafModuleNode.getBoundingClientRect().top;
7834
7810
  const newTop = top - tafModuleNodeTop || 0;
7835
7811
  _setIsIssuesPaneOpen(true, {
7836
7812
  top: newTop,
@@ -7841,16 +7817,16 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7841
7817
  });
7842
7818
  break;
7843
7819
  default:
7844
- _onFormAction(action);
7820
+ void _onFormAction(action);
7845
7821
  break;
7846
7822
  }
7847
7823
  };
7848
7824
  const onTafViewModeButtonPress = action => {
7849
7825
  switch (action) {
7850
7826
  case 'CANCEL':
7851
- showConfirmDialog(action).then(() => __awaiter(void 0, void 0, void 0, function* () {
7852
- yield _onFormAction(action, convertTafValuesToObject(prepareTafValues(originalTaf, action)));
7853
- }));
7827
+ void showConfirmDialog(action).then(async () => {
7828
+ await _onFormAction(action, convertTafValuesToObject(prepareTafValues(originalTaf, action)));
7829
+ });
7854
7830
  break;
7855
7831
  default:
7856
7832
  resetFormState(false, action);
@@ -7858,13 +7834,13 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7858
7834
  }
7859
7835
  };
7860
7836
  const onRemoverow = index => {
7861
- confirmDialog({
7837
+ void confirmDialog({
7862
7838
  title: t('options-delete'),
7863
7839
  description: t('confirm-delete-description'),
7864
7840
  confirmLabel: t('confirm-yes')
7865
7841
  }).then(() => {
7866
7842
  remove(index);
7867
- trigger(); // trigger all fields validation
7843
+ void trigger(); // trigger all fields validation
7868
7844
  });
7869
7845
  };
7870
7846
  // TODO: https://gitlab.com/opengeoweb/opengeoweb/-/issues/726 insert (react-hook-form) does not work well with focus (only last row will get focus), so added this dirty solution. This can be fixed in a better way in react-hook-form v7
@@ -7878,7 +7854,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7878
7854
  // adding rows and validation don't work well combined, with always skipping validation of fields of rows above the one the inserted row. A setTimeout prevents this issue
7879
7855
  const setFocusAndValidate = rowIndex => setTimeout(() => {
7880
7856
  focusFirstInput(rowIndex);
7881
- trigger(); // trigger all fields validation
7857
+ void trigger(); // trigger all fields validation
7882
7858
  }, 0);
7883
7859
  const onAddRow = (rowIndex = -1, above = false) => {
7884
7860
  const newRowIndex = above ? rowIndex : rowIndex + 1;
@@ -7888,7 +7864,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7888
7864
  setFocusAndValidate(newRowIndex);
7889
7865
  };
7890
7866
  const onClearRow = (rowIndex = -1, isChangeGroup = false) => {
7891
- confirmDialog({
7867
+ void confirmDialog({
7892
7868
  title: t('options-clear'),
7893
7869
  description: t('confirm-clear-description'),
7894
7870
  confirmLabel: t('confirm-yes')
@@ -7921,7 +7897,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7921
7897
  // register validate method to use in parent components
7922
7898
  const onValidateFormPromise = () => new Promise((resolve, reject) => {
7923
7899
  toggleIsDraft(true);
7924
- handleSubmit(formData => {
7900
+ void handleSubmit(formData => {
7925
7901
  resolve(convertTafValuesToObject(formData));
7926
7902
  })().then(formData => {
7927
7903
  if (formData === undefined) {
@@ -7960,12 +7936,12 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7960
7936
  changeGroups = []
7961
7937
  } = originalTaf;
7962
7938
  const validFields = changeGroups.map((_field, index) => `changeGroups[${index}].valid`);
7963
- trigger(validFields);
7939
+ void trigger(validFields);
7964
7940
  }
7965
7941
  // eslint-disable-next-line react-hooks/exhaustive-deps
7966
7942
  }, [shouldValidate, _isDisabled]);
7967
7943
  return jsxs(Fragment, {
7968
- children: [jsxs(Box, Object.assign({
7944
+ children: [jsxs(Box, {
7969
7945
  sx: {
7970
7946
  display: 'flex',
7971
7947
  flexDirection: 'row',
@@ -7979,32 +7955,29 @@ const TafForm = /*#__PURE__*/React__default.memo(({
7979
7955
  xs: 'calc(50% - 70px)',
7980
7956
  sm: '8px'
7981
7957
  }
7982
- }
7983
- }, {
7958
+ },
7984
7959
  children: [jsx(SwitchButton, {
7985
7960
  checked: isEditor,
7986
7961
  onChange: onSwitchMode
7987
- }), jsx(Box, Object.assign({
7962
+ }), jsx(Box, {
7988
7963
  sx: {
7989
7964
  width: '16px',
7990
7965
  marginLeft: 1
7991
- }
7992
- }, {
7966
+ },
7993
7967
  children: editor && jsx(TafAvatar, {
7994
7968
  editor: editor
7995
7969
  })
7996
- }))]
7997
- })), jsxs("form", Object.assign({
7970
+ })]
7971
+ }), jsxs("form", {
7998
7972
  "data-testid": "taf-form",
7999
7973
  onSubmit: handleSubmit(onSubmit),
8000
- ref: formRef
8001
- }, {
7974
+ ref: formRef,
8002
7975
  children: [jsx(TafFormRow, {
8003
7976
  disabled: _isDisabled,
8004
7977
  onAddChangeGroupBelow: onAddRow,
8005
7978
  onClearRow: onClearRow,
8006
7979
  isNotRequiredForAction: isNotRequiredForAction
8007
- }), jsx(ReactSortable, Object.assign({
7980
+ }), jsx(ReactSortable, {
8008
7981
  tag: "div",
8009
7982
  list: fields,
8010
7983
  setList: noop,
@@ -8019,8 +7992,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
8019
7992
  if (Sortable.ghost) {
8020
7993
  Sortable.ghost.style.opacity = '1';
8021
7994
  }
8022
- }
8023
- }, {
7995
+ },
8024
7996
  children: fields.map((item, index) => jsx(TafFormRow, {
8025
7997
  field: item,
8026
7998
  index: index,
@@ -8037,15 +8009,14 @@ const TafForm = /*#__PURE__*/React__default.memo(({
8037
8009
  }),
8038
8010
  isNotRequiredForAction: isNotRequiredForAction
8039
8011
  }, item.id))
8040
- })), !_isDisabled && isEditor && jsx(Grid2, Object.assign({
8012
+ }), !_isDisabled && isEditor && jsx(Grid2, {
8041
8013
  container: true,
8042
8014
  sx: {
8043
8015
  justifyContent: 'space-between',
8044
8016
  alignItems: 'center',
8045
8017
  marginLeft: 1.5,
8046
8018
  marginTop: 1
8047
- }
8048
- }, {
8019
+ },
8049
8020
  children: jsx(Grid2, {
8050
8021
  children: jsx(IssuesButton, {
8051
8022
  errors: errors,
@@ -8053,7 +8024,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
8053
8024
  setIsIssuesPaneOpen: _setIsIssuesPaneOpen
8054
8025
  })
8055
8026
  })
8056
- })), isEditor && jsx(TafFormButtons, {
8027
+ }), isEditor && jsx(TafFormButtons, {
8057
8028
  isFormDisabled: _isDisabled,
8058
8029
  tafAction: tafAction,
8059
8030
  canBe: tafFromBackend.canbe,
@@ -8063,7 +8034,7 @@ const TafForm = /*#__PURE__*/React__default.memo(({
8063
8034
  name: field,
8064
8035
  "data-testid": field
8065
8036
  }, field))]
8066
- }))]
8037
+ })]
8067
8038
  });
8068
8039
  }, (prevProps, nextProps) => {
8069
8040
  // prevent re-render
@@ -8072,13 +8043,14 @@ const TafForm = /*#__PURE__*/React__default.memo(({
8072
8043
  prevProps.tafFromBackend.editor === nextProps.tafFromBackend.editor;
8073
8044
  });
8074
8045
 
8075
- const TabPanel = _a => {
8076
- var {
8046
+ const _excluded$1 = ["children", "value", "index"];
8047
+ const TabPanel = _ref => {
8048
+ let {
8077
8049
  children,
8078
8050
  value,
8079
8051
  index
8080
- } = _a,
8081
- other = __rest(_a, ["children", "value", "index"]);
8052
+ } = _ref,
8053
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$1);
8082
8054
  return jsx(Box, Object.assign({
8083
8055
  role: "tabpanel",
8084
8056
  hidden: value !== index,
@@ -8093,16 +8065,15 @@ const TabPanel = _a => {
8093
8065
  const TafHeader = ({
8094
8066
  title,
8095
8067
  sx: _sx = {}
8096
- }) => jsx(Typography, Object.assign({
8068
+ }) => jsx(Typography, {
8097
8069
  sx: Object.assign({
8098
8070
  textAlign: 'center',
8099
8071
  fontWeight: 500,
8100
8072
  paddingTop: '4px',
8101
8073
  textTransform: 'capitalize'
8102
- }, _sx)
8103
- }, {
8074
+ }, _sx),
8104
8075
  children: title
8105
- }));
8076
+ });
8106
8077
 
8107
8078
  var tryToString = tryToString$5;
8108
8079
 
@@ -8154,21 +8125,21 @@ var sort = function (array, comparefn) {
8154
8125
 
8155
8126
  var arraySort = sort;
8156
8127
 
8157
- var userAgent$1 = engineUserAgent;
8128
+ var userAgent$1 = environmentUserAgent;
8158
8129
 
8159
8130
  var firefox = userAgent$1.match(/firefox\/(\d+)/i);
8160
8131
 
8161
- var engineFfVersion = !!firefox && +firefox[1];
8132
+ var environmentFfVersion = !!firefox && +firefox[1];
8162
8133
 
8163
- var UA = engineUserAgent;
8134
+ var UA = environmentUserAgent;
8164
8135
 
8165
- var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
8136
+ var environmentIsIeOrEdge = /MSIE|Trident/.test(UA);
8166
8137
 
8167
- var userAgent = engineUserAgent;
8138
+ var userAgent = environmentUserAgent;
8168
8139
 
8169
8140
  var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
8170
8141
 
8171
- var engineWebkitVersion = !!webkit && +webkit[1];
8142
+ var environmentWebkitVersion = !!webkit && +webkit[1];
8172
8143
 
8173
8144
  var $ = _export;
8174
8145
  var uncurryThis = functionUncurryThis;
@@ -8180,10 +8151,10 @@ var toString = toString$8;
8180
8151
  var fails = fails$p;
8181
8152
  var internalSort = arraySort;
8182
8153
  var arrayMethodIsStrict = arrayMethodIsStrict$2;
8183
- var FF = engineFfVersion;
8184
- var IE_OR_EDGE = engineIsIeOrEdge;
8185
- var V8 = engineV8Version;
8186
- var WEBKIT = engineWebkitVersion;
8154
+ var FF = environmentFfVersion;
8155
+ var IE_OR_EDGE = environmentIsIeOrEdge;
8156
+ var V8 = environmentV8Version;
8157
+ var WEBKIT = environmentWebkitVersion;
8187
8158
 
8188
8159
  var test = [];
8189
8160
  var nativeSort = uncurryThis(test.sort);
@@ -8402,30 +8373,30 @@ const muiTabA11yProps = index => {
8402
8373
  };
8403
8374
  };
8404
8375
  const prepareTafExportValues = (tafToCopy, currentTaf) => {
8405
- var _a;
8376
+ var _currentTaf$baseForec;
8406
8377
  const convertedCopy = prepareTafValues(tafToCopy, undefined, false);
8407
8378
  const {
8408
8379
  baseForecast,
8409
8380
  changeGroups = []
8410
8381
  } = convertedCopy;
8411
- return Object.assign(Object.assign({}, currentTaf), {
8412
- baseForecast: Object.assign(Object.assign({}, baseForecast), {
8413
- valid: (_a = currentTaf === null || currentTaf === void 0 ? void 0 : currentTaf.baseForecast) === null || _a === void 0 ? void 0 : _a.valid
8382
+ return Object.assign({}, currentTaf, {
8383
+ baseForecast: Object.assign({}, baseForecast, {
8384
+ valid: currentTaf == null || (_currentTaf$baseForec = currentTaf.baseForecast) == null ? void 0 : _currentTaf$baseForec.valid
8414
8385
  }),
8415
8386
  changeGroups
8416
8387
  });
8417
8388
  };
8418
8389
  const getNewTafLocationIndex = (tafLocations, previousTafLocationUUID) => {
8419
8390
  const newActiveIndexForDraft = tafLocations.findIndex(location => {
8420
- var _a;
8421
- return ((_a = location === null || location === void 0 ? void 0 : location.taf) === null || _a === void 0 ? void 0 : _a.previousId) === previousTafLocationUUID;
8391
+ var _location$taf;
8392
+ return (location == null || (_location$taf = location.taf) == null ? void 0 : _location$taf.previousId) === previousTafLocationUUID;
8422
8393
  });
8423
8394
  if (newActiveIndexForDraft !== -1) {
8424
8395
  return newActiveIndexForDraft;
8425
8396
  }
8426
8397
  const newActiveIndexForPublished = tafLocations.findIndex(location => {
8427
- var _a;
8428
- return ((_a = location === null || location === void 0 ? void 0 : location.taf) === null || _a === void 0 ? void 0 : _a.uuid) === previousTafLocationUUID;
8398
+ var _location$taf2;
8399
+ return (location == null || (_location$taf2 = location.taf) == null ? void 0 : _location$taf2.uuid) === previousTafLocationUUID;
8429
8400
  });
8430
8401
  if (newActiveIndexForPublished !== -1) {
8431
8402
  return newActiveIndexForPublished;
@@ -8446,17 +8417,15 @@ const getPreviousTaf = (tafList, currentTaf) => {
8446
8417
  const IconWithTooltip = ({
8447
8418
  title,
8448
8419
  children
8449
- }) => jsx(CustomTooltip, Object.assign({
8420
+ }) => jsx(CustomTooltip, {
8450
8421
  title: title,
8451
8422
  placement: "right",
8452
- "data-testid": "statusIcon-tooltip"
8453
- }, {
8454
- children: jsx(Box, Object.assign({
8455
- component: "span"
8456
- }, {
8423
+ "data-testid": "statusIcon-tooltip",
8424
+ children: jsx(Box, {
8425
+ component: "span",
8457
8426
  children: children
8458
- }))
8459
- }));
8427
+ })
8428
+ });
8460
8429
  const StatusIcon = ({
8461
8430
  status,
8462
8431
  timeSlot
@@ -8468,22 +8437,20 @@ const StatusIcon = ({
8468
8437
  case 'DRAFT':
8469
8438
  case 'DRAFT_AMENDED':
8470
8439
  case 'DRAFT_CORRECTED':
8471
- return jsx(IconWithTooltip, Object.assign({
8472
- title: getTafStatusLabel(t, status)
8473
- }, {
8440
+ return jsx(IconWithTooltip, {
8441
+ title: getTafStatusLabel(t, status),
8474
8442
  children: jsx(Edit, {
8475
8443
  "data-testid": "status-draft",
8476
8444
  sx: {
8477
8445
  color: 'geowebColors.buttons.tertiary.default.color'
8478
8446
  }
8479
8447
  })
8480
- }));
8448
+ });
8481
8449
  case 'PUBLISHED':
8482
8450
  case 'CORRECTED':
8483
8451
  case 'AMENDED':
8484
- return jsx(IconWithTooltip, Object.assign({
8485
- title: getTafStatusLabel(t, status)
8486
- }, {
8452
+ return jsx(IconWithTooltip, {
8453
+ title: getTafStatusLabel(t, status),
8487
8454
  children: timeSlot === 'ACTIVE' ? jsx(Success, {
8488
8455
  "data-testid": "status-active",
8489
8456
  sx: {
@@ -8495,22 +8462,20 @@ const StatusIcon = ({
8495
8462
  color: 'geowebColors.functional.success'
8496
8463
  }
8497
8464
  })
8498
- }));
8465
+ });
8499
8466
  case 'CANCELLED':
8500
- return jsx(IconWithTooltip, Object.assign({
8501
- title: getTafStatusLabel(t, status)
8502
- }, {
8467
+ return jsx(IconWithTooltip, {
8468
+ title: getTafStatusLabel(t, status),
8503
8469
  children: jsx(Cancel, {
8504
8470
  "data-testid": "status-cancelled",
8505
8471
  sx: {
8506
8472
  color: 'geowebColors.captions.captionError.rgba'
8507
8473
  }
8508
8474
  })
8509
- }));
8475
+ });
8510
8476
  case 'EXPIRED':
8511
- return jsx(IconWithTooltip, Object.assign({
8512
- title: getTafStatusLabel(t, status)
8513
- }, {
8477
+ return jsx(IconWithTooltip, {
8478
+ title: getTafStatusLabel(t, status),
8514
8479
  children: jsx(Clock, {
8515
8480
  "data-testid": "status-expired",
8516
8481
  sx: {
@@ -8518,7 +8483,7 @@ const StatusIcon = ({
8518
8483
  color: 'geowebColors.buttons.tertiary.disabled.color'
8519
8484
  }
8520
8485
  })
8521
- }));
8486
+ });
8522
8487
  case 'NEW':
8523
8488
  default:
8524
8489
  return null;
@@ -8532,55 +8497,51 @@ const ExportButton = ({
8532
8497
  const {
8533
8498
  t
8534
8499
  } = useTafTranslation();
8535
- return isHidden ? null : jsx(CustomIconButton, Object.assign({
8500
+ return isHidden ? null : jsx(CustomIconButton, {
8536
8501
  onClick: onClick,
8537
8502
  "data-testid": "export-tac-button",
8538
8503
  variant: "tool",
8539
8504
  tooltipProps: {
8540
8505
  title: t('taf-import-title'),
8541
8506
  placement: 'left'
8542
- }
8543
- }, {
8507
+ },
8544
8508
  children: jsx(Export, {})
8545
- }));
8509
+ });
8546
8510
  };
8547
8511
 
8548
8512
  const AdverseWeatherTACMessage = ({
8549
8513
  TAC,
8550
8514
  isActive
8551
8515
  }) => {
8552
- return jsx(Box$1, Object.assign({
8516
+ return jsx(Box$1, {
8553
8517
  "data-testid": "adverse-weather-tac",
8554
8518
  sx: {
8555
8519
  fontSize: '12px',
8556
8520
  lineHeight: '16px',
8557
8521
  letterSpacing: '0.4px',
8558
8522
  color: 'geowebColors.captions.captionStatus.rgba'
8559
- }
8560
- }, {
8561
- children: TAC.tac.map((line, index) => jsx(Box$1, Object.assign({
8523
+ },
8524
+ children: TAC.tac.map((line, index) => jsx(Box$1, {
8562
8525
  component: "span",
8563
8526
  sx: {
8564
8527
  display: 'block'
8565
- }
8566
- }, {
8567
- children: line.map((word, index) => jsx(Box$1, Object.assign({
8528
+ },
8529
+ children: line.map((word, index) => jsx(Box$1, {
8568
8530
  component: "span",
8569
- sx: Object.assign(Object.assign({
8531
+ sx: Object.assign({
8570
8532
  display: 'inline',
8571
8533
  boxDecorationBreak: 'clone',
8572
8534
  WebkitBoxDecorationBreak: 'clone'
8573
8535
  }, isActive && {
8574
8536
  backgroundColor: 'geowebColors.functional.warningHighlight.rgba'
8575
- }), word.type === 'adverse' && {
8537
+ }, word.type === 'adverse' && {
8576
8538
  color: 'geowebColors.captions.captionError.rgba',
8577
8539
  fontWeight: 'bold'
8578
- })
8579
- }, {
8540
+ }),
8580
8541
  children: word.text === '=' ? `${word.text}` : ` ${word.text}`
8581
- }), word.text + index.toString()))
8582
- }), line.toString() + index.toString()))
8583
- }));
8542
+ }, word.text + index.toString()))
8543
+ }, line.toString() + index.toString()))
8544
+ });
8584
8545
  };
8585
8546
 
8586
8547
  const TacContainer = ({
@@ -8639,7 +8600,7 @@ const TacContainer = ({
8639
8600
  });
8640
8601
  replace(newTaf.changeGroups);
8641
8602
  setTimeout(() => {
8642
- trigger(); // trigger all fields validation
8603
+ void trigger(); // trigger all fields validation
8643
8604
  }, 0);
8644
8605
  showSnackbar(t('taf-import-message', {
8645
8606
  location,
@@ -8651,30 +8612,27 @@ const TacContainer = ({
8651
8612
  retrieveTAC(taf);
8652
8613
  }
8653
8614
  }, [taf, _isActive, retrieveTAC]);
8654
- return jsxs(Box, Object.assign({
8615
+ return jsxs(Box, {
8655
8616
  sx: {
8656
8617
  marginBottom: '20px'
8657
8618
  },
8658
8619
  "data-location": location,
8659
8620
  className: _isActive ? 'active' : undefined,
8660
8621
  role: "listitem",
8661
- "aria-label": location
8662
- }, {
8663
- children: [jsxs(Box, Object.assign({
8622
+ "aria-label": location,
8623
+ children: [jsxs(Box, {
8664
8624
  sx: {
8665
8625
  display: 'flex',
8666
8626
  alignItems: 'center',
8667
8627
  justifyContent: 'space-between',
8668
8628
  height: 24
8669
- }
8670
- }, {
8671
- children: [jsxs(Box, Object.assign({
8629
+ },
8630
+ children: [jsxs(Box, {
8672
8631
  sx: {
8673
8632
  display: 'flex',
8674
8633
  alignItems: 'center'
8675
- }
8676
- }, {
8677
- children: [jsx(Box, Object.assign({
8634
+ },
8635
+ children: [jsx(Box, {
8678
8636
  sx: {
8679
8637
  width: 24,
8680
8638
  height: 24,
@@ -8683,53 +8641,48 @@ const TacContainer = ({
8683
8641
  paddingTop: '6px',
8684
8642
  alignItems: 'center',
8685
8643
  justifyContent: 'center'
8686
- }
8687
- }, {
8644
+ },
8688
8645
  children: jsx(StatusIcon, {
8689
8646
  timeSlot: timeSlot,
8690
8647
  status: status
8691
8648
  })
8692
- })), jsxs(Typography, Object.assign({
8649
+ }), jsxs(Typography, {
8693
8650
  sx: Object.assign({
8694
8651
  lineHeight: 1
8695
8652
  }, _isActive && {
8696
8653
  backgroundColor: 'geowebColors.functional.warningHighlight.rgba',
8697
8654
  padding: '0 2px',
8698
8655
  marginLeft: '-2px'
8699
- })
8700
- }, {
8701
- children: [jsx(Typography, Object.assign({
8656
+ }),
8657
+ children: [jsx(Typography, {
8702
8658
  sx: {
8703
8659
  fontSize: '12px',
8704
8660
  color: 'geowebColors.captions.captionInformation.rgba'
8705
8661
  },
8706
8662
  "data-testid": "tafLocation",
8707
- component: "span"
8708
- }, {
8663
+ component: "span",
8709
8664
  children: location
8710
- })), jsx(Typography, Object.assign({
8665
+ }), jsx(Typography, {
8711
8666
  sx: {
8712
8667
  fontSize: '12px',
8713
8668
  marginLeft: '10px'
8714
8669
  },
8715
8670
  "data-testid": "tafLocationLabel",
8716
- component: "span"
8717
- }, {
8671
+ component: "span",
8718
8672
  children: locationLabel
8719
- }))]
8720
- }))]
8721
- })), jsx(ExportButton, {
8673
+ })]
8674
+ })]
8675
+ }), jsx(ExportButton, {
8722
8676
  onClick: handleExport,
8723
8677
  isHidden: _isFormDisabled || tacHasError(TAC, t)
8724
8678
  })]
8725
- })), jsx(Box, Object.assign({
8679
+ }), jsx(Box, {
8726
8680
  sx: {
8727
8681
  fontSize: '12px',
8728
8682
  letterSpacing: '0.4px',
8729
8683
  color: 'geowebColors.captions.captionStatus.rgba'
8730
- }
8731
- }, {
8732
- children: typeof TAC === 'string' ? jsx(Box, Object.assign({
8684
+ },
8685
+ children: typeof TAC === 'string' ? jsx(Box, {
8733
8686
  component: "span",
8734
8687
  sx: Object.assign({
8735
8688
  display: 'inline',
@@ -8737,15 +8690,14 @@ const TacContainer = ({
8737
8690
  WebkitBoxDecorationBreak: 'clone'
8738
8691
  }, _isActive && {
8739
8692
  backgroundColor: 'geowebColors.functional.warningHighlight.rgba'
8740
- })
8741
- }, {
8693
+ }),
8742
8694
  children: TAC
8743
- })) : jsx(AdverseWeatherTACMessage, {
8695
+ }) : jsx(AdverseWeatherTACMessage, {
8744
8696
  TAC: TAC,
8745
8697
  isActive: _isActive
8746
8698
  })
8747
- }))]
8748
- }));
8699
+ })]
8700
+ });
8749
8701
  };
8750
8702
 
8751
8703
  const TacOverview = ({
@@ -8768,7 +8720,7 @@ const TacOverview = ({
8768
8720
  title: t('top-tabs-current-expired'),
8769
8721
  tafList: sortTafsOnLocation([..._currentTafs, ..._expiredTafs])
8770
8722
  }];
8771
- const activeLocation = (_activeTaf === null || _activeTaf === void 0 ? void 0 : _activeTaf.taf.location) || null;
8723
+ const activeLocation = (_activeTaf == null ? void 0 : _activeTaf.taf.location) || null;
8772
8724
  const isActiveLocation = location => location === activeLocation;
8773
8725
  const scrollToPosition = React__default.useCallback(() => {
8774
8726
  if (!scrollRef.current) {
@@ -8777,7 +8729,7 @@ const TacOverview = ({
8777
8729
  const containerTop = scrollRef.current.getBoundingClientRect().top;
8778
8730
  const firstLocation = scrollRef.current.querySelector(`[data-location="${activeLocation}"]`);
8779
8731
  const paddingTop = parseInt(getComputedStyle(scrollRef.current).paddingTop, 10);
8780
- const firstLocationTop = firstLocation === null || firstLocation === void 0 ? void 0 : firstLocation.getBoundingClientRect().top;
8732
+ const firstLocationTop = firstLocation == null ? void 0 : firstLocation.getBoundingClientRect().top;
8781
8733
  const newScrollPosition = firstLocationTop - containerTop + scrollRef.current.scrollTop - paddingTop;
8782
8734
  scrollRef.current.scrollTo(newScrollPosition, newScrollPosition);
8783
8735
  }, [activeLocation]);
@@ -8800,27 +8752,24 @@ const TacOverview = ({
8800
8752
  clearTimeout(timer);
8801
8753
  };
8802
8754
  }, [activeTab, scrollToPosition]);
8803
- return jsxs(Card, Object.assign({
8755
+ return jsxs(Card, {
8804
8756
  variant: "outlined",
8805
8757
  sx: {
8806
8758
  maxHeight: '100%',
8807
8759
  overflow: 'hidden',
8808
8760
  display: 'flex',
8809
8761
  flexDirection: 'column'
8810
- }
8811
- }, {
8812
- children: [jsxs(Box, Object.assign({
8762
+ },
8763
+ children: [jsxs(Box, {
8813
8764
  sx: {
8814
8765
  zIndex: 1
8815
- }
8816
- }, {
8766
+ },
8817
8767
  children: [!_hideTitle && jsx(TafHeader, {
8818
8768
  title: t('tac-overview')
8819
- }), jsx(Tabs, Object.assign({
8769
+ }), jsx(Tabs, {
8820
8770
  value: activeTab,
8821
8771
  onChange: onChangeTab,
8822
- "aria-label": "tabs"
8823
- }, {
8772
+ "aria-label": "tabs",
8824
8773
  children: tabs.map((tab, index) => jsx(Tab, Object.assign({
8825
8774
  sx: {
8826
8775
  flexGrow: 1
@@ -8828,8 +8777,8 @@ const TacOverview = ({
8828
8777
  label: tab.title,
8829
8778
  "data-testid": `tab-${index}`
8830
8779
  }, muiTabA11yProps(index)), tab.title))
8831
- }))]
8832
- })), jsx(Box, Object.assign({
8780
+ })]
8781
+ }), jsx(Box, {
8833
8782
  ref: scrollRef,
8834
8783
  sx: {
8835
8784
  padding: {
@@ -8840,12 +8789,10 @@ const TacOverview = ({
8840
8789
  },
8841
8790
  maxHeight: '100%',
8842
8791
  overflow: 'auto'
8843
- }
8844
- }, {
8845
- children: tabs.map((tab, index) => jsx(TabPanel, Object.assign({
8792
+ },
8793
+ children: tabs.map((tab, index) => jsx(TabPanel, {
8846
8794
  value: activeTab,
8847
- index: index
8848
- }, {
8795
+ index: index,
8849
8796
  children: tab.tafList.map(({
8850
8797
  taf
8851
8798
  }) => jsx(TacContainer, {
@@ -8853,9 +8800,9 @@ const TacOverview = ({
8853
8800
  isActive: isActiveLocation(taf.location),
8854
8801
  isFormDisabled: _isFormDisabled
8855
8802
  }, taf.uuid))
8856
- }), tab.title))
8857
- }))]
8858
- }));
8803
+ }, tab.title))
8804
+ })]
8805
+ });
8859
8806
  };
8860
8807
 
8861
8808
  const TacOverviewMobile = ({
@@ -8871,7 +8818,7 @@ const TacOverviewMobile = ({
8871
8818
  const [isOpen, toggleOpen] = React.useState(_defaultOpen);
8872
8819
  const onClose = () => toggleOpen(false);
8873
8820
  return jsxs(Fragment, {
8874
- children: [jsx(CustomIconButton, Object.assign({
8821
+ children: [jsx(CustomIconButton, {
8875
8822
  isSelected: isOpen,
8876
8823
  onClick: () => toggleOpen(true),
8877
8824
  "data-testid": "tac-overview-mobile-button",
@@ -8884,10 +8831,9 @@ const TacOverviewMobile = ({
8884
8831
  right: '4px',
8885
8832
  top: '42px'
8886
8833
  },
8887
- variant: "tool"
8888
- }, {
8834
+ variant: "tool",
8889
8835
  children: jsx(ListItem, {})
8890
- })), jsxs(Dialog, Object.assign({
8836
+ }), jsxs(Dialog, {
8891
8837
  open: isOpen,
8892
8838
  onClose: onClose,
8893
8839
  PaperProps: {
@@ -8897,8 +8843,7 @@ const TacOverviewMobile = ({
8897
8843
  height: '100%'
8898
8844
  }
8899
8845
  },
8900
- "data-testid": "tac-overview-mobile"
8901
- }, {
8846
+ "data-testid": "tac-overview-mobile",
8902
8847
  children: [jsx(ToolHeader, {
8903
8848
  title: t('tac-overview'),
8904
8849
  size: "small",
@@ -8911,7 +8856,7 @@ const TacOverviewMobile = ({
8911
8856
  activeTaf: activeTaf,
8912
8857
  hideTitle: true
8913
8858
  })]
8914
- }))]
8859
+ })]
8915
8860
  });
8916
8861
  };
8917
8862
 
@@ -8952,13 +8897,12 @@ const TopTabs = ({
8952
8897
  const onChangeTab = (_event, newValue) => {
8953
8898
  _onChangeTimeSlot(tabs[newValue].timeSlot, isDirty);
8954
8899
  };
8955
- return jsx(Tabs, Object.assign({
8900
+ return jsx(Tabs, {
8956
8901
  value: activeTab,
8957
8902
  onChange: onChangeTab,
8958
8903
  "aria-label": "timeslot-tabs",
8959
8904
  "data-testid": "timeslot-tabs",
8960
- variant: "fullWidth"
8961
- }, {
8905
+ variant: "fullWidth",
8962
8906
  children: tabs.map((tab, index) => jsx(Tab, Object.assign({
8963
8907
  label: tab.title,
8964
8908
  "data-testid": `toptab-${index}`,
@@ -8966,7 +8910,7 @@ const TopTabs = ({
8966
8910
  fontSize: 16
8967
8911
  }
8968
8912
  }, muiTabA11yProps(index)), tab.title))
8969
- }));
8913
+ });
8970
8914
  };
8971
8915
 
8972
8916
  const LocationTabs = ({
@@ -8980,16 +8924,15 @@ const LocationTabs = ({
8980
8924
  isDirty
8981
8925
  }
8982
8926
  } = useFormContext();
8983
- return jsx(MenuList, Object.assign({
8927
+ return jsx(MenuList, {
8984
8928
  "data-testid": "location-tabs",
8985
8929
  sx: {
8986
8930
  paddingTop: '32px'
8987
- }
8988
- }, {
8931
+ },
8989
8932
  children: tafList.map(({
8990
8933
  taf,
8991
8934
  editor
8992
- }, index) => jsxs(MenuItem, Object.assign({
8935
+ }, index) => jsxs(MenuItem, {
8993
8936
  selected: index === _activeIndex,
8994
8937
  sx: {
8995
8938
  backgroundColor: 'geowebColors.cards.cardContainer',
@@ -9009,45 +8952,41 @@ const LocationTabs = ({
9009
8952
  zIndex: 1
9010
8953
  }
9011
8954
  },
9012
- onClick: () => _onChangeTab(index, isDirty)
9013
- }, {
9014
- children: [editor && jsx(Box$1, Object.assign({
8955
+ onClick: () => _onChangeTab(index, isDirty),
8956
+ children: [editor && jsx(Box$1, {
9015
8957
  sx: {
9016
8958
  position: 'absolute',
9017
8959
  top: '4px',
9018
8960
  left: '8px'
9019
- }
9020
- }, {
8961
+ },
9021
8962
  children: jsx(TafAvatar, {
9022
8963
  editor: editor,
9023
8964
  tooltipPlacement: "right"
9024
8965
  })
9025
- })), jsx(Box$1, Object.assign({
8966
+ }), jsx(Box$1, {
9026
8967
  component: "span",
9027
8968
  "data-testid": "taf-location",
9028
8969
  sx: {
9029
8970
  fontSize: '12px',
9030
8971
  fontWeight: '500',
9031
8972
  letterSpacing: '0.09px'
9032
- }
9033
- }, {
8973
+ },
9034
8974
  children: taf.location
9035
- })), jsx(Box$1, Object.assign({
8975
+ }), jsx(Box$1, {
9036
8976
  component: "span",
9037
8977
  sx: {
9038
8978
  position: 'absolute',
9039
8979
  bottom: '-1px',
9040
8980
  width: '24px',
9041
8981
  height: '24px'
9042
- }
9043
- }, {
8982
+ },
9044
8983
  children: jsx(StatusIcon, {
9045
8984
  timeSlot: timeSlot,
9046
8985
  status: taf.status
9047
8986
  })
9048
- }))]
9049
- }), taf.uuid))
9050
- }));
8987
+ })]
8988
+ }, taf.uuid))
8989
+ });
9051
8990
  };
9052
8991
 
9053
8992
  const Spinner = props => jsx(Backdrop, Object.assign({
@@ -9079,7 +9018,7 @@ const fromActionToStatus = tafAction => {
9079
9018
  return 'NEW';
9080
9019
  }
9081
9020
  };
9082
- const isWarning = error => (error === null || error === void 0 ? void 0 : error.type) === 'WARNING';
9021
+ const isWarning = error => (error == null ? void 0 : error.type) === 'WARNING';
9083
9022
  const parseErrorMessage = (error, params, t) => {
9084
9023
  const message = getErrorMessage$1(error);
9085
9024
  const warningMessage = getWarningMessage(error);
@@ -9108,11 +9047,11 @@ const usePostTafRequest = request => {
9108
9047
  } = useIsMounted();
9109
9048
  const [isLoading, setLoading] = React__default.useState(false);
9110
9049
  const [error, setError] = React__default.useState();
9111
- const doRequest = params => __awaiter(void 0, void 0, void 0, function* () {
9050
+ const doRequest = async params => {
9112
9051
  setLoading(true);
9113
9052
  setError(null);
9114
9053
  try {
9115
- yield request(params);
9054
+ await request(params);
9116
9055
  if (!isMounted.current) {
9117
9056
  return;
9118
9057
  }
@@ -9128,7 +9067,7 @@ const usePostTafRequest = request => {
9128
9067
  // eslint-disable-next-line @typescript-eslint/no-throw-literal
9129
9068
  throw newError;
9130
9069
  }
9131
- });
9070
+ };
9132
9071
  return {
9133
9072
  isLoading,
9134
9073
  error,
@@ -9156,7 +9095,7 @@ const TafPanel = ({
9156
9095
  t
9157
9096
  } = useTafTranslation();
9158
9097
  const severity = isWarning(error) ? 'warning' : 'error';
9159
- const onTafAction = (action, taf) => __awaiter(void 0, void 0, void 0, function* () {
9098
+ const onTafAction = async (action, taf) => {
9160
9099
  try {
9161
9100
  // Add right actions and their follow up calls to the BE
9162
9101
  switch (action) {
@@ -9168,7 +9107,7 @@ const TafPanel = ({
9168
9107
  case 'CANCEL':
9169
9108
  case 'CORRECT':
9170
9109
  // post taf
9171
- yield _postTaf({
9110
+ await _postTaf({
9172
9111
  taf: taf,
9173
9112
  changeStatusTo: fromActionToStatus(action)
9174
9113
  });
@@ -9179,12 +9118,11 @@ const TafPanel = ({
9179
9118
  } catch (error) {
9180
9119
  return false;
9181
9120
  }
9182
- });
9183
- return jsxs(TabPanel, Object.assign({
9121
+ };
9122
+ return jsxs(TabPanel, {
9184
9123
  value: activeTafIndex,
9185
9124
  index: index,
9186
- "data-testid": `taf-panel${activeTafIndex === index ? '-active' : ''}`
9187
- }, {
9125
+ "data-testid": `taf-panel${activeTafIndex === index ? '-active' : ''}`,
9188
9126
  children: [jsx(TafHeader, {
9189
9127
  title: getTafStatusLabel(t, tafFromBackend.taf.status, tafAction, _isFormDisabled),
9190
9128
  sx: {
@@ -9203,15 +9141,14 @@ const TafPanel = ({
9203
9141
  info: error.message,
9204
9142
  dataTestId: "taf-error",
9205
9143
  shouldClose: true
9206
- }), jsx(Box, Object.assign({
9144
+ }), jsx(Box, {
9207
9145
  sx: {
9208
9146
  marginTop: {
9209
9147
  xs: '44px',
9210
9148
  sm: '10px'
9211
9149
  },
9212
9150
  padding: 1
9213
- }
9214
- }, {
9151
+ },
9215
9152
  children: jsx(TafForm, {
9216
9153
  tafFromBackend: tafFromBackend,
9217
9154
  onFormAction: onTafAction,
@@ -9223,8 +9160,8 @@ const TafPanel = ({
9223
9160
  fetchNewTafList: _fetchNewTafList,
9224
9161
  previousTaf: _previousTaf
9225
9162
  })
9226
- }))]
9227
- }));
9163
+ })]
9164
+ });
9228
9165
  };
9229
9166
 
9230
9167
  const IssuesPaneWrapper = props => {
@@ -9329,63 +9266,61 @@ const TafLayout = ({
9329
9266
  message
9330
9267
  }));
9331
9268
  }, [dispatch]);
9332
- const postTaf = (data, isAutoSaved = false) => __awaiter(void 0, void 0, void 0, function* () {
9269
+ const postTaf = async (data, isAutoSaved = false) => {
9333
9270
  try {
9334
9271
  setError(null);
9335
- yield postTafRequest(data);
9272
+ await postTafRequest(data);
9336
9273
  showSnackbar(getSnackbarMessage(data, isAutoSaved, t));
9337
9274
  // callback
9338
- _onUpdateTaf();
9275
+ void _onUpdateTaf();
9339
9276
  } catch (error) {
9340
9277
  if (isWarning(error)) {
9341
- _onUpdateTaf();
9278
+ void _onUpdateTaf();
9342
9279
  }
9343
9280
  throw error;
9344
9281
  }
9345
- });
9346
- const patchTaf = data => __awaiter(void 0, void 0, void 0, function* () {
9282
+ };
9283
+ const patchTaf = async data => {
9347
9284
  try {
9348
9285
  setError(null);
9349
- yield patchTafRequest(data);
9286
+ await patchTafRequest(data);
9350
9287
  // callback
9351
- _onUpdateTaf();
9288
+ void _onUpdateTaf();
9352
9289
  return true;
9353
9290
  } catch (error) {
9354
9291
  return false;
9355
9292
  }
9356
- });
9293
+ };
9357
9294
  const CONFIRM_DIALOG_OPTIONS = {
9358
9295
  title: t('confirm-dialog-title'),
9359
9296
  description: t('confirm-dialog-description'),
9360
9297
  confirmLabel: t('confirm-dialog-confirm-label')
9361
9298
  };
9362
- function onChangeTab(action, value, isFormDirty) {
9363
- return __awaiter(this, void 0, void 0, function* () {
9364
- if (isFormDirty) {
9365
- try {
9366
- const taf = yield onValidateForm();
9367
- yield postTaf({
9368
- taf,
9369
- changeStatusTo: fromActionToStatus(tafActionToDraftAction(tafAction))
9370
- }, true);
9371
- action(value);
9372
- } catch (error) {
9373
- confirmDialog(CONFIRM_DIALOG_OPTIONS).then(() => {
9374
- action(value);
9375
- setError(null);
9376
- });
9377
- }
9378
- } else {
9299
+ async function onChangeTab(action, value, isFormDirty) {
9300
+ if (isFormDirty) {
9301
+ try {
9302
+ const taf = await onValidateForm();
9303
+ await postTaf({
9304
+ taf,
9305
+ changeStatusTo: fromActionToStatus(tafActionToDraftAction(tafAction))
9306
+ }, true);
9379
9307
  action(value);
9380
- setError(null);
9308
+ } catch (error) {
9309
+ void confirmDialog(CONFIRM_DIALOG_OPTIONS).then(() => {
9310
+ action(value);
9311
+ setError(null);
9312
+ });
9381
9313
  }
9382
- });
9314
+ } else {
9315
+ action(value);
9316
+ setError(null);
9317
+ }
9383
9318
  }
9384
9319
  const onChangeLocationTab = (index, isFormDirty) => {
9385
- onChangeTab(setActiveTafIndex, index, isFormDirty);
9320
+ void onChangeTab(setActiveTafIndex, index, isFormDirty);
9386
9321
  };
9387
9322
  const onChangeTimeSlot = (newTimeSlot, isFormDirty) => {
9388
- onChangeTab(changeTimeSlot, newTimeSlot, isFormDirty);
9323
+ void onChangeTab(changeTimeSlot, newTimeSlot, isFormDirty);
9389
9324
  };
9390
9325
  const changeTimeSlot = newTimeSlot => {
9391
9326
  setTimeSlot(newTimeSlot);
@@ -9393,13 +9328,13 @@ const TafLayout = ({
9393
9328
  setActiveTafIndex(0);
9394
9329
  };
9395
9330
  React__default.useEffect(() => {
9396
- var _a, _b;
9331
+ var _locations$activeTafI;
9397
9332
  const newSortedTafs = sortTafTimeSlots(_tafList);
9398
9333
  const updatedLocations = timeSlot === 'ACTIVE' ? newSortedTafs.current : newSortedTafs.upcoming;
9399
9334
  updateSortedTafs(sortTafTimeSlots(_tafList));
9400
9335
  setLocations(updatedLocations);
9401
9336
  // update active index
9402
- const previousActiveLocationUUID = (_b = (_a = locations[activeTafIndex]) === null || _a === void 0 ? void 0 : _a.taf) === null || _b === void 0 ? void 0 : _b.uuid;
9337
+ const previousActiveLocationUUID = (_locations$activeTafI = locations[activeTafIndex]) == null || (_locations$activeTafI = _locations$activeTafI.taf) == null ? void 0 : _locations$activeTafI.uuid;
9403
9338
  const newTafLocationIndex = getNewTafLocationIndex(updatedLocations, previousActiveLocationUUID);
9404
9339
  setActiveTafIndex(newTafLocationIndex);
9405
9340
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -9433,60 +9368,54 @@ const TafLayout = ({
9433
9368
  overflow: 'hidden',
9434
9369
  pointerEvents: 'none'
9435
9370
  }
9436
- }), jsx(Box, Object.assign({
9371
+ }), jsx(Box, {
9437
9372
  sx: {
9438
9373
  height: '100%',
9439
9374
  maxHeight: '100%'
9440
- }
9441
- }, {
9442
- children: jsxs(Box, Object.assign({
9375
+ },
9376
+ children: jsxs(Box, {
9443
9377
  sx: {
9444
9378
  minWidth: 320,
9445
9379
  margin: 'auto',
9446
9380
  height: '100%',
9447
9381
  display: 'flex',
9448
9382
  flexDirection: 'column'
9449
- }
9450
- }, {
9451
- children: [jsxs(Grid2, Object.assign({
9383
+ },
9384
+ children: [jsxs(Grid2, {
9452
9385
  container: true,
9453
9386
  spacing: 2,
9454
9387
  sx: {
9455
9388
  paddingLeft: 1,
9456
9389
  paddingRight: 1
9457
- }
9458
- }, {
9459
- children: [jsx(Grid2, Object.assign({
9390
+ },
9391
+ children: [jsx(Grid2, {
9460
9392
  size: {
9461
9393
  xs: 12,
9462
9394
  sm: 9
9463
- }
9464
- }, {
9395
+ },
9465
9396
  children: jsx(TopTabs, {
9466
9397
  tafFromBackend: lastCurrentTaf,
9467
9398
  timeSlot: timeSlot,
9468
9399
  onChangeTimeSlot: onChangeTimeSlot
9469
9400
  })
9470
- })), jsx(Grid2, Object.assign({
9401
+ }), jsx(Grid2, {
9471
9402
  size: {
9472
9403
  xs: 12,
9473
9404
  sm: 3
9474
- }
9475
- }, {
9405
+ },
9476
9406
  children: lastUpdateTime && jsx(LastUpdateTime, {
9477
9407
  lastUpdateTime: lastUpdateTime,
9478
9408
  onPressRefresh: _onUpdateTaf,
9479
9409
  dataTestId: "lastupdated-time"
9480
9410
  })
9481
- }))]
9482
- })), jsx(Grid2, Object.assign({
9411
+ })]
9412
+ }), jsx(Grid2, {
9483
9413
  container: true,
9484
9414
  sx: {
9485
9415
  flexGrow: 1,
9486
9416
  overflow: 'hidden'
9487
- }
9488
- }, {
9489
- children: jsxs(Grid2, Object.assign({
9417
+ },
9418
+ children: jsxs(Grid2, {
9490
9419
  container: true,
9491
9420
  spacing: 2,
9492
9421
  sx: {
@@ -9495,31 +9424,27 @@ const TafLayout = ({
9495
9424
  paddingRight: 1,
9496
9425
  paddingTop: 2,
9497
9426
  overflow: 'auto'
9498
- }
9499
- }, {
9500
- children: [jsx(Grid2, Object.assign({
9427
+ },
9428
+ children: [jsx(Grid2, {
9501
9429
  size: {
9502
9430
  xs: 3,
9503
9431
  sm: 1
9504
- }
9505
- }, {
9432
+ },
9506
9433
  children: jsx(LocationTabs, {
9507
9434
  tafList: locations,
9508
9435
  activeIndex: activeTafIndex,
9509
9436
  onChangeTab: onChangeLocationTab,
9510
9437
  timeSlot: timeSlot
9511
9438
  })
9512
- })), jsx(Grid2, Object.assign({
9513
- size: "grow"
9514
- }, {
9515
- children: jsxs(Card, Object.assign({
9439
+ }), jsx(Grid2, {
9440
+ size: "grow",
9441
+ children: jsxs(Card, {
9516
9442
  variant: "outlined",
9517
9443
  sx: {
9518
9444
  marginBottom: '12px',
9519
9445
  position: 'relative',
9520
9446
  minHeight: locations.length * 62 + 32
9521
- }
9522
- }, {
9447
+ },
9523
9448
  children: [jsx(TacOverviewMobile, {
9524
9449
  upcomingTafs: upcoming,
9525
9450
  currentTafs: current,
@@ -9541,8 +9466,8 @@ const TafLayout = ({
9541
9466
  previousTaf: getPreviousTaf(_tafList, tafFromBackend),
9542
9467
  tafAction: tafAction
9543
9468
  }, tafFromBackend.taf.uuid))]
9544
- }))
9545
- })), jsx(Grid2, Object.assign({
9469
+ })
9470
+ }), jsx(Grid2, {
9546
9471
  size: {
9547
9472
  xs: 0,
9548
9473
  sm: 3
@@ -9552,8 +9477,7 @@ const TafLayout = ({
9552
9477
  xs: 0,
9553
9478
  sm: '100%'
9554
9479
  }
9555
- }
9556
- }, {
9480
+ },
9557
9481
  children: jsx(TacOverview, {
9558
9482
  upcomingTafs: upcoming,
9559
9483
  currentTafs: current,
@@ -9561,11 +9485,11 @@ const TafLayout = ({
9561
9485
  activeTaf: activeTaf,
9562
9486
  isFormDisabled: isFormDisabled
9563
9487
  })
9564
- }))]
9565
- }))
9566
- }))]
9567
- }))
9568
- })), jsx(IssuesPaneWrapper, {
9488
+ })]
9489
+ })
9490
+ })]
9491
+ })
9492
+ }), jsx(IssuesPaneWrapper, {
9569
9493
  handleClose: onCloseIssuesPane,
9570
9494
  isOpen: isIssuesPaneOpen,
9571
9495
  startPosition: startPosition,
@@ -9574,12 +9498,13 @@ const TafLayout = ({
9574
9498
  });
9575
9499
  };
9576
9500
 
9577
- const TafWrapper = _a => {
9578
- var {
9501
+ const _excluded = ["children"];
9502
+ const TafWrapper = _ref => {
9503
+ let {
9579
9504
  children
9580
- } = _a,
9581
- props = __rest(_a, ["children"]);
9582
- return jsx(ReactHookFormProvider, Object.assign({
9505
+ } = _ref,
9506
+ props = _objectWithoutPropertiesLoose(_ref, _excluded);
9507
+ return jsx(ReactHookFormProvider, {
9583
9508
  options: {
9584
9509
  mode: 'onTouched',
9585
9510
  reValidateMode: 'onChange',
@@ -9600,12 +9525,11 @@ const TafWrapper = _a => {
9600
9525
  status: '',
9601
9526
  IS_DRAFT: false
9602
9527
  }
9603
- }
9604
- }, {
9528
+ },
9605
9529
  children: jsx(TafModuleProvider, Object.assign({}, props, {
9606
9530
  children: children
9607
9531
  }))
9608
- }));
9532
+ });
9609
9533
  };
9610
9534
 
9611
9535
  const getCurrentDate = () => dateUtils.dateToString(dateUtils.utc(), dateUtils.DATE_FORMAT_HOURS);
@@ -9625,11 +9549,11 @@ const TafModule = () => {
9625
9549
  } = useAuthenticationContext();
9626
9550
  const ERROR_AUTH = t('error-auth');
9627
9551
  const ERROR_AUTH_MESSAGE = t('error-auth-message');
9628
- const fetchNewTafList = () => __awaiter(void 0, void 0, void 0, function* () {
9552
+ const fetchNewTafList = async () => {
9629
9553
  setIsLoading(true);
9630
9554
  setErrorMessage(null);
9631
9555
  try {
9632
- const result = yield api.getTafList();
9556
+ const result = await api.getTafList();
9633
9557
  setTafList(result.data);
9634
9558
  setIsLoading(false);
9635
9559
  setLastUpdateTime(getCurrentDate());
@@ -9642,10 +9566,10 @@ const TafModule = () => {
9642
9566
  setIsLoading(false);
9643
9567
  return [];
9644
9568
  }
9645
- });
9646
- const onUpdateTaf = () => __awaiter(void 0, void 0, void 0, function* () {
9569
+ };
9570
+ const onUpdateTaf = async () => {
9647
9571
  return fetchNewTafList();
9648
- });
9572
+ };
9649
9573
  React.useEffect(() => {
9650
9574
  if (!isLoggedIn) {
9651
9575
  setErrorMessage({
@@ -9653,20 +9577,19 @@ const TafModule = () => {
9653
9577
  info: ERROR_AUTH_MESSAGE
9654
9578
  });
9655
9579
  } else {
9656
- fetchNewTafList();
9580
+ void fetchNewTafList();
9657
9581
  }
9658
9582
  // eslint-disable-next-line react-hooks/exhaustive-deps
9659
9583
  }, [isLoggedIn]);
9660
9584
  usePoller([tafList, errorMessage], fetchNewTafList);
9661
9585
  return jsx(ResponsiveWrapper, {
9662
- children: jsxs(Box, Object.assign({
9586
+ children: jsxs(Box, {
9663
9587
  component: "div",
9664
9588
  id: "tafmodule",
9665
9589
  "data-testid": "tafmodule",
9666
9590
  sx: {
9667
9591
  height: '100%'
9668
- }
9669
- }, {
9592
+ },
9670
9593
  children: [isLoggedIn && isLoading && jsx(LinearProgress, {
9671
9594
  "data-testid": "loading-bar",
9672
9595
  color: "secondary",
@@ -9687,7 +9610,7 @@ const TafModule = () => {
9687
9610
  onUpdateTaf: onUpdateTaf,
9688
9611
  lastUpdateTime: lastUpdateTime
9689
9612
  })]
9690
- }))
9613
+ })
9691
9614
  });
9692
9615
  };
9693
9616
  const Wrapper = props => jsx(TafWrapper, Object.assign({}, props, {
@@ -9701,9 +9624,9 @@ const getApiRoutes$1 = axiosInstance => ({
9701
9624
  postTaf: formData => {
9702
9625
  return axiosInstance.post('/taf', Object.assign({}, formData));
9703
9626
  },
9704
- getTAC: (tafData, getJSON, signal) => axiosInstance.post('/taf2tac', tafData, Object.assign(Object.assign({}, signal ? {
9627
+ getTAC: (tafData, getJSON, signal) => axiosInstance.post('/taf2tac', tafData, Object.assign({}, signal ? {
9705
9628
  signal
9706
- } : {}), {
9629
+ } : {}, {
9707
9630
  headers: {
9708
9631
  Accept: getJSON ? 'application/json' : 'text/plain'
9709
9632
  }
@@ -10286,7 +10209,7 @@ const fakeNewTaf = {
10286
10209
  creationDate: `2022-01-06T12:00:00Z`,
10287
10210
  canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
10288
10211
  editor: MOCK_USERNAME,
10289
- taf: Object.assign(Object.assign({}, fakeNewTaf.taf), {
10212
+ taf: Object.assign({}, fakeNewTaf.taf, {
10290
10213
  baseTime: `2022-01-06T12:00:00Z`,
10291
10214
  validDateStart: `2022-01-06T12:00:00Z`,
10292
10215
  validDateEnd: `2022-01-07T18:00:00Z`,
@@ -10377,14 +10300,14 @@ const fakePublishedTaf = {
10377
10300
  creationDate: `2022-01-06T12:00:00Z`,
10378
10301
  canbe: ['CANCELLED', 'AMENDED', 'CORRECTED'],
10379
10302
  editor: MOCK_USERNAME,
10380
- taf: Object.assign(Object.assign({}, fakePublishedTaf.taf), {
10303
+ taf: Object.assign({}, fakePublishedTaf.taf, {
10381
10304
  uuid: 'sowi3u4o-lsdjflsk',
10382
10305
  location: 'EHGG',
10383
10306
  baseTime: `2022-01-06T12:00:00Z`,
10384
10307
  issueDate: `2022-01-06T12:00:00Z`,
10385
10308
  validDateStart: `2022-01-06T12:00:00Z`,
10386
10309
  validDateEnd: `2022-01-07T18:00:00Z`,
10387
- baseForecast: Object.assign(Object.assign({}, fakePublishedTaf.taf.baseForecast), {
10310
+ baseForecast: Object.assign({}, fakePublishedTaf.taf.baseForecast, {
10388
10311
  valid: {
10389
10312
  start: `2022-01-06T12:00:00Z`,
10390
10313
  end: `2022-01-07T18:00:00Z`
@@ -10482,11 +10405,11 @@ const fakeDraftTaf = {
10482
10405
  creationDate: `2022-01-06T18:00:00Z`,
10483
10406
  canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
10484
10407
  editor: MOCK_USERNAME,
10485
- taf: Object.assign(Object.assign({}, fakeDraftTaf.taf), {
10408
+ taf: Object.assign({}, fakeDraftTaf.taf, {
10486
10409
  baseTime: `2022-01-06T18:00:00Z`,
10487
10410
  validDateStart: `2022-01-06T18:00:00Z`,
10488
10411
  validDateEnd: `2022-01-07T23:59:00Z`,
10489
- baseForecast: Object.assign(Object.assign({}, fakeDraftTaf.taf.baseForecast), {
10412
+ baseForecast: Object.assign({}, fakeDraftTaf.taf.baseForecast, {
10490
10413
  valid: {
10491
10414
  start: `2022-01-06T18:00:00Z`,
10492
10415
  end: `2022-01-07T23:59:00Z`
@@ -10553,14 +10476,14 @@ const fakeDraftAmendmentTaf = {
10553
10476
  }
10554
10477
  };
10555
10478
  // Filter out the changegroups for testing purposes as the valid times get adjusted
10556
- const _a = fakeDraftAmendmentTaf.taf,
10557
- fakeDraftAmendmentWithoutChangeGroups = __rest(_a, ["changeGroups"]);
10479
+ const _fakeDraftAmendmentTa = fakeDraftAmendmentTaf.taf,
10480
+ fakeDraftAmendmentWithoutChangeGroups = _objectWithoutPropertiesLoose(_fakeDraftAmendmentTa, ["changeGroups"]);
10558
10481
  // Only use for display purposes in the list!
10559
10482
  ({
10560
10483
  creationDate: `2022-01-06T14:00:00Z`,
10561
10484
  canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
10562
10485
  editor: null,
10563
- taf: Object.assign(Object.assign({}, fakeDraftAmendmentWithoutChangeGroups), {
10486
+ taf: Object.assign({}, fakeDraftAmendmentWithoutChangeGroups, {
10564
10487
  location: 'EHRD',
10565
10488
  baseTime: `2022-01-06T12:00:00Z`,
10566
10489
  validDateStart: `2022-01-06T14:00:00Z`,
@@ -10568,7 +10491,7 @@ const _a = fakeDraftAmendmentTaf.taf,
10568
10491
  previousId: `previousIdOfPreviousTAF`,
10569
10492
  previousValidDateStart: `2022-01-06T12:00:00Z`,
10570
10493
  previousValidDateEnd: `2022-01-07T18:00:00Z`,
10571
- baseForecast: Object.assign(Object.assign({}, fakeDraftAmendmentTaf.taf.baseForecast), {
10494
+ baseForecast: Object.assign({}, fakeDraftAmendmentTaf.taf.baseForecast, {
10572
10495
  valid: {
10573
10496
  start: `2022-01-06T14:00:00Z`,
10574
10497
  end: `2022-01-07T18:00:00Z`
@@ -10581,14 +10504,14 @@ const _a = fakeDraftAmendmentTaf.taf,
10581
10504
  creationDate: `2022-01-06T14:00:00Z`,
10582
10505
  canbe: ['DRAFTED', 'DISCARDED', 'PUBLISHED'],
10583
10506
  editor: null,
10584
- taf: Object.assign(Object.assign({}, fakeDraftAmendmentWithoutChangeGroups), {
10507
+ taf: Object.assign({}, fakeDraftAmendmentWithoutChangeGroups, {
10585
10508
  status: 'AMENDED',
10586
10509
  uuid: 'previousIdOfPreviousTAF',
10587
10510
  location: 'EHRD',
10588
10511
  baseTime: `2022-01-06T12:00:00Z`,
10589
10512
  validDateStart: `2022-01-06T14:00:00Z`,
10590
10513
  validDateEnd: `2022-01-07T18:00:00Z`,
10591
- baseForecast: Object.assign(Object.assign({}, fakeDraftAmendmentTaf.taf.baseForecast), {
10514
+ baseForecast: Object.assign({}, fakeDraftAmendmentTaf.taf.baseForecast, {
10592
10515
  valid: {
10593
10516
  start: `2022-01-06T14:00:00Z`,
10594
10517
  end: `2022-01-07T18:00:00Z`
@@ -10648,7 +10571,7 @@ const fakeAmendmentTaf = {
10648
10571
  creationDate: `2022-01-06T14:00:00Z`,
10649
10572
  canbe: ['CANCELLED', 'CORRECTED', 'AMENDED'],
10650
10573
  editor: MOCK_USERNAME,
10651
- taf: Object.assign(Object.assign({}, fakeAmendmentTaf.taf), {
10574
+ taf: Object.assign({}, fakeAmendmentTaf.taf, {
10652
10575
  uuid: '7549058980',
10653
10576
  issueDate: `2022-01-06T14:00:00Z`,
10654
10577
  baseTime: `2022-01-06T12:00:00Z`,
@@ -10656,7 +10579,7 @@ const fakeAmendmentTaf = {
10656
10579
  validDateEnd: `2022-01-07T18:00:00Z`,
10657
10580
  previousValidDateStart: `2022-01-06T12:00:00Z`,
10658
10581
  previousValidDateEnd: `2022-01-07T18:00:00Z`,
10659
- baseForecast: Object.assign(Object.assign({}, fakeAmendmentTaf.taf.baseForecast), {
10582
+ baseForecast: Object.assign({}, fakeAmendmentTaf.taf.baseForecast, {
10660
10583
  valid: {
10661
10584
  start: `2022-01-06T14:00:00Z`,
10662
10585
  end: `2022-01-07T18:00:00Z`
@@ -10721,9 +10644,9 @@ const getApiRoutes = axiosInstance => ({
10721
10644
  return axiosInstance.post('/taf', postTaf);
10722
10645
  },
10723
10646
  getTAC: (taf, getJSON, signal) => {
10724
- return axiosInstance.post('/taf2tac', taf, Object.assign(Object.assign({}, signal ? {
10647
+ return axiosInstance.post('/taf2tac', taf, Object.assign({}, signal ? {
10725
10648
  signal
10726
- } : {}), {
10649
+ } : {}, {
10727
10650
  headers: {
10728
10651
  Accept: getJSON ? 'application/json' : 'text/plain'
10729
10652
  }
@@ -10734,7 +10657,7 @@ const getApiRoutes = axiosInstance => ({
10734
10657
  patchTaf: patchTaf => {
10735
10658
  const updatedList = getFakeUpdatedList().map(tafFromBackend => {
10736
10659
  if (tafFromBackend.taf.uuid === patchTaf.taf.uuid) {
10737
- return Object.assign(Object.assign({}, tafFromBackend), {
10660
+ return Object.assign({}, tafFromBackend, {
10738
10661
  editor: patchTaf.editor
10739
10662
  });
10740
10663
  }
@@ -10773,7 +10696,7 @@ const TafApiWrapper = ({
10773
10696
  onSetAuth,
10774
10697
  onPreventCloseView
10775
10698
  }) => {
10776
- return config ? jsx(ApiProvider, Object.assign({
10699
+ return config ? jsx(ApiProvider, {
10777
10700
  config: {
10778
10701
  baseURL: config.baseURL,
10779
10702
  appURL: config.baseURL,
@@ -10782,14 +10705,13 @@ const TafApiWrapper = ({
10782
10705
  },
10783
10706
  auth: auth,
10784
10707
  onSetAuth: onSetAuth,
10785
- createApi: createApi$1
10786
- }, {
10708
+ createApi: createApi$1,
10787
10709
  children: jsx(ErrorBoundary, {
10788
10710
  children: jsx(Wrapper, {
10789
10711
  onPreventCloseView: onPreventCloseView
10790
10712
  })
10791
10713
  })
10792
- })) : null;
10714
+ }) : null;
10793
10715
  };
10794
10716
  const componentsLookUp = (payload, {
10795
10717
  config,