@eox/layercontrol 1.1.3 → 1.2.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.
@@ -286,7 +286,7 @@ rt.elementStyles = [], rt.shadowRootOptions = { mode: "open" }, rt[vt("elementPr
286
286
  * Copyright 2017 Google LLC
287
287
  * SPDX-License-Identifier: BSD-3-Clause
288
288
  */
289
- const xt = globalThis, Jt = xt.trustedTypes, wi = Jt ? Jt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yi = "$lit$", Me = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Me, dn = `<${Wi}>`, Qe = document, Et = () => Qe.createComment(""), At = (r) => r === null || typeof r != "object" && typeof r != "function", ni = Array.isArray, un = (r) => ni(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Lr = `[
289
+ const xt = globalThis, Jt = xt.trustedTypes, wi = Jt ? Jt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Yi = "$lit$", Ie = `lit$${Math.random().toFixed(9).slice(2)}$`, Wi = "?" + Ie, dn = `<${Wi}>`, Qe = document, Et = () => Qe.createComment(""), At = (r) => r === null || typeof r != "object" && typeof r != "function", ni = Array.isArray, un = (r) => ni(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Lr = `[
290
290
  \f\r]`, ht = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _i = /-->/g, $i = />/g, Xe = RegExp(`>|${Lr}(?:([^\\s"'>=/]+)(${Lr}*=${Lr}*(?:[^
291
291
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Si = /'/g, zi = /"/g, Gi = /^(?:script|style|textarea|title)$/i, pn = (r) => (e, ...t) => ({ _$litType$: r, strings: e, values: t }), g = pn(1), xe = Symbol.for("lit-noChange"), P = Symbol.for("lit-nothing"), Ei = /* @__PURE__ */ new WeakMap(), Je = Qe.createTreeWalker(Qe, 129);
292
292
  function Ji(r, e) {
@@ -301,7 +301,7 @@ const mn = (r, e) => {
301
301
  let c, u, d = -1, m = 0;
302
302
  for (; m < s.length && (a.lastIndex = m, u = a.exec(s), u !== null); ) m = a.lastIndex, a === ht ? u[1] === "!--" ? a = _i : u[1] !== void 0 ? a = $i : u[2] !== void 0 ? (Gi.test(u[2]) && (o = RegExp("</" + u[2], "g")), a = Xe) : u[3] !== void 0 && (a = Xe) : a === Xe ? u[0] === ">" ? (a = o ?? ht, d = -1) : u[1] === void 0 ? d = -2 : (d = a.lastIndex - u[2].length, c = u[1], a = u[3] === void 0 ? Xe : u[3] === '"' ? zi : Si) : a === zi || a === Si ? a = Xe : a === _i || a === $i ? a = ht : (a = Xe, o = void 0);
303
303
  const h = a === Xe && r[l + 1].startsWith("/>") ? " " : "";
304
- n += a === ht ? s + dn : d >= 0 ? (i.push(c), s.slice(0, d) + Yi + s.slice(d) + Me + h) : s + Me + (d === -2 ? l : h);
304
+ n += a === ht ? s + dn : d >= 0 ? (i.push(c), s.slice(0, d) + Yi + s.slice(d) + Ie + h) : s + Ie + (d === -2 ? l : h);
305
305
  }
306
306
  return [Ji(r, n + (r[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
307
307
  };
@@ -318,11 +318,11 @@ class Ct {
318
318
  for (; (o = Je.nextNode()) !== null && s.length < l; ) {
319
319
  if (o.nodeType === 1) {
320
320
  if (o.hasAttributes()) for (const d of o.getAttributeNames()) if (d.endsWith(Yi)) {
321
- const m = u[a++], h = o.getAttribute(d).split(Me), f = /([.?@])?(.*)/.exec(m);
321
+ const m = u[a++], h = o.getAttribute(d).split(Ie), f = /([.?@])?(.*)/.exec(m);
322
322
  s.push({ type: 1, index: n, name: f[2], strings: h, ctor: f[1] === "." ? fn : f[1] === "?" ? gn : f[1] === "@" ? bn : $r }), o.removeAttribute(d);
323
- } else d.startsWith(Me) && (s.push({ type: 6, index: n }), o.removeAttribute(d));
323
+ } else d.startsWith(Ie) && (s.push({ type: 6, index: n }), o.removeAttribute(d));
324
324
  if (Gi.test(o.tagName)) {
325
- const d = o.textContent.split(Me), m = d.length - 1;
325
+ const d = o.textContent.split(Ie), m = d.length - 1;
326
326
  if (m > 0) {
327
327
  o.textContent = Jt ? Jt.emptyScript : "";
328
328
  for (let h = 0; h < m; h++) o.append(d[h], Et()), Je.nextNode(), s.push({ type: 2, index: ++n });
@@ -332,7 +332,7 @@ class Ct {
332
332
  } else if (o.nodeType === 8) if (o.data === Wi) s.push({ type: 2, index: n });
333
333
  else {
334
334
  let d = -1;
335
- for (; (d = o.data.indexOf(Me, d + 1)) !== -1; ) s.push({ type: 7, index: n }), d += Me.length - 1;
335
+ for (; (d = o.data.indexOf(Ie, d + 1)) !== -1; ) s.push({ type: 7, index: n }), d += Ie.length - 1;
336
336
  }
337
337
  n++;
338
338
  }
@@ -557,7 +557,7 @@ Pr == null || Pr({ LitElement: se });
557
557
  * Copyright 2021 Google LLC
558
558
  * SPDX-License-Identifier: BSD-3-Clause
559
559
  */
560
- function I(r, e, t) {
560
+ function V(r, e, t) {
561
561
  return r ? e(r) : t == null ? void 0 : t(r);
562
562
  }
563
563
  /**
@@ -884,11 +884,11 @@ function On(r, e) {
884
884
  if (!(!S(t[0]) || !S(t[1]) || !S(t[2]) || !S(t[3])))
885
885
  return t;
886
886
  }
887
- function Mn(r, e) {
887
+ function In(r, e) {
888
888
  const t = parseFloat(r.getAttribute("min")), i = parseFloat(r.getAttribute("max"));
889
889
  return { min: t, max: i };
890
890
  }
891
- function Vn(r, e) {
891
+ function Mn(r, e) {
892
892
  const t = Q(
893
893
  {},
894
894
  sa,
@@ -917,7 +917,7 @@ function Vn(r, e) {
917
917
  a
918
918
  ];
919
919
  }
920
- function In(r, e) {
920
+ function Vn(r, e) {
921
921
  return Q({}, ta, r, e);
922
922
  }
923
923
  function Nn(r, e) {
@@ -1088,7 +1088,7 @@ const oe = [
1088
1088
  oe,
1089
1089
  {
1090
1090
  Service: v(Nn),
1091
- Capability: v(In)
1091
+ Capability: v(Vn)
1092
1092
  }
1093
1093
  ), ta = ie(
1094
1094
  oe,
@@ -1152,7 +1152,7 @@ const oe = [
1152
1152
  KeywordList: v(oo),
1153
1153
  CRS: me(C),
1154
1154
  SRS: me(C),
1155
- EX_GeographicBoundingBox: v(Vn),
1155
+ EX_GeographicBoundingBox: v(Mn),
1156
1156
  LatLonBoundingBox: v(On),
1157
1157
  BoundingBox: me(Hn),
1158
1158
  Dimension: me(Zn),
@@ -1165,7 +1165,7 @@ const oe = [
1165
1165
  Style: me(Qn),
1166
1166
  MinScaleDenominator: v(nt),
1167
1167
  MaxScaleDenominator: v(nt),
1168
- ScaleHint: v(Mn),
1168
+ ScaleHint: v(In),
1169
1169
  Layer: me(Xn)
1170
1170
  }
1171
1171
  ), la = ie(
@@ -1590,7 +1590,7 @@ function za(r, e) {
1590
1590
  e.hasOwnProperty(t) && (r[t] = e[t]);
1591
1591
  return r;
1592
1592
  }
1593
- function Mr(r, e) {
1593
+ function Ir(r, e) {
1594
1594
  return Math.round(r.top) === Math.round(e.top) && Math.round(r.left) === Math.round(e.left) && Math.round(r.height) === Math.round(e.height) && Math.round(r.width) === Math.round(e.width);
1595
1595
  }
1596
1596
  var wt;
@@ -1664,8 +1664,8 @@ function Aa() {
1664
1664
  var n = !1, a = 0;
1665
1665
  r.forEach(function(l) {
1666
1666
  var s = 0, c = l.target, u = c.fromRect, d = G(c), m = c.prevFromRect, h = c.prevToRect, f = l.rect, y = lt(c, !0);
1667
- y && (d.top -= y.f, d.left -= y.e), c.toRect = d, c.thisAnimationDuration && Mr(m, d) && !Mr(u, d) && // Make sure animatingRect is on line between toRect & fromRect
1668
- (f.top - d.top) / (f.left - d.left) === (u.top - d.top) / (u.left - d.left) && (s = Ta(f, m, h, o.options)), Mr(d, u) || (c.prevFromRect = u, c.prevToRect = d, s || (s = o.options.animation), o.animate(c, f, d, s)), s && (n = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
1667
+ y && (d.top -= y.f, d.left -= y.e), c.toRect = d, c.thisAnimationDuration && Ir(m, d) && !Ir(u, d) && // Make sure animatingRect is on line between toRect & fromRect
1668
+ (f.top - d.top) / (f.left - d.left) === (u.top - d.top) / (u.left - d.left) && (s = Ta(f, m, h, o.options)), Ir(d, u) || (c.prevFromRect = u, c.prevToRect = d, s || (s = o.options.animation), o.animate(c, f, d, s)), s && (n = !0, a = Math.max(a, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
1669
1669
  c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
1670
1670
  }, s), c.thisAnimationDuration = s);
1671
1671
  }), clearTimeout(e), n ? e = setTimeout(function() {
@@ -1689,12 +1689,12 @@ function Ca(r) {
1689
1689
  function Ta(r, e, t, i) {
1690
1690
  return Math.sqrt(Math.pow(e.top - r.top, 2) + Math.pow(e.left - r.left, 2)) / Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) * i.animation;
1691
1691
  }
1692
- var et = [], Vr = {
1692
+ var et = [], Mr = {
1693
1693
  initializeByDefault: !0
1694
1694
  }, Ht = {
1695
1695
  mount: function(e) {
1696
- for (var t in Vr)
1697
- Vr.hasOwnProperty(t) && !(t in e) && (e[t] = Vr[t]);
1696
+ for (var t in Mr)
1697
+ Mr.hasOwnProperty(t) && !(t in e) && (e[t] = Mr[t]);
1698
1698
  et.forEach(function(i) {
1699
1699
  if (i.pluginName === e.pluginName)
1700
1700
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
@@ -1761,11 +1761,11 @@ var Da = ["evt"], pe = function(e, t) {
1761
1761
  dragEl: p,
1762
1762
  parentEl: F,
1763
1763
  ghostEl: w,
1764
- rootEl: V,
1764
+ rootEl: M,
1765
1765
  nextEl: Ge,
1766
1766
  lastDownEl: Ft,
1767
1767
  cloneEl: B,
1768
- cloneHidden: Ve,
1768
+ cloneHidden: Me,
1769
1769
  dragStarted: gt,
1770
1770
  putSortable: te,
1771
1771
  activeSortable: k.active,
@@ -1777,10 +1777,10 @@ var Da = ["evt"], pe = function(e, t) {
1777
1777
  hideGhostForTarget: vo,
1778
1778
  unhideGhostForTarget: xo,
1779
1779
  cloneNowHidden: function() {
1780
- Ve = !0;
1780
+ Me = !0;
1781
1781
  },
1782
1782
  cloneNowShown: function() {
1783
- Ve = !1;
1783
+ Me = !1;
1784
1784
  },
1785
1785
  dispatchSortableEvent: function(l) {
1786
1786
  le({
@@ -1796,14 +1796,14 @@ function le(r) {
1796
1796
  putSortable: te,
1797
1797
  cloneEl: B,
1798
1798
  targetEl: p,
1799
- rootEl: V,
1799
+ rootEl: M,
1800
1800
  oldIndex: at,
1801
1801
  oldDraggableIndex: _t,
1802
1802
  newIndex: be,
1803
1803
  newDraggableIndex: Oe
1804
1804
  }, r));
1805
1805
  }
1806
- var p, F, w, V, Ge, Ft, B, Ve, at, be, _t, Oe, Vt, te, it = !1, er = !1, tr = [], Ye, ke, Ir, Nr, Hi, Oi, gt, tt, $t, St = !1, It = !1, Xt, ne, Br = [], Gr = !1, rr = [], zr = typeof document < "u", Nt = di, Mi = Rt || Pe ? "cssFloat" : "float", Pa = zr && !lo && !di && "draggable" in document.createElement("div"), go = function() {
1806
+ var p, F, w, M, Ge, Ft, B, Me, at, be, _t, Oe, Mt, te, it = !1, er = !1, tr = [], Ye, ke, Vr, Nr, Hi, Oi, gt, tt, $t, St = !1, Vt = !1, Xt, ne, Br = [], Gr = !1, rr = [], zr = typeof document < "u", Nt = di, Ii = Rt || Pe ? "cssFloat" : "float", Pa = zr && !lo && !di && "draggable" in document.createElement("div"), go = function() {
1807
1807
  if (zr) {
1808
1808
  if (Pe)
1809
1809
  return !1;
@@ -1820,7 +1820,7 @@ var p, F, w, V, Ge, Ft, B, Ve, at, be, _t, Oe, Vt, te, it = !1, er = !1, tr = []
1820
1820
  var d = l.float === "left" ? "left" : "right";
1821
1821
  return a && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
1822
1822
  }
1823
- return n && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || c >= o && i[Mi] === "none" || a && i[Mi] === "none" && c + u > o) ? "vertical" : "horizontal";
1823
+ return n && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || c >= o && i[Ii] === "none" || a && i[Ii] === "none" && c + u > o) ? "vertical" : "horizontal";
1824
1824
  }, Ra = function(e, t, i) {
1825
1825
  var o = i ? e.left : e.top, n = i ? e.right : e.bottom, a = i ? e.width : e.height, l = i ? t.left : t.top, s = i ? t.right : t.bottom, c = i ? t.width : t.height;
1826
1826
  return o === l || n === s || o + a / 2 === l + c / 2;
@@ -1986,7 +1986,7 @@ k.prototype = /** @lends Sortable.prototype */
1986
1986
  var o = this, n = o.el, a = o.options, l = n.ownerDocument, s;
1987
1987
  if (i && !p && i.parentNode === n) {
1988
1988
  var c = G(i);
1989
- if (V = n, p = i, F = p.parentNode, Ge = p.nextSibling, Ft = i, Vt = a.group, k.dragged = p, Ye = {
1989
+ if (M = n, p = i, F = p.parentNode, Ge = p.nextSibling, Ft = i, Mt = a.group, k.dragged = p, Ye = {
1990
1990
  target: p,
1991
1991
  clientX: (t || e).clientX,
1992
1992
  clientY: (t || e).clientY
@@ -2028,7 +2028,7 @@ k.prototype = /** @lends Sortable.prototype */
2028
2028
  E(e, "mouseup", this._disableDelayedDrag), E(e, "touchend", this._disableDelayedDrag), E(e, "touchcancel", this._disableDelayedDrag), E(e, "pointerup", this._disableDelayedDrag), E(e, "pointercancel", this._disableDelayedDrag), E(e, "mousemove", this._delayedDragTouchMoveHandler), E(e, "touchmove", this._delayedDragTouchMoveHandler), E(e, "pointermove", this._delayedDragTouchMoveHandler);
2029
2029
  },
2030
2030
  _triggerDragStart: function(e, t) {
2031
- t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : t ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(p, "dragend", this), A(V, "dragstart", this._onDragStart));
2031
+ t = t || e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? A(document, "pointermove", this._onTouchMove) : t ? A(document, "touchmove", this._onTouchMove) : A(document, "mousemove", this._onTouchMove) : (A(p, "dragend", this), A(M, "dragstart", this._onDragStart));
2032
2032
  try {
2033
2033
  document.selection ? Zt(function() {
2034
2034
  document.selection.empty();
@@ -2037,7 +2037,7 @@ k.prototype = /** @lends Sortable.prototype */
2037
2037
  }
2038
2038
  },
2039
2039
  _dragStarted: function(e, t) {
2040
- if (it = !1, V && p) {
2040
+ if (it = !1, M && p) {
2041
2041
  pe("dragStarted", this, {
2042
2042
  evt: t
2043
2043
  }), this.nativeDraggable && A(document, "dragover", Oa);
@@ -2081,7 +2081,7 @@ k.prototype = /** @lends Sortable.prototype */
2081
2081
  this._onDragStart(e, !0);
2082
2082
  }
2083
2083
  if (w) {
2084
- a ? (a.e += u - (Ir || 0), a.f += d - (Nr || 0)) : a = {
2084
+ a ? (a.e += u - (Vr || 0), a.f += d - (Nr || 0)) : a = {
2085
2085
  a: 1,
2086
2086
  b: 0,
2087
2087
  c: 0,
@@ -2090,14 +2090,14 @@ k.prototype = /** @lends Sortable.prototype */
2090
2090
  f: d
2091
2091
  };
2092
2092
  var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
2093
- x(w, "webkitTransform", m), x(w, "mozTransform", m), x(w, "msTransform", m), x(w, "transform", m), Ir = u, Nr = d, ke = n;
2093
+ x(w, "webkitTransform", m), x(w, "mozTransform", m), x(w, "msTransform", m), x(w, "transform", m), Vr = u, Nr = d, ke = n;
2094
2094
  }
2095
2095
  e.cancelable && e.preventDefault();
2096
2096
  }
2097
2097
  },
2098
2098
  _appendGhost: function() {
2099
2099
  if (!w) {
2100
- var e = this.options.fallbackOnBody ? document.body : V, t = G(p, !0, Nt, !0, e), i = this.options;
2100
+ var e = this.options.fallbackOnBody ? document.body : M, t = G(p, !0, Nt, !0, e), i = this.options;
2101
2101
  if (Nt) {
2102
2102
  for (ne = e; x(ne, "position") === "static" && x(ne, "transform") === "none" && ne !== document; )
2103
2103
  ne = ne.parentNode;
@@ -2115,7 +2115,7 @@ k.prototype = /** @lends Sortable.prototype */
2115
2115
  return;
2116
2116
  }
2117
2117
  pe("setupClone", this), k.eventCanceled || (B = ho(p), B.removeAttribute("id"), B.draggable = !1, B.style["will-change"] = "", this._hideClone(), ge(B, this.options.chosenClass, !1), k.clone = B), i.cloneId = Zt(function() {
2118
- pe("clone", i), !k.eventCanceled && (i.options.removeCloneOnHide || V.insertBefore(B, p), i._hideClone(), le({
2118
+ pe("clone", i), !k.eventCanceled && (i.options.removeCloneOnHide || M.insertBefore(B, p), i._hideClone(), le({
2119
2119
  sortable: i,
2120
2120
  name: "clone"
2121
2121
  }));
@@ -2123,7 +2123,7 @@ k.prototype = /** @lends Sortable.prototype */
2123
2123
  },
2124
2124
  // Returns true - if no further action is needed (either inserted or another condition)
2125
2125
  _onDragOver: function(e) {
2126
- var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Vt === s, d = l.sort, m = te || c, h, f = this, y = !1;
2126
+ var t = this.el, i = e.target, o, n, a, l = this.options, s = l.group, c = k.active, u = Mt === s, d = l.sort, m = te || c, h, f = this, y = !1;
2127
2127
  if (Gr) return;
2128
2128
  function O(fe, je) {
2129
2129
  pe(fe, f, Se({
@@ -2138,7 +2138,7 @@ k.prototype = /** @lends Sortable.prototype */
2138
2138
  target: i,
2139
2139
  completed: U,
2140
2140
  onMove: function(qe, ze) {
2141
- return Bt(V, t, p, o, qe, G(qe), e, ze);
2141
+ return Bt(M, t, p, o, qe, G(qe), e, ze);
2142
2142
  },
2143
2143
  changed: ae
2144
2144
  }, je));
@@ -2166,26 +2166,26 @@ k.prototype = /** @lends Sortable.prototype */
2166
2166
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), i = we(i, l.draggable, t, !0), O("dragOver"), k.eventCanceled) return y;
2167
2167
  if (p.contains(e.target) || i.animated && i.animatingX && i.animatingY || f._ignoreWhileAnimating === i)
2168
2168
  return U(!1);
2169
- if (er = !1, c && !l.disabled && (u ? d || (a = F !== V) : te === this || (this.lastPutMode = Vt.checkPull(this, c, p, e)) && s.checkPut(this, c, p, e))) {
2169
+ if (er = !1, c && !l.disabled && (u ? d || (a = F !== M) : te === this || (this.lastPutMode = Mt.checkPull(this, c, p, e)) && s.checkPut(this, c, p, e))) {
2170
2170
  if (h = this._getDirection(e, i) === "vertical", o = G(p), O("dragOverValid"), k.eventCanceled) return y;
2171
2171
  if (a)
2172
- return F = V, J(), this._hideClone(), O("revert"), k.eventCanceled || (Ge ? V.insertBefore(p, Ge) : V.appendChild(p)), U(!0);
2172
+ return F = M, J(), this._hideClone(), O("revert"), k.eventCanceled || (Ge ? M.insertBefore(p, Ge) : M.appendChild(p)), U(!0);
2173
2173
  var K = ui(t, l.draggable);
2174
2174
  if (!K || Na(e, h, this) && !K.animated) {
2175
2175
  if (K === p)
2176
2176
  return U(!1);
2177
- if (K && t === e.target && (i = K), i && (n = G(i)), Bt(V, t, p, o, i, n, e, !!i) !== !1)
2177
+ if (K && t === e.target && (i = K), i && (n = G(i)), Bt(M, t, p, o, i, n, e, !!i) !== !1)
2178
2178
  return J(), K && K.nextSibling ? t.insertBefore(p, K.nextSibling) : t.appendChild(p), F = t, ae(), U(!0);
2179
- } else if (K && Ia(e, h, this)) {
2179
+ } else if (K && Va(e, h, this)) {
2180
2180
  var _ = dt(t, 0, l, !0);
2181
2181
  if (_ === p)
2182
2182
  return U(!1);
2183
- if (i = _, n = G(i), Bt(V, t, p, o, i, n, e, !1) !== !1)
2183
+ if (i = _, n = G(i), Bt(M, t, p, o, i, n, e, !1) !== !1)
2184
2184
  return J(), t.insertBefore(p, _), F = t, ae(), U(!0);
2185
2185
  } else if (i.parentNode === t) {
2186
2186
  n = G(i);
2187
- var b = 0, z, R = p.parentNode !== t, L = !Ra(p.animated && p.toRect || o, i.animated && i.toRect || n, h), Z = h ? "top" : "left", Y = Pi(i, "top", "top") || Pi(p, "top", "top"), M = Y ? Y.scrollTop : void 0;
2188
- tt !== i && (z = n[Z], St = !1, It = !L && l.invertSwap || R), b = Ba(e, i, n, h, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, It, tt === i);
2187
+ var b = 0, z, R = p.parentNode !== t, L = !Ra(p.animated && p.toRect || o, i.animated && i.toRect || n, h), Z = h ? "top" : "left", Y = Pi(i, "top", "top") || Pi(p, "top", "top"), I = Y ? Y.scrollTop : void 0;
2188
+ tt !== i && (z = n[Z], St = !1, Vt = !L && l.invertSwap || R), b = Ba(e, i, n, h, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Vt, tt === i);
2189
2189
  var D;
2190
2190
  if (b !== 0) {
2191
2191
  var X = ye(p);
@@ -2198,9 +2198,9 @@ k.prototype = /** @lends Sortable.prototype */
2198
2198
  tt = i, $t = b;
2199
2199
  var ce = i.nextElementSibling, ee = !1;
2200
2200
  ee = b === 1;
2201
- var de = Bt(V, t, p, o, i, n, e, ee);
2201
+ var de = Bt(M, t, p, o, i, n, e, ee);
2202
2202
  if (de !== !1)
2203
- return (de === 1 || de === -1) && (ee = de === 1), Gr = !0, setTimeout(Va, 30), J(), ee && !ce ? t.appendChild(p) : i.parentNode.insertBefore(p, ee ? ce : i), Y && mo(Y, 0, M - Y.scrollTop), F = p.parentNode, z !== void 0 && !It && (Xt = Math.abs(z - G(i)[Z])), ae(), U(!0);
2203
+ return (de === 1 || de === -1) && (ee = de === 1), Gr = !0, setTimeout(Ma, 30), J(), ee && !ce ? t.appendChild(p) : i.parentNode.insertBefore(p, ee ? ce : i), Y && mo(Y, 0, I - Y.scrollTop), F = p.parentNode, z !== void 0 && !Vt && (Xt = Math.abs(z - G(i)[Z])), ae(), U(!0);
2204
2204
  }
2205
2205
  if (t.contains(p))
2206
2206
  return U(!1);
@@ -2223,18 +2223,18 @@ k.prototype = /** @lends Sortable.prototype */
2223
2223
  this._nulling();
2224
2224
  return;
2225
2225
  }
2226
- it = !1, It = !1, St = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Jr(this.cloneId), Jr(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), kt && x(document.body, "user-select", ""), x(p, "transform", ""), e && (gt && (e.cancelable && e.preventDefault(), !i.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (V === F || te && te.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), p && (this.nativeDraggable && E(p, "dragend", this), Ur(p), p.style["will-change"] = "", gt && !it && ge(p, te ? te.options.ghostClass : this.options.ghostClass, !1), ge(p, this.options.chosenClass, !1), le({
2226
+ it = !1, Vt = !1, St = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Jr(this.cloneId), Jr(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), kt && x(document.body, "user-select", ""), x(p, "transform", ""), e && (gt && (e.cancelable && e.preventDefault(), !i.dropBubble && e.stopPropagation()), w && w.parentNode && w.parentNode.removeChild(w), (M === F || te && te.lastPutMode !== "clone") && B && B.parentNode && B.parentNode.removeChild(B), p && (this.nativeDraggable && E(p, "dragend", this), Ur(p), p.style["will-change"] = "", gt && !it && ge(p, te ? te.options.ghostClass : this.options.ghostClass, !1), ge(p, this.options.chosenClass, !1), le({
2227
2227
  sortable: this,
2228
2228
  name: "unchoose",
2229
2229
  toEl: F,
2230
2230
  newIndex: null,
2231
2231
  newDraggableIndex: null,
2232
2232
  originalEvent: e
2233
- }), V !== F ? (be >= 0 && (le({
2233
+ }), M !== F ? (be >= 0 && (le({
2234
2234
  rootEl: F,
2235
2235
  name: "add",
2236
2236
  toEl: F,
2237
- fromEl: V,
2237
+ fromEl: M,
2238
2238
  originalEvent: e
2239
2239
  }), le({
2240
2240
  sortable: this,
@@ -2245,7 +2245,7 @@ k.prototype = /** @lends Sortable.prototype */
2245
2245
  rootEl: F,
2246
2246
  name: "sort",
2247
2247
  toEl: F,
2248
- fromEl: V,
2248
+ fromEl: M,
2249
2249
  originalEvent: e
2250
2250
  }), le({
2251
2251
  sortable: this,
@@ -2270,9 +2270,9 @@ k.prototype = /** @lends Sortable.prototype */
2270
2270
  }), this.save()))), this._nulling();
2271
2271
  },
2272
2272
  _nulling: function() {
2273
- pe("nulling", this), V = p = F = w = Ge = B = Ft = Ve = Ye = ke = gt = be = Oe = at = _t = tt = $t = te = Vt = k.dragged = k.ghost = k.clone = k.active = null, rr.forEach(function(e) {
2273
+ pe("nulling", this), M = p = F = w = Ge = B = Ft = Me = Ye = ke = gt = be = Oe = at = _t = tt = $t = te = Mt = k.dragged = k.ghost = k.clone = k.active = null, rr.forEach(function(e) {
2274
2274
  e.checked = !0;
2275
- }), rr.length = Ir = Nr = 0;
2275
+ }), rr.length = Vr = Nr = 0;
2276
2276
  },
2277
2277
  handleEvent: function(e) {
2278
2278
  switch (e.type) {
@@ -2282,7 +2282,7 @@ k.prototype = /** @lends Sortable.prototype */
2282
2282
  break;
2283
2283
  case "dragenter":
2284
2284
  case "dragover":
2285
- p && (this._onDragOver(e), Ma(e));
2285
+ p && (this._onDragOver(e), Ia(e));
2286
2286
  break;
2287
2287
  case "selectstart":
2288
2288
  e.preventDefault();
@@ -2351,9 +2351,9 @@ k.prototype = /** @lends Sortable.prototype */
2351
2351
  }), this._onDrop(), this._disableDelayedDragEvents(), tr.splice(tr.indexOf(this.el), 1), this.el = e = null;
2352
2352
  },
2353
2353
  _hideClone: function() {
2354
- if (!Ve) {
2354
+ if (!Me) {
2355
2355
  if (pe("hideClone", this), k.eventCanceled) return;
2356
- x(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Ve = !0;
2356
+ x(B, "display", "none"), this.options.removeCloneOnHide && B.parentNode && B.parentNode.removeChild(B), Me = !0;
2357
2357
  }
2358
2358
  },
2359
2359
  _showClone: function(e) {
@@ -2361,13 +2361,13 @@ k.prototype = /** @lends Sortable.prototype */
2361
2361
  this._hideClone();
2362
2362
  return;
2363
2363
  }
2364
- if (Ve) {
2364
+ if (Me) {
2365
2365
  if (pe("showClone", this), k.eventCanceled) return;
2366
- p.parentNode == V && !this.options.group.revertClone ? V.insertBefore(B, p) : Ge ? V.insertBefore(B, Ge) : V.appendChild(B), this.options.group.revertClone && this.animate(p, B), x(B, "display", ""), Ve = !1;
2366
+ p.parentNode == M && !this.options.group.revertClone ? M.insertBefore(B, p) : Ge ? M.insertBefore(B, Ge) : M.appendChild(B), this.options.group.revertClone && this.animate(p, B), x(B, "display", ""), Me = !1;
2367
2367
  }
2368
2368
  }
2369
2369
  };
2370
- function Ma(r) {
2370
+ function Ia(r) {
2371
2371
  r.dataTransfer && (r.dataTransfer.dropEffect = "move"), r.cancelable && r.preventDefault();
2372
2372
  }
2373
2373
  function Bt(r, e, t, i, o, n, a, l) {
@@ -2380,10 +2380,10 @@ function Bt(r, e, t, i, o, n, a, l) {
2380
2380
  function Ur(r) {
2381
2381
  r.draggable = !1;
2382
2382
  }
2383
- function Va() {
2383
+ function Ma() {
2384
2384
  Gr = !1;
2385
2385
  }
2386
- function Ia(r, e, t) {
2386
+ function Va(r, e, t) {
2387
2387
  var i = G(dt(t.el, 0, t.options, !0)), o = fo(t.el, t.options, w), n = 10;
2388
2388
  return e ? r.clientX < o.left - n || r.clientY < i.top && r.clientX < i.right : r.clientY < o.top - n || r.clientY < i.bottom && r.clientX < i.left;
2389
2389
  }
@@ -2487,7 +2487,7 @@ function Fa() {
2487
2487
  !this.options.dragOverBubble && !i.rootEl && this._handleAutoScroll(i);
2488
2488
  },
2489
2489
  drop: function() {
2490
- this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Vi(), Yt(), Ea();
2490
+ this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Mi(), Yt(), Ea();
2491
2491
  },
2492
2492
  nulling: function() {
2493
2493
  ir = Kr = bt = Qr = yt = jr = qr = null, W.length = 0;
@@ -2500,7 +2500,7 @@ function Fa() {
2500
2500
  if (ir = t, i || this.options.forceAutoScrollFallback || Rt || Pe || kt) {
2501
2501
  Fr(t, this.options, l, i);
2502
2502
  var s = Ne(l, !0);
2503
- Qr && (!yt || n !== jr || a !== qr) && (yt && Vi(), yt = setInterval(function() {
2503
+ Qr && (!yt || n !== jr || a !== qr) && (yt && Mi(), yt = setInterval(function() {
2504
2504
  var c = Ne(document.elementFromPoint(n, a), !0);
2505
2505
  c !== s && (s = c, Yt()), Fr(t, o.options, c, i);
2506
2506
  }, 10), jr = n, qr = a);
@@ -2522,7 +2522,7 @@ function Yt() {
2522
2522
  clearInterval(r.pid);
2523
2523
  }), W = [];
2524
2524
  }
2525
- function Vi() {
2525
+ function Mi() {
2526
2526
  clearInterval(yt);
2527
2527
  }
2528
2528
  var Fr = po(function(r, e, t, i) {
@@ -2533,11 +2533,11 @@ var Fr = po(function(r, e, t, i) {
2533
2533
  do {
2534
2534
  var h = m, f = G(h), y = f.top, O = f.bottom, J = f.left, U = f.right, ae = f.width, K = f.height, _ = void 0, b = void 0, z = h.scrollWidth, R = h.scrollHeight, L = x(h), Z = h.scrollLeft, Y = h.scrollTop;
2535
2535
  h === s ? (_ = ae < z && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), b = K < R && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (_ = ae < z && (L.overflowX === "auto" || L.overflowX === "scroll"), b = K < R && (L.overflowY === "auto" || L.overflowY === "scroll"));
2536
- var M = _ && (Math.abs(U - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z), D = b && (Math.abs(O - n) <= a && Y + K < R) - (Math.abs(y - n) <= a && !!Y);
2536
+ var I = _ && (Math.abs(U - o) <= a && Z + ae < z) - (Math.abs(J - o) <= a && !!Z), D = b && (Math.abs(O - n) <= a && Y + K < R) - (Math.abs(y - n) <= a && !!Y);
2537
2537
  if (!W[d])
2538
2538
  for (var X = 0; X <= d; X++)
2539
2539
  W[X] || (W[X] = {});
2540
- (W[d].vx != M || W[d].vy != D || W[d].el !== h) && (W[d].el = h, W[d].vx = M, W[d].vy = D, clearInterval(W[d].pid), (M != 0 || D != 0) && (c = !0, W[d].pid = setInterval((function() {
2540
+ (W[d].vx != I || W[d].vy != D || W[d].el !== h) && (W[d].el = h, W[d].vx = I, W[d].vy = D, clearInterval(W[d].pid), (I != 0 || D != 0) && (c = !0, W[d].pid = setInterval((function() {
2541
2541
  i && this.layer === 0 && k.active._onTouchMove(ir);
2542
2542
  var ce = W[this.layer].vy ? W[this.layer].vy * l : 0, ee = W[this.layer].vx ? W[this.layer].vx * l : 0;
2543
2543
  typeof u == "function" && u.call(k.dragged.parentNode[he], ee, ce, r, ir, W[this.layer].el) !== "continue" || mo(W[this.layer].el, ee, ce);
@@ -2679,7 +2679,7 @@ function wo(r, e) {
2679
2679
  const t = r.get("minZoom"), i = r.get("maxZoom");
2680
2680
  return !!(e && (t !== -1 / 0 || i !== 1 / 0));
2681
2681
  }
2682
- function Ii(r, e) {
2682
+ function Vi(r, e) {
2683
2683
  var o, n, a;
2684
2684
  return !r || !e ? void 0 : r.getLayers ? "group" : ((a = (o = e.getInteractions().getArray().filter((l) => l.freehand_ !== void 0).map((l) => l.source_)) == null ? void 0 : o.ol_uid) == null ? void 0 : a.includes(
2685
2685
  // @ts-expect-error TODO
@@ -2766,7 +2766,7 @@ function _o(r, e) {
2766
2766
  let t = {};
2767
2767
  for (const o in r) {
2768
2768
  const n = r[o].type;
2769
- if (n && n !== "object")
2769
+ if (n && n !== "object" && e[o] !== void 0)
2770
2770
  t[o] = n === "number" ? Number(e[o]) : e[o];
2771
2771
  else if (typeof r[o] == "object" && ((i = r[o]) != null && i.properties)) {
2772
2772
  const a = _o(
@@ -2961,16 +2961,16 @@ function ol() {
2961
2961
  return u.Date.now();
2962
2962
  };
2963
2963
  function O(b, z, R) {
2964
- var L, Z, Y, M, D, X, ce = 0, ee = !1, de = !1, fe = !0;
2964
+ var L, Z, Y, I, D, X, ce = 0, ee = !1, de = !1, fe = !0;
2965
2965
  if (typeof b != "function")
2966
2966
  throw new TypeError(r);
2967
2967
  z = _(z) || 0, U(R) && (ee = !!R.leading, de = "maxWait" in R, Y = de ? h(_(R.maxWait) || 0, z) : Y, fe = "trailing" in R ? !!R.trailing : fe);
2968
2968
  function je(H) {
2969
2969
  var ue = L, Re = Z;
2970
- return L = Z = void 0, ce = H, M = b.apply(Re, ue), M;
2970
+ return L = Z = void 0, ce = H, I = b.apply(Re, ue), I;
2971
2971
  }
2972
2972
  function Ot(H) {
2973
- return ce = H, D = setTimeout(Fe, z), ee ? je(H) : M;
2973
+ return ce = H, D = setTimeout(Fe, z), ee ? je(H) : I;
2974
2974
  }
2975
2975
  function qe(H) {
2976
2976
  var ue = H - X, Re = H - ce, gi = z - ue;
@@ -2983,17 +2983,17 @@ function ol() {
2983
2983
  function Fe() {
2984
2984
  var H = y();
2985
2985
  if (ze(H))
2986
- return Mt(H);
2986
+ return It(H);
2987
2987
  D = setTimeout(Fe, qe(H));
2988
2988
  }
2989
- function Mt(H) {
2990
- return D = void 0, fe && L ? je(H) : (L = Z = void 0, M);
2989
+ function It(H) {
2990
+ return D = void 0, fe && L ? je(H) : (L = Z = void 0, I);
2991
2991
  }
2992
2992
  function Ar() {
2993
2993
  D !== void 0 && clearTimeout(D), ce = 0, L = X = Z = D = void 0;
2994
2994
  }
2995
2995
  function mt() {
2996
- return D === void 0 ? M : Mt(y());
2996
+ return D === void 0 ? I : It(y());
2997
2997
  }
2998
2998
  function N() {
2999
2999
  var H = y(), ue = ze(H);
@@ -3003,7 +3003,7 @@ function ol() {
3003
3003
  if (de)
3004
3004
  return D = setTimeout(Fe, z), je(X);
3005
3005
  }
3006
- return D === void 0 && (D = setTimeout(Fe, z)), M;
3006
+ return D === void 0 && (D = setTimeout(Fe, z)), I;
3007
3007
  }
3008
3008
  return N.cancel = Ar, N.flush = mt, N;
3009
3009
  }
@@ -3123,7 +3123,7 @@ class Do extends se {
3123
3123
  ${$(this, or)}
3124
3124
  ${!this.unstyled && $(this, nr)}
3125
3125
  </style>
3126
- ${I(
3126
+ ${V(
3127
3127
  this.layerLegend,
3128
3128
  () => g`
3129
3129
  <div class="legend-container">
@@ -3216,7 +3216,7 @@ class Po extends se {
3216
3216
  margin-bottom: 1rem;
3217
3217
  }
3218
3218
  `);
3219
- this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bi(q(this, Dt, ti), 1e3);
3219
+ this.layer = null, this.unstyled = !1, this.noShadow = !1, this.layerConfig = null, this.throttleDataChange = Bi(q(this, Dt, ti), 1e3), this.customEditorInterfaces = [];
3220
3220
  }
3221
3221
  /** Decide what type of throttling to do based on layerConfig type
3222
3222
  *
@@ -3249,10 +3249,10 @@ class Po extends se {
3249
3249
  ${$(this, ar)}
3250
3250
  ${!this.unstyled && $(this, lr)}
3251
3251
  </style>
3252
- ${I(
3252
+ ${V(
3253
3253
  this.layerConfig,
3254
3254
  () => g`
3255
- ${I(
3255
+ ${V(
3256
3256
  this.layerConfig.legend,
3257
3257
  () => g`
3258
3258
  <eox-layercontrol-layer-legend
@@ -3272,6 +3272,7 @@ class Po extends se {
3272
3272
  .value=${$(this, st)}
3273
3273
  .options=${t}
3274
3274
  .noShadow=${!0}
3275
+ .customEditorInterfaces=${this.customEditorInterfaces}
3275
3276
  @change=${this.throttleDataChange}
3276
3277
  ></eox-jsonform>
3277
3278
  `
@@ -3305,7 +3306,8 @@ j(Po, "properties", {
3305
3306
  layer: { attribute: !1 },
3306
3307
  unstyled: { type: Boolean },
3307
3308
  noShadow: { type: Boolean },
3308
- layerConfig: { attribute: !1 }
3309
+ layerConfig: { attribute: !1 },
3310
+ customEditorInterfaces: { attribute: !1, type: Array }
3309
3311
  });
3310
3312
  customElements.define(
3311
3313
  "eox-layercontrol-layerconfig",
@@ -3337,7 +3339,7 @@ class Ro extends se {
3337
3339
  ${$(this, cr)}
3338
3340
  ${!this.unstyled && $(this, dr)}
3339
3341
  </style>
3340
- ${I(
3342
+ ${V(
3341
3343
  this.layerDatetime,
3342
3344
  () => g`
3343
3345
  <!-- Render a Timecontrol for layer date time -->
@@ -3470,11 +3472,11 @@ class Oo extends se {
3470
3472
  </style>
3471
3473
  <div class="${this.toolsAsList ? "listed" : "tabbed"}">
3472
3474
  <!-- Navigation for tabs and actions -->
3473
- ${I(
3475
+ ${V(
3474
3476
  o,
3475
3477
  () => g`
3476
3478
  <nav>
3477
- ${I(
3479
+ ${V(
3478
3480
  !this.toolsAsList,
3479
3481
  () => g`
3480
3482
  <div>
@@ -3517,7 +3519,7 @@ class Oo extends se {
3517
3519
  ${Wt(
3518
3520
  t,
3519
3521
  (n, a) => g`
3520
- ${I(
3522
+ ${V(
3521
3523
  this.toolsAsList,
3522
3524
  () => g`
3523
3525
  <label>
@@ -3531,7 +3533,7 @@ class Oo extends se {
3531
3533
  <!-- Content slot for each tab -->
3532
3534
  <slot name=${`${n}-content`}>${n}</slot>
3533
3535
  </div>
3534
- ${I(
3536
+ ${V(
3535
3537
  this.toolsAsList && a < t.length - 1,
3536
3538
  () => g`<hr class="small" />`
3537
3539
  )}
@@ -3553,7 +3555,7 @@ j(Oo, "properties", {
3553
3555
  });
3554
3556
  customElements.define("eox-layercontrol-tools-items", Oo);
3555
3557
  var mr, hr;
3556
- class Mo extends se {
3558
+ class Io extends se {
3557
3559
  constructor() {
3558
3560
  super();
3559
3561
  // Initializes '_removeButton' invoking 'removeButton' function with 'this' context.
@@ -3593,7 +3595,7 @@ class Mo extends se {
3593
3595
  </div>
3594
3596
  <div slot="config-content">
3595
3597
  <!-- Layer configuration -->
3596
- ${I(
3598
+ ${V(
3597
3599
  this.layer.get("layerConfig"),
3598
3600
  () => g`
3599
3601
  <eox-layercontrol-layerconfig
@@ -3602,6 +3604,7 @@ class Mo extends se {
3602
3604
  .noShadow=${!0}
3603
3605
  .layerConfig=${this.layer.get("layerConfig")}
3604
3606
  .unstyled=${this.unstyled}
3607
+ .customEditorInterfaces=${this.customEditorInterfaces}
3605
3608
  @changed=${() => this.requestUpdate()}
3606
3609
  ></eox-layercontrol-layerconfig>
3607
3610
  `
@@ -3609,7 +3612,7 @@ class Mo extends se {
3609
3612
  </div>
3610
3613
  <div slot="datetime-content">
3611
3614
  <!-- Layer datetime -->
3612
- ${I(
3615
+ ${V(
3613
3616
  this.layer.get("layerDatetime"),
3614
3617
  () => g`
3615
3618
  <eox-layercontrol-layer-datetime
@@ -3626,7 +3629,7 @@ class Mo extends se {
3626
3629
  </div>
3627
3630
  <div slot="legend-content">
3628
3631
  <!-- Layer legend -->
3629
- ${I(
3632
+ ${V(
3630
3633
  this.layer.get("layerLegend"),
3631
3634
  () => g`
3632
3635
  <eox-layercontrol-layer-legend
@@ -3701,7 +3704,7 @@ class Mo extends se {
3701
3704
  this.layer = null, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, setTimeout(() => {
3702
3705
  var t;
3703
3706
  this.embedded = ((t = this.parentElement) == null ? void 0 : t.tagName) === "EOX-LAYERCONTROL-LAYER";
3704
- });
3707
+ }), this.customEditorInterfaces = [];
3705
3708
  }
3706
3709
  /**
3707
3710
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3716,10 +3719,10 @@ class Mo extends se {
3716
3719
  ${$(this, mr)}
3717
3720
  ${!this.unstyled && $(this, hr)}
3718
3721
  </style>
3719
- ${I(
3722
+ ${V(
3720
3723
  o + n > 0,
3721
3724
  () => g`
3722
- ${I(
3725
+ ${V(
3723
3726
  !(o === 1 && n === 0),
3724
3727
  () => g`
3725
3728
  <details
@@ -3752,17 +3755,18 @@ class Mo extends se {
3752
3755
  }
3753
3756
  }
3754
3757
  mr = new WeakMap(), hr = new WeakMap(), // Define static properties for the component
3755
- j(Mo, "properties", {
3758
+ j(Io, "properties", {
3756
3759
  layer: { attribute: !1 },
3757
3760
  tools: { attribute: !1 },
3758
3761
  unstyled: { type: Boolean },
3759
3762
  noShadow: { type: Boolean },
3760
3763
  toolsAsList: { type: Boolean },
3761
- embedded: { state: !0 }
3764
+ embedded: { state: !0 },
3765
+ customEditorInterfaces: { attribute: !1, type: Array }
3762
3766
  });
3763
3767
  customElements.define(
3764
3768
  "eox-layercontrol-layer-tools",
3765
- Mo
3769
+ Io
3766
3770
  );
3767
3771
  const al = (r) => {
3768
3772
  const e = () => {
@@ -3791,8 +3795,8 @@ const al = (r) => {
3791
3795
  new CustomEvent("changed", { bubbles: !0, detail: t })
3792
3796
  ), e.requestUpdate();
3793
3797
  };
3794
- var _e, ot, Io, fr, gr;
3795
- class Vo extends se {
3798
+ var _e, ot, Vo, fr, gr;
3799
+ class Mo extends se {
3796
3800
  constructor() {
3797
3801
  super();
3798
3802
  T(this, _e);
@@ -3868,7 +3872,7 @@ class Vo extends se {
3868
3872
  transition: none !important;
3869
3873
  }
3870
3874
  `);
3871
- this.layer = null, this.layerType = void 0, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1;
3875
+ this.layer = null, this.layerType = void 0, this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
3872
3876
  }
3873
3877
  /**
3874
3878
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -3902,14 +3906,14 @@ class Vo extends se {
3902
3906
  ${$(this, fr)}
3903
3907
  ${!this.unstyled && $(this, gr)}
3904
3908
  </style>
3905
- ${I(
3909
+ ${V(
3906
3910
  this.layer,
3907
3911
  () => g`
3908
3912
  <!-- Render the layer -->
3909
3913
  <nav
3910
3914
  class="layer ${n} ${i} ${o} responsive tiny-space"
3911
3915
  >
3912
- ${I(!this.unstyled, () => {
3916
+ ${V(!this.unstyled, () => {
3913
3917
  if (q(this, _e, ot).call(this, "color"))
3914
3918
  return g`
3915
3919
  <i class="small" style="color: ${q(this, _e, ot).call(this, "color")}">
@@ -3978,7 +3982,7 @@ class Vo extends se {
3978
3982
  >
3979
3983
  </div>
3980
3984
 
3981
- ${I(
3985
+ ${V(
3982
3986
  s,
3983
3987
  () => g`
3984
3988
  <button
@@ -3996,7 +4000,7 @@ class Vo extends se {
3996
4000
  </button>
3997
4001
  `
3998
4002
  )}
3999
- ${I(
4003
+ ${V(
4000
4004
  !s && l,
4001
4005
  () => this.tools[0] === "remove" ? zo(this, zt()[this.tools[0]]) : Eo(this, zt()[this.tools[0]], !1)
4002
4006
  )}
@@ -4008,7 +4012,7 @@ class Vo extends se {
4008
4012
  <input
4009
4013
  type=${a}
4010
4014
  .checked=${To(t)}
4011
- @click=${q(this, _e, Io)}
4015
+ @click=${q(this, _e, Vo)}
4012
4016
  disabled=${n || P}
4013
4017
  />
4014
4018
  <span>
@@ -4036,7 +4040,7 @@ class Vo extends se {
4036
4040
  )}
4037
4041
 
4038
4042
  <!-- Render layer tools -->
4039
- ${I(
4043
+ ${V(
4040
4044
  s && !c,
4041
4045
  () => g`
4042
4046
  <eox-layercontrol-layer-tools
@@ -4045,6 +4049,7 @@ class Vo extends se {
4045
4049
  .tools=${this.tools}
4046
4050
  .unstyled=${this.unstyled}
4047
4051
  .toolsAsList=${this.toolsAsList}
4052
+ .customEditorInterfaces=${this.customEditorInterfaces}
4048
4053
  ></eox-layercontrol-layer-tools>
4049
4054
  `
4050
4055
  )}
@@ -4065,10 +4070,10 @@ ot = function(t) {
4065
4070
  *
4066
4071
  * @param {{target: { checked: boolean }}} evt - The input change event.
4067
4072
  */
4068
- Io = function(t) {
4073
+ Vo = function(t) {
4069
4074
  ll(t, this);
4070
4075
  }, fr = new WeakMap(), gr = new WeakMap(), // Define static properties for the component
4071
- j(Vo, "properties", {
4076
+ j(Mo, "properties", {
4072
4077
  layer: { attribute: !1 },
4073
4078
  layerType: { attribute: !1 },
4074
4079
  map: { attribute: !1, state: !0 },
@@ -4078,9 +4083,10 @@ j(Vo, "properties", {
4078
4083
  unstyled: { type: Boolean },
4079
4084
  noShadow: { type: Boolean },
4080
4085
  toolsAsList: { type: Boolean },
4081
- globallyExclusiveLayers: { type: Boolean }
4086
+ globallyExclusiveLayers: { type: Boolean },
4087
+ customEditorInterfaces: { attribute: !1, type: Array }
4082
4088
  });
4083
- customElements.define("eox-layercontrol-layer", Vo);
4089
+ customElements.define("eox-layercontrol-layer", Mo);
4084
4090
  var br, yr;
4085
4091
  class No extends se {
4086
4092
  constructor() {
@@ -4110,7 +4116,7 @@ class No extends se {
4110
4116
  left: calc(var(--padding) + var(--list-padding) - .5rem);
4111
4117
  }
4112
4118
  `);
4113
- this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1;
4119
+ this.group = null, this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = [], this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
4114
4120
  }
4115
4121
  /**
4116
4122
  * Overrides the default behavior of creating the render root element.
@@ -4134,7 +4140,7 @@ class No extends se {
4134
4140
  ${$(this, br)}
4135
4141
  ${!this.unstyled && $(this, yr)}
4136
4142
  </style>
4137
- ${I(
4143
+ ${V(
4138
4144
  this.group,
4139
4145
  () => g`
4140
4146
  <!-- Render the details element with the layer control -->
@@ -4144,7 +4150,7 @@ class No extends se {
4144
4150
  data-children-length=${i}
4145
4151
  >
4146
4152
  <summary class="square">
4147
- ${I(
4153
+ ${V(
4148
4154
  i > 0,
4149
4155
  () => g`
4150
4156
  <!-- Open/close arrow -->
@@ -4176,6 +4182,7 @@ class No extends se {
4176
4182
  .unstyled=${this.unstyled}
4177
4183
  .toolsAsList=${this.toolsAsList}
4178
4184
  .globallyExclusiveLayers=${this.globallyExclusiveLayers}
4185
+ .customEditorInterfaces=${this.customEditorInterfaces}
4179
4186
  @changed=${() => this.requestUpdate()}
4180
4187
  ></eox-layercontrol-layer>
4181
4188
  </summary>
@@ -4211,7 +4218,8 @@ j(No, "properties", {
4211
4218
  unstyled: { type: Boolean },
4212
4219
  noShadow: { type: Boolean },
4213
4220
  toolsAsList: { type: Boolean },
4214
- globallyExclusiveLayers: { type: Boolean }
4221
+ globallyExclusiveLayers: { type: Boolean },
4222
+ customEditorInterfaces: { attribute: !1, type: Array }
4215
4223
  });
4216
4224
  customElements.define(
4217
4225
  "eox-layercontrol-layer-group",
@@ -4225,7 +4233,7 @@ function sl() {
4225
4233
  return u.Date.now();
4226
4234
  };
4227
4235
  function O(_, b, z) {
4228
- var R, L, Z, Y, M, D, X = 0, ce = !1, ee = !1, de = !0;
4236
+ var R, L, Z, Y, I, D, X = 0, ce = !1, ee = !1, de = !0;
4229
4237
  if (typeof _ != "function")
4230
4238
  throw new TypeError(r);
4231
4239
  b = K(b) || 0, J(z) && (ce = !!z.leading, ee = "maxWait" in z, Z = ee ? h(K(z.maxWait) || 0, b) : Z, de = "trailing" in z ? !!z.trailing : de);
@@ -4234,7 +4242,7 @@ function sl() {
4234
4242
  return R = L = void 0, X = N, Y = _.apply(ue, H), Y;
4235
4243
  }
4236
4244
  function je(N) {
4237
- return X = N, M = setTimeout(ze, b), ce ? fe(N) : Y;
4245
+ return X = N, I = setTimeout(ze, b), ce ? fe(N) : Y;
4238
4246
  }
4239
4247
  function Ot(N) {
4240
4248
  var H = N - D, ue = N - X, Re = b - H;
@@ -4248,28 +4256,28 @@ function sl() {
4248
4256
  var N = y();
4249
4257
  if (qe(N))
4250
4258
  return Fe(N);
4251
- M = setTimeout(ze, Ot(N));
4259
+ I = setTimeout(ze, Ot(N));
4252
4260
  }
4253
4261
  function Fe(N) {
4254
- return M = void 0, de && R ? fe(N) : (R = L = void 0, Y);
4262
+ return I = void 0, de && R ? fe(N) : (R = L = void 0, Y);
4255
4263
  }
4256
- function Mt() {
4257
- M !== void 0 && clearTimeout(M), X = 0, R = D = L = M = void 0;
4264
+ function It() {
4265
+ I !== void 0 && clearTimeout(I), X = 0, R = D = L = I = void 0;
4258
4266
  }
4259
4267
  function Ar() {
4260
- return M === void 0 ? Y : Fe(y());
4268
+ return I === void 0 ? Y : Fe(y());
4261
4269
  }
4262
4270
  function mt() {
4263
4271
  var N = y(), H = qe(N);
4264
4272
  if (R = arguments, L = this, D = N, H) {
4265
- if (M === void 0)
4273
+ if (I === void 0)
4266
4274
  return je(D);
4267
4275
  if (ee)
4268
- return M = setTimeout(ze, b), fe(D);
4276
+ return I = setTimeout(ze, b), fe(D);
4269
4277
  }
4270
- return M === void 0 && (M = setTimeout(ze, b)), Y;
4278
+ return I === void 0 && (I = setTimeout(ze, b)), Y;
4271
4279
  }
4272
- return mt.cancel = Mt, mt.flush = Ar, mt;
4280
+ return mt.cancel = It, mt.flush = Ar, mt;
4273
4281
  }
4274
4282
  function J(_) {
4275
4283
  var b = typeof _;
@@ -4354,7 +4362,7 @@ class Bo extends se {
4354
4362
  padding: 0;
4355
4363
  }
4356
4364
  `);
4357
- this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1;
4365
+ this.idProperty = "id", this.layers = null, this.map = null, this.tools = void 0, this.titleProperty = "title", this.showLayerZoomState = !1, this.unstyled = !1, this.noShadow = !1, this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
4358
4366
  }
4359
4367
  /**
4360
4368
  * Executes specific logic after the initial render of the component.
@@ -4380,7 +4388,7 @@ class Bo extends se {
4380
4388
  ${!this.unstyled && $(this, xr)}
4381
4389
  </style>
4382
4390
  <ul class="list no-space">
4383
- ${I(
4391
+ ${V(
4384
4392
  this.layers,
4385
4393
  () => g`
4386
4394
  ${Sn(
@@ -4389,7 +4397,7 @@ class Bo extends se {
4389
4397
  (i) => g`
4390
4398
  <li
4391
4399
  data-layer="${i.get(this.idProperty)}"
4392
- data-type="${Ii(i, this.map)}"
4400
+ data-type="${Vi(i, this.map)}"
4393
4401
  class="square"
4394
4402
  >
4395
4403
  ${/** Checks if the layer is a group or individual layer and renders accordingly */
@@ -4406,6 +4414,7 @@ class Bo extends se {
4406
4414
  .unstyled=${this.unstyled}
4407
4415
  .toolsAsList=${this.toolsAsList}
4408
4416
  .globallyExclusiveLayers=${this.globallyExclusiveLayers}
4417
+ .customEditorInterfaces=${this.customEditorInterfaces}
4409
4418
  @changed=${() => this.requestUpdate()}
4410
4419
  >
4411
4420
  </eox-layercontrol-layer-group>
@@ -4416,11 +4425,12 @@ class Bo extends se {
4416
4425
  .map=${this.map}
4417
4426
  .titleProperty=${this.titleProperty}
4418
4427
  .showLayerZoomState=${this.showLayerZoomState}
4419
- .layerType=${Ii(i, this.map)}
4428
+ .layerType=${Vi(i, this.map)}
4420
4429
  .tools=${this.tools}
4421
4430
  .unstyled=${this.unstyled}
4422
4431
  .toolsAsList=${this.toolsAsList}
4423
4432
  .globallyExclusiveLayers=${this.globallyExclusiveLayers}
4433
+ .customEditorInterfaces=${this.customEditorInterfaces}
4424
4434
  @changed=${() => this.requestUpdate()}
4425
4435
  ></eox-layercontrol-layer>
4426
4436
  `}
@@ -4444,7 +4454,8 @@ j(Bo, "properties", {
4444
4454
  unstyled: { type: Boolean },
4445
4455
  noShadow: { type: Boolean },
4446
4456
  toolsAsList: { type: Boolean },
4447
- globallyExclusiveLayers: { type: Boolean }
4457
+ globallyExclusiveLayers: { type: Boolean },
4458
+ customEditorInterfaces: { attribute: !1, type: Array }
4448
4459
  });
4449
4460
  customElements.define("eox-layercontrol-layer-list", Bo);
4450
4461
  const pl = (r) => {
@@ -4885,7 +4896,7 @@ const yl = (r, e) => {
4885
4896
  e;
4886
4897
  };
4887
4898
  vl();
4888
- var Ie, ut, Go, Jo, _r;
4899
+ var Ve, ut, Go, Jo, _r;
4889
4900
  class Wo extends se {
4890
4901
  // Constructor to set default values for properties
4891
4902
  constructor() {
@@ -4896,7 +4907,7 @@ class Wo extends se {
4896
4907
  *
4897
4908
  * @type {import("@eox/map").EOxMap}
4898
4909
  */
4899
- T(this, Ie);
4910
+ T(this, Ve);
4900
4911
  T(this, _r, `
4901
4912
  ${Er}
4902
4913
  :host, :root {
@@ -4939,7 +4950,7 @@ class Wo extends se {
4939
4950
  background-color: var(--background-color);
4940
4951
  }
4941
4952
  `);
4942
- this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1, this.globallyExclusiveLayers = !1;
4953
+ this.for = "eox-map", this.idProperty = "id", this.map = null, this.titleProperty = "title", this.showLayerZoomState = !1, this.tools = ["info", "opacity", "datetime", "config", "remove", "sort"], this.addExternalLayers = !1, this.unstyled = !1, this.styleOverride = "", this.toolsAsList = !1, this.globallyExclusiveLayers = !1, this.customEditorInterfaces = [];
4943
4954
  }
4944
4955
  /**
4945
4956
  * Called when the component is first updated
@@ -4952,11 +4963,11 @@ class Wo extends se {
4952
4963
  t.has("for") && (this.eoxMap = qi(this));
4953
4964
  }
4954
4965
  get eoxMap() {
4955
- return $(this, Ie);
4966
+ return $(this, Ve);
4956
4967
  }
4957
4968
  set eoxMap(t) {
4958
- const i = $(this, Ie);
4959
- Ee(this, Ie, t), this.requestUpdate("eoxMap", i);
4969
+ const i = $(this, Ve);
4970
+ Ee(this, Ve, t), this.requestUpdate("eoxMap", i);
4960
4971
  }
4961
4972
  render() {
4962
4973
  var o, n, a;
@@ -4974,19 +4985,19 @@ class Wo extends se {
4974
4985
  </span>
4975
4986
 
4976
4987
  <!-- Conditional rendering of add layers component -->
4977
- ${I(
4978
- this.addExternalLayers && ((a = $(this, Ie)) == null ? void 0 : a.addOrUpdateLayer),
4988
+ ${V(
4989
+ this.addExternalLayers && ((a = $(this, Ve)) == null ? void 0 : a.addOrUpdateLayer),
4979
4990
  () => g`
4980
4991
  <eox-layercontrol-add-layers
4981
4992
  .noShadow=${!0}
4982
- .eoxMap=${$(this, Ie)}
4993
+ .eoxMap=${$(this, Ve)}
4983
4994
  .unstyled=${this.unstyled}
4984
4995
  ></eox-layercontrol-add-layers>
4985
4996
  `
4986
4997
  )}
4987
4998
 
4988
4999
  <!-- Conditional rendering of layer list component -->
4989
- ${I(
5000
+ ${V(
4990
5001
  this.map,
4991
5002
  () => g`
4992
5003
  <eox-layercontrol-layer-list
@@ -5001,6 +5012,7 @@ class Wo extends se {
5001
5012
  .unstyled=${this.unstyled}
5002
5013
  .toolsAsList=${this.toolsAsList}
5003
5014
  .globallyExclusiveLayers=${this.globallyExclusiveLayers}
5015
+ .customEditorInterfaces=${this.customEditorInterfaces}
5004
5016
  @changed=${q(this, ut, Go)}
5005
5017
  @datetime:updated=${(l) => Co(l, this)}
5006
5018
  @layerConfig:change=${q(this, ut, Jo)}
@@ -5009,7 +5021,7 @@ class Wo extends se {
5009
5021
  )}
5010
5022
 
5011
5023
  <!-- Conditional rendering of optional list component -->
5012
- ${I(
5024
+ ${V(
5013
5025
  i,
5014
5026
  () => g`
5015
5027
  <eox-layercontrol-optional-list
@@ -5024,7 +5036,7 @@ class Wo extends se {
5024
5036
  `;
5025
5037
  }
5026
5038
  }
5027
- Ie = new WeakMap(), ut = new WeakSet(), /**
5039
+ Ve = new WeakMap(), ut = new WeakSet(), /**
5028
5040
  * Event handler for changes in the layer list
5029
5041
  *
5030
5042
  * @param {CustomEvent & {target: Element}} evt
@@ -5054,7 +5066,8 @@ j(Wo, "properties", {
5054
5066
  globallyExclusiveLayers: {
5055
5067
  attribute: "globally-exclusive-layers",
5056
5068
  type: Boolean
5057
- }
5069
+ },
5070
+ customEditorInterfaces: { attribute: !1, type: Array }
5058
5071
  });
5059
5072
  customElements.define("eox-layercontrol", Wo);
5060
5073
  export {