@opengeoweb/workspace 12.10.0 → 12.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -373,6 +373,9 @@ var workspaceTranslations = {
373
373
  nl: nl
374
374
  };
375
375
 
376
+ function _OverloadYield(e, d) {
377
+ this.v = e, this.k = d;
378
+ }
376
379
  function asyncGeneratorStep(n, t, e, r, o, a, c) {
377
380
  try {
378
381
  var i = n[a](c),
@@ -410,306 +413,248 @@ function _objectWithoutPropertiesLoose(r, e) {
410
413
  }
411
414
  return t;
412
415
  }
413
- function _regeneratorRuntime() {
414
- _regeneratorRuntime = function () {
415
- return e;
416
- };
417
- var t,
418
- e = {},
419
- r = Object.prototype,
420
- n = r.hasOwnProperty,
421
- o = Object.defineProperty || function (t, e, r) {
422
- t[e] = r.value;
423
- },
424
- i = "function" == typeof Symbol ? Symbol : {},
425
- a = i.iterator || "@@iterator",
426
- c = i.asyncIterator || "@@asyncIterator",
427
- u = i.toStringTag || "@@toStringTag";
428
- function define(t, e, r) {
429
- return Object.defineProperty(t, e, {
430
- value: r,
431
- enumerable: true,
432
- configurable: true,
433
- writable: true
434
- }), t[e];
435
- }
436
- try {
437
- define({}, "");
438
- } catch (t) {
439
- define = function (t, e, r) {
440
- return t[e] = r;
441
- };
442
- }
443
- function wrap(t, e, r, n) {
444
- var i = e && e.prototype instanceof Generator ? e : Generator,
445
- a = Object.create(i.prototype),
446
- c = new Context(n || []);
447
- return o(a, "_invoke", {
448
- value: makeInvokeMethod(t, r, c)
449
- }), a;
450
- }
451
- function tryCatch(t, e, r) {
452
- try {
453
- return {
454
- type: "normal",
455
- arg: t.call(e, r)
456
- };
457
- } catch (t) {
458
- return {
459
- type: "throw",
460
- arg: t
416
+ function _regenerator() {
417
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
418
+ var e,
419
+ t,
420
+ r = "function" == typeof Symbol ? Symbol : {},
421
+ n = r.iterator || "@@iterator",
422
+ o = r.toStringTag || "@@toStringTag";
423
+ function i(r, n, o, i) {
424
+ var c = n && n.prototype instanceof Generator ? n : Generator,
425
+ u = Object.create(c.prototype);
426
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
427
+ var i,
428
+ c,
429
+ u,
430
+ f = 0,
431
+ p = o || [],
432
+ y = false,
433
+ G = {
434
+ p: 0,
435
+ n: 0,
436
+ v: e,
437
+ a: d,
438
+ f: d.bind(e, 4),
439
+ d: function (t, r) {
440
+ return i = t, c = 0, u = e, G.n = r, a;
441
+ }
442
+ };
443
+ function d(r, n) {
444
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
445
+ var o,
446
+ i = p[t],
447
+ d = G.p,
448
+ l = i[2];
449
+ 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));
450
+ }
451
+ if (o || r > 1) return a;
452
+ throw y = true, n;
453
+ }
454
+ return function (o, p, l) {
455
+ if (f > 1) throw TypeError("Generator is already running");
456
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
457
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
458
+ try {
459
+ if (f = 2, i) {
460
+ if (c || (o = "next"), t = i[o]) {
461
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
462
+ if (!t.done) return t;
463
+ u = t.value, c < 2 && (c = 0);
464
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
465
+ i = e;
466
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
467
+ } catch (t) {
468
+ i = e, c = 1, u = t;
469
+ } finally {
470
+ f = 1;
471
+ }
472
+ }
473
+ return {
474
+ value: t,
475
+ done: y
476
+ };
461
477
  };
462
- }
478
+ }(r, o, i), true), u;
463
479
  }
464
- e.wrap = wrap;
465
- var h = "suspendedStart",
466
- l = "suspendedYield",
467
- f = "executing",
468
- s = "completed",
469
- y = {};
480
+ var a = {};
470
481
  function Generator() {}
471
482
  function GeneratorFunction() {}
472
483
  function GeneratorFunctionPrototype() {}
473
- var p = {};
474
- define(p, a, function () {
484
+ t = Object.getPrototypeOf;
485
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
486
+ return this;
487
+ }), t),
488
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
489
+ function f(e) {
490
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
491
+ }
492
+ 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 () {
475
493
  return this;
494
+ }), _regeneratorDefine(u, "toString", function () {
495
+ return "[object Generator]";
496
+ }), (_regenerator = function () {
497
+ return {
498
+ w: i,
499
+ m: f
500
+ };
501
+ })();
502
+ }
503
+ function _regeneratorAsync(n, e, r, t, o) {
504
+ var a = _regeneratorAsyncGen(n, e, r, t, o);
505
+ return a.next().then(function (n) {
506
+ return n.done ? n.value : a.next();
476
507
  });
477
- var d = Object.getPrototypeOf,
478
- v = d && d(d(values([])));
479
- v && v !== r && n.call(v, a) && (p = v);
480
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
481
- function defineIteratorMethods(t) {
482
- ["next", "throw", "return"].forEach(function (e) {
483
- define(t, e, function (t) {
484
- return this._invoke(e, t);
508
+ }
509
+ function _regeneratorAsyncGen(r, e, t, o, n) {
510
+ return new _regeneratorAsyncIterator(_regenerator().w(r, e, t, o), n || Promise);
511
+ }
512
+ function _regeneratorAsyncIterator(t, e) {
513
+ function n(r, o, i, f) {
514
+ try {
515
+ var c = t[r](o),
516
+ u = c.value;
517
+ return u instanceof _OverloadYield ? e.resolve(u.v).then(function (t) {
518
+ n("next", t, i, f);
519
+ }, function (t) {
520
+ n("throw", t, i, f);
521
+ }) : e.resolve(u).then(function (t) {
522
+ c.value = t, i(c);
523
+ }, function (t) {
524
+ return n("throw", t, i, f);
485
525
  });
486
- });
526
+ } catch (t) {
527
+ f(t);
528
+ }
529
+ }
530
+ var r;
531
+ this.next || (_regeneratorDefine(_regeneratorAsyncIterator.prototype), _regeneratorDefine(_regeneratorAsyncIterator.prototype, "function" == typeof Symbol && Symbol.asyncIterator || "@asyncIterator", function () {
532
+ return this;
533
+ })), _regeneratorDefine(this, "_invoke", function (t, o, i) {
534
+ function f() {
535
+ return new e(function (e, r) {
536
+ n(t, i, e, r);
537
+ });
538
+ }
539
+ return r = r ? r.then(f, f) : f();
540
+ }, true);
541
+ }
542
+ function _regeneratorDefine(e, r, n, t) {
543
+ var i = Object.defineProperty;
544
+ try {
545
+ i({}, "", {});
546
+ } catch (e) {
547
+ i = 0;
487
548
  }
488
- function AsyncIterator(t, e) {
489
- function invoke(r, o, i, a) {
490
- var c = tryCatch(t[r], t, o);
491
- if ("throw" !== c.type) {
492
- var u = c.arg,
493
- h = u.value;
494
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
495
- invoke("next", t, i, a);
496
- }, function (t) {
497
- invoke("throw", t, i, a);
498
- }) : e.resolve(h).then(function (t) {
499
- u.value = t, i(u);
500
- }, function (t) {
501
- return invoke("throw", t, i, a);
549
+ _regeneratorDefine = function (e, r, n, t) {
550
+ if (r) i ? i(e, r, {
551
+ value: n,
552
+ enumerable: !t,
553
+ configurable: !t,
554
+ writable: !t
555
+ }) : e[r] = n;else {
556
+ function o(r, n) {
557
+ _regeneratorDefine(e, r, function (e) {
558
+ return this._invoke(r, n, e);
502
559
  });
503
560
  }
504
- a(c.arg);
561
+ o("next", 0), o("throw", 1), o("return", 2);
505
562
  }
506
- var r;
507
- o(this, "_invoke", {
508
- value: function (t, n) {
509
- function callInvokeWithMethodAndArg() {
510
- return new e(function (e, r) {
511
- invoke(t, n, e, r);
512
- });
513
- }
514
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
515
- }
516
- });
517
- }
518
- function makeInvokeMethod(e, r, n) {
519
- var o = h;
520
- return function (i, a) {
521
- if (o === f) throw Error("Generator is already running");
522
- if (o === s) {
523
- if ("throw" === i) throw a;
524
- return {
525
- value: t,
526
- done: true
563
+ }, _regeneratorDefine(e, r, n, t);
564
+ }
565
+ function _regeneratorKeys(e) {
566
+ var n = Object(e),
567
+ r = [];
568
+ for (var t in n) r.unshift(t);
569
+ return function e() {
570
+ for (; r.length;) if ((t = r.pop()) in n) return e.value = t, e.done = false, e;
571
+ return e.done = true, e;
572
+ };
573
+ }
574
+ function _regeneratorValues(e) {
575
+ if (null != e) {
576
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
577
+ r = 0;
578
+ if (t) return t.call(e);
579
+ if ("function" == typeof e.next) return e;
580
+ if (!isNaN(e.length)) return {
581
+ next: function () {
582
+ return e && r >= e.length && (e = void 0), {
583
+ value: e && e[r++],
584
+ done: !e
527
585
  };
528
586
  }
529
- for (n.method = i, n.arg = a;;) {
530
- var c = n.delegate;
531
- if (c) {
532
- var u = maybeInvokeDelegate(c, n);
533
- if (u) {
534
- if (u === y) continue;
535
- return u;
536
- }
537
- }
538
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
539
- if (o === h) throw o = s, n.arg;
540
- n.dispatchException(n.arg);
541
- } else "return" === n.method && n.abrupt("return", n.arg);
542
- o = f;
543
- var p = tryCatch(e, r, n);
544
- if ("normal" === p.type) {
545
- if (o = n.done ? s : l, p.arg === y) continue;
546
- return {
547
- value: p.arg,
548
- done: n.done
549
- };
550
- }
551
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
552
- }
553
- };
554
- }
555
- function maybeInvokeDelegate(e, r) {
556
- var n = r.method,
557
- o = e.iterator[n];
558
- 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;
559
- var i = tryCatch(o, e.iterator, r.arg);
560
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
561
- var a = i.arg;
562
- 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);
563
- }
564
- function pushTryEntry(t) {
565
- var e = {
566
- tryLoc: t[0]
567
587
  };
568
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
569
588
  }
570
- function resetTryEntry(t) {
571
- var e = t.completion || {};
572
- e.type = "normal", delete e.arg, t.completion = e;
573
- }
574
- function Context(t) {
575
- this.tryEntries = [{
576
- tryLoc: "root"
577
- }], t.forEach(pushTryEntry, this), this.reset(true);
589
+ throw new TypeError(typeof e + " is not iterable");
590
+ }
591
+ function _regeneratorRuntime() {
592
+
593
+ var r = _regenerator(),
594
+ e = r.m(_regeneratorRuntime),
595
+ t = (Object.getPrototypeOf ? Object.getPrototypeOf(e) : e.__proto__).constructor;
596
+ function n(r) {
597
+ var e = "function" == typeof r && r.constructor;
598
+ return !!e && (e === t || "GeneratorFunction" === (e.displayName || e.name));
578
599
  }
579
- function values(e) {
580
- if (e || "" === e) {
581
- var r = e[a];
582
- if (r) return r.call(e);
583
- if ("function" == typeof e.next) return e;
584
- if (!isNaN(e.length)) {
585
- var o = -1,
586
- i = function next() {
587
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
588
- return next.value = t, next.done = true, next;
589
- };
590
- return i.next = i;
600
+ var o = {
601
+ throw: 1,
602
+ return: 2,
603
+ break: 3,
604
+ continue: 3
605
+ };
606
+ function a(r) {
607
+ var e, t;
608
+ return function (n) {
609
+ e || (e = {
610
+ stop: function () {
611
+ return t(n.a, 2);
612
+ },
613
+ catch: function () {
614
+ return n.v;
615
+ },
616
+ abrupt: function (r, e) {
617
+ return t(n.a, o[r], e);
618
+ },
619
+ delegateYield: function (r, o, a) {
620
+ return e.resultName = o, t(n.d, _regeneratorValues(r), a);
621
+ },
622
+ finish: function (r) {
623
+ return t(n.f, r);
624
+ }
625
+ }, t = function (r, t, o) {
626
+ n.p = e.prev, n.n = e.next;
627
+ try {
628
+ return r(t, o);
629
+ } finally {
630
+ e.next = n.n;
631
+ }
632
+ }), e.resultName && (e[e.resultName] = n.v, e.resultName = void 0), e.sent = n.v, e.next = n.n;
633
+ try {
634
+ return r.call(this, e);
635
+ } finally {
636
+ n.p = e.prev, n.n = e.next;
591
637
  }
592
- }
593
- throw new TypeError(typeof e + " is not iterable");
638
+ };
594
639
  }
595
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
596
- value: GeneratorFunctionPrototype,
597
- configurable: true
598
- }), o(GeneratorFunctionPrototype, "constructor", {
599
- value: GeneratorFunction,
600
- configurable: true
601
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
602
- var e = "function" == typeof t && t.constructor;
603
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
604
- }, e.mark = function (t) {
605
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
606
- }, e.awrap = function (t) {
640
+ return (_regeneratorRuntime = function () {
607
641
  return {
608
- __await: t
609
- };
610
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
611
- return this;
612
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
613
- void 0 === i && (i = Promise);
614
- var a = new AsyncIterator(wrap(t, r, n, o), i);
615
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
616
- return t.done ? t.value : a.next();
617
- });
618
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
619
- return this;
620
- }), define(g, "toString", function () {
621
- return "[object Generator]";
622
- }), e.keys = function (t) {
623
- var e = Object(t),
624
- r = [];
625
- for (var n in e) r.push(n);
626
- return r.reverse(), function next() {
627
- for (; r.length;) {
628
- var t = r.pop();
629
- if (t in e) return next.value = t, next.done = false, next;
630
- }
631
- return next.done = true, next;
642
+ wrap: function (e, t, n, o) {
643
+ return r.w(a(e), t, n, o && o.reverse());
644
+ },
645
+ isGeneratorFunction: n,
646
+ mark: r.m,
647
+ awrap: function (r, e) {
648
+ return new _OverloadYield(r, e);
649
+ },
650
+ AsyncIterator: _regeneratorAsyncIterator,
651
+ async: function (r, e, t, o, u) {
652
+ return (n(e) ? _regeneratorAsyncGen : _regeneratorAsync)(a(r), e, t, o, u);
653
+ },
654
+ keys: _regeneratorKeys,
655
+ values: _regeneratorValues
632
656
  };
633
- }, e.values = values, Context.prototype = {
634
- constructor: Context,
635
- reset: function (e) {
636
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, 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);
637
- },
638
- stop: function () {
639
- this.done = true;
640
- var t = this.tryEntries[0].completion;
641
- if ("throw" === t.type) throw t.arg;
642
- return this.rval;
643
- },
644
- dispatchException: function (e) {
645
- if (this.done) throw e;
646
- var r = this;
647
- function handle(n, o) {
648
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
649
- }
650
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
651
- var i = this.tryEntries[o],
652
- a = i.completion;
653
- if ("root" === i.tryLoc) return handle("end");
654
- if (i.tryLoc <= this.prev) {
655
- var c = n.call(i, "catchLoc"),
656
- u = n.call(i, "finallyLoc");
657
- if (c && u) {
658
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
659
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
660
- } else if (c) {
661
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
662
- } else {
663
- if (!u) throw Error("try statement without catch or finally");
664
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
665
- }
666
- }
667
- }
668
- },
669
- abrupt: function (t, e) {
670
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
671
- var o = this.tryEntries[r];
672
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
673
- var i = o;
674
- break;
675
- }
676
- }
677
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
678
- var a = i ? i.completion : {};
679
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
680
- },
681
- complete: function (t, e) {
682
- if ("throw" === t.type) throw t.arg;
683
- 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;
684
- },
685
- finish: function (t) {
686
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
687
- var r = this.tryEntries[e];
688
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
689
- }
690
- },
691
- catch: function (t) {
692
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
693
- var r = this.tryEntries[e];
694
- if (r.tryLoc === t) {
695
- var n = r.completion;
696
- if ("throw" === n.type) {
697
- var o = n.arg;
698
- resetTryEntry(r);
699
- }
700
- return o;
701
- }
702
- }
703
- throw Error("illegal catch attempt");
704
- },
705
- delegateYield: function (e, r, n) {
706
- return this.delegate = {
707
- iterator: values(e),
708
- resultName: r,
709
- nextLoc: n
710
- }, "next" === this.method && (this.arg = t), y;
711
- }
712
- }, e;
657
+ })();
713
658
  }
714
659
 
715
660
  /* *
@@ -870,8 +815,8 @@ var getErrorMessage = function getErrorMessage(error) {
870
815
  return suffix ? prefix + ": " + suffix : prefix;
871
816
  };
872
817
  var updateViewPresets = function updateViewPresets(saveViewPreset, getViewPresetEntity, data, scope) {
873
- return Promise.all(data.views.map( /*#__PURE__*/function () {
874
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
818
+ return Promise.all(data.views.map(/*#__PURE__*/function () {
819
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(view) {
875
820
  var viewPresetEntity, shouldUpdateView, canUpdateView, payload, _payload;
876
821
  return _regeneratorRuntime().wrap(function _callee$(_context) {
877
822
  while (1) switch (_context.prev = _context.next) {
@@ -1421,11 +1366,11 @@ var slice$2 = createSlice({
1421
1366
  }
1422
1367
  },
1423
1368
  toggleSelectFilterChip: function toggleSelectFilterChip(draft, action) {
1424
- var _action$payload10 = action.payload,
1425
- id = _action$payload10.id,
1426
- isSelected = _action$payload10.isSelected,
1427
- panelId = _action$payload10.panelId,
1428
- isAdmin = _action$payload10.isAdmin;
1369
+ var _action$payload0 = action.payload,
1370
+ id = _action$payload0.id,
1371
+ isSelected = _action$payload0.isSelected,
1372
+ panelId = _action$payload0.panelId,
1373
+ isAdmin = _action$payload0.isAdmin;
1429
1374
  var entity = draft.entities[panelId];
1430
1375
  if (entity) {
1431
1376
  var relevantFilters = isAdmin ? entity.filters.filter(function (filter) {
@@ -1476,9 +1421,9 @@ var slice$2 = createSlice({
1476
1421
  }
1477
1422
  },
1478
1423
  setFilterChips: function setFilterChips(draft, action) {
1479
- var _action$payload11 = action.payload,
1480
- panelId = _action$payload11.panelId,
1481
- filters = _action$payload11.filters;
1424
+ var _action$payload1 = action.payload,
1425
+ panelId = _action$payload1.panelId,
1426
+ filters = _action$payload1.filters;
1482
1427
  var entity = draft.entities[panelId];
1483
1428
  if (!entity) {
1484
1429
  return;
@@ -1494,9 +1439,9 @@ var slice$2 = createSlice({
1494
1439
  });
1495
1440
  },
1496
1441
  searchFilter: function searchFilter(draft, action) {
1497
- var _action$payload12 = action.payload,
1498
- searchQuery = _action$payload12.searchQuery,
1499
- panelId = _action$payload12.panelId;
1442
+ var _action$payload10 = action.payload,
1443
+ searchQuery = _action$payload10.searchQuery,
1444
+ panelId = _action$payload10.panelId;
1500
1445
  var entity = draft.entities[panelId];
1501
1446
  if (entity) {
1502
1447
  entity.searchQuery = searchQuery;
@@ -1505,9 +1450,9 @@ var slice$2 = createSlice({
1505
1450
  },
1506
1451
  extraReducers: function extraReducers(builder) {
1507
1452
  builder.addCase(mapActions.setMapPresetError, function (draft, action) {
1508
- var _action$payload13 = action.payload,
1509
- mapId = _action$payload13.mapId,
1510
- error = _action$payload13.error;
1453
+ var _action$payload11 = action.payload,
1454
+ mapId = _action$payload11.mapId,
1455
+ error = _action$payload11.error;
1511
1456
  var entity = draft.entities[mapId];
1512
1457
  if (entity) {
1513
1458
  entity.error = {
@@ -1531,9 +1476,9 @@ var slice$2 = createSlice({
1531
1476
  });
1532
1477
  warningsPresetChangeActions.map(function (warningsAction) {
1533
1478
  return builder.addCase(warningsAction, function (draft, action) {
1534
- var _action$payload14 = action.payload,
1535
- systemUpdate = _action$payload14.systemUpdate,
1536
- panelId = _action$payload14.panelId;
1479
+ var _action$payload12 = action.payload,
1480
+ systemUpdate = _action$payload12.systemUpdate,
1481
+ panelId = _action$payload12.panelId;
1537
1482
  if (!systemUpdate && panelId) {
1538
1483
  var entity = draft.entities[panelId];
1539
1484
  if (entity && !(entity != null && entity.hasChanges)) {
@@ -1545,9 +1490,9 @@ var slice$2 = createSlice({
1545
1490
  });
1546
1491
  syncGroupChangeActions.map(function (syncGroupAction) {
1547
1492
  return builder.addCase(syncGroupAction, function (draft, action) {
1548
- var _action$payload15 = action.payload,
1549
- origin = _action$payload15.origin,
1550
- targetId = _action$payload15.targetId;
1493
+ var _action$payload13 = action.payload,
1494
+ origin = _action$payload13.origin,
1495
+ targetId = _action$payload13.targetId;
1551
1496
  if (origin === 'user') {
1552
1497
  var entity = draft.entities[targetId];
1553
1498
  if (entity && !(entity != null && entity.hasChanges)) {
@@ -1559,9 +1504,9 @@ var slice$2 = createSlice({
1559
1504
  });
1560
1505
  mapPresetChangeActions.map(function (mapPresetAction) {
1561
1506
  return builder.addCase(mapPresetAction, function (draft, action) {
1562
- var _action$payload16 = action.payload,
1563
- mapId = _action$payload16.mapId,
1564
- origin = _action$payload16.origin;
1507
+ var _action$payload14 = action.payload,
1508
+ mapId = _action$payload14.mapId,
1509
+ origin = _action$payload14.origin;
1565
1510
  var isChangeOriginSupported = supportedMapActionOrigins.indexOf(origin) >= 0;
1566
1511
  if (isChangeOriginSupported && mapId) {
1567
1512
  var entity = draft.entities[mapId];
@@ -1574,9 +1519,9 @@ var slice$2 = createSlice({
1574
1519
  });
1575
1520
  timeSeriesPresetChangeActions.map(function (timeSeriesPresetAction) {
1576
1521
  return builder.addCase(timeSeriesPresetAction, function (draft, action) {
1577
- var _action$payload17 = action.payload,
1578
- panelId = _action$payload17.panelId,
1579
- origin = _action$payload17.origin;
1522
+ var _action$payload15 = action.payload,
1523
+ panelId = _action$payload15.panelId,
1524
+ origin = _action$payload15.origin;
1580
1525
  var isChangeOriginSupported = supportedTimeSeriesActionOrigins.indexOf(origin) >= 0;
1581
1526
  var changesRelevantProperties = timeSeriesPresetAction.type === timeSeriesActions.patchParameter.type ? Object.keys(action.payload.parameter).filter(function (key) {
1582
1527
  return key !== 'id' && key !== 'instanceId';
@@ -4803,7 +4748,7 @@ var workspaceListener = createListenerMiddleware();
4803
4748
  workspaceListener.startListening({
4804
4749
  actionCreator: mapActions.registerMap,
4805
4750
  effect: function () {
4806
- var _effect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
4751
+ var _effect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
4807
4752
  var payload, mapId, viewType, _workspaceState$views, workspaceState, mapPresetId;
4808
4753
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4809
4754
  while (1) switch (_context.prev = _context.next) {
@@ -4834,7 +4779,7 @@ workspaceListener.startListening({
4834
4779
  workspaceListener.startListening({
4835
4780
  actionCreator: mapActions.unregisterMap,
4836
4781
  effect: function () {
4837
- var _effect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
4782
+ var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
4838
4783
  var payload, mapId, viewType;
4839
4784
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
4840
4785
  while (1) switch (_context2.prev = _context2.next) {
@@ -4862,7 +4807,7 @@ workspaceListener.startListening({
4862
4807
  workspaceListener.startListening({
4863
4808
  actionCreator: workspaceActions.changePreset,
4864
4809
  effect: function () {
4865
- var _effect3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref3, listenerApi) {
4810
+ var _effect3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref3, listenerApi) {
4866
4811
  var payload, allSyncGroups, isTimeScrollingEnabled;
4867
4812
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
4868
4813
  while (1) switch (_context3.prev = _context3.next) {
@@ -4903,7 +4848,7 @@ workspaceListener.startListening({
4903
4848
  }()
4904
4849
  });
4905
4850
  var fetchWorkspaceViewPreset = /*#__PURE__*/function () {
4906
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(dispatch, viewPresetId, mosaicNodeId) {
4851
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(dispatch, viewPresetId, mosaicNodeId) {
4907
4852
  var _data$initialProps, workspaceApi, _yield$workspaceApi$g, data, syncGroupIds;
4908
4853
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
4909
4854
  while (1) switch (_context4.prev = _context4.next) {
@@ -4968,7 +4913,7 @@ var fetchWorkspaceViewPreset = /*#__PURE__*/function () {
4968
4913
  workspaceListener.startListening({
4969
4914
  actionCreator: workspaceActions.fetchWorkspaceViewPreset,
4970
4915
  effect: function () {
4971
- var _effect4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref5, listenerApi) {
4916
+ var _effect4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref5, listenerApi) {
4972
4917
  var payload, viewPresetId, mosaicNodeId;
4973
4918
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
4974
4919
  while (1) switch (_context5.prev = _context5.next) {
@@ -4983,7 +4928,7 @@ workspaceListener.startListening({
4983
4928
  }
4984
4929
  }, _callee5);
4985
4930
  }));
4986
- function effect(_x10, _x11) {
4931
+ function effect(_x0, _x1) {
4987
4932
  return _effect4.apply(this, arguments);
4988
4933
  }
4989
4934
  return effect;
@@ -4992,7 +4937,7 @@ workspaceListener.startListening({
4992
4937
  workspaceListener.startListening({
4993
4938
  actionCreator: workspaceActions.fetchWorkspace,
4994
4939
  effect: function () {
4995
- var _effect5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref6, listenerApi) {
4940
+ var _effect5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(_ref6, listenerApi) {
4996
4941
  var payload, workspaceId, workspaceApi, _yield$workspaceApi$g2, workspaceData, fullLoadingWorkspace, workspaceIdsInBatches, errorType;
4997
4942
  return _regeneratorRuntime().wrap(function _callee8$(_context8) {
4998
4943
  while (1) switch (_context8.prev = _context8.next) {
@@ -5033,14 +4978,14 @@ workspaceListener.startListening({
5033
4978
  // fetch all individual view presets in batches
5034
4979
  workspaceIdsInBatches = getListInChunks(workspaceData.views);
5035
4980
  _context8.next = 19;
5036
- return Promise.all(workspaceIdsInBatches.map( /*#__PURE__*/function () {
5037
- var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(batchCall) {
4981
+ return Promise.all(workspaceIdsInBatches.map(/*#__PURE__*/function () {
4982
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(batchCall) {
5038
4983
  return _regeneratorRuntime().wrap(function _callee7$(_context7) {
5039
4984
  while (1) switch (_context7.prev = _context7.next) {
5040
4985
  case 0:
5041
4986
  _context7.next = 2;
5042
- return Promise.all(batchCall.map( /*#__PURE__*/function () {
5043
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(view) {
4987
+ return Promise.all(batchCall.map(/*#__PURE__*/function () {
4988
+ var _ref8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(view) {
5044
4989
  return _regeneratorRuntime().wrap(function _callee6$(_context6) {
5045
4990
  while (1) switch (_context6.prev = _context6.next) {
5046
4991
  case 0:
@@ -5051,7 +4996,7 @@ workspaceListener.startListening({
5051
4996
  }
5052
4997
  }, _callee6);
5053
4998
  }));
5054
- return function (_x15) {
4999
+ return function (_x13) {
5055
5000
  return _ref8.apply(this, arguments);
5056
5001
  };
5057
5002
  }()));
@@ -5061,7 +5006,7 @@ workspaceListener.startListening({
5061
5006
  }
5062
5007
  }, _callee7);
5063
5008
  }));
5064
- return function (_x14) {
5009
+ return function (_x12) {
5065
5010
  return _ref7.apply(this, arguments);
5066
5011
  };
5067
5012
  }()));
@@ -5085,7 +5030,7 @@ workspaceListener.startListening({
5085
5030
  }
5086
5031
  }, _callee8, null, [[3, 21]]);
5087
5032
  }));
5088
- function effect(_x12, _x13) {
5033
+ function effect(_x10, _x11) {
5089
5034
  return _effect5.apply(this, arguments);
5090
5035
  }
5091
5036
  return effect;
@@ -5094,7 +5039,7 @@ workspaceListener.startListening({
5094
5039
  workspaceListener.startListening({
5095
5040
  actionCreator: workspaceActions.saveWorkspacePreset,
5096
5041
  effect: function () {
5097
- var _effect6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_ref9, listenerApi) {
5042
+ var _effect6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(_ref9, listenerApi) {
5098
5043
  var payload, workspace, workspaceApi;
5099
5044
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
5100
5045
  while (1) switch (_context9.prev = _context9.next) {
@@ -5133,7 +5078,7 @@ workspaceListener.startListening({
5133
5078
  }
5134
5079
  }, _callee9, null, [[3, 11]]);
5135
5080
  }));
5136
- function effect(_x16, _x17) {
5081
+ function effect(_x14, _x15) {
5137
5082
  return _effect6.apply(this, arguments);
5138
5083
  }
5139
5084
  return effect;
@@ -5142,10 +5087,10 @@ workspaceListener.startListening({
5142
5087
  workspaceListener.startListening({
5143
5088
  actionCreator: workspaceActions.changeToEmptyMapWorkspace,
5144
5089
  effect: function () {
5145
- var _effect7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(action, listenerApi) {
5090
+ var _effect7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee0(action, listenerApi) {
5146
5091
  var _action$payload, newMapPresetText, newWorkspaceText, intialViewMapPreset;
5147
- return _regeneratorRuntime().wrap(function _callee10$(_context10) {
5148
- while (1) switch (_context10.prev = _context10.next) {
5092
+ return _regeneratorRuntime().wrap(function _callee0$(_context0) {
5093
+ while (1) switch (_context0.prev = _context0.next) {
5149
5094
  case 0:
5150
5095
  _action$payload = action.payload, newMapPresetText = _action$payload.newMapPresetText, newWorkspaceText = _action$payload.newWorkspaceText; // Cancel any in-progress instances of this listener
5151
5096
  listenerApi.cancelActiveListeners();
@@ -5155,11 +5100,11 @@ workspaceListener.startListening({
5155
5100
  }));
5156
5101
  case 4:
5157
5102
  case "end":
5158
- return _context10.stop();
5103
+ return _context0.stop();
5159
5104
  }
5160
- }, _callee10);
5105
+ }, _callee0);
5161
5106
  }));
5162
- function effect(_x18, _x19) {
5107
+ function effect(_x16, _x17) {
5163
5108
  return _effect7.apply(this, arguments);
5164
5109
  }
5165
5110
  return effect;
@@ -5168,12 +5113,12 @@ workspaceListener.startListening({
5168
5113
  workspaceListener.startListening({
5169
5114
  actionCreator: workspaceActions.setNewWorkspaceView,
5170
5115
  effect: function () {
5171
- var _effect8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(_ref10, listenerApi) {
5116
+ var _effect8 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee1(_ref0, listenerApi) {
5172
5117
  var payload, mosaicNodeId, componentType, newId, bbox, srs, mapPreset;
5173
- return _regeneratorRuntime().wrap(function _callee11$(_context11) {
5174
- while (1) switch (_context11.prev = _context11.next) {
5118
+ return _regeneratorRuntime().wrap(function _callee1$(_context1) {
5119
+ while (1) switch (_context1.prev = _context1.next) {
5175
5120
  case 0:
5176
- payload = _ref10.payload;
5121
+ payload = _ref0.payload;
5177
5122
  mosaicNodeId = payload.mosaicNodeId, componentType = payload.componentType, newId = payload.newId; // TODO: this would be nice to move into the openlayers store
5178
5123
  createViewObjectForNewMap(mosaicNodeId, newId);
5179
5124
  // Note, at some point these might no longer be necessary
@@ -5195,11 +5140,11 @@ workspaceListener.startListening({
5195
5140
  }));
5196
5141
  case 7:
5197
5142
  case "end":
5198
- return _context11.stop();
5143
+ return _context1.stop();
5199
5144
  }
5200
- }, _callee11);
5145
+ }, _callee1);
5201
5146
  }));
5202
- function effect(_x20, _x21) {
5147
+ function effect(_x18, _x19) {
5203
5148
  return _effect8.apply(this, arguments);
5204
5149
  }
5205
5150
  return effect;
@@ -5208,15 +5153,15 @@ workspaceListener.startListening({
5208
5153
  workspaceListener.startListening({
5209
5154
  actionCreator: workspaceActions.updateWorkspaceViews,
5210
5155
  effect: function () {
5211
- var _effect9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(_, listenerApi) {
5156
+ var _effect9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(_, listenerApi) {
5212
5157
  var viewIds;
5213
- return _regeneratorRuntime().wrap(function _callee12$(_context12) {
5214
- while (1) switch (_context12.prev = _context12.next) {
5158
+ return _regeneratorRuntime().wrap(function _callee10$(_context10) {
5159
+ while (1) switch (_context10.prev = _context10.next) {
5215
5160
  case 0:
5216
5161
  // Cancel any in-progress instances of this listener
5217
5162
  listenerApi.cancelActiveListeners();
5218
5163
  // Delay before starting actual work
5219
- _context12.next = 3;
5164
+ _context10.next = 3;
5220
5165
  return listenerApi.delay(100);
5221
5166
  case 3:
5222
5167
  /* This will trigger all maps and other components
@@ -5224,7 +5169,7 @@ workspaceListener.startListening({
5224
5169
  window.dispatchEvent(new Event('resize'));
5225
5170
  // Adjust the bbox of the original view after the new map is added. This is a temporal solution until the OpenLayers ticket
5226
5171
  // https://github.com/openlayers/openlayers/issues/16572 is solved.
5227
- _context12.next = 6;
5172
+ _context10.next = 6;
5228
5173
  return listenerApi.delay(10);
5229
5174
  case 6:
5230
5175
  viewIds = getViewIds(listenerApi.getState());
@@ -5241,11 +5186,11 @@ workspaceListener.startListening({
5241
5186
  });
5242
5187
  case 8:
5243
5188
  case "end":
5244
- return _context12.stop();
5189
+ return _context10.stop();
5245
5190
  }
5246
- }, _callee12);
5191
+ }, _callee10);
5247
5192
  }));
5248
- function effect(_x22, _x23) {
5193
+ function effect(_x20, _x21) {
5249
5194
  return _effect9.apply(this, arguments);
5250
5195
  }
5251
5196
  return effect;
@@ -5382,7 +5327,7 @@ var viewPresetsListener = createListenerMiddleware();
5382
5327
  viewPresetsListener.startListening({
5383
5328
  actionCreator: viewPresetActions.fetchViewPresets,
5384
5329
  effect: function () {
5385
- var _effect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
5330
+ var _effect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
5386
5331
  var payload, panelId, filterParams, workspaceApi, _yield$workspaceApi$g, viewPresets;
5387
5332
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5388
5333
  while (1) switch (_context.prev = _context.next) {
@@ -5424,7 +5369,7 @@ viewPresetsListener.startListening({
5424
5369
  }()
5425
5370
  });
5426
5371
  var saveViewPresetAsEffect = /*#__PURE__*/function () {
5427
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
5372
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
5428
5373
  var payload, panelId, viewPreset, workspaceApi, viewPresetId;
5429
5374
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
5430
5375
  while (1) switch (_context2.prev = _context2.next) {
@@ -5470,7 +5415,7 @@ var saveViewPresetAsEffect = /*#__PURE__*/function () {
5470
5415
  };
5471
5416
  }();
5472
5417
  var saveViewPresetEffect = /*#__PURE__*/function () {
5473
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4, listenerApi) {
5418
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4, listenerApi) {
5474
5419
  var payload, panelId, viewPreset, viewPresetId, workspaceApi;
5475
5420
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
5476
5421
  while (1) switch (_context3.prev = _context3.next) {
@@ -5522,7 +5467,7 @@ viewPresetsListener.startListening({
5522
5467
  viewPresetsListener.startListening({
5523
5468
  actionCreator: viewPresetActions.selectViewPreset,
5524
5469
  effect: function () {
5525
- var _effect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6, listenerApi) {
5470
+ var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref6, listenerApi) {
5526
5471
  var payload, panelId, _payload$viewPresetId, viewPresetId, isMapAnimating;
5527
5472
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
5528
5473
  while (1) switch (_context4.prev = _context4.next) {
@@ -5575,7 +5520,7 @@ viewPresetsListener.startListening({
5575
5520
  viewPresetsListener.startListening({
5576
5521
  actionCreator: viewPresetActions.onSuccessViewPresetAction,
5577
5522
  effect: function () {
5578
- var _effect3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref7, listenerApi) {
5523
+ var _effect3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(_ref7, listenerApi) {
5579
5524
  var payload, action, viewPresetId, title, panelId, is_shared, activeMapPresetId, hasChanges, viewPresetFilters, viewPresetSearchQuery;
5580
5525
  return _regeneratorRuntime().wrap(function _callee5$(_context5) {
5581
5526
  while (1) switch (_context5.prev = _context5.next) {
@@ -5623,7 +5568,7 @@ viewPresetsListener.startListening({
5623
5568
  }
5624
5569
  }, _callee5);
5625
5570
  }));
5626
- function effect(_x9, _x10) {
5571
+ function effect(_x9, _x0) {
5627
5572
  return _effect3.apply(this, arguments);
5628
5573
  }
5629
5574
  return effect;
@@ -5640,7 +5585,7 @@ var workspaceListListener = createListenerMiddleware();
5640
5585
  workspaceListListener.startListening({
5641
5586
  actionCreator: workspaceListActions.fetchWorkspaceList,
5642
5587
  effect: function () {
5643
- var _effect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
5588
+ var _effect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref, listenerApi) {
5644
5589
  var workspaceFilterParams, workspaceApi, _yield$workspaceApi$g, data, isAuthError, workspaceListError;
5645
5590
  return _regeneratorRuntime().wrap(function _callee$(_context) {
5646
5591
  while (1) switch (_context.prev = _context.next) {
@@ -5696,7 +5641,7 @@ workspaceListListener.startListening({
5696
5641
  workspaceListListener.startListening({
5697
5642
  actionCreator: workspaceListActions.onSuccessWorkspacePresetAction,
5698
5643
  effect: function () {
5699
- var _effect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
5644
+ var _effect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2, listenerApi) {
5700
5645
  var _listenerApi$getOrigi;
5701
5646
  var payload, currentWorkspaceId, action, workspaceId, title, is_shared, searchQuery;
5702
5647
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -5738,7 +5683,7 @@ workspaceListListener.startListening({
5738
5683
  workspaceListListener.startListening({
5739
5684
  actionCreator: workspaceListActions.submitFormWorkspaceActionDialogOptions,
5740
5685
  effect: function () {
5741
- var _effect3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref3, listenerApi) {
5686
+ var _effect3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref3, listenerApi) {
5742
5687
  var payload, workspaceApi, workspaceState, presetId, presetAction, data, emptyMapPresetTitle, emptyWorkspacePresetTitle, scope, _yield$workspaceApi$g2, originalData, workspaceDataNewTitle, isSaveWorkspaceAction, isSaveAsWorkspaceAction, hasWorkspaceAlreadyBeenSaved, workspaceId, saveViewPreset, getViewPresetEntity, viewPresetResults, hasError, _hasError$message, errorMessage, workspaceData, newWorkspace, message, category;
5743
5688
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
5744
5689
  while (1) switch (_context3.prev = _context3.next) {
@@ -5971,8 +5916,8 @@ var _viewPresetsListAdapt = viewPresetsListAdapter.getSelectors(function (state)
5971
5916
  ids: []
5972
5917
  };
5973
5918
  }),
5974
- getViewPresetsList = _viewPresetsListAdapt.selectAll;
5975
- _viewPresetsListAdapt.selectById;
5919
+ getViewPresetsList = _viewPresetsListAdapt.selectAll,
5920
+ getViewPresetFromList = _viewPresetsListAdapt.selectById;
5976
5921
  var getFilteredViewPresetListForView = createSelector(getViewPresetsList, getViewPresetListFilterResultsForView, getViewPresetListSearchQueryForView, function (fullViewPresetsList, filteredResults, searchQuery) {
5977
5922
  if (searchQuery !== '') {
5978
5923
  // Search active: return what backend gave us
@@ -7114,7 +7059,8 @@ var WorkspaceViewTitleConnectNoMemo = function WorkspaceViewTitleConnectNoMemo(_
7114
7059
  t = _useWorkspaceTranslat.t;
7115
7060
  var _useAuthenticationCon = useAuthenticationContext(),
7116
7061
  currentRole = _useAuthenticationCon.currentRole,
7117
- isLoggedIn = _useAuthenticationCon.isLoggedIn;
7062
+ isLoggedIn = _useAuthenticationCon.isLoggedIn,
7063
+ auth = _useAuthenticationCon.auth;
7118
7064
  var isAdmin = (currentRole == null ? void 0 : currentRole.name) === GEOWEB_ROLE_PRESETS_ADMIN.name;
7119
7065
  var workspaceView = useSelector(function (store) {
7120
7066
  var _workspaceSelectors$g;
@@ -7139,6 +7085,9 @@ var WorkspaceViewTitleConnectNoMemo = function WorkspaceViewTitleConnectNoMemo(_
7139
7085
  var relatedSyncGroupIds = useSelector(function (store) {
7140
7086
  return syncGroupsSelectors.getAllTargetGroupsForSource(store, panelId);
7141
7087
  });
7088
+ var currentViewPreset = useSelector(function (store) {
7089
+ return workspaceView.id ? getViewPresetFromList(store, workspaceView.id) : undefined;
7090
+ });
7142
7091
  var presetAbstract = workspaceView == null ? void 0 : workspaceView["abstract"];
7143
7092
  var isNewActive = activeViewPresetId === '';
7144
7093
  var title = workspaceView.title || t('workspace-mappreset-new');
@@ -7249,8 +7198,10 @@ var WorkspaceViewTitleConnectNoMemo = function WorkspaceViewTitleConnectNoMemo(_
7249
7198
  return jsx(Preset, {});
7250
7199
  }, []);
7251
7200
  renderCounter.count(WorkspaceViewTitleConnectNoMemo.name);
7201
+ var viewpresetCreator = (currentViewPreset == null ? void 0 : currentViewPreset.username) || '';
7202
+ var isUserPresetCreator = (auth == null ? void 0 : auth.username) === viewpresetCreator;
7252
7203
  var currentViewScope = viewScope || 'system';
7253
- var isEnabled = (currentViewScope === 'user' || isAdmin && currentViewScope === 'system') && activeViewPresetId !== '' && isLoggedIn;
7204
+ var isEnabled = (currentViewScope === 'user' && isUserPresetCreator || isAdmin && currentViewScope === 'system') && activeViewPresetId !== '' && isLoggedIn;
7254
7205
  return jsxs(Fragment, {
7255
7206
  children: [jsx(CustomIconButton, {
7256
7207
  "data-testid": "open-viewpresets",
@@ -7538,7 +7489,7 @@ var WorkspaceControls = function WorkspaceControls(_ref) {
7538
7489
  }
7539
7490
  }, [enableUnexpand, mosaicNode, stateAfterExpand]);
7540
7491
  var onClose = /*#__PURE__*/function () {
7541
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7492
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7542
7493
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7543
7494
  while (1) switch (_context.prev = _context.next) {
7544
7495
  case 0:
@@ -8978,7 +8929,7 @@ var WorkspacePresetsFormDialog = function WorkspacePresetsFormDialog(_ref) {
8978
8929
  };
8979
8930
  var confirmLabel = getConfirmLabel(action);
8980
8931
  var onSubmit = /*#__PURE__*/function () {
8981
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8932
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8982
8933
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8983
8934
  while (1) switch (_context.prev = _context.next) {
8984
8935
  case 0:
@@ -9152,7 +9103,7 @@ var WorkspaceTabConnect = function WorkspaceTabConnect(_ref) {
9152
9103
  dispatch(workspaceListActions.closeWorkspaceActionDialogOptions());
9153
9104
  }, [dispatch]);
9154
9105
  var onSubmitForm = /*#__PURE__*/function () {
9155
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(presetAction, presetId, data) {
9106
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(presetAction, presetId, data) {
9156
9107
  var oldWorkspace;
9157
9108
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9158
9109
  while (1) switch (_context.prev = _context.next) {
@@ -9415,7 +9366,7 @@ var ViewPresetsFormDialog = function ViewPresetsFormDialog(_ref) {
9415
9366
  };
9416
9367
  var confirmLabel = getConfirmLabel(action);
9417
9368
  var onFormSubmit = /*#__PURE__*/function () {
9418
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(formValues) {
9369
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(formValues) {
9419
9370
  var scope, handleSuccess, newFormValues, newId, _yield$api$getViewPre, originalViewPreset, viewPresetEdited, submitError, message;
9420
9371
  return _regeneratorRuntime().wrap(function _callee$(_context) {
9421
9372
  while (1) switch (_context.prev = _context.next) {
@@ -9493,13 +9444,13 @@ var ViewPresetsFormDialog = function ViewPresetsFormDialog(_ref) {
9493
9444
  };
9494
9445
  }();
9495
9446
  var onSubmit = /*#__PURE__*/function () {
9496
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
9447
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
9497
9448
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
9498
9449
  while (1) switch (_context3.prev = _context3.next) {
9499
9450
  case 0:
9500
9451
  _context3.next = 2;
9501
- return handleFormSubmit( /*#__PURE__*/function () {
9502
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(newFormValues) {
9452
+ return handleFormSubmit(/*#__PURE__*/function () {
9453
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(newFormValues) {
9503
9454
  var title, otherFormValues, trimmedTitle, parsedFormValues;
9504
9455
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9505
9456
  while (1) switch (_context2.prev = _context2.next) {