@opengeoweb/warnings 9.25.0 → 9.25.2

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
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { useDispatch, useSelector } from 'react-redux';
3
- import { Polygons, Share, ExitDomain, Edit, Delete, DrawPolygon, Visibility, Add, Wind, Fog, Lightning, Snow, Rain, TemperatureHigh, TemperatureLow, CoastalEvent, breakpoints, Options, Copy, Success, Expire, Remove } from '@opengeoweb/theme';
3
+ import { Polygons, Share, ExitDomain, Edit, Delete, DrawPolygon, Visibility, Add, Wind, Fog, Lightning, Snow, Rain, TemperatureHigh, TemperatureLow, CoastalEvent, breakpoints, Close, Options, Copy, Success, Expire, Remove } from '@opengeoweb/theme';
4
4
  import { uiTypes, uiActions, getSingularDrawtoolDrawLayerId, drawtoolSelectors, layerSelectors, uiSelectors, mapStoreActions, drawtoolActions, layerActions, useSetupDialog } from '@opengeoweb/store';
5
5
  import { defaultPolygon, emptyGeoJSON, MapControlButton, getIcon, rewindGeometry, getGeoJSONPropertyValue, currentlySupportedDrawModes, MapView, MapViewLayer, defaultLayers, getFeatureExtent } from '@opengeoweb/webmap-react';
6
- import { SHARED_NAMESPACE, useConfirmationDialog, ToggleMenu, dateUtils, calculateStartSize, ToolContainerDraggable, AlertBanner, ConfirmationDialog, getAxiosErrorMessage, usePrevious, CustomIconButton, CustomTooltip, Avatar, getInitials, SwitchButton, CustomToggleButton, Filter, LastUpdateTime, StatusTag, ErrorBoundary, pollingIntervalTimeout, isAxiosError as isAxiosError$1 } from '@opengeoweb/shared';
6
+ import { SHARED_NAMESPACE, useConfirmationDialog, ToggleMenu, dateUtils, calculateStartSize, ToolContainerDraggable, AlertBanner, ConfirmationDialog, getAxiosErrorMessage, usePrevious, CustomIconButton, CustomTooltip, Avatar, getInitials, SwitchButton, CustomToggleButton, Filter, getPosition, FilterChip, FilterListItem, LastUpdateTime, StatusTag, ErrorBoundary, pollingIntervalTimeout, isAxiosError as isAxiosError$1 } from '@opengeoweb/shared';
7
7
  import { createEntityAdapter, createSlice, createSelector, createListenerMiddleware, isAnyOf } from '@reduxjs/toolkit';
8
8
  import i18n from 'i18next';
9
9
  import { useTranslation } from 'react-i18next';
