@opengeoweb/sigmet-airmet 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -4,8 +4,8 @@ import { FormControlLabel, Radio, Grid, Typography, Box as Box$2, Button, Checkb
4
4
  import { useFormContext } from 'react-hook-form';
5
5
  import { useDraftFormHelpers, ReactHookFormRadioGroup, ReactHookFormSelect, ReactHookFormNumberField, isInteger, isValidMax, isValidMin, isEmpty, ReactHookFormDateTime, isValidDate, isBefore, isBetween, hasMaxFeaturePoints, hasMulitpleIntersections, ReactHookFormHiddenInput, isMaximumOneDrawing, hasIntersectionWithFIR, isValidGeoJsonCoordinates, isXHoursBefore, isAfter, isXHoursAfter, ReactHookFormTextField, isLatitude, isNonOrBothCoordinates, isLongitude, ReactHookFormFormControl, isGeometryDirty, ReactHookFormProvider, defaultFormOptions } from '@opengeoweb/form-fields';
6
6
  import { useApiContext, useApi, createApiInstance, createNonAuthApiInstance, createFakeApiInstance, ApiProvider } from '@opengeoweb/api';
7
- import { defaultIntersectionStyleProperties, defaultPoint, defaultBox, defaultPolygon, defaultDelete, MapControls, LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, MapViewLayer, TimeSliderConnect, LegendConnect, LayerManagerConnect, useMapDrawTool } from '@opengeoweb/core';
8
- import { defaultStyleProperties, DRAWMODE, addFeatureProperties } from '@opengeoweb/webmap-react';
7
+ import { defaultIntersectionStyleProperties, defaultPoint, defaultBox, defaultPolygon, defaultDelete, MapControls, LayerManagerMapButtonConnect, LegendMapButtonConnect, MultiDimensionSelectMapButtonsConnect, MapViewConnect, TimeSliderConnect, LegendConnect, LayerManagerConnect, useMapDrawTool } from '@opengeoweb/core';
8
+ import { defaultStyleProperties, DRAWMODE, addFeatureProperties, MapViewLayer } from '@opengeoweb/webmap-react';
9
9
  import { CustomTooltip, ToggleMenu, useIsMounted, StatusTag, AlertBanner, ConfirmationServiceProvider, usePreventBrowserClose, useConfirmationDialog, isAxiosError, getAxiosErrorMessage, usePoller, ErrorBoundary } from '@opengeoweb/shared';
10
10
  import moment from 'moment';
11
11
  import { polygonToLineString, booleanClockwise, rewind } from '@turf/turf';
@@ -16,337 +16,342 @@ import 'react-dom';
16
16
  import { mapSelectors, syncGroupsActions, mapStoreActions, defaultLayers, syncConstants } from '@opengeoweb/store';
17
17
  import { jsx } from 'react/jsx-runtime';
18
18
 
19
- function _iterableToArrayLimit(arr, i) {
20
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
21
- if (null != _i) {
22
- var _s,
23
- _e,
24
- _x,
25
- _r,
26
- _arr = [],
27
- _n = !0,
28
- _d = !1;
19
+ function _iterableToArrayLimit(r, l) {
20
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
21
+ if (null != t) {
22
+ var e,
23
+ n,
24
+ i,
25
+ u,
26
+ a = [],
27
+ f = !0,
28
+ o = !1;
29
29
  try {
30
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
31
- if (Object(_i) !== _i) return;
32
- _n = !1;
33
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
34
- } catch (err) {
35
- _d = !0, _e = err;
30
+ if (i = (t = t.call(r)).next, 0 === l) {
31
+ if (Object(t) !== t) return;
32
+ f = !1;
33
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
34
+ } catch (r) {
35
+ o = !0, n = r;
36
36
  } finally {
37
37
  try {
38
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
38
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
39
39
  } finally {
40
- if (_d) throw _e;
40
+ if (o) throw n;
41
41
  }
42
42
  }
43
- return _arr;
43
+ return a;
44
44
  }
45
45
  }
46
46
  function _regeneratorRuntime() {
47
47
  _regeneratorRuntime = function () {
48
- return exports;
48
+ return e;
49
49
  };
50
- var exports = {},
51
- Op = Object.prototype,
52
- hasOwn = Op.hasOwnProperty,
53
- defineProperty = Object.defineProperty || function (obj, key, desc) {
54
- obj[key] = desc.value;
50
+ var t,
51
+ e = {},
52
+ r = Object.prototype,
53
+ n = r.hasOwnProperty,
54
+ o = Object.defineProperty || function (t, e, r) {
55
+ t[e] = r.value;
55
56
  },
56
- $Symbol = "function" == typeof Symbol ? Symbol : {},
57
- iteratorSymbol = $Symbol.iterator || "@@iterator",
58
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
59
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
60
- function define(obj, key, value) {
61
- return Object.defineProperty(obj, key, {
62
- value: value,
57
+ i = "function" == typeof Symbol ? Symbol : {},
58
+ a = i.iterator || "@@iterator",
59
+ c = i.asyncIterator || "@@asyncIterator",
60
+ u = i.toStringTag || "@@toStringTag";
61
+ function define(t, e, r) {
62
+ return Object.defineProperty(t, e, {
63
+ value: r,
63
64
  enumerable: !0,
64
65
  configurable: !0,
65
66
  writable: !0
66
- }), obj[key];
67
+ }), t[e];
67
68
  }
68
69
  try {
69
70
  define({}, "");
70
- } catch (err) {
71
- define = function (obj, key, value) {
72
- return obj[key] = value;
71
+ } catch (t) {
72
+ define = function (t, e, r) {
73
+ return t[e] = r;
73
74
  };
74
75
  }
75
- function wrap(innerFn, outerFn, self, tryLocsList) {
76
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
77
- generator = Object.create(protoGenerator.prototype),
78
- context = new Context(tryLocsList || []);
79
- return defineProperty(generator, "_invoke", {
80
- value: makeInvokeMethod(innerFn, self, context)
81
- }), generator;
76
+ function wrap(t, e, r, n) {
77
+ var i = e && e.prototype instanceof Generator ? e : Generator,
78
+ a = Object.create(i.prototype),
79
+ c = new Context(n || []);
80
+ return o(a, "_invoke", {
81
+ value: makeInvokeMethod(t, r, c)
82
+ }), a;
82
83
  }
83
- function tryCatch(fn, obj, arg) {
84
+ function tryCatch(t, e, r) {
84
85
  try {
85
86
  return {
86
87
  type: "normal",
87
- arg: fn.call(obj, arg)
88
+ arg: t.call(e, r)
88
89
  };
89
- } catch (err) {
90
+ } catch (t) {
90
91
  return {
91
92
  type: "throw",
92
- arg: err
93
+ arg: t
93
94
  };
94
95
  }
95
96
  }
96
- exports.wrap = wrap;
97
- var ContinueSentinel = {};
97
+ e.wrap = wrap;
98
+ var h = "suspendedStart",
99
+ l = "suspendedYield",
100
+ f = "executing",
101
+ s = "completed",
102
+ y = {};
98
103
  function Generator() {}
99
104
  function GeneratorFunction() {}
100
105
  function GeneratorFunctionPrototype() {}
101
- var IteratorPrototype = {};
102
- define(IteratorPrototype, iteratorSymbol, function () {
106
+ var p = {};
107
+ define(p, a, function () {
103
108
  return this;
104
109
  });
105
- var getProto = Object.getPrototypeOf,
106
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
107
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
108
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
109
- function defineIteratorMethods(prototype) {
110
- ["next", "throw", "return"].forEach(function (method) {
111
- define(prototype, method, function (arg) {
112
- return this._invoke(method, arg);
110
+ var d = Object.getPrototypeOf,
111
+ v = d && d(d(values([])));
112
+ v && v !== r && n.call(v, a) && (p = v);
113
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
114
+ function defineIteratorMethods(t) {
115
+ ["next", "throw", "return"].forEach(function (e) {
116
+ define(t, e, function (t) {
117
+ return this._invoke(e, t);
113
118
  });
114
119
  });
115
120
  }
116
- function AsyncIterator(generator, PromiseImpl) {
117
- function invoke(method, arg, resolve, reject) {
118
- var record = tryCatch(generator[method], generator, arg);
119
- if ("throw" !== record.type) {
120
- var result = record.arg,
121
- value = result.value;
122
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
123
- invoke("next", value, resolve, reject);
124
- }, function (err) {
125
- invoke("throw", err, resolve, reject);
126
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
127
- result.value = unwrapped, resolve(result);
128
- }, function (error) {
129
- return invoke("throw", error, resolve, reject);
121
+ function AsyncIterator(t, e) {
122
+ function invoke(r, o, i, a) {
123
+ var c = tryCatch(t[r], t, o);
124
+ if ("throw" !== c.type) {
125
+ var u = c.arg,
126
+ h = u.value;
127
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
128
+ invoke("next", t, i, a);
129
+ }, function (t) {
130
+ invoke("throw", t, i, a);
131
+ }) : e.resolve(h).then(function (t) {
132
+ u.value = t, i(u);
133
+ }, function (t) {
134
+ return invoke("throw", t, i, a);
130
135
  });
131
136
  }
132
- reject(record.arg);
137
+ a(c.arg);
133
138
  }
134
- var previousPromise;
135
- defineProperty(this, "_invoke", {
136
- value: function (method, arg) {
139
+ var r;
140
+ o(this, "_invoke", {
141
+ value: function (t, n) {
137
142
  function callInvokeWithMethodAndArg() {
138
- return new PromiseImpl(function (resolve, reject) {
139
- invoke(method, arg, resolve, reject);
143
+ return new e(function (e, r) {
144
+ invoke(t, n, e, r);
140
145
  });
141
146
  }
142
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
147
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
143
148
  }
144
149
  });
145
150
  }
146
- function makeInvokeMethod(innerFn, self, context) {
147
- var state = "suspendedStart";
148
- return function (method, arg) {
149
- if ("executing" === state) throw new Error("Generator is already running");
150
- if ("completed" === state) {
151
- if ("throw" === method) throw arg;
151
+ function makeInvokeMethod(e, r, n) {
152
+ var o = h;
153
+ return function (i, a) {
154
+ if (o === f) throw new Error("Generator is already running");
155
+ if (o === s) {
156
+ if ("throw" === i) throw a;
152
157
  return {
153
- value: void 0,
158
+ value: t,
154
159
  done: !0
155
160
  };
156
161
  }
157
- for (context.method = method, context.arg = arg;;) {
158
- var delegate = context.delegate;
159
- if (delegate) {
160
- var delegateResult = maybeInvokeDelegate(delegate, context);
161
- if (delegateResult) {
162
- if (delegateResult === ContinueSentinel) continue;
163
- return delegateResult;
162
+ for (n.method = i, n.arg = a;;) {
163
+ var c = n.delegate;
164
+ if (c) {
165
+ var u = maybeInvokeDelegate(c, n);
166
+ if (u) {
167
+ if (u === y) continue;
168
+ return u;
164
169
  }
165
170
  }
166
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
167
- if ("suspendedStart" === state) throw state = "completed", context.arg;
168
- context.dispatchException(context.arg);
169
- } else "return" === context.method && context.abrupt("return", context.arg);
170
- state = "executing";
171
- var record = tryCatch(innerFn, self, context);
172
- if ("normal" === record.type) {
173
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
171
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
172
+ if (o === h) throw o = s, n.arg;
173
+ n.dispatchException(n.arg);
174
+ } else "return" === n.method && n.abrupt("return", n.arg);
175
+ o = f;
176
+ var p = tryCatch(e, r, n);
177
+ if ("normal" === p.type) {
178
+ if (o = n.done ? s : l, p.arg === y) continue;
174
179
  return {
175
- value: record.arg,
176
- done: context.done
180
+ value: p.arg,
181
+ done: n.done
177
182
  };
178
183
  }
179
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
184
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
180
185
  }
181
186
  };
182
187
  }
183
- function maybeInvokeDelegate(delegate, context) {
184
- var methodName = context.method,
185
- method = delegate.iterator[methodName];
186
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
187
- var record = tryCatch(method, delegate.iterator, context.arg);
188
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
189
- var info = record.arg;
190
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
188
+ function maybeInvokeDelegate(e, r) {
189
+ var n = r.method,
190
+ o = e.iterator[n];
191
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
192
+ var i = tryCatch(o, e.iterator, r.arg);
193
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
194
+ var a = i.arg;
195
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
191
196
  }
192
- function pushTryEntry(locs) {
193
- var entry = {
194
- tryLoc: locs[0]
197
+ function pushTryEntry(t) {
198
+ var e = {
199
+ tryLoc: t[0]
195
200
  };
196
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
201
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
197
202
  }
198
- function resetTryEntry(entry) {
199
- var record = entry.completion || {};
200
- record.type = "normal", delete record.arg, entry.completion = record;
203
+ function resetTryEntry(t) {
204
+ var e = t.completion || {};
205
+ e.type = "normal", delete e.arg, t.completion = e;
201
206
  }
202
- function Context(tryLocsList) {
207
+ function Context(t) {
203
208
  this.tryEntries = [{
204
209
  tryLoc: "root"
205
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
210
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
206
211
  }
207
- function values(iterable) {
208
- if (iterable || "" === iterable) {
209
- var iteratorMethod = iterable[iteratorSymbol];
210
- if (iteratorMethod) return iteratorMethod.call(iterable);
211
- if ("function" == typeof iterable.next) return iterable;
212
- if (!isNaN(iterable.length)) {
213
- var i = -1,
214
- next = function next() {
215
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
216
- return next.value = undefined, next.done = !0, next;
212
+ function values(e) {
213
+ if (e || "" === e) {
214
+ var r = e[a];
215
+ if (r) return r.call(e);
216
+ if ("function" == typeof e.next) return e;
217
+ if (!isNaN(e.length)) {
218
+ var o = -1,
219
+ i = function next() {
220
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
221
+ return next.value = t, next.done = !0, next;
217
222
  };
218
- return next.next = next;
223
+ return i.next = i;
219
224
  }
220
225
  }
221
- throw new TypeError(typeof iterable + " is not iterable");
226
+ throw new TypeError(typeof e + " is not iterable");
222
227
  }
223
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
228
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
224
229
  value: GeneratorFunctionPrototype,
225
230
  configurable: !0
226
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
231
+ }), o(GeneratorFunctionPrototype, "constructor", {
227
232
  value: GeneratorFunction,
228
233
  configurable: !0
229
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
230
- var ctor = "function" == typeof genFun && genFun.constructor;
231
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
232
- }, exports.mark = function (genFun) {
233
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
234
- }, exports.awrap = function (arg) {
234
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
235
+ var e = "function" == typeof t && t.constructor;
236
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
237
+ }, e.mark = function (t) {
238
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
239
+ }, e.awrap = function (t) {
235
240
  return {
236
- __await: arg
241
+ __await: t
237
242
  };
238
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
243
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
239
244
  return this;
240
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
241
- void 0 === PromiseImpl && (PromiseImpl = Promise);
242
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
243
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
244
- return result.done ? result.value : iter.next();
245
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
246
+ void 0 === i && (i = Promise);
247
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
248
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
249
+ return t.done ? t.value : a.next();
245
250
  });
246
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
251
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
247
252
  return this;
248
- }), define(Gp, "toString", function () {
253
+ }), define(g, "toString", function () {
249
254
  return "[object Generator]";
250
- }), exports.keys = function (val) {
251
- var object = Object(val),
252
- keys = [];
253
- for (var key in object) keys.push(key);
254
- return keys.reverse(), function next() {
255
- for (; keys.length;) {
256
- var key = keys.pop();
257
- if (key in object) return next.value = key, next.done = !1, next;
255
+ }), e.keys = function (t) {
256
+ var e = Object(t),
257
+ r = [];
258
+ for (var n in e) r.push(n);
259
+ return r.reverse(), function next() {
260
+ for (; r.length;) {
261
+ var t = r.pop();
262
+ if (t in e) return next.value = t, next.done = !1, next;
258
263
  }
259
264
  return next.done = !0, next;
260
265
  };
261
- }, exports.values = values, Context.prototype = {
266
+ }, e.values = values, Context.prototype = {
262
267
  constructor: Context,
263
- reset: function (skipTempReset) {
264
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
268
+ reset: function (e) {
269
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
265
270
  },
266
271
  stop: function () {
267
272
  this.done = !0;
268
- var rootRecord = this.tryEntries[0].completion;
269
- if ("throw" === rootRecord.type) throw rootRecord.arg;
273
+ var t = this.tryEntries[0].completion;
274
+ if ("throw" === t.type) throw t.arg;
270
275
  return this.rval;
271
276
  },
272
- dispatchException: function (exception) {
273
- if (this.done) throw exception;
274
- var context = this;
275
- function handle(loc, caught) {
276
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
277
+ dispatchException: function (e) {
278
+ if (this.done) throw e;
279
+ var r = this;
280
+ function handle(n, o) {
281
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
277
282
  }
278
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
279
- var entry = this.tryEntries[i],
280
- record = entry.completion;
281
- if ("root" === entry.tryLoc) return handle("end");
282
- if (entry.tryLoc <= this.prev) {
283
- var hasCatch = hasOwn.call(entry, "catchLoc"),
284
- hasFinally = hasOwn.call(entry, "finallyLoc");
285
- if (hasCatch && hasFinally) {
286
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
287
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
288
- } else if (hasCatch) {
289
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
283
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
284
+ var i = this.tryEntries[o],
285
+ a = i.completion;
286
+ if ("root" === i.tryLoc) return handle("end");
287
+ if (i.tryLoc <= this.prev) {
288
+ var c = n.call(i, "catchLoc"),
289
+ u = n.call(i, "finallyLoc");
290
+ if (c && u) {
291
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
292
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
293
+ } else if (c) {
294
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
290
295
  } else {
291
- if (!hasFinally) throw new Error("try statement without catch or finally");
292
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
296
+ if (!u) throw new Error("try statement without catch or finally");
297
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
293
298
  }
294
299
  }
295
300
  }
296
301
  },
297
- abrupt: function (type, arg) {
298
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
299
- var entry = this.tryEntries[i];
300
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
301
- var finallyEntry = entry;
302
+ abrupt: function (t, e) {
303
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
304
+ var o = this.tryEntries[r];
305
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
306
+ var i = o;
302
307
  break;
303
308
  }
304
309
  }
305
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
306
- var record = finallyEntry ? finallyEntry.completion : {};
307
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
310
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
311
+ var a = i ? i.completion : {};
312
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
308
313
  },
309
- complete: function (record, afterLoc) {
310
- if ("throw" === record.type) throw record.arg;
311
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
314
+ complete: function (t, e) {
315
+ if ("throw" === t.type) throw t.arg;
316
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
312
317
  },
313
- finish: function (finallyLoc) {
314
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
315
- var entry = this.tryEntries[i];
316
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
318
+ finish: function (t) {
319
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
320
+ var r = this.tryEntries[e];
321
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
317
322
  }
318
323
  },
319
- catch: function (tryLoc) {
320
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
321
- var entry = this.tryEntries[i];
322
- if (entry.tryLoc === tryLoc) {
323
- var record = entry.completion;
324
- if ("throw" === record.type) {
325
- var thrown = record.arg;
326
- resetTryEntry(entry);
324
+ catch: function (t) {
325
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
326
+ var r = this.tryEntries[e];
327
+ if (r.tryLoc === t) {
328
+ var n = r.completion;
329
+ if ("throw" === n.type) {
330
+ var o = n.arg;
331
+ resetTryEntry(r);
327
332
  }
328
- return thrown;
333
+ return o;
329
334
  }
330
335
  }
331
336
  throw new Error("illegal catch attempt");
332
337
  },
333
- delegateYield: function (iterable, resultName, nextLoc) {
338
+ delegateYield: function (e, r, n) {
334
339
  return this.delegate = {
335
- iterator: values(iterable),
336
- resultName: resultName,
337
- nextLoc: nextLoc
338
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
340
+ iterator: values(e),
341
+ resultName: r,
342
+ nextLoc: n
343
+ }, "next" === this.method && (this.arg = t), y;
339
344
  }
340
- }, exports;
345
+ }, e;
341
346
  }
342
- function _typeof(obj) {
347
+ function _typeof(o) {
343
348
  "@babel/helpers - typeof";
344
349
 
345
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
346
- return typeof obj;
347
- } : function (obj) {
348
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
349
- }, _typeof(obj);
350
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
351
+ return typeof o;
352
+ } : function (o) {
353
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
354
+ }, _typeof(o);
350
355
  }
351
356
  function _defineProperty(obj, key, value) {
352
357
  key = _toPropertyKey(key);
@@ -12494,7 +12499,7 @@ tags.forEach(function (tagName) {
12494
12499
  });
12495
12500
 
12496
12501
  /**
12497
- * @mui/styled-engine v5.13.2
12502
+ * @mui/styled-engine v5.14.8
12498
12503
  *
12499
12504
  * @license MIT
12500
12505
  * This source code is licensed under the MIT license found in the
@@ -13136,10 +13141,20 @@ const width = style$1({
13136
13141
  const maxWidth = props => {
13137
13142
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
13138
13143
  const styleFromPropValue = propValue => {
13139
- var _props$theme;
13144
+ var _props$theme, _props$theme2;
13140
13145
  const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
13146
+ if (!breakpoint) {
13147
+ return {
13148
+ maxWidth: sizingTransform(propValue)
13149
+ };
13150
+ }
13151
+ if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
13152
+ return {
13153
+ maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
13154
+ };
13155
+ }
13141
13156
  return {
13142
- maxWidth: breakpoint || sizingTransform(propValue)
13157
+ maxWidth: breakpoint
13143
13158
  };
13144
13159
  };
13145
13160
  return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/sigmet-airmet",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "GeoWeb Sigmet/Airmet library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,26 +12,26 @@
12
12
  "main": "./index.esm.js",
13
13
  "dependencies": {
14
14
  "@mui/material": "5.12.0",
15
- "@mui/system": "5.14.5",
16
- "@opengeoweb/api": "6.1.0",
17
- "@opengeoweb/authentication": "6.1.0",
18
- "@opengeoweb/core": "6.1.0",
19
- "@opengeoweb/form-fields": "6.1.0",
20
- "@opengeoweb/shared": "6.1.0",
21
- "@opengeoweb/store": "6.1.0",
22
- "@opengeoweb/theme": "6.1.0",
23
- "@opengeoweb/webmap": "6.1.0",
24
- "@opengeoweb/webmap-react": "6.0.4",
15
+ "@mui/system": "5.14.8",
16
+ "@opengeoweb/api": "6.1.1",
17
+ "@opengeoweb/authentication": "6.1.1",
18
+ "@opengeoweb/core": "6.1.1",
19
+ "@opengeoweb/form-fields": "6.1.1",
20
+ "@opengeoweb/shared": "6.1.1",
21
+ "@opengeoweb/store": "6.1.1",
22
+ "@opengeoweb/theme": "6.1.1",
23
+ "@opengeoweb/webmap": "6.1.1",
24
+ "@opengeoweb/webmap-react": "6.1.1",
25
25
  "@redux-eggs/redux-toolkit": "2.2.0",
26
26
  "@redux-eggs/saga-extension": "2.2.0",
27
27
  "@reduxjs/toolkit": "1.9.5",
28
28
  "@turf/turf": "6.5.0",
29
- "axios": "1.4.0",
29
+ "axios": "1.5.0",
30
30
  "immer": "9.0.21",
31
31
  "lodash": "4.17.21",
32
32
  "moment": "2.29.4",
33
33
  "react": "18.2.0",
34
- "react-hook-form": "7.45.4",
34
+ "react-hook-form": "7.46.1",
35
35
  "react-redux": "8.1.2"
36
36
  },
37
37
  "peerDependencies": {}
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { mapTypes, layerTypes } from '@opengeoweb/store';
3
- import { MapViewLayerProps } from '@opengeoweb/core';
3
+ import { MapViewLayerProps } from '@opengeoweb/webmap-react';
4
4
  export interface MapViewGeoJsonProps {
5
5
  baseLayers?: layerTypes.Layer[];
6
6
  projection?: mapTypes.MapPreset['proj'];
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MapViewLayerProps } from '@opengeoweb/core';
2
+ import { MapViewLayerProps } from '@opengeoweb/webmap-react';
3
3
  import { ProductConfig } from '../../types';
4
4
  interface ProducFormLayoutProps {
5
5
  children: React.ReactNode;