dsp-semactic 0.6.32 → 0.6.34

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/dist/index.es.js CHANGED
@@ -96,7 +96,7 @@ const Rs = {
96
96
  const j = U.getDate(), X = U.getMonth() + 1, ye = U.getFullYear(), Ue = (bt) => String(bt).padStart(2, "0");
97
97
  return `${Ue(j)}/${Ue(X)}/${ye}`;
98
98
  }
99
- const Tt = h(() => St(et.value)), Ll = h(() => {
99
+ const Tt = h(() => St(et.value)), El = h(() => {
100
100
  const { start: U, end: j } = Yt.value;
101
101
  if (!U && !j) return "";
102
102
  const X = !j || U && U <= j ? U : j, ye = !U || j && j >= U ? j : U;
@@ -235,7 +235,7 @@ const Rs = {
235
235
  const j = et.value, X = Yt.value, ye = K(U), Ue = Ut.value && X.start && X.end && ye > K(X.start) && ye < K(X.end), bt = Ut.value && X.start && G(U, X.start), wt = Ut.value && X.end && G(U, X.end), it = bt && wt, mt = st.value && j && G(U, j) || bt || wt;
236
236
  let Rl = !1;
237
237
  if (Ut.value && X.start && !X.end && Ae.value) {
238
- const Hl = K(X.start), Wl = K(Ae.value), an = Math.min(Hl, Wl), dn = Math.max(Hl, Wl);
238
+ const Tl = K(X.start), Wl = K(Ae.value), an = Math.min(Tl, Wl), dn = Math.max(Tl, Wl);
239
239
  Rl = ye > an && ye < dn;
240
240
  }
241
241
  return {
@@ -268,11 +268,11 @@ const Rs = {
268
268
  if (!N.doubleCalendar || !Ut.value) return;
269
269
  const U = Yt.value, { start: j, end: X } = U;
270
270
  if (j && X) {
271
- const bt = j <= X ? j : X, wt = j <= X ? X : j, it = bt.getMonth(), mt = bt.getFullYear(), Rl = wt.getMonth(), Hl = wt.getFullYear();
272
- if (it !== Rl || mt !== Hl) {
273
- const Wl = xe.value === it && ve.value === mt, an = ee.value === Rl && Me.value === Hl;
271
+ const bt = j <= X ? j : X, wt = j <= X ? X : j, it = bt.getMonth(), mt = bt.getFullYear(), Rl = wt.getMonth(), Tl = wt.getFullYear();
272
+ if (it !== Rl || mt !== Tl) {
273
+ const Wl = xe.value === it && ve.value === mt, an = ee.value === Rl && Me.value === Tl;
274
274
  if (Wl && an) return;
275
- xe.value = it, ve.value = mt, ee.value = Rl, Me.value = Hl;
275
+ xe.value = it, ve.value = mt, ee.value = Rl, Me.value = Tl;
276
276
  } else {
277
277
  const Wl = it === 0 ? 11 : it - 1, an = it === 0 ? mt - 1 : mt;
278
278
  xe.value === Wl && ve.value === an && ee.value === it && Me.value === mt || (xe.value = it, ve.value = mt, it === 11 ? (ee.value = 0, Me.value = mt + 1) : (ee.value = it + 1, Me.value = mt));
@@ -389,7 +389,7 @@ const Rs = {
389
389
  function gn() {
390
390
  ee.value === 11 ? (ee.value = 0, Me.value++) : ee.value++;
391
391
  }
392
- function El(U) {
392
+ function Hl(U) {
393
393
  if (!T(U)) return;
394
394
  const j = new Date(U.getFullYear(), U.getMonth(), U.getDate());
395
395
  if (st.value) {
@@ -522,7 +522,7 @@ const Rs = {
522
522
  type: "text",
523
523
  class: "dss-datepicker__input",
524
524
  placeholder: N.placeholder || R(me)("datepicker.selectRange"),
525
- value: Ll.value,
525
+ value: El.value,
526
526
  readonly: ""
527
527
  }, null, 8, Fs)
528
528
  ], 512)) : V("", !0),
@@ -595,7 +595,7 @@ const Rs = {
595
595
  type: "button",
596
596
  class: se(["dss-datepicker__day", _(X)]),
597
597
  disabled: !T(X),
598
- onClick: (Ue) => El(X),
598
+ onClick: (Ue) => Hl(X),
599
599
  onMouseenter: (Ue) => A(X),
600
600
  onMouseleave: ue
601
601
  }, E(X.getDate()), 43, Ks)) : (u(), d("span", Gs))
@@ -644,7 +644,7 @@ const Rs = {
644
644
  type: "button",
645
645
  class: se(["dss-datepicker__day", _(X)]),
646
646
  disabled: !T(X),
647
- onClick: (Ue) => El(X),
647
+ onClick: (Ue) => Hl(X),
648
648
  onMouseenter: (Ue) => A(X),
649
649
  onMouseleave: ue
650
650
  }, E(X.getDate()), 43, so)) : (u(), d("span", oo))
@@ -692,7 +692,7 @@ const Rs = {
692
692
  type: "button",
693
693
  class: se(["dss-datepicker__day", _(X)]),
694
694
  disabled: !T(X),
695
- onClick: (Ue) => El(X),
695
+ onClick: (Ue) => Hl(X),
696
696
  onMouseenter: (Ue) => A(X),
697
697
  onMouseleave: ue
698
698
  }, E(X.getDate()), 43, po)) : (u(), d("span", ho))
@@ -1106,7 +1106,7 @@ const Rs = {
1106
1106
  if (Ze.value && et.value === "semi-radial" && He.value != null)
1107
1107
  return Ct.value + st.value + "px";
1108
1108
  if (Ze.value) return "100%";
1109
- if (Dl.value)
1109
+ if (Sl.value)
1110
1110
  return Ct.value + st.value + "px";
1111
1111
  if (Xt.value && ht.value === "bottom") {
1112
1112
  const e = at();
@@ -1125,7 +1125,7 @@ const Rs = {
1125
1125
  }), Tt = h(() => {
1126
1126
  const e = W.value;
1127
1127
  return e && e.subtitle && e.subtitle.text ? e.subtitle.text : "";
1128
- }), Ll = h(() => {
1128
+ }), El = h(() => {
1129
1129
  const e = W.value;
1130
1130
  if (!e || !e.zAxis) return "";
1131
1131
  const o = e.zAxis;
@@ -1188,7 +1188,7 @@ const Rs = {
1188
1188
  const e = W.value;
1189
1189
  return e && e.stroke && typeof e.stroke.width == "number" ? e.stroke.width : 2;
1190
1190
  }), ft = h(() => {
1191
- if (!Dl.value) return 0;
1191
+ if (!Sl.value) return 0;
1192
1192
  const e = W.value;
1193
1193
  return e && e.stroke && typeof e.stroke.width == "number" ? e.stroke.width : 0;
1194
1194
  }), Le = h(() => {
@@ -1267,7 +1267,7 @@ const Rs = {
1267
1267
  }), gn = h(() => {
1268
1268
  const e = W.value;
1269
1269
  return e && e.contextMenu && Array.isArray(e.contextMenu.customItems) ? e.contextMenu.customItems : [];
1270
- }), El = h(() => {
1270
+ }), Hl = h(() => {
1271
1271
  const e = W.value;
1272
1272
  return e && e.markers && e.markers.icon ? e.markers.icon : Wl.value;
1273
1273
  }), cl = h(() => {
@@ -1286,7 +1286,7 @@ const Rs = {
1286
1286
  return o ? t + o : t;
1287
1287
  }, U = h(() => !ae.value.isZooming);
1288
1288
  h(() => Ht.value.map((e) => {
1289
- if (e.categoryIndex !== void 0 && (Vl.value || vl.value)) {
1289
+ if (e.categoryIndex !== void 0 && (Dl.value || vl.value)) {
1290
1290
  const o = fl(e.categoryIndex), t = ve.value + Y.value.bottom - Qt.value / 2;
1291
1291
  return {
1292
1292
  ...e,
@@ -1316,7 +1316,7 @@ const Rs = {
1316
1316
  const r = j(t.marker_date, O.categories), g = fl(r), C = ve.value + Y.value.bottom - Qt.value / 2;
1317
1317
  return { ...t, x: g, y: C, categoryIndex: r, source: "props" };
1318
1318
  }), o = Ht.value.map((t) => {
1319
- if (t.categoryIndex !== void 0 && (Vl.value || vl.value)) {
1319
+ if (t.categoryIndex !== void 0 && (Dl.value || vl.value)) {
1320
1320
  const r = fl(t.categoryIndex), g = ve.value + Y.value.bottom - Qt.value / 2;
1321
1321
  return {
1322
1322
  ...t,
@@ -1384,7 +1384,7 @@ const Rs = {
1384
1384
  backgroundPositionY: g + "px",
1385
1385
  backgroundSize: `${e}px ${o}px`
1386
1386
  };
1387
- }), Rl = (e) => !O.flags || !O.flags.length ? [] : O.flags.filter((o) => o.categoryIndex === e), Hl = (e) => {
1387
+ }), Rl = (e) => !O.flags || !O.flags.length ? [] : O.flags.filter((o) => o.categoryIndex === e), Tl = (e) => {
1388
1388
  const o = Rl(e), t = ea(e), r = o.filter(($) => $.manual), g = o.filter(($) => !$.manual), C = [];
1389
1389
  return r.length > 0 && C.push({
1390
1390
  type: N("chart.tooltip.manualFlags"),
@@ -1501,7 +1501,7 @@ const Rs = {
1501
1501
  const o = W.value?.radialBar?.dataCenter?.color;
1502
1502
  return typeof o == "string" && o ? o : "#333";
1503
1503
  }), Kl = h(() => {
1504
- if (!ia.value || !Dl.value || !l.value.length) return [];
1504
+ if (!ia.value || !Sl.value || !l.value.length) return [];
1505
1505
  const e = ra.value * Math.PI / 180, o = (gl.value + Rt.value) / 2;
1506
1506
  return l.value.map((t) => {
1507
1507
  const g = t.endAngle - t.startAngle >= e && !t.isHidden, C = zt.value + Math.cos(t.midAngle) * o, $ = Zt.value + Math.sin(t.midAngle) * o;
@@ -1677,7 +1677,7 @@ const Rs = {
1677
1677
  }
1678
1678
  return;
1679
1679
  }
1680
- if (ae.value.isDragging && ae.value.scale > 1 && Vl.value && Pe.value) {
1680
+ if (ae.value.isDragging && ae.value.scale > 1 && Dl.value && Pe.value) {
1681
1681
  vt.value.show = !1;
1682
1682
  const tt = e.clientX - ae.value.lastMouseX, { minX: pe, maxX: _e } = sl.value, De = _e - pe || 1, rt = tt * 0.8;
1683
1683
  ae.value.offsetX += rt;
@@ -1685,7 +1685,7 @@ const Rs = {
1685
1685
  ae.value.offsetX = Math.max(Ge, Math.min(Bt, ae.value.offsetX)), ae.value.lastMouseX = e.clientX, ae.value.lastMouseY = e.clientY;
1686
1686
  return;
1687
1687
  }
1688
- if (!oe.value || !Vl.value || ae.value.isDragging || ae.value.isZooming || !C) {
1688
+ if (!oe.value || !Dl.value || ae.value.isDragging || ae.value.isZooming || !C) {
1689
1689
  vt.value.show = !1;
1690
1690
  return;
1691
1691
  }
@@ -1697,7 +1697,7 @@ const Rs = {
1697
1697
  seriesName: _e.name,
1698
1698
  value: rt !== void 0 ? rt : null,
1699
1699
  color: ll(Ce),
1700
- y: rt !== void 0 ? $l(rt) : null
1700
+ y: rt !== void 0 ? Al(rt) : null
1701
1701
  };
1702
1702
  }).filter((_e) => _e.value !== null);
1703
1703
  vt.value = {
@@ -1714,7 +1714,7 @@ const Rs = {
1714
1714
  }, nl = (e) => {
1715
1715
  if (e.preventDefault(), e.stopPropagation(), !Vt.value) return;
1716
1716
  const o = e.currentTarget.getBoundingClientRect(), t = e.clientX - o.left, r = e.clientY - o.top;
1717
- if (Dl.value) {
1717
+ if (Sl.value) {
1718
1718
  Et.value.show = !1, we(() => {
1719
1719
  Et.value.show = !0, Et.value.x = e.clientX, Et.value.y = e.clientY, Et.value.categoryIndex = null;
1720
1720
  });
@@ -1726,7 +1726,7 @@ const Rs = {
1726
1726
  const Z = Math.max(Y.value.left, Math.min(t, Y.value.right)) - Y.value.left, q = Y.value.width / Bn.value.length, D = Math.floor(Z / q);
1727
1727
  D >= 0 && D < Bn.value.length && (Et.value.categoryIndex = D);
1728
1728
  }));
1729
- }, Tl = (e) => {
1729
+ }, Vl = (e) => {
1730
1730
  if (!(e && e.button === 2)) {
1731
1731
  if (Et.value.show && e && e.type === "click") {
1732
1732
  const o = document.querySelector(".dss-context-menu");
@@ -1754,13 +1754,13 @@ const Rs = {
1754
1754
  }, va = (e) => {
1755
1755
  const o = ["dss-context-menu-item"];
1756
1756
  return e.cssClass && o.push(e.cssClass), o;
1757
- }, fa = (e) => e.style || {}, dl = (e) => e.type && cl.value[e.type] ? cl.value[e.type] : e.customIcon ? e.customIcon : El.value, Gl = (e) => e == null ? "" : O.categories && O.categories[e] ? O.categories[e] : "", ea = (e) => Ht.value.length ? Ht.value.filter((o) => o.categoryIndex === e) : [], ta = (e) => {
1758
- if (!Vl.value && !vl.value) return { x: 0, y: 0 };
1757
+ }, fa = (e) => e.style || {}, dl = (e) => e.type && cl.value[e.type] ? cl.value[e.type] : e.customIcon ? e.customIcon : Hl.value, Gl = (e) => e == null ? "" : O.categories && O.categories[e] ? O.categories[e] : "", ea = (e) => Ht.value.length ? Ht.value.filter((o) => o.categoryIndex === e) : [], ta = (e) => {
1758
+ if (!Dl.value && !vl.value) return { x: 0, y: 0 };
1759
1759
  const o = fl(e), t = ve.value + Y.value.bottom - Qt.value / 2;
1760
1760
  return { x: o, y: t };
1761
1761
  }, k = () => {
1762
1762
  Ht.value.forEach((e) => {
1763
- if (e.categoryIndex !== void 0 && (Vl.value || vl.value)) {
1763
+ if (e.categoryIndex !== void 0 && (Dl.value || vl.value)) {
1764
1764
  const o = ta(e.categoryIndex);
1765
1765
  e.x = o.x, e.y = o.y;
1766
1766
  }
@@ -1781,7 +1781,7 @@ const Rs = {
1781
1781
  if (vl.value) {
1782
1782
  const { maxX: $ } = sl.value;
1783
1783
  o = Math.max(0, Math.min(o, Math.floor($)));
1784
- } else Vl.value && (o = Math.max(0, Math.min(o, sl.value.maxX)));
1784
+ } else Dl.value && (o = Math.max(0, Math.min(o, sl.value.maxX)));
1785
1785
  const t = fl(o), r = ve.value + Y.value.bottom - Qt.value / 2, g = Array.isArray(O.categories) ? O.categories[o] : null, C = {
1786
1786
  id: e,
1787
1787
  title: "",
@@ -1976,7 +1976,7 @@ const Rs = {
1976
1976
  ${Te}
1977
1977
  </g>
1978
1978
  </svg>`, pe = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), _e = URL.createObjectURL(pe), De = document.createElement("a");
1979
- De.href = _e, De.download = tl("svg"), document.body.appendChild(De), De.click(), document.body.removeChild(De), URL.revokeObjectURL(_e), ml(e), Tl();
1979
+ De.href = _e, De.download = tl("svg"), document.body.appendChild(De), De.click(), document.body.removeChild(De), URL.revokeObjectURL(_e), ml(e), Vl();
1980
1980
  } catch (o) {
1981
1981
  console.error("Error downloading SVG:", o), ml(e);
1982
1982
  }
@@ -2043,14 +2043,14 @@ const Rs = {
2043
2043
  }, Oe = () => {
2044
2044
  g.toBlob((Ge) => {
2045
2045
  const Bt = URL.createObjectURL(Ge), Wt = document.createElement("a");
2046
- Wt.href = Bt, Wt.download = tl("png"), document.body.appendChild(Wt), Wt.click(), document.body.removeChild(Wt), URL.revokeObjectURL(Bt), URL.revokeObjectURL(_e), ml(e), Tl(), Ce();
2046
+ Wt.href = Bt, Wt.download = tl("png"), document.body.appendChild(Wt), Wt.click(), document.body.removeChild(Wt), URL.revokeObjectURL(Bt), URL.revokeObjectURL(_e), ml(e), Vl(), Ce();
2047
2047
  }, "image/png");
2048
2048
  };
2049
2049
  Je.onload = We, Je.onerror = Oe, Je.src = an.value;
2050
2050
  } else
2051
2051
  g.toBlob((Je) => {
2052
2052
  const We = URL.createObjectURL(Je), Oe = document.createElement("a");
2053
- Oe.href = We, Oe.download = tl("png"), document.body.appendChild(Oe), Oe.click(), document.body.removeChild(Oe), URL.revokeObjectURL(We), URL.revokeObjectURL(_e), ml(e), Tl(), Ce();
2053
+ Oe.href = We, Oe.download = tl("png"), document.body.appendChild(Oe), Oe.click(), document.body.removeChild(Oe), URL.revokeObjectURL(We), URL.revokeObjectURL(_e), ml(e), Vl(), Ce();
2054
2054
  }, "image/png");
2055
2055
  } catch (Je) {
2056
2056
  URL.revokeObjectURL(_e), ml(e), rt(Je);
@@ -2084,7 +2084,7 @@ const Rs = {
2084
2084
  `;
2085
2085
  }
2086
2086
  const t = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = URL.createObjectURL(t), g = document.createElement("a");
2087
- g.href = r, g.download = tl("csv"), document.body.appendChild(g), g.click(), document.body.removeChild(g), URL.revokeObjectURL(r), Tl();
2087
+ g.href = r, g.download = tl("csv"), document.body.appendChild(g), g.click(), document.body.removeChild(g), URL.revokeObjectURL(r), Vl();
2088
2088
  } catch (e) {
2089
2089
  console.error("Error downloading CSV:", e);
2090
2090
  }
@@ -2103,9 +2103,9 @@ const Rs = {
2103
2103
  };
2104
2104
  e.action(o, t);
2105
2105
  }
2106
- Tl();
2106
+ Vl();
2107
2107
  }, Na = () => {
2108
- S(), Ye.value.show = !0, Ye.value.categoryIndex = Et.value.categoryIndex, Ye.value.fromButton = !1, Tl();
2108
+ S(), Ye.value.show = !0, Ye.value.categoryIndex = Et.value.categoryIndex, Ye.value.fromButton = !1, Vl();
2109
2109
  }, Ia = () => {
2110
2110
  S(), Ye.value.show = !0, Ye.value.categoryIndex = 0, Ye.value.fromButton = !0;
2111
2111
  }, Fa = (e) => {
@@ -2116,7 +2116,7 @@ const Rs = {
2116
2116
  }, Sa = (e) => {
2117
2117
  Et.value.show && !e.target.closest(".context-menu") && (Et.value.show = !1);
2118
2118
  }, $a = (e) => {
2119
- if (!Vl.value || !Pe.value) return;
2119
+ if (!Dl.value || !Pe.value) return;
2120
2120
  e.preventDefault(), e.stopPropagation(), ae.value.isZooming = !0, vt.value.show = !1, ae.value.zoomTimeout && clearTimeout(ae.value.zoomTimeout);
2121
2121
  const t = e.currentTarget.getBoundingClientRect(), r = e.clientX - t.left, g = e.clientY - t.top;
2122
2122
  if (r < Y.value.left - 50 || r > Y.value.right + 50 || g < Y.value.top - 50 || g > Y.value.bottom + 100) {
@@ -2137,15 +2137,15 @@ const Rs = {
2137
2137
  ae.value.isZooming = !1, ae.value.zoomTimeout = null;
2138
2138
  }, 300);
2139
2139
  }, ts = (e) => {
2140
- if (!Vl.value || !Pe.value || ae.value.scale <= 1) return;
2140
+ if (!Dl.value || !Pe.value || ae.value.scale <= 1) return;
2141
2141
  vt.value.show = !1;
2142
2142
  const t = e.currentTarget.getBoundingClientRect();
2143
2143
  e.clientX - t.left, e.clientY - t.top, ae.value.isDragging = !0, ae.value.lastMouseX = e.clientX, ae.value.lastMouseY = e.clientY, e.preventDefault();
2144
2144
  }, ls = () => {
2145
2145
  ae.value.isDragging = !1;
2146
2146
  }, Aa = () => {
2147
- !Vl.value || !Pe.value || (ae.value.scale = 1, ae.value.offsetX = 0, ae.value.isDragging = !1, ae.value.zoomTimeout && (clearTimeout(ae.value.zoomTimeout), ae.value.zoomTimeout = null), ae.value.isZooming = !1);
2148
- }, La = () => !Vl.value || !yn.value || !Pe.value ? "default" : ae.value.isDragging ? "grabbing" : ae.value.scale > 1 ? "grab" : "dss-crosshair", pa = (e) => {
2147
+ !Dl.value || !Pe.value || (ae.value.scale = 1, ae.value.offsetX = 0, ae.value.isDragging = !1, ae.value.zoomTimeout && (clearTimeout(ae.value.zoomTimeout), ae.value.zoomTimeout = null), ae.value.isZooming = !1);
2148
+ }, La = () => !Dl.value || !yn.value || !Pe.value ? "default" : ae.value.isDragging ? "grabbing" : ae.value.scale > 1 ? "grab" : "dss-crosshair", pa = (e) => {
2149
2149
  if (e.length < 2) return "";
2150
2150
  if (e.length === 2)
2151
2151
  return `M ${e[0].x} ${e[0].y} L ${e[1].x} ${e[1].y}`;
@@ -2162,7 +2162,7 @@ const Rs = {
2162
2162
  const D = { left: g + 40, top: g + 40, right: g + 40, bottom: g + 40 };
2163
2163
  return t != null ? { left: t, top: t, right: t, bottom: t } : r ? { left: r.left ?? D.left, top: r.top ?? D.top, right: r.right ?? D.right, bottom: r.bottom ?? D.bottom } : D;
2164
2164
  }
2165
- if (Dl.value) {
2165
+ if (Sl.value) {
2166
2166
  const D = !Xt.value, ie = dn.value, Te = ie ? $n.value + Kn.value + Math.max(24, Rn.value + 16) : 0, tt = D ? 12 : g;
2167
2167
  let pe = 0;
2168
2168
  St.value && (pe += D ? 8 : 15), Tt.value && (pe += D ? 6 : 10);
@@ -2191,13 +2191,13 @@ const Rs = {
2191
2191
  bottom: st.value - zl.value.bottom,
2192
2192
  width: Se.value - (zl.value.left + zl.value.right),
2193
2193
  height: st.value - (zl.value.top + zl.value.bottom)
2194
- })), Vl = h(() => ["line", "area", "bar"].includes(et.value) || Yt.value), Ql = h(() => Yt.value), Dl = h(() => ["radial", "semi-radial"].includes(et.value)), Cn = h(() => et.value === "spider"), vl = h(() => et.value === "bubble"), Sl = h(() => W.value?.chart?.orientation === "horizontal" && (et.value === "bar" || Ql.value)), bn = (e) => {
2194
+ })), Dl = h(() => ["line", "area", "bar"].includes(et.value) || Yt.value), Ql = h(() => Yt.value), Sl = h(() => ["radial", "semi-radial"].includes(et.value)), Cn = h(() => et.value === "spider"), vl = h(() => et.value === "bubble"), $l = h(() => W.value?.chart?.orientation === "horizontal" && (et.value === "bar" || Ql.value)), bn = (e) => {
2195
2195
  const { minY: o, maxY: t } = sl.value, r = t - o || 1;
2196
2196
  return Y.value.left + (e - o) / r * Y.value.width;
2197
2197
  }, Jl = (e) => {
2198
2198
  const { maxX: o } = sl.value, t = o + 1, g = Y.value.height / t;
2199
2199
  return Y.value.top + (e + 0.5) * g;
2200
- }, zt = h(() => Dl.value ? zl.value.left + (Se.value - zl.value.left - zl.value.right) / 2 : Se.value / 2), Zt = h(() => Cn.value ? st.value / 2 - 40 : Dl.value ? zl.value.top + (st.value - zl.value.top - zl.value.bottom) / 2 : st.value / 2), Rt = h(() => {
2200
+ }, zt = h(() => Sl.value ? zl.value.left + (Se.value - zl.value.left - zl.value.right) / 2 : Se.value / 2), Zt = h(() => Cn.value ? st.value / 2 - 40 : Sl.value ? zl.value.top + (st.value - zl.value.top - zl.value.bottom) / 2 : st.value / 2), Rt = h(() => {
2201
2201
  if (Cn.value) {
2202
2202
  const e = Y.value.width - 80, o = Y.value.height - 80;
2203
2203
  return Math.min(e, o) / 2;
@@ -2208,7 +2208,7 @@ const Rs = {
2208
2208
  return Rt.value * t;
2209
2209
  }), Pa = h(() => {
2210
2210
  const e = W.value, o = typeof O.innerSize == "number" ? O.innerSize : e?.innerSize;
2211
- return typeof o != "number" || o <= -100 || !(Dl.value || Cn.value) ? 1 : 1 + o / 100;
2211
+ return typeof o != "number" || o <= -100 || !(Sl.value || Cn.value) ? 1 : 1 + o / 100;
2212
2212
  }), wn = h(() => {
2213
2213
  const e = Pa.value;
2214
2214
  if (e === 1 || e <= 0) return;
@@ -2336,7 +2336,7 @@ const Rs = {
2336
2336
  return Y.value.left + Y.value.width / 2;
2337
2337
  const g = r / ae.value.scale, C = o - ae.value.offsetX / Y.value.width * r, $ = (e - C) / g;
2338
2338
  return Y.value.left + $ * Y.value.width;
2339
- }, $l = (e) => {
2339
+ }, Al = (e) => {
2340
2340
  const { minY: o, maxY: t } = sl.value, r = t - o || 1;
2341
2341
  return Y.value.bottom - (e - o) / r * Y.value.height;
2342
2342
  }, Ua = (e) => {
@@ -2349,7 +2349,7 @@ const Rs = {
2349
2349
  if (vl.value)
2350
2350
  return Hn();
2351
2351
  if (et.value === "bar") {
2352
- if (Sl.value) {
2352
+ if ($l.value) {
2353
2353
  const Oe = [], { minY: Ge, maxY: Bt } = sl.value, Wt = 5, Yl = Bt - Ge || 1;
2354
2354
  for (let ul = 0; ul <= Wt; ul++) {
2355
2355
  const un = Ge + Yl * (ul / Wt), Ka = bn(un);
@@ -2400,7 +2400,7 @@ const Rs = {
2400
2400
  }
2401
2401
  return e;
2402
2402
  }, ma = h(() => {
2403
- if (Sl.value) {
2403
+ if ($l.value) {
2404
2404
  const g = [], { maxX: C } = sl.value;
2405
2405
  for (let $ = 0; $ <= C; $++)
2406
2406
  g.push({
@@ -2415,7 +2415,7 @@ const Rs = {
2415
2415
  const C = o + (t - o) * (g / r), $ = Math.round(C);
2416
2416
  e.push({
2417
2417
  x: Y.value.left - 10,
2418
- y: $l(C),
2418
+ y: Al(C),
2419
2419
  text: Fl($)
2420
2420
  });
2421
2421
  }
@@ -2493,8 +2493,8 @@ const Rs = {
2493
2493
  let C = [];
2494
2494
  o.data.forEach((D, ie) => {
2495
2495
  D == null ? C.length > 0 && (g.push([...C]), C = []) : C.push({
2496
- x: Sl.value ? bn(D) : fl(ie),
2497
- y: Sl.value ? Jl(ie) : $l(D),
2496
+ x: $l.value ? bn(D) : fl(ie),
2497
+ y: $l.value ? Jl(ie) : Al(D),
2498
2498
  index: ie
2499
2499
  });
2500
2500
  }), C.length > 0 && g.push(C);
@@ -2535,7 +2535,7 @@ const Rs = {
2535
2535
  }
2536
2536
  }
2537
2537
  if (Z > 0 && M !== -1) {
2538
- const z = t.data[M], q = Sl.value ? bn($) : fl(C), D = Sl.value ? Jl(C) : $l($), ie = Sl.value ? bn(z) : fl(M), Te = Sl.value ? Jl(M) : $l(z), tt = Dt.value.has(g), pe = Ee.value === g, _e = Ee.value !== null && Ee.value !== g;
2538
+ const z = t.data[M], q = $l.value ? bn($) : fl(C), D = $l.value ? Jl(C) : Al($), ie = $l.value ? bn(z) : fl(M), Te = $l.value ? Jl(M) : Al(z), tt = Dt.value.has(g), pe = Ee.value === g, _e = Ee.value !== null && Ee.value !== g;
2539
2539
  o.push({
2540
2540
  path: `M ${q} ${D} L ${ie} ${Te}`,
2541
2541
  color: ll(g),
@@ -2556,24 +2556,24 @@ const Rs = {
2556
2556
  o.data.forEach((Z, z) => {
2557
2557
  if (Z != null) {
2558
2558
  const q = {
2559
- x: Sl.value ? bn(Z) : fl(z),
2560
- y: Sl.value ? Jl(z) : $l(Z)
2559
+ x: $l.value ? bn(Z) : fl(z),
2560
+ y: $l.value ? Jl(z) : Al(Z)
2561
2561
  };
2562
2562
  C === null ? g += `M ${q.x} ${q.y}` : g += ` L ${q.x} ${q.y}`, C = q;
2563
2563
  } else if (C !== null) {
2564
2564
  const q = o.data.findIndex((D, ie) => ie > z && D !== null && D !== void 0);
2565
2565
  if (q !== -1) {
2566
2566
  const D = {
2567
- x: Sl.value ? bn(o.data[q]) : fl(q),
2568
- y: Sl.value ? Jl(q) : $l(o.data[q])
2567
+ x: $l.value ? bn(o.data[q]) : fl(q),
2568
+ y: $l.value ? Jl(q) : Al(o.data[q])
2569
2569
  };
2570
2570
  g += ` L ${D.x} ${D.y}`, C = D;
2571
2571
  }
2572
2572
  }
2573
2573
  });
2574
2574
  const $ = o.data.map((Z, z) => Z == null ? null : {
2575
- x: Sl.value ? bn(Z) : fl(z),
2576
- y: Sl.value ? Jl(z) : $l(Z)
2575
+ x: $l.value ? bn(Z) : fl(z),
2576
+ y: $l.value ? Jl(z) : Al(Z)
2577
2577
  }).filter((Z) => Z !== null), M = Wn($);
2578
2578
  return {
2579
2579
  path: g,
@@ -2590,7 +2590,7 @@ const Rs = {
2590
2590
  o.data.forEach(($, M) => {
2591
2591
  $ != null && e.push({
2592
2592
  x: fl(M),
2593
- y: $l($),
2593
+ y: Al($),
2594
2594
  color: ll(t),
2595
2595
  value: $,
2596
2596
  label: O.categories[M] || M.toString(),
@@ -2612,7 +2612,7 @@ const Rs = {
2612
2612
  t.data.forEach((Z, z) => {
2613
2613
  Z != null && e.push({
2614
2614
  x: fl(z),
2615
- y: $l(Z),
2615
+ y: Al(Z),
2616
2616
  color: ll(g),
2617
2617
  value: Z,
2618
2618
  label: O.categories[z] || z.toString(),
@@ -2644,7 +2644,7 @@ const Rs = {
2644
2644
  return;
2645
2645
  !isFinite(z) || !isFinite(q) || !isFinite(D) || e.push({
2646
2646
  x: fl(z),
2647
- y: $l(q),
2647
+ y: Al(q),
2648
2648
  radius: Ua(D),
2649
2649
  originalX: z,
2650
2650
  originalY: q,
@@ -2669,7 +2669,7 @@ const Rs = {
2669
2669
  if (e.data.forEach((D, ie) => {
2670
2670
  D == null ? r.length > 0 && (t.push([...r]), r = []) : r.push({
2671
2671
  x: fl(ie),
2672
- y: $l(D),
2672
+ y: Al(D),
2673
2673
  index: ie
2674
2674
  });
2675
2675
  }), r.length > 0 && t.push(r), t.length === 0) return {
@@ -2711,7 +2711,7 @@ const Rs = {
2711
2711
  })), a = h(() => {
2712
2712
  if (!(["bar"].includes(et.value) || Ql.value)) return [];
2713
2713
  const e = [], { maxX: o } = sl.value, t = Ql.value ? O.series.filter((g) => (g.type || et.value) === "bar") : on.value, r = t.length;
2714
- if (Sl.value) {
2714
+ if ($l.value) {
2715
2715
  const g = o + 1, $ = Y.value.height / g, M = $ * (2 / 3), Z = Math.min(4, M / r * 0.15), z = M - (r - 1) * Z, q = Math.max(4, z / r);
2716
2716
  t.forEach((D, ie) => {
2717
2717
  const Te = O.series.findIndex((De) => De === D), tt = Ee.value === Te, pe = Ee.value !== null && Ee.value !== Te, _e = Dt.value.has(Te);
@@ -2757,7 +2757,7 @@ const Rs = {
2757
2757
  D.data.forEach((De, Ce) => {
2758
2758
  if (De == null || typeof De != "number" || !isFinite(De))
2759
2759
  return;
2760
- const We = Y.value.left + (Ce + 0.5) * $ - M / 2 + ie * Z + z / 2, Oe = $l(Math.max(0, De)), Ge = Math.abs($l(0) - $l(De));
2760
+ const We = Y.value.left + (Ce + 0.5) * $ - M / 2 + ie * Z + z / 2, Oe = Al(Math.max(0, De)), Ge = Math.abs(Al(0) - Al(De));
2761
2761
  let Bt = "";
2762
2762
  if (fe.value && Ge > 0) {
2763
2763
  const Wt = Math.min(T.value, q / 2, Ge / 2);
@@ -2792,7 +2792,7 @@ const Rs = {
2792
2792
  }
2793
2793
  return e;
2794
2794
  }), l = h(() => {
2795
- if (!Dl.value) return [];
2795
+ if (!Sl.value) return [];
2796
2796
  const e = on.value.map((C, $) => ({ series: C, originalIndex: $ })).filter(({ originalIndex: C }) => !Dt.value.has(C));
2797
2797
  if (e.length === 0) return [];
2798
2798
  let o = et.value === "semi-radial" ? Math.PI : -Math.PI / 2;
@@ -2880,7 +2880,7 @@ const Rs = {
2880
2880
  { segment: e[0], originalIndex: 0 }
2881
2881
  ] : e.map((o, t) => ({ segment: o, originalIndex: t }));
2882
2882
  }), i = h(() => {
2883
- if (!dn.value || !Dl.value) return [];
2883
+ if (!dn.value || !Sl.value) return [];
2884
2884
  const e = Rn.value, o = $n.value, t = Kn.value, r = _a.value, g = 15, C = e * 1.3, $ = 0.55, M = (D, ie) => {
2885
2885
  const Te = zt.value + Math.cos(D.midAngle) * Rt.value, tt = Zt.value + Math.sin(D.midAngle) * Rt.value, pe = zt.value + Math.cos(D.midAngle) * (Rt.value + o), _e = Zt.value + Math.sin(D.midAngle) * (Rt.value + o), Ce = pe + t * (ie ? 1 : -1), rt = ie ? pe + g : pe - g, Je = _e - r, We = `${D.seriesName}: ${Fl(D.value)}`, Oe = We.length * e * $;
2886
2886
  return {
@@ -3052,8 +3052,8 @@ const Rs = {
3052
3052
  baseline: z
3053
3053
  });
3054
3054
  }), e;
3055
- }), Al = L(/* @__PURE__ */ new Set()), Cl = (e, o, t) => {
3056
- const r = `current-${t}`, g = Al.value.has(r);
3055
+ }), Ll = L(/* @__PURE__ */ new Set()), Cl = (e, o, t) => {
3056
+ const r = `current-${t}`, g = Ll.value.has(r);
3057
3057
  return !g && Ee.value === null ? o.fillOpacity || yt.value : o.isHighlighted || g ? (o.fillOpacity || yt.value) + 0.15 : o.isDimmed ? (o.fillOpacity || yt.value) * 0.3 : o.fillOpacity || yt.value;
3058
3058
  }, rl = h(() => {
3059
3059
  if (!Cn.value) return [];
@@ -3137,7 +3137,7 @@ const Rs = {
3137
3137
  if (!r || !r.data || r.data.length === 0 || Dt.value.has(o.seriesIndex))
3138
3138
  return null;
3139
3139
  let g, C;
3140
- if (Vl.value) {
3140
+ if (Dl.value) {
3141
3141
  let M = -1, Z = null;
3142
3142
  for (let q = r.data.length - 1; q >= 0; q--)
3143
3143
  if (r.data[q] !== null && r.data[q] !== void 0) {
@@ -3148,7 +3148,7 @@ const Rs = {
3148
3148
  return null;
3149
3149
  const z = r.data.map((q, D) => q == null ? null : {
3150
3150
  x: fl(D),
3151
- y: $l(q),
3151
+ y: Al(q),
3152
3152
  index: D
3153
3153
  }).filter((q) => q !== null);
3154
3154
  if (e.animations.enabled && !xl.value && e.animations.type === "draw" && e.chart.type === "line" && (_t.value.isAnimating || !_t.value.hasAnimated))
@@ -3158,8 +3158,8 @@ const Rs = {
3158
3158
  } else
3159
3159
  g = z[0].x + (o.offsetX || 0), C = z[0].y + (o.offsetY || 0);
3160
3160
  else
3161
- g = fl(M) + (o.offsetX || 0), C = $l(Z) + (o.offsetY || 0);
3162
- } else if (Dl.value || Cn.value) {
3161
+ g = fl(M) + (o.offsetX || 0), C = Al(Z) + (o.offsetY || 0);
3162
+ } else if (Sl.value || Cn.value) {
3163
3163
  const M = Math.PI * 2 / e.logos.length * t;
3164
3164
  g = zt.value + Math.cos(M) * (Rt.value + 30) + (o.offsetX || 0), C = Zt.value + Math.sin(M) * (Rt.value + 30) + (o.offsetY || 0);
3165
3165
  }
@@ -3202,7 +3202,7 @@ const Rs = {
3202
3202
  g + $ > Z && (g = o.clientX - r.left - $ - 10), C + M > z && (C = o.clientY - r.top - M - 10), g < 0 && (g = 10), C < 0 && (C = 10);
3203
3203
  let q;
3204
3204
  typeof e.categoryIndex == "number" ? q = e.categoryIndex : typeof e.dataIndex == "number" ? q = e.dataIndex : e.label && O.categories.includes(e.label) && (q = O.categories.indexOf(e.label));
3205
- const D = (Sl.value || et.value === "bar") && e.label ? e.label : e.seriesName || e.label || "";
3205
+ const D = ($l.value || et.value === "bar") && e.label ? e.label : e.seriesName || e.label || "";
3206
3206
  Xe.value = {
3207
3207
  show: !0,
3208
3208
  x: g,
@@ -3265,7 +3265,7 @@ const Rs = {
3265
3265
  o && o.style.setProperty("--dss-animation-progress", e);
3266
3266
  }, Ss = () => {
3267
3267
  _t.value.isAnimating = !1, _t.value.hasAnimated = !0, Zl.value && (tn.value = 1), _t.value.animationId && (cancelAnimationFrame(_t.value.animationId), _t.value.animationId = null);
3268
- }, us = h(() => !Dl.value || _t.value.hasAnimated ? !0 : Zl.value ? tn.value >= 1 : sn.value ? en.value >= 1 : !0), ms = h(() => dn.value && us.value), ja = L(!1);
3268
+ }, us = h(() => !Sl.value || _t.value.hasAnimated ? !0 : Zl.value ? tn.value >= 1 : sn.value ? en.value >= 1 : !0), ms = h(() => dn.value && us.value), ja = L(!1);
3269
3269
  It(ms, (e) => {
3270
3270
  e ? (ja.value = !1, we(() => {
3271
3271
  requestAnimationFrame(() => {
@@ -3287,7 +3287,7 @@ const Rs = {
3287
3287
  })[e] || "ease-out", Ls = () => {
3288
3288
  if (!A.value || xl.value) return "";
3289
3289
  const e = ["dss-chart-animated"];
3290
- return _t.value.hasAnimated || e.push(`dss-animate-${ue.value}`), _t.value.hasAnimated || (Dl.value && et.value !== "semi-radial" ? e.push("dss-animate-fill") : Dl.value || e.push(`dss-animate-${ue.value}`)), _t.value.isAnimating && e.push("dss-is-animating"), e.join(" ");
3290
+ return _t.value.hasAnimated || e.push(`dss-animate-${ue.value}`), _t.value.hasAnimated || (Sl.value && et.value !== "semi-radial" ? e.push("dss-animate-fill") : Sl.value || e.push(`dss-animate-${ue.value}`)), _t.value.isAnimating && e.push("dss-is-animating"), e.join(" ");
3291
3291
  };
3292
3292
  It(() => O.series, (e, o) => {
3293
3293
  nt.value && o && _t.value.hasAnimated && (_t.value.hasAnimated = !1, we(() => {
@@ -3320,7 +3320,7 @@ const Rs = {
3320
3320
  Re && cancelAnimationFrame(Re), $e && x.value && ($e.unobserve(x.value), $e.disconnect(), $e = null), _t.value.animationId && cancelAnimationFrame(_t.value.animationId), kn && (cancelAnimationFrame(kn), kn = null), ae.value.zoomTimeout && clearTimeout(ae.value.zoomTimeout), document.removeEventListener("mousemove", gs), document.removeEventListener("mouseup", ys), document.removeEventListener("click", Fa), document.removeEventListener("click", Sa);
3321
3321
  });
3322
3322
  const gs = (e) => {
3323
- if (ae.value.isDragging && ae.value.scale > 1 && Vl.value) {
3323
+ if (ae.value.isDragging && ae.value.scale > 1 && Dl.value) {
3324
3324
  vt.value.show = !1;
3325
3325
  const o = e.clientX - ae.value.lastMouseX, { minX: t, maxX: r } = sl.value, g = r - t || 1, $ = o * 0.8;
3326
3326
  ae.value.offsetX += $;
@@ -3361,12 +3361,16 @@ const Rs = {
3361
3361
  n("div", {
3362
3362
  class: se(["dss-custom-chart-container", [
3363
3363
  Ls(),
3364
- { "dss-chart-fill-width": le.value, "dss-chart-fill-height": Ze.value, "dss-chart-compact": Dl.value && !Xt.value }
3364
+ { "dss-chart-fill-width": le.value, "dss-chart-fill-height": Ze.value, "dss-chart-compact": Sl.value && !Xt.value }
3365
3365
  ]]),
3366
3366
  style: he({
3367
3367
  width: le.value ? "100%" : Se.value + "px",
3368
3368
  height: Ut.value,
3369
- ...le.value || Ze.value ? { overflow: "hidden", maxWidth: "100%", maxHeight: "100%" } : {},
3369
+ ...le.value || Ze.value ? {
3370
+ overflow: Sl.value ? "visible" : "hidden",
3371
+ maxWidth: "100%",
3372
+ maxHeight: "100%"
3373
+ } : {},
3370
3374
  ...$s.value,
3371
3375
  cursor: La()
3372
3376
  }),
@@ -3380,7 +3384,7 @@ const Rs = {
3380
3384
  onMouseleave: da,
3381
3385
  onDblclick: Aa,
3382
3386
  onContextmenu: ze(nl, ["prevent"]),
3383
- onClick: ze(Tl, ["left"]),
3387
+ onClick: ze(Vl, ["left"]),
3384
3388
  onWheelCapture: $a
3385
3389
  }, [
3386
3390
  n("div", {
@@ -3451,14 +3455,14 @@ const Rs = {
3451
3455
  ], 46, Ho))), 128))
3452
3456
  ], 2)) : V("", !0)
3453
3457
  ], 512),
3454
- P.showAddMarkerButton && Vt.value && Gt.value.addMarker && (Vl.value || vl.value) ? (u(), d("div", {
3458
+ P.showAddMarkerButton && Vt.value && Gt.value.addMarker && (Dl.value || vl.value) ? (u(), d("div", {
3455
3459
  key: 0,
3456
3460
  class: "dss-add-marker-button",
3457
3461
  onClick: Ia,
3458
3462
  title: R(N)("chart.contextMenu.addMarker")
3459
3463
  }, [
3460
3464
  n("img", {
3461
- src: El.value,
3465
+ src: Hl.value,
3462
3466
  class: "dss-add-marker-button-icon",
3463
3467
  alt: "Marker Icon",
3464
3468
  style: { width: "100%", height: "100%", "object-fit": "contain", "border-radius": "50%", "pointer-events": "none" }
@@ -3479,7 +3483,7 @@ const Rs = {
3479
3483
  ], -1))
3480
3484
  ], 8, Vo)) : V("", !0),
3481
3485
  n("div", Ro, [
3482
- vl.value && Ll.value ? (u(), d("div", No, "Bubble size: " + E(Ll.value), 1)) : V("", !0),
3486
+ vl.value && El.value ? (u(), d("div", No, "Bubble size: " + E(El.value), 1)) : V("", !0),
3483
3487
  (u(), d("svg", {
3484
3488
  width: Se.value,
3485
3489
  height: st.value,
@@ -3511,7 +3515,7 @@ const Rs = {
3511
3515
  n("path", { d: ns.value }, null, 8, Zo)
3512
3516
  ], 8, zo)) : V("", !0)
3513
3517
  ]),
3514
- Vl.value || vl.value ? (u(), d("g", Wo, [
3518
+ Dl.value || vl.value ? (u(), d("g", Wo, [
3515
3519
  $t.value ? (u(), d("g", {
3516
3520
  key: 0,
3517
3521
  class: "dss-grid-lines",
@@ -3682,7 +3686,7 @@ const Rs = {
3682
3686
  }, [
3683
3687
  Ql.value ? (u(), d("g", ci, [
3684
3688
  n("g", {
3685
- class: se(["dss-bar-chart", { "dss-horizontal-bars": Sl.value }])
3689
+ class: se(["dss-bar-chart", { "dss-horizontal-bars": $l.value }])
3686
3690
  }, [
3687
3691
  (u(!0), d(te, null, ke(a.value, (t, r) => (u(), d(te, {
3688
3692
  key: `mixed-bar-${r}`
@@ -3908,7 +3912,7 @@ const Rs = {
3908
3912
  }, null, 14, Si))), 128))
3909
3913
  ])) : et.value === "bar" ? (u(), d("g", {
3910
3914
  key: 3,
3911
- class: se({ "dss-horizontal-bars": Sl.value })
3915
+ class: se({ "dss-horizontal-bars": $l.value })
3912
3916
  }, [
3913
3917
  (u(!0), d(te, null, ke(a.value, (t, r) => (u(), d(te, {
3914
3918
  key: `bar-${r}`
@@ -4022,7 +4026,7 @@ const Rs = {
4022
4026
  ])) : V("", !0)
4023
4027
  ], 64))), 128))
4024
4028
  ])) : V("", !0),
4025
- Dl.value ? (u(), d("g", {
4029
+ Sl.value ? (u(), d("g", {
4026
4030
  key: 2,
4027
4031
  class: "radial-chart",
4028
4032
  transform: wn.value
@@ -4366,10 +4370,10 @@ const Rs = {
4366
4370
  n("div", Cr, E(Xe.value.value), 1)
4367
4371
  ])),
4368
4372
  Xe.value.categoryIndex !== void 0 ? (u(), d(te, { key: 3 }, [
4369
- Hl(Xe.value.categoryIndex).flagGroups.length > 0 ? (u(), d("div", br, [
4373
+ Tl(Xe.value.categoryIndex).flagGroups.length > 0 ? (u(), d("div", br, [
4370
4374
  o[5] || (o[5] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4371
4375
  n("div", wr, E(R(N)("chart.tooltip.flags")), 1),
4372
- (u(!0), d(te, null, ke(Hl(Xe.value.categoryIndex).flagGroups, (t, r) => (u(), d("div", {
4376
+ (u(!0), d(te, null, ke(Tl(Xe.value.categoryIndex).flagGroups, (t, r) => (u(), d("div", {
4373
4377
  key: `tooltip-flag-group-${r}`
4374
4378
  }, [
4375
4379
  n("div", xr, [
@@ -4389,10 +4393,10 @@ const Rs = {
4389
4393
  ]))), 128))
4390
4394
  ]))), 128))
4391
4395
  ])) : V("", !0),
4392
- Hl(Xe.value.categoryIndex).markers.length > 0 ? (u(), d("div", Mr, [
4396
+ Tl(Xe.value.categoryIndex).markers.length > 0 ? (u(), d("div", Mr, [
4393
4397
  o[6] || (o[6] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4394
4398
  n("div", Sr, E(R(N)("chart.tooltip.markers")), 1),
4395
- (u(!0), d(te, null, ke(Hl(Xe.value.categoryIndex).markers, (t, r) => (u(), d("div", {
4399
+ (u(!0), d(te, null, ke(Tl(Xe.value.categoryIndex).markers, (t, r) => (u(), d("div", {
4396
4400
  key: `tooltip-marker-${r}`,
4397
4401
  class: "dss-tooltip-item"
4398
4402
  }, [
@@ -4427,10 +4431,10 @@ const Rs = {
4427
4431
  n("span", Dr, E(Fl(t.value)), 1)
4428
4432
  ]))), 128))
4429
4433
  ]),
4430
- Hl(vt.value.categoryIndex).flagGroups.length > 0 ? (u(), d("div", Rr, [
4434
+ Tl(vt.value.categoryIndex).flagGroups.length > 0 ? (u(), d("div", Rr, [
4431
4435
  o[7] || (o[7] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4432
4436
  n("div", Nr, E(R(N)("chart.tooltip.flags")), 1),
4433
- (u(!0), d(te, null, ke(Hl(vt.value.categoryIndex).flagGroups, (t, r) => (u(), d("div", {
4437
+ (u(!0), d(te, null, ke(Tl(vt.value.categoryIndex).flagGroups, (t, r) => (u(), d("div", {
4434
4438
  key: `crosshair-flag-group-${r}`
4435
4439
  }, [
4436
4440
  n("div", Ir, [
@@ -4450,10 +4454,10 @@ const Rs = {
4450
4454
  ]))), 128))
4451
4455
  ]))), 128))
4452
4456
  ])) : V("", !0),
4453
- Hl(vt.value.categoryIndex).markers.length > 0 ? (u(), d("div", Br, [
4457
+ Tl(vt.value.categoryIndex).markers.length > 0 ? (u(), d("div", Br, [
4454
4458
  o[8] || (o[8] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4455
4459
  n("div", Or, E(R(N)("chart.tooltip.markers")), 1),
4456
- (u(!0), d(te, null, ke(Hl(vt.value.categoryIndex).markers, (t, r) => (u(), d("div", {
4460
+ (u(!0), d(te, null, ke(Tl(vt.value.categoryIndex).markers, (t, r) => (u(), d("div", {
4457
4461
  key: `crosshair-dss-marker-${r}`,
4458
4462
  class: "dss-tooltip-item"
4459
4463
  }, [
@@ -4469,7 +4473,7 @@ const Rs = {
4469
4473
  ])) : V("", !0)
4470
4474
  ], 64))
4471
4475
  ], 6)) : V("", !0),
4472
- Vl.value && Pe.value && ae.value.scale > 1 ? (u(), d("div", {
4476
+ Dl.value && Pe.value && ae.value.scale > 1 ? (u(), d("div", {
4473
4477
  key: 4,
4474
4478
  class: "dss-zoom-indicator",
4475
4479
  onClick: Aa
@@ -4935,8 +4939,8 @@ const Rs = {
4935
4939
  return k === "auto" ? null : typeof k == "number" ? k : null;
4936
4940
  }), Re = h(() => m.value.table.height), xe = h(() => m.value.table.rowHeight ?? "auto"), ve = h(() => ({ height: xe.value })), ee = h(() => m.value.table.expandable === !0), Me = h(() => m.value.table.expandableRowData ?? null), O = h(() => m.value.table.expandableRowCondition ?? null), Ae = h(() => m.value.table.truncated === !0), qe = h(() => m.value.table.striped), at = h(() => m.value.table.bordered), At = h(() => m.value.table.hoverable), W = h(() => m.value.table.size), le = h(() => m.value.table.align || "left");
4937
4941
  h(() => m.value.title.text), h(() => m.value.subtitle.text);
4938
- const Ze = h(() => m.value.selection.enabled), Se = h(() => m.value.selection.mode), Ct = h(() => m.value.sorting.enabled), He = h(() => m.value.sorting.mode), st = h(() => m.value.pagination.enabled), Ut = h(() => m.value.pagination.rows), et = h(() => m.value.pagination.rowsPerPageOptions), Yt = h(() => m.value.pagination.showCounter !== !1), St = h(() => m.value.pagination.showControlsGroup), Tt = h(() => St.value === !1 ? !1 : m.value.pagination.showControls !== !1), Ll = h(() => St.value === !1 ? !1 : m.value.pagination.showRowsPerPage !== !1), Kt = h(
4939
- () => st.value && (Yt.value || Tt.value || Ll.value)
4942
+ const Ze = h(() => m.value.selection.enabled), Se = h(() => m.value.selection.mode), Ct = h(() => m.value.sorting.enabled), He = h(() => m.value.sorting.mode), st = h(() => m.value.pagination.enabled), Ut = h(() => m.value.pagination.rows), et = h(() => m.value.pagination.rowsPerPageOptions), Yt = h(() => m.value.pagination.showCounter !== !1), St = h(() => m.value.pagination.showControlsGroup), Tt = h(() => St.value === !1 ? !1 : m.value.pagination.showControls !== !1), El = h(() => St.value === !1 ? !1 : m.value.pagination.showRowsPerPage !== !1), Kt = h(
4943
+ () => st.value && (Yt.value || Tt.value || El.value)
4940
4944
  ), qt = h(() => m.value.scrollable), pt = h(() => m.value.emptyMessage || N("table.emptyMessage")), el = h(() => m.value.toolbar?.downloads?.pdf !== !1), Jt = h(() => m.value.toolbar?.downloads?.excel !== !1), il = h(() => m.value.toolbar?.search !== !1), $t = h(() => el.value || Jt.value || il.value || Xt.value), Xt = h(() => m.value.toolbar?.columnVisibility !== !1), ht = L(""), Ot = L(!1), _l = L(null);
4941
4945
  let oe = null;
4942
4946
  function Ie() {
@@ -5008,7 +5012,7 @@ const Rs = {
5008
5012
  "dss-sort-asc": w === 1,
5009
5013
  "dss-sort-desc": w === -1
5010
5014
  };
5011
- }, Il = L({}), Vt = L(null), Gt = L(null), gn = 220, El = L(null), cl = h(
5015
+ }, Il = L({}), Vt = L(null), Gt = L(null), gn = 220, Hl = L(null), cl = h(
5012
5016
  () => ut.value.find((k) => G(k) === Vt.value) ?? null
5013
5017
  ), Qt = h(() => {
5014
5018
  if (!cl.value || cl.value.filter !== "range") return null;
@@ -5040,7 +5044,7 @@ const Rs = {
5040
5044
  Gt.value = null;
5041
5045
  return;
5042
5046
  }
5043
- const k = El.value;
5047
+ const k = Hl.value;
5044
5048
  if (!k) return;
5045
5049
  const w = k.querySelector(
5046
5050
  `.dss-table-filter-trigger[data-filter-column-key="${Vt.value}"]`
@@ -5106,7 +5110,7 @@ const Rs = {
5106
5110
  mt(dl(S, k)).forEach((be) => w.add(be));
5107
5111
  }), Array.from(w).sort((S, Q) => String(S).localeCompare(String(Q)));
5108
5112
  }
5109
- function Hl(k, w) {
5113
+ function Tl(k, w) {
5110
5114
  if (Vt.value === k) {
5111
5115
  Vt.value = null, Gt.value = null;
5112
5116
  return;
@@ -5225,7 +5229,7 @@ const Rs = {
5225
5229
  }, da = (k, w) => {
5226
5230
  const S = A(k, w), Q = new Set(Ul.value), be = Q.has(S);
5227
5231
  Se.value === "single" ? be ? (Q.delete(S), x("row-unselect", k)) : (Q.clear(), Q.add(S), x("row-select", k)) : be ? (Q.delete(S), x("row-unselect", k)) : (Q.add(S), x("row-select", k)), Ul.value = Q;
5228
- }, nl = L("1"), Tl = () => {
5232
+ }, nl = L("1"), Vl = () => {
5229
5233
  const k = Number.parseInt(String(nl.value), 10);
5230
5234
  if (!Number.isFinite(k)) {
5231
5235
  nl.value = String(Ml.value + 1);
@@ -5279,7 +5283,7 @@ const Rs = {
5279
5283
  n("div", {
5280
5284
  class: "dss-table-container",
5281
5285
  ref_key: "tableContainerRef",
5282
- ref: El,
5286
+ ref: Hl,
5283
5287
  style: he({
5284
5288
  width: $e.value + "px",
5285
5289
  height: Re.value ? Re.value + "px" : "auto"
@@ -5531,7 +5535,7 @@ const Rs = {
5531
5535
  "data-filter-column-key": G(S),
5532
5536
  "aria-expanded": Vt.value === G(S),
5533
5537
  "aria-label": R(N)("table.filterColumnAriaLabel"),
5534
- onClick: (be) => Hl(G(S), be)
5538
+ onClick: (be) => Tl(G(S), be)
5535
5539
  }, [...w[32] || (w[32] = [
5536
5540
  n("span", {
5537
5541
  class: "dss-table-filter-icon",
@@ -5700,8 +5704,8 @@ const Rs = {
5700
5704
  type: "text",
5701
5705
  class: "dss-pagination-page-input",
5702
5706
  "aria-label": R(N)("table.currentPageAriaLabel"),
5703
- onBlur: Tl,
5704
- onKeydown: nn(ze(Tl, ["prevent"]), ["enter"])
5707
+ onBlur: Vl,
5708
+ onKeydown: nn(ze(Vl, ["prevent"]), ["enter"])
5705
5709
  }, null, 40, ic), [
5706
5710
  [yl, nl.value]
5707
5711
  ]),
@@ -5726,7 +5730,7 @@ const Rs = {
5726
5730
  ])) : V("", !0)
5727
5731
  ]),
5728
5732
  n("div", dc, [
5729
- Ll.value ? (u(), d("div", {
5733
+ El.value ? (u(), d("div", {
5730
5734
  key: 0,
5731
5735
  class: "dss-pagination-rows-per-page",
5732
5736
  ref_key: "rowsPerPageDropdownRef",
@@ -6201,7 +6205,7 @@ const Rs = {
6201
6205
  setup(P, { expose: ge, emit: N }) {
6202
6206
  const { t: F, locale: me } = Ra(), x = P, Ne = N, de = ks(), ct = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6203
6207
  <path d="M10 0C4.5 0 0 4.5 0 10C0 15.5 4.5 20 10 20C15.5 20 20 15.5 20 10C20 4.5 15.5 0 10 0ZM2 10C2 5.6 5.6 2 10 2C11.8 2 13.5 2.6 14.9 3.7L3.7 14.9C2.6 13.5 2 11.8 2 10ZM10 18C8.2 18 6.5 17.4 5.1 16.3L16.3 5.1C17.4 6.5 18 8.2 18 10C18 14.4 14.4 18 10 18Z" fill="#c13340"/>
6204
- </svg>`, m = L(null), $e = L(null), Re = L(!1), xe = L(!1), ve = L(!1), ee = L(""), Me = L({}), O = L(!1), Ae = L(!1), qe = L(""), at = L(""), At = L(null), W = L(null), le = L(null), Ze = L(null), Se = L(""), Ct = L(!1), He = L({}), st = L(!1), Ut = L({}), et = L(null), Yt = L(null), St = L(!1), Tt = L(""), Ll = L(null), Kt = L(""), qt = L(""), pt = L(""), el = L(null), Jt = L(null), il = L(null), $t = L(null), Xt = L(null), ht = L(!1), Ot = L(""), _l = L({}), oe = L(!1), Ie = L("upload"), Pe = L(""), Qe = L(null), kt = L(null), lt = L([]), ft = L([]), Le = L(null), ut = L(!1), G = L(""), K = L(""), ne = L(""), fe = L(""), je = L(""), T = L(""), _ = L(null), A = L(null), ue = L(null), re = L(!1), Fe = L(null), gt = L(!1), Be = L(!1), nt = L(null), ot = L("p"), yt = L(!1), Lt = L([]), Ft = L(null), Pt = L(null), Il = L(null), Vt = L(!1), Gt = L(0), gn = 100, El = L(null), cl = h(() => ({
6208
+ </svg>`, m = L(null), $e = L(null), Re = L(!1), xe = L(!1), ve = L(!1), ee = L(""), Me = L({}), O = L(!1), Ae = L(!1), qe = L(""), at = L(""), At = L(null), W = L(null), le = L(null), Ze = L(null), Se = L(""), Ct = L(!1), He = L({}), st = L(!1), Ut = L({}), et = L(null), Yt = L(null), St = L(!1), Tt = L(""), El = L(null), Kt = L(""), qt = L(""), pt = L(""), el = L(null), Jt = L(null), il = L(null), $t = L(null), Xt = L(null), ht = L(!1), Ot = L(""), _l = L({}), oe = L(!1), Ie = L("upload"), Pe = L(""), Qe = L(null), kt = L(null), lt = L([]), ft = L([]), Le = L(null), ut = L(!1), G = L(""), K = L(""), ne = L(""), fe = L(""), je = L(""), T = L(""), _ = L(null), A = L(null), ue = L(null), re = L(!1), Fe = L(null), gt = L(!1), Be = L(!1), nt = L(null), ot = L("p"), yt = L(!1), Lt = L([]), Ft = L(null), Pt = L(null), Il = L(null), Vt = L(!1), Gt = L(0), gn = 100, Hl = L(null), cl = h(() => ({
6205
6209
  "dss-text-editor-no-border": !x.border,
6206
6210
  "dss-text-editor-rounded": x.rounded,
6207
6211
  "dss-text-editor-full-height": x.fullHeight,
@@ -6228,7 +6232,7 @@ const Rs = {
6228
6232
  if (mt(x.customToolbarSlots[l]))
6229
6233
  return !0;
6230
6234
  return !1;
6231
- }, Hl = (a) => {
6235
+ }, Tl = (a) => {
6232
6236
  for (let l = a + 1; l < x.customToolbarSlots.length; l++) {
6233
6237
  const s = x.customToolbarSlots[l];
6234
6238
  if (mt(s) && Wl(s))
@@ -7125,7 +7129,7 @@ const Rs = {
7125
7129
  x.disabled || !x.richText || ($e.value = $e.value === a ? null : a, a === "askAi" && (Yt.value = null));
7126
7130
  }, nl = () => {
7127
7131
  $e.value = null, Qe.value = null;
7128
- }, Tl = (a) => {
7132
+ }, Vl = (a) => {
7129
7133
  Bl("formatBlock", a), nl();
7130
7134
  }, In = (a) => {
7131
7135
  if (!a || !m.value) return a;
@@ -7134,8 +7138,8 @@ const Rs = {
7134
7138
  for (; Ve && Ve !== m.value; ) {
7135
7139
  const Mt = Ve.tagName;
7136
7140
  if (Mt === "P") {
7137
- const Al = Ve.parentElement;
7138
- if (Al === m.value || Al.tagName === "BLOCKQUOTE")
7141
+ const Ll = Ve.parentElement;
7142
+ if (Ll === m.value || Ll.tagName === "BLOCKQUOTE")
7139
7143
  return Ve;
7140
7144
  }
7141
7145
  if (Mt === "BLOCKQUOTE")
@@ -7647,9 +7651,9 @@ const Rs = {
7647
7651
  if (B) {
7648
7652
  const H = p.getBoundingClientRect(), ce = I.getBoundingClientRect(), J = B.getBoundingClientRect(), Ke = ce.bottom - H.top, Ve = J.top - H.top, Mt = 8;
7649
7653
  if (Ke > Ve - Mt) {
7650
- const Al = J.height;
7654
+ const Ll = J.height;
7651
7655
  pl.value = {
7652
- bottom: `${Al + Mt}px`,
7656
+ bottom: `${Ll + Mt}px`,
7653
7657
  top: "auto"
7654
7658
  };
7655
7659
  }
@@ -7788,8 +7792,8 @@ const Rs = {
7788
7792
  i.nodeType === 3 ? v = i.parentElement : i.tagName === "P" || i.tagName === "DIV" ? v = i : v = i.closest("p, div");
7789
7793
  const p = (J) => {
7790
7794
  if (!J) return !1;
7791
- const Ke = J.textContent || "", Mt = (J.innerHTML || "").trim(), Al = Mt.replace(/<br\s*\/?>/gi, "").trim();
7792
- return Ke.trim() === "" || Mt === "" || Al === "" || Mt === "<br>" || Mt === "<br/>" || Mt === "<p></p>" || Mt === "<p><br></p>" || Mt === "<p><br/></p>" || Mt === "<p> </p>" || Mt === "<p><br> </p>" || Mt === "<div></div>" || Mt === "<div><br></div>" || Mt === "<div><br/></div>";
7795
+ const Ke = J.textContent || "", Mt = (J.innerHTML || "").trim(), Ll = Mt.replace(/<br\s*\/?>/gi, "").trim();
7796
+ return Ke.trim() === "" || Mt === "" || Ll === "" || Mt === "<br>" || Mt === "<br/>" || Mt === "<p></p>" || Mt === "<p><br></p>" || Mt === "<p><br/></p>" || Mt === "<p> </p>" || Mt === "<p><br> </p>" || Mt === "<div></div>" || Mt === "<div><br></div>" || Mt === "<div><br/></div>";
7793
7797
  }, y = c.lastChild, b = y && y.nodeType === 1 && y.tagName === "BR", I = s.startContainer, B = I.nodeType === 3 ? I.parentElement : I, H = B === c || B && B.parentElement === c;
7794
7798
  if (v && p(v) || b && H) {
7795
7799
  a.preventDefault(), setTimeout(() => {
@@ -7860,7 +7864,7 @@ const Rs = {
7860
7864
  } else
7861
7865
  document.execCommand("insertText", !1, s);
7862
7866
  xt();
7863
- }, Vl = (a) => {
7867
+ }, Dl = (a) => {
7864
7868
  if ($e.value) {
7865
7869
  const s = a.target;
7866
7870
  !s.closest(".dss-toolbar-dropdown") && !s.closest(".dss-toolbar-dropdown-toggle") && nl();
@@ -7894,7 +7898,7 @@ const Rs = {
7894
7898
  }
7895
7899
  }, Ql = (a, l) => {
7896
7900
  a && a.stopPropagation && a.stopPropagation(), kt.value && (clearTimeout(kt.value), kt.value = null), Qe.value = l;
7897
- }, Dl = (a) => {
7901
+ }, Sl = (a) => {
7898
7902
  const l = a.relatedTarget;
7899
7903
  if (l) {
7900
7904
  const s = l.closest(".dss-toolbar-dropdown-submenu"), i = l.closest(".dss-toolbar-dropdown-item-has-submenu");
@@ -7908,7 +7912,7 @@ const Rs = {
7908
7912
  Qe.value = null;
7909
7913
  };
7910
7914
  let vl = 0;
7911
- const Sl = (a) => {
7915
+ const $l = (a) => {
7912
7916
  if (!a) return;
7913
7917
  const l = Array.from(a.children);
7914
7918
  l.forEach((s) => {
@@ -7930,13 +7934,13 @@ const Rs = {
7930
7934
  });
7931
7935
  }, bn = () => {
7932
7936
  document.querySelectorAll(".dss-toolbar-dropdown").forEach((l) => {
7933
- Sl(l), l.querySelectorAll(".dss-toolbar-dropdown-item-has-submenu").forEach((c) => {
7937
+ $l(l), l.querySelectorAll(".dss-toolbar-dropdown-item-has-submenu").forEach((c) => {
7934
7938
  const f = c._subMenuHandlers;
7935
7939
  f && (c.removeEventListener("mouseenter", f.enter), c.removeEventListener("mouseleave", f.leave));
7936
7940
  const v = (y) => {
7937
7941
  const b = c.getAttribute("data-submenu-id");
7938
7942
  b && Ql(y, b);
7939
- }, p = Dl;
7943
+ }, p = Sl;
7940
7944
  c.addEventListener("mouseenter", v), c.addEventListener("mouseleave", p), c._subMenuHandlers = { enter: v, leave: p };
7941
7945
  }), l.querySelectorAll(".dss-toolbar-dropdown-submenu").forEach((c) => {
7942
7946
  const f = c._subMenuHandlers;
@@ -7944,7 +7948,7 @@ const Rs = {
7944
7948
  const v = (b) => {
7945
7949
  const I = c.getAttribute("data-submenu-id");
7946
7950
  I && Ql(b, I);
7947
- }, p = Dl;
7951
+ }, p = Sl;
7948
7952
  c.addEventListener("mouseenter", v), c.addEventListener("mouseleave", p), c._subMenuHandlers = { enter: v, leave: p }, c.querySelectorAll(".dss-toolbar-dropdown-item").forEach((b) => {
7949
7953
  b.addEventListener("click", Cn);
7950
7954
  });
@@ -8002,7 +8006,7 @@ const Rs = {
8002
8006
  document.execCommand("defaultParagraphSeparator", !1, "p");
8003
8007
  } catch {
8004
8008
  }
8005
- document.addEventListener("click", Vl), window.addEventListener("resize", zt);
8009
+ document.addEventListener("click", Dl), window.addEventListener("resize", zt);
8006
8010
  let a = null;
8007
8011
  const l = () => {
8008
8012
  a === null && (a = setTimeout(() => {
@@ -8099,7 +8103,7 @@ const Rs = {
8099
8103
  Fe.value = null;
8100
8104
  return;
8101
8105
  }
8102
- const Al = I.getAttribute("src");
8106
+ const Ll = I.getAttribute("src");
8103
8107
  let Cl = null;
8104
8108
  B ? Cl = B.cloneNode(!0) : Cl = I.cloneNode(!0);
8105
8109
  try {
@@ -8131,7 +8135,7 @@ const Rs = {
8131
8135
  const rl = m.value.querySelectorAll("img");
8132
8136
  let bl = !1;
8133
8137
  rl.forEach((wl) => {
8134
- if (wl.getAttribute("src") === Al)
8138
+ if (wl.getAttribute("src") === Ll)
8135
8139
  if (!bl)
8136
8140
  bl = !0;
8137
8141
  else {
@@ -8185,7 +8189,7 @@ const Rs = {
8185
8189
  }), dl(), en(), m.value._mutationObserver = v;
8186
8190
  }
8187
8191
  }), Ja(() => {
8188
- if (document.removeEventListener("click", Vl), window.removeEventListener("resize", zt), m.value && m.value._windowScrollHandler && window.removeEventListener("scroll", m.value._windowScrollHandler, !0), Jl !== null && (clearTimeout(Jl), Jl = null), m.value && m.value._windowScrollTimeout !== null && clearTimeout(m.value._windowScrollTimeout), Le.value && clearTimeout(Le.value), kt.value && clearTimeout(kt.value), m.value && m.value._mutationObserver && m.value._mutationObserver.disconnect(), Ft.value && Ft.value.disconnect(), Pt.value !== null && (cancelAnimationFrame(Pt.value), Pt.value = null), Il.value !== null && (clearTimeout(Il.value), Il.value = null), El.value !== null && (clearTimeout(El.value), El.value = null), On(!0), m.value && m.value._scrollHandlers) {
8192
+ if (document.removeEventListener("click", Dl), window.removeEventListener("resize", zt), m.value && m.value._windowScrollHandler && window.removeEventListener("scroll", m.value._windowScrollHandler, !0), Jl !== null && (clearTimeout(Jl), Jl = null), m.value && m.value._windowScrollTimeout !== null && clearTimeout(m.value._windowScrollTimeout), Le.value && clearTimeout(Le.value), kt.value && clearTimeout(kt.value), m.value && m.value._mutationObserver && m.value._mutationObserver.disconnect(), Ft.value && Ft.value.disconnect(), Pt.value !== null && (cancelAnimationFrame(Pt.value), Pt.value = null), Il.value !== null && (clearTimeout(Il.value), Il.value = null), Hl.value !== null && (clearTimeout(Hl.value), Hl.value = null), On(!0), m.value && m.value._scrollHandlers) {
8189
8193
  const { wrapper: l, content: s, handler: i } = m.value._scrollHandlers;
8190
8194
  l && l.removeEventListener("scroll", i), s && s.removeEventListener("scroll", i);
8191
8195
  }
@@ -8364,7 +8368,7 @@ const Rs = {
8364
8368
  }, Ba = () => {
8365
8369
  Yt.value = null, Qe.value = null;
8366
8370
  }, Ln = (a) => {
8367
- Tl(a), Ba();
8371
+ Vl(a), Ba();
8368
8372
  };
8369
8373
  let Fn = null, tn = null, En = null, Zl = null;
8370
8374
  const ns = (a) => {
@@ -8569,8 +8573,8 @@ const Rs = {
8569
8573
  const Cl = b.substring(H, Ke);
8570
8574
  Cl && ce.appendChild(document.createTextNode(Cl));
8571
8575
  }
8572
- const Mt = Ve.startsWith("http://") || Ve.startsWith("https://") ? Ve : `https://${Ve}`, Al = document.createElement("a");
8573
- Al.href = Mt, Al.textContent = Ve, Al.style.color = "#60afdf", Al.style.textDecoration = "underline", ce.appendChild(Al), H = Ke + Ve.length;
8576
+ const Mt = Ve.startsWith("http://") || Ve.startsWith("https://") ? Ve : `https://${Ve}`, Ll = document.createElement("a");
8577
+ Ll.href = Mt, Ll.textContent = Ve, Ll.style.color = "#60afdf", Ll.style.textDecoration = "underline", ce.appendChild(Ll), H = Ke + Ve.length;
8574
8578
  }), H < b.length) {
8575
8579
  const J = b.substring(H);
8576
8580
  J && ce.appendChild(document.createTextNode(J));
@@ -8660,28 +8664,28 @@ const Rs = {
8660
8664
  Ke.textContent = I, J.deleteContents(), J.insertNode(Ke);
8661
8665
  const Ve = window.getSelection(), Mt = document.createRange();
8662
8666
  Mt.setStartAfter(Ke), Mt.collapse(!0), Ve.removeAllRanges(), Ve.addRange(Mt);
8663
- const Al = Dt();
8667
+ const Ll = Dt();
8664
8668
  we(() => {
8665
- xt(), Al && Ee(Al);
8669
+ xt(), Ll && Ee(Ll);
8666
8670
  });
8667
8671
  }, sl = () => {
8668
- m.value && (Xt.value = Dt(), Tt.value = "", Kt.value = "", Pe.value = "", qt.value = "", pt.value = "", Ll.value = null, $t.value = null, Ie.value = "upload", St.value = !0, nl(), we(() => {
8672
+ m.value && (Xt.value = Dt(), Tt.value = "", Kt.value = "", Pe.value = "", qt.value = "", pt.value = "", El.value = null, $t.value = null, Ie.value = "upload", St.value = !0, nl(), we(() => {
8669
8673
  el.value && el.value.focus(), Jt.value && (Jt.value.value = "");
8670
8674
  }));
8671
8675
  }, qa = (a) => {
8672
8676
  const l = a.target?.files?.[0];
8673
8677
  if (!l) {
8674
- Ll.value = null, Kt.value = "";
8678
+ El.value = null, Kt.value = "";
8675
8679
  return;
8676
8680
  }
8677
- Ll.value = l;
8681
+ El.value = l;
8678
8682
  const s = new FileReader();
8679
8683
  s.onload = (i) => {
8680
8684
  Kt.value = i.target?.result || "";
8681
8685
  }, s.readAsDataURL(l);
8682
8686
  }, fl = () => {
8683
8687
  Jt.value && Jt.value.click();
8684
- }, $l = () => {
8688
+ }, Al = () => {
8685
8689
  qt.value && (pt.value = "");
8686
8690
  }, Ua = () => {
8687
8691
  pt.value && (qt.value = "");
@@ -8709,7 +8713,7 @@ const Rs = {
8709
8713
  Ie.value === "url" && il.value ? (il.value.focus(), il.value.select()) : el.value && (el.value.focus(), el.value.select()), Jt.value && (Jt.value.value = "");
8710
8714
  });
8711
8715
  }, Bn = () => {
8712
- St.value = !1, Tt.value = "", Kt.value = "", Pe.value = "", qt.value = "", pt.value = "", Ll.value = null, $t.value = null, Xt.value = null, Ie.value = "upload";
8716
+ St.value = !1, Tt.value = "", Kt.value = "", Pe.value = "", qt.value = "", pt.value = "", El.value = null, $t.value = null, Xt.value = null, Ie.value = "upload";
8713
8717
  }, Hn = () => {
8714
8718
  const a = (Tt.value || "").trim(), l = m.value?._mutationObserver;
8715
8719
  l && l.disconnect(), ut.value ? (Le.value && (clearTimeout(Le.value), Le.value = null), Xe(), ut.value = !1) : Xe();
@@ -9089,9 +9093,9 @@ const Rs = {
9089
9093
  }, is = () => {
9090
9094
  On();
9091
9095
  }, aa = () => {
9092
- !x.richText || !m.value || (Ft.value && Ft.value.disconnect(), El.value !== null && (clearTimeout(El.value), El.value = null), Ft.value = new MutationObserver(() => {
9093
- El.value === null && (El.value = setTimeout(() => {
9094
- El.value = null, we(() => {
9096
+ !x.richText || !m.value || (Ft.value && Ft.value.disconnect(), Hl.value !== null && (clearTimeout(Hl.value), Hl.value = null), Ft.value = new MutationObserver(() => {
9097
+ Hl.value === null && (Hl.value = setTimeout(() => {
9098
+ Hl.value = null, we(() => {
9095
9099
  ln("MutationObserver");
9096
9100
  });
9097
9101
  }, 200));
@@ -9285,7 +9289,7 @@ const Rs = {
9285
9289
  }, [
9286
9290
  n("div", {
9287
9291
  class: "dss-toolbar-dropdown-item",
9288
- onClick: l[1] || (l[1] = (s) => Tl("<h1>"))
9292
+ onClick: l[1] || (l[1] = (s) => Vl("<h1>"))
9289
9293
  }, [
9290
9294
  l[55] || (l[55] = n("svg", {
9291
9295
  width: "13",
@@ -9307,7 +9311,7 @@ const Rs = {
9307
9311
  ]),
9308
9312
  n("div", {
9309
9313
  class: "dss-toolbar-dropdown-item",
9310
- onClick: l[2] || (l[2] = (s) => Tl("<h2>"))
9314
+ onClick: l[2] || (l[2] = (s) => Vl("<h2>"))
9311
9315
  }, [
9312
9316
  l[56] || (l[56] = n("svg", {
9313
9317
  width: "13",
@@ -9329,7 +9333,7 @@ const Rs = {
9329
9333
  ]),
9330
9334
  n("div", {
9331
9335
  class: "dss-toolbar-dropdown-item",
9332
- onClick: l[3] || (l[3] = (s) => Tl("<h3>"))
9336
+ onClick: l[3] || (l[3] = (s) => Vl("<h3>"))
9333
9337
  }, [
9334
9338
  l[57] || (l[57] = n("svg", {
9335
9339
  width: "13",
@@ -9351,7 +9355,7 @@ const Rs = {
9351
9355
  ]),
9352
9356
  n("div", {
9353
9357
  class: "dss-toolbar-dropdown-item",
9354
- onClick: l[4] || (l[4] = (s) => Tl("<h4>"))
9358
+ onClick: l[4] || (l[4] = (s) => Vl("<h4>"))
9355
9359
  }, [
9356
9360
  l[58] || (l[58] = n("svg", {
9357
9361
  width: "13",
@@ -9373,7 +9377,7 @@ const Rs = {
9373
9377
  ]),
9374
9378
  n("div", {
9375
9379
  class: "dss-toolbar-dropdown-item",
9376
- onClick: l[5] || (l[5] = (s) => Tl("<h5>"))
9380
+ onClick: l[5] || (l[5] = (s) => Vl("<h5>"))
9377
9381
  }, [
9378
9382
  l[59] || (l[59] = n("svg", {
9379
9383
  width: "13",
@@ -9395,7 +9399,7 @@ const Rs = {
9395
9399
  ]),
9396
9400
  n("div", {
9397
9401
  class: "dss-toolbar-dropdown-item",
9398
- onClick: l[6] || (l[6] = (s) => Tl("<h6>"))
9402
+ onClick: l[6] || (l[6] = (s) => Vl("<h6>"))
9399
9403
  }, [
9400
9404
  l[60] || (l[60] = n("svg", {
9401
9405
  width: "13",
@@ -9417,7 +9421,7 @@ const Rs = {
9417
9421
  ]),
9418
9422
  n("div", {
9419
9423
  class: "dss-toolbar-dropdown-item",
9420
- onClick: l[7] || (l[7] = (s) => Tl("<p>"))
9424
+ onClick: l[7] || (l[7] = (s) => Vl("<p>"))
9421
9425
  }, [
9422
9426
  l[61] || (l[61] = n("svg", {
9423
9427
  width: "13",
@@ -9814,7 +9818,7 @@ const Rs = {
9814
9818
  class: "dss-link-modal-input",
9815
9819
  placeholder: R(F)("textEditor.image.auto"),
9816
9820
  onKeyup: nn(Hn, ["enter"]),
9817
- onInput: $l
9821
+ onInput: Al
9818
9822
  }, null, 40, Sd), [
9819
9823
  [yl, qt.value]
9820
9824
  ])
@@ -9872,7 +9876,7 @@ const Rs = {
9872
9876
  class: "dss-link-modal-input",
9873
9877
  placeholder: R(F)("textEditor.image.auto"),
9874
9878
  onKeyup: nn(Hn, ["enter"]),
9875
- onInput: $l
9879
+ onInput: Al
9876
9880
  }, null, 40, Bd), [
9877
9881
  [yl, qt.value]
9878
9882
  ])
@@ -10621,7 +10625,7 @@ const Rs = {
10621
10625
  mt(s) && Wl(s) ? (u(), d("div", C2, [
10622
10626
  kl(a.$slots, s)
10623
10627
  ])) : V("", !0),
10624
- mt(s) && Wl(s) && i < P.customToolbarSlots.length - 1 && Hl(i) ? (u(), d("div", b2)) : V("", !0)
10628
+ mt(s) && Wl(s) && i < P.customToolbarSlots.length - 1 && Tl(i) ? (u(), d("div", b2)) : V("", !0)
10625
10629
  ], 64))), 128))
10626
10630
  ])) : V("", !0)
10627
10631
  ], 36)) : V("", !0)
@@ -10761,7 +10765,7 @@ const Rs = {
10761
10765
  ne[xe.value] = K, ct("update:presetColors", ne), ct("update:modelValue", K), xe.value = -1, $e.value = !1;
10762
10766
  }
10763
10767
  }
10764
- function Ll() {
10768
+ function El() {
10765
10769
  de.disabled || (xe.value = -1, $e.value = !$e.value, $e.value && (Ot(), we(() => Ae.value?.focus())));
10766
10770
  }
10767
10771
  function Kt(G) {
@@ -11012,7 +11016,7 @@ const Rs = {
11012
11016
  key: 0,
11013
11017
  type: "button",
11014
11018
  class: se(["dss-color-picker__add-bubble", { "dss-color-picker__add-bubble--active": $e.value }]),
11015
- onClick: ze(Ll, ["stop"])
11019
+ onClick: ze(El, ["stop"])
11016
11020
  }, " + ", 2)) : V("", !0)
11017
11021
  ])
11018
11022
  ])
@@ -11029,7 +11033,7 @@ const Rs = {
11029
11033
  key: 0,
11030
11034
  type: "button",
11031
11035
  class: se(["dss-color-picker__add-bubble", { "dss-color-picker__add-bubble--active": $e.value }]),
11032
- onClick: ze(Ll, ["stop"])
11036
+ onClick: ze(El, ["stop"])
11033
11037
  }, " + ", 2)) : V("", !0)
11034
11038
  ])) : V("", !0),
11035
11039
  Ze.value ? (u(), d(te, { key: 2 }, [
@@ -11375,7 +11379,7 @@ const Rs = {
11375
11379
  function Tt(oe, Ie) {
11376
11380
  return !!document.elementFromPoint(oe, Ie)?.closest("[data-dss-dnd-delete-zone]");
11377
11381
  }
11378
- function Ll(oe, Ie) {
11382
+ function El(oe, Ie) {
11379
11383
  if (x.value && Tt(oe, Ie)) {
11380
11384
  xe.value = !0, Re.value = null, ve.value = -1;
11381
11385
  return;
@@ -11400,7 +11404,7 @@ const Rs = {
11400
11404
  }
11401
11405
  function Kt(oe) {
11402
11406
  oe.preventDefault(), Ut(oe.clientX, oe.clientY), !Me && (Me = requestAnimationFrame(() => {
11403
- Me = null, Ll(oe.clientX, oe.clientY);
11407
+ Me = null, El(oe.clientX, oe.clientY);
11404
11408
  }));
11405
11409
  }
11406
11410
  function qt(oe) {
@@ -11843,7 +11847,7 @@ const Rs = {
11843
11847
  function Tt(T) {
11844
11848
  return le.value[T.key]?.filterMode || "contain";
11845
11849
  }
11846
- function Ll(T) {
11850
+ function El(T) {
11847
11851
  return F(`filter.operators.${T}`);
11848
11852
  }
11849
11853
  function Kt(T) {
@@ -12222,7 +12226,7 @@ const Rs = {
12222
12226
  class: "dss-filter-trigger",
12223
12227
  onClick: ze((re) => Ut(`${A.id}:op`), ["stop"])
12224
12228
  }, [
12225
- n("span", k9, E(Ll(A.operator)), 1),
12229
+ n("span", k9, E(El(A.operator)), 1),
12226
12230
  _[17] || (_[17] = n("svg", {
12227
12231
  class: "dss-filter-chevron",
12228
12232
  viewBox: "0 0 24 24",