@@ -12,7 +12,7 @@ import { FORM_FIELDS_NAMESPACE, ReactHookFormHiddenInput, isValidGeoJsonCoordina
12
12
  import { snackbarActions } from '@opengeoweb/snackbar';
13
13
  import * as React from 'react';
14
14
  import React__default, { useState, useEffect, useRef } from 'react';
15
- import { styled, Box, Typography, ListItem, Grid, Paper, ListItemButton, Stack, LinearProgress, Button, FormHelperText, MenuItem, Tabs, Tab, Card, CardContent, ListItemIcon, CircularProgress, List } from '@mui/material';
15
+ import { styled, Box, Typography, ListItem, Grid, Paper, ListItemButton, Stack, LinearProgress, Button, FormHelperText, MenuItem, Tabs, Tab, Card, CardContent, ListItemIcon, CircularProgress, Menu, DialogTitle, DialogContent, Switch, List } from '@mui/material';
16
16
  import { VariableSizeList } from 'react-window';
17
17
  import AutoSizer from 'react-virtualized-auto-sizer';
18
18
  import { getApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
@@ -132,10 +132,17 @@ var en = {
132
132
  "area-object-loader-no-areas-objects": "No areas or objects found",
133
133
  objects: "Objects",
134
134
  areas: "Areas",
135
- "filter-turn-on": "Turn filter on",
136
- "filter-turn-off": "Turn filter off",
137
135
  "filter-select-all": "Select all",
138
136
  "filter-no-results": "No results",
137
+ "filter-all": "All",
138
+ "filter-options": "Filter options",
139
+ "filter-show-all": "Show all",
140
+ "filter-hide-all": "Hide all",
141
+ "filter-incident": "Incidents",
142
+ "filter-domain": "Domains",
143
+ "filter-phenomenon": "Phenomena",
144
+ "filter-level": "Levels",
145
+ "filter-source": "Sources",
139
146
  "error-title-retry": "Try again"
140
147
  };
141
148
  var nl = {
@@ -238,7 +245,7 @@ var nl = {
238
245
  "warning-list-header-end-time": "Eindtijd",
239
246
  "warning-list-header-domain": "Domein",
240
247
  "warning-list-header-phenomenon": "Fenomeen",
241
- "warning-list-header-level": "Hoogte",
248
+ "warning-list-header-level": "Niveau",
242
249
  "warning-list-header-status": "Status",
243
250
  "warning-list-header-draft": "CONCEPT",
244
251
  "area-object-loader-title": "Gebieden & Objecten toevoegen",
@@ -247,10 +254,17 @@ var nl = {
247
254
  "area-object-loader-no-areas-objects": "Geen gebieden of objecten gevonden",
248
255
  objects: "Objecten",
249
256
  areas: "Gebieden",
250
- "filter-turn-on": "Zet filter aan",
251
- "filter-turn-off": "Zet filter uit",
252
257
  "filter-select-all": "Selecteer alles",
253
258
  "filter-no-results": "Geen resultaten",
259
+ "filter-all": "Alle",
260
+ "filter-options": "Filter opties",
261
+ "filter-show-all": "Alles tonen",
262
+ "filter-hide-all": "Alles verbergen",
263
+ "filter-incident": "Incidenten",
264
+ "filter-domain": "Domeinen",
265
+ "filter-phenomenon": "Fenomenen",
266
+ "filter-level": "Niveaus",
267
+ "filter-source": "Bronnen",
254
268
  "error-title-retry": "Probeer opnieuw"
255
269
  };
256
270
  var fi = {
@@ -362,10 +376,17 @@ var fi = {
362
376
  "area-object-loader-no-areas-objects": "ei käännetty",
363
377
  objects: "ei käännetty",
364
378
  areas: "ei käännetty",
365
- "filter-turn-on": "ei käännetty",
366
- "filter-turn-off": "ei käännetty",
367
379
  "filter-select-all": "ei käännetty",
368
380
  "filter-no-results": "ei käännetty",
381
+ "filter-all": "Kaikki",
382
+ "filter-options": "ei käännetty",
383
+ "filter-show-all": "ei käännetty",
384
+ "filter-hide-all": "ei käännetty",
385
+ "filter-incident": "ei käännetty",
386
+ "filter-domain": "ei käännetty",
387
+ "filter-phenomenon": "ei käännetty",
388
+ "filter-level": "ei käännetty",
389
+ "filter-source": "ei käännetty",
369
390
  "error-title-retry": "Yritä uudelleen"
370
391
  };
371
392
  var no = {
@@ -477,10 +498,17 @@ var no = {
477
498
  "area-object-loader-no-areas-objects": "Ingen områder eller objekter funnet",
478
499
  objects: "Objekter",
479
500
  areas: "Områder",
480
- "filter-turn-on": "Skru på filter",
481
- "filter-turn-off": "Skru av filter",
482
501
  "filter-select-all": "Velg alle",
483
502
  "filter-no-results": "Ingen resultat",
503
+ "filter-all": "Alle",
504
+ "filter-options": "ikke oversatt",
505
+ "filter-show-all": "ikke oversatt",
506
+ "filter-hide-all": "ikke oversatt",
507
+ "filter-incident": "ikke oversatt",
508
+ "filter-domain": "ikke oversatt",
509
+ "filter-phenomenon": "ikke oversatt",
510
+ "filter-level": "ikke oversatt",
511
+ "filter-source": "ikke oversatt",
484
512
  "error-title-retry": "Prøv igjen"
485
513
  };
486
514
  var warningsTranslations = {
@@ -510,7 +538,7 @@ var global$o =
510
538
 
511
539
  var objectGetOwnPropertyDescriptor = {};
512
540
 
513
- var fails$p = function (exec) {
541
+ var fails$q = function (exec) {
514
542
  try {
515
543
  return !!exec();
516
544
  } catch (error) {
@@ -518,17 +546,17 @@ var fails$p = function (exec) {
518
546
  }
519
547
  };
520
548
 
521
- var fails$o = fails$p;
549
+ var fails$p = fails$q;
522
550
 
523
551
  // Detect IE8's incomplete defineProperty implementation
524
- var descriptors = !fails$o(function () {
552
+ var descriptors = !fails$p(function () {
525
553
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
526
554
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
527
555
  });
528
556
 
529
- var fails$n = fails$p;
557
+ var fails$o = fails$q;
530
558
 
531
- var functionBindNative = !fails$n(function () {
559
+ var functionBindNative = !fails$o(function () {
532
560
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
533
561
  var test = (function () { /* empty */ }).bind();
534
562
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -580,24 +608,24 @@ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
580
608
  };
581
609
  };
582
610
 
583
- var uncurryThis$m = functionUncurryThis;
611
+ var uncurryThis$n = functionUncurryThis;
584
612
 
585
- var toString$b = uncurryThis$m({}.toString);
586
- var stringSlice$5 = uncurryThis$m(''.slice);
613
+ var toString$c = uncurryThis$n({}.toString);
614
+ var stringSlice$5 = uncurryThis$n(''.slice);
587
615
 
588
616
  var classofRaw$2 = function (it) {
589
- return stringSlice$5(toString$b(it), 8, -1);
617
+ return stringSlice$5(toString$c(it), 8, -1);
590
618
  };
591
619
 
592
- var uncurryThis$l = functionUncurryThis;
593
- var fails$m = fails$p;
620
+ var uncurryThis$m = functionUncurryThis;
621
+ var fails$n = fails$q;
594
622
  var classof$8 = classofRaw$2;
595
623
 
596
624
  var $Object$4 = Object;
597
- var split = uncurryThis$l(''.split);
625
+ var split = uncurryThis$m(''.split);
598
626
 
599
627
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
600
- var indexedObject = fails$m(function () {
628
+ var indexedObject = fails$n(function () {
601
629
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
602
630
  // eslint-disable-next-line no-prototype-builtins -- safe
603
631
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -613,12 +641,12 @@ var isNullOrUndefined$6 = function (it) {
613
641
 
614
642
  var isNullOrUndefined$5 = isNullOrUndefined$6;
615
643
 
616
- var $TypeError$h = TypeError;
644
+ var $TypeError$i = TypeError;
617
645
 
618
646
  // `RequireObjectCoercible` abstract operation
619
647
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
620
648
  var requireObjectCoercible$8 = function (it) {
621
- if (isNullOrUndefined$5(it)) throw new $TypeError$h("Can't call method on " + it);
649
+ if (isNullOrUndefined$5(it)) throw new $TypeError$i("Can't call method on " + it);
622
650
  return it;
623
651
  };
624
652
 
@@ -659,14 +687,14 @@ var getBuiltIn$9 = function (namespace, method) {
659
687
  return arguments.length < 2 ? aFunction(global$n[namespace]) : global$n[namespace] && global$n[namespace][method];
660
688
  };
661
689
 
662
- var uncurryThis$k = functionUncurryThis;
690
+ var uncurryThis$l = functionUncurryThis;
663
691
 
664
- var objectIsPrototypeOf = uncurryThis$k({}.isPrototypeOf);
692
+ var objectIsPrototypeOf = uncurryThis$l({}.isPrototypeOf);
665
693
 
666
694
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
667
695
 
668
696
  var global$m = global$o;
669
- var userAgent$3 = engineUserAgent;
697
+ var userAgent$5 = engineUserAgent;
670
698
 
671
699
  var process$3 = global$m.process;
672
700
  var Deno$1 = global$m.Deno;
@@ -683,10 +711,10 @@ if (v8) {
683
711
 
684
712
  // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
685
713
  // so check `userAgent` even if `.v8` exists, but 0
686
- if (!version && userAgent$3) {
687
- match = userAgent$3.match(/Edge\/(\d+)/);
714
+ if (!version && userAgent$5) {
715
+ match = userAgent$5.match(/Edge\/(\d+)/);
688
716
  if (!match || match[1] >= 74) {
689
- match = userAgent$3.match(/Chrome\/(\d+)/);
717
+ match = userAgent$5.match(/Chrome\/(\d+)/);
690
718
  if (match) version = +match[1];
691
719
  }
692
720
  }
@@ -695,13 +723,13 @@ var engineV8Version = version;
695
723
 
696
724
  /* eslint-disable es/no-symbol -- required for testing */
697
725
  var V8_VERSION$1 = engineV8Version;
698
- var fails$l = fails$p;
726
+ var fails$m = fails$q;
699
727
  var global$l = global$o;
700
728
 
701
729
  var $String$5 = global$l.String;
702
730
 
703
731
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
704
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$l(function () {
732
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(function () {
705
733
  var symbol = Symbol('symbol detection');
706
734
  // Chrome 38 Symbol has incorrect toString conversion
707
735
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -735,7 +763,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
735
763
 
736
764
  var $String$4 = String;
737
765
 
738
- var tryToString$4 = function (argument) {
766
+ var tryToString$5 = function (argument) {
739
767
  try {
740
768
  return $String$4(argument);
741
769
  } catch (error) {
@@ -744,31 +772,31 @@ var tryToString$4 = function (argument) {
744
772
  };
745
773
 
746
774
  var isCallable$j = isCallable$n;
747
- var tryToString$3 = tryToString$4;
775
+ var tryToString$4 = tryToString$5;
748
776
 
749
- var $TypeError$g = TypeError;
777
+ var $TypeError$h = TypeError;
750
778
 
751
779
  // `Assert: IsCallable(argument) is true`
752
- var aCallable$9 = function (argument) {
780
+ var aCallable$a = function (argument) {
753
781
  if (isCallable$j(argument)) return argument;
754
- throw new $TypeError$g(tryToString$3(argument) + ' is not a function');
782
+ throw new $TypeError$h(tryToString$4(argument) + ' is not a function');
755
783
  };
756
784
 
757
- var aCallable$8 = aCallable$9;
785
+ var aCallable$9 = aCallable$a;
758
786
  var isNullOrUndefined$4 = isNullOrUndefined$6;
759
787
 
760
788
  // `GetMethod` abstract operation
761
789
  // https://tc39.es/ecma262/#sec-getmethod
762
790
  var getMethod$5 = function (V, P) {
763
791
  var func = V[P];
764
- return isNullOrUndefined$4(func) ? undefined : aCallable$8(func);
792
+ return isNullOrUndefined$4(func) ? undefined : aCallable$9(func);
765
793
  };
766
794
 
767
795
  var call$g = functionCall;
768
796
  var isCallable$i = isCallable$n;
769
797
  var isObject$c = isObject$d;
770
798
 
771
- var $TypeError$f = TypeError;
799
+ var $TypeError$g = TypeError;
772
800
 
773
801
  // `OrdinaryToPrimitive` abstract operation
774
802
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
@@ -777,7 +805,7 @@ var ordinaryToPrimitive$1 = function (input, pref) {
777
805
  if (pref === 'string' && isCallable$i(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
778
806
  if (isCallable$i(fn = input.valueOf) && !isObject$c(val = call$g(fn, input))) return val;
779
807
  if (pref !== 'string' && isCallable$i(fn = input.toString) && !isObject$c(val = call$g(fn, input))) return val;
780
- throw new $TypeError$f("Can't convert object to primitive value");
808
+ throw new $TypeError$g("Can't convert object to primitive value");
781
809
  };
782
810
 
783
811
  var sharedStore = {exports: {}};
@@ -823,30 +851,30 @@ var $Object$2 = Object;
823
851
 
824
852
  // `ToObject` abstract operation
825
853
  // https://tc39.es/ecma262/#sec-toobject
826
- var toObject$5 = function (argument) {
854
+ var toObject$6 = function (argument) {
827
855
  return $Object$2(requireObjectCoercible$6(argument));
828
856
  };
829
857
 
830
- var uncurryThis$j = functionUncurryThis;
831
- var toObject$4 = toObject$5;
858
+ var uncurryThis$k = functionUncurryThis;
859
+ var toObject$5 = toObject$6;
832
860
 
833
- var hasOwnProperty = uncurryThis$j({}.hasOwnProperty);
861
+ var hasOwnProperty = uncurryThis$k({}.hasOwnProperty);
834
862
 
835
863
  // `HasOwnProperty` abstract operation
836
864
  // https://tc39.es/ecma262/#sec-hasownproperty
837
865
  // eslint-disable-next-line es/no-object-hasown -- safe
838
866
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
839
- return hasOwnProperty(toObject$4(it), key);
867
+ return hasOwnProperty(toObject$5(it), key);
840
868
  };
841
869
 
842
- var uncurryThis$i = functionUncurryThis;
870
+ var uncurryThis$j = functionUncurryThis;
843
871
 
844
872
  var id = 0;
845
873
  var postfix = Math.random();
846
- var toString$a = uncurryThis$i(1.0.toString);
874
+ var toString$b = uncurryThis$j(1.0.toString);
847
875
 
848
876
  var uid$2 = function (key) {
849
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
877
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$b(++id + postfix, 36);
850
878
  };
851
879
 
852
880
  var global$j = global$o;
@@ -875,7 +903,7 @@ var getMethod$4 = getMethod$5;
875
903
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
876
904
  var wellKnownSymbol$g = wellKnownSymbol$h;
877
905
 
878
- var $TypeError$e = TypeError;
906
+ var $TypeError$f = TypeError;
879
907
  var TO_PRIMITIVE = wellKnownSymbol$g('toPrimitive');
880
908
 
881
909
  // `ToPrimitive` abstract operation
@@ -888,7 +916,7 @@ var toPrimitive$1 = function (input, pref) {
888
916
  if (pref === undefined) pref = 'default';
889
917
  result = call$f(exoticToPrim, input, pref);
890
918
  if (!isObject$b(result) || isSymbol$1(result)) return result;
891
- throw new $TypeError$e("Can't convert object to primitive value");
919
+ throw new $TypeError$f("Can't convert object to primitive value");
892
920
  }
893
921
  if (pref === undefined) pref = 'number';
894
922
  return ordinaryToPrimitive(input, pref);
@@ -916,11 +944,11 @@ var documentCreateElement$2 = function (it) {
916
944
  };
917
945
 
918
946
  var DESCRIPTORS$e = descriptors;
919
- var fails$k = fails$p;
947
+ var fails$l = fails$q;
920
948
  var createElement$1 = documentCreateElement$2;
921
949
 
922
950
  // Thanks to IE8 for its funny defineProperty
923
- var ie8DomDefine = !DESCRIPTORS$e && !fails$k(function () {
951
+ var ie8DomDefine = !DESCRIPTORS$e && !fails$l(function () {
924
952
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
925
953
  return Object.defineProperty(createElement$1('div'), 'a', {
926
954
  get: function () { return 7; }
@@ -953,11 +981,11 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 :
953
981
  var objectDefineProperty = {};
954
982
 
955
983
  var DESCRIPTORS$c = descriptors;
956
- var fails$j = fails$p;
984
+ var fails$k = fails$q;
957
985
 
958
986
  // V8 ~ Chrome 36-
959
987
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
960
- var v8PrototypeDefineBug = DESCRIPTORS$c && fails$j(function () {
988
+ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$k(function () {
961
989
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
962
990
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
963
991
  value: 42,
@@ -968,12 +996,12 @@ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$j(function () {
968
996
  var isObject$9 = isObject$d;
969
997
 
970
998
  var $String$3 = String;
971
- var $TypeError$d = TypeError;
999
+ var $TypeError$e = TypeError;
972
1000
 
973
1001
  // `Assert: Type(argument) is Object`
974
1002
  var anObject$d = function (argument) {
975
1003
  if (isObject$9(argument)) return argument;
976
- throw new $TypeError$d($String$3(argument) + ' is not an object');
1004
+ throw new $TypeError$e($String$3(argument) + ' is not an object');
977
1005
  };
978
1006
 
979
1007
  var DESCRIPTORS$b = descriptors;
@@ -982,7 +1010,7 @@ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
982
1010
  var anObject$c = anObject$d;
983
1011
  var toPropertyKey = toPropertyKey$2;
984
1012
 
985
- var $TypeError$c = TypeError;
1013
+ var $TypeError$d = TypeError;
986
1014
  // eslint-disable-next-line es/no-object-defineproperty -- safe
987
1015
  var $defineProperty = Object.defineProperty;
988
1016
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -1015,7 +1043,7 @@ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
1015
1043
  if (IE8_DOM_DEFINE) try {
1016
1044
  return $defineProperty(O, P, Attributes);
1017
1045
  } catch (error) { /* empty */ }
1018
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$c('Accessors not supported');
1046
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$d('Accessors not supported');
1019
1047
  if ('value' in Attributes) O[P] = Attributes.value;
1020
1048
  return O;
1021
1049
  };
@@ -1051,11 +1079,11 @@ var functionName = {
1051
1079
  CONFIGURABLE: CONFIGURABLE
1052
1080
  };
1053
1081
 
1054
- var uncurryThis$h = functionUncurryThis;
1082
+ var uncurryThis$i = functionUncurryThis;
1055
1083
  var isCallable$h = isCallable$n;
1056
1084
  var store$1 = sharedStoreExports;
1057
1085
 
1058
- var functionToString = uncurryThis$h(Function.toString);
1086
+ var functionToString = uncurryThis$i(Function.toString);
1059
1087
 
1060
1088
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1061
1089
  if (!isCallable$h(store$1.inspectSource)) {
@@ -1155,8 +1183,8 @@ var internalState = {
1155
1183
  getterFor: getterFor
1156
1184
  };
1157
1185
 
1158
- var uncurryThis$g = functionUncurryThis;
1159
- var fails$i = fails$p;
1186
+ var uncurryThis$h = functionUncurryThis;
1187
+ var fails$j = fails$q;
1160
1188
  var isCallable$f = isCallable$n;
1161
1189
  var hasOwn$7 = hasOwnProperty_1;
1162
1190
  var DESCRIPTORS$8 = descriptors;
@@ -1169,11 +1197,11 @@ var getInternalState$2 = InternalStateModule$2.get;
1169
1197
  var $String$2 = String;
1170
1198
  // eslint-disable-next-line es/no-object-defineproperty -- safe
1171
1199
  var defineProperty$6 = Object.defineProperty;
1172
- var stringSlice$4 = uncurryThis$g(''.slice);
1173
- var replace$4 = uncurryThis$g(''.replace);
1174
- var join = uncurryThis$g([].join);
1200
+ var stringSlice$4 = uncurryThis$h(''.slice);
1201
+ var replace$4 = uncurryThis$h(''.replace);
1202
+ var join = uncurryThis$h([].join);
1175
1203
 
1176
- var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$i(function () {
1204
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$j(function () {
1177
1205
  return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1178
1206
  });
1179
1207
 
@@ -1243,14 +1271,14 @@ var defineBuiltIn$7 = function (O, key, value, options) {
1243
1271
  var objectGetOwnPropertyNames = {};
1244
1272
 
1245
1273
  var ceil = Math.ceil;
1246
- var floor = Math.floor;
1274
+ var floor$1 = Math.floor;
1247
1275
 
1248
1276
  // `Math.trunc` method
1249
1277
  // https://tc39.es/ecma262/#sec-math.trunc
1250
1278
  // eslint-disable-next-line es/no-math-trunc -- safe
1251
1279
  var mathTrunc = Math.trunc || function trunc(x) {
1252
1280
  var n = +x;
1253
- return (n > 0 ? floor : ceil)(n);
1281
+ return (n > 0 ? floor$1 : ceil)(n);
1254
1282
  };
1255
1283
 
1256
1284
  var trunc = mathTrunc;
@@ -1291,19 +1319,19 @@ var toLength$1 = toLength$2;
1291
1319
 
1292
1320
  // `LengthOfArrayLike` abstract operation
1293
1321
  // https://tc39.es/ecma262/#sec-lengthofarraylike
1294
- var lengthOfArrayLike$4 = function (obj) {
1322
+ var lengthOfArrayLike$5 = function (obj) {
1295
1323
  return toLength$1(obj.length);
1296
1324
  };
1297
1325
 
1298
1326
  var toIndexedObject$3 = toIndexedObject$5;
1299
1327
  var toAbsoluteIndex = toAbsoluteIndex$1;
1300
- var lengthOfArrayLike$3 = lengthOfArrayLike$4;
1328
+ var lengthOfArrayLike$4 = lengthOfArrayLike$5;
1301
1329
 
1302
1330
  // `Array.prototype.{ indexOf, includes }` methods implementation
1303
1331
  var createMethod$3 = function (IS_INCLUDES) {
1304
1332
  return function ($this, el, fromIndex) {
1305
1333
  var O = toIndexedObject$3($this);
1306
- var length = lengthOfArrayLike$3(O);
1334
+ var length = lengthOfArrayLike$4(O);
1307
1335
  if (length === 0) return !IS_INCLUDES && -1;
1308
1336
  var index = toAbsoluteIndex(fromIndex, length);
1309
1337
  var value;
@@ -1329,23 +1357,23 @@ var arrayIncludes = {
1329
1357
  indexOf: createMethod$3(false)
1330
1358
  };
1331
1359
 
1332
- var uncurryThis$f = functionUncurryThis;
1360
+ var uncurryThis$g = functionUncurryThis;
1333
1361
  var hasOwn$6 = hasOwnProperty_1;
1334
1362
  var toIndexedObject$2 = toIndexedObject$5;
1335
1363
  var indexOf$1 = arrayIncludes.indexOf;
1336
1364
  var hiddenKeys$2 = hiddenKeys$4;
1337
1365
 
1338
- var push$1 = uncurryThis$f([].push);
1366
+ var push$2 = uncurryThis$g([].push);
1339
1367
 
1340
1368
  var objectKeysInternal = function (object, names) {
1341
1369
  var O = toIndexedObject$2(object);
1342
1370
  var i = 0;
1343
1371
  var result = [];
1344
1372
  var key;
1345
- for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$1(result, key);
1373
+ for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push$2(result, key);
1346
1374
  // Don't enum bug & hidden keys
1347
1375
  while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
1348
- ~indexOf$1(result, key) || push$1(result, key);
1376
+ ~indexOf$1(result, key) || push$2(result, key);
1349
1377
  }
1350
1378
  return result;
1351
1379
  };
@@ -1379,12 +1407,12 @@ var objectGetOwnPropertySymbols = {};
1379
1407
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1380
1408
 
1381
1409
  var getBuiltIn$7 = getBuiltIn$9;
1382
- var uncurryThis$e = functionUncurryThis;
1410
+ var uncurryThis$f = functionUncurryThis;
1383
1411
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1384
1412
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1385
1413
  var anObject$b = anObject$d;
1386
1414
 
1387
- var concat$1 = uncurryThis$e([].concat);
1415
+ var concat$1 = uncurryThis$f([].concat);
1388
1416
 
1389
1417
  // all object keys, includes non-enumerable and symbols
1390
1418
  var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1410,7 +1438,7 @@ var copyConstructorProperties$3 = function (target, source, exceptions) {
1410
1438
  }
1411
1439
  };
1412
1440
 
1413
- var fails$h = fails$p;
1441
+ var fails$i = fails$q;
1414
1442
  var isCallable$d = isCallable$n;
1415
1443
 
1416
1444
  var replacement = /#|\.prototype\./;
@@ -1419,7 +1447,7 @@ var isForced$2 = function (feature, detection) {
1419
1447
  var value = data[normalize(feature)];
1420
1448
  return value === POLYFILL ? true
1421
1449
  : value === NATIVE ? false
1422
- : isCallable$d(detection) ? fails$h(detection)
1450
+ : isCallable$d(detection) ? fails$i(detection)
1423
1451
  : !!detection;
1424
1452
  };
1425
1453
 
@@ -1499,24 +1527,24 @@ var objectKeys$2 = Object.keys || function keys(O) {
1499
1527
  };
1500
1528
 
1501
1529
  var DESCRIPTORS$7 = descriptors;
1502
- var uncurryThis$d = functionUncurryThis;
1530
+ var uncurryThis$e = functionUncurryThis;
1503
1531
  var call$d = functionCall;
1504
- var fails$g = fails$p;
1532
+ var fails$h = fails$q;
1505
1533
  var objectKeys$1 = objectKeys$2;
1506
1534
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1507
1535
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1508
- var toObject$3 = toObject$5;
1536
+ var toObject$4 = toObject$6;
1509
1537
  var IndexedObject$1 = indexedObject;
1510
1538
 
1511
1539
  // eslint-disable-next-line es/no-object-assign -- safe
1512
1540
  var $assign = Object.assign;
1513
1541
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1514
1542
  var defineProperty$5 = Object.defineProperty;
1515
- var concat = uncurryThis$d([].concat);
1543
+ var concat = uncurryThis$e([].concat);
1516
1544
 
1517
1545
  // `Object.assign` method
1518
1546
  // https://tc39.es/ecma262/#sec-object.assign
1519
- var objectAssign = !$assign || fails$g(function () {
1547
+ var objectAssign = !$assign || fails$h(function () {
1520
1548
  // should have correct order of operations (Edge bug)
1521
1549
  if (DESCRIPTORS$7 && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
1522
1550
  enumerable: true,
@@ -1537,7 +1565,7 @@ var objectAssign = !$assign || fails$g(function () {
1537
1565
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1538
1566
  return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
1539
1567
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1540
- var T = toObject$3(target);
1568
+ var T = toObject$4(target);
1541
1569
  var argumentsLength = arguments.length;
1542
1570
  var index = 1;
1543
1571
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
@@ -1555,13 +1583,13 @@ var objectAssign = !$assign || fails$g(function () {
1555
1583
  } return T;
1556
1584
  } : $assign;
1557
1585
 
1558
- var $$h = _export;
1586
+ var $$i = _export;
1559
1587
  var assign = objectAssign;
1560
1588
 
1561
1589
  // `Object.assign` method
1562
1590
  // https://tc39.es/ecma262/#sec-object.assign
1563
1591
  // eslint-disable-next-line es/no-object-assign -- required for testing
1564
- $$h({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1592
+ $$i({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1565
1593
  assign: assign
1566
1594
  });
1567
1595
 
@@ -2203,9 +2231,9 @@ var addToUnscopables$2 = function (key) {
2203
2231
 
2204
2232
  var iterators = {};
2205
2233
 
2206
- var fails$f = fails$p;
2234
+ var fails$g = fails$q;
2207
2235
 
2208
- var correctPrototypeGetter = !fails$f(function () {
2236
+ var correctPrototypeGetter = !fails$g(function () {
2209
2237
  function F() { /* empty */ }
2210
2238
  F.prototype.constructor = null;
2211
2239
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
@@ -2214,7 +2242,7 @@ var correctPrototypeGetter = !fails$f(function () {
2214
2242
 
2215
2243
  var hasOwn$4 = hasOwnProperty_1;
2216
2244
  var isCallable$c = isCallable$n;
2217
- var toObject$2 = toObject$5;
2245
+ var toObject$3 = toObject$6;
2218
2246
  var sharedKey = sharedKey$3;
2219
2247
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2220
2248
 
@@ -2226,7 +2254,7 @@ var ObjectPrototype = $Object$1.prototype;
2226
2254
  // https://tc39.es/ecma262/#sec-object.getprototypeof
2227
2255
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
2228
2256
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
2229
- var object = toObject$2(O);
2257
+ var object = toObject$3(O);
2230
2258
  if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
2231
2259
  var constructor = object.constructor;
2232
2260
  if (isCallable$c(constructor) && object instanceof constructor) {
@@ -2234,7 +2262,7 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf :
2234
2262
  } return object instanceof $Object$1 ? ObjectPrototype : null;
2235
2263
  };
2236
2264
 
2237
- var fails$e = fails$p;
2265
+ var fails$f = fails$q;
2238
2266
  var isCallable$b = isCallable$n;
2239
2267
  var isObject$7 = isObject$d;
2240
2268
  var getPrototypeOf$1 = objectGetPrototypeOf;
@@ -2259,7 +2287,7 @@ if ([].keys) {
2259
2287
  }
2260
2288
  }
2261
2289
 
2262
- var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$e(function () {
2290
+ var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$2) || fails$f(function () {
2263
2291
  var test = {};
2264
2292
  // FF44- legacy iterators case
2265
2293
  return IteratorPrototype$2[ITERATOR$6].call(test) !== test;
@@ -2309,13 +2337,13 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
2309
2337
  return IteratorConstructor;
2310
2338
  };
2311
2339
 
2312
- var uncurryThis$c = functionUncurryThis;
2313
- var aCallable$7 = aCallable$9;
2340
+ var uncurryThis$d = functionUncurryThis;
2341
+ var aCallable$8 = aCallable$a;
2314
2342
 
2315
2343
  var functionUncurryThisAccessor = function (object, key, method) {
2316
2344
  try {
2317
2345
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2318
- return uncurryThis$c(aCallable$7(Object.getOwnPropertyDescriptor(object, key)[method]));
2346
+ return uncurryThis$d(aCallable$8(Object.getOwnPropertyDescriptor(object, key)[method]));
2319
2347
  } catch (error) { /* empty */ }
2320
2348
  };
2321
2349
 
@@ -2328,11 +2356,11 @@ var isPossiblePrototype$1 = function (argument) {
2328
2356
  var isPossiblePrototype = isPossiblePrototype$1;
2329
2357
 
2330
2358
  var $String$1 = String;
2331
- var $TypeError$b = TypeError;
2359
+ var $TypeError$c = TypeError;
2332
2360
 
2333
2361
  var aPossiblePrototype$1 = function (argument) {
2334
2362
  if (isPossiblePrototype(argument)) return argument;
2335
- throw new $TypeError$b("Can't set " + $String$1(argument) + ' as a prototype');
2363
+ throw new $TypeError$c("Can't set " + $String$1(argument) + ' as a prototype');
2336
2364
  };
2337
2365
 
2338
2366
  /* eslint-disable no-proto -- safe */
@@ -2364,7 +2392,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
2364
2392
  };
2365
2393
  }() : undefined);
2366
2394
 
2367
- var $$g = _export;
2395
+ var $$h = _export;
2368
2396
  var call$c = functionCall;
2369
2397
  var FunctionName = functionName;
2370
2398
  var isCallable$a = isCallable$n;
@@ -2452,7 +2480,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2452
2480
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2453
2481
  defineBuiltIn$4(IterablePrototype, KEY, methods[KEY]);
2454
2482
  }
2455
- } else $$g({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2483
+ } else $$h({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2456
2484
  }
2457
2485
 
2458
2486
  // define iterator
@@ -2624,7 +2652,7 @@ var isArray$1 = Array.isArray || function isArray(argument) {
2624
2652
  var DESCRIPTORS$4 = descriptors;
2625
2653
  var isArray = isArray$1;
2626
2654
 
2627
- var $TypeError$a = TypeError;
2655
+ var $TypeError$b = TypeError;
2628
2656
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2629
2657
  var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
2630
2658
 
@@ -2642,28 +2670,28 @@ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$4 && !function () {
2642
2670
 
2643
2671
  var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2644
2672
  if (isArray(O) && !getOwnPropertyDescriptor$1(O, 'length').writable) {
2645
- throw new $TypeError$a('Cannot set read only .length');
2673
+ throw new $TypeError$b('Cannot set read only .length');
2646
2674
  } return O.length = length;
2647
2675
  } : function (O, length) {
2648
2676
  return O.length = length;
2649
2677
  };
2650
2678
 
2651
- var $TypeError$9 = TypeError;
2679
+ var $TypeError$a = TypeError;
2652
2680
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2653
2681
 
2654
2682
  var doesNotExceedSafeInteger$1 = function (it) {
2655
- if (it > MAX_SAFE_INTEGER) throw $TypeError$9('Maximum allowed index exceeded');
2683
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$a('Maximum allowed index exceeded');
2656
2684
  return it;
2657
2685
  };
2658
2686
 
2659
- var $$f = _export;
2660
- var toObject$1 = toObject$5;
2661
- var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2687
+ var $$g = _export;
2688
+ var toObject$2 = toObject$6;
2689
+ var lengthOfArrayLike$3 = lengthOfArrayLike$5;
2662
2690
  var setArrayLength = arraySetLength;
2663
2691
  var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2664
- var fails$d = fails$p;
2692
+ var fails$e = fails$q;
2665
2693
 
2666
- var INCORRECT_TO_LENGTH = fails$d(function () {
2694
+ var INCORRECT_TO_LENGTH = fails$e(function () {
2667
2695
  return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
2668
2696
  });
2669
2697
 
@@ -2678,15 +2706,15 @@ var properErrorOnNonWritableLength = function () {
2678
2706
  }
2679
2707
  };
2680
2708
 
2681
- var FORCED$3 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2709
+ var FORCED$4 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
2682
2710
 
2683
2711
  // `Array.prototype.push` method
2684
2712
  // https://tc39.es/ecma262/#sec-array.prototype.push
2685
- $$f({ target: 'Array', proto: true, arity: 1, forced: FORCED$3 }, {
2713
+ $$g({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
2686
2714
  // eslint-disable-next-line no-unused-vars -- required for `.length`
2687
2715
  push: function push(item) {
2688
- var O = toObject$1(this);
2689
- var len = lengthOfArrayLike$2(O);
2716
+ var O = toObject$2(this);
2717
+ var len = lengthOfArrayLike$3(O);
2690
2718
  var argCount = arguments.length;
2691
2719
  doesNotExceedSafeInteger(len + argCount);
2692
2720
  for (var i = 0; i < argCount; i++) {
@@ -3261,6 +3289,393 @@ const ConfirmDeleteDialog = ({
3261
3289
  * */
3262
3290
  const publicWarningDialogType = uiTypes.DialogTypes.PublicWarnings;
3263
3291
 
3292
+ var $$f = _export;
3293
+ var $includes = arrayIncludes.includes;
3294
+ var fails$d = fails$q;
3295
+ var addToUnscopables = addToUnscopables$2;
3296
+
3297
+ // FF99+ bug
3298
+ var BROKEN_ON_SPARSE = fails$d(function () {
3299
+ // eslint-disable-next-line es/no-array-prototype-includes -- detection
3300
+ return !Array(1).includes();
3301
+ });
3302
+
3303
+ // `Array.prototype.includes` method
3304
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
3305
+ $$f({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
3306
+ includes: function includes(el /* , fromIndex = 0 */) {
3307
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
3308
+ }
3309
+ });
3310
+
3311
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3312
+ addToUnscopables('includes');
3313
+
3314
+ var isObject$4 = isObject$d;
3315
+ var classof$6 = classofRaw$2;
3316
+ var wellKnownSymbol$a = wellKnownSymbol$h;
3317
+
3318
+ var MATCH$1 = wellKnownSymbol$a('match');
3319
+
3320
+ // `IsRegExp` abstract operation
3321
+ // https://tc39.es/ecma262/#sec-isregexp
3322
+ var isRegexp = function (it) {
3323
+ var isRegExp;
3324
+ return isObject$4(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$6(it) === 'RegExp');
3325
+ };
3326
+
3327
+ var isRegExp = isRegexp;
3328
+
3329
+ var $TypeError$9 = TypeError;
3330
+
3331
+ var notARegexp = function (it) {
3332
+ if (isRegExp(it)) {
3333
+ throw new $TypeError$9("The method doesn't accept regular expressions");
3334
+ } return it;
3335
+ };
3336
+
3337
+ var wellKnownSymbol$9 = wellKnownSymbol$h;
3338
+
3339
+ var TO_STRING_TAG$1 = wellKnownSymbol$9('toStringTag');
3340
+ var test$1 = {};
3341
+
3342
+ test$1[TO_STRING_TAG$1] = 'z';
3343
+
3344
+ var toStringTagSupport = String(test$1) === '[object z]';
3345
+
3346
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
3347
+ var isCallable$9 = isCallable$n;
3348
+ var classofRaw$1 = classofRaw$2;
3349
+ var wellKnownSymbol$8 = wellKnownSymbol$h;
3350
+
3351
+ var TO_STRING_TAG = wellKnownSymbol$8('toStringTag');
3352
+ var $Object = Object;
3353
+
3354
+ // ES3 wrong here
3355
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
3356
+
3357
+ // fallback for IE11 Script Access Denied error
3358
+ var tryGet = function (it, key) {
3359
+ try {
3360
+ return it[key];
3361
+ } catch (error) { /* empty */ }
3362
+ };
3363
+
3364
+ // getting tag from ES6+ `Object.prototype.toString`
3365
+ var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
3366
+ var O, tag, result;
3367
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
3368
+ // @@toStringTag case
3369
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3370
+ // builtinTag case
3371
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
3372
+ // ES3 arguments fallback
3373
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$9(O.callee) ? 'Arguments' : result;
3374
+ };
3375
+
3376
+ var classof$4 = classof$5;
3377
+
3378
+ var $String = String;
3379
+
3380
+ var toString$a = function (argument) {
3381
+ if (classof$4(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
3382
+ return $String(argument);
3383
+ };
3384
+
3385
+ var wellKnownSymbol$7 = wellKnownSymbol$h;
3386
+
3387
+ var MATCH = wellKnownSymbol$7('match');
3388
+
3389
+ var correctIsRegexpLogic = function (METHOD_NAME) {
3390
+ var regexp = /./;
3391
+ try {
3392
+ '/./'[METHOD_NAME](regexp);
3393
+ } catch (error1) {
3394
+ try {
3395
+ regexp[MATCH] = false;
3396
+ return '/./'[METHOD_NAME](regexp);
3397
+ } catch (error2) { /* empty */ }
3398
+ } return false;
3399
+ };
3400
+
3401
+ var $$e = _export;
3402
+ var uncurryThis$c = functionUncurryThis;
3403
+ var notARegExp = notARegexp;
3404
+ var requireObjectCoercible$4 = requireObjectCoercible$8;
3405
+ var toString$9 = toString$a;
3406
+ var correctIsRegExpLogic = correctIsRegexpLogic;
3407
+
3408
+ var stringIndexOf = uncurryThis$c(''.indexOf);
3409
+
3410
+ // `String.prototype.includes` method
3411
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
3412
+ $$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
3413
+ includes: function includes(searchString /* , position = 0 */) {
3414
+ return !!~stringIndexOf(
3415
+ toString$9(requireObjectCoercible$4(this)),
3416
+ toString$9(notARegExp(searchString)),
3417
+ arguments.length > 1 ? arguments[1] : undefined
3418
+ );
3419
+ }
3420
+ });
3421
+
3422
+ var aCallable$7 = aCallable$a;
3423
+ var toObject$1 = toObject$6;
3424
+ var IndexedObject = indexedObject;
3425
+ var lengthOfArrayLike$2 = lengthOfArrayLike$5;
3426
+
3427
+ var $TypeError$8 = TypeError;
3428
+
3429
+ var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
3430
+
3431
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
3432
+ var createMethod$2 = function (IS_RIGHT) {
3433
+ return function (that, callbackfn, argumentsLength, memo) {
3434
+ var O = toObject$1(that);
3435
+ var self = IndexedObject(O);
3436
+ var length = lengthOfArrayLike$2(O);
3437
+ aCallable$7(callbackfn);
3438
+ if (length === 0 && argumentsLength < 2) throw new $TypeError$8(REDUCE_EMPTY);
3439
+ var index = IS_RIGHT ? length - 1 : 0;
3440
+ var i = IS_RIGHT ? -1 : 1;
3441
+ if (argumentsLength < 2) while (true) {
3442
+ if (index in self) {
3443
+ memo = self[index];
3444
+ index += i;
3445
+ break;
3446
+ }
3447
+ index += i;
3448
+ if (IS_RIGHT ? index < 0 : length <= index) {
3449
+ throw new $TypeError$8(REDUCE_EMPTY);
3450
+ }
3451
+ }
3452
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
3453
+ memo = callbackfn(memo, self[index], index, O);
3454
+ }
3455
+ return memo;
3456
+ };
3457
+ };
3458
+
3459
+ var arrayReduce = {
3460
+ // `Array.prototype.reduce` method
3461
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
3462
+ left: createMethod$2(false),
3463
+ // `Array.prototype.reduceRight` method
3464
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
3465
+ right: createMethod$2(true)
3466
+ };
3467
+
3468
+ var fails$c = fails$q;
3469
+
3470
+ var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
3471
+ var method = [][METHOD_NAME];
3472
+ return !!method && fails$c(function () {
3473
+ // eslint-disable-next-line no-useless-call -- required for testing
3474
+ method.call(null, argument || function () { return 1; }, 1);
3475
+ });
3476
+ };
3477
+
3478
+ var global$d = global$o;
3479
+ var classof$3 = classofRaw$2;
3480
+
3481
+ var engineIsNode = classof$3(global$d.process) === 'process';
3482
+
3483
+ var $$d = _export;
3484
+ var $reduce = arrayReduce.left;
3485
+ var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
3486
+ var CHROME_VERSION = engineV8Version;
3487
+ var IS_NODE$4 = engineIsNode;
3488
+
3489
+ // Chrome 80-82 has a critical bug
3490
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
3491
+ var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
3492
+ var FORCED$3 = CHROME_BUG || !arrayMethodIsStrict$1('reduce');
3493
+
3494
+ // `Array.prototype.reduce` method
3495
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
3496
+ $$d({ target: 'Array', proto: true, forced: FORCED$3 }, {
3497
+ reduce: function reduce(callbackfn /* , initialValue */) {
3498
+ var length = arguments.length;
3499
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
3500
+ }
3501
+ });
3502
+
3503
+ var tryToString$3 = tryToString$5;
3504
+
3505
+ var $TypeError$7 = TypeError;
3506
+
3507
+ var deletePropertyOrThrow$1 = function (O, P) {
3508
+ if (!delete O[P]) throw new $TypeError$7('Cannot delete property ' + tryToString$3(P) + ' of ' + tryToString$3(O));
3509
+ };
3510
+
3511
+ var uncurryThis$b = functionUncurryThis;
3512
+
3513
+ var arraySlice$2 = uncurryThis$b([].slice);
3514
+
3515
+ var arraySlice$1 = arraySlice$2;
3516
+
3517
+ var floor = Math.floor;
3518
+
3519
+ var sort = function (array, comparefn) {
3520
+ var length = array.length;
3521
+
3522
+ if (length < 8) {
3523
+ // insertion sort
3524
+ var i = 1;
3525
+ var element, j;
3526
+
3527
+ while (i < length) {
3528
+ j = i;
3529
+ element = array[i];
3530
+ while (j && comparefn(array[j - 1], element) > 0) {
3531
+ array[j] = array[--j];
3532
+ }
3533
+ if (j !== i++) array[j] = element;
3534
+ }
3535
+ } else {
3536
+ // merge sort
3537
+ var middle = floor(length / 2);
3538
+ var left = sort(arraySlice$1(array, 0, middle), comparefn);
3539
+ var right = sort(arraySlice$1(array, middle), comparefn);
3540
+ var llength = left.length;
3541
+ var rlength = right.length;
3542
+ var lindex = 0;
3543
+ var rindex = 0;
3544
+
3545
+ while (lindex < llength || rindex < rlength) {
3546
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
3547
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
3548
+ : lindex < llength ? left[lindex++] : right[rindex++];
3549
+ }
3550
+ }
3551
+
3552
+ return array;
3553
+ };
3554
+
3555
+ var arraySort = sort;
3556
+
3557
+ var userAgent$4 = engineUserAgent;
3558
+
3559
+ var firefox = userAgent$4.match(/firefox\/(\d+)/i);
3560
+
3561
+ var engineFfVersion = !!firefox && +firefox[1];
3562
+
3563
+ var UA = engineUserAgent;
3564
+
3565
+ var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
3566
+
3567
+ var userAgent$3 = engineUserAgent;
3568
+
3569
+ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
3570
+
3571
+ var engineWebkitVersion = !!webkit && +webkit[1];
3572
+
3573
+ var $$c = _export;
3574
+ var uncurryThis$a = functionUncurryThis;
3575
+ var aCallable$6 = aCallable$a;
3576
+ var toObject = toObject$6;
3577
+ var lengthOfArrayLike$1 = lengthOfArrayLike$5;
3578
+ var deletePropertyOrThrow = deletePropertyOrThrow$1;
3579
+ var toString$8 = toString$a;
3580
+ var fails$b = fails$q;
3581
+ var internalSort = arraySort;
3582
+ var arrayMethodIsStrict = arrayMethodIsStrict$2;
3583
+ var FF = engineFfVersion;
3584
+ var IE_OR_EDGE = engineIsIeOrEdge;
3585
+ var V8 = engineV8Version;
3586
+ var WEBKIT = engineWebkitVersion;
3587
+
3588
+ var test = [];
3589
+ var nativeSort = uncurryThis$a(test.sort);
3590
+ var push$1 = uncurryThis$a(test.push);
3591
+
3592
+ // IE8-
3593
+ var FAILS_ON_UNDEFINED = fails$b(function () {
3594
+ test.sort(undefined);
3595
+ });
3596
+ // V8 bug
3597
+ var FAILS_ON_NULL = fails$b(function () {
3598
+ test.sort(null);
3599
+ });
3600
+ // Old WebKit
3601
+ var STRICT_METHOD = arrayMethodIsStrict('sort');
3602
+
3603
+ var STABLE_SORT = !fails$b(function () {
3604
+ // feature detection can be too slow, so check engines versions
3605
+ if (V8) return V8 < 70;
3606
+ if (FF && FF > 3) return;
3607
+ if (IE_OR_EDGE) return true;
3608
+ if (WEBKIT) return WEBKIT < 603;
3609
+
3610
+ var result = '';
3611
+ var code, chr, value, index;
3612
+
3613
+ // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
3614
+ for (code = 65; code < 76; code++) {
3615
+ chr = String.fromCharCode(code);
3616
+
3617
+ switch (code) {
3618
+ case 66: case 69: case 70: case 72: value = 3; break;
3619
+ case 68: case 71: value = 4; break;
3620
+ default: value = 2;
3621
+ }
3622
+
3623
+ for (index = 0; index < 47; index++) {
3624
+ test.push({ k: chr + index, v: value });
3625
+ }
3626
+ }
3627
+
3628
+ test.sort(function (a, b) { return b.v - a.v; });
3629
+
3630
+ for (index = 0; index < test.length; index++) {
3631
+ chr = test[index].k.charAt(0);
3632
+ if (result.charAt(result.length - 1) !== chr) result += chr;
3633
+ }
3634
+
3635
+ return result !== 'DGBEFHACIJK';
3636
+ });
3637
+
3638
+ var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
3639
+
3640
+ var getSortCompare = function (comparefn) {
3641
+ return function (x, y) {
3642
+ if (y === undefined) return -1;
3643
+ if (x === undefined) return 1;
3644
+ if (comparefn !== undefined) return +comparefn(x, y) || 0;
3645
+ return toString$8(x) > toString$8(y) ? 1 : -1;
3646
+ };
3647
+ };
3648
+
3649
+ // `Array.prototype.sort` method
3650
+ // https://tc39.es/ecma262/#sec-array.prototype.sort
3651
+ $$c({ target: 'Array', proto: true, forced: FORCED$2 }, {
3652
+ sort: function sort(comparefn) {
3653
+ if (comparefn !== undefined) aCallable$6(comparefn);
3654
+
3655
+ var array = toObject(this);
3656
+
3657
+ if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
3658
+
3659
+ var items = [];
3660
+ var arrayLength = lengthOfArrayLike$1(array);
3661
+ var itemsLength, index;
3662
+
3663
+ for (index = 0; index < arrayLength; index++) {
3664
+ if (index in array) push$1(items, array[index]);
3665
+ }
3666
+
3667
+ internalSort(items, getSortCompare(comparefn));
3668
+
3669
+ itemsLength = lengthOfArrayLike$1(items);
3670
+ index = 0;
3671
+
3672
+ while (index < itemsLength) array[index] = items[index++];
3673
+ while (index < arrayLength) deletePropertyOrThrow(array, index++);
3674
+
3675
+ return array;
3676
+ }
3677
+ });
3678
+
3264
3679
  /* *
3265
3680
  * Licensed under the Apache License, Version 2.0 (the "License");
3266
3681
  * you may not use this file except in compliance with the License.
@@ -3274,16 +3689,124 @@ const publicWarningDialogType = uiTypes.DialogTypes.PublicWarnings;
3274
3689
  * See the License for the specific language governing permissions and
3275
3690
  * limitations under the License.
3276
3691
  *
3277
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3278
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
3692
+ * Copyright 2024 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
3693
+ * Copyright 2024 - Finnish Meteorological Institute (FMI)
3279
3694
  * */
3695
+ const emptyFilter = {
3696
+ id: 'empty',
3697
+ name: '(not specified)',
3698
+ checked: true
3699
+ };
3700
+ const defaultFilters = [{
3701
+ key: 'incident',
3702
+ translationKey: 'filter-incident'
3703
+ }, {
3704
+ key: 'domain',
3705
+ translationKey: 'filter-domain'
3706
+ }, {
3707
+ key: 'phenomenon',
3708
+ translationKey: 'filter-phenomenon'
3709
+ }, {
3710
+ key: 'level',
3711
+ translationKey: 'filter-level'
3712
+ }, {
3713
+ key: 'warningProposalSource',
3714
+ translationKey: 'filter-source'
3715
+ }];
3716
+ const getFiltersFromWarnings = warnings => {
3717
+ if (!warnings || !warnings.length) {
3718
+ // return default list
3719
+ return defaultFilters.map(({
3720
+ key,
3721
+ translationKey
3722
+ }) => {
3723
+ return {
3724
+ id: key,
3725
+ translationKey,
3726
+ filterList: []
3727
+ };
3728
+ });
3729
+ }
3730
+ const filledFilters = defaultFilters.map(({
3731
+ key,
3732
+ translationKey
3733
+ }) => {
3734
+ const filterOptions = [];
3735
+ warnings.forEach(warning => {
3736
+ const name = warning.warningDetail[key];
3737
+ if (name && filterOptions.findIndex(option => option.filter.name === name) === -1) {
3738
+ const filter = {
3739
+ id: name,
3740
+ name,
3741
+ checked: true
3742
+ };
3743
+ filterOptions.push({
3744
+ filter
3745
+ });
3746
+ }
3747
+ });
3748
+ // add option for empty
3749
+ filterOptions.push({
3750
+ filter: emptyFilter
3751
+ });
3752
+ // sort alphabetically
3753
+ const filtersSorted = [...filterOptions].sort((a, b) => a.filter.name.localeCompare(b.filter.name));
3754
+ return {
3755
+ id: key,
3756
+ translationKey,
3757
+ filterList: filtersSorted
3758
+ };
3759
+ });
3760
+ return filledFilters;
3761
+ };
3762
+ const isWarningMatchingFilter = (filters, filterId, warningDetailValue) => {
3763
+ return filters.some(filter => filter.filterId === filterId && filter.optionId === warningDetailValue) || !warningDetailValue && filters.some(filter => filter.filterId === filterId && filter.optionId === emptyFilter.id);
3764
+ };
3765
+ const getUpdatedFilters = (filters, newFilters) => {
3766
+ return filters.ids.reduce((list, id) => {
3767
+ var _a;
3768
+ const existingFilterList = (_a = filters.entities[id]) === null || _a === void 0 ? void 0 : _a.filterList;
3769
+ const newFilter = newFilters.find(filter => filter.id === id);
3770
+ if (newFilter && existingFilterList) {
3771
+ const updatedFilterList = getUpdatedFilterList(existingFilterList, newFilter.filterList);
3772
+ list.push({
3773
+ id,
3774
+ changes: Object.assign(Object.assign({}, newFilter), {
3775
+ filterList: updatedFilterList
3776
+ })
3777
+ });
3778
+ }
3779
+ return list;
3780
+ }, []);
3781
+ };
3782
+ const getUpdatedFilterList = (oldList, newList) => {
3783
+ const updatedList = [];
3784
+ // if the item existed already, keep its state
3785
+ oldList.forEach(oldListItem => {
3786
+ if (newList.some(newListItem => newListItem.filter.id === oldListItem.filter.id)) {
3787
+ updatedList.push(oldListItem);
3788
+ }
3789
+ });
3790
+ // if the item did not exist yet, add it
3791
+ newList.forEach(newListItem => {
3792
+ if (oldList.every(oldListItem => oldListItem.filter.id !== newListItem.filter.id)) {
3793
+ updatedList.push(newListItem);
3794
+ }
3795
+ });
3796
+ // sort alphabetically
3797
+ const sortedList = [...updatedList].sort((a, b) => a.filter.name.localeCompare(b.filter.name));
3798
+ return sortedList;
3799
+ };
3800
+
3280
3801
  const publicWarningsAdapter = createEntityAdapter({
3281
3802
  selectId: warning => warning.id
3282
3803
  });
3804
+ const warningListFilterAdapter = createEntityAdapter();
3283
3805
  const initialState$1 = {
3284
3806
  warnings: publicWarningsAdapter.getInitialState(),
3285
3807
  isLoading: true,
3286
- lastUpdatedTime: ''
3808
+ lastUpdatedTime: '',
3809
+ filters: warningListFilterAdapter.getInitialState()
3287
3810
  };
3288
3811
  const slice$1 = createSlice({
3289
3812
  initialState: initialState$1,
@@ -3308,6 +3831,68 @@ const slice$1 = createSlice({
3308
3831
  } = action.payload;
3309
3832
  draft.isLoading = false;
3310
3833
  draft.error = error;
3834
+ },
3835
+ setWarningListFilters: (draft, action) => {
3836
+ const {
3837
+ warnings
3838
+ } = action.payload;
3839
+ // Generate new filters based on the provided warnings
3840
+ const newFilters = getFiltersFromWarnings(warnings);
3841
+ // Update existing filters
3842
+ const updates = getUpdatedFilters(draft.filters, newFilters);
3843
+ warningListFilterAdapter.updateMany(draft.filters, updates);
3844
+ // Add any new filters that didn't exist before
3845
+ const newFiltersToAdd = newFilters.filter(filter => !draft.filters.ids.includes(filter.id));
3846
+ warningListFilterAdapter.upsertMany(draft.filters, newFiltersToAdd);
3847
+ },
3848
+ toggleFilter: (draft, action) => {
3849
+ const {
3850
+ filterId,
3851
+ isChecked
3852
+ } = action.payload;
3853
+ if (!draft.filters.entities[filterId]) {
3854
+ return;
3855
+ }
3856
+ draft.filters.entities[filterId].filterList.forEach((_, index) => {
3857
+ draft.filters.entities[filterId].filterList[index].filter.checked = !isChecked;
3858
+ });
3859
+ },
3860
+ toggleOption: (draft, action) => {
3861
+ const {
3862
+ filterId,
3863
+ optionId
3864
+ } = action.payload;
3865
+ if (!draft.filters.entities[filterId]) {
3866
+ return;
3867
+ }
3868
+ const index = draft.filters.entities[filterId].filterList.findIndex(option => option.filter.id === optionId);
3869
+ if (index === -1) {
3870
+ return;
3871
+ }
3872
+ draft.filters.entities[filterId].filterList[index].filter.checked = !draft.filters.entities[filterId].filterList[index].filter.checked;
3873
+ },
3874
+ enableOnlyOneFilterOption: (draft, action) => {
3875
+ const {
3876
+ filterId,
3877
+ optionId
3878
+ } = action.payload;
3879
+ if (!draft.filters.entities[filterId]) {
3880
+ return;
3881
+ }
3882
+ draft.filters.entities[filterId].filterList.forEach((_, index) => {
3883
+ const newStatus = draft.filters.entities[filterId].filterList[index].filter.id === optionId;
3884
+ draft.filters.entities[filterId].filterList[index].filter.checked = newStatus;
3885
+ });
3886
+ },
3887
+ toggleAllFilters: (draft, action) => {
3888
+ const {
3889
+ isChecked
3890
+ } = action.payload;
3891
+ draft.filters.ids.forEach(id => {
3892
+ draft.filters.entities[id].filterList.forEach((_, index) => {
3893
+ draft.filters.entities[id].filterList[index].filter.checked = !isChecked;
3894
+ });
3895
+ });
3311
3896
  }
3312
3897
  }
3313
3898
  });
@@ -3717,8 +4302,8 @@ var proxyAccessor$1 = function (Target, Source, key) {
3717
4302
  });
3718
4303
  };
3719
4304
 
3720
- var isCallable$9 = isCallable$n;
3721
- var isObject$4 = isObject$d;
4305
+ var isCallable$8 = isCallable$n;
4306
+ var isObject$3 = isObject$d;
3722
4307
  var setPrototypeOf$2 = objectSetPrototypeOf;
3723
4308
 
3724
4309
  // makes subclassing work correct for wrapped built-ins
@@ -3728,83 +4313,35 @@ var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
3728
4313
  // it can work only with native `setPrototypeOf`
3729
4314
  setPrototypeOf$2 &&
3730
4315
  // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
3731
- isCallable$9(NewTarget = dummy.constructor) &&
4316
+ isCallable$8(NewTarget = dummy.constructor) &&
3732
4317
  NewTarget !== Wrapper &&
3733
- isObject$4(NewTargetPrototype = NewTarget.prototype) &&
4318
+ isObject$3(NewTargetPrototype = NewTarget.prototype) &&
3734
4319
  NewTargetPrototype !== Wrapper.prototype
3735
4320
  ) setPrototypeOf$2($this, NewTargetPrototype);
3736
4321
  return $this;
3737
4322
  };
3738
4323
 
3739
- var wellKnownSymbol$a = wellKnownSymbol$h;
3740
-
3741
- var TO_STRING_TAG$1 = wellKnownSymbol$a('toStringTag');
3742
- var test = {};
3743
-
3744
- test[TO_STRING_TAG$1] = 'z';
3745
-
3746
- var toStringTagSupport = String(test) === '[object z]';
3747
-
3748
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
3749
- var isCallable$8 = isCallable$n;
3750
- var classofRaw$1 = classofRaw$2;
3751
- var wellKnownSymbol$9 = wellKnownSymbol$h;
3752
-
3753
- var TO_STRING_TAG = wellKnownSymbol$9('toStringTag');
3754
- var $Object = Object;
3755
-
3756
- // ES3 wrong here
3757
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) === 'Arguments';
3758
-
3759
- // fallback for IE11 Script Access Denied error
3760
- var tryGet = function (it, key) {
3761
- try {
3762
- return it[key];
3763
- } catch (error) { /* empty */ }
3764
- };
3765
-
3766
- // getting tag from ES6+ `Object.prototype.toString`
3767
- var classof$6 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
3768
- var O, tag, result;
3769
- return it === undefined ? 'Undefined' : it === null ? 'Null'
3770
- // @@toStringTag case
3771
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
3772
- // builtinTag case
3773
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
3774
- // ES3 arguments fallback
3775
- : (result = classofRaw$1(O)) === 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
3776
- };
3777
-
3778
- var classof$5 = classof$6;
3779
-
3780
- var $String = String;
3781
-
3782
- var toString$9 = function (argument) {
3783
- if (classof$5(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
3784
- return $String(argument);
3785
- };
3786
-
3787
- var toString$8 = toString$9;
4324
+ var toString$7 = toString$a;
3788
4325
 
3789
4326
  var normalizeStringArgument$1 = function (argument, $default) {
3790
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString$8(argument);
4327
+ return argument === undefined ? arguments.length < 2 ? '' : $default : toString$7(argument);
3791
4328
  };
3792
4329
 
3793
- var isObject$3 = isObject$d;
4330
+ var isObject$2 = isObject$d;
3794
4331
  var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
3795
4332
 
3796
4333
  // `InstallErrorCause` abstract operation
3797
4334
  // https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
3798
4335
  var installErrorCause$1 = function (O, options) {
3799
- if (isObject$3(options) && 'cause' in options) {
4336
+ if (isObject$2(options) && 'cause' in options) {
3800
4337
  createNonEnumerableProperty$3(O, 'cause', options.cause);
3801
4338
  }
3802
4339
  };
3803
4340
 
3804
- var uncurryThis$b = functionUncurryThis;
4341
+ var uncurryThis$9 = functionUncurryThis;
3805
4342
 
3806
4343
  var $Error = Error;
3807
- var replace$3 = uncurryThis$b(''.replace);
4344
+ var replace$3 = uncurryThis$9(''.replace);
3808
4345
 
3809
4346
  var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
3810
4347
  // eslint-disable-next-line redos/no-vulnerable -- safe
@@ -3817,10 +4354,10 @@ var errorStackClear = function (stack, dropEntries) {
3817
4354
  } return stack;
3818
4355
  };
3819
4356
 
3820
- var fails$c = fails$p;
4357
+ var fails$a = fails$q;
3821
4358
  var createPropertyDescriptor = createPropertyDescriptor$4;
3822
4359
 
3823
- var errorStackInstallable = !fails$c(function () {
4360
+ var errorStackInstallable = !fails$a(function () {
3824
4361
  var error = new Error('a');
3825
4362
  if (!('stack' in error)) return true;
3826
4363
  // eslint-disable-next-line es/no-object-defineproperty -- safe
@@ -3907,28 +4444,28 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
3907
4444
  };
3908
4445
 
3909
4446
  /* eslint-disable no-unused-vars -- required for functions `.length` */
3910
- var $$e = _export;
3911
- var global$d = global$o;
4447
+ var $$b = _export;
4448
+ var global$c = global$o;
3912
4449
  var apply$1 = functionApply;
3913
4450
  var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
3914
4451
 
3915
4452
  var WEB_ASSEMBLY = 'WebAssembly';
3916
- var WebAssembly = global$d[WEB_ASSEMBLY];
4453
+ var WebAssembly = global$c[WEB_ASSEMBLY];
3917
4454
 
3918
4455
  // eslint-disable-next-line es/no-error-cause -- feature detection
3919
- var FORCED$2 = new Error('e', { cause: 7 }).cause !== 7;
4456
+ var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
3920
4457
 
3921
4458
  var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3922
4459
  var O = {};
3923
- O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$2);
3924
- $$e({ global: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
4460
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
4461
+ $$b({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
3925
4462
  };
3926
4463
 
3927
4464
  var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
3928
4465
  if (WebAssembly && WebAssembly[ERROR_NAME]) {
3929
4466
  var O = {};
3930
- O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$2);
3931
- $$e({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$2 }, O);
4467
+ O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
4468
+ $$b({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
3932
4469
  }
3933
4470
  };
3934
4471
 
@@ -3964,28 +4501,6 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
3964
4501
  return function RuntimeError(message) { return apply$1(init, this, arguments); };
3965
4502
  });
3966
4503
 
3967
- var $$d = _export;
3968
- var $includes = arrayIncludes.includes;
3969
- var fails$b = fails$p;
3970
- var addToUnscopables = addToUnscopables$2;
3971
-
3972
- // FF99+ bug
3973
- var BROKEN_ON_SPARSE = fails$b(function () {
3974
- // eslint-disable-next-line es/no-array-prototype-includes -- detection
3975
- return !Array(1).includes();
3976
- });
3977
-
3978
- // `Array.prototype.includes` method
3979
- // https://tc39.es/ecma262/#sec-array.prototype.includes
3980
- $$d({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
3981
- includes: function includes(el /* , fromIndex = 0 */) {
3982
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
3983
- }
3984
- });
3985
-
3986
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3987
- addToUnscopables('includes');
3988
-
3989
4504
  var anObject$8 = anObject$d;
3990
4505
 
3991
4506
  // `RegExp.prototype.flags` getter implementation
@@ -4004,13 +4519,13 @@ var regexpFlags$1 = function () {
4004
4519
  return result;
4005
4520
  };
4006
4521
 
4007
- var fails$a = fails$p;
4008
- var global$c = global$o;
4522
+ var fails$9 = fails$q;
4523
+ var global$b = global$o;
4009
4524
 
4010
4525
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
4011
- var $RegExp$2 = global$c.RegExp;
4526
+ var $RegExp$2 = global$b.RegExp;
4012
4527
 
4013
- var UNSUPPORTED_Y$2 = fails$a(function () {
4528
+ var UNSUPPORTED_Y$2 = fails$9(function () {
4014
4529
  var re = $RegExp$2('a', 'y');
4015
4530
  re.lastIndex = 2;
4016
4531
  return re.exec('abcd') !== null;
@@ -4018,11 +4533,11 @@ var UNSUPPORTED_Y$2 = fails$a(function () {
4018
4533
 
4019
4534
  // UC Browser bug
4020
4535
  // https://github.com/zloirock/core-js/issues/1008
4021
- var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
4536
+ var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$9(function () {
4022
4537
  return !$RegExp$2('a', 'y').sticky;
4023
4538
  });
4024
4539
 
4025
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
4540
+ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$9(function () {
4026
4541
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
4027
4542
  var re = $RegExp$2('^r', 'gy');
4028
4543
  re.lastIndex = 2;
@@ -4035,24 +4550,24 @@ var regexpStickyHelpers = {
4035
4550
  UNSUPPORTED_Y: UNSUPPORTED_Y$2
4036
4551
  };
4037
4552
 
4038
- var fails$9 = fails$p;
4039
- var global$b = global$o;
4553
+ var fails$8 = fails$q;
4554
+ var global$a = global$o;
4040
4555
 
4041
4556
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
4042
- var $RegExp$1 = global$b.RegExp;
4557
+ var $RegExp$1 = global$a.RegExp;
4043
4558
 
4044
- var regexpUnsupportedDotAll = fails$9(function () {
4559
+ var regexpUnsupportedDotAll = fails$8(function () {
4045
4560
  var re = $RegExp$1('.', 's');
4046
4561
  return !(re.dotAll && re.test('\n') && re.flags === 's');
4047
4562
  });
4048
4563
 
4049
- var fails$8 = fails$p;
4050
- var global$a = global$o;
4564
+ var fails$7 = fails$q;
4565
+ var global$9 = global$o;
4051
4566
 
4052
4567
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
4053
- var $RegExp = global$a.RegExp;
4568
+ var $RegExp = global$9.RegExp;
4054
4569
 
4055
- var regexpUnsupportedNcg = fails$8(function () {
4570
+ var regexpUnsupportedNcg = fails$7(function () {
4056
4571
  var re = $RegExp('(?<a>b)', 'g');
4057
4572
  return re.exec('b').groups.a !== 'b' ||
4058
4573
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -4061,8 +4576,8 @@ var regexpUnsupportedNcg = fails$8(function () {
4061
4576
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
4062
4577
  /* eslint-disable regexp/no-useless-quantifier -- testing */
4063
4578
  var call$a = functionCall;
4064
- var uncurryThis$a = functionUncurryThis;
4065
- var toString$7 = toString$9;
4579
+ var uncurryThis$8 = functionUncurryThis;
4580
+ var toString$6 = toString$a;
4066
4581
  var regexpFlags = regexpFlags$1;
4067
4582
  var stickyHelpers$1 = regexpStickyHelpers;
4068
4583
  var shared = shared$4;
@@ -4074,10 +4589,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
4074
4589
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
4075
4590
  var nativeExec = RegExp.prototype.exec;
4076
4591
  var patchedExec = nativeExec;
4077
- var charAt$2 = uncurryThis$a(''.charAt);
4078
- var indexOf = uncurryThis$a(''.indexOf);
4079
- var replace$2 = uncurryThis$a(''.replace);
4080
- var stringSlice$3 = uncurryThis$a(''.slice);
4592
+ var charAt$2 = uncurryThis$8(''.charAt);
4593
+ var indexOf = uncurryThis$8(''.indexOf);
4594
+ var replace$2 = uncurryThis$8(''.replace);
4595
+ var stringSlice$3 = uncurryThis$8(''.slice);
4081
4596
 
4082
4597
  var UPDATES_LAST_INDEX_WRONG = (function () {
4083
4598
  var re1 = /a/;
@@ -4098,7 +4613,7 @@ if (PATCH) {
4098
4613
  patchedExec = function exec(string) {
4099
4614
  var re = this;
4100
4615
  var state = getInternalState(re);
4101
- var str = toString$7(string);
4616
+ var str = toString$6(string);
4102
4617
  var raw = state.raw;
4103
4618
  var result, reCopy, lastIndex, match, i, object, group;
4104
4619
 
@@ -4169,79 +4684,19 @@ if (PATCH) {
4169
4684
  }
4170
4685
  }
4171
4686
 
4172
- return match;
4173
- };
4174
- }
4175
-
4176
- var regexpExec$2 = patchedExec;
4177
-
4178
- var $$c = _export;
4179
- var exec$2 = regexpExec$2;
4180
-
4181
- // `RegExp.prototype.exec` method
4182
- // https://tc39.es/ecma262/#sec-regexp.prototype.exec
4183
- $$c({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
4184
- exec: exec$2
4185
- });
4186
-
4187
- var isObject$2 = isObject$d;
4188
- var classof$4 = classofRaw$2;
4189
- var wellKnownSymbol$8 = wellKnownSymbol$h;
4190
-
4191
- var MATCH$1 = wellKnownSymbol$8('match');
4192
-
4193
- // `IsRegExp` abstract operation
4194
- // https://tc39.es/ecma262/#sec-isregexp
4195
- var isRegexp = function (it) {
4196
- var isRegExp;
4197
- return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) === 'RegExp');
4198
- };
4199
-
4200
- var isRegExp = isRegexp;
4201
-
4202
- var $TypeError$8 = TypeError;
4203
-
4204
- var notARegexp = function (it) {
4205
- if (isRegExp(it)) {
4206
- throw new $TypeError$8("The method doesn't accept regular expressions");
4207
- } return it;
4208
- };
4209
-
4210
- var wellKnownSymbol$7 = wellKnownSymbol$h;
4211
-
4212
- var MATCH = wellKnownSymbol$7('match');
4213
-
4214
- var correctIsRegexpLogic = function (METHOD_NAME) {
4215
- var regexp = /./;
4216
- try {
4217
- '/./'[METHOD_NAME](regexp);
4218
- } catch (error1) {
4219
- try {
4220
- regexp[MATCH] = false;
4221
- return '/./'[METHOD_NAME](regexp);
4222
- } catch (error2) { /* empty */ }
4223
- } return false;
4224
- };
4225
-
4226
- var $$b = _export;
4227
- var uncurryThis$9 = functionUncurryThis;
4228
- var notARegExp = notARegexp;
4229
- var requireObjectCoercible$4 = requireObjectCoercible$8;
4230
- var toString$6 = toString$9;
4231
- var correctIsRegExpLogic = correctIsRegexpLogic;
4687
+ return match;
4688
+ };
4689
+ }
4232
4690
 
4233
- var stringIndexOf = uncurryThis$9(''.indexOf);
4691
+ var regexpExec$2 = patchedExec;
4234
4692
 
4235
- // `String.prototype.includes` method
4236
- // https://tc39.es/ecma262/#sec-string.prototype.includes
4237
- $$b({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
4238
- includes: function includes(searchString /* , position = 0 */) {
4239
- return !!~stringIndexOf(
4240
- toString$6(requireObjectCoercible$4(this)),
4241
- toString$6(notARegExp(searchString)),
4242
- arguments.length > 1 ? arguments[1] : undefined
4243
- );
4244
- }
4693
+ var $$a = _export;
4694
+ var exec$2 = regexpExec$2;
4695
+
4696
+ // `RegExp.prototype.exec` method
4697
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
4698
+ $$a({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
4699
+ exec: exec$2
4245
4700
  });
4246
4701
 
4247
4702
  // TODO: Remove from `core-js@4` since it's moved to entry points
@@ -4249,7 +4704,7 @@ $$b({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
4249
4704
  var call$9 = functionCall;
4250
4705
  var defineBuiltIn$3 = defineBuiltIn$7;
4251
4706
  var regexpExec$1 = regexpExec$2;
4252
- var fails$7 = fails$p;
4707
+ var fails$6 = fails$q;
4253
4708
  var wellKnownSymbol$6 = wellKnownSymbol$h;
4254
4709
  var createNonEnumerableProperty = createNonEnumerableProperty$8;
4255
4710
 
@@ -4259,14 +4714,14 @@ var RegExpPrototype = RegExp.prototype;
4259
4714
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
4260
4715
  var SYMBOL = wellKnownSymbol$6(KEY);
4261
4716
 
4262
- var DELEGATES_TO_SYMBOL = !fails$7(function () {
4717
+ var DELEGATES_TO_SYMBOL = !fails$6(function () {
4263
4718
  // String methods call symbol-named RegExp methods
4264
4719
  var O = {};
4265
4720
  O[SYMBOL] = function () { return 7; };
4266
4721
  return ''[KEY](O) !== 7;
4267
4722
  });
4268
4723
 
4269
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
4724
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
4270
4725
  // Symbol-named RegExp methods call .exec
4271
4726
  var execCalled = false;
4272
4727
  var re = /a/;
@@ -4331,10 +4786,10 @@ var sameValue$1 = Object.is || function is(x, y) {
4331
4786
  var call$8 = functionCall;
4332
4787
  var anObject$7 = anObject$d;
4333
4788
  var isCallable$7 = isCallable$n;
4334
- var classof$3 = classofRaw$2;
4789
+ var classof$2 = classofRaw$2;
4335
4790
  var regexpExec = regexpExec$2;
4336
4791
 
4337
- var $TypeError$7 = TypeError;
4792
+ var $TypeError$6 = TypeError;
4338
4793
 
4339
4794
  // `RegExpExec` abstract operation
4340
4795
  // https://tc39.es/ecma262/#sec-regexpexec
@@ -4345,8 +4800,8 @@ var regexpExecAbstract = function (R, S) {
4345
4800
  if (result !== null) anObject$7(result);
4346
4801
  return result;
4347
4802
  }
4348
- if (classof$3(R) === 'RegExp') return call$8(regexpExec, R, S);
4349
- throw new $TypeError$7('RegExp#exec called on incompatible receiver');
4803
+ if (classof$2(R) === 'RegExp') return call$8(regexpExec, R, S);
4804
+ throw new $TypeError$6('RegExp#exec called on incompatible receiver');
4350
4805
  };
4351
4806
 
4352
4807
  var call$7 = functionCall;
@@ -4355,7 +4810,7 @@ var anObject$6 = anObject$d;
4355
4810
  var isNullOrUndefined$3 = isNullOrUndefined$6;
4356
4811
  var requireObjectCoercible$3 = requireObjectCoercible$8;
4357
4812
  var sameValue = sameValue$1;
4358
- var toString$5 = toString$9;
4813
+ var toString$5 = toString$a;
4359
4814
  var getMethod$3 = getMethod$5;
4360
4815
  var regExpExec$1 = regexpExecAbstract;
4361
4816
 
@@ -4387,17 +4842,17 @@ fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeC
4387
4842
  ];
4388
4843
  });
4389
4844
 
4390
- var uncurryThis$8 = functionUncurryThis;
4391
- var fails$6 = fails$p;
4845
+ var uncurryThis$7 = functionUncurryThis;
4846
+ var fails$5 = fails$q;
4392
4847
  var isCallable$6 = isCallable$n;
4393
- var classof$2 = classof$6;
4848
+ var classof$1 = classof$5;
4394
4849
  var getBuiltIn$4 = getBuiltIn$9;
4395
4850
  var inspectSource$1 = inspectSource$3;
4396
4851
 
4397
4852
  var noop = function () { /* empty */ };
4398
4853
  var construct = getBuiltIn$4('Reflect', 'construct');
4399
4854
  var constructorRegExp = /^\s*(?:class|function)\b/;
4400
- var exec$1 = uncurryThis$8(constructorRegExp.exec);
4855
+ var exec$1 = uncurryThis$7(constructorRegExp.exec);
4401
4856
  var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
4402
4857
 
4403
4858
  var isConstructorModern = function isConstructor(argument) {
@@ -4412,7 +4867,7 @@ var isConstructorModern = function isConstructor(argument) {
4412
4867
 
4413
4868
  var isConstructorLegacy = function isConstructor(argument) {
4414
4869
  if (!isCallable$6(argument)) return false;
4415
- switch (classof$2(argument)) {
4870
+ switch (classof$1(argument)) {
4416
4871
  case 'AsyncFunction':
4417
4872
  case 'GeneratorFunction':
4418
4873
  case 'AsyncGeneratorFunction': return false;
@@ -4431,7 +4886,7 @@ isConstructorLegacy.sham = true;
4431
4886
 
4432
4887
  // `IsConstructor` abstract operation
4433
4888
  // https://tc39.es/ecma262/#sec-isconstructor
4434
- var isConstructor$1 = !construct || fails$6(function () {
4889
+ var isConstructor$1 = !construct || fails$5(function () {
4435
4890
  var called;
4436
4891
  return isConstructorModern(isConstructorModern.call)
4437
4892
  || !isConstructorModern(Object)
@@ -4440,14 +4895,14 @@ var isConstructor$1 = !construct || fails$6(function () {
4440
4895
  }) ? isConstructorLegacy : isConstructorModern;
4441
4896
 
4442
4897
  var isConstructor = isConstructor$1;
4443
- var tryToString$2 = tryToString$4;
4898
+ var tryToString$2 = tryToString$5;
4444
4899
 
4445
- var $TypeError$6 = TypeError;
4900
+ var $TypeError$5 = TypeError;
4446
4901
 
4447
4902
  // `Assert: IsConstructor(argument) is true`
4448
4903
  var aConstructor$1 = function (argument) {
4449
4904
  if (isConstructor(argument)) return argument;
4450
- throw new $TypeError$6(tryToString$2(argument) + ' is not a constructor');
4905
+ throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
4451
4906
  };
4452
4907
 
4453
4908
  var anObject$5 = anObject$d;
@@ -4465,16 +4920,16 @@ var speciesConstructor$3 = function (O, defaultConstructor) {
4465
4920
  return C === undefined || isNullOrUndefined$2(S = anObject$5(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
4466
4921
  };
4467
4922
 
4468
- var uncurryThis$7 = functionUncurryThis;
4923
+ var uncurryThis$6 = functionUncurryThis;
4469
4924
  var toIntegerOrInfinity = toIntegerOrInfinity$3;
4470
- var toString$4 = toString$9;
4925
+ var toString$4 = toString$a;
4471
4926
  var requireObjectCoercible$2 = requireObjectCoercible$8;
4472
4927
 
4473
- var charAt$1 = uncurryThis$7(''.charAt);
4474
- var charCodeAt = uncurryThis$7(''.charCodeAt);
4475
- var stringSlice$2 = uncurryThis$7(''.slice);
4928
+ var charAt$1 = uncurryThis$6(''.charAt);
4929
+ var charCodeAt = uncurryThis$6(''.charCodeAt);
4930
+ var stringSlice$2 = uncurryThis$6(''.slice);
4476
4931
 
4477
- var createMethod$2 = function (CONVERT_TO_STRING) {
4932
+ var createMethod$1 = function (CONVERT_TO_STRING) {
4478
4933
  return function ($this, pos) {
4479
4934
  var S = toString$4(requireObjectCoercible$2($this));
4480
4935
  var position = toIntegerOrInfinity(pos);
@@ -4496,10 +4951,10 @@ var createMethod$2 = function (CONVERT_TO_STRING) {
4496
4951
  var stringMultibyte = {
4497
4952
  // `String.prototype.codePointAt` method
4498
4953
  // https://tc39.es/ecma262/#sec-string.prototype.codepointat
4499
- codeAt: createMethod$2(false),
4954
+ codeAt: createMethod$1(false),
4500
4955
  // `String.prototype.at` method
4501
4956
  // https://github.com/mathiasbynens/String.prototype.at
4502
- charAt: createMethod$2(true)
4957
+ charAt: createMethod$1(true)
4503
4958
  };
4504
4959
 
4505
4960
  var charAt = stringMultibyte.charAt;
@@ -4511,7 +4966,7 @@ var advanceStringIndex$1 = function (S, index, unicode) {
4511
4966
  };
4512
4967
 
4513
4968
  var call$6 = functionCall;
4514
- var uncurryThis$6 = functionUncurryThis;
4969
+ var uncurryThis$5 = functionUncurryThis;
4515
4970
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
4516
4971
  var anObject$4 = anObject$d;
4517
4972
  var isNullOrUndefined$1 = isNullOrUndefined$6;
@@ -4519,21 +4974,21 @@ var requireObjectCoercible$1 = requireObjectCoercible$8;
4519
4974
  var speciesConstructor$2 = speciesConstructor$3;
4520
4975
  var advanceStringIndex = advanceStringIndex$1;
4521
4976
  var toLength = toLength$2;
4522
- var toString$3 = toString$9;
4977
+ var toString$3 = toString$a;
4523
4978
  var getMethod$2 = getMethod$5;
4524
4979
  var regExpExec = regexpExecAbstract;
4525
4980
  var stickyHelpers = regexpStickyHelpers;
4526
- var fails$5 = fails$p;
4981
+ var fails$4 = fails$q;
4527
4982
 
4528
4983
  var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
4529
4984
  var MAX_UINT32 = 0xFFFFFFFF;
4530
4985
  var min = Math.min;
4531
- var push = uncurryThis$6([].push);
4532
- var stringSlice$1 = uncurryThis$6(''.slice);
4986
+ var push = uncurryThis$5([].push);
4987
+ var stringSlice$1 = uncurryThis$5(''.slice);
4533
4988
 
4534
4989
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
4535
4990
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
4536
- var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$5(function () {
4991
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$4(function () {
4537
4992
  // eslint-disable-next-line regexp/no-empty-group -- required for testing
4538
4993
  var re = /(?:)/;
4539
4994
  var originalExec = re.exec;
@@ -4625,17 +5080,17 @@ fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNa
4625
5080
  var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
4626
5081
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
4627
5082
 
4628
- var uncurryThis$5 = functionUncurryThis;
5083
+ var uncurryThis$4 = functionUncurryThis;
4629
5084
  var requireObjectCoercible = requireObjectCoercible$8;
4630
- var toString$2 = toString$9;
5085
+ var toString$2 = toString$a;
4631
5086
  var whitespaces$2 = whitespaces$3;
4632
5087
 
4633
- var replace$1 = uncurryThis$5(''.replace);
5088
+ var replace$1 = uncurryThis$4(''.replace);
4634
5089
  var ltrim = RegExp('^[' + whitespaces$2 + ']+');
4635
5090
  var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
4636
5091
 
4637
5092
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
4638
- var createMethod$1 = function (TYPE) {
5093
+ var createMethod = function (TYPE) {
4639
5094
  return function ($this) {
4640
5095
  var string = toString$2(requireObjectCoercible($this));
4641
5096
  if (TYPE & 1) string = replace$1(string, ltrim, '');
@@ -4647,17 +5102,17 @@ var createMethod$1 = function (TYPE) {
4647
5102
  var stringTrim = {
4648
5103
  // `String.prototype.{ trimLeft, trimStart }` methods
4649
5104
  // https://tc39.es/ecma262/#sec-string.prototype.trimstart
4650
- start: createMethod$1(1),
5105
+ start: createMethod(1),
4651
5106
  // `String.prototype.{ trimRight, trimEnd }` methods
4652
5107
  // https://tc39.es/ecma262/#sec-string.prototype.trimend
4653
- end: createMethod$1(2),
5108
+ end: createMethod(2),
4654
5109
  // `String.prototype.trim` method
4655
5110
  // https://tc39.es/ecma262/#sec-string.prototype.trim
4656
- trim: createMethod$1(3)
5111
+ trim: createMethod(3)
4657
5112
  };
4658
5113
 
4659
5114
  var PROPER_FUNCTION_NAME = functionName.PROPER;
4660
- var fails$4 = fails$p;
5115
+ var fails$3 = fails$q;
4661
5116
  var whitespaces$1 = whitespaces$3;
4662
5117
 
4663
5118
  var non = '\u200B\u0085\u180E';
@@ -4665,20 +5120,20 @@ var non = '\u200B\u0085\u180E';
4665
5120
  // check that a method works with the correct list
4666
5121
  // of whitespaces and has a correct name
4667
5122
  var stringTrimForced = function (METHOD_NAME) {
4668
- return fails$4(function () {
5123
+ return fails$3(function () {
4669
5124
  return !!whitespaces$1[METHOD_NAME]()
4670
5125
  || non[METHOD_NAME]() !== non
4671
5126
  || (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
4672
5127
  });
4673
5128
  };
4674
5129
 
4675
- var $$a = _export;
5130
+ var $$9 = _export;
4676
5131
  var $trim = stringTrim.trim;
4677
5132
  var forcedStringTrimMethod = stringTrimForced;
4678
5133
 
4679
5134
  // `String.prototype.trim` method
4680
5135
  // https://tc39.es/ecma262/#sec-string.prototype.trim
4681
- $$a({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
5136
+ $$9({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
4682
5137
  trim: function trim() {
4683
5138
  return $trim(this);
4684
5139
  }
@@ -9264,35 +9719,35 @@ const DrawingTool = ({
9264
9719
  }));
9265
9720
  };
9266
9721
 
9267
- var global$9 = global$o;
9268
- var fails$3 = fails$p;
9269
- var uncurryThis$4 = functionUncurryThis;
9270
- var toString$1 = toString$9;
9722
+ var global$8 = global$o;
9723
+ var fails$2 = fails$q;
9724
+ var uncurryThis$3 = functionUncurryThis;
9725
+ var toString$1 = toString$a;
9271
9726
  var trim = stringTrim.trim;
9272
9727
  var whitespaces = whitespaces$3;
9273
9728
 
9274
- var $parseInt$1 = global$9.parseInt;
9275
- var Symbol$1 = global$9.Symbol;
9729
+ var $parseInt$1 = global$8.parseInt;
9730
+ var Symbol$1 = global$8.Symbol;
9276
9731
  var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
9277
9732
  var hex = /^[+-]?0x/i;
9278
- var exec = uncurryThis$4(hex.exec);
9279
- var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
9733
+ var exec = uncurryThis$3(hex.exec);
9734
+ var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
9280
9735
  // MS Edge 18- broken with boxed symbols
9281
- || (ITERATOR$3 && !fails$3(function () { $parseInt$1(Object(ITERATOR$3)); }));
9736
+ || (ITERATOR$3 && !fails$2(function () { $parseInt$1(Object(ITERATOR$3)); }));
9282
9737
 
9283
9738
  // `parseInt` method
9284
9739
  // https://tc39.es/ecma262/#sec-parseint-string-radix
9285
- var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
9740
+ var numberParseInt = FORCED ? function parseInt(string, radix) {
9286
9741
  var S = trim(toString$1(string));
9287
9742
  return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
9288
9743
  } : $parseInt$1;
9289
9744
 
9290
- var $$9 = _export;
9745
+ var $$8 = _export;
9291
9746
  var $parseInt = numberParseInt;
9292
9747
 
9293
9748
  // `parseInt` method
9294
9749
  // https://tc39.es/ecma262/#sec-parseint-string-radix
9295
- $$9({ global: true, forced: parseInt !== $parseInt }, {
9750
+ $$8({ global: true, forced: parseInt !== $parseInt }, {
9296
9751
  parseInt: $parseInt
9297
9752
  });
9298
9753
 
@@ -9955,87 +10410,6 @@ const PublicWarningsFormDialog = ({
9955
10410
  }));
9956
10411
  };
9957
10412
 
9958
- var aCallable$6 = aCallable$9;
9959
- var toObject = toObject$5;
9960
- var IndexedObject = indexedObject;
9961
- var lengthOfArrayLike$1 = lengthOfArrayLike$4;
9962
-
9963
- var $TypeError$5 = TypeError;
9964
-
9965
- var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
9966
-
9967
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
9968
- var createMethod = function (IS_RIGHT) {
9969
- return function (that, callbackfn, argumentsLength, memo) {
9970
- var O = toObject(that);
9971
- var self = IndexedObject(O);
9972
- var length = lengthOfArrayLike$1(O);
9973
- aCallable$6(callbackfn);
9974
- if (length === 0 && argumentsLength < 2) throw new $TypeError$5(REDUCE_EMPTY);
9975
- var index = IS_RIGHT ? length - 1 : 0;
9976
- var i = IS_RIGHT ? -1 : 1;
9977
- if (argumentsLength < 2) while (true) {
9978
- if (index in self) {
9979
- memo = self[index];
9980
- index += i;
9981
- break;
9982
- }
9983
- index += i;
9984
- if (IS_RIGHT ? index < 0 : length <= index) {
9985
- throw new $TypeError$5(REDUCE_EMPTY);
9986
- }
9987
- }
9988
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
9989
- memo = callbackfn(memo, self[index], index, O);
9990
- }
9991
- return memo;
9992
- };
9993
- };
9994
-
9995
- var arrayReduce = {
9996
- // `Array.prototype.reduce` method
9997
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
9998
- left: createMethod(false),
9999
- // `Array.prototype.reduceRight` method
10000
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
10001
- right: createMethod(true)
10002
- };
10003
-
10004
- var fails$2 = fails$p;
10005
-
10006
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
10007
- var method = [][METHOD_NAME];
10008
- return !!method && fails$2(function () {
10009
- // eslint-disable-next-line no-useless-call -- required for testing
10010
- method.call(null, argument || function () { return 1; }, 1);
10011
- });
10012
- };
10013
-
10014
- var global$8 = global$o;
10015
- var classof$1 = classofRaw$2;
10016
-
10017
- var engineIsNode = classof$1(global$8.process) === 'process';
10018
-
10019
- var $$8 = _export;
10020
- var $reduce = arrayReduce.left;
10021
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
10022
- var CHROME_VERSION = engineV8Version;
10023
- var IS_NODE$4 = engineIsNode;
10024
-
10025
- // Chrome 80-82 has a critical bug
10026
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
10027
- var CHROME_BUG = !IS_NODE$4 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
10028
- var FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');
10029
-
10030
- // `Array.prototype.reduce` method
10031
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
10032
- $$8({ target: 'Array', proto: true, forced: FORCED }, {
10033
- reduce: function reduce(callbackfn /* , initialValue */) {
10034
- var length = arguments.length;
10035
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
10036
- }
10037
- });
10038
-
10039
10413
  function a11yProps(index) {
10040
10414
  return {
10041
10415
  id: `tab-${index}`,
@@ -11307,20 +11681,20 @@ var anInstance$1 = function (it, Prototype) {
11307
11681
  };
11308
11682
 
11309
11683
  var classofRaw = classofRaw$2;
11310
- var uncurryThis$3 = functionUncurryThis;
11684
+ var uncurryThis$2 = functionUncurryThis;
11311
11685
 
11312
11686
  var functionUncurryThisClause = function (fn) {
11313
11687
  // Nashorn bug:
11314
11688
  // https://github.com/zloirock/core-js/issues/1128
11315
11689
  // https://github.com/zloirock/core-js/issues/1130
11316
- if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
11690
+ if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
11317
11691
  };
11318
11692
 
11319
- var uncurryThis$2 = functionUncurryThisClause;
11320
- var aCallable$5 = aCallable$9;
11693
+ var uncurryThis$1 = functionUncurryThisClause;
11694
+ var aCallable$5 = aCallable$a;
11321
11695
  var NATIVE_BIND = functionBindNative;
11322
11696
 
11323
- var bind$4 = uncurryThis$2(uncurryThis$2.bind);
11697
+ var bind$4 = uncurryThis$1(uncurryThis$1.bind);
11324
11698
 
11325
11699
  // optional / simple context binding
11326
11700
  var functionBindContext = function (fn, that) {
@@ -11330,10 +11704,6 @@ var functionBindContext = function (fn, that) {
11330
11704
  };
11331
11705
  };
11332
11706
 
11333
- var uncurryThis$1 = functionUncurryThis;
11334
-
11335
- var arraySlice$1 = uncurryThis$1([].slice);
11336
-
11337
11707
  var $TypeError$3 = TypeError;
11338
11708
 
11339
11709
  var validateArgumentsLength$1 = function (passed, required) {
@@ -11351,9 +11721,9 @@ var apply = functionApply;
11351
11721
  var bind$3 = functionBindContext;
11352
11722
  var isCallable$5 = isCallable$n;
11353
11723
  var hasOwn$1 = hasOwnProperty_1;
11354
- var fails$1 = fails$p;
11724
+ var fails$1 = fails$q;
11355
11725
  var html = html$2;
11356
- var arraySlice = arraySlice$1;
11726
+ var arraySlice = arraySlice$2;
11357
11727
  var createElement = documentCreateElement$2;
11358
11728
  var validateArgumentsLength = validateArgumentsLength$1;
11359
11729
  var IS_IOS$1 = engineIsIos;
@@ -11664,7 +12034,7 @@ var promiseConstructorDetection = {
11664
12034
 
11665
12035
  var newPromiseCapability$2 = {};
11666
12036
 
11667
- var aCallable$4 = aCallable$9;
12037
+ var aCallable$4 = aCallable$a;
11668
12038
 
11669
12039
  var $TypeError$2 = TypeError;
11670
12040
 
@@ -11693,7 +12063,7 @@ var defineBuiltIn$2 = defineBuiltIn$7;
11693
12063
  var setPrototypeOf = objectSetPrototypeOf;
11694
12064
  var setToStringTag = setToStringTag$4;
11695
12065
  var setSpecies = setSpecies$1;
11696
- var aCallable$3 = aCallable$9;
12066
+ var aCallable$3 = aCallable$a;
11697
12067
  var isCallable$3 = isCallable$n;
11698
12068
  var isObject$1 = isObject$d;
11699
12069
  var anInstance = anInstance$1;
@@ -11983,7 +12353,7 @@ var isArrayIteratorMethod$1 = function (it) {
11983
12353
  return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
11984
12354
  };
11985
12355
 
11986
- var classof = classof$6;
12356
+ var classof = classof$5;
11987
12357
  var getMethod$1 = getMethod$5;
11988
12358
  var isNullOrUndefined = isNullOrUndefined$6;
11989
12359
  var Iterators = iterators;
@@ -11998,9 +12368,9 @@ var getIteratorMethod$2 = function (it) {
11998
12368
  };
11999
12369
 
12000
12370
  var call$4 = functionCall;
12001
- var aCallable$2 = aCallable$9;
12371
+ var aCallable$2 = aCallable$a;
12002
12372
  var anObject$3 = anObject$d;
12003
- var tryToString$1 = tryToString$4;
12373
+ var tryToString$1 = tryToString$5;
12004
12374
  var getIteratorMethod$1 = getIteratorMethod$2;
12005
12375
 
12006
12376
  var $TypeError$1 = TypeError;
@@ -12038,9 +12408,9 @@ var iteratorClose$1 = function (iterator, kind, value) {
12038
12408
  var bind = functionBindContext;
12039
12409
  var call$2 = functionCall;
12040
12410
  var anObject$1 = anObject$d;
12041
- var tryToString = tryToString$4;
12411
+ var tryToString = tryToString$5;
12042
12412
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
12043
- var lengthOfArrayLike = lengthOfArrayLike$4;
12413
+ var lengthOfArrayLike = lengthOfArrayLike$5;
12044
12414
  var isPrototypeOf$1 = objectIsPrototypeOf;
12045
12415
  var getIterator = getIterator$1;
12046
12416
  var getIteratorMethod = getIteratorMethod$2;
@@ -12155,7 +12525,7 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
12155
12525
 
12156
12526
  var $$6 = _export;
12157
12527
  var call$1 = functionCall;
12158
- var aCallable$1 = aCallable$9;
12528
+ var aCallable$1 = aCallable$a;
12159
12529
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
12160
12530
  var perform$1 = perform$3;
12161
12531
  var iterate$1 = iterate$2;
@@ -12219,7 +12589,7 @@ if (isCallable$2(NativePromiseConstructor$1)) {
12219
12589
 
12220
12590
  var $$4 = _export;
12221
12591
  var call = functionCall;
12222
- var aCallable = aCallable$9;
12592
+ var aCallable = aCallable$a;
12223
12593
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
12224
12594
  var perform = perform$3;
12225
12595
  var iterate = iterate$2;
@@ -12288,7 +12658,7 @@ $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
12288
12658
 
12289
12659
  var $$1 = _export;
12290
12660
  var NativePromiseConstructor = promiseNativeConstructor;
12291
- var fails = fails$p;
12661
+ var fails = fails$q;
12292
12662
  var getBuiltIn = getBuiltIn$9;
12293
12663
  var isCallable$1 = isCallable$n;
12294
12664
  var speciesConstructor = speciesConstructor$3;
@@ -13042,6 +13412,261 @@ const PublicWarningsFormDialogConnect = ({
13042
13412
  });
13043
13413
  };
13044
13414
 
13415
+ const actionButton = amount => {
13416
+ return jsxs(Grid, Object.assign({
13417
+ container: true,
13418
+ alignItems: "center",
13419
+ style: {
13420
+ marginRight: '8px',
13421
+ minWidth: '36px'
13422
+ }
13423
+ }, {
13424
+ children: [jsx(Options, {}), jsx(Typography, Object.assign({
13425
+ variant: "body2",
13426
+ sx: {
13427
+ paddingLeft: 0.5
13428
+ }
13429
+ }, {
13430
+ children: amount > 0 && amount
13431
+ }))]
13432
+ }));
13433
+ };
13434
+ const FilterChipWithOptions = ({
13435
+ id,
13436
+ translationKey,
13437
+ handleClick,
13438
+ filterList: _filterList = []
13439
+ }) => {
13440
+ const {
13441
+ t
13442
+ } = useWarningsTranslation();
13443
+ const [anchorEl, setAnchorEl] = React.useState(undefined);
13444
+ const [isOpen, setIsOpen] = React.useState(false);
13445
+ const {
13446
+ anchorOrigin,
13447
+ transformOrigin
13448
+ } = getPosition('bottom');
13449
+ const initialResult = {
13450
+ isAllSelected: true,
13451
+ selectedFiltersAmount: 0,
13452
+ isDisabled: false
13453
+ };
13454
+ const {
13455
+ isAllSelected,
13456
+ selectedFiltersAmount,
13457
+ isDisabled
13458
+ } = _filterList.reduce((accumulatedResult, filterItem) => {
13459
+ const result = Object.assign({}, accumulatedResult);
13460
+ const isEmptyFilter = filterItem.filter.id === emptyFilter.id;
13461
+ const isOnlyFilter = _filterList.length === 1 && isEmptyFilter;
13462
+ if (!filterItem.filter.checked) {
13463
+ result.isAllSelected = false;
13464
+ if (isOnlyFilter) {
13465
+ result.isDisabled = true;
13466
+ }
13467
+ } else if (isOnlyFilter) {
13468
+ result.isDisabled = true;
13469
+ } else {
13470
+ result.selectedFiltersAmount += 1;
13471
+ }
13472
+ return result;
13473
+ }, initialResult);
13474
+ const isAnyFilterSelected = selectedFiltersAmount > 0;
13475
+ const showDisabled = _filterList.length === 0 || isDisabled;
13476
+ const label = t(translationKey);
13477
+ const onClickOptions = () => {
13478
+ setIsOpen(!isOpen);
13479
+ };
13480
+ const onSelectAll = () => {
13481
+ handleClick && handleClick(id, isAllSelected);
13482
+ };
13483
+ const handleClose = event => {
13484
+ event.stopPropagation();
13485
+ setIsOpen(false);
13486
+ };
13487
+ React.useEffect(() => {
13488
+ setAnchorEl(document.getElementById(id));
13489
+ }, [id]);
13490
+ return jsxs(Fragment, {
13491
+ children: [jsx(CustomTooltip, Object.assign({
13492
+ title: showDisabled ? t('filter-no-results') : t('filter-options'),
13493
+ placement: "bottom"
13494
+ }, {
13495
+ children: jsx("span", Object.assign({
13496
+ style: {
13497
+ margin: 0
13498
+ }
13499
+ }, {
13500
+ children: jsx(FilterChip, {
13501
+ id: id,
13502
+ label: label,
13503
+ onAction: onClickOptions,
13504
+ actionIcon: actionButton(selectedFiltersAmount),
13505
+ isSelected: isAnyFilterSelected,
13506
+ handleClick: onClickOptions,
13507
+ isDisabled: showDisabled,
13508
+ size: "medium"
13509
+ })
13510
+ }))
13511
+ })), jsxs(Menu, Object.assign({
13512
+ title: label,
13513
+ anchorEl: anchorEl,
13514
+ open: isOpen,
13515
+ onClose: handleClose,
13516
+ anchorOrigin: anchorOrigin,
13517
+ transformOrigin: transformOrigin,
13518
+ BackdropProps: {
13519
+ style: {
13520
+ opacity: 0,
13521
+ transition: 'none'
13522
+ }
13523
+ },
13524
+ sx: {
13525
+ padding: 3
13526
+ }
13527
+ }, {
13528
+ children: [jsxs(DialogTitle, Object.assign({
13529
+ id: "dialog-title",
13530
+ sx: {
13531
+ zIndex: 1,
13532
+ padding: '8px 18px 16px 24px',
13533
+ display: 'flex',
13534
+ justifyContent: 'space-between',
13535
+ alignItems: 'center'
13536
+ }
13537
+ }, {
13538
+ children: [jsx(Typography, Object.assign({
13539
+ sx: {
13540
+ fontSize: '20px',
13541
+ fontWeight: 500,
13542
+ paddingRight: 1
13543
+ },
13544
+ "data-testid": "customDialog-title",
13545
+ component: "span"
13546
+ }, {
13547
+ children: label
13548
+ })), jsx(CustomIconButton, Object.assign({
13549
+ "aria-label": t('close-dialog-confirm'),
13550
+ onClick: handleClose,
13551
+ sx: {
13552
+ '&.MuiIconButton-root': {
13553
+ color: 'geowebColors.greys.accessible'
13554
+ }
13555
+ }
13556
+ }, {
13557
+ children: jsx(Close, {})
13558
+ }))]
13559
+ })), jsxs(DialogContent, Object.assign({
13560
+ sx: {
13561
+ padding: '0px 24px 16px 24px'
13562
+ }
13563
+ }, {
13564
+ children: [jsxs(Grid, Object.assign({
13565
+ container: true,
13566
+ justifyContent: "space-between",
13567
+ alignItems: "center"
13568
+ }, {
13569
+ children: [t('filter-select-all'), jsx(Switch, {
13570
+ inputProps: {
13571
+ 'aria-label': t('filter-select-all')
13572
+ },
13573
+ checked: isAllSelected,
13574
+ onChange: onSelectAll,
13575
+ sx: {
13576
+ marginRight: '-12px'
13577
+ }
13578
+ })]
13579
+ })), jsx(Box, Object.assign({
13580
+ sx: {
13581
+ marginLeft: '-12px'
13582
+ }
13583
+ }, {
13584
+ children: _filterList.map(filterItem => jsx(FilterListItem, Object.assign({}, filterItem), filterItem.filter.id))
13585
+ }))]
13586
+ }))]
13587
+ }))]
13588
+ });
13589
+ };
13590
+
13591
+ const FilterChipWithOptionsConnect = ({
13592
+ filter
13593
+ }) => {
13594
+ const dispatch = useDispatch();
13595
+ const toggleFilter = React.useCallback((filterId, isChecked) => {
13596
+ dispatch(publicWarningActions.toggleFilter({
13597
+ filterId,
13598
+ isChecked
13599
+ }));
13600
+ }, [dispatch]);
13601
+ const toggleOption = React.useCallback((filterId, optionId) => {
13602
+ dispatch(publicWarningActions.toggleOption({
13603
+ filterId,
13604
+ optionId
13605
+ }));
13606
+ }, [dispatch]);
13607
+ const enableOnlyOneFilterOption = React.useCallback((filterId, optionId) => {
13608
+ dispatch(publicWarningActions.enableOnlyOneFilterOption({
13609
+ filterId,
13610
+ optionId
13611
+ }));
13612
+ }, [dispatch]);
13613
+ const filterListWithActions = filter.filterList.map(option => {
13614
+ return Object.assign(Object.assign({}, option), {
13615
+ toggleFilter: () => toggleOption(filter.id, option.filter.id),
13616
+ enableOnlyOneFilter: () => enableOnlyOneFilterOption(filter.id, option.filter.id)
13617
+ });
13618
+ });
13619
+ return jsx(FilterChipWithOptions, Object.assign({}, filter, {
13620
+ handleClick: toggleFilter,
13621
+ filterList: filterListWithActions
13622
+ }));
13623
+ };
13624
+
13625
+ const FilterList = ({
13626
+ filters: _filters = [],
13627
+ onClickAll: _onClickAll = () => {},
13628
+ isAllSelected: _isAllSelected = true
13629
+ }) => {
13630
+ const {
13631
+ t
13632
+ } = useWarningsTranslation();
13633
+ return jsxs(Stack, Object.assign({
13634
+ direction: "row",
13635
+ spacing: 1,
13636
+ sx: {
13637
+ display: 'block',
13638
+ '.MuiChip-root': {
13639
+ margin: 0,
13640
+ marginRight: 1,
13641
+ marginBottom: 1
13642
+ }
13643
+ }
13644
+ }, {
13645
+ children: [jsx(CustomTooltip, Object.assign({
13646
+ title: _isAllSelected ? t('filter-hide-all') : t('filter-show-all'),
13647
+ placement: "bottom"
13648
+ }, {
13649
+ children: jsx("span", Object.assign({
13650
+ style: {
13651
+ margin: 0
13652
+ }
13653
+ }, {
13654
+ children: jsx(FilterChip, {
13655
+ id: "all",
13656
+ label: t('filter-all'),
13657
+ isSelected: _isAllSelected,
13658
+ handleClick: () => _onClickAll(_isAllSelected),
13659
+ size: "medium"
13660
+ })
13661
+ }))
13662
+ })), _filters.map(filter => {
13663
+ return jsx(FilterChipWithOptionsConnect, {
13664
+ filter: filter
13665
+ }, filter.id);
13666
+ })]
13667
+ }));
13668
+ };
13669
+
13045
13670
  const sortWarningsOnStatus = warnings => {
13046
13671
  return warnings.reduce((allWarnings, warning) => {
13047
13672
  if (warning.status === 'DRAFT' || warning.status === 'DRAFT_PUBLISHED') {
@@ -13458,6 +14083,7 @@ const WarningsOnStatus = ({
13458
14083
  };
13459
14084
  const PublicWarningList = ({
13460
14085
  warnings,
14086
+ filters,
13461
14087
  isLoading: _isLoading = false,
13462
14088
  error,
13463
14089
  selectedPublicWarningId: _selectedPublicWarningId = '',
@@ -13467,7 +14093,9 @@ const PublicWarningList = ({
13467
14093
  onCreateWarning: _onCreateWarning = () => {},
13468
14094
  onDeleteWarning: _onDeleteWarning2 = () => {},
13469
14095
  onRefetchWarnings: _onRefetchWarnings = () => {},
13470
- onDeleteReviewWarning: _onDeleteReviewWarning2 = () => {}
14096
+ onDeleteReviewWarning: _onDeleteReviewWarning2 = () => {},
14097
+ onClickAllChip: _onClickAllChip = () => {},
14098
+ isAllChipSelected: _isAllChipSelected = true
13471
14099
  }) => {
13472
14100
  const {
13473
14101
  t
@@ -13483,22 +14111,37 @@ const PublicWarningList = ({
13483
14111
  },
13484
14112
  "data-testid": "publicWarningList"
13485
14113
  }, {
13486
- children: [jsx(Grid, Object.assign({
13487
- container: true,
13488
- justifyContent: "flex-end"
14114
+ children: [jsxs(Grid, Object.assign({
14115
+ container: true
13489
14116
  }, {
13490
- children: jsx(Button, Object.assign({
13491
- variant: "primary",
13492
- onClick: _onCreateWarning,
13493
- sx: {
13494
- textTransform: 'initial',
13495
- marginBottom: '8px',
13496
- fontSize: '12px',
13497
- height: '32px'
13498
- }
14117
+ children: [jsx(Grid, Object.assign({
14118
+ item: true,
14119
+ xs: 12,
14120
+ sm: true
13499
14121
  }, {
13500
- children: t('warning-list-button_create')
13501
- }))
14122
+ children: jsx(FilterList, {
14123
+ filters: filters,
14124
+ isAllSelected: _isAllChipSelected,
14125
+ onClickAll: _onClickAllChip
14126
+ })
14127
+ })), jsx(Grid, Object.assign({
14128
+ item: true,
14129
+ xs: "auto"
14130
+ }, {
14131
+ children: jsx(Button, Object.assign({
14132
+ variant: "primary",
14133
+ onClick: _onCreateWarning,
14134
+ sx: {
14135
+ textTransform: 'initial',
14136
+ marginBottom: '8px',
14137
+ fontSize: '12px',
14138
+ height: '32px',
14139
+ whiteSpace: 'nowrap'
14140
+ }
14141
+ }, {
14142
+ children: t('warning-list-button_create')
14143
+ }))
14144
+ }))]
13502
14145
  })), error && jsx(AlertBanner, {
13503
14146
  title: error.message,
13504
14147
  shouldClose: true
@@ -13609,7 +14252,7 @@ var uncurryThis = functionUncurryThis;
13609
14252
  var hasOwn = hasOwnProperty_1;
13610
14253
  var isCallable = isCallable$n;
13611
14254
  var isPrototypeOf = objectIsPrototypeOf;
13612
- var toString = toString$9;
14255
+ var toString = toString$a;
13613
14256
  var defineBuiltInAccessor = defineBuiltInAccessor$2;
13614
14257
  var copyConstructorProperties = copyConstructorProperties$3;
13615
14258
 
@@ -13659,22 +14302,6 @@ if (DESCRIPTORS && isCallable(NativeSymbol) && (!('description' in SymbolPrototy
13659
14302
  });
13660
14303
  }
13661
14304
 
13662
- /* *
13663
- * Licensed under the Apache License, Version 2.0 (the "License");
13664
- * you may not use this file except in compliance with the License.
13665
- * You may obtain a copy of the License at
13666
- *
13667
- * http://www.apache.org/licenses/LICENSE-2.0
13668
- *
13669
- * Unless required by applicable law or agreed to in writing, software
13670
- * distributed under the License is distributed on an "AS IS" BASIS,
13671
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13672
- * See the License for the specific language governing permissions and
13673
- * limitations under the License.
13674
- *
13675
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
13676
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
13677
- * */
13678
14305
  const getPublicWarningsStore = store => {
13679
14306
  if (store && store.publicWarnings) {
13680
14307
  return store.publicWarnings;
@@ -13693,6 +14320,43 @@ const {
13693
14320
  const isPublicWarningsLoading = createSelector(getPublicWarningsStore, store => (store === null || store === void 0 ? void 0 : store.isLoading) || false);
13694
14321
  const getPublicWarningsError = createSelector(getPublicWarningsStore, store => store === null || store === void 0 ? void 0 : store.error);
13695
14322
  const getPublicWarningsLastUpdatedTime = createSelector(getPublicWarningsStore, store => store === null || store === void 0 ? void 0 : store.lastUpdatedTime);
14323
+ const {
14324
+ selectAll: selectAllFilters,
14325
+ selectIds: selectAllFilterIds
14326
+ } = warningListFilterAdapter.getSelectors(state => {
14327
+ var _a, _b;
14328
+ return (_b = (_a = state === null || state === void 0 ? void 0 : state.publicWarnings) === null || _a === void 0 ? void 0 : _a.filters) !== null && _b !== void 0 ? _b : {
14329
+ entities: {},
14330
+ ids: []
14331
+ };
14332
+ });
14333
+ const getIsAllSelected = createSelector(selectAllFilters, filters => {
14334
+ const result = filters.findIndex(filter => filter.filterList.findIndex(option => option.filter.checked === false) !== -1) === -1;
14335
+ return result;
14336
+ });
14337
+ const getSelectedFilterOptions = createSelector(selectAllFilters, filters => {
14338
+ const selectedOptions = [];
14339
+ filters.forEach(filter => {
14340
+ filter.filterList.forEach(option => {
14341
+ if (option.filter.checked === true) {
14342
+ selectedOptions.push({
14343
+ filterId: filter.id,
14344
+ optionId: option.filter.id
14345
+ });
14346
+ }
14347
+ });
14348
+ });
14349
+ return selectedOptions;
14350
+ });
14351
+ const getFilteredWarnings = createSelector(selectAllPublicWarnings, getIsAllSelected, getSelectedFilterOptions, selectAllFilterIds, (warnings, isAllSelected, filters, filterIds) => {
14352
+ if (isAllSelected) {
14353
+ return warnings;
14354
+ }
14355
+ const result = warnings.filter(({
14356
+ warningDetail
14357
+ }) => filterIds.every(key => isWarningMatchingFilter(filters, key, warningDetail[key])));
14358
+ return result;
14359
+ });
13696
14360
 
13697
14361
  const ConfirmDeleteWarningDialog = ({
13698
14362
  onClose: _onClose = () => {},
@@ -13763,6 +14427,9 @@ const PublicWarningListConnect = () => {
13763
14427
  auth
13764
14428
  } = useAuthenticationContext();
13765
14429
  const [confirmDialogOptions, setConfirmDialogOptions] = React__default.useState(undefined);
14430
+ const filters = useSelector(selectAllFilters);
14431
+ const isAllChipSelected = useSelector(getIsAllSelected);
14432
+ const filteredWarnings = useSelector(getFilteredWarnings);
13766
14433
  const warnings = useSelector(selectAllPublicWarnings);
13767
14434
  const selectedPublicWarningId = useSelector(getSelectedPublicWarningId);
13768
14435
  const isLoading = useSelector(isPublicWarningsLoading);
@@ -13847,13 +14514,24 @@ const PublicWarningListConnect = () => {
13847
14514
  const fetchWarnings = React__default.useCallback(() => {
13848
14515
  dispatch(publicWarningActions.fetchWarnings());
13849
14516
  }, [dispatch]);
14517
+ const onClickAllChip = React__default.useCallback(isChecked => {
14518
+ dispatch(publicWarningActions.toggleAllFilters({
14519
+ isChecked
14520
+ }));
14521
+ }, [dispatch]);
13850
14522
  React__default.useEffect(() => {
13851
14523
  // fetch warnings on mount
13852
14524
  fetchWarnings();
13853
14525
  }, [fetchWarnings]);
14526
+ React__default.useEffect(() => {
14527
+ // update filters when warnings change
14528
+ dispatch(publicWarningActions.setWarningListFilters({
14529
+ warnings
14530
+ }));
14531
+ }, [dispatch, warnings]);
13854
14532
  return jsxs(Fragment, {
13855
14533
  children: [jsx(PublicWarningList, {
13856
- warnings: warnings,
14534
+ warnings: filteredWarnings,
13857
14535
  isLoading: isLoading,
13858
14536
  error: error,
13859
14537
  onSelectWarning: selectWarning,
@@ -13863,7 +14541,10 @@ const PublicWarningListConnect = () => {
13863
14541
  onDeleteReviewWarning: deleteReviewWarning,
13864
14542
  selectedPublicWarningId: selectedPublicWarningId,
13865
14543
  lastUpdatedTime: lastUpdatedTime,
13866
- onRefetchWarnings: fetchWarnings
14544
+ onRefetchWarnings: fetchWarnings,
14545
+ filters: filters,
14546
+ isAllChipSelected: isAllChipSelected,
14547
+ onClickAllChip: onClickAllChip
13867
14548
  }), confirmDialogOptions && jsx(ConfirmDeleteWarningDialog, {
13868
14549
  onClose: () => setConfirmDialogOptions(undefined),
13869
14550
  title: confirmDialogOptions.title,