@entur-partner/micro-frontend 2.6.2-alpha.0 → 2.6.2-alpha.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.
@@ -1,6 +1,31 @@
1
1
  import { assertIsDefined } from '@entur-partner/util';
2
2
  import React, { useContext, useState, useEffect } from 'react';
3
3
 
4
+ function asyncGeneratorStep(n, t, e, r, o, a, c) {
5
+ try {
6
+ var i = n[a](c),
7
+ u = i.value;
8
+ } catch (n) {
9
+ return void e(n);
10
+ }
11
+ i.done ? t(u) : Promise.resolve(u).then(r, o);
12
+ }
13
+ function _asyncToGenerator(n) {
14
+ return function () {
15
+ var t = this,
16
+ e = arguments;
17
+ return new Promise(function (r, o) {
18
+ var a = n.apply(t, e);
19
+ function _next(n) {
20
+ asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
21
+ }
22
+ function _throw(n) {
23
+ asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
24
+ }
25
+ _next(void 0);
26
+ });
27
+ };
28
+ }
4
29
  function _construct(t, e, r) {
5
30
  if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
6
31
  var o = [null];
@@ -8,6 +33,30 @@ function _construct(t, e, r) {
8
33
  var p = new (t.bind.apply(t, o))();
9
34
  return r && _setPrototypeOf(p, r.prototype), p;
10
35
  }
36
+ function _extends() {
37
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
38
+ for (var e = 1; e < arguments.length; e++) {
39
+ var t = arguments[e];
40
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
41
+ }
42
+ return n;
43
+ }, _extends.apply(null, arguments);
44
+ }
45
+ function _getPrototypeOf(t) {
46
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
47
+ return t.__proto__ || Object.getPrototypeOf(t);
48
+ }, _getPrototypeOf(t);
49
+ }
50
+ function _inheritsLoose(t, o) {
51
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
52
+ }
53
+ function _isNativeFunction(t) {
54
+ try {
55
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
56
+ } catch (n) {
57
+ return "function" == typeof t;
58
+ }
59
+ }
11
60
  function _isNativeReflectConstruct() {
12
61
  try {
13
62
  var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
@@ -16,413 +65,149 @@ function _isNativeReflectConstruct() {
16
65
  return !!t;
17
66
  })();
18
67
  }
19
- function _regeneratorRuntime() {
20
- _regeneratorRuntime = function () {
21
- return e;
22
- };
23
- var t,
24
- e = {},
25
- r = Object.prototype,
26
- n = r.hasOwnProperty,
27
- o = Object.defineProperty || function (t, e, r) {
28
- t[e] = r.value;
29
- },
30
- i = "function" == typeof Symbol ? Symbol : {},
31
- a = i.iterator || "@@iterator",
32
- c = i.asyncIterator || "@@asyncIterator",
33
- u = i.toStringTag || "@@toStringTag";
34
- function define(t, e, r) {
35
- return Object.defineProperty(t, e, {
36
- value: r,
37
- enumerable: !0,
38
- configurable: !0,
39
- writable: !0
40
- }), t[e];
41
- }
42
- try {
43
- define({}, "");
44
- } catch (t) {
45
- define = function (t, e, r) {
46
- return t[e] = r;
47
- };
48
- }
49
- function wrap(t, e, r, n) {
50
- var i = e && e.prototype instanceof Generator ? e : Generator,
51
- a = Object.create(i.prototype),
52
- c = new Context(n || []);
53
- return o(a, "_invoke", {
54
- value: makeInvokeMethod(t, r, c)
55
- }), a;
56
- }
57
- function tryCatch(t, e, r) {
58
- try {
59
- return {
60
- type: "normal",
61
- arg: t.call(e, r)
62
- };
63
- } catch (t) {
64
- return {
65
- type: "throw",
66
- arg: t
67
- };
68
- }
69
- }
70
- e.wrap = wrap;
71
- var h = "suspendedStart",
72
- l = "suspendedYield",
73
- f = "executing",
74
- s = "completed",
75
- y = {};
76
- function Generator() {}
77
- function GeneratorFunction() {}
78
- function GeneratorFunctionPrototype() {}
79
- var p = {};
80
- define(p, a, function () {
81
- return this;
82
- });
83
- var d = Object.getPrototypeOf,
84
- v = d && d(d(values([])));
85
- v && v !== r && n.call(v, a) && (p = v);
86
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
87
- function defineIteratorMethods(t) {
88
- ["next", "throw", "return"].forEach(function (e) {
89
- define(t, e, function (t) {
90
- return this._invoke(e, t);
91
- });
92
- });
68
+ function _objectWithoutPropertiesLoose(r, e) {
69
+ if (null == r) return {};
70
+ var t = {};
71
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
72
+ if (-1 !== e.indexOf(n)) continue;
73
+ t[n] = r[n];
93
74
  }
94
- function AsyncIterator(t, e) {
95
- function invoke(r, o, i, a) {
96
- var c = tryCatch(t[r], t, o);
97
- if ("throw" !== c.type) {
98
- var u = c.arg,
99
- h = u.value;
100
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
101
- invoke("next", t, i, a);
102
- }, function (t) {
103
- invoke("throw", t, i, a);
104
- }) : e.resolve(h).then(function (t) {
105
- u.value = t, i(u);
106
- }, function (t) {
107
- return invoke("throw", t, i, a);
108
- });
109
- }
110
- a(c.arg);
111
- }
112
- var r;
113
- o(this, "_invoke", {
114
- value: function (t, n) {
115
- function callInvokeWithMethodAndArg() {
116
- return new e(function (e, r) {
117
- invoke(t, n, e, r);
118
- });
75
+ return t;
76
+ }
77
+ function _regenerator() {
78
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
79
+ var e,
80
+ t,
81
+ r = "function" == typeof Symbol ? Symbol : {},
82
+ n = r.iterator || "@@iterator",
83
+ o = r.toStringTag || "@@toStringTag";
84
+ function i(r, n, o, i) {
85
+ var c = n && n.prototype instanceof Generator ? n : Generator,
86
+ u = Object.create(c.prototype);
87
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
88
+ var i,
89
+ c,
90
+ u,
91
+ f = 0,
92
+ p = o || [],
93
+ y = !1,
94
+ G = {
95
+ p: 0,
96
+ n: 0,
97
+ v: e,
98
+ a: d,
99
+ f: d.bind(e, 4),
100
+ d: function (t, r) {
101
+ return i = t, c = 0, u = e, G.n = r, a;
102
+ }
103
+ };
104
+ function d(r, n) {
105
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
106
+ var o,
107
+ i = p[t],
108
+ d = G.p,
109
+ l = i[2];
110
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
119
111
  }
120
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
112
+ if (o || r > 1) return a;
113
+ throw y = !0, n;
121
114
  }
122
- });
123
- }
124
- function makeInvokeMethod(e, r, n) {
125
- var o = h;
126
- return function (i, a) {
127
- if (o === f) throw Error("Generator is already running");
128
- if (o === s) {
129
- if ("throw" === i) throw a;
115
+ return function (o, p, l) {
116
+ if (f > 1) throw TypeError("Generator is already running");
117
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
118
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
119
+ try {
120
+ if (f = 2, i) {
121
+ if (c || (o = "next"), t = i[o]) {
122
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
123
+ if (!t.done) return t;
124
+ u = t.value, c < 2 && (c = 0);
125
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
126
+ i = e;
127
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
128
+ } catch (t) {
129
+ i = e, c = 1, u = t;
130
+ } finally {
131
+ f = 1;
132
+ }
133
+ }
130
134
  return {
131
135
  value: t,
132
- done: !0
136
+ done: y
133
137
  };
134
- }
135
- for (n.method = i, n.arg = a;;) {
136
- var c = n.delegate;
137
- if (c) {
138
- var u = maybeInvokeDelegate(c, n);
139
- if (u) {
140
- if (u === y) continue;
141
- return u;
142
- }
143
- }
144
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
145
- if (o === h) throw o = s, n.arg;
146
- n.dispatchException(n.arg);
147
- } else "return" === n.method && n.abrupt("return", n.arg);
148
- o = f;
149
- var p = tryCatch(e, r, n);
150
- if ("normal" === p.type) {
151
- if (o = n.done ? s : l, p.arg === y) continue;
152
- return {
153
- value: p.arg,
154
- done: n.done
155
- };
156
- }
157
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
158
- }
159
- };
160
- }
161
- function maybeInvokeDelegate(e, r) {
162
- var n = r.method,
163
- o = e.iterator[n];
164
- 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;
165
- var i = tryCatch(o, e.iterator, r.arg);
166
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
167
- var a = i.arg;
168
- 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);
169
- }
170
- function pushTryEntry(t) {
171
- var e = {
172
- tryLoc: t[0]
173
- };
174
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
175
- }
176
- function resetTryEntry(t) {
177
- var e = t.completion || {};
178
- e.type = "normal", delete e.arg, t.completion = e;
179
- }
180
- function Context(t) {
181
- this.tryEntries = [{
182
- tryLoc: "root"
183
- }], t.forEach(pushTryEntry, this), this.reset(!0);
138
+ };
139
+ }(r, o, i), !0), u;
184
140
  }
185
- function values(e) {
186
- if (e || "" === e) {
187
- var r = e[a];
188
- if (r) return r.call(e);
189
- if ("function" == typeof e.next) return e;
190
- if (!isNaN(e.length)) {
191
- var o = -1,
192
- i = function next() {
193
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
194
- return next.value = t, next.done = !0, next;
195
- };
196
- return i.next = i;
197
- }
198
- }
199
- throw new TypeError(typeof e + " is not iterable");
141
+ var a = {};
142
+ function Generator() {}
143
+ function GeneratorFunction() {}
144
+ function GeneratorFunctionPrototype() {}
145
+ t = Object.getPrototypeOf;
146
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
147
+ return this;
148
+ }), t),
149
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
150
+ function f(e) {
151
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
200
152
  }
201
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
202
- value: GeneratorFunctionPrototype,
203
- configurable: !0
204
- }), o(GeneratorFunctionPrototype, "constructor", {
205
- value: GeneratorFunction,
206
- configurable: !0
207
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
208
- var e = "function" == typeof t && t.constructor;
209
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
210
- }, e.mark = function (t) {
211
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
212
- }, e.awrap = function (t) {
213
- return {
214
- __await: t
215
- };
216
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
217
- return this;
218
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
219
- void 0 === i && (i = Promise);
220
- var a = new AsyncIterator(wrap(t, r, n, o), i);
221
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
222
- return t.done ? t.value : a.next();
223
- });
224
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
153
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
225
154
  return this;
226
- }), define(g, "toString", function () {
155
+ }), _regeneratorDefine(u, "toString", function () {
227
156
  return "[object Generator]";
228
- }), e.keys = function (t) {
229
- var e = Object(t),
230
- r = [];
231
- for (var n in e) r.push(n);
232
- return r.reverse(), function next() {
233
- for (; r.length;) {
234
- var t = r.pop();
235
- if (t in e) return next.value = t, next.done = !1, next;
236
- }
237
- return next.done = !0, next;
157
+ }), (_regenerator = function () {
158
+ return {
159
+ w: i,
160
+ m: f
238
161
  };
239
- }, e.values = values, Context.prototype = {
240
- constructor: Context,
241
- reset: function (e) {
242
- 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);
243
- },
244
- stop: function () {
245
- this.done = !0;
246
- var t = this.tryEntries[0].completion;
247
- if ("throw" === t.type) throw t.arg;
248
- return this.rval;
249
- },
250
- dispatchException: function (e) {
251
- if (this.done) throw e;
252
- var r = this;
253
- function handle(n, o) {
254
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
255
- }
256
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
257
- var i = this.tryEntries[o],
258
- a = i.completion;
259
- if ("root" === i.tryLoc) return handle("end");
260
- if (i.tryLoc <= this.prev) {
261
- var c = n.call(i, "catchLoc"),
262
- u = n.call(i, "finallyLoc");
263
- if (c && u) {
264
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
265
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
266
- } else if (c) {
267
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
268
- } else {
269
- if (!u) throw Error("try statement without catch or finally");
270
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
271
- }
272
- }
273
- }
274
- },
275
- abrupt: function (t, e) {
276
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
277
- var o = this.tryEntries[r];
278
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
279
- var i = o;
280
- break;
281
- }
282
- }
283
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
284
- var a = i ? i.completion : {};
285
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
286
- },
287
- complete: function (t, e) {
288
- if ("throw" === t.type) throw t.arg;
289
- 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;
290
- },
291
- finish: function (t) {
292
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
293
- var r = this.tryEntries[e];
294
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
295
- }
296
- },
297
- catch: function (t) {
298
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
299
- var r = this.tryEntries[e];
300
- if (r.tryLoc === t) {
301
- var n = r.completion;
302
- if ("throw" === n.type) {
303
- var o = n.arg;
304
- resetTryEntry(r);
305
- }
306
- return o;
307
- }
308
- }
309
- throw Error("illegal catch attempt");
310
- },
311
- delegateYield: function (e, r, n) {
312
- return this.delegate = {
313
- iterator: values(e),
314
- resultName: r,
315
- nextLoc: n
316
- }, "next" === this.method && (this.arg = t), y;
317
- }
318
- }, e;
162
+ })();
319
163
  }
320
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
164
+ function _regeneratorDefine(e, r, n, t) {
165
+ var i = Object.defineProperty;
321
166
  try {
322
- var info = gen[key](arg);
323
- var value = info.value;
324
- } catch (error) {
325
- reject(error);
326
- return;
327
- }
328
- if (info.done) {
329
- resolve(value);
330
- } else {
331
- Promise.resolve(value).then(_next, _throw);
167
+ i({}, "", {});
168
+ } catch (e) {
169
+ i = 0;
332
170
  }
333
- }
334
- function _asyncToGenerator(fn) {
335
- return function () {
336
- var self = this,
337
- args = arguments;
338
- return new Promise(function (resolve, reject) {
339
- var gen = fn.apply(self, args);
340
- function _next(value) {
341
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
342
- }
343
- function _throw(err) {
344
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
345
- }
346
- _next(undefined);
347
- });
348
- };
349
- }
350
- function _extends() {
351
- _extends = Object.assign ? Object.assign.bind() : function (target) {
352
- for (var i = 1; i < arguments.length; i++) {
353
- var source = arguments[i];
354
- for (var key in source) {
355
- if (Object.prototype.hasOwnProperty.call(source, key)) {
356
- target[key] = source[key];
357
- }
358
- }
171
+ _regeneratorDefine = function (e, r, n, t) {
172
+ function o(r, n) {
173
+ _regeneratorDefine(e, r, function (e) {
174
+ return this._invoke(r, n, e);
175
+ });
359
176
  }
360
- return target;
361
- };
362
- return _extends.apply(this, arguments);
363
- }
364
- function _inheritsLoose(subClass, superClass) {
365
- subClass.prototype = Object.create(superClass.prototype);
366
- subClass.prototype.constructor = subClass;
367
- _setPrototypeOf(subClass, superClass);
368
- }
369
- function _getPrototypeOf(o) {
370
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
371
- return o.__proto__ || Object.getPrototypeOf(o);
372
- };
373
- return _getPrototypeOf(o);
177
+ r ? i ? i(e, r, {
178
+ value: n,
179
+ enumerable: !t,
180
+ configurable: !t,
181
+ writable: !t
182
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
183
+ }, _regeneratorDefine(e, r, n, t);
374
184
  }
375
- function _setPrototypeOf(o, p) {
376
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
377
- o.__proto__ = p;
378
- return o;
379
- };
380
- return _setPrototypeOf(o, p);
185
+ function _setPrototypeOf(t, e) {
186
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
187
+ return t.__proto__ = e, t;
188
+ }, _setPrototypeOf(t, e);
381
189
  }
382
- function _isNativeFunction(fn) {
383
- try {
384
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
385
- } catch (e) {
386
- return typeof fn === "function";
387
- }
388
- }
389
- function _wrapNativeSuper(Class) {
390
- var _cache = typeof Map === "function" ? new Map() : undefined;
391
- _wrapNativeSuper = function _wrapNativeSuper(Class) {
392
- if (Class === null || !_isNativeFunction(Class)) return Class;
393
- if (typeof Class !== "function") {
394
- throw new TypeError("Super expression must either be null or a function");
395
- }
396
- if (typeof _cache !== "undefined") {
397
- if (_cache.has(Class)) return _cache.get(Class);
398
- _cache.set(Class, Wrapper);
190
+ function _wrapNativeSuper(t) {
191
+ var r = "function" == typeof Map ? new Map() : void 0;
192
+ return _wrapNativeSuper = function (t) {
193
+ if (null === t || !_isNativeFunction(t)) return t;
194
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
195
+ if (void 0 !== r) {
196
+ if (r.has(t)) return r.get(t);
197
+ r.set(t, Wrapper);
399
198
  }
400
199
  function Wrapper() {
401
- return _construct(Class, arguments, _getPrototypeOf(this).constructor);
200
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
402
201
  }
403
- Wrapper.prototype = Object.create(Class.prototype, {
202
+ return Wrapper.prototype = Object.create(t.prototype, {
404
203
  constructor: {
405
204
  value: Wrapper,
406
- enumerable: false,
407
- writable: true,
408
- configurable: true
205
+ enumerable: !1,
206
+ writable: !0,
207
+ configurable: !0
409
208
  }
410
- });
411
- return _setPrototypeOf(Wrapper, Class);
412
- };
413
- return _wrapNativeSuper(Class);
414
- }
415
- function _objectWithoutPropertiesLoose(source, excluded) {
416
- if (source == null) return {};
417
- var target = {};
418
- var sourceKeys = Object.keys(source);
419
- var key, i;
420
- for (i = 0; i < sourceKeys.length; i++) {
421
- key = sourceKeys[i];
422
- if (excluded.indexOf(key) >= 0) continue;
423
- target[key] = source[key];
424
- }
425
- return target;
209
+ }), _setPrototypeOf(Wrapper, t);
210
+ }, _wrapNativeSuper(t);
426
211
  }
427
212
 
428
213
  var _excluded = ["children", "organisationId", "getPermissions"];
@@ -455,28 +240,27 @@ var AppProvider = function AppProvider(_ref) {
455
240
  return _fetchData.apply(this, arguments);
456
241
  }
457
242
  function _fetchData() {
458
- _fetchData = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
459
- var fetchedPermissions;
460
- return _regeneratorRuntime().wrap(function _callee$(_context) {
461
- while (1) switch (_context.prev = _context.next) {
243
+ _fetchData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
244
+ var fetchedPermissions, _t;
245
+ return _regenerator().w(function (_context) {
246
+ while (1) switch (_context.p = _context.n) {
462
247
  case 0:
463
- _context.prev = 0;
464
- _context.next = 3;
248
+ _context.p = 0;
249
+ _context.n = 1;
465
250
  return getPermissions();
466
- case 3:
467
- fetchedPermissions = _context.sent;
251
+ case 1:
252
+ fetchedPermissions = _context.v;
468
253
  setPermissions(fetchedPermissions);
469
- _context.next = 10;
254
+ _context.n = 3;
470
255
  break;
471
- case 7:
472
- _context.prev = 7;
473
- _context.t0 = _context["catch"](0);
474
- console.error("Fetching permissions with the provided getPermissions function failed in AppProvider with the following error:", _context.t0);
475
- case 10:
476
- case "end":
477
- return _context.stop();
256
+ case 2:
257
+ _context.p = 2;
258
+ _t = _context.v;
259
+ console.error("Fetching permissions with the provided getPermissions function failed in AppProvider with the following error:", _t);
260
+ case 3:
261
+ return _context.a(2);
478
262
  }
479
- }, _callee, null, [[0, 7]]);
263
+ }, _callee, null, [[0, 2]]);
480
264
  }));
481
265
  return _fetchData.apply(this, arguments);
482
266
  }
@@ -511,7 +295,7 @@ var RouteChangeEvent = /*#__PURE__*/function (_CustomEvent) {
511
295
  }
512
296
  _inheritsLoose(RouteChangeEvent, _CustomEvent);
513
297
  return RouteChangeEvent;
514
- }( /*#__PURE__*/_wrapNativeSuper(CustomEvent));
298
+ }(/*#__PURE__*/_wrapNativeSuper(CustomEvent));
515
299
 
516
300
  /*global EventListener*/
517
301
  function registerMicroFrontend(config) {