dsp-semactic 0.6.35 → 0.6.36

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
@@ -69,8 +69,8 @@ const Vs = {
69
69
  }
70
70
  },
71
71
  emits: ["update:modelValue"],
72
- setup(F, { emit: me }) {
73
- const V = F, I = me, { t: fe, locale: X } = za(), P = S(!1), ee = S("days"), ut = /* @__PURE__ */ new Date(), Me = h(() => V.minDate instanceof Date ? V.minDate : ut), g = S(Me.value.getMonth()), De = S(Me.value.getFullYear()), Se = S(Me.value.getMonth()), ve = S(Me.value.getFullYear()), ne = S(Me.value.getMonth()), we = S(Me.value.getFullYear()), W = S("start"), Te = S(null), Oe = S(null);
72
+ setup(F, { emit: pe }) {
73
+ const V = F, I = pe, { t: fe, locale: X } = za(), P = S(!1), ee = S("days"), ut = /* @__PURE__ */ new Date(), Me = h(() => V.minDate instanceof Date ? V.minDate : ut), g = S(Me.value.getMonth()), De = S(Me.value.getFullYear()), Se = S(Me.value.getMonth()), ve = S(Me.value.getFullYear()), ne = S(Me.value.getMonth()), we = S(Me.value.getFullYear()), W = S("start"), Te = S(null), Oe = S(null);
74
74
  function Je() {
75
75
  const U = Me.value, Q = U.getMonth(), Y = U.getFullYear(), Ce = Q === 11 ? 0 : Q + 1, Ue = Q === 11 ? Y + 1 : Y;
76
76
  return { left: { month: Q, year: Y }, right: { month: Ce, year: Ue } };
@@ -221,7 +221,7 @@ const Vs = {
221
221
  function ue(U) {
222
222
  return !V.availableDates || !V.availableDates.length ? !0 : V.availableDates.some((Q) => Q instanceof Date && K(Q, U));
223
223
  }
224
- function pe(U) {
224
+ function he(U) {
225
225
  const Q = J(U);
226
226
  return !(V.minDate instanceof Date && Q < J(V.minDate) || V.maxDate instanceof Date && Q > J(V.maxDate));
227
227
  }
@@ -229,7 +229,7 @@ const Vs = {
229
229
  return !V.exceptDates || !V.exceptDates.length ? !1 : V.exceptDates.some((Q) => Q instanceof Date && K(Q, U));
230
230
  }
231
231
  function bt(U) {
232
- return je(U) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(V.mode) ? ue(U) : pe(U);
232
+ return je(U) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(V.mode) ? ue(U) : he(U);
233
233
  }
234
234
  function Rt(U) {
235
235
  const Q = at.value, Y = ml.value, Ce = J(U), Ue = Tt.value && Y.start && Y.end && Ce > J(Y.start) && Ce < J(Y.end), wt = Tt.value && Y.start && K(U, Y.start), xt = Tt.value && Y.end && K(U, Y.end), ot = wt && xt, Dt = Ee.value && Q && K(U, Q) || wt || xt;
@@ -875,8 +875,8 @@ const Vs = {
875
875
  }
876
876
  },
877
877
  emits: ["add-marker", "update-marker", "delete-marker"],
878
- setup(F, { emit: me }) {
879
- const { t: V, locale: I } = za(), fe = me, X = S(null), P = S(null), ee = S(null), ut = S(0), Me = S(0);
878
+ setup(F, { emit: pe }) {
879
+ const { t: V, locale: I } = za(), fe = pe, X = S(null), P = S(null), ee = S(null), ut = S(0), Me = S(0);
880
880
  let g = null, De = null;
881
881
  const Se = 20, ve = h(() => {
882
882
  if (Me.value, ut.value, !X.value || !P.value) return 0;
@@ -1203,7 +1203,7 @@ const Vs = {
1203
1203
  }, ue = h(() => {
1204
1204
  const e = Z.value;
1205
1205
  return e && e.fill && e.fill.area && typeof e.fill.area.opacity == "number" ? e.fill.area.opacity : 0.3;
1206
- }), pe = h(() => {
1206
+ }), he = h(() => {
1207
1207
  const e = Z.value;
1208
1208
  return e && e.smoothing && e.smoothing.enabled === !0;
1209
1209
  }), je = h(() => {
@@ -1211,7 +1211,7 @@ const Vs = {
1211
1211
  return e && e.smoothing && typeof e.smoothing.factor == "number" ? e.smoothing.factor : 0.3;
1212
1212
  }), bt = h(() => {
1213
1213
  const e = Z.value;
1214
- return pe.value ? e && e.smoothing && typeof e.smoothing.barRadius == "number" ? e.smoothing.barRadius : 4 : 0;
1214
+ return he.value ? e && e.smoothing && typeof e.smoothing.barRadius == "number" ? e.smoothing.barRadius : 4 : 0;
1215
1215
  }), Rt = h(() => {
1216
1216
  const e = Z.value, o = e && e.colors && Array.isArray(e.colors) ? e.colors : [];
1217
1217
  return o.length > 0 ? o : ["#3B82F6", "#EF4444", "#10B981", "#F59E0B", "#8B5CF6", "#F97316", "#06B6D4", "#84CC16"];
@@ -1633,19 +1633,19 @@ const Vs = {
1633
1633
  Re.value.show = !1;
1634
1634
  return;
1635
1635
  }
1636
- if (pa.value.find((he) => !he || he.isHidden ? !1 : Math.sqrt(
1637
- Math.pow(he.x - u, 2) + Math.pow(he.y - m, 2)
1638
- ) <= he.radius + 3))
1636
+ if (pa.value.find((me) => !me || me.isHidden ? !1 : Math.sqrt(
1637
+ Math.pow(me.x - u, 2) + Math.pow(me.y - m, 2)
1638
+ ) <= me.radius + 3))
1639
1639
  Re.value.show = !1;
1640
1640
  else {
1641
- const he = pa.value.filter((Ae) => !Ae || Ae.isHidden ? !1 : Math.sqrt(
1641
+ const me = pa.value.filter((Ae) => !Ae || Ae.isHidden ? !1 : Math.sqrt(
1642
1642
  Math.pow(Ae.x - u, 2) + Math.pow(Ae.y - m, 2)
1643
1643
  ) <= 250);
1644
- if (he.length > 0) {
1645
- let Ae = he[0], Ne = Math.sqrt(
1644
+ if (me.length > 0) {
1645
+ let Ae = me[0], Ne = Math.sqrt(
1646
1646
  Math.pow(Ae.x - u, 2) + Math.pow(Ae.y - m, 2)
1647
1647
  );
1648
- he.forEach((et) => {
1648
+ me.forEach((et) => {
1649
1649
  const Xe = Math.sqrt(
1650
1650
  Math.pow(et.x - u, 2) + Math.pow(et.y - m, 2)
1651
1651
  );
@@ -1679,7 +1679,7 @@ const Vs = {
1679
1679
  }
1680
1680
  if (de.value.isDragging && de.value.scale > 1 && Bl.value && Be.value) {
1681
1681
  Re.value.show = !1;
1682
- const tt = e.clientX - de.value.lastMouseX, { minX: he, maxX: Ae } = vl.value, Ne = Ae - he || 1, rt = tt * 0.8;
1682
+ const tt = e.clientX - de.value.lastMouseX, { minX: me, maxX: Ae } = vl.value, Ne = Ae - me || 1, rt = tt * 0.8;
1683
1683
  de.value.offsetX += rt;
1684
1684
  const et = Ne / de.value.scale, Xe = Ne - et, ze = 0, Qe = -Xe / Ne * j.value.width, Wt = ze;
1685
1685
  de.value.offsetX = Math.max(Qe, Math.min(Wt, de.value.offsetX)), de.value.lastMouseX = e.clientX, de.value.lastMouseY = e.clientY;
@@ -1691,7 +1691,7 @@ const Vs = {
1691
1691
  }
1692
1692
  const { minX: M, maxX: _ } = vl.value, z = _ - M || 1, O = z / de.value.scale, q = M - de.value.offsetX / j.value.width * z, D = (u - j.value.left) / j.value.width, re = q + D * O, Ve = Math.round(re);
1693
1693
  if (Ve >= 0 && Ve <= _) {
1694
- const tt = fl(Ve), he = _n.value.map((Ae, Ne) => {
1694
+ const tt = fl(Ve), me = _n.value.map((Ae, Ne) => {
1695
1695
  const be = W.series.findIndex((et) => et === Ae), rt = Ae.data[Ve];
1696
1696
  return {
1697
1697
  seriesName: Ae.name,
@@ -1704,7 +1704,7 @@ const Vs = {
1704
1704
  show: !0,
1705
1705
  x: tt,
1706
1706
  categoryIndex: Ve,
1707
- data: he
1707
+ data: me
1708
1708
  };
1709
1709
  }
1710
1710
  }, Fl = () => {
@@ -1975,7 +1975,7 @@ const Vs = {
1975
1975
  ${q}
1976
1976
  ${Ve}
1977
1977
  </g>
1978
- </svg>`, he = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), Ae = URL.createObjectURL(he), Ne = document.createElement("a");
1978
+ </svg>`, me = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), Ae = URL.createObjectURL(me), Ne = document.createElement("a");
1979
1979
  Ne.href = Ae, Ne.download = Cl("svg"), document.body.appendChild(Ne), Ne.click(), document.body.removeChild(Ne), URL.revokeObjectURL(Ae), bl(e), ll();
1980
1980
  } catch (o) {
1981
1981
  console.error("Error downloading SVG:", o), bl(e);
@@ -2010,7 +2010,7 @@ const Vs = {
2010
2010
  hl.setAttribute("cx", parseFloat(Qe) + parseFloat(qt) / 2), hl.setAttribute("cy", parseFloat(Wt) + parseFloat(Kl) / 2), hl.setAttribute("r", Math.min(parseFloat(qt), parseFloat(Kl)) / 2 - 1), hl.setAttribute("fill", ze), hl.setAttribute("stroke", "#fafafa"), hl.setAttribute("stroke-width", "2"), be.parentNode.replaceChild(hl, be);
2011
2011
  }
2012
2012
  });
2013
- const tt = new XMLSerializer().serializeToString(O), he = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), Ae = URL.createObjectURL(he), Ne = new Image();
2013
+ const tt = new XMLSerializer().serializeToString(O), me = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), Ae = URL.createObjectURL(me), Ne = new Image();
2014
2014
  return new Promise((be, rt) => {
2015
2015
  Ne.onload = async () => {
2016
2016
  try {
@@ -2130,8 +2130,8 @@ const Vs = {
2130
2130
  if (M !== de.value.scale) {
2131
2131
  const { minX: _, maxX: z } = vl.value, O = z - _ || 1, q = O / de.value.scale, D = _ - de.value.offsetX / j.value.width * O, re = (u - j.value.left) / j.value.width, Ve = D + re * q;
2132
2132
  de.value.scale = M;
2133
- const tt = O / de.value.scale, he = Ve - re * tt;
2134
- de.value.offsetX = -(he - _) / O * j.value.width, de.value.scale <= 1.01 && (de.value.scale = 1, de.value.offsetX = 0);
2133
+ const tt = O / de.value.scale, me = Ve - re * tt;
2134
+ de.value.offsetX = -(me - _) / O * j.value.width, de.value.scale <= 1.01 && (de.value.scale = 1, de.value.offsetX = 0);
2135
2135
  }
2136
2136
  de.value.zoomTimeout = setTimeout(() => {
2137
2137
  de.value.isZooming = !1, de.value.zoomTimeout = null;
@@ -2164,12 +2164,12 @@ const Vs = {
2164
2164
  }
2165
2165
  if (El.value) {
2166
2166
  const D = !ct.value, re = fn.value, Ve = re ? Nn.value + On.value + Math.max(24, Vn.value + 16) : 0, tt = D ? 12 : m;
2167
- let he = 0;
2168
- yt.value && (he += D ? 8 : 15), Pt.value && (he += D ? 6 : 10);
2167
+ let me = 0;
2168
+ yt.value && (me += D ? 8 : 15), Pt.value && (me += D ? 6 : 10);
2169
2169
  const Ae = Je();
2170
2170
  let Ne = tt + (D ? 4 : 16) + (re ? Ve : 0), be = tt + (re ? Ve : 0);
2171
2171
  ct.value && vt.value === "left" ? Ne += Ae.legendWidth || 150 : ct.value && vt.value === "right" && (be += Ae.legendWidth || 150);
2172
- const et = at.value === "semi-radial" ? re ? Ve : 8 : re ? Ve : D ? 8 : m + 80, Xe = re ? 14 : 0, ze = tt + he + Xe, Qe = {
2172
+ const et = at.value === "semi-radial" ? re ? Ve : 8 : re ? Ve : D ? 8 : m + 80, Xe = re ? 14 : 0, ze = tt + me + Xe, Qe = {
2173
2173
  left: Ne,
2174
2174
  top: ze,
2175
2175
  right: be,
@@ -2221,8 +2221,8 @@ const Vs = {
2221
2221
  ), Ua = h(() => {
2222
2222
  const e = In.value ? Jl.value : 1, o = Nt.value, t = Zt.value, u = _l.value, m = $t.value, C = Math.PI, M = Math.PI + e * Math.PI;
2223
2223
  if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
2224
- const _ = o + m * Math.cos(C), z = t + m * Math.sin(C), O = o + m * Math.cos(M), q = t + m * Math.sin(M), D = o + u * Math.cos(M), re = t + u * Math.sin(M), Ve = o + u * Math.cos(C), tt = t + u * Math.sin(C), he = e > 0.5 ? 1 : 0;
2225
- return `M ${o} ${t} L ${_} ${z} A ${m} ${m} 0 ${he} 1 ${O} ${q} L ${D} ${re} A ${u} ${u} 0 ${he} 1 ${Ve} ${tt} Z`;
2224
+ const _ = o + m * Math.cos(C), z = t + m * Math.sin(C), O = o + m * Math.cos(M), q = t + m * Math.sin(M), D = o + u * Math.cos(M), re = t + u * Math.sin(M), Ve = o + u * Math.cos(C), tt = t + u * Math.sin(C), me = e > 0.5 ? 1 : 0;
2225
+ return `M ${o} ${t} L ${_} ${z} A ${m} ${m} 0 ${me} 1 ${O} ${q} L ${D} ${re} A ${u} ${u} 0 ${me} 1 ${Ve} ${tt} Z`;
2226
2226
  }), Ha = h(() => {
2227
2227
  if (!(!Yl.value || !In.value) && !il.value)
2228
2228
  return `url(#${Cn.value})`;
@@ -2301,14 +2301,14 @@ const Vs = {
2301
2301
  return { minX: 0, maxX: 8, minY: 0, maxY: 50, minSize: 10, maxSize: 30 };
2302
2302
  let e = 1 / 0, o = -1 / 0, t = 1 / 0, u = -1 / 0, m = 1 / 0, C = -1 / 0, M = !1;
2303
2303
  if (_n.value.forEach((Ve, tt) => {
2304
- Ve?.data?.length && Ve.data.forEach((he, Ae) => {
2304
+ Ve?.data?.length && Ve.data.forEach((me, Ae) => {
2305
2305
  let Ne, be, rt;
2306
- if (typeof he == "object" && he !== null && !Array.isArray(he))
2307
- Ne = typeof he.x == "number" ? he.x : Ae, be = typeof he.y == "number" ? he.y : 0, rt = typeof he.size == "number" ? he.size : 20;
2308
- else if (Array.isArray(he) && he.length >= 3)
2309
- Ne = typeof he[0] == "number" ? he[0] : Ae, be = typeof he[1] == "number" ? he[1] : 0, rt = typeof he[2] == "number" ? he[2] : 20;
2310
- else if (typeof he == "number")
2311
- Ne = Ae, be = he, rt = Xa(tt, Ae);
2306
+ if (typeof me == "object" && me !== null && !Array.isArray(me))
2307
+ Ne = typeof me.x == "number" ? me.x : Ae, be = typeof me.y == "number" ? me.y : 0, rt = typeof me.size == "number" ? me.size : 20;
2308
+ else if (Array.isArray(me) && me.length >= 3)
2309
+ Ne = typeof me[0] == "number" ? me[0] : Ae, be = typeof me[1] == "number" ? me[1] : 0, rt = typeof me[2] == "number" ? me[2] : 20;
2310
+ else if (typeof me == "number")
2311
+ Ne = Ae, be = me, rt = Xa(tt, Ae);
2312
2312
  else
2313
2313
  return;
2314
2314
  isFinite(Ne) && isFinite(be) && isFinite(rt) && (e = Math.min(e, Ne), o = Math.max(o, Ne), t = Math.min(t, be), u = Math.max(u, be), m = Math.min(m, rt), C = Math.max(C, rt), M = !0);
@@ -2373,9 +2373,9 @@ const Vs = {
2373
2373
  return Ae;
2374
2374
  }
2375
2375
  const e = [], { minX: o, maxX: t } = vl.value, u = yl.value !== null ? yl.value : o, m = el.value !== null ? el.value : t, C = m - u || 1, M = C / de.value.scale, _ = u - de.value.offsetX / j.value.width * C, z = _ + M, O = Math.max(0, Math.floor(_ - 2)), q = Math.min(m, Math.ceil(z + 2)), D = q - O, re = j.value.width, tt = Math.floor(re / 60);
2376
- let he = 1;
2377
- D > tt && (he = Math.ceil(D / tt));
2378
- for (let Ae = O; Ae <= q; Ae += he)
2376
+ let me = 1;
2377
+ D > tt && (me = Math.ceil(D / tt));
2378
+ for (let Ae = O; Ae <= q; Ae += me)
2379
2379
  if (Ae >= 0 && Ae <= m) {
2380
2380
  const Ne = fl(Ae);
2381
2381
  Ne >= j.value.left - 100 && Ne <= j.value.right + 100 && e.push({
@@ -2502,7 +2502,7 @@ const Vs = {
2502
2502
  m.forEach((D) => {
2503
2503
  if (D.length > 0) {
2504
2504
  let re = "";
2505
- pe.value ? re = na(D) : re = `M ${D[0].x} ${D[0].y}` + D.slice(1).map((Ve) => ` L ${Ve.x} ${Ve.y}`).join(""), M += (M ? " " : "") + re;
2505
+ he.value ? re = na(D) : re = `M ${D[0].x} ${D[0].y}` + D.slice(1).map((Ve) => ` L ${Ve.x} ${Ve.y}`).join(""), M += (M ? " " : "") + re;
2506
2506
  }
2507
2507
  });
2508
2508
  const _ = m.reduce((D, re) => D + Fa(re), 0), z = tl.value.has(u), O = He.value === u, q = He.value !== null && He.value !== u;
@@ -2535,13 +2535,13 @@ const Vs = {
2535
2535
  }
2536
2536
  }
2537
2537
  if (z > 0 && _ !== -1) {
2538
- const O = t.data[_], q = Tl.value ? Ln(M) : fl(C), D = Tl.value ? En(C) : Nl(M), re = Tl.value ? Ln(O) : fl(_), Ve = Tl.value ? En(_) : Nl(O), tt = tl.value.has(m), he = He.value === m, Ae = He.value !== null && He.value !== m;
2538
+ const O = t.data[_], q = Tl.value ? Ln(M) : fl(C), D = Tl.value ? En(C) : Nl(M), re = Tl.value ? Ln(O) : fl(_), Ve = Tl.value ? En(_) : Nl(O), tt = tl.value.has(m), me = He.value === m, Ae = He.value !== null && He.value !== m;
2539
2539
  o.push({
2540
2540
  path: `M ${q} ${D} L ${re} ${Ve}`,
2541
2541
  color: nl(m),
2542
2542
  seriesIndex: m,
2543
2543
  animationDelay: u * Yt.value,
2544
- isHighlighted: he,
2544
+ isHighlighted: me,
2545
2545
  isDimmed: Ae,
2546
2546
  isHidden: tt,
2547
2547
  gapSize: z
@@ -2683,18 +2683,18 @@ const Vs = {
2683
2683
  t.forEach((D, re) => {
2684
2684
  if (D.length === 0) return;
2685
2685
  let Ve = `M ${D[0].x} ${D[0].y}`;
2686
- pe.value && D.length > 1 ? Ve = na(D) : D.slice(1).forEach((he) => {
2687
- Ve += ` L ${he.x} ${he.y}`;
2686
+ he.value && D.length > 1 ? Ve = na(D) : D.slice(1).forEach((me) => {
2687
+ Ve += ` L ${me.x} ${me.y}`;
2688
2688
  }), C += (C ? " " : "") + Ve;
2689
2689
  let tt = `M ${D[0].x} ${m}`;
2690
- if (tt += ` L ${D[0].x} ${D[0].y}`, pe.value && D.length > 1) {
2691
- const he = na(D), Ae = he.substring(he.indexOf("C") || he.indexOf("Q") || he.indexOf("L"));
2690
+ if (tt += ` L ${D[0].x} ${D[0].y}`, he.value && D.length > 1) {
2691
+ const me = na(D), Ae = me.substring(me.indexOf("C") || me.indexOf("Q") || me.indexOf("L"));
2692
2692
  Ae ? tt += " " + Ae : D.slice(1).forEach((Ne) => {
2693
2693
  tt += ` L ${Ne.x} ${Ne.y}`;
2694
2694
  });
2695
2695
  } else
2696
- D.slice(1).forEach((he) => {
2697
- tt += ` L ${he.x} ${he.y}`;
2696
+ D.slice(1).forEach((me) => {
2697
+ tt += ` L ${me.x} ${me.y}`;
2698
2698
  });
2699
2699
  tt += ` L ${D[D.length - 1].x} ${m} Z`, M += (M ? " " : "") + tt;
2700
2700
  });
@@ -2714,13 +2714,13 @@ const Vs = {
2714
2714
  if (Tl.value) {
2715
2715
  const m = o + 1, M = j.value.height / m, _ = M * (2 / 3), z = Math.min(4, _ / u * 0.15), O = _ - (u - 1) * z, q = Math.max(4, O / u);
2716
2716
  t.forEach((D, re) => {
2717
- const Ve = W.series.findIndex((Ne) => Ne === D), tt = He.value === Ve, he = He.value !== null && He.value !== Ve, Ae = tl.value.has(Ve);
2717
+ const Ve = W.series.findIndex((Ne) => Ne === D), tt = He.value === Ve, me = He.value !== null && He.value !== Ve, Ae = tl.value.has(Ve);
2718
2718
  D.data.forEach((Ne, be) => {
2719
2719
  if (Ne == null || typeof Ne != "number" || !isFinite(Ne))
2720
2720
  return;
2721
2721
  const Xe = j.value.top + (be + 0.5) * M - _ / 2 + re * (q + z), ze = j.value.left, Qe = Math.abs(Ln(Ne) - j.value.left);
2722
2722
  let Wt = "";
2723
- if (pe.value && Qe > 0) {
2723
+ if (he.value && Qe > 0) {
2724
2724
  const qt = Math.min(bt.value, q / 2, Qe / 2);
2725
2725
  Wt = [
2726
2726
  `M ${ze} ${Xe}`,
@@ -2743,23 +2743,23 @@ const Vs = {
2743
2743
  seriesName: D.name,
2744
2744
  animationDelay: (re * t.length + be) * (Yt.value / 4),
2745
2745
  isHighlighted: tt,
2746
- isDimmed: he,
2746
+ isDimmed: me,
2747
2747
  isHidden: Ae,
2748
2748
  barPath: Wt,
2749
- isSmooth: pe.value && Qe > 0
2749
+ isSmooth: he.value && Qe > 0
2750
2750
  });
2751
2751
  });
2752
2752
  });
2753
2753
  } else {
2754
2754
  const m = o + 1, M = j.value.width / m, _ = M * 0.8, z = _ / u, O = z * 0.05, q = z - O;
2755
2755
  t.forEach((D, re) => {
2756
- const Ve = W.series.findIndex((Ne) => Ne === D), tt = He.value === Ve, he = He.value !== null && He.value !== Ve, Ae = tl.value.has(Ve);
2756
+ const Ve = W.series.findIndex((Ne) => Ne === D), tt = He.value === Ve, me = He.value !== null && He.value !== Ve, Ae = tl.value.has(Ve);
2757
2757
  D.data.forEach((Ne, be) => {
2758
2758
  if (Ne == null || typeof Ne != "number" || !isFinite(Ne))
2759
2759
  return;
2760
2760
  const Xe = j.value.left + (be + 0.5) * M - _ / 2 + re * z + O / 2, ze = Nl(Math.max(0, Ne)), Qe = Math.abs(Nl(0) - Nl(Ne));
2761
2761
  let Wt = "";
2762
- if (pe.value && Qe > 0) {
2762
+ if (he.value && Qe > 0) {
2763
2763
  const qt = Math.min(bt.value, q / 2, Qe / 2);
2764
2764
  Wt = [
2765
2765
  `M ${Xe} ${ze + Qe}`,
@@ -2782,10 +2782,10 @@ const Vs = {
2782
2782
  seriesName: D.name,
2783
2783
  animationDelay: (re * t.length + be) * (Yt.value / 4),
2784
2784
  isHighlighted: tt,
2785
- isDimmed: he,
2785
+ isDimmed: me,
2786
2786
  isHidden: Ae,
2787
2787
  barPath: Wt,
2788
- isSmooth: pe.value && Qe > 0
2788
+ isSmooth: he.value && Qe > 0
2789
2789
  });
2790
2790
  });
2791
2791
  });
@@ -2798,10 +2798,10 @@ const Vs = {
2798
2798
  let o = at.value === "semi-radial" ? Math.PI : -Math.PI / 2;
2799
2799
  const t = at.value === "semi-radial" ? Math.PI : Math.PI * 2, u = [];
2800
2800
  if (e.length === 1) {
2801
- const { series: C, originalIndex: M } = e[0], _ = C.data[0] || 0, z = o, O = o + t - 1e-3, q = z + t / 2, D = Nt.value + Math.cos(z) * _l.value, re = Zt.value + Math.sin(z) * _l.value, Ve = Nt.value + Math.cos(O) * _l.value, tt = Zt.value + Math.sin(O) * _l.value, he = Nt.value + Math.cos(O) * $t.value, Ae = Zt.value + Math.sin(O) * $t.value, Ne = Nt.value + Math.cos(z) * $t.value, be = Zt.value + Math.sin(z) * $t.value, rt = 1, et = [
2801
+ const { series: C, originalIndex: M } = e[0], _ = C.data[0] || 0, z = o, O = o + t - 1e-3, q = z + t / 2, D = Nt.value + Math.cos(z) * _l.value, re = Zt.value + Math.sin(z) * _l.value, Ve = Nt.value + Math.cos(O) * _l.value, tt = Zt.value + Math.sin(O) * _l.value, me = Nt.value + Math.cos(O) * $t.value, Ae = Zt.value + Math.sin(O) * $t.value, Ne = Nt.value + Math.cos(z) * $t.value, be = Zt.value + Math.sin(z) * $t.value, rt = 1, et = [
2802
2802
  `M ${D} ${re}`,
2803
2803
  `A ${_l.value} ${_l.value} 0 ${rt} 1 ${Ve} ${tt}`,
2804
- `L ${he} ${Ae}`,
2804
+ `L ${me} ${Ae}`,
2805
2805
  `A ${$t.value} ${$t.value} 0 ${rt} 0 ${Ne} ${be}`,
2806
2806
  "Z"
2807
2807
  ].join(" "), Xe = nl(M);
@@ -2823,7 +2823,7 @@ const Vs = {
2823
2823
  }
2824
2824
  if (il.value && e.length === 2) {
2825
2825
  const C = e[0], M = e[1], _ = Math.min(100, Math.max(0, C.series.data[0] || 0)), z = _ / 100 * t, O = (q, D, re, Ve, tt) => {
2826
- const he = q + (D - q) / 2, Ae = D - q, Ne = Nt.value + Math.cos(q) * _l.value, be = Zt.value + Math.sin(q) * _l.value, rt = Nt.value + Math.cos(D) * _l.value, et = Zt.value + Math.sin(D) * _l.value, Xe = Nt.value + Math.cos(D) * $t.value, ze = Zt.value + Math.sin(D) * $t.value, Qe = Nt.value + Math.cos(q) * $t.value, Wt = Zt.value + Math.sin(q) * $t.value, qt = Ae > Math.PI ? 1 : 0, Kl = [
2826
+ const me = q + (D - q) / 2, Ae = D - q, Ne = Nt.value + Math.cos(q) * _l.value, be = Zt.value + Math.sin(q) * _l.value, rt = Nt.value + Math.cos(D) * _l.value, et = Zt.value + Math.sin(D) * _l.value, Xe = Nt.value + Math.cos(D) * $t.value, ze = Zt.value + Math.sin(D) * $t.value, Qe = Nt.value + Math.cos(q) * $t.value, Wt = Zt.value + Math.sin(q) * $t.value, qt = Ae > Math.PI ? 1 : 0, Kl = [
2827
2827
  `M ${Ne} ${be}`,
2828
2828
  `A ${_l.value} ${_l.value} 0 ${qt} 1 ${rt} ${et}`,
2829
2829
  `L ${Xe} ${ze}`,
@@ -2843,16 +2843,16 @@ const Vs = {
2843
2843
  isHidden: !1,
2844
2844
  startAngle: q,
2845
2845
  endAngle: D,
2846
- midAngle: he
2846
+ midAngle: me
2847
2847
  };
2848
2848
  };
2849
2849
  return u.push(O(o, o + z, C.series, C.originalIndex, _)), u.push(O(o, o + t, M.series, M.originalIndex, 100)), u;
2850
2850
  }
2851
2851
  const m = e.reduce((C, { series: M }) => C + (M.data[0] || 0), 0);
2852
2852
  return m === 0 ? [] : (e.forEach(({ series: C, originalIndex: M }) => {
2853
- const _ = C.data[0] || 0, z = _ / m * t, O = o, q = o + z, D = O + z / 2, re = Nt.value + Math.cos(O) * _l.value, Ve = Zt.value + Math.sin(O) * _l.value, tt = Nt.value + Math.cos(q) * _l.value, he = Zt.value + Math.sin(q) * _l.value, Ae = Nt.value + Math.cos(q) * $t.value, Ne = Zt.value + Math.sin(q) * $t.value, be = Nt.value + Math.cos(O) * $t.value, rt = Zt.value + Math.sin(O) * $t.value, et = z > Math.PI ? 1 : 0, Xe = [
2853
+ const _ = C.data[0] || 0, z = _ / m * t, O = o, q = o + z, D = O + z / 2, re = Nt.value + Math.cos(O) * _l.value, Ve = Zt.value + Math.sin(O) * _l.value, tt = Nt.value + Math.cos(q) * _l.value, me = Zt.value + Math.sin(q) * _l.value, Ae = Nt.value + Math.cos(q) * $t.value, Ne = Zt.value + Math.sin(q) * $t.value, be = Nt.value + Math.cos(O) * $t.value, rt = Zt.value + Math.sin(O) * $t.value, et = z > Math.PI ? 1 : 0, Xe = [
2854
2854
  `M ${re} ${Ve}`,
2855
- `A ${_l.value} ${_l.value} 0 ${et} 1 ${tt} ${he}`,
2855
+ `A ${_l.value} ${_l.value} 0 ${et} 1 ${tt} ${me}`,
2856
2856
  `L ${Ae} ${Ne}`,
2857
2857
  `A ${$t.value} ${$t.value} 0 ${et} 0 ${be} ${rt}`,
2858
2858
  "Z"
@@ -2882,11 +2882,11 @@ const Vs = {
2882
2882
  }), s = h(() => {
2883
2883
  if (!fn.value || !El.value) return [];
2884
2884
  const e = Vn.value, o = Nn.value, t = On.value, u = ca.value, m = 15, C = e * 1.3, M = 0.55, _ = (D, re) => {
2885
- const Ve = Nt.value + Math.cos(D.midAngle) * $t.value, tt = Zt.value + Math.sin(D.midAngle) * $t.value, he = Nt.value + Math.cos(D.midAngle) * ($t.value + o), Ae = Zt.value + Math.sin(D.midAngle) * ($t.value + o), be = he + t * (re ? 1 : -1), rt = re ? he + m : he - m, et = Ae - u, Xe = `${D.seriesName}: ${Dl(D.value)}`, ze = Xe.length * e * M;
2885
+ const Ve = Nt.value + Math.cos(D.midAngle) * $t.value, tt = Zt.value + Math.sin(D.midAngle) * $t.value, me = Nt.value + Math.cos(D.midAngle) * ($t.value + o), Ae = Zt.value + Math.sin(D.midAngle) * ($t.value + o), be = me + t * (re ? 1 : -1), rt = re ? me + m : me - m, et = Ae - u, Xe = `${D.seriesName}: ${Dl(D.value)}`, ze = Xe.length * e * M;
2886
2886
  return {
2887
2887
  pointerStartX: Ve,
2888
2888
  pointerStartY: tt,
2889
- pointerEndX: he,
2889
+ pointerEndX: me,
2890
2890
  pointerEndY: Ae,
2891
2891
  horizontalEndX: be,
2892
2892
  horizontalEndY: Ae,
@@ -2896,19 +2896,19 @@ const Vs = {
2896
2896
  textWidth: ze,
2897
2897
  textAnchor: re ? "start" : "end",
2898
2898
  isRightSide: re,
2899
- pointerLineLength: Math.hypot(he - Ve, Ae - tt),
2900
- horizontalLineLength: Math.hypot(be - he, 0)
2899
+ pointerLineLength: Math.hypot(me - Ve, Ae - tt),
2900
+ horizontalLineLength: Math.hypot(be - me, 0)
2901
2901
  };
2902
2902
  }, z = (D, re) => {
2903
- const Ve = Math.abs(D.textY - re.textY) < C, tt = D.isRightSide ? D.textX : D.textX - D.textWidth, he = D.isRightSide ? D.textX + D.textWidth : D.textX, Ae = re.isRightSide ? re.textX : re.textX - re.textWidth, Ne = re.isRightSide ? re.textX + re.textWidth : re.textX, be = tt < Ne && Ae < he;
2903
+ const Ve = Math.abs(D.textY - re.textY) < C, tt = D.isRightSide ? D.textX : D.textX - D.textWidth, me = D.isRightSide ? D.textX + D.textWidth : D.textX, Ae = re.isRightSide ? re.textX : re.textX - re.textWidth, Ne = re.isRightSide ? re.textX + re.textWidth : re.textX, be = tt < Ne && Ae < me;
2904
2904
  return Ve && be;
2905
2905
  }, O = n.value.filter((D) => !D.isHidden), q = [];
2906
2906
  for (let D = 0; D < O.length; D++) {
2907
2907
  const re = O[D];
2908
2908
  let Ve = Math.cos(re.midAngle) >= 0;
2909
2909
  if (D > 0) {
2910
- const he = q[D - 1], Ae = _(re, Ve);
2911
- z(he, Ae) && (Ve = !Ve);
2910
+ const me = q[D - 1], Ae = _(re, Ve);
2911
+ z(me, Ae) && (Ve = !Ve);
2912
2912
  }
2913
2913
  const tt = _(re, Ve);
2914
2914
  q.push({
@@ -3061,9 +3061,9 @@ const Vs = {
3061
3061
  return on.value.forEach((t, u) => {
3062
3062
  const m = [], C = [], M = [], _ = He.value === u, z = He.value !== null && He.value !== u, O = tl.value.has(u);
3063
3063
  for (let q = 0; q < o; q++) {
3064
- const D = t.data[q] || 0, Ve = D / le.value * $t.value, tt = q * 2 * Math.PI / o - Math.PI / 2, he = Nt.value + Math.cos(tt) * Ve, Ae = Zt.value + Math.sin(tt) * Ve;
3065
- m.push(`${he},${Ae}`), C.push({ x: he, y: Ae }), M.push({
3066
- x: he,
3064
+ const D = t.data[q] || 0, Ve = D / le.value * $t.value, tt = q * 2 * Math.PI / o - Math.PI / 2, me = Nt.value + Math.cos(tt) * Ve, Ae = Zt.value + Math.sin(tt) * Ve;
3065
+ m.push(`${me},${Ae}`), C.push({ x: me, y: Ae }), M.push({
3066
+ x: me,
3067
3067
  y: Ae,
3068
3068
  value: D,
3069
3069
  label: W.categories[q] || `Axis ${q + 1}`,
@@ -3107,16 +3107,16 @@ const Vs = {
3107
3107
  let D = _, re = z;
3108
3108
  D + O > ge.value && (D = e.clientX - t.left - O - 10), re + q > Ee.value && (re = e.clientY - t.top - q - 10), D < 0 && (D = 10), re < 0 && (re = 10);
3109
3109
  const Ve = M.map((tt) => {
3110
- let he = tt.dataPoints[0], Ae = 1 / 0;
3110
+ let me = tt.dataPoints[0], Ae = 1 / 0;
3111
3111
  return tt.dataPoints.forEach((Ne) => {
3112
3112
  const be = Math.sqrt(
3113
3113
  Math.pow(Ne.x - m, 2) + Math.pow(Ne.y - C, 2)
3114
3114
  );
3115
- be < Ae && (Ae = be, he = Ne);
3115
+ be < Ae && (Ae = be, me = Ne);
3116
3116
  }), {
3117
3117
  seriesName: tt.seriesName,
3118
3118
  color: tt.color,
3119
- value: Dl(he.value !== void 0 ? he.value : tt.value)
3119
+ value: Dl(me.value !== void 0 ? me.value : tt.value)
3120
3120
  };
3121
3121
  });
3122
3122
  mt.value = {
@@ -3488,7 +3488,7 @@ const Vs = {
3488
3488
  width: ge.value,
3489
3489
  height: Ee.value,
3490
3490
  class: "dss-chart-svg",
3491
- "data-smooth": pe.value,
3491
+ "data-smooth": he.value,
3492
3492
  "data-animated": Ke.value,
3493
3493
  ref_key: "svgEl",
3494
3494
  ref: P
@@ -4665,8 +4665,8 @@ const Vs = {
4665
4665
  }
4666
4666
  },
4667
4667
  emits: ["close-modal"],
4668
- setup(F, { emit: me }) {
4669
- const V = F, I = me, fe = S(null), X = S(null), P = h(() => {
4668
+ setup(F, { emit: pe }) {
4669
+ const V = F, I = pe, fe = S(null), X = S(null), P = h(() => {
4670
4670
  const ne = {
4671
4671
  "max-width": V.width
4672
4672
  };
@@ -4868,8 +4868,8 @@ const Vs = {
4868
4868
  "download-excel",
4869
4869
  "search"
4870
4870
  ],
4871
- setup(F, { emit: me }) {
4872
- const { t: V, locale: I } = za(), fe = F, X = me, P = {
4871
+ setup(F, { emit: pe }) {
4872
+ const { t: V, locale: I } = za(), fe = F, X = pe, P = {
4873
4873
  table: {
4874
4874
  width: "auto",
4875
4875
  height: null,
@@ -4977,9 +4977,9 @@ const Vs = {
4977
4977
  const $ = nt(x, w), G = new Set(it.value);
4978
4978
  G.has($) ? G.delete($) : G.add($), it.value = G;
4979
4979
  }
4980
- const pe = S(null), je = S(!1);
4980
+ const he = S(null), je = S(!1);
4981
4981
  function bt(x) {
4982
- pe.value && !pe.value.contains(x.target) && (je.value = !1);
4982
+ he.value && !he.value.contains(x.target) && (je.value = !1);
4983
4983
  }
4984
4984
  const Rt = h(() => qe.value.length + ($e.value ? 1 : 0) + (ne.value ? 1 : 0)), Ke = (x, w) => x?.id ?? x?.key ?? w, Et = S(/* @__PURE__ */ new Set()), Qt = S(null), cl = (x, w) => Et.value.has(Ke(x, w)), al = (x, w) => {
4985
4985
  if (!ne.value) return !1;
@@ -5313,7 +5313,7 @@ const Vs = {
5313
5313
  key: 2,
5314
5314
  class: "dss-table-toolbar-column-visibility",
5315
5315
  ref_key: "columnVisibilityDropdownRef",
5316
- ref: pe
5316
+ ref: he
5317
5317
  }, [
5318
5318
  a("button", {
5319
5319
  type: "button",
@@ -6106,7 +6106,7 @@ const Vs = {
6106
6106
  "comment-marker-clicked",
6107
6107
  "comment-deleted"
6108
6108
  ],
6109
- setup(F, { expose: me, emit: V }) {
6109
+ setup(F, { expose: pe, emit: V }) {
6110
6110
  const { t: I, locale: fe } = za(), X = {
6111
6111
  h1: Hc,
6112
6112
  h2: Dc,
@@ -6116,7 +6116,7 @@ const Vs = {
6116
6116
  h6: Ic
6117
6117
  }, P = F, ee = V, ut = _s(), Me = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6118
6118
  <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"/>
6119
- </svg>`, g = S(null), De = S(null), Se = S(!1), ve = S(!1), ne = S(!1), we = S(""), W = S({}), Te = S(!1), Oe = S(!1), Je = S(""), pt = S(""), Z = S(null), Le = S(null), $e = S(null), ge = S(null), ht = S(""), Lt = S(!1), Ee = S({}), Tt = S(!1), at = S({}), ml = S(null), yt = S(null), Pt = S(!1), Kt = S(""), gl = S(null), Jt = S(""), gt = S(""), Ft = S(""), yl = S(null), el = S(null), ul = S(null), ct = S(null), vt = S(null), Ut = S(!1), rl = S(""), ce = S({}), Ze = S(!1), Be = S("upload"), lt = S(""), Ct = S(null), nt = S(null), it = S([]), _t = S([]), qe = S(null), K = S(!1), J = S(""), ue = S(""), pe = S(""), je = S(""), bt = S(""), Rt = S(""), Ke = S(null), Et = S(null), Qt = S(null), cl = S(!1), al = S(null), Yt = S(!1), H = S(!1), k = S(null), E = S("p"), ae = S(!1), oe = S([]), st = S(null), Mt = S(null), Ie = S(null), Fe = S(!1), Xt = S(0), jt = 100, dt = S(null), St = h(() => ({
6119
+ </svg>`, g = S(null), De = S(null), Se = S(!1), ve = S(!1), ne = S(!1), we = S(""), W = S({}), Te = S(!1), Oe = S(!1), Je = S(""), pt = S(""), Z = S(null), Le = S(null), $e = S(null), ge = S(null), ht = S(""), Lt = S(!1), Ee = S({}), Tt = S(!1), at = S({}), ml = S(null), yt = S(null), Pt = S(!1), Kt = S(""), gl = S(null), Jt = S(""), gt = S(""), Ft = S(""), yl = S(null), el = S(null), ul = S(null), ct = S(null), vt = S(null), Ut = S(!1), rl = S(""), ce = S({}), Ze = S(!1), Be = S("upload"), lt = S(""), Ct = S(null), nt = S(null), it = S([]), _t = S([]), qe = S(null), K = S(!1), J = S(""), ue = S(""), he = S(""), je = S(""), bt = S(""), Rt = S(""), Ke = S(null), Et = S(null), Qt = S(null), cl = S(!1), al = S(null), Yt = S(!1), H = S(!1), k = S(null), E = S("p"), ae = S(!1), oe = S([]), st = S(null), Mt = S(null), Ie = S(null), Fe = S(!1), Xt = S(0), jt = 100, dt = S(null), St = h(() => ({
6120
6120
  "dss-text-editor-no-border": !P.border,
6121
6121
  "dss-text-editor-rounded": P.rounded,
6122
6122
  "dss-text-editor-full-height": P.fullHeight,
@@ -6223,7 +6223,7 @@ const Vs = {
6223
6223
  n.value = l, n.offsetHeight, n.style.setProperty("height", `${s}px`, "important"), n.style.setProperty("overflow-y", "hidden", "important"), n.style.setProperty("overflow-x", "hidden", "important"), n.style.setProperty("text-overflow", "ellipsis", "important"), n.style.setProperty("white-space", "nowrap", "important");
6224
6224
  }, Gl = (n) => {
6225
6225
  const s = n.target.value;
6226
- Yt.value && nn(), ee("update:title", s), ee("title-change", s), Qt.value = "title", P.richText && (K.value || (ue.value = J.value, bt.value = pe.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6226
+ Yt.value && nn(), ee("update:title", s), ee("title-change", s), Qt.value = "title", P.richText && (K.value || (ue.value = J.value, bt.value = he.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6227
6227
  K.value = !1, Bt();
6228
6228
  }, 500));
6229
6229
  }, an = () => {
@@ -6253,7 +6253,7 @@ const Vs = {
6253
6253
  n.value = l, n.offsetHeight, n.style.setProperty("height", `${s}px`, "important"), n.style.setProperty("overflow-y", "hidden", "important"), n.style.setProperty("overflow-x", "hidden", "important"), n.style.setProperty("text-overflow", "ellipsis", "important"), n.style.setProperty("white-space", "nowrap", "important");
6254
6254
  }, tl = (n) => {
6255
6255
  const s = n.target.value;
6256
- H.value && an(), ee("update:description", s), ee("description-change", s), Qt.value = "description", P.richText && (K.value || (ue.value = J.value, bt.value = pe.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6256
+ H.value && an(), ee("update:description", s), ee("description-change", s), Qt.value = "description", P.richText && (K.value || (ue.value = J.value, bt.value = he.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6257
6257
  K.value = !1, Bt();
6258
6258
  }, 500));
6259
6259
  }, He = () => {
@@ -6323,15 +6323,15 @@ const Vs = {
6323
6323
  }, Bt = (n = !1) => {
6324
6324
  if (!g.value) return;
6325
6325
  const l = g.value.innerHTML, s = P.title || "", i = P.description || "";
6326
- if (!n && l === J.value && s === pe.value && i === je.value)
6326
+ if (!n && l === J.value && s === he.value && i === je.value)
6327
6327
  return;
6328
6328
  const d = {
6329
6329
  content: ue.value || J.value,
6330
- title: bt.value !== void 0 ? bt.value : pe.value,
6330
+ title: bt.value !== void 0 ? bt.value : he.value,
6331
6331
  description: Rt.value !== void 0 ? Rt.value : je.value
6332
6332
  }, f = it.value.length > 0 ? it.value[it.value.length - 1] : null;
6333
6333
  let v = !0;
6334
- f && (typeof f == "string" ? v = d.content !== f : v = d.content !== f.content || d.title !== f.title || d.description !== f.description), v && (it.value.push(d), it.value.length > 50 && it.value.shift(), _t.value = []), J.value = l, pe.value = s, je.value = i, ue.value = l, bt.value = s, Rt.value = i;
6334
+ f && (typeof f == "string" ? v = d.content !== f : v = d.content !== f.content || d.title !== f.title || d.description !== f.description), v && (it.value.push(d), it.value.length > 50 && it.value.shift(), _t.value = []), J.value = l, he.value = s, je.value = i, ue.value = l, bt.value = s, Rt.value = i;
6335
6335
  }, Re = (n) => {
6336
6336
  if (!g.value) return;
6337
6337
  Ht(), g.value && da(g.value);
@@ -6340,7 +6340,7 @@ const Vs = {
6340
6340
  const s = n && n.inputType && (n.inputType === "insertText" || n.inputType === "insertCompositionText" || n.inputType === "deleteContentBackward" || n.inputType === "deleteContentForward");
6341
6341
  s && k.value && (k.value = null), ve.value = !0;
6342
6342
  const i = g.value.innerHTML.replace(/<!--[\s\S]*?-->/g, "").replace(/&nbsp;|\u00A0/g, " "), d = On(i);
6343
- ee("update:modelValue", d), ee("change", d), Qt.value = "editor", K.value || (ue.value = J.value, bt.value = pe.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6343
+ ee("update:modelValue", d), ee("change", d), Qt.value = "editor", K.value || (ue.value = J.value, bt.value = he.value, Rt.value = je.value), qe.value && clearTimeout(qe.value), K.value = !0, qe.value = setTimeout(() => {
6344
6344
  K.value = !1, Bt(), _n(), vl();
6345
6345
  }, 500), ke(() => {
6346
6346
  l && Ol(l), Ht();
@@ -6508,7 +6508,7 @@ const Vs = {
6508
6508
  if (d !== void 0) {
6509
6509
  ve.value = !0;
6510
6510
  const f = typeof d == "string" ? d : d.content, v = typeof d == "object" && d.title || "", p = typeof d == "object" && d.description || "";
6511
- g.value.innerHTML = f, J.value = f, pe.value = v, je.value = p, ue.value = f, bt.value = v, Rt.value = p, ke(() => {
6511
+ g.value.innerHTML = f, J.value = f, he.value = v, je.value = p, ue.value = f, bt.value = v, Rt.value = p, ke(() => {
6512
6512
  G(), ol(), Cn(), il();
6513
6513
  const y = On(f);
6514
6514
  ee("update:modelValue", y), ee("update:title", v), ee("update:description", p), ee("change", y), ee("title-change", v), ee("description-change", p), ve.value = !1, ke(() => {
@@ -6558,7 +6558,7 @@ const Vs = {
6558
6558
  if (d !== void 0) {
6559
6559
  ve.value = !0;
6560
6560
  const f = typeof d == "string" ? d : d.content, v = typeof d == "object" && d.title || "", p = typeof d == "object" && d.description || "";
6561
- g.value.innerHTML = f, J.value = f, pe.value = v, je.value = p, ue.value = f, bt.value = v, Rt.value = p, ke(() => {
6561
+ g.value.innerHTML = f, J.value = f, he.value = v, je.value = p, ue.value = f, bt.value = v, Rt.value = p, ke(() => {
6562
6562
  G(), ol(), Cn(), il();
6563
6563
  const y = On(f);
6564
6564
  ee("update:modelValue", y), ee("update:title", v), ee("update:description", p), ee("change", y), ee("title-change", v), ee("description-change", p), ve.value = !1, ke(() => {
@@ -8096,7 +8096,7 @@ const Vs = {
8096
8096
  }
8097
8097
  ke(() => {
8098
8098
  const p = g.value.innerHTML || "", y = P.title || "", b = P.description || "";
8099
- J.value = p, pe.value = y, je.value = b, bt.value = y, Rt.value = b, G(), ft(), Vl(), Jl(), ha(), nl();
8099
+ J.value = p, he.value = y, je.value = b, bt.value = y, Rt.value = b, G(), ft(), Vl(), Jl(), ha(), nl();
8100
8100
  }), ol(), Cn(), g.value._mutationObserver = v;
8101
8101
  }
8102
8102
  }), ts(() => {
@@ -8713,7 +8713,7 @@ const Vs = {
8713
8713
  g.value.innerHTML = l, ke(() => {
8714
8714
  de();
8715
8715
  const v = g.value.innerHTML || "", p = P.title || "", y = P.description || "";
8716
- J.value = v, pe.value = p, je.value = y, ue.value = v, bt.value = p, Rt.value = y, it.value = [], _t.value = [], qe.value && (clearTimeout(qe.value), qe.value = null), K.value = !1, f && Ol(f), G(), ft(), Vl(), ol(), il(), Jl(), en("watch-modelValue");
8716
+ J.value = v, he.value = p, je.value = y, ue.value = v, bt.value = p, Rt.value = y, it.value = [], _t.value = [], qe.value && (clearTimeout(qe.value), qe.value = null), K.value = !1, f && Ol(f), G(), ft(), Vl(), ol(), il(), Jl(), en("watch-modelValue");
8717
8717
  });
8718
8718
  }
8719
8719
  }
@@ -9076,7 +9076,7 @@ const Vs = {
9076
9076
  }));
9077
9077
  }), It(() => P.locale, (n) => {
9078
9078
  n && n !== fe.value && (fe.value = n);
9079
- }, { immediate: !0 }), me({
9079
+ }, { immediate: !0 }), pe({
9080
9080
  openCommentOverlayForSelector: as,
9081
9081
  updateCommentMarkers: en,
9082
9082
  restoreCommentsFromModel: nl
@@ -10464,24 +10464,24 @@ const Vs = {
10464
10464
  }
10465
10465
  },
10466
10466
  emits: ["update:modelValue", "update:presetColors"],
10467
- setup(F, { emit: me }) {
10467
+ setup(F, { emit: pe }) {
10468
10468
  function V(K) {
10469
10469
  const J = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(K);
10470
10470
  if (!J) return { h: 0, s: 0, l: 50 };
10471
- const ue = parseInt(J[1], 16) / 255, pe = parseInt(J[2], 16) / 255, je = parseInt(J[3], 16) / 255, bt = Math.max(ue, pe, je), Rt = Math.min(ue, pe, je);
10471
+ const ue = parseInt(J[1], 16) / 255, he = parseInt(J[2], 16) / 255, je = parseInt(J[3], 16) / 255, bt = Math.max(ue, he, je), Rt = Math.min(ue, he, je);
10472
10472
  let Ke = 0, Et = 0;
10473
10473
  const Qt = (bt + Rt) / 2;
10474
10474
  if (bt !== Rt) {
10475
10475
  const cl = bt - Rt;
10476
10476
  switch (Et = Qt > 0.5 ? cl / (2 - bt - Rt) : cl / (bt + Rt), bt) {
10477
10477
  case ue:
10478
- Ke = ((pe - je) / cl + (pe < je ? 6 : 0)) / 6;
10478
+ Ke = ((he - je) / cl + (he < je ? 6 : 0)) / 6;
10479
10479
  break;
10480
- case pe:
10480
+ case he:
10481
10481
  Ke = ((je - ue) / cl + 2) / 6;
10482
10482
  break;
10483
10483
  case je:
10484
- Ke = ((ue - pe) / cl + 4) / 6;
10484
+ Ke = ((ue - he) / cl + 4) / 6;
10485
10485
  break;
10486
10486
  }
10487
10487
  }
@@ -10489,8 +10489,8 @@ const Vs = {
10489
10489
  }
10490
10490
  function I(K, J, ue) {
10491
10491
  J /= 100, ue /= 100;
10492
- const pe = J * Math.min(ue, 1 - ue), je = (bt) => {
10493
- const Rt = (bt + K / 30) % 12, Ke = ue - pe * Math.max(Math.min(Rt - 3, 9 - Rt, 1), -1);
10492
+ const he = J * Math.min(ue, 1 - ue), je = (bt) => {
10493
+ const Rt = (bt + K / 30) % 12, Ke = ue - he * Math.max(Math.min(Rt - 3, 9 - Rt, 1), -1);
10494
10494
  return Math.round(255 * Ke).toString(16).padStart(2, "0");
10495
10495
  };
10496
10496
  return `#${je(0)}${je(8)}${je(4)}`;
@@ -10499,19 +10499,19 @@ const Vs = {
10499
10499
  const J = K.replace(/^#/, "").match(/^([a-f\d]{6}|[a-f\d]{3})$/i);
10500
10500
  if (!J) return null;
10501
10501
  let ue = J[1];
10502
- return ue.length === 3 && (ue = ue.split("").map((pe) => pe + pe).join("")), "#" + ue;
10502
+ return ue.length === 3 && (ue = ue.split("").map((he) => he + he).join("")), "#" + ue;
10503
10503
  }
10504
10504
  function X(K, J, ue) {
10505
10505
  J /= 100, ue /= 100;
10506
- const pe = ue + J * Math.min(ue, 1 - ue), je = pe === 0 ? 0 : 2 - 2 * ue / pe;
10507
- return { h: K, s: je * 100, v: pe * 100 };
10506
+ const he = ue + J * Math.min(ue, 1 - ue), je = he === 0 ? 0 : 2 - 2 * ue / he;
10507
+ return { h: K, s: je * 100, v: he * 100 };
10508
10508
  }
10509
10509
  function P(K, J, ue) {
10510
10510
  J /= 100, ue /= 100;
10511
- const pe = ue * (1 - J / 2), je = pe === 0 || pe === 1 ? 0 : (ue - pe) / Math.min(pe, 1 - pe);
10512
- return { h: K, s: je * 100, l: pe * 100 };
10511
+ const he = ue * (1 - J / 2), je = he === 0 || he === 1 ? 0 : (ue - he) / Math.min(he, 1 - he);
10512
+ return { h: K, s: je * 100, l: he * 100 };
10513
10513
  }
10514
- const ee = F, ut = me, Me = S(!1), g = S(!1), De = S(!1), Se = S(-1), ve = S(-1), ne = S(null), we = S(null), W = S(null), Te = S(null), Oe = S({ top: 0, left: 0 }), Je = S(V(ee.modelValue || "#b8a5de")), pt = h(
10514
+ const ee = F, ut = pe, Me = S(!1), g = S(!1), De = S(!1), Se = S(-1), ve = S(-1), ne = S(null), we = S(null), W = S(null), Te = S(null), Oe = S({ top: 0, left: 0 }), Je = S(V(ee.modelValue || "#b8a5de")), pt = h(
10515
10515
  () => Array.isArray(ee.presetGroups) && ee.presetGroups.length > 0
10516
10516
  ), Z = h(() => pt.value ? 0 : ee.initialPresetCount != null ? ee.initialPresetCount : ve.value < 0 ? null : ve.value), Le = h(() => {
10517
10517
  const K = Z.value;
@@ -10545,8 +10545,8 @@ const Vs = {
10545
10545
  if (!Tt(K)) return;
10546
10546
  const J = ee.presetColors.filter((je, bt) => bt !== K);
10547
10547
  ut("update:presetColors", J);
10548
- const ue = fe(ee.modelValue), pe = fe(ee.presetColors[K]);
10549
- if (ue && pe && ue.toLowerCase() === pe.toLowerCase()) {
10548
+ const ue = fe(ee.modelValue), he = fe(ee.presetColors[K]);
10549
+ if (ue && he && ue.toLowerCase() === he.toLowerCase()) {
10550
10550
  const je = J[Math.max(0, K - 1)] || J[0];
10551
10551
  je && ut("update:modelValue", je);
10552
10552
  }
@@ -10575,8 +10575,8 @@ const Vs = {
10575
10575
  if (J) {
10576
10576
  const ue = [...ee.presetColors, J];
10577
10577
  ut("update:presetColors", ue), ut("update:modelValue", J);
10578
- const pe = Z.value ?? ve.value;
10579
- pe >= 0 && ue.length - pe >= ee.max && (g.value = !1);
10578
+ const he = Z.value ?? ve.value;
10579
+ he >= 0 && ue.length - he >= ee.max && (g.value = !1);
10580
10580
  }
10581
10581
  }
10582
10582
  const gt = h(() => {
@@ -10604,8 +10604,8 @@ const Vs = {
10604
10604
  if (!ne.value || !Me.value) return;
10605
10605
  const K = ne.value.getBoundingClientRect(), J = window.innerHeight || document.documentElement.clientHeight;
10606
10606
  let ue = K.bottom + 4;
10607
- const pe = we.value;
10608
- pe && ue + pe.offsetHeight > J - 8 && (ue = K.top - 4 - pe.offsetHeight), Oe.value = { top: ue, left: K.left };
10607
+ const he = we.value;
10608
+ he && ue + he.offsetHeight > J - 8 && (ue = K.top - 4 - he.offsetHeight), Oe.value = { top: ue, left: K.left };
10609
10609
  }
10610
10610
  function Ut() {
10611
10611
  const K = ee.modelValue || "#b8a5de";
@@ -10626,18 +10626,18 @@ const Vs = {
10626
10626
  const ue = [...ee.presetColors];
10627
10627
  ue[Se.value] = J, ut("update:presetColors", ue), ut("update:modelValue", J);
10628
10628
  } else if ((ee.presetColors.length > 0 || pt.value) && g.value && Le.value && !ee.presetColors.some(
10629
- (pe) => fe(pe)?.toLowerCase() === J.toLowerCase()
10629
+ (he) => fe(he)?.toLowerCase() === J.toLowerCase()
10630
10630
  )) {
10631
- const pe = [...ee.presetColors, J];
10632
- ut("update:presetColors", pe), ut("update:modelValue", J);
10631
+ const he = [...ee.presetColors, J];
10632
+ ut("update:presetColors", he), ut("update:modelValue", J);
10633
10633
  }
10634
10634
  }
10635
10635
  Me.value = !1, g.value = !1, De.value = !1, Se.value = -1;
10636
10636
  }
10637
10637
  function Be(K) {
10638
10638
  if (!W.value) return;
10639
- const J = W.value.getBoundingClientRect(), ue = (pe) => {
10640
- const je = Math.max(0, Math.min(1, (pe.clientX - J.left) / J.width)), bt = Math.max(0, Math.min(1, 1 - (pe.clientY - J.top) / J.height)), Rt = { h: Je.value.h, s: je * 100, v: bt * 100 };
10639
+ const J = W.value.getBoundingClientRect(), ue = (he) => {
10640
+ const je = Math.max(0, Math.min(1, (he.clientX - J.left) / J.width)), bt = Math.max(0, Math.min(1, 1 - (he.clientY - J.top) / J.height)), Rt = { h: Je.value.h, s: je * 100, v: bt * 100 };
10641
10641
  Je.value = P(Rt.h, Rt.s, Rt.v);
10642
10642
  };
10643
10643
  ue(K), document.addEventListener("mousemove", ue), document.addEventListener("mouseup", () => {
@@ -10646,12 +10646,12 @@ const Vs = {
10646
10646
  }
10647
10647
  function lt(K) {
10648
10648
  if (!K.currentTarget) return;
10649
- const ue = K.currentTarget.getBoundingClientRect(), pe = (je) => {
10649
+ const ue = K.currentTarget.getBoundingClientRect(), he = (je) => {
10650
10650
  const bt = Math.max(0, Math.min(1, (je.clientX - ue.left) / ue.width));
10651
10651
  Je.value = { ...Je.value, h: bt * 360 };
10652
10652
  };
10653
- pe(K), document.addEventListener("mousemove", pe), document.addEventListener("mouseup", () => {
10654
- document.removeEventListener("mousemove", pe), rl();
10653
+ he(K), document.addEventListener("mousemove", he), document.addEventListener("mouseup", () => {
10654
+ document.removeEventListener("mousemove", he), rl();
10655
10655
  }, { once: !0 });
10656
10656
  }
10657
10657
  function Ct(K) {
@@ -10723,14 +10723,14 @@ const Vs = {
10723
10723
  style: ye(ct.value)
10724
10724
  }, [
10725
10725
  ge.value ? (r(), c(te, { key: 0 }, [
10726
- pt.value ? (r(!0), c(te, { key: 0 }, _e(F.presetGroups, (ue, pe) => (r(), c("div", {
10727
- key: "g-" + pe,
10726
+ pt.value ? (r(!0), c(te, { key: 0 }, _e(F.presetGroups, (ue, he) => (r(), c("div", {
10727
+ key: "g-" + he,
10728
10728
  class: "dss-color-picker__section"
10729
10729
  }, [
10730
10730
  a("span", R2, A(ue.title), 1),
10731
10731
  a("div", V2, [
10732
10732
  (r(!0), c(te, null, _e(ue.colors, (je, bt) => (r(), c("button", {
10733
- key: "g-" + pe + "-" + bt,
10733
+ key: "g-" + he + "-" + bt,
10734
10734
  type: "button",
10735
10735
  class: se(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": gl(je) }]),
10736
10736
  style: ye({ backgroundColor: je }),
@@ -10741,8 +10741,8 @@ const Vs = {
10741
10741
  ]))), 128)) : ht.value.length ? (r(), c("div", I2, [
10742
10742
  J[1] || (J[1] = a("span", { class: "dss-color-picker__section-title" }, "Preset colors", -1)),
10743
10743
  a("div", P2, [
10744
- (r(!0), c(te, null, _e(ht.value, (ue, pe) => (r(), c("button", {
10745
- key: "p-" + pe,
10744
+ (r(!0), c(te, null, _e(ht.value, (ue, he) => (r(), c("button", {
10745
+ key: "p-" + he,
10746
10746
  type: "button",
10747
10747
  class: se(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": gl(ue) }]),
10748
10748
  style: ye({ backgroundColor: ue }),
@@ -10774,26 +10774,26 @@ const Vs = {
10774
10774
  ])], 2)) : T("", !0)
10775
10775
  ]),
10776
10776
  a("div", z2, [
10777
- (r(!0), c(te, null, _e(Lt.value, (ue, pe) => (r(), c("div", {
10778
- key: "c-" + pe,
10777
+ (r(!0), c(te, null, _e(Lt.value, (ue, he) => (r(), c("div", {
10778
+ key: "c-" + he,
10779
10779
  class: se(["dss-color-picker__preset-wrap", { "dss-color-picker__preset-wrap--manage": De.value }])
10780
10780
  }, [
10781
10781
  a("button", {
10782
10782
  type: "button",
10783
10783
  class: se(["dss-color-picker__preset-bubble", {
10784
10784
  "dss-color-picker__preset-bubble--selected": !De.value && gl(ue),
10785
- "dss-color-picker__preset-bubble--editing": De.value && Se.value === Ee(pe)
10785
+ "dss-color-picker__preset-bubble--editing": De.value && Se.value === Ee(he)
10786
10786
  }]),
10787
- style: ye({ backgroundColor: Se.value === Ee(pe) ? gt.value : ue }),
10788
- title: Se.value === Ee(pe) ? gt.value : ue,
10789
- onClick: We((je) => De.value ? at(Ee(pe)) : nt(ue), ["stop"])
10787
+ style: ye({ backgroundColor: Se.value === Ee(he) ? gt.value : ue }),
10788
+ title: Se.value === Ee(he) ? gt.value : ue,
10789
+ onClick: We((je) => De.value ? at(Ee(he)) : nt(ue), ["stop"])
10790
10790
  }, null, 14, W2),
10791
10791
  De.value ? (r(), c("button", {
10792
10792
  key: 0,
10793
10793
  type: "button",
10794
10794
  class: "dss-color-picker__preset-action dss-color-picker__preset-action--delete",
10795
10795
  title: "Delete",
10796
- onClick: We((je) => ml(Ee(pe)), ["stop"])
10796
+ onClick: We((je) => ml(Ee(he)), ["stop"])
10797
10797
  }, [...J[4] || (J[4] = [
10798
10798
  a("svg", {
10799
10799
  viewBox: "0 0 12 12",
@@ -10818,8 +10818,8 @@ const Vs = {
10818
10818
  ])
10819
10819
  ])
10820
10820
  ], 64)) : F.presetColors.length ? (r(), c("div", q2, [
10821
- (r(!0), c(te, null, _e(F.presetColors, (ue, pe) => (r(), c("button", {
10822
- key: pe,
10821
+ (r(!0), c(te, null, _e(F.presetColors, (ue, he) => (r(), c("button", {
10822
+ key: he,
10823
10823
  type: "button",
10824
10824
  class: se(["dss-color-picker__preset-bubble", { "dss-color-picker__preset-bubble--selected": gl(ue) }]),
10825
10825
  style: ye({ backgroundColor: ue }),
@@ -10950,13 +10950,13 @@ const Vs = {
10950
10950
  }
10951
10951
  },
10952
10952
  setup(F) {
10953
- const me = F, V = h(() => me.size === "small" ? "dss-loaders--size-small" : me.size === "large" ? "dss-loaders--size-large" : me.size === "medium" || me.size == null ? "dss-loaders--size-medium" : null), I = h(() => {
10953
+ const pe = F, V = h(() => pe.size === "small" ? "dss-loaders--size-small" : pe.size === "large" ? "dss-loaders--size-large" : pe.size === "medium" || pe.size == null ? "dss-loaders--size-medium" : null), I = h(() => {
10954
10954
  const fe = {};
10955
- if (!(me.size === "small" || me.size === "medium" || me.size === "large" || me.size == null)) {
10956
- const X = typeof me.size == "number" ? `${me.size}px` : String(me.size);
10955
+ if (!(pe.size === "small" || pe.size === "medium" || pe.size === "large" || pe.size == null)) {
10956
+ const X = typeof pe.size == "number" ? `${pe.size}px` : String(pe.size);
10957
10957
  fe["--dss-loader-size"] = X;
10958
10958
  }
10959
- return me.color && (fe["--dss-loader-accent"] = me.color, fe["--dss-loader-accent-soft"] = `color-mix(in srgb, ${me.color} 30%, white)`), fe;
10959
+ return pe.color && (fe["--dss-loader-accent"] = pe.color, fe["--dss-loader-accent-soft"] = `color-mix(in srgb, ${pe.color} 30%, white)`), fe;
10960
10960
  });
10961
10961
  return (fe, X) => (r(), c("div", {
10962
10962
  class: se(["dss-loaders", V.value]),
@@ -11031,20 +11031,20 @@ const Vs = {
11031
11031
  shimmerDark: { type: String, default: null }
11032
11032
  },
11033
11033
  setup(F) {
11034
- const me = F, V = h(() => {
11034
+ const pe = F, V = h(() => {
11035
11035
  const X = {
11036
- "dss-skeleton--loading": me.loading,
11037
- "dss-skeleton--static": !me.shimmer,
11038
- "dss-skeleton--multiple": me.mode === "multiple",
11039
- "dss-skeleton--dark": me.darkMode
11036
+ "dss-skeleton--loading": pe.loading,
11037
+ "dss-skeleton--static": !pe.shimmer,
11038
+ "dss-skeleton--multiple": pe.mode === "multiple",
11039
+ "dss-skeleton--dark": pe.darkMode
11040
11040
  };
11041
- return me.mode === "multiple" && me.targetClass !== ks && (X[`dss-skeleton--target-${me.targetClass}`] = !0), X;
11041
+ return pe.mode === "multiple" && pe.targetClass !== ks && (X[`dss-skeleton--target-${pe.targetClass}`] = !0), X;
11042
11042
  }), I = h(() => {
11043
11043
  const X = {};
11044
- return me.borderRadius && (X.borderRadius = me.borderRadius), X;
11044
+ return pe.borderRadius && (X.borderRadius = pe.borderRadius), X;
11045
11045
  }), fe = h(() => {
11046
11046
  const X = {};
11047
- return me.borderRadius && (X["--dss-skeleton-border-radius"] = me.borderRadius), me.darkMode ? (X["--dss-skeleton-bg"] = me.bgDark || "#322c3f", X["--dss-skeleton-shimmer"] = me.shimmerDark || "#3e3f41", X) : (me.bgColor && (X["--dss-skeleton-bg"] = me.bgColor), me.shimmerColor && (X["--dss-skeleton-shimmer"] = me.shimmerColor), X);
11047
+ return pe.borderRadius && (X["--dss-skeleton-border-radius"] = pe.borderRadius), pe.darkMode ? (X["--dss-skeleton-bg"] = pe.bgDark || "#322c3f", X["--dss-skeleton-shimmer"] = pe.shimmerDark || "#3e3f41", X) : (pe.bgColor && (X["--dss-skeleton-bg"] = pe.bgColor), pe.shimmerColor && (X["--dss-skeleton-shimmer"] = pe.shimmerColor), X);
11048
11048
  });
11049
11049
  return (X, P) => (r(), c("div", {
11050
11050
  class: se(["dss-skeleton", V.value]),
@@ -11084,8 +11084,8 @@ const Vs = {
11084
11084
  options: { type: Object, default: () => ({}) }
11085
11085
  },
11086
11086
  emits: ["move", "delete"],
11087
- setup(F, { emit: me }) {
11088
- const V = F, I = me, fe = _s(), X = h(() => !!fe["delete-zone"]), P = {
11087
+ setup(F, { emit: pe }) {
11088
+ const V = F, I = pe, fe = _s(), X = h(() => !!fe["delete-zone"]), P = {
11089
11089
  columnMinWidth: "280px",
11090
11090
  columnMaxWidth: "none",
11091
11091
  columnGap: "12px",
@@ -11126,11 +11126,11 @@ const Vs = {
11126
11126
  const it = ge.value[nt.value] || [], _t = [], qe = lt == nt.value;
11127
11127
  let K = 0;
11128
11128
  for (let J = 0; J < it.length; J++) {
11129
- const ue = it[J], pe = Ze && ue[V.itemKey] === Be;
11130
- !pe && qe && Ct === K && _t.push({ type: "indicator", key: `ind-${K}` }), pe || K++, _t.push({
11129
+ const ue = it[J], he = Ze && ue[V.itemKey] === Be;
11130
+ !he && qe && Ct === K && _t.push({ type: "indicator", key: `ind-${K}` }), he || K++, _t.push({
11131
11131
  type: "item",
11132
11132
  item: ue,
11133
- isDragged: pe,
11133
+ isDragged: he,
11134
11134
  key: `item-${ue[V.itemKey]}`
11135
11135
  });
11136
11136
  }
@@ -11381,11 +11381,11 @@ const Vs = {
11381
11381
  delay: { type: Number, default: 300 }
11382
11382
  },
11383
11383
  setup(F) {
11384
- const me = F, V = S(null), I = S(!1);
11384
+ const pe = F, V = S(null), I = S(!1);
11385
11385
  let fe = [], X = null, P = null;
11386
11386
  function ee(ve, ne) {
11387
11387
  const we = [];
11388
- for (let W = 0; W < me.count; W++)
11388
+ for (let W = 0; W < pe.count; W++)
11389
11389
  we.push(ut(ve));
11390
11390
  return we;
11391
11391
  }
@@ -11395,7 +11395,7 @@ const Vs = {
11395
11395
  y: -Math.random() * 150 - 20,
11396
11396
  r: Math.random() * 8 + 3,
11397
11397
  d: Math.random() * 50,
11398
- color: me.colors[Math.floor(Math.random() * me.colors.length)],
11398
+ color: pe.colors[Math.floor(Math.random() * pe.colors.length)],
11399
11399
  tilt: Math.floor(Math.random() * 10) - 10,
11400
11400
  tiltInc: Math.random() * 0.08 + 0.04,
11401
11401
  tiltAngle: 0,
@@ -11423,11 +11423,11 @@ const Vs = {
11423
11423
  if (!we) return;
11424
11424
  const W = we.getBoundingClientRect();
11425
11425
  ve.width = W.width, ve.height = W.height, fe = ee(ve.width, ve.height);
11426
- const Te = Date.now(), Oe = Te + me.duration, Je = () => {
11426
+ const Te = Date.now(), Oe = Te + pe.duration, Je = () => {
11427
11427
  const pt = Date.now(), Z = pt - Te;
11428
11428
  if (pt < Oe) {
11429
11429
  let Le = 1;
11430
- Z > me.fadeStart && (Le = 1 - (Z - me.fadeStart) / (me.duration - me.fadeStart)), Me(ne, ve.width, ve.height, Le), g(ve.width, ve.height, Le), X = requestAnimationFrame(Je);
11430
+ Z > pe.fadeStart && (Le = 1 - (Z - pe.fadeStart) / (pe.duration - pe.fadeStart)), Me(ne, ve.width, ve.height, Le), g(ve.width, ve.height, Le), X = requestAnimationFrame(Je);
11431
11431
  } else
11432
11432
  Se();
11433
11433
  };
@@ -11437,8 +11437,8 @@ const Vs = {
11437
11437
  function Se() {
11438
11438
  X && (cancelAnimationFrame(X), X = null), fe = [], I.value = !1;
11439
11439
  }
11440
- return It(() => me.trigger, (ve) => {
11441
- ve && (P && clearTimeout(P), P = setTimeout(De, me.delay));
11440
+ return It(() => pe.trigger, (ve) => {
11441
+ ve && (P && clearTimeout(P), P = setTimeout(De, pe.delay));
11442
11442
  }, { immediate: !0 }), wa(() => {
11443
11443
  Se(), P && clearTimeout(P);
11444
11444
  }), (ve, ne) => I.value ? (r(), c("canvas", {
@@ -11523,7 +11523,7 @@ const Vs = {
11523
11523
  showSortBy: { type: Boolean, default: !1 }
11524
11524
  },
11525
11525
  emits: ["update:modelValue"],
11526
- setup(F, { expose: me, emit: V }) {
11526
+ setup(F, { expose: pe, emit: V }) {
11527
11527
  const { t: I } = za(), fe = F, X = V, P = {
11528
11528
  unstyled: !1,
11529
11529
  maxUniqueForSelect: 30,
@@ -11770,7 +11770,7 @@ const Vs = {
11770
11770
  function ue() {
11771
11771
  Je.value = Je.value === "asc" ? "desc" : "asc";
11772
11772
  }
11773
- const pe = h(() => {
11773
+ const he = h(() => {
11774
11774
  if (!fe.data) return [];
11775
11775
  let H = fe.data;
11776
11776
  if (De.value) {
@@ -11930,7 +11930,7 @@ const Vs = {
11930
11930
  function cl(H) {
11931
11931
  return !!(H == null || H === "" || H === "NULL" || Array.isArray(H) && H.length === 0 || Array.isArray(H) && H.every((k) => k == null));
11932
11932
  }
11933
- It(pe, (H) => X("update:modelValue", H), { immediate: !0 }), It(() => fe.data, () => {
11933
+ It(he, (H) => X("update:modelValue", H), { immediate: !0 }), It(() => fe.data, () => {
11934
11934
  Se.value = [], De.value = "", ne.value = !1, Oe.value = "", Je.value = "asc", Kt();
11935
11935
  });
11936
11936
  function al(H) {
@@ -11957,10 +11957,10 @@ const Vs = {
11957
11957
  defType: ge.value[k.key]?.type,
11958
11958
  defFilterMode: ge.value[k.key]?.filterMode
11959
11959
  })),
11960
- filteredCount: pe.value?.length ?? 0
11960
+ filteredCount: he.value?.length ?? 0
11961
11961
  };
11962
11962
  }
11963
- return me({ getDebugState: Yt }), (H, k) => (r(), c("div", {
11963
+ return pe({ getDebugState: Yt }), (H, k) => (r(), c("div", {
11964
11964
  class: se(["dss-filter", { "dss-filter--unstyled": ee.value.unstyled }])
11965
11965
  }, [
11966
11966
  a("div", {
@@ -12391,8 +12391,8 @@ const Vs = {
12391
12391
  disabled: { type: Boolean, default: !1 }
12392
12392
  },
12393
12393
  emits: ["update:modelValue"],
12394
- setup(F, { emit: me }) {
12395
- const V = F, I = me, fe = S(""), X = S([...V.modelValue]), P = S(null);
12394
+ setup(F, { emit: pe }) {
12395
+ const V = F, I = pe, fe = S(""), X = S([...V.modelValue]), P = S(null);
12396
12396
  let ee = null;
12397
12397
  const ut = S(null), Me = S(""), g = S(null), De = h(() => new Set(X.value.map((Z) => Z.trim()).filter(Boolean)));
12398
12398
  function Se(Z) {
@@ -12547,6 +12547,14 @@ const Vs = {
12547
12547
  type: String,
12548
12548
  default: "#34c759"
12549
12549
  },
12550
+ labelColor: {
12551
+ type: String,
12552
+ default: null
12553
+ },
12554
+ counterColor: {
12555
+ type: String,
12556
+ default: null
12557
+ },
12550
12558
  inactiveColor: {
12551
12559
  type: String,
12552
12560
  default: "#e5e7eb"
@@ -12557,16 +12565,16 @@ const Vs = {
12557
12565
  }
12558
12566
  },
12559
12567
  setup(F) {
12560
- const me = F, V = h(() => Math.max(1, Number(me.steps) || 1)), I = h(() => Math.min(V.value, Math.max(0, Number(me.currentStep) || 0))), fe = h(() => Array.isArray(me.segments) && me.segments.length > 0), X = h(() => fe.value ? me.segments.map((Le, $e) => {
12568
+ const pe = F, V = h(() => Math.max(1, Number(pe.steps) || 1)), I = h(() => Math.min(V.value, Math.max(0, Number(pe.currentStep) || 0))), fe = h(() => Array.isArray(pe.segments) && pe.segments.length > 0), X = h(() => fe.value ? pe.segments.map((Le, $e) => {
12561
12569
  const ge = Number(Le?.value);
12562
12570
  return {
12563
12571
  label: Le?.label || `Step ${$e + 1}`,
12564
12572
  value: Number.isFinite(ge) && ge > 0 ? ge : 0,
12565
- color: Le?.color || me.activeColor
12573
+ color: Le?.color || pe.activeColor
12566
12574
  };
12567
- }) : []), P = h(() => fe.value ? X.value.reduce((Le, $e) => Le + $e.value, 0) : I.value), ee = h(() => fe.value ? Number.isFinite(Number(me.totalValue)) && Number(me.totalValue) > 0 ? Number(me.totalValue) : Math.max(1, P.value) : V.value), ut = h(
12568
- () => fe.value && Number.isFinite(Number(me.totalValue)) && Number(me.totalValue) > 0
12569
- ), Me = h(() => ut.value ? Math.max(0, Number(me.totalValue) - P.value) : 0), g = h(() => fe.value ? ut.value ? X.value.filter((Le) => Le.value > 0) : X.value : []), De = h(() => `${P.value} / ${ee.value}`), Se = h(() => P.value), ve = h(() => ee.value), ne = hs({
12575
+ }) : []), P = h(() => fe.value ? X.value.reduce((Le, $e) => Le + $e.value, 0) : I.value), ee = h(() => fe.value ? Number.isFinite(Number(pe.totalValue)) && Number(pe.totalValue) > 0 ? Number(pe.totalValue) : Math.max(1, P.value) : V.value), ut = h(
12576
+ () => fe.value && Number.isFinite(Number(pe.totalValue)) && Number(pe.totalValue) > 0
12577
+ ), Me = h(() => ut.value ? Math.max(0, Number(pe.totalValue) - P.value) : 0), g = h(() => fe.value ? ut.value ? X.value.filter((Le) => Le.value > 0) : X.value : []), De = h(() => `${P.value} / ${ee.value}`), Se = h(() => P.value), ve = h(() => ee.value), ne = hs({
12570
12578
  visible: !1,
12571
12579
  x: 0,
12572
12580
  content: ""
@@ -12590,7 +12598,7 @@ const Vs = {
12590
12598
  }, Te = h(() => ({
12591
12599
  flex: `${Me.value} 0 0`,
12592
12600
  minWidth: Me.value > 0 ? "6px" : "0",
12593
- backgroundColor: me.inactiveColor
12601
+ backgroundColor: pe.inactiveColor
12594
12602
  })), Oe = (Le, $e) => {
12595
12603
  if (!Le || !$e?.currentTarget) return;
12596
12604
  const ge = $e.currentTarget;
@@ -12598,12 +12606,14 @@ const Vs = {
12598
12606
  }, Je = (Le) => {
12599
12607
  if (!Me.value || !Le?.currentTarget) return;
12600
12608
  const $e = Le.currentTarget;
12601
- ne.x = $e.offsetLeft + $e.offsetWidth / 2, ne.content = `${me.remainderLabel}: ${Me.value}`, ne.visible = !0;
12609
+ ne.x = $e.offsetLeft + $e.offsetWidth / 2, ne.content = `${pe.remainderLabel}: ${Me.value}`, ne.visible = !0;
12602
12610
  }, pt = () => {
12603
12611
  ne.visible = !1;
12604
12612
  }, Z = h(() => ({
12605
- "--dss-step-bar-active-color": me.activeColor,
12606
- "--dss-step-bar-inactive-color": me.inactiveColor
12613
+ "--dss-step-bar-label-color": pe.labelColor ?? void 0,
12614
+ "--dss-step-bar-counter-color": pe.counterColor ?? void 0,
12615
+ "--dss-step-bar-active-color": pe.activeColor,
12616
+ "--dss-step-bar-inactive-color": pe.inactiveColor
12607
12617
  }));
12608
12618
  return (Le, $e) => (r(), c("div", {
12609
12619
  class: "dss-step-bar",
@@ -12672,9 +12682,9 @@ const Vs = {
12672
12682
  function J9(F) {
12673
12683
  if (!F || !F.global)
12674
12684
  return;
12675
- const me = F.global.availableLocales || [];
12685
+ const pe = F.global.availableLocales || [];
12676
12686
  Object.keys(cs).forEach((V) => {
12677
- me.includes(V) && F.global.mergeLocaleMessage(V, cs[V]);
12687
+ pe.includes(V) && F.global.mergeLocaleMessage(V, cs[V]);
12678
12688
  });
12679
12689
  }
12680
12690
  const ds = {
@@ -12685,9 +12695,9 @@ const ds = {
12685
12695
  function e3(F) {
12686
12696
  if (!F || !F.global)
12687
12697
  return;
12688
- const me = F.global.availableLocales || [];
12698
+ const pe = F.global.availableLocales || [];
12689
12699
  Object.keys(ds).forEach((V) => {
12690
- me.includes(V) && F.global.mergeLocaleMessage(V, ds[V]);
12700
+ pe.includes(V) && F.global.mergeLocaleMessage(V, ds[V]);
12691
12701
  });
12692
12702
  }
12693
12703
  const vs = {
@@ -12698,9 +12708,9 @@ const vs = {
12698
12708
  function t3(F) {
12699
12709
  if (!F || !F.global)
12700
12710
  return;
12701
- const me = F.global.availableLocales || [];
12711
+ const pe = F.global.availableLocales || [];
12702
12712
  Object.keys(vs).forEach((V) => {
12703
- me.includes(V) && F.global.mergeLocaleMessage(V, vs[V]);
12713
+ pe.includes(V) && F.global.mergeLocaleMessage(V, vs[V]);
12704
12714
  });
12705
12715
  }
12706
12716
  const fs = {
@@ -12711,9 +12721,9 @@ const fs = {
12711
12721
  function l3(F) {
12712
12722
  if (!F || !F.global)
12713
12723
  return;
12714
- const me = F.global.availableLocales || [];
12724
+ const pe = F.global.availableLocales || [];
12715
12725
  Object.keys(fs).forEach((V) => {
12716
- me.includes(V) && F.global.mergeLocaleMessage(V, fs[V]);
12726
+ pe.includes(V) && F.global.mergeLocaleMessage(V, fs[V]);
12717
12727
  });
12718
12728
  }
12719
12729
  const ps = {
@@ -12724,9 +12734,9 @@ const ps = {
12724
12734
  function n3(F) {
12725
12735
  if (!F || !F.global)
12726
12736
  return;
12727
- const me = F.global.availableLocales || [];
12737
+ const pe = F.global.availableLocales || [];
12728
12738
  Object.keys(ps).forEach((V) => {
12729
- me.includes(V) && F.global.mergeLocaleMessage(V, ps[V]);
12739
+ pe.includes(V) && F.global.mergeLocaleMessage(V, ps[V]);
12730
12740
  });
12731
12741
  }
12732
12742
  const y3 = {