dsp-semactic 0.6.42 → 0.6.43

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
@@ -1,4 +1,4 @@
1
- import { ref as S, computed as m, watch as It, nextTick as _e, onBeforeUnmount as wa, createElementBlock as c, openBlock as u, normalizeClass as se, createCommentVNode as T, createBlock as Jn, createElementVNode as a, unref as R, Teleport as ea, withModifiers as qe, normalizeStyle as be, Fragment as le, renderList as Me, toDisplayString as A, onMounted as Ja, onUnmounted as es, withDirectives as Gt, vShow as va, createTextVNode as Yl, createVNode as ta, vModelText as _l, renderSlot as Ml, reactive as hs, createStaticVNode as Cs, Transition as Qa, withCtx as Nn, withKeys as tn, useSlots as _s, defineComponent as Rs } from "vue";
1
+ import { ref as S, computed as m, watch as It, nextTick as _e, onBeforeUnmount as wa, createElementBlock as c, openBlock as u, normalizeClass as se, createCommentVNode as T, createBlock as Jn, createElementVNode as a, unref as R, Teleport as ea, withModifiers as qe, normalizeStyle as be, Fragment as le, renderList as Me, toDisplayString as A, onMounted as Ja, onUnmounted as es, withDirectives as Gt, vShow as va, createTextVNode as Ul, createVNode as ta, vModelText as Ml, renderSlot as xl, reactive as hs, createStaticVNode as Cs, Transition as Qa, withCtx as Nn, withKeys as tn, useSlots as _s, defineComponent as Rs } from "vue";
2
2
  import { useI18n as Na, createI18n as Vs } from "vue-i18n";
3
3
  const Ns = {
4
4
  key: 0,
@@ -70,12 +70,12 @@ const Ns = {
70
70
  },
71
71
  emits: ["update:modelValue"],
72
72
  setup(B, { emit: fe }) {
73
- const V = B, I = fe, { t: me, locale: U } = Na(), F = S(!1), ee = S("days"), dt = /* @__PURE__ */ new Date(), Se = m(() => V.minDate instanceof Date ? V.minDate : dt), g = S(Se.value.getMonth()), Te = S(Se.value.getFullYear()), $e = S(Se.value.getMonth()), pe = S(Se.value.getFullYear()), ue = S(Se.value.getMonth()), xe = S(Se.value.getFullYear()), W = S("start"), he = S(null), We = S(null);
73
+ const V = B, I = fe, { t: me, locale: U } = Na(), F = S(!1), ee = S("days"), dt = /* @__PURE__ */ new Date(), Se = m(() => V.minDate instanceof Date ? V.minDate : dt), g = S(Se.value.getMonth()), Te = S(Se.value.getFullYear()), $e = S(Se.value.getMonth()), pe = S(Se.value.getFullYear()), re = S(Se.value.getMonth()), xe = S(Se.value.getFullYear()), W = S("start"), he = S(null), We = S(null);
74
74
  function tt() {
75
75
  const X = Se.value, Q = X.getMonth(), Y = X.getFullYear(), Ce = Q === 11 ? 0 : Q + 1, Xe = Q === 11 ? Y + 1 : Y;
76
76
  return { left: { month: Q, year: Y }, right: { month: Ce, year: Xe } };
77
77
  }
78
- const yt = S(null), Z = S(null), lt = S(null), Fe = S(null), Ee = S(null), St = S(null), Re = (/* @__PURE__ */ new Date()).getFullYear(), re = m(
78
+ const yt = S(null), Z = S(null), lt = S(null), Fe = S(null), Ee = S(null), St = S(null), De = (/* @__PURE__ */ new Date()).getFullYear(), ue = m(
79
79
  () => ["single", "singleFromAvailable"].includes(V.mode)
80
80
  ), nt = m(
81
81
  () => ["range", "rangeFromAvailable"].includes(V.mode)
@@ -118,7 +118,7 @@ const Ns = {
118
118
  return new Intl.DateTimeFormat(U.value, { month: "long", year: "numeric" }).format(X);
119
119
  });
120
120
  const Jt = m(
121
- () => We.value === "left" ? $e.value : We.value === "right" ? ue.value : g.value
121
+ () => We.value === "left" ? $e.value : We.value === "right" ? re.value : g.value
122
122
  ), bt = m(
123
123
  () => We.value === "left" ? pe.value : We.value === "right" ? xe.value : Te.value
124
124
  ), Bt = m(() => {
@@ -158,20 +158,20 @@ const Ns = {
158
158
  ), ce = m(
159
159
  () => qt(pe.value, $e.value)
160
160
  ), Ze = m(
161
- () => qt(xe.value, ue.value)
161
+ () => qt(xe.value, re.value)
162
162
  );
163
163
  m(() => {
164
164
  const X = new Date(pe.value, $e.value, 1);
165
165
  return new Intl.DateTimeFormat(U.value, { month: "long", year: "numeric" }).format(X);
166
166
  }), m(() => {
167
- const X = new Date(xe.value, ue.value, 1);
167
+ const X = new Date(xe.value, re.value, 1);
168
168
  return new Intl.DateTimeFormat(U.value, { month: "long", year: "numeric" }).format(X);
169
169
  });
170
170
  const Be = m(() => {
171
171
  const X = new Date(pe.value, $e.value, 1);
172
172
  return new Intl.DateTimeFormat(U.value, { month: "long" }).format(X);
173
173
  }), ot = m(() => {
174
- const X = new Date(xe.value, ue.value, 1);
174
+ const X = new Date(xe.value, re.value, 1);
175
175
  return new Intl.DateTimeFormat(U.value, { month: "long" }).format(X);
176
176
  }), wt = m(
177
177
  () => V.availableDates && V.availableDates.length > 0
@@ -232,11 +232,11 @@ const Ns = {
232
232
  return Ke(X) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(V.mode) ? ie(X) : ye(X);
233
233
  }
234
234
  function Vt(X) {
235
- const Q = je.value, Y = il.value, Ce = J(X), Xe = nt.value && Y.start && Y.end && Ce > J(Y.start) && Ce < J(Y.end), kt = nt.value && Y.start && K(X, Y.start), _t = nt.value && Y.end && K(X, Y.end), rt = kt && _t, Dt = re.value && Q && K(X, Q) || kt || _t;
235
+ const Q = je.value, Y = il.value, Ce = J(X), Xe = nt.value && Y.start && Y.end && Ce > J(Y.start) && Ce < J(Y.end), kt = nt.value && Y.start && K(X, Y.start), _t = nt.value && Y.end && K(X, Y.end), rt = kt && _t, Dt = ue.value && Q && K(X, Q) || kt || _t;
236
236
  let al = !1;
237
237
  if (nt.value && Y.start && !Y.end && he.value) {
238
- const Nl = J(Y.start), dn = J(he.value), Ul = Math.min(Nl, dn), vn = Math.max(Nl, dn);
239
- al = Ce > Ul && Ce < vn;
238
+ const Nl = J(Y.start), dn = J(he.value), Xl = Math.min(Nl, dn), vn = Math.max(Nl, dn);
239
+ al = Ce > Xl && Ce < vn;
240
240
  }
241
241
  return {
242
242
  "dss-datepicker__day--selected": Dt && !rt,
@@ -270,30 +270,30 @@ const Ns = {
270
270
  if (Q && Y) {
271
271
  const kt = Q <= Y ? Q : Y, _t = Q <= Y ? Y : Q, rt = kt.getMonth(), Dt = kt.getFullYear(), al = _t.getMonth(), Nl = _t.getFullYear();
272
272
  if (rt !== al || Dt !== Nl) {
273
- const dn = $e.value === rt && pe.value === Dt, Ul = ue.value === al && xe.value === Nl;
274
- if (dn && Ul) return;
275
- $e.value = rt, pe.value = Dt, ue.value = al, xe.value = Nl;
273
+ const dn = $e.value === rt && pe.value === Dt, Xl = re.value === al && xe.value === Nl;
274
+ if (dn && Xl) return;
275
+ $e.value = rt, pe.value = Dt, re.value = al, xe.value = Nl;
276
276
  } else {
277
- const dn = rt === 0 ? 11 : rt - 1, Ul = rt === 0 ? Dt - 1 : Dt;
278
- $e.value === dn && pe.value === Ul && ue.value === rt && xe.value === Dt || ($e.value = rt, pe.value = Dt, rt === 11 ? (ue.value = 0, xe.value = Dt + 1) : (ue.value = rt + 1, xe.value = Dt));
277
+ const dn = rt === 0 ? 11 : rt - 1, Xl = rt === 0 ? Dt - 1 : Dt;
278
+ $e.value === dn && pe.value === Xl && re.value === rt && xe.value === Dt || ($e.value = rt, pe.value = Dt, rt === 11 ? (re.value = 0, xe.value = Dt + 1) : (re.value = rt + 1, xe.value = Dt));
279
279
  }
280
280
  return;
281
281
  }
282
282
  const Ce = Q || Y;
283
283
  if (Ce) {
284
- const kt = Ce.getMonth(), _t = Ce.getFullYear(), rt = $e.value === kt && pe.value === _t, Dt = ue.value === kt && xe.value === _t;
284
+ const kt = Ce.getMonth(), _t = Ce.getFullYear(), rt = $e.value === kt && pe.value === _t, Dt = re.value === kt && xe.value === _t;
285
285
  if (rt || Dt) return;
286
- $e.value = kt, pe.value = _t, kt === 11 ? (ue.value = 0, xe.value = _t + 1) : (ue.value = kt + 1, xe.value = _t);
286
+ $e.value = kt, pe.value = _t, kt === 11 ? (re.value = 0, xe.value = _t + 1) : (re.value = kt + 1, xe.value = _t);
287
287
  return;
288
288
  }
289
289
  const Xe = tt();
290
- $e.value = Xe.left.month, pe.value = Xe.left.year, ue.value = Xe.right.month, xe.value = Xe.right.year;
290
+ $e.value = Xe.left.month, pe.value = Xe.left.year, re.value = Xe.right.month, xe.value = Xe.right.year;
291
291
  }
292
292
  function fl(X = "start") {
293
293
  if (V.mode === "readonly") return;
294
294
  W.value = X;
295
295
  const Q = je.value, Y = il.value;
296
- if (re.value && Q)
296
+ if (ue.value && Q)
297
297
  g.value = Q.getMonth(), Te.value = Q.getFullYear();
298
298
  else if (nt.value)
299
299
  if (V.doubleCalendar)
@@ -302,7 +302,7 @@ const Ns = {
302
302
  const Ce = X === "start" && Y.start ? Y.start : Y.end || Y.start;
303
303
  Ce && (g.value = Ce.getMonth(), Te.value = Ce.getFullYear());
304
304
  }
305
- Fe.value = re.value ? yt.value?.closest(".dss-datepicker__input-wrap") : Z.value, ee.value = "days", We.value = null, F.value = !0, _e(() => {
305
+ Fe.value = ue.value ? yt.value?.closest(".dss-datepicker__input-wrap") : Z.value, ee.value = "days", We.value = null, F.value = !0, _e(() => {
306
306
  $t();
307
307
  });
308
308
  }
@@ -366,7 +366,7 @@ const Ns = {
366
366
  I("update:modelValue", { start: kt, end: _t }), Qt();
367
367
  }
368
368
  function L(X) {
369
- We.value === "left" ? $e.value = X : We.value === "right" ? ue.value = X : g.value = X, H();
369
+ We.value === "left" ? $e.value = X : We.value === "right" ? re.value = X : g.value = X, H();
370
370
  }
371
371
  function ne(X) {
372
372
  We.value === "left" ? pe.value = X : We.value === "right" ? xe.value = X : Te.value = X, H();
@@ -384,15 +384,15 @@ const Ns = {
384
384
  $e.value === 11 ? ($e.value = 0, pe.value++) : $e.value++;
385
385
  }
386
386
  function Ie() {
387
- ue.value === 0 ? (ue.value = 11, xe.value--) : ue.value--;
387
+ re.value === 0 ? (re.value = 11, xe.value--) : re.value--;
388
388
  }
389
389
  function Ut() {
390
- ue.value === 11 ? (ue.value = 0, xe.value++) : ue.value++;
390
+ re.value === 11 ? (re.value = 0, xe.value++) : re.value++;
391
391
  }
392
392
  function Xt(X) {
393
393
  if (!xt(X)) return;
394
394
  const Q = new Date(X.getFullYear(), X.getMonth(), X.getDate());
395
- if (re.value) {
395
+ if (ue.value) {
396
396
  I("update:modelValue", Q), nl();
397
397
  return;
398
398
  }
@@ -462,7 +462,7 @@ const Ns = {
462
462
  disabled: "",
463
463
  tabindex: "-1"
464
464
  }, null, 8, Is)
465
- ])) : re.value ? (u(), c("div", {
465
+ ])) : ue.value ? (u(), c("div", {
466
466
  key: 1,
467
467
  class: "dss-datepicker__input-wrap",
468
468
  onClick: Q[0] || (Q[0] = (Y) => fl("start"))
@@ -732,7 +732,7 @@ const Ns = {
732
732
  type: "button",
733
733
  class: se(["dss-datepicker__year-cell", {
734
734
  "dss-datepicker__year-cell--selected": Y === bt.value,
735
- "dss-datepicker__year-cell--current": Y === R(Re)
735
+ "dss-datepicker__year-cell--current": Y === R(De)
736
736
  }]),
737
737
  "data-year": Y,
738
738
  onClick: (Ce) => ne(Y)
@@ -883,7 +883,7 @@ const Ns = {
883
883
  } catch {
884
884
  return 0;
885
885
  }
886
- }), ue = m(() => `chart-clip-${W.chartId}`), xe = m(() => `url(#${ue.value})`), W = B, he = {
886
+ }), re = m(() => `chart-clip-${W.chartId}`), xe = m(() => `url(#${re.value})`), W = B, he = {
887
887
  chart: {
888
888
  type: "line",
889
889
  width: 800,
@@ -1100,31 +1100,31 @@ const Ns = {
1100
1100
  }), Ee = m(() => {
1101
1101
  const e = Z.value;
1102
1102
  return lt.value ? dt.value || 800 : e && e.chart && typeof e.chart.width == "number" ? e.chart.width : 800;
1103
- }), St = S($e), Re = m(() => {
1103
+ }), St = S($e), De = m(() => {
1104
1104
  if (Fe.value) {
1105
- const e = Re.value;
1105
+ const e = De.value;
1106
1106
  return e ?? Math.max(0, (Se.value || 400) - St.value * 5);
1107
1107
  }
1108
- }), re = m(() => {
1108
+ }), ue = m(() => {
1109
1109
  const e = Z.value;
1110
1110
  if (je.value === "mini-radial")
1111
1111
  return Ee.value;
1112
1112
  if (Fe.value) {
1113
- const o = Re.value;
1113
+ const o = De.value;
1114
1114
  return o ?? Math.max(0, (Se.value || 400) - St.value);
1115
1115
  }
1116
1116
  return e && e.chart && typeof e.chart.height == "number" ? e.chart.height : 400;
1117
1117
  }), nt = m(() => {
1118
- if (Fe.value && je.value === "semi-radial" && Re.value != null)
1119
- return St.value + re.value + "px";
1118
+ if (Fe.value && je.value === "semi-radial" && De.value != null)
1119
+ return St.value + ue.value + "px";
1120
1120
  if (Fe.value) return "100%";
1121
1121
  if (Hl.value)
1122
- return St.value + re.value + "px";
1122
+ return St.value + ue.value + "px";
1123
1123
  if (vt.value && mt.value === "bottom") {
1124
1124
  const e = tt();
1125
- return re.value + (e.legendHeight || 35) + "px";
1125
+ return ue.value + (e.legendHeight || 35) + "px";
1126
1126
  }
1127
- return re.value + (vt.value ? 20 : 0) + "px";
1127
+ return ue.value + (vt.value ? 20 : 0) + "px";
1128
1128
  }), je = m(() => {
1129
1129
  const e = Z.value;
1130
1130
  return e && e.chart && e.chart.type ? e.chart.type : "line";
@@ -1441,7 +1441,7 @@ const Ns = {
1441
1441
  </defs>
1442
1442
  </svg>`;
1443
1443
  return `data:image/svg+xml;base64,${btoa(e)}`;
1444
- }), Ul = m(() => {
1444
+ }), Xl = m(() => {
1445
1445
  const e = W.old ? `<svg width="499" height="96" viewBox="0 0 499 96" fill="none" xmlns="http://www.w3.org/2000/svg">
1446
1446
  <path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
1447
1447
  <path d="M179.04 58.1699C179.04 55.0799 179.55 52.0499 180.57 49.0699C181.59 46.0999 183.04 43.4899 184.93 41.2299C186.82 38.9699 189.09 37.1499 191.75 35.7499C194.41 34.3599 197.35 33.6599 200.57 33.6599C207 33.6599 212.15 35.9299 216.02 40.4799C219.89 45.0299 221.97 51.5999 222.28 60.1999H189.34C189.77 64.2199 191.09 67.1499 193.28 68.9699C195.48 70.7999 198.12 71.7099 201.21 71.7099C203 71.7099 204.5 71.4599 205.71 70.9699C206.92 70.4799 207.91 69.8899 208.68 69.2099C209.45 68.5299 210.06 67.8199 210.49 67.0799C210.92 66.3399 211.26 65.7199 211.51 65.2199H221.72C221.6 66.7699 221.1 68.5099 220.24 70.4599C219.37 72.4099 218.14 74.2299 216.53 75.9399C214.92 77.6399 212.85 79.0599 210.31 80.2099C207.77 81.3499 204.77 81.9299 201.31 81.9299C197.85 81.9299 194.91 81.2799 192.12 79.9799C189.34 78.6799 186.98 76.9499 185.07 74.7799C183.15 72.6099 181.67 70.0899 180.61 67.2199C179.56 64.3399 179.03 61.3299 179.03 58.1699H179.04ZM200.94 42.0199C198.47 42.0199 196.24 42.7299 194.26 44.1499C192.28 45.5699 190.89 47.8299 190.08 50.9199H211.33C211.02 48.0799 209.95 45.8799 208.13 44.3299C206.3 42.7899 203.91 42.0099 200.94 42.0099V42.0199Z" fill="#020203"/>
@@ -1518,7 +1518,7 @@ const Ns = {
1518
1518
  return typeof o == "string" && o ? o : "#333";
1519
1519
  }), Wl = m(() => {
1520
1520
  if (!pa.value || !Hl.value || !l.value.length) return [];
1521
- const e = Ma.value * Math.PI / 180, o = (kl.value + Rt.value) / 2;
1521
+ const e = Ma.value * Math.PI / 180, o = (_l.value + Rt.value) / 2;
1522
1522
  return l.value.map((t) => {
1523
1523
  const h = t.endAngle - t.startAngle >= e && !t.isHidden, b = Wt.value + Math.cos(t.midAngle) * o, _ = zt.value + Math.sin(t.midAngle) * o;
1524
1524
  return {
@@ -1705,10 +1705,10 @@ const Ns = {
1705
1705
  He.value.show = !1;
1706
1706
  return;
1707
1707
  }
1708
- const { minX: _, maxX: k } = cl.value, z = k - _ || 1, P = z / ve.value.scale, q = _ - ve.value.offsetX / j.value.width * z, D = (r - j.value.left) / j.value.width, ae = q + D * P, De = Math.round(ae);
1709
- if (De >= 0 && De <= k) {
1710
- const at = wl(De), ge = Fn.value.map((Ae, Pe) => {
1711
- const we = W.series.findIndex((et) => et === Ae), ut = Ae.data[De];
1708
+ const { minX: _, maxX: k } = cl.value, z = k - _ || 1, P = z / ve.value.scale, q = _ - ve.value.offsetX / j.value.width * z, D = (r - j.value.left) / j.value.width, ae = q + D * P, Re = Math.round(ae);
1709
+ if (Re >= 0 && Re <= k) {
1710
+ const at = wl(Re), ge = Fn.value.map((Ae, Pe) => {
1711
+ const we = W.series.findIndex((et) => et === Ae), ut = Ae.data[Re];
1712
1712
  return {
1713
1713
  seriesName: Ae.name,
1714
1714
  value: ut !== void 0 ? ut : null,
@@ -1719,7 +1719,7 @@ const Ns = {
1719
1719
  He.value = {
1720
1720
  show: !0,
1721
1721
  x: at,
1722
- categoryIndex: De,
1722
+ categoryIndex: Re,
1723
1723
  data: ge
1724
1724
  };
1725
1725
  }
@@ -1853,7 +1853,7 @@ const Ns = {
1853
1853
  year: "2-digit"
1854
1854
  }).replace(/\//g, "-");
1855
1855
  return `${o.replace(/[^a-zA-Z0-9\s]/g, "").replace(/\s+/g, "-").substring(0, 50).replace(/^-|-$/g, "") || "Chart"}-${t}.${e}`;
1856
- }, xl = () => {
1856
+ }, kl = () => {
1857
1857
  const e = He.value.show, o = gt.value.show;
1858
1858
  return He.value.show = !1, gt.value.show = !1, { originalCrosshair: e, originalTooltip: o };
1859
1859
  }, bl = (e) => {
@@ -1883,7 +1883,7 @@ const Ns = {
1883
1883
  }, b.src = e;
1884
1884
  }), Ln = async () => {
1885
1885
  try {
1886
- const e = xl();
1886
+ const e = kl();
1887
1887
  setTimeout(async () => {
1888
1888
  try {
1889
1889
  const o = F.value;
@@ -1891,7 +1891,7 @@ const Ns = {
1891
1891
  console.error("Chart SVG element not found"), bl(e);
1892
1892
  return;
1893
1893
  }
1894
- const t = tt(), r = Ee.value, h = re.value + t.height, b = o.cloneNode(!0);
1894
+ const t = tt(), r = Ee.value, h = ue.value + t.height, b = o.cloneNode(!0);
1895
1895
  b.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text").forEach((we) => we.remove());
1896
1896
  const k = b.querySelectorAll("image"), z = Array.from(k).map(async (we) => {
1897
1897
  const ut = we.getAttribute("xlink:href") || we.getAttribute("href");
@@ -1930,7 +1930,7 @@ const Ns = {
1930
1930
  }
1931
1931
  });
1932
1932
  }
1933
- let De = "";
1933
+ let Re = "";
1934
1934
  if (Ce.value)
1935
1935
  try {
1936
1936
  const { width: we, height: ut } = rt.value, et = _t.value, ze = j.value.left, Oe = j.value.right, Ye = j.value.top, Nt = j.value.bottom, jt = j.value.width, un = j.value.height;
@@ -1953,7 +1953,7 @@ const Ns = {
1953
1953
  Ll = Oe - we - 5, cn = Nt - ut - 5;
1954
1954
  break;
1955
1955
  }
1956
- De = `
1956
+ Re = `
1957
1957
  <g opacity="${Xe.value}">
1958
1958
  <g transform="translate(${Ll}, ${cn}) scale(${we / 499})">
1959
1959
  <path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
@@ -1972,7 +1972,7 @@ const Ns = {
1972
1972
  </g>
1973
1973
  </g>`;
1974
1974
  } catch (we) {
1975
- console.warn("Watermark processing failed, skipping watermark in SVG:", we), De = "";
1975
+ console.warn("Watermark processing failed, skipping watermark in SVG:", we), Re = "";
1976
1976
  }
1977
1977
  const at = `<?xml version="1.0" encoding="UTF-8"?>
1978
1978
  <svg width="${r}" height="${h}"
@@ -1989,7 +1989,7 @@ const Ns = {
1989
1989
  ${D}
1990
1990
  <g transform="translate(0, ${t.height})">
1991
1991
  ${q}
1992
- ${De}
1992
+ ${Re}
1993
1993
  </g>
1994
1994
  </svg>`, ge = new Blob([at], { type: "image/svg+xml;charset=utf-8" }), Ae = URL.createObjectURL(ge), Pe = document.createElement("a");
1995
1995
  Pe.href = Ae, Pe.download = yl("svg"), document.body.appendChild(Pe), Pe.click(), document.body.removeChild(Pe), URL.revokeObjectURL(Ae), bl(e), ll();
@@ -2000,11 +2000,11 @@ const Ns = {
2000
2000
  } catch (e) {
2001
2001
  console.error("Error downloading SVG:", e);
2002
2002
  }
2003
- }, Xl = async () => {
2003
+ }, Yl = async () => {
2004
2004
  try {
2005
- const e = xl();
2005
+ const e = kl();
2006
2006
  U.value && U.value.offsetHeight, await new Promise((we) => setTimeout(we, 300));
2007
- const o = tt(), t = Ee.value, r = re.value + o.height, h = document.createElement("canvas"), b = h.getContext("2d"), _ = 2;
2007
+ const o = tt(), t = Ee.value, r = ue.value + o.height, h = document.createElement("canvas"), b = h.getContext("2d"), _ = 2;
2008
2008
  h.width = t * _, h.height = r * _, h.style.width = t + "px", h.style.height = r + "px", b.scale(_, _), b.fillStyle = "#fafafa", b.fillRect(0, 0, t, r);
2009
2009
  let k = 30;
2010
2010
  if (Ct.value && (b.fillStyle = "#333", b.font = "bold 18px Arial, sans-serif", b.fillText(Ct.value, 24, k), k += 30), Pt.value && (b.fillStyle = "#666", b.font = "14px Arial, sans-serif", b.fillText(Pt.value, 24, k), k += 25), vt.value && W.series.length > 0) {
@@ -2062,7 +2062,7 @@ const Ns = {
2062
2062
  jt.href = Nt, jt.download = yl("png"), document.body.appendChild(jt), jt.click(), document.body.removeChild(jt), URL.revokeObjectURL(Nt), URL.revokeObjectURL(Ae), bl(e), ll(), we();
2063
2063
  }, "image/png");
2064
2064
  };
2065
- et.onload = ze, et.onerror = Oe, et.src = Ul.value;
2065
+ et.onload = ze, et.onerror = Oe, et.src = Xl.value;
2066
2066
  } else
2067
2067
  h.toBlob((et) => {
2068
2068
  const ze = URL.createObjectURL(et), Oe = document.createElement("a");
@@ -2144,9 +2144,9 @@ const Ns = {
2144
2144
  Math.min(ve.value.maxScale, ve.value.scale * b)
2145
2145
  );
2146
2146
  if (_ !== ve.value.scale) {
2147
- const { minX: k, maxX: z } = cl.value, P = z - k || 1, q = P / ve.value.scale, D = k - ve.value.offsetX / j.value.width * P, ae = (r - j.value.left) / j.value.width, De = D + ae * q;
2147
+ const { minX: k, maxX: z } = cl.value, P = z - k || 1, q = P / ve.value.scale, D = k - ve.value.offsetX / j.value.width * P, ae = (r - j.value.left) / j.value.width, Re = D + ae * q;
2148
2148
  ve.value.scale = _;
2149
- const at = P / ve.value.scale, ge = De - ae * at;
2149
+ const at = P / ve.value.scale, ge = Re - ae * at;
2150
2150
  ve.value.offsetX = -(ge - k) / P * j.value.width, ve.value.scale <= 1.01 && (ve.value.scale = 1, ve.value.offsetX = 0);
2151
2151
  }
2152
2152
  ve.value.zoomTimeout = setTimeout(() => {
@@ -2179,13 +2179,13 @@ const Ns = {
2179
2179
  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;
2180
2180
  }
2181
2181
  if (Hl.value) {
2182
- const D = !vt.value, ae = vn.value, De = ae ? Pn.value + Wn.value + Math.max(24, In.value + 16) : 0, at = D ? 12 : h;
2182
+ const D = !vt.value, ae = vn.value, Re = ae ? Pn.value + Wn.value + Math.max(24, In.value + 16) : 0, at = D ? 12 : h;
2183
2183
  let ge = 0;
2184
2184
  Ct.value && (ge += D ? 8 : 15), Pt.value && (ge += D ? 6 : 10);
2185
2185
  const Ae = tt();
2186
- let Pe = at + (D ? 4 : 16) + (ae ? De : 0), we = at + (ae ? De : 0);
2186
+ let Pe = at + (D ? 4 : 16) + (ae ? Re : 0), we = at + (ae ? Re : 0);
2187
2187
  vt.value && mt.value === "left" ? Pe += Ae.legendWidth || 150 : vt.value && mt.value === "right" && (we += Ae.legendWidth || 150);
2188
- const et = je.value === "semi-radial" ? ae ? De : 8 : ae ? De : D ? 8 : h + 80, ze = ae ? 14 : 0, Oe = at + ge + ze, Ye = {
2188
+ const et = je.value === "semi-radial" ? ae ? Re : 8 : ae ? Re : D ? 8 : h + 80, ze = ae ? 14 : 0, Oe = at + ge + ze, Ye = {
2189
2189
  left: Pe,
2190
2190
  top: Oe,
2191
2191
  right: we,
@@ -2204,22 +2204,22 @@ const Ns = {
2204
2204
  left: zl.value.left,
2205
2205
  top: zl.value.top,
2206
2206
  right: Ee.value - zl.value.right,
2207
- bottom: re.value - zl.value.bottom,
2207
+ bottom: ue.value - zl.value.bottom,
2208
2208
  width: Ee.value - (zl.value.left + zl.value.right),
2209
- height: re.value - (zl.value.top + zl.value.bottom)
2209
+ height: ue.value - (zl.value.top + zl.value.bottom)
2210
2210
  })), Fl = m(() => ["line", "area", "bar"].includes(je.value) || il.value), Kl = m(() => il.value), Yn = m(() => je.value === "mini-radial"), Hl = m(() => ["radial", "semi-radial", "mini-radial"].includes(je.value)), gn = m(() => je.value === "spider"), Cl = m(() => je.value === "bubble"), Dl = m(() => Z.value?.chart?.orientation === "horizontal" && (je.value === "bar" || Kl.value)), xn = (e) => {
2211
2211
  const { minY: o, maxY: t } = cl.value, r = t - o || 1;
2212
2212
  return j.value.left + (e - o) / r * j.value.width;
2213
2213
  }, Gl = (e) => {
2214
2214
  const { maxX: o } = cl.value, t = o + 1, h = j.value.height / t;
2215
2215
  return j.value.top + (e + 0.5) * h;
2216
- }, Wt = m(() => Hl.value ? zl.value.left + (Ee.value - zl.value.left - zl.value.right) / 2 : Ee.value / 2), zt = m(() => gn.value ? re.value / 2 - 40 : Hl.value ? zl.value.top + (re.value - zl.value.top - zl.value.bottom) / 2 : re.value / 2), Rt = m(() => {
2216
+ }, Wt = m(() => Hl.value ? zl.value.left + (Ee.value - zl.value.left - zl.value.right) / 2 : Ee.value / 2), zt = m(() => gn.value ? ue.value / 2 - 40 : Hl.value ? zl.value.top + (ue.value - zl.value.top - zl.value.bottom) / 2 : ue.value / 2), Rt = m(() => {
2217
2217
  if (gn.value) {
2218
2218
  const e = j.value.width - 80, o = j.value.height - 80;
2219
2219
  return Math.min(e, o) / 2;
2220
2220
  }
2221
2221
  return Math.min(j.value.width, j.value.height) / 2;
2222
- }), kl = m(() => {
2222
+ }), _l = m(() => {
2223
2223
  const e = Z.value, o = e?.plotOptions?.radialBar?.innerRadiusRatio ?? e?.radialBar?.innerRadiusRatio, t = typeof o == "number" && o >= 0 && o <= 1 ? o : 0.45;
2224
2224
  return Rt.value * t;
2225
2225
  }), Fa = m(() => {
@@ -2235,10 +2235,10 @@ const Ns = {
2235
2235
  ), ua = m(
2236
2236
  () => sn.value && Ge.value && !El.value && Tt.value === "fill"
2237
2237
  ), Oa = m(() => {
2238
- const e = ul.value ? Ql.value : 1, o = Wt.value, t = zt.value, r = kl.value, h = Rt.value, b = Math.PI, _ = Math.PI + e * Math.PI;
2238
+ const e = ul.value ? Ql.value : 1, o = Wt.value, t = zt.value, r = _l.value, h = Rt.value, b = Math.PI, _ = Math.PI + e * Math.PI;
2239
2239
  if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
2240
- const k = o + h * Math.cos(b), z = t + h * Math.sin(b), P = o + h * Math.cos(_), q = t + h * Math.sin(_), D = o + r * Math.cos(_), ae = t + r * Math.sin(_), De = o + r * Math.cos(b), at = t + r * Math.sin(b), ge = e > 0.5 ? 1 : 0;
2241
- return `M ${o} ${t} L ${k} ${z} A ${h} ${h} 0 ${ge} 1 ${P} ${q} L ${D} ${ae} A ${r} ${r} 0 ${ge} 1 ${De} ${at} Z`;
2240
+ const k = o + h * Math.cos(b), z = t + h * Math.sin(b), P = o + h * Math.cos(_), q = t + h * Math.sin(_), D = o + r * Math.cos(_), ae = t + r * Math.sin(_), Re = o + r * Math.cos(b), at = t + r * Math.sin(b), ge = e > 0.5 ? 1 : 0;
2241
+ return `M ${o} ${t} L ${k} ${z} A ${h} ${h} 0 ${ge} 1 ${P} ${q} L ${D} ${ae} A ${r} ${r} 0 ${ge} 1 ${Re} ${at} Z`;
2242
2242
  }), Tn = m(() => {
2243
2243
  if (!(!sn.value || !ul.value) && !ua.value)
2244
2244
  return `url(#${_n.value})`;
@@ -2246,7 +2246,7 @@ const Ns = {
2246
2246
  if (!(!ua.value || e !== 0))
2247
2247
  return `url(#${_n.value})`;
2248
2248
  }, Jl = S(0), Hn = m(() => `radial-reveal-clip-${W.chartId}`), Zl = m(() => je.value === "radial"), as = m(() => {
2249
- const e = Zl.value ? Jl.value : 1, o = Wt.value, t = zt.value, r = Math.max(Rt.value * 1.5, Ee.value, re.value);
2249
+ const e = Zl.value ? Jl.value : 1, o = Wt.value, t = zt.value, r = Math.max(Rt.value * 1.5, Ee.value, ue.value);
2250
2250
  if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
2251
2251
  if (e >= 1) {
2252
2252
  const D = o - r, ae = o + r;
@@ -2316,8 +2316,8 @@ const Ns = {
2316
2316
  if (!Fn.value.length)
2317
2317
  return { minX: 0, maxX: 8, minY: 0, maxY: 50, minSize: 10, maxSize: 30 };
2318
2318
  let e = 1 / 0, o = -1 / 0, t = 1 / 0, r = -1 / 0, h = 1 / 0, b = -1 / 0, _ = !1;
2319
- if (Fn.value.forEach((De, at) => {
2320
- De?.data?.length && De.data.forEach((ge, Ae) => {
2319
+ if (Fn.value.forEach((Re, at) => {
2320
+ Re?.data?.length && Re.data.forEach((ge, Ae) => {
2321
2321
  let Pe, we, ut;
2322
2322
  if (typeof ge == "object" && ge !== null && !Array.isArray(ge))
2323
2323
  Pe = typeof ge.x == "number" ? ge.x : Ae, we = typeof ge.y == "number" ? ge.y : 0, ut = typeof ge.size == "number" ? ge.size : 20;
@@ -2518,7 +2518,7 @@ const Ns = {
2518
2518
  h.forEach((D) => {
2519
2519
  if (D.length > 0) {
2520
2520
  let ae = "";
2521
- ye.value ? ae = ra(D) : ae = `M ${D[0].x} ${D[0].y}` + D.slice(1).map((De) => ` L ${De.x} ${De.y}`).join(""), _ += (_ ? " " : "") + ae;
2521
+ ye.value ? ae = ra(D) : ae = `M ${D[0].x} ${D[0].y}` + D.slice(1).map((Re) => ` L ${Re.x} ${Re.y}`).join(""), _ += (_ ? " " : "") + ae;
2522
2522
  }
2523
2523
  });
2524
2524
  const k = h.reduce((D, ae) => D + Kn(ae), 0), z = tl.value.has(r), P = Le.value === r, q = Le.value !== null && Le.value !== r;
@@ -2551,9 +2551,9 @@ const Ns = {
2551
2551
  }
2552
2552
  }
2553
2553
  if (z > 0 && k !== -1) {
2554
- const P = t.data[k], q = Dl.value ? xn(_) : wl(b), D = Dl.value ? Gl(b) : Rl(_), ae = Dl.value ? xn(P) : wl(k), De = Dl.value ? Gl(k) : Rl(P), at = tl.value.has(h), ge = Le.value === h, Ae = Le.value !== null && Le.value !== h;
2554
+ const P = t.data[k], q = Dl.value ? xn(_) : wl(b), D = Dl.value ? Gl(b) : Rl(_), ae = Dl.value ? xn(P) : wl(k), Re = Dl.value ? Gl(k) : Rl(P), at = tl.value.has(h), ge = Le.value === h, Ae = Le.value !== null && Le.value !== h;
2555
2555
  o.push({
2556
- path: `M ${q} ${D} L ${ae} ${De}`,
2556
+ path: `M ${q} ${D} L ${ae} ${Re}`,
2557
2557
  color: ol(h),
2558
2558
  seriesIndex: h,
2559
2559
  animationDelay: r * Yt.value,
@@ -2649,11 +2649,11 @@ const Ns = {
2649
2649
  if (!o?.data?.length) return;
2650
2650
  const r = Le.value, h = r !== null && r === t, b = r !== null && r !== t, _ = tl.value.has(t);
2651
2651
  o.data.forEach((k, z) => {
2652
- let P, q, D, ae, De;
2652
+ let P, q, D, ae, Re;
2653
2653
  if (typeof k == "object" && k !== null && !Array.isArray(k))
2654
- P = typeof k.x == "number" ? k.x : z, q = typeof k.y == "number" ? k.y : 0, D = typeof k.size == "number" ? k.size : 20, ae = k.label || W.categories?.[z] || `Point ${z + 1}`, De = k.image || k.imageUrl;
2654
+ P = typeof k.x == "number" ? k.x : z, q = typeof k.y == "number" ? k.y : 0, D = typeof k.size == "number" ? k.size : 20, ae = k.label || W.categories?.[z] || `Point ${z + 1}`, Re = k.image || k.imageUrl;
2655
2655
  else if (Array.isArray(k) && k.length >= 3)
2656
- P = typeof k[0] == "number" ? k[0] : z, q = typeof k[1] == "number" ? k[1] : 0, D = typeof k[2] == "number" ? k[2] : 20, ae = k[3] || W.categories?.[z] || `Point ${z + 1}`, De = k[4];
2656
+ P = typeof k[0] == "number" ? k[0] : z, q = typeof k[1] == "number" ? k[1] : 0, D = typeof k[2] == "number" ? k[2] : 20, ae = k[3] || W.categories?.[z] || `Point ${z + 1}`, Re = k[4];
2657
2657
  else if (typeof k == "number")
2658
2658
  P = z, q = k, D = Za(t, z), ae = W.categories?.[z] || `Point ${z + 1}`;
2659
2659
  else
@@ -2668,7 +2668,7 @@ const Ns = {
2668
2668
  color: ol(t),
2669
2669
  seriesName: o.name || `Series ${t + 1}`,
2670
2670
  label: ae,
2671
- imageUrl: De,
2671
+ imageUrl: Re,
2672
2672
  seriesIndex: t,
2673
2673
  dataIndex: z,
2674
2674
  categoryIndex: Math.round(P),
@@ -2698,10 +2698,10 @@ const Ns = {
2698
2698
  let b = "", _ = "";
2699
2699
  t.forEach((D, ae) => {
2700
2700
  if (D.length === 0) return;
2701
- let De = `M ${D[0].x} ${D[0].y}`;
2702
- ye.value && D.length > 1 ? De = ra(D) : D.slice(1).forEach((ge) => {
2703
- De += ` L ${ge.x} ${ge.y}`;
2704
- }), b += (b ? " " : "") + De;
2701
+ let Re = `M ${D[0].x} ${D[0].y}`;
2702
+ ye.value && D.length > 1 ? Re = ra(D) : D.slice(1).forEach((ge) => {
2703
+ Re += ` L ${ge.x} ${ge.y}`;
2704
+ }), b += (b ? " " : "") + Re;
2705
2705
  let at = `M ${D[0].x} ${h}`;
2706
2706
  if (at += ` L ${D[0].x} ${D[0].y}`, ye.value && D.length > 1) {
2707
2707
  const ge = ra(D), Ae = ge.substring(ge.indexOf("C") || ge.indexOf("Q") || ge.indexOf("L"));
@@ -2730,7 +2730,7 @@ const Ns = {
2730
2730
  if (Dl.value) {
2731
2731
  const h = o + 1, _ = j.value.height / h, k = _ * (2 / 3), z = Math.min(4, k / r * 0.15), P = k - (r - 1) * z, q = Math.max(4, P / r);
2732
2732
  t.forEach((D, ae) => {
2733
- const De = W.series.findIndex((Pe) => Pe === D), at = Le.value === De, ge = Le.value !== null && Le.value !== De, Ae = tl.value.has(De);
2733
+ const Re = W.series.findIndex((Pe) => Pe === D), at = Le.value === Re, ge = Le.value !== null && Le.value !== Re, Ae = tl.value.has(Re);
2734
2734
  D.data.forEach((Pe, we) => {
2735
2735
  if (Pe == null || typeof Pe != "number" || !isFinite(Pe))
2736
2736
  return;
@@ -2753,7 +2753,7 @@ const Ns = {
2753
2753
  y: ze,
2754
2754
  width: Ye,
2755
2755
  height: q,
2756
- color: ol(r === 1 ? we : De),
2756
+ color: ol(r === 1 ? we : Re),
2757
2757
  value: Pe,
2758
2758
  label: W.categories[we] || we.toString(),
2759
2759
  seriesName: D.name,
@@ -2769,7 +2769,7 @@ const Ns = {
2769
2769
  } else {
2770
2770
  const h = o + 1, _ = j.value.width / h, k = _ * 0.8, z = k / r, P = z * 0.05, q = z - P;
2771
2771
  t.forEach((D, ae) => {
2772
- const De = W.series.findIndex((Pe) => Pe === D), at = Le.value === De, ge = Le.value !== null && Le.value !== De, Ae = tl.value.has(De);
2772
+ const Re = W.series.findIndex((Pe) => Pe === D), at = Le.value === Re, ge = Le.value !== null && Le.value !== Re, Ae = tl.value.has(Re);
2773
2773
  D.data.forEach((Pe, we) => {
2774
2774
  if (Pe == null || typeof Pe != "number" || !isFinite(Pe))
2775
2775
  return;
@@ -2792,7 +2792,7 @@ const Ns = {
2792
2792
  y: Oe,
2793
2793
  width: q,
2794
2794
  height: Ye,
2795
- color: ol(r === 1 ? we : De),
2795
+ color: ol(r === 1 ? we : Re),
2796
2796
  value: Pe,
2797
2797
  label: W.categories[we] || we.toString(),
2798
2798
  seriesName: D.name,
@@ -2813,9 +2813,9 @@ const Ns = {
2813
2813
  if (e.length === 0) return [];
2814
2814
  let o = je.value === "semi-radial" ? Math.PI : -Math.PI / 2;
2815
2815
  const t = je.value === "semi-radial" ? Math.PI : Math.PI * 2, r = [], h = (_, k, z, P, q, D) => {
2816
- const ae = _ + (k - _) / 2, De = k - _, at = Wt.value + Math.cos(_) * kl.value, ge = zt.value + Math.sin(_) * kl.value, Ae = Wt.value + Math.cos(k) * kl.value, Pe = zt.value + Math.sin(k) * kl.value, we = Wt.value + Math.cos(k) * Rt.value, ut = zt.value + Math.sin(k) * Rt.value, et = Wt.value + Math.cos(_) * Rt.value, ze = zt.value + Math.sin(_) * Rt.value, Oe = De > Math.PI ? 1 : 0, Ye = [
2816
+ const ae = _ + (k - _) / 2, Re = k - _, at = Wt.value + Math.cos(_) * _l.value, ge = zt.value + Math.sin(_) * _l.value, Ae = Wt.value + Math.cos(k) * _l.value, Pe = zt.value + Math.sin(k) * _l.value, we = Wt.value + Math.cos(k) * Rt.value, ut = zt.value + Math.sin(k) * Rt.value, et = Wt.value + Math.cos(_) * Rt.value, ze = zt.value + Math.sin(_) * Rt.value, Oe = Re > Math.PI ? 1 : 0, Ye = [
2817
2817
  `M ${at} ${ge}`,
2818
- `A ${kl.value} ${kl.value} 0 ${Oe} 1 ${Ae} ${Pe}`,
2818
+ `A ${_l.value} ${_l.value} 0 ${Oe} 1 ${Ae} ${Pe}`,
2819
2819
  `L ${we} ${ut}`,
2820
2820
  `A ${Rt.value} ${Rt.value} 0 ${Oe} 0 ${et} ${ze}`,
2821
2821
  "Z"
@@ -2837,13 +2837,13 @@ const Ns = {
2837
2837
  };
2838
2838
  };
2839
2839
  if (Yn.value) {
2840
- const { series: _, originalIndex: k } = e[0], z = Number(_?.data?.[0] ?? 0), P = Number.isFinite(z) ? Math.min(Math.max(z, 0), 100) : 0, q = Z.value, D = Math.min(Math.max(Number(q?.miniRadial?.minVisiblePercent ?? 1), 0), 100), De = (P <= 0 ? D : P) / 100 * t, at = Number(q?.miniRadial?.thresholds?.low ?? 33), ge = Number(q?.miniRadial?.thresholds?.medium ?? 66), Ae = q?.miniRadial?.colors?.low || "#E53E3E", Pe = q?.miniRadial?.colors?.medium || "#ED8936", we = q?.miniRadial?.colors?.high || "#38A169", ut = P <= at ? Ae : P <= ge ? Pe : we, et = q?.miniRadial?.trackColor || "#E5E7EB", ze = _?.name || "Score";
2841
- return r.push(h(o, o + t - 1e-3, k + 1, "Track", 100, et)), r.push(h(o, o + De, k, ze, P, ut)), r;
2840
+ const { series: _, originalIndex: k } = e[0], z = Number(_?.data?.[0] ?? 0), P = Number.isFinite(z) ? Math.min(Math.max(z, 0), 100) : 0, q = Z.value, D = Math.min(Math.max(Number(q?.miniRadial?.minVisiblePercent ?? 1), 0), 100), Re = (P <= 0 ? D : P) / 100 * t, at = Number(q?.miniRadial?.thresholds?.low ?? 33), ge = Number(q?.miniRadial?.thresholds?.medium ?? 66), Ae = q?.miniRadial?.colors?.low || "#E53E3E", Pe = q?.miniRadial?.colors?.medium || "#ED8936", we = q?.miniRadial?.colors?.high || "#38A169", ut = P <= at ? Ae : P <= ge ? Pe : we, et = q?.miniRadial?.trackColor || "#E5E7EB", ze = _?.name || "Score";
2841
+ return r.push(h(o, o + t - 1e-3, k + 1, "Track", 100, et)), r.push(h(o, o + Re, k, ze, P, ut)), r;
2842
2842
  }
2843
2843
  if (e.length === 1) {
2844
- const { series: _, originalIndex: k } = e[0], z = _.data[0] || 0, P = o, q = o + t - 1e-3, D = P + t / 2, ae = Wt.value + Math.cos(P) * kl.value, De = zt.value + Math.sin(P) * kl.value, at = Wt.value + Math.cos(q) * kl.value, ge = zt.value + Math.sin(q) * kl.value, Ae = Wt.value + Math.cos(q) * Rt.value, Pe = zt.value + Math.sin(q) * Rt.value, we = Wt.value + Math.cos(P) * Rt.value, ut = zt.value + Math.sin(P) * Rt.value, et = 1, ze = [
2845
- `M ${ae} ${De}`,
2846
- `A ${kl.value} ${kl.value} 0 ${et} 1 ${at} ${ge}`,
2844
+ const { series: _, originalIndex: k } = e[0], z = _.data[0] || 0, P = o, q = o + t - 1e-3, D = P + t / 2, ae = Wt.value + Math.cos(P) * _l.value, Re = zt.value + Math.sin(P) * _l.value, at = Wt.value + Math.cos(q) * _l.value, ge = zt.value + Math.sin(q) * _l.value, Ae = Wt.value + Math.cos(q) * Rt.value, Pe = zt.value + Math.sin(q) * Rt.value, we = Wt.value + Math.cos(P) * Rt.value, ut = zt.value + Math.sin(P) * Rt.value, et = 1, ze = [
2845
+ `M ${ae} ${Re}`,
2846
+ `A ${_l.value} ${_l.value} 0 ${et} 1 ${at} ${ge}`,
2847
2847
  `L ${Ae} ${Pe}`,
2848
2848
  `A ${Rt.value} ${Rt.value} 0 ${et} 0 ${we} ${ut}`,
2849
2849
  "Z"
@@ -2870,9 +2870,9 @@ const Ns = {
2870
2870
  }
2871
2871
  const b = e.reduce((_, { series: k }) => _ + (k.data[0] || 0), 0);
2872
2872
  return b === 0 ? [] : (e.forEach(({ series: _, originalIndex: k }) => {
2873
- const z = _.data[0] || 0, P = z / b * t, q = o, D = o + P, ae = q + P / 2, De = Wt.value + Math.cos(q) * kl.value, at = zt.value + Math.sin(q) * kl.value, ge = Wt.value + Math.cos(D) * kl.value, Ae = zt.value + Math.sin(D) * kl.value, Pe = Wt.value + Math.cos(D) * Rt.value, we = zt.value + Math.sin(D) * Rt.value, ut = Wt.value + Math.cos(q) * Rt.value, et = zt.value + Math.sin(q) * Rt.value, ze = P > Math.PI ? 1 : 0, Oe = [
2874
- `M ${De} ${at}`,
2875
- `A ${kl.value} ${kl.value} 0 ${ze} 1 ${ge} ${Ae}`,
2873
+ const z = _.data[0] || 0, P = z / b * t, q = o, D = o + P, ae = q + P / 2, Re = Wt.value + Math.cos(q) * _l.value, at = zt.value + Math.sin(q) * _l.value, ge = Wt.value + Math.cos(D) * _l.value, Ae = zt.value + Math.sin(D) * _l.value, Pe = Wt.value + Math.cos(D) * Rt.value, we = zt.value + Math.sin(D) * Rt.value, ut = Wt.value + Math.cos(q) * Rt.value, et = zt.value + Math.sin(q) * Rt.value, ze = P > Math.PI ? 1 : 0, Oe = [
2874
+ `M ${Re} ${at}`,
2875
+ `A ${_l.value} ${_l.value} 0 ${ze} 1 ${ge} ${Ae}`,
2876
2876
  `L ${Pe} ${we}`,
2877
2877
  `A ${Rt.value} ${Rt.value} 0 ${ze} 0 ${ut} ${et}`,
2878
2878
  "Z"
@@ -2902,9 +2902,9 @@ const Ns = {
2902
2902
  }), i = m(() => {
2903
2903
  if (!vn.value || !Hl.value) return [];
2904
2904
  const e = In.value, o = Pn.value, t = Wn.value, r = fa.value, h = 15, b = e * 1.3, _ = 0.55, k = (D, ae) => {
2905
- const De = Wt.value + Math.cos(D.midAngle) * Rt.value, at = zt.value + Math.sin(D.midAngle) * Rt.value, ge = Wt.value + Math.cos(D.midAngle) * (Rt.value + o), Ae = zt.value + Math.sin(D.midAngle) * (Rt.value + o), we = ge + t * (ae ? 1 : -1), ut = ae ? ge + h : ge - h, et = Ae - r, ze = `${D.seriesName}: ${Tl(D.value)}`, Oe = ze.length * e * _;
2905
+ const Re = Wt.value + Math.cos(D.midAngle) * Rt.value, at = zt.value + Math.sin(D.midAngle) * Rt.value, ge = Wt.value + Math.cos(D.midAngle) * (Rt.value + o), Ae = zt.value + Math.sin(D.midAngle) * (Rt.value + o), we = ge + t * (ae ? 1 : -1), ut = ae ? ge + h : ge - h, et = Ae - r, ze = `${D.seriesName}: ${Tl(D.value)}`, Oe = ze.length * e * _;
2906
2906
  return {
2907
- pointerStartX: De,
2907
+ pointerStartX: Re,
2908
2908
  pointerStartY: at,
2909
2909
  pointerEndX: ge,
2910
2910
  pointerEndY: Ae,
@@ -2916,21 +2916,21 @@ const Ns = {
2916
2916
  textWidth: Oe,
2917
2917
  textAnchor: ae ? "start" : "end",
2918
2918
  isRightSide: ae,
2919
- pointerLineLength: Math.hypot(ge - De, Ae - at),
2919
+ pointerLineLength: Math.hypot(ge - Re, Ae - at),
2920
2920
  horizontalLineLength: Math.hypot(we - ge, 0)
2921
2921
  };
2922
2922
  }, z = (D, ae) => {
2923
- const De = Math.abs(D.textY - ae.textY) < b, at = D.isRightSide ? D.textX : D.textX - D.textWidth, ge = D.isRightSide ? D.textX + D.textWidth : D.textX, Ae = ae.isRightSide ? ae.textX : ae.textX - ae.textWidth, Pe = ae.isRightSide ? ae.textX + ae.textWidth : ae.textX, we = at < Pe && Ae < ge;
2924
- return De && we;
2923
+ const Re = Math.abs(D.textY - ae.textY) < b, at = D.isRightSide ? D.textX : D.textX - D.textWidth, ge = D.isRightSide ? D.textX + D.textWidth : D.textX, Ae = ae.isRightSide ? ae.textX : ae.textX - ae.textWidth, Pe = ae.isRightSide ? ae.textX + ae.textWidth : ae.textX, we = at < Pe && Ae < ge;
2924
+ return Re && we;
2925
2925
  }, P = l.value.filter((D) => !D.isHidden), q = [];
2926
2926
  for (let D = 0; D < P.length; D++) {
2927
2927
  const ae = P[D];
2928
- let De = Math.cos(ae.midAngle) >= 0;
2928
+ let Re = Math.cos(ae.midAngle) >= 0;
2929
2929
  if (D > 0) {
2930
- const ge = q[D - 1], Ae = k(ae, De);
2931
- z(ge, Ae) && (De = !De);
2930
+ const ge = q[D - 1], Ae = k(ae, Re);
2931
+ z(ge, Ae) && (Re = !Re);
2932
2932
  }
2933
- const at = k(ae, De);
2933
+ const at = k(ae, Re);
2934
2934
  q.push({
2935
2935
  ...at,
2936
2936
  color: ae.color,
@@ -2976,8 +2976,8 @@ const Ns = {
2976
2976
  const _ = 200, k = 120;
2977
2977
  h + _ > Ee.value && (h = o.clientX - r.left - _ - 10), b + k > r.height && (b = o.clientY - r.top - k - 10), h < 0 && (h = 10), b < 0 && (b = 10);
2978
2978
  const z = la.value, P = na.value, q = z.map((D) => {
2979
- const ae = P[D] || D, De = C(D, e);
2980
- return De ? { seriesName: e.seriesName, label: e.label, value: `${ae}: ${De}`, color: e.color } : null;
2979
+ const ae = P[D] || D, Re = C(D, e);
2980
+ return Re ? { seriesName: e.seriesName, label: e.label, value: `${ae}: ${Re}`, color: e.color } : null;
2981
2981
  }).filter(Boolean);
2982
2982
  gt.value = {
2983
2983
  show: !0,
@@ -3036,7 +3036,7 @@ const Ns = {
3036
3036
  const r = t.getBoundingClientRect(), h = sl(e.categoryIndex), b = e.description || e.comment || "";
3037
3037
  let _ = o.clientX - r.left + 15, k = o.clientY - r.top - 10;
3038
3038
  const z = 200, P = b ? 80 : 50;
3039
- _ + z > Ee.value && (_ = o.clientX - r.left - z - 15), k + P > re.value && (k = o.clientY - r.top - P - 10), _ < 0 && (_ = 10), k < 0 && (k = 10), Ft.value = {
3039
+ _ + z > Ee.value && (_ = o.clientX - r.left - z - 15), k + P > ue.value && (k = o.clientY - r.top - P - 10), _ < 0 && (_ = 10), k < 0 && (k = 10), Ft.value = {
3040
3040
  show: !0,
3041
3041
  x: _,
3042
3042
  y: k,
@@ -3081,7 +3081,7 @@ const Ns = {
3081
3081
  return on.value.forEach((t, r) => {
3082
3082
  const h = [], b = [], _ = [], k = Le.value === r, z = Le.value !== null && Le.value !== r, P = tl.value.has(r);
3083
3083
  for (let q = 0; q < o; q++) {
3084
- const D = t.data[q] || 0, De = D / Je.value * Rt.value, at = q * 2 * Math.PI / o - Math.PI / 2, ge = Wt.value + Math.cos(at) * De, Ae = zt.value + Math.sin(at) * De;
3084
+ const D = t.data[q] || 0, Re = D / Je.value * Rt.value, at = q * 2 * Math.PI / o - Math.PI / 2, ge = Wt.value + Math.cos(at) * Re, Ae = zt.value + Math.sin(at) * Re;
3085
3085
  h.push(`${ge},${Ae}`), b.push({ x: ge, y: Ae }), _.push({
3086
3086
  x: ge,
3087
3087
  y: Ae,
@@ -3125,8 +3125,8 @@ const Ns = {
3125
3125
  _.length, Le.value = _[0].seriesIndex;
3126
3126
  const k = e.clientX - t.left + 10, z = e.clientY - t.top - 10, P = _.length > 1 ? 460 : 260, q = 70 + te.value * 20;
3127
3127
  let D = k, ae = z;
3128
- D + P > Ee.value && (D = e.clientX - t.left - P - 10), ae + q > re.value && (ae = e.clientY - t.top - q - 10), D < 0 && (D = 10), ae < 0 && (ae = 10);
3129
- const De = _.map((at) => ({
3128
+ D + P > Ee.value && (D = e.clientX - t.left - P - 10), ae + q > ue.value && (ae = e.clientY - t.top - q - 10), D < 0 && (D = 10), ae < 0 && (ae = 10);
3129
+ const Re = _.map((at) => ({
3130
3130
  seriesName: at.seriesName,
3131
3131
  color: at.color,
3132
3132
  points: at.dataPoints.map((ge) => ({
@@ -3141,7 +3141,7 @@ const Ns = {
3141
3141
  title: "",
3142
3142
  value: "",
3143
3143
  bubbleData: [],
3144
- spiderAreas: De
3144
+ spiderAreas: Re
3145
3145
  };
3146
3146
  } else
3147
3147
  An();
@@ -3213,7 +3213,7 @@ const Ns = {
3213
3213
  return;
3214
3214
  const r = o.target.closest(".dss-custom-chart-container").getBoundingClientRect();
3215
3215
  let h = o.clientX - r.left + 10, b = o.clientY - r.top - 10;
3216
- const _ = 200, k = 120, z = Ee.value, P = re.value;
3216
+ const _ = 200, k = 120, z = Ee.value, P = ue.value;
3217
3217
  h + _ > z && (h = o.clientX - r.left - _ - 10), b + k > P && (b = o.clientY - r.top - k - 10), h < 0 && (h = 10), b < 0 && (b = 10);
3218
3218
  let q;
3219
3219
  typeof e.categoryIndex == "number" ? q = e.categoryIndex : typeof e.dataIndex == "number" ? q = e.dataIndex : e.label && W.categories.includes(e.label) && (q = W.categories.indexOf(e.label));
@@ -3501,7 +3501,7 @@ const Ns = {
3501
3501
  Cl.value && Kt.value ? (u(), c("div", Io, "Bubble size: " + A(Kt.value), 1)) : T("", !0),
3502
3502
  (u(), c("svg", {
3503
3503
  width: Ee.value,
3504
- height: re.value,
3504
+ height: ue.value,
3505
3505
  class: "dss-chart-svg",
3506
3506
  "data-smooth": ye.value,
3507
3507
  "data-animated": Ge.value,
@@ -3509,7 +3509,7 @@ const Ns = {
3509
3509
  ref: F
3510
3510
  }, [
3511
3511
  a("defs", null, [
3512
- a("clipPath", { id: ue.value }, [
3512
+ a("clipPath", { id: re.value }, [
3513
3513
  a("rect", {
3514
3514
  x: 0,
3515
3515
  y: j.value.top,
@@ -4305,8 +4305,8 @@ const Ns = {
4305
4305
  top: "0px",
4306
4306
  left: "0px",
4307
4307
  width: Ee.value + "px",
4308
- height: re.value + "px",
4309
- backgroundImage: `url('${Ul.value}')`,
4308
+ height: ue.value + "px",
4309
+ backgroundImage: `url('${Xl.value}')`,
4310
4310
  backgroundRepeat: "no-repeat",
4311
4311
  ...Dt.value,
4312
4312
  opacity: Xe.value,
@@ -4372,7 +4372,7 @@ const Ns = {
4372
4372
  class: "dss-spider-tooltip-area-indicator",
4373
4373
  style: be({ backgroundColor: t.color })
4374
4374
  }, null, 4),
4375
- Yl(" " + A(t.seriesName), 1)
4375
+ Ul(" " + A(t.seriesName), 1)
4376
4376
  ]),
4377
4377
  (u(!0), c(le, null, Me(t.points, (h, b) => (u(), c("div", {
4378
4378
  key: `spider-tooltip-point-${r}-${b}`,
@@ -4504,7 +4504,7 @@ const Ns = {
4504
4504
  onClick: La
4505
4505
  }, [
4506
4506
  o[9] || (o[9] = a("span", { style: { display: "inline-block", transform: "scaleX(-1)", "font-size": "14px" } }, "⌕", -1)),
4507
- Yl(" " + A(Math.round(ve.value.scale * 100)) + "% " + A(R(V)("chart.zoom.doubleClickToReset")), 1)
4507
+ Ul(" " + A(Math.round(ve.value.scale * 100)) + "% " + A(R(V)("chart.zoom.doubleClickToReset")), 1)
4508
4508
  ])) : T("", !0)
4509
4509
  ], 46, So),
4510
4510
  vt.value && mt.value === "bottom" ? (u(), c("div", {
@@ -4559,7 +4559,7 @@ const Ns = {
4559
4559
  Ie.value.downloadPng ? (u(), c("div", {
4560
4560
  key: 3,
4561
4561
  class: "dss-context-menu-item",
4562
- onClick: Xl
4562
+ onClick: Yl
4563
4563
  }, A(R(V)("chart.contextMenu.downloadPng")), 1)) : T("", !0),
4564
4564
  Ie.value.downloadCsv ? (u(), c("div", {
4565
4565
  key: 4,
@@ -4583,7 +4583,7 @@ const Ns = {
4583
4583
  class: "dss-custom-menu-content"
4584
4584
  }, null, 8, Qr)) : (u(), c(le, { key: 1 }, [
4585
4585
  t.icon ? (u(), c("span", Jr, A(t.icon), 1)) : T("", !0),
4586
- Yl(" " + A(t.label), 1)
4586
+ Ul(" " + A(t.label), 1)
4587
4587
  ], 64))
4588
4588
  ], 14, Gr)
4589
4589
  ], 64))), 128))
@@ -4628,7 +4628,7 @@ const Ns = {
4628
4628
  class: "dss-form-textarea",
4629
4629
  rows: "5"
4630
4630
  }, null, 8, ou)), [
4631
- [_l, Qe.value.description]
4631
+ [Ml, Qe.value.description]
4632
4632
  ])
4633
4633
  ])
4634
4634
  ]),
@@ -4692,10 +4692,10 @@ const Ns = {
4692
4692
  emits: ["close-modal"],
4693
4693
  setup(B, { emit: fe }) {
4694
4694
  const V = B, I = fe, me = S(null), U = S(null), F = m(() => {
4695
- const ue = {
4695
+ const re = {
4696
4696
  "max-width": V.width
4697
4697
  };
4698
- return V.height !== "auto" && (ue.height = V.height, ue["min-height"] = "0"), ue;
4698
+ return V.height !== "auto" && (re.height = V.height, re["min-height"] = "0"), re;
4699
4699
  }), ee = m(() => ({}));
4700
4700
  function dt() {
4701
4701
  I("close-modal");
@@ -4703,8 +4703,8 @@ const Ns = {
4703
4703
  function Se() {
4704
4704
  V.backDrop && !me.value && I("close-modal");
4705
4705
  }
4706
- function g(ue) {
4707
- ue.target.tagName === "INPUT" && (me.value = ue.target.tagName);
4706
+ function g(re) {
4707
+ re.target.tagName === "INPUT" && (me.value = re.target.tagName);
4708
4708
  }
4709
4709
  function Te() {
4710
4710
  setTimeout(() => {
@@ -4712,25 +4712,25 @@ const Ns = {
4712
4712
  }, 300);
4713
4713
  }
4714
4714
  function $e() {
4715
- const ue = document.body, xe = document.documentElement;
4715
+ const re = document.body, xe = document.documentElement;
4716
4716
  U.value = {
4717
- bodyOverflow: ue.style.overflow,
4718
- bodyPosition: ue.style.position,
4719
- bodyTop: ue.style.top,
4720
- bodyWidth: ue.style.width,
4717
+ bodyOverflow: re.style.overflow,
4718
+ bodyPosition: re.style.position,
4719
+ bodyTop: re.style.top,
4720
+ bodyWidth: re.style.width,
4721
4721
  htmlOverflow: xe.style.overflow,
4722
4722
  scrollY: window.scrollY
4723
- }, ue.style.overflow = "hidden", ue.style.position = "fixed", ue.style.top = `-${U.value.scrollY}px`, ue.style.width = "100%", ue.style.left = "0", xe.style.overflow = "hidden";
4723
+ }, re.style.overflow = "hidden", re.style.position = "fixed", re.style.top = `-${U.value.scrollY}px`, re.style.width = "100%", re.style.left = "0", xe.style.overflow = "hidden";
4724
4724
  }
4725
4725
  function pe() {
4726
4726
  if (!U.value) return;
4727
- const ue = document.body, xe = document.documentElement, { bodyOverflow: W, bodyPosition: he, bodyTop: We, bodyWidth: tt, htmlOverflow: yt, scrollY: Z } = U.value;
4728
- ue.style.overflow = W || "", ue.style.position = he || "", ue.style.top = We || "", ue.style.width = tt || "", ue.style.left = "", xe.style.overflow = yt || "", window.scrollTo(0, Z || 0);
4727
+ const re = document.body, xe = document.documentElement, { bodyOverflow: W, bodyPosition: he, bodyTop: We, bodyWidth: tt, htmlOverflow: yt, scrollY: Z } = U.value;
4728
+ re.style.overflow = W || "", re.style.position = he || "", re.style.top = We || "", re.style.width = tt || "", re.style.left = "", xe.style.overflow = yt || "", window.scrollTo(0, Z || 0);
4729
4729
  }
4730
4730
  return It(
4731
4731
  () => V.showModal,
4732
- (ue) => {
4733
- if (ue)
4732
+ (re) => {
4733
+ if (re)
4734
4734
  $e(), document.body.classList.add("dss-modal-open"), setTimeout(() => {
4735
4735
  const xe = document.getElementById("dss-modal-backdrop");
4736
4736
  xe && (xe.addEventListener("focusin", g), xe.addEventListener("focusout", Te));
@@ -4744,7 +4744,7 @@ const Ns = {
4744
4744
  { immediate: !0 }
4745
4745
  ), es(() => {
4746
4746
  V.showModal && pe();
4747
- }), (ue, xe) => (u(), Jn(ea, { to: "body" }, [
4747
+ }), (re, xe) => (u(), Jn(ea, { to: "body" }, [
4748
4748
  B.showModal ? (u(), c("div", {
4749
4749
  key: 0,
4750
4750
  class: "dss-modal-backdrop",
@@ -4765,11 +4765,11 @@ const Ns = {
4765
4765
  style: be({ "justify-content": B.headerType, "font-size": B.titleSize })
4766
4766
  }, [
4767
4767
  a("h1", vu, [
4768
- Ml(ue.$slots, "title", {}, () => [
4769
- xe[1] || (xe[1] = Yl("Default Title", -1))
4768
+ xl(re.$slots, "title", {}, () => [
4769
+ xe[1] || (xe[1] = Ul("Default Title", -1))
4770
4770
  ])
4771
4771
  ]),
4772
- Ml(ue.$slots, "title-data"),
4772
+ xl(re.$slots, "title-data"),
4773
4773
  B.showCloseBtn ? (u(), c("span", {
4774
4774
  key: 0,
4775
4775
  class: "dss-modal-close",
@@ -4781,12 +4781,12 @@ const Ns = {
4781
4781
  class: "dss-modal-body",
4782
4782
  style: be(ee.value)
4783
4783
  }, [
4784
- Ml(ue.$slots, "content", {}, () => [
4785
- xe[2] || (xe[2] = Yl("Default Content", -1))
4784
+ xl(re.$slots, "content", {}, () => [
4785
+ xe[2] || (xe[2] = Ul("Default Content", -1))
4786
4786
  ])
4787
4787
  ], 4),
4788
4788
  a("div", fu, [
4789
- Ml(ue.$slots, "actions")
4789
+ xl(re.$slots, "actions")
4790
4790
  ])
4791
4791
  ])
4792
4792
  ], 4), [
@@ -4962,10 +4962,10 @@ const Ns = {
4962
4962
  const Se = m(() => ee(F, me.options)), g = m(() => {
4963
4963
  const x = Se.value.table.width;
4964
4964
  return x === "auto" ? null : typeof x == "number" ? x : null;
4965
- }), Te = m(() => Se.value.table.height), $e = m(() => Se.value.table.rowHeight ?? "auto"), pe = m(() => ({ height: $e.value })), ue = m(() => Se.value.table.expandable === !0), xe = m(() => Se.value.table.expandableRowData ?? null), W = m(() => Se.value.table.expandableRowCondition ?? null), he = m(() => Se.value.table.truncated === !0), We = m(() => Se.value.table.striped), tt = m(() => Se.value.table.bordered), yt = m(() => Se.value.table.hoverable), Z = m(() => Se.value.table.size), lt = m(() => Se.value.table.align || "left");
4965
+ }), Te = m(() => Se.value.table.height), $e = m(() => Se.value.table.rowHeight ?? "auto"), pe = m(() => ({ height: $e.value })), re = m(() => Se.value.table.expandable === !0), xe = m(() => Se.value.table.expandableRowData ?? null), W = m(() => Se.value.table.expandableRowCondition ?? null), he = m(() => Se.value.table.truncated === !0), We = m(() => Se.value.table.striped), tt = m(() => Se.value.table.bordered), yt = m(() => Se.value.table.hoverable), Z = m(() => Se.value.table.size), lt = m(() => Se.value.table.align || "left");
4966
4966
  m(() => Se.value.title.text), m(() => Se.value.subtitle.text);
4967
- const Fe = m(() => Se.value.selection.enabled), Ee = m(() => Se.value.selection.mode), St = m(() => Se.value.sorting.enabled), Re = m(() => Se.value.sorting.mode), re = m(() => Se.value.pagination.enabled), nt = m(() => Se.value.pagination.rows), je = m(() => Se.value.pagination.rowsPerPageOptions), il = m(() => Se.value.pagination.showCounter !== !1), Ct = m(() => Se.value.pagination.showControlsGroup), Pt = m(() => Ct.value === !1 ? !1 : Se.value.pagination.showControls !== !1), Kt = m(() => Ct.value === !1 ? !1 : Se.value.pagination.showRowsPerPage !== !1), hl = m(
4968
- () => re.value && (il.value || Pt.value || Kt.value)
4967
+ const Fe = m(() => Se.value.selection.enabled), Ee = m(() => Se.value.selection.mode), St = m(() => Se.value.sorting.enabled), De = m(() => Se.value.sorting.mode), ue = m(() => Se.value.pagination.enabled), nt = m(() => Se.value.pagination.rows), je = m(() => Se.value.pagination.rowsPerPageOptions), il = m(() => Se.value.pagination.showCounter !== !1), Ct = m(() => Se.value.pagination.showControlsGroup), Pt = m(() => Ct.value === !1 ? !1 : Se.value.pagination.showControls !== !1), Kt = m(() => Ct.value === !1 ? !1 : Se.value.pagination.showRowsPerPage !== !1), hl = m(
4968
+ () => ue.value && (il.value || Pt.value || Kt.value)
4969
4969
  ), Jt = m(() => Se.value.scrollable), bt = m(() => Se.value.emptyMessage || V("table.emptyMessage")), Bt = m(() => Se.value.toolbar?.downloads?.pdf !== !1), gl = m(() => Se.value.toolbar?.downloads?.excel !== !1), el = m(() => Se.value.toolbar?.search !== !1), vl = m(() => Bt.value || gl.value || el.value || vt.value), vt = m(() => Se.value.toolbar?.columnVisibility !== !1), mt = S(""), qt = S(!1), rl = S(null);
4970
4970
  let ce = null;
4971
4971
  function Ze() {
@@ -5006,8 +5006,8 @@ const Ns = {
5006
5006
  function xt(x) {
5007
5007
  ye.value && !ye.value.contains(x.target) && (Ke.value = !1);
5008
5008
  }
5009
- const Vt = m(() => Ue.value.length + (Fe.value ? 1 : 0) + (ue.value ? 1 : 0)), Ge = (x, w) => x?.id ?? x?.key ?? w, Tt = S(/* @__PURE__ */ new Set()), Qt = S(null), fl = (x, w) => Tt.value.has(Ge(x, w)), nl = (x, w) => {
5010
- if (!ue.value) return !1;
5009
+ const Vt = m(() => Ue.value.length + (Fe.value ? 1 : 0) + (re.value ? 1 : 0)), Ge = (x, w) => x?.id ?? x?.key ?? w, Tt = S(/* @__PURE__ */ new Set()), Qt = S(null), fl = (x, w) => Tt.value.has(Ge(x, w)), nl = (x, w) => {
5010
+ if (!re.value) return !1;
5011
5011
  if (typeof W.value == "function")
5012
5012
  return !!W.value(x, w);
5013
5013
  if (typeof xe.value == "string" && xe.value.trim()) {
@@ -5024,7 +5024,7 @@ const Ns = {
5024
5024
  const $ = Ge(x, w);
5025
5025
  Qt.value !== $ && (Qt.value = $);
5026
5026
  }, M = S(null), L = S(0), ne = S([]), oe = (x) => {
5027
- if (Re.value === "single")
5027
+ if (De.value === "single")
5028
5028
  return M.value === x.field ? L.value : 0;
5029
5029
  {
5030
5030
  const w = ne.value.find(($) => $.field === x.field);
@@ -5041,7 +5041,7 @@ const Ns = {
5041
5041
  () => Ue.value.find((x) => K(x) === Ne.value) ?? null
5042
5042
  ), pt = m(() => {
5043
5043
  if (!ft.value || ft.value.filter !== "range") return null;
5044
- const x = ft.value, w = Ne.value, { min: $, max: G } = Ul(x), ke = x.filterMin ?? $, Ot = x.filterMax ?? G, Mt = Q(w), pl = Mt.min ?? ke, yl = Mt.max ?? Ot, xl = Ot - ke, bl = xl === 0 ? 0 : (pl - ke) / xl * 100, hn = xl === 0 ? 100 : (yl - ke) / xl * 100;
5044
+ const x = ft.value, w = Ne.value, { min: $, max: G } = Xl(x), ke = x.filterMin ?? $, Ot = x.filterMax ?? G, Mt = Q(w), pl = Mt.min ?? ke, yl = Mt.max ?? Ot, kl = Ot - ke, bl = kl === 0 ? 0 : (pl - ke) / kl * 100, hn = kl === 0 ? 100 : (yl - ke) / kl * 100;
5045
5045
  return { rangeMin: ke, rangeMax: Ot, currentMin: pl, currentMax: yl, minPct: bl, maxPct: hn };
5046
5046
  }), Zt = S(null), Tl = S("max");
5047
5047
  function X(x) {
@@ -5110,12 +5110,12 @@ const Ns = {
5110
5110
  else if (ke.type === "dateRange") {
5111
5111
  const Mt = ke.from ? new Date(ke.from).getTime() : null, pl = ke.to ? new Date(ke.to).getTime() : null;
5112
5112
  x = x.filter((yl) => {
5113
- const xl = sl(yl, Ot), bl = xl ? new Date(xl).getTime() : NaN;
5113
+ const kl = sl(yl, Ot), bl = kl ? new Date(kl).getTime() : NaN;
5114
5114
  return !(Number.isNaN(bl) || Mt != null && bl < Mt || pl != null && bl > pl);
5115
5115
  });
5116
5116
  } else if (ke.type === "list" && ke.selected?.length) {
5117
5117
  const Mt = new Set(ke.selected);
5118
- x = x.filter((pl) => Dt(wn(pl, $)).some((xl) => Mt.has(xl)));
5118
+ x = x.filter((pl) => Dt(wn(pl, $)).some((kl) => Mt.has(kl)));
5119
5119
  }
5120
5120
  }
5121
5121
  }), x;
@@ -5152,7 +5152,7 @@ const Ns = {
5152
5152
  function dn(x, w) {
5153
5153
  Y(x, { type: "string", value: w });
5154
5154
  }
5155
- function Ul(x) {
5155
+ function Xl(x) {
5156
5156
  const w = x.field;
5157
5157
  if (!w) return { min: 0, max: 100 };
5158
5158
  let $ = 1 / 0, G = -1 / 0;
@@ -5192,7 +5192,7 @@ const Ns = {
5192
5192
  }
5193
5193
  const ln = (x) => {
5194
5194
  if (!(x.sortable === !1 || !St.value))
5195
- if (Re.value === "single")
5195
+ if (De.value === "single")
5196
5196
  M.value === x.field ? L.value = L.value === 1 ? -1 : L.value === -1 ? 0 : 1 : (M.value = x.field, L.value = 1), L.value === 0 && (M.value = null), U("sort", { field: M.value, order: L.value });
5197
5197
  else {
5198
5198
  const w = ne.value.findIndex(($) => $.field === x.field);
@@ -5201,10 +5201,10 @@ const Ns = {
5201
5201
  }, fn = m(() => {
5202
5202
  if (!St.value) return rt.value;
5203
5203
  let x = [...rt.value];
5204
- return Re.value === "single" && M.value && L.value !== 0 ? x.sort((w, $) => {
5204
+ return De.value === "single" && M.value && L.value !== 0 ? x.sort((w, $) => {
5205
5205
  const G = sl(w, M.value), ke = sl($, M.value);
5206
5206
  return G === ke ? 0 : G == null ? 1 : ke == null ? -1 : (G < ke ? -1 : G > ke ? 1 : 0) * L.value;
5207
- }) : Re.value === "multiple" && ne.value.length > 0 && x.sort((w, $) => {
5207
+ }) : De.value === "multiple" && ne.value.length > 0 && x.sort((w, $) => {
5208
5208
  for (const G of ne.value) {
5209
5209
  const ke = sl(w, G.field), Ot = sl($, G.field);
5210
5210
  if (ke === Ot) continue;
@@ -5232,8 +5232,8 @@ const Ns = {
5232
5232
  left: `${Math.max(0, Math.round(w.offsetLeft))}px`
5233
5233
  };
5234
5234
  }
5235
- const gt = m(() => fn.value.length), Ft = m(() => Math.ceil(gt.value / Wl.value)), He = m(() => Math.max(Ft.value, 1)), Ht = m(() => gt.value === 0 ? 0 : ht.value + 1), ve = m(() => Qe.value), ht = m(() => re.value ? Pl.value * Wl.value : 0), Qe = m(() => re.value ? Math.min((Pl.value + 1) * Wl.value, gt.value) : gt.value), aa = m(() => {
5236
- if (!re.value) return fn.value;
5235
+ const gt = m(() => fn.value.length), Ft = m(() => Math.ceil(gt.value / Wl.value)), He = m(() => Math.max(Ft.value, 1)), Ht = m(() => gt.value === 0 ? 0 : ht.value + 1), ve = m(() => Qe.value), ht = m(() => ue.value ? Pl.value * Wl.value : 0), Qe = m(() => ue.value ? Math.min((Pl.value + 1) * Wl.value, gt.value) : gt.value), aa = m(() => {
5236
+ if (!ue.value) return fn.value;
5237
5237
  const x = ht.value, w = Qe.value;
5238
5238
  return fn.value.slice(x, w);
5239
5239
  }), an = S(/* @__PURE__ */ new Set()), pn = m(
@@ -5323,7 +5323,7 @@ const Ns = {
5323
5323
  onClick: w[0] || (w[0] = ($) => U("download-pdf"))
5324
5324
  }, [
5325
5325
  w[22] || (w[22] = Cs('<span class="dss-table-toolbar-btn-icon" aria-hidden="true"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_download)"><path d="M16.59 9H15V4C15 3.45 14.55 3 14 3H10C9.45 3 9 3.45 9 4V9H7.41C6.52 9 6.07 10.08 6.7 10.71L11.29 15.3C11.68 15.69 12.31 15.69 12.7 15.3L17.29 10.71C17.92 10.08 17.48 9 16.59 9ZM5 19C5 19.55 5.45 20 6 20H18C18.55 20 19 19.55 19 19C19 18.45 18.55 18 18 18H6C5.45 18 5 18.45 5 19Z" fill="currentColor"></path></g><defs><clipPath id="clip0_download"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg></span>', 1)),
5326
- Yl(" " + A(R(V)("table.downloadPdf")), 1)
5326
+ Ul(" " + A(R(V)("table.downloadPdf")), 1)
5327
5327
  ])) : T("", !0),
5328
5328
  gl.value ? (u(), c("button", {
5329
5329
  key: 1,
@@ -5332,7 +5332,7 @@ const Ns = {
5332
5332
  onClick: w[1] || (w[1] = ($) => U("download-excel"))
5333
5333
  }, [
5334
5334
  w[23] || (w[23] = Cs('<span class="dss-table-toolbar-btn-icon" aria-hidden="true"><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_download_excel)"><path d="M16.59 9H15V4C15 3.45 14.55 3 14 3H10C9.45 3 9 3.45 9 4V9H7.41C6.52 9 6.07 10.08 6.7 10.71L11.29 15.3C11.68 15.69 12.31 15.69 12.7 15.3L17.29 10.71C17.92 10.08 17.48 9 16.59 9ZM5 19C5 19.55 5.45 20 6 20H18C18.55 20 19 19.55 19 19C19 18.45 18.55 18 18 18H6C5.45 18 5 18.45 5 19Z" fill="currentColor"></path></g><defs><clipPath id="clip0_download_excel"><rect width="24" height="24" fill="white"></rect></clipPath></defs></svg></span>', 1)),
5335
- Yl(" " + A(R(V)("table.downloadExcel")), 1)
5335
+ Ul(" " + A(R(V)("table.downloadExcel")), 1)
5336
5336
  ])) : T("", !0),
5337
5337
  vt.value ? (u(), c("div", {
5338
5338
  key: 2,
@@ -5347,7 +5347,7 @@ const Ns = {
5347
5347
  "aria-expanded": Ke.value,
5348
5348
  "aria-haspopup": "listbox"
5349
5349
  }, [
5350
- Yl(A(R(V)("table.columnVisibility")) + " ", 1),
5350
+ Ul(A(R(V)("table.columnVisibility")) + " ", 1),
5351
5351
  w[24] || (w[24] = a("span", {
5352
5352
  class: "dss-pagination-select-chevron",
5353
5353
  "aria-hidden": "true"
@@ -5414,7 +5414,7 @@ const Ns = {
5414
5414
  onFocus: w[5] || (w[5] = ($) => qt.value = !0),
5415
5415
  onBlur: Be
5416
5416
  }, null, 40, _u), [
5417
- [_l, mt.value]
5417
+ [Ml, mt.value]
5418
5418
  ]),
5419
5419
  mt.value ? (u(), c("button", {
5420
5420
  key: 0,
@@ -5452,7 +5452,7 @@ const Ns = {
5452
5452
  ])], 40, Su)
5453
5453
  ], 2)) : T("", !0),
5454
5454
  x.$slots["toolbar-extra"] ? (u(), c("div", $u, [
5455
- Ml(x.$slots, "toolbar-extra")
5455
+ xl(x.$slots, "toolbar-extra")
5456
5456
  ])) : T("", !0)
5457
5457
  ])
5458
5458
  ])) : T("", !0),
@@ -5490,7 +5490,7 @@ const Ns = {
5490
5490
  ])])) : T("", !0)
5491
5491
  ])) : T("", !0)
5492
5492
  ])) : T("", !0),
5493
- ue.value ? (u(), c("th", {
5493
+ re.value ? (u(), c("th", {
5494
5494
  key: 1,
5495
5495
  class: "dss-table-th dss-table-expansion-column",
5496
5496
  "aria-label": R(V)("table.expandRowAriaLabel")
@@ -5628,7 +5628,7 @@ const Ns = {
5628
5628
  ])])) : Ee.value === "single" && En($, ht.value + G) ? (u(), c("span", Xu)) : T("", !0)
5629
5629
  ])
5630
5630
  ])) : T("", !0),
5631
- ue.value ? (u(), c("td", {
5631
+ re.value ? (u(), c("td", {
5632
5632
  key: 1,
5633
5633
  class: "dss-table-td dss-table-expansion-cell",
5634
5634
  onClick: qe((ke) => Yt($, ht.value + G, ke), ["stop"])
@@ -5662,22 +5662,22 @@ const Ns = {
5662
5662
  class: se(["dss-table-td", sa(ke)]),
5663
5663
  style: be(oa(ke))
5664
5664
  }, [
5665
- Ml(x.$slots, `cell-${ke.field}`, {
5665
+ xl(x.$slots, `cell-${ke.field}`, {
5666
5666
  data: $,
5667
5667
  column: ke,
5668
5668
  rowIndex: G,
5669
5669
  isExpanded: Qt.value === Ge($, ht.value + G)
5670
5670
  }, () => [
5671
- Yl(A(wn($, ke)), 1)
5671
+ Ul(A(wn($, ke)), 1)
5672
5672
  ])
5673
5673
  ], 6))), 128))
5674
5674
  ], 14, Wu),
5675
- ue.value && nl($, ht.value + G) && fl($, ht.value + G) ? (u(), c("tr", Gu, [
5675
+ re.value && nl($, ht.value + G) && fl($, ht.value + G) ? (u(), c("tr", Gu, [
5676
5676
  a("td", {
5677
5677
  colspan: Vt.value,
5678
5678
  class: "dss-table-expansion-content-cell"
5679
5679
  }, [
5680
- Ml(x.$slots, "expansion", {
5680
+ xl(x.$slots, "expansion", {
5681
5681
  data: $,
5682
5682
  rowIndex: G
5683
5683
  })
@@ -5693,8 +5693,8 @@ const Ns = {
5693
5693
  colspan: Vt.value,
5694
5694
  class: "dss-table-empty-cell"
5695
5695
  }, [
5696
- Ml(x.$slots, "empty", {}, () => [
5697
- Yl(A(bt.value), 1)
5696
+ xl(x.$slots, "empty", {}, () => [
5697
+ Ul(A(bt.value), 1)
5698
5698
  ])
5699
5699
  ], 8, Ju)
5700
5700
  ], 4))
@@ -5732,7 +5732,7 @@ const Ns = {
5732
5732
  onBlur: ll,
5733
5733
  onKeydown: tn(qe(ll, ["prevent"]), ["enter"])
5734
5734
  }, null, 40, rc), [
5735
- [_l, Cn.value]
5735
+ [Ml, Cn.value]
5736
5736
  ]),
5737
5737
  a("span", uc, A(R(V)("table.ofPages", { total: He.value })), 1),
5738
5738
  a("button", {
@@ -5771,7 +5771,7 @@ const Ns = {
5771
5771
  ref_key: "rowsPerPageTriggerRef",
5772
5772
  ref: la
5773
5773
  }, [
5774
- Yl(A(Wl.value) + " ", 1),
5774
+ Ul(A(Wl.value) + " ", 1),
5775
5775
  w[37] || (w[37] = a("span", {
5776
5776
  class: "dss-pagination-select-chevron",
5777
5777
  "aria-hidden": "true"
@@ -6141,7 +6141,7 @@ const Ns = {
6141
6141
  h6: Pc
6142
6142
  }, F = B, ee = V, dt = _s(), Se = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6143
6143
  <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"/>
6144
- </svg>`, g = S(null), Te = S(null), $e = S(!1), pe = S(!1), ue = S(!1), xe = S(""), W = S({}), he = S(!1), We = S(!1), tt = S(""), yt = S(""), Z = S(null), lt = S(null), Fe = S(null), Ee = S(null), St = S(""), Re = S(!1), re = S({}), nt = S(!1), je = S({}), il = S(null), Ct = S(null), Pt = S(!1), Kt = S(""), hl = S(null), Jt = S(""), bt = S(""), Bt = S(""), gl = S(null), el = S(null), vl = S(null), vt = S(null), mt = S(null), qt = S(!1), rl = S(""), ce = S({}), Ze = S(!1), Be = S("upload"), ot = S(""), wt = S(null), it = S(null), ct = S([]), $t = S([]), Ue = S(null), K = S(!1), J = S(""), ie = S(""), ye = S(""), Ke = S(""), xt = S(""), Vt = S(""), Ge = S(null), Tt = S(null), Qt = S(null), fl = S(!1), nl = S(null), Yt = S(!1), H = S(!1), M = S(null), L = S("p"), ne = S(!1), oe = S([]), st = S(null), At = S(null), Ne = S(null), Ie = S(!1), Ut = S(0), Xt = 100, ft = S(null), pt = m(() => ({
6144
+ </svg>`, g = S(null), Te = S(null), $e = S(!1), pe = S(!1), re = S(!1), xe = S(""), W = S({}), he = S(!1), We = S(!1), tt = S(""), yt = S(""), Z = S(null), lt = S(null), Fe = S(null), Ee = S(null), St = S(""), De = S(!1), ue = S({}), nt = S(!1), je = S({}), il = S(null), Ct = S(null), Pt = S(!1), Kt = S(""), hl = S(null), Jt = S(""), bt = S(""), Bt = S(""), gl = S(null), el = S(null), vl = S(null), vt = S(null), mt = S(null), qt = S(!1), rl = S(""), ce = S({}), Ze = S(!1), Be = S("upload"), ot = S(""), wt = S(null), it = S(null), ct = S([]), $t = S([]), Ue = S(null), K = S(!1), J = S(""), ie = S(""), ye = S(""), Ke = S(""), xt = S(""), Vt = S(""), Ge = S(null), Tt = S(null), Qt = S(null), fl = S(!1), nl = S(null), Yt = S(!1), H = S(!1), M = S(null), L = S("p"), ne = S(!1), oe = S([]), st = S(null), At = S(null), Ne = S(null), Ie = S(!1), Ut = S(0), Xt = 100, ft = S(null), pt = m(() => ({
6145
6145
  "dss-text-editor-no-border": !F.border,
6146
6146
  "dss-text-editor-rounded": F.rounded,
6147
6147
  "dss-text-editor-full-height": F.fullHeight,
@@ -6171,11 +6171,11 @@ const Ns = {
6171
6171
  }, dn = (n) => {
6172
6172
  for (let l = n + 1; l < F.customToolbarSlots.length; l++) {
6173
6173
  const s = F.customToolbarSlots[l];
6174
- if (al(s) && Ul(s))
6174
+ if (al(s) && Xl(s))
6175
6175
  return !0;
6176
6176
  }
6177
6177
  return !1;
6178
- }, Ul = (n) => F.customToolbarFloatingMap.hasOwnProperty(n) ? F.customToolbarFloatingMap[n] === !0 : !0, vn = m(() => F.customToolbarSlots.some((n) => al(n) && Ul(n))), In = m(() => al("title-slot")), Pn = m(() => al("description-slot")), Wn = (n) => {
6178
+ }, Xl = (n) => F.customToolbarFloatingMap.hasOwnProperty(n) ? F.customToolbarFloatingMap[n] === !0 : !0, vn = m(() => F.customToolbarSlots.some((n) => al(n) && Xl(n))), In = m(() => al("title-slot")), Pn = m(() => al("description-slot")), Wn = (n) => {
6179
6179
  if (!n || n.trim() === "")
6180
6180
  return "<html></html>";
6181
6181
  const l = n.trim();
@@ -6373,7 +6373,7 @@ const Ns = {
6373
6373
  if (f.forEach((C) => {
6374
6374
  try {
6375
6375
  if (y && M.value?.command === C) {
6376
- re.value[C] = M.value.state;
6376
+ ue.value[C] = M.value.state;
6377
6377
  return;
6378
6378
  }
6379
6379
  if (C === "bold")
@@ -6386,20 +6386,20 @@ const Ns = {
6386
6386
  parseInt(de.fontWeight) >= 600 && (E = !0);
6387
6387
  } catch {
6388
6388
  }
6389
- re.value[C] = E;
6389
+ ue.value[C] = E;
6390
6390
  } else
6391
- re.value.hasOwnProperty(C) || (re.value[C] = !1);
6391
+ ue.value.hasOwnProperty(C) || (ue.value[C] = !1);
6392
6392
  else if (C === "italic")
6393
6393
  if (p) {
6394
6394
  const N = p.commonAncestorContainer, O = N.nodeType === 3 ? N.parentElement : N, E = O && (O.tagName === "EM" || O.tagName === "I" || O.closest && O.closest("em, i"));
6395
- re.value[C] = !!E;
6395
+ ue.value[C] = !!E;
6396
6396
  } else {
6397
6397
  const N = document.queryCommandState(C);
6398
- re.value[C] = N;
6398
+ ue.value[C] = N;
6399
6399
  }
6400
6400
  else {
6401
6401
  const N = document.queryCommandState(C);
6402
- re.value[C] = N;
6402
+ ue.value[C] = N;
6403
6403
  }
6404
6404
  } catch {
6405
6405
  }
@@ -6847,24 +6847,24 @@ const Ns = {
6847
6847
  }
6848
6848
  if (n === "bold") {
6849
6849
  const f = En();
6850
- re.value.bold = f;
6850
+ ue.value.bold = f;
6851
6851
  const v = window.getSelection();
6852
6852
  v.rangeCount > 0 && v.getRangeAt(0).collapsed && (M.value = { command: "bold", state: f }), _e(() => {
6853
6853
  i && (Ol(i), _e(() => {
6854
6854
  const p = Bl("bold");
6855
- re.value.bold = p;
6855
+ ue.value.bold = p;
6856
6856
  })), He(), sl(), ul();
6857
6857
  });
6858
6858
  return;
6859
6859
  }
6860
6860
  if (n === "italic") {
6861
6861
  const f = Xn();
6862
- re.value.italic = f;
6862
+ ue.value.italic = f;
6863
6863
  const v = window.getSelection();
6864
6864
  v.rangeCount > 0 && v.getRangeAt(0).collapsed && (M.value = { command: "italic", state: f }), _e(() => {
6865
6865
  i && (Ol(i), _e(() => {
6866
6866
  const p = Bl("italic");
6867
- re.value.italic = p;
6867
+ ue.value.italic = p;
6868
6868
  })), He(), Il(), sl(), ul();
6869
6869
  });
6870
6870
  return;
@@ -6880,24 +6880,24 @@ const Ns = {
6880
6880
  if (n === "bold")
6881
6881
  i && _e(() => {
6882
6882
  const v = Bl("bold");
6883
- re.value.bold = v;
6883
+ ue.value.bold = v;
6884
6884
  });
6885
6885
  else if (n === "italic")
6886
6886
  if (i)
6887
6887
  _e(() => {
6888
6888
  const v = Bl("italic");
6889
- re.value.italic = v;
6889
+ ue.value.italic = v;
6890
6890
  });
6891
6891
  else {
6892
6892
  const v = document.queryCommandState(n);
6893
- re.value[n] = v;
6893
+ ue.value[n] = v;
6894
6894
  }
6895
6895
  else {
6896
6896
  const v = document.queryCommandState(n);
6897
- re.value[n] = v;
6897
+ ue.value[n] = v;
6898
6898
  }
6899
6899
  } catch {
6900
- re.value.hasOwnProperty(n) ? re.value[n] = !re.value[n] : re.value[n] = !0;
6900
+ ue.value.hasOwnProperty(n) ? ue.value[n] = !ue.value[n] : ue.value[n] = !0;
6901
6901
  }
6902
6902
  if (n === "createLink" && l) {
6903
6903
  const v = window.getSelection();
@@ -6945,7 +6945,7 @@ const Ns = {
6945
6945
  parseInt(C.fontWeight) >= 600 && (v = !0);
6946
6946
  } catch {
6947
6947
  }
6948
- return re.value.hasOwnProperty(n) ? re.value[n] : (re.value[n] = v, v);
6948
+ return ue.value.hasOwnProperty(n) ? ue.value[n] : (ue.value[n] = v, v);
6949
6949
  } else {
6950
6950
  const p = d.commonAncestorContainer.nodeType === 1 ? d.commonAncestorContainer : d.commonAncestorContainer.parentNode;
6951
6951
  let y = !1;
@@ -6988,7 +6988,7 @@ const Ns = {
6988
6988
  if (v) break;
6989
6989
  }
6990
6990
  }
6991
- return re.value[n] = v && y, v && y;
6991
+ return ue.value[n] = v && y, v && y;
6992
6992
  }
6993
6993
  }
6994
6994
  if (n === "italic") {
@@ -7000,7 +7000,7 @@ const Ns = {
7000
7000
  window.getComputedStyle(y).fontStyle === "italic" && (v = !0);
7001
7001
  } catch {
7002
7002
  }
7003
- return re.value.hasOwnProperty(n) ? re.value[n] : (re.value[n] = v, v);
7003
+ return ue.value.hasOwnProperty(n) ? ue.value[n] : (ue.value[n] = v, v);
7004
7004
  } else {
7005
7005
  const p = d.commonAncestorContainer.nodeType === 1 ? d.commonAncestorContainer : d.commonAncestorContainer.parentNode;
7006
7006
  let y = !1;
@@ -7043,15 +7043,15 @@ const Ns = {
7043
7043
  if (v) break;
7044
7044
  }
7045
7045
  }
7046
- return re.value[n] = v && y, v && y;
7046
+ return ue.value[n] = v && y, v && y;
7047
7047
  }
7048
7048
  }
7049
7049
  const f = document.queryCommandState(n);
7050
- return d.collapsed && re.value.hasOwnProperty(n) ? re.value[n] : (re.value[n] = f, f);
7050
+ return d.collapsed && ue.value.hasOwnProperty(n) ? ue.value[n] : (ue.value[n] = f, f);
7051
7051
  }
7052
- return re.value.hasOwnProperty(n) ? re.value[n] : !1;
7052
+ return ue.value.hasOwnProperty(n) ? ue.value[n] : !1;
7053
7053
  } catch {
7054
- return re.value.hasOwnProperty(n) ? re.value[n] : !1;
7054
+ return ue.value.hasOwnProperty(n) ? ue.value[n] : !1;
7055
7055
  }
7056
7056
  try {
7057
7057
  return document.queryCommandState(n);
@@ -7336,18 +7336,18 @@ const Ns = {
7336
7336
  document.execCommand("outdent", !1), _e(() => {
7337
7337
  G(), He(), ul();
7338
7338
  });
7339
- }, Mt = S(null), pl = S(null), yl = S({}), xl = S(""), bl = S(null), hn = S("");
7339
+ }, Mt = S(null), pl = S(null), yl = S({}), kl = S(""), bl = S(null), hn = S("");
7340
7340
  S("");
7341
7341
  const Ln = S(null);
7342
7342
  S("");
7343
- const Xl = S([]), $a = S(!1), ia = S(!1), ts = (n) => {
7343
+ const Yl = S([]), $a = S(!1), ia = S(!1), ts = (n) => {
7344
7344
  if (!n) return "";
7345
7345
  const l = n.cloneRange(), s = document.createElement("div");
7346
7346
  return s.appendChild(l.cloneContents()), s.innerHTML;
7347
7347
  }, Ia = () => {
7348
7348
  if (F.disabled || !F.richText || !g.value) return;
7349
7349
  if (Mt.value !== null) {
7350
- Mt.value = null, xl.value = "", hn.value = "", Ln.value = null, Xl.value = [], zn(!0);
7350
+ Mt.value = null, kl.value = "", hn.value = "", Ln.value = null, Yl.value = [], zn(!0);
7351
7351
  return;
7352
7352
  }
7353
7353
  ll(), g.value.focus();
@@ -7363,7 +7363,7 @@ const Ns = {
7363
7363
  top: `${p}px`,
7364
7364
  bottom: "auto"
7365
7365
  }, Mt.value = Date.now(), _e(() => {
7366
- if (xl.value = "", bl.value) {
7366
+ if (kl.value = "", bl.value) {
7367
7367
  const C = bl.value;
7368
7368
  C.style.height = "auto", C.style.height = `${C.scrollHeight}px`, C.focus();
7369
7369
  }
@@ -7387,9 +7387,9 @@ const Ns = {
7387
7387
  }
7388
7388
  });
7389
7389
  }, Aa = () => {
7390
- if (!xl.value.trim())
7390
+ if (!kl.value.trim())
7391
7391
  return;
7392
- const n = xl.value.trim(), l = /* @__PURE__ */ new Date(), s = {
7392
+ const n = kl.value.trim(), l = /* @__PURE__ */ new Date(), s = {
7393
7393
  text: n,
7394
7394
  selectionText: hn.value,
7395
7395
  selectionRange: Ln.value,
@@ -7397,7 +7397,7 @@ const Ns = {
7397
7397
  user: F.commentUser || null,
7398
7398
  createdAt: l.toISOString()
7399
7399
  };
7400
- Xl.value = [...Xl.value, s], ee("comment-submitted", s), La(s), Ln.value && !Pa(Ln.value) && ls(Mt.value, Ln.value), xl.value = "", _e(() => {
7400
+ Yl.value = [...Yl.value, s], ee("comment-submitted", s), La(s), Ln.value && !Pa(Ln.value) && ls(Mt.value, Ln.value), kl.value = "", _e(() => {
7401
7401
  if (bl.value) {
7402
7402
  const i = bl.value;
7403
7403
  i.style.height = "auto", i.style.height = `${i.scrollHeight}px`, i.focus();
@@ -7406,14 +7406,14 @@ const Ns = {
7406
7406
  });
7407
7407
  }, Ea = (n, l) => {
7408
7408
  if (!(!F.commentUser || !n.user || n.user.id !== F.commentUser.id)) {
7409
- if (Xl.value = Xl.value.filter((s, i) => i !== l), Mt.value !== null && g.value) {
7409
+ if (Yl.value = Yl.value.filter((s, i) => i !== l), Mt.value !== null && g.value) {
7410
7410
  const s = String(Mt.value), i = g.value.querySelector(`[data-comment="${s}"], [data-fake-comment="${s}"]`);
7411
- if (i && Xl.value.length > 0) {
7411
+ if (i && Yl.value.length > 0) {
7412
7412
  const d = [], f = /* @__PURE__ */ new Set();
7413
- Xl.value.forEach((v) => {
7413
+ Yl.value.forEach((v) => {
7414
7414
  v.user && v.user.id && !f.has(v.user.id) && (f.add(v.user.id), d.push(v.user));
7415
- }), d.length > 0 ? i.setAttribute("data-comment-user", JSON.stringify(d[0])) : i.removeAttribute("data-comment-user"), d.length > 1 ? i.setAttribute("data-comment-user-2", JSON.stringify(d[1])) : i.removeAttribute("data-comment-user-2"), i.setAttribute("data-comment-count", String(Xl.value.length));
7416
- } else i && Xl.value.length === 0 && (i.removeAttribute("data-comment-user"), i.removeAttribute("data-comment-user-2"), i.setAttribute("data-comment-count", "0"));
7415
+ }), d.length > 0 ? i.setAttribute("data-comment-user", JSON.stringify(d[0])) : i.removeAttribute("data-comment-user"), d.length > 1 ? i.setAttribute("data-comment-user-2", JSON.stringify(d[1])) : i.removeAttribute("data-comment-user-2"), i.setAttribute("data-comment-count", String(Yl.value.length));
7416
+ } else i && Yl.value.length === 0 && (i.removeAttribute("data-comment-user"), i.removeAttribute("data-comment-user-2"), i.setAttribute("data-comment-count", "0"));
7417
7417
  }
7418
7418
  if (ee("comment-deleted", {
7419
7419
  comment: n,
@@ -7575,8 +7575,8 @@ const Ns = {
7575
7575
  return isNaN(Ve) ? 0 : Ve;
7576
7576
  }, de = E(N.createdAt), te = E(O.createdAt);
7577
7577
  return de === te ? 0 : de - te;
7578
- }), Xl.value = C, zn(!0), Mt.value = y || null, i && (pl.value = i, i.classList.add("editor-comment-highlighted")), _e(() => {
7579
- if (xl.value = "", bl.value) {
7578
+ }), Yl.value = C, zn(!0), Mt.value = y || null, i && (pl.value = i, i.classList.add("editor-comment-highlighted")), _e(() => {
7579
+ if (kl.value = "", bl.value) {
7580
7580
  const N = bl.value;
7581
7581
  N.style.height = "auto", N.style.height = `${N.scrollHeight}px`, N.focus();
7582
7582
  }
@@ -7830,7 +7830,7 @@ const Ns = {
7830
7830
  i = p >= v.left && p <= v.right && y >= v.top && y <= v.bottom;
7831
7831
  }
7832
7832
  const d = l.closest(".dss-toolbar-button"), f = d && d.getAttribute("title") === "Comment";
7833
- !i && !f && (Mt.value = null, xl.value = "", hn.value = "", Ln.value = null, Xl.value = [], zn(!0));
7833
+ !i && !f && (Mt.value = null, kl.value = "", hn.value = "", Ln.value = null, Yl.value = [], zn(!0));
7834
7834
  }
7835
7835
  }, Yn = (n, l) => {
7836
7836
  n && n.stopPropagation && n.stopPropagation(), it.value && (clearTimeout(it.value), it.value = null), wt.value = l;
@@ -8132,7 +8132,7 @@ const Ns = {
8132
8132
  const n = document.querySelector(".dss-text-editor-toolbar");
8133
8133
  n && n._toolbarMutationObserver && n._toolbarMutationObserver.disconnect();
8134
8134
  });
8135
- const kl = (n) => {
8135
+ const _l = (n) => {
8136
8136
  const l = n.target, s = l.closest("a");
8137
8137
  if (s && !F.disabled) {
8138
8138
  n.preventDefault();
@@ -8185,10 +8185,10 @@ const Ns = {
8185
8185
  parseInt(y.fontWeight) >= 600 && (p = !0);
8186
8186
  } catch {
8187
8187
  }
8188
- re.value[s] = p;
8188
+ ue.value[s] = p;
8189
8189
  } else {
8190
8190
  const f = document.queryCommandState(s);
8191
- re.value[s] = f;
8191
+ ue.value[s] = f;
8192
8192
  }
8193
8193
  }
8194
8194
  } catch {
@@ -8222,7 +8222,7 @@ const Ns = {
8222
8222
  }
8223
8223
  }, Ql = () => {
8224
8224
  if (!g.value) {
8225
- Re.value = !1;
8225
+ De.value = !1;
8226
8226
  return;
8227
8227
  }
8228
8228
  try {
@@ -8232,9 +8232,9 @@ const Ns = {
8232
8232
  const i = n.getRangeAt(0).commonAncestorContainer, d = i.nodeType === 1 ? i.tagName === "BLOCKQUOTE" ? i : i.closest("blockquote") : i.parentElement?.closest("blockquote");
8233
8233
  l = !!(d && g.value.contains(d));
8234
8234
  }
8235
- Re.value = l;
8235
+ De.value = l;
8236
8236
  } catch {
8237
- Re.value = !1;
8237
+ De.value = !1;
8238
8238
  }
8239
8239
  }, _n = (n) => {
8240
8240
  if (!n || !g.value) return !1;
@@ -8316,7 +8316,7 @@ const Ns = {
8316
8316
  if (Bn && (clearTimeout(Bn), Bn = null), Hn && (clearTimeout(Hn), Hn = null), s && s !== Jl) {
8317
8317
  jn(), Jl = s;
8318
8318
  let d = s.getAttribute("href") || "";
8319
- (!d || d === "#" || d === "") && (d = s.textContent || ""), Fe.value = s, xe.value = d, ue.value = !0, he.value = !0, za(s);
8319
+ (!d || d === "#" || d === "") && (d = s.textContent || ""), Fe.value = s, xe.value = d, re.value = !0, he.value = !0, za(s);
8320
8320
  } else !s && Jl ? (Jl = null, Bn = setTimeout(() => {
8321
8321
  he.value || Mn();
8322
8322
  }, 150)) : s && s === Jl && za(s);
@@ -8334,7 +8334,7 @@ const Ns = {
8334
8334
  (!l || !l.closest(".dss-text-editor-content") && !l.closest(".dss-link-popup")) && (Jl = null, Zl = null, Bn && (clearTimeout(Bn), Bn = null), Hn && (clearTimeout(Hn), Hn = null), Mn(), jn());
8335
8335
  }, Mn = () => {
8336
8336
  he.value = !1, setTimeout(() => {
8337
- he.value || (ue.value = !1, xe.value = "", We.value || (Fe.value = null));
8337
+ he.value || (re.value = !1, xe.value = "", We.value || (Fe.value = null));
8338
8338
  }, 100);
8339
8339
  }, za = (n) => {
8340
8340
  if (!n || !g.value) return;
@@ -8367,7 +8367,7 @@ const Ns = {
8367
8367
  }, Za = () => {
8368
8368
  if (Fe.value) {
8369
8369
  const n = Fe.value.textContent || "", l = Fe.value.getAttribute("href") || "", s = Fe.value;
8370
- tt.value = l, yt.value = n, St.value = n, he.value = !1, ue.value = !1, xe.value = "", Fe.value = s, We.value = !0;
8370
+ tt.value = l, yt.value = n, St.value = n, he.value = !1, re.value = !1, xe.value = "", Fe.value = s, We.value = !0;
8371
8371
  } else if ($e.value) {
8372
8372
  const n = window.getSelection();
8373
8373
  if (n.rangeCount > 0) {
@@ -9335,7 +9335,7 @@ const Ns = {
9335
9335
  ], -1)
9336
9336
  ])], 10, sd),
9337
9337
  a("div", {
9338
- class: se(["dss-toolbar-button", { "dss-toolbar-button-active": Re.value }]),
9338
+ class: se(["dss-toolbar-button", { "dss-toolbar-button-active": De.value }]),
9339
9339
  onClick: ma,
9340
9340
  title: R(I)("textEditor.toolbar.citation")
9341
9341
  }, [...l[53] || (l[53] = [
@@ -9499,14 +9499,14 @@ const Ns = {
9499
9499
  onClick: l[13] || (l[13] = qe(() => {
9500
9500
  }, ["stop"]))
9501
9501
  }, [
9502
- Ml(n.$slots, "ask-ai-dropdown")
9502
+ xl(n.$slots, "ask-ai-dropdown")
9503
9503
  ])) : T("", !0)
9504
9504
  ])) : T("", !0)
9505
9505
  ]),
9506
9506
  a("div", yd, [
9507
9507
  (u(!0), c(le, null, Me(B.customToolbarSlots, (s, i) => (u(), c(le, { key: i }, [
9508
9508
  al(s) ? (u(), c("div", bd, [
9509
- Ml(n.$slots, s)
9509
+ xl(n.$slots, s)
9510
9510
  ])) : T("", !0),
9511
9511
  al(s) && i < B.customToolbarSlots.length - 1 && Nl(i) ? (u(), c("div", Cd)) : T("", !0)
9512
9512
  ], 64))), 128))
@@ -9524,7 +9524,7 @@ const Ns = {
9524
9524
  onCloseModal: ha
9525
9525
  }, {
9526
9526
  title: Nn(() => [
9527
- Yl(A(R(I)("textEditor.link.editLink")), 1)
9527
+ Ul(A(R(I)("textEditor.link.editLink")), 1)
9528
9528
  ]),
9529
9529
  content: Nn(() => [
9530
9530
  a("div", wd, [
@@ -9539,7 +9539,7 @@ const Ns = {
9539
9539
  placeholder: R(I)("textEditor.link.enterAltText"),
9540
9540
  onKeyup: tn(Ta, ["enter"])
9541
9541
  }, null, 40, _d), [
9542
- [_l, yt.value]
9542
+ [Ml, yt.value]
9543
9543
  ])
9544
9544
  ]),
9545
9545
  a("div", Md, [
@@ -9553,7 +9553,7 @@ const Ns = {
9553
9553
  placeholder: R(I)("textEditor.link.enterUrl"),
9554
9554
  onKeyup: tn(Ta, ["enter"])
9555
9555
  }, null, 40, $d), [
9556
- [_l, tt.value]
9556
+ [Ml, tt.value]
9557
9557
  ])
9558
9558
  ])
9559
9559
  ])
@@ -9579,7 +9579,7 @@ const Ns = {
9579
9579
  onCloseModal: On
9580
9580
  }, {
9581
9581
  title: Nn(() => [
9582
- Yl(A(vt.value ? R(I)("textEditor.image.editImage") : R(I)("textEditor.image.addImage")), 1)
9582
+ Ul(A(vt.value ? R(I)("textEditor.image.editImage") : R(I)("textEditor.image.addImage")), 1)
9583
9583
  ]),
9584
9584
  content: Nn(() => [
9585
9585
  a("div", Ad, [
@@ -9652,7 +9652,7 @@ const Ns = {
9652
9652
  placeholder: R(I)("textEditor.image.enterAltText"),
9653
9653
  onKeyup: tn(Dn, ["enter"])
9654
9654
  }, null, 40, Nd), [
9655
- [_l, Kt.value]
9655
+ [Ml, Kt.value]
9656
9656
  ])
9657
9657
  ]),
9658
9658
  a("div", Id, [
@@ -9666,7 +9666,7 @@ const Ns = {
9666
9666
  onKeyup: tn(Dn, ["enter"]),
9667
9667
  onInput: Rl
9668
9668
  }, null, 40, Bd), [
9669
- [_l, bt.value]
9669
+ [Ml, bt.value]
9670
9670
  ])
9671
9671
  ]),
9672
9672
  a("div", Fd, [
@@ -9680,7 +9680,7 @@ const Ns = {
9680
9680
  onKeyup: tn(Dn, ["enter"]),
9681
9681
  onInput: Xa
9682
9682
  }, null, 40, zd), [
9683
- [_l, Bt.value]
9683
+ [Ml, Bt.value]
9684
9684
  ])
9685
9685
  ])
9686
9686
  ])
@@ -9698,7 +9698,7 @@ const Ns = {
9698
9698
  placeholder: R(I)("textEditor.image.enterImageUrl"),
9699
9699
  onKeyup: tn(Dn, ["enter"])
9700
9700
  }, null, 40, Xd), [
9701
- [_l, ot.value]
9701
+ [Ml, ot.value]
9702
9702
  ])
9703
9703
  ]),
9704
9704
  a("div", Yd, [
@@ -9710,7 +9710,7 @@ const Ns = {
9710
9710
  placeholder: R(I)("textEditor.image.enterAltText"),
9711
9711
  onKeyup: tn(Dn, ["enter"])
9712
9712
  }, null, 40, Kd), [
9713
- [_l, Kt.value]
9713
+ [Ml, Kt.value]
9714
9714
  ])
9715
9715
  ]),
9716
9716
  a("div", Gd, [
@@ -9724,7 +9724,7 @@ const Ns = {
9724
9724
  onKeyup: tn(Dn, ["enter"]),
9725
9725
  onInput: Rl
9726
9726
  }, null, 40, Jd), [
9727
- [_l, bt.value]
9727
+ [Ml, bt.value]
9728
9728
  ])
9729
9729
  ]),
9730
9730
  a("div", e1, [
@@ -9738,7 +9738,7 @@ const Ns = {
9738
9738
  onKeyup: tn(Dn, ["enter"]),
9739
9739
  onInput: Xa
9740
9740
  }, null, 40, l1), [
9741
- [_l, Bt.value]
9741
+ [Ml, Bt.value]
9742
9742
  ])
9743
9743
  ])
9744
9744
  ])
@@ -9782,7 +9782,7 @@ const Ns = {
9782
9782
  ])
9783
9783
  ], 2),
9784
9784
  In.value && Yt.value ? (u(), c("div", r1, [
9785
- Ml(n.$slots, "title-slot")
9785
+ xl(n.$slots, "title-slot")
9786
9786
  ])) : T("", !0),
9787
9787
  a("div", {
9788
9788
  class: se(["dss-text-editor-description-wrapper", { "dss-text-editor-no-border-bottom": Pn.value && H.value }])
@@ -9808,7 +9808,7 @@ const Ns = {
9808
9808
  ])
9809
9809
  ], 2),
9810
9810
  Pn.value && H.value ? (u(), c("div", p1, [
9811
- Ml(n.$slots, "description-slot")
9811
+ xl(n.$slots, "description-slot")
9812
9812
  ])) : T("", !0),
9813
9813
  (u(!0), c(le, null, Me(oe.value, (s) => (u(), c("div", {
9814
9814
  key: s.id,
@@ -9866,7 +9866,7 @@ const Ns = {
9866
9866
  style: be(X.value),
9867
9867
  onInput: He,
9868
9868
  onBlur: Qe,
9869
- onClick: kl,
9869
+ onClick: _l,
9870
9870
  onMouseup: Fa,
9871
9871
  onKeyup: Fa,
9872
9872
  onKeydown: j,
@@ -9881,7 +9881,7 @@ const Ns = {
9881
9881
  class: "dss-comment-overlay",
9882
9882
  style: be(yl.value)
9883
9883
  }, [
9884
- hn.value || Xl.value.length > 0 ? (u(), c("div", T1, [
9884
+ hn.value || Yl.value.length > 0 ? (u(), c("div", T1, [
9885
9885
  a("div", H1, [
9886
9886
  hn.value ? (u(), c("div", {
9887
9887
  key: 0,
@@ -9890,7 +9890,7 @@ const Ns = {
9890
9890
  }, null, 8, D1)) : T("", !0)
9891
9891
  ]),
9892
9892
  a("div", R1, [
9893
- (u(!0), c(le, null, Me(Xl.value, (s, i) => (u(), c("div", {
9893
+ (u(!0), c(le, null, Me(Yl.value, (s, i) => (u(), c("div", {
9894
9894
  key: i,
9895
9895
  class: "dss-comment-message"
9896
9896
  }, [
@@ -9941,7 +9941,7 @@ const Ns = {
9941
9941
  Gt(a("textarea", {
9942
9942
  ref_key: "commentInputRef",
9943
9943
  ref: bl,
9944
- "onUpdate:modelValue": l[26] || (l[26] = (s) => xl.value = s),
9944
+ "onUpdate:modelValue": l[26] || (l[26] = (s) => kl.value = s),
9945
9945
  class: "dss-comment-input",
9946
9946
  rows: "1",
9947
9947
  placeholder: R(I)("textEditor.comment.placeholder"),
@@ -9953,7 +9953,7 @@ const Ns = {
9953
9953
  }
9954
9954
  })
9955
9955
  }, null, 40, Z1), [
9956
- [_l, xl.value]
9956
+ [Ml, kl.value]
9957
9957
  ]),
9958
9958
  a("button", {
9959
9959
  type: "button",
@@ -10005,7 +10005,7 @@ const Ns = {
10005
10005
  ])
10006
10006
  ])),
10007
10007
  (u(), Jn(ea, { to: "body" }, [
10008
- ue.value && xe.value && g.value ? (u(), c("div", {
10008
+ re.value && xe.value && g.value ? (u(), c("div", {
10009
10009
  key: 0,
10010
10010
  class: "dss-link-popup",
10011
10011
  style: be(W.value),
@@ -10274,7 +10274,7 @@ const Ns = {
10274
10274
  ])], 10, y2),
10275
10275
  l[91] || (l[91] = a("div", { class: "dss-toolbar-separator" }, null, -1)),
10276
10276
  a("div", {
10277
- class: se(["dss-toolbar-button", { "dss-toolbar-button-active": Re.value }]),
10277
+ class: se(["dss-toolbar-button", { "dss-toolbar-button-active": De.value }]),
10278
10278
  onClick: qe(ma, ["stop"]),
10279
10279
  title: R(I)("textEditor.toolbar.citation")
10280
10280
  }, [...l[81] || (l[81] = [
@@ -10437,17 +10437,17 @@ const Ns = {
10437
10437
  onClick: l[43] || (l[43] = qe(() => {
10438
10438
  }, ["stop"]))
10439
10439
  }, [
10440
- Ml(n.$slots, "ask-ai-dropdown")
10440
+ xl(n.$slots, "ask-ai-dropdown")
10441
10441
  ])) : T("", !0)
10442
10442
  ])) : T("", !0)
10443
10443
  ]),
10444
10444
  vn.value ? (u(), c("div", L2, [
10445
10445
  B.askAi && vn.value ? (u(), c("div", T2)) : T("", !0),
10446
10446
  (u(!0), c(le, null, Me(B.customToolbarSlots, (s, i) => (u(), c(le, { key: i }, [
10447
- al(s) && Ul(s) ? (u(), c("div", H2, [
10448
- Ml(n.$slots, s)
10447
+ al(s) && Xl(s) ? (u(), c("div", H2, [
10448
+ xl(n.$slots, s)
10449
10449
  ])) : T("", !0),
10450
- al(s) && Ul(s) && i < B.customToolbarSlots.length - 1 && dn(i) ? (u(), c("div", D2)) : T("", !0)
10450
+ al(s) && Xl(s) && i < B.customToolbarSlots.length - 1 && dn(i) ? (u(), c("div", D2)) : T("", !0)
10451
10451
  ], 64))), 128))
10452
10452
  ])) : T("", !0)
10453
10453
  ], 36)) : T("", !0)
@@ -10536,7 +10536,7 @@ const Ns = {
10536
10536
  const ye = ie * (1 - J / 2), Ke = ye === 0 || ye === 1 ? 0 : (ie - ye) / Math.min(ye, 1 - ye);
10537
10537
  return { h: K, s: Ke * 100, l: ye * 100 };
10538
10538
  }
10539
- const ee = B, dt = fe, Se = S(!1), g = S(!1), Te = S(!1), $e = S(-1), pe = S(-1), ue = S(null), xe = S(null), W = S(null), he = S(null), We = S({ top: 0, left: 0 }), tt = S(V(ee.modelValue || "#b8a5de")), yt = m(
10539
+ const ee = B, dt = fe, Se = S(!1), g = S(!1), Te = S(!1), $e = S(-1), pe = S(-1), re = S(null), xe = S(null), W = S(null), he = S(null), We = S({ top: 0, left: 0 }), tt = S(V(ee.modelValue || "#b8a5de")), yt = m(
10540
10540
  () => Array.isArray(ee.presetGroups) && ee.presetGroups.length > 0
10541
10541
  ), Z = m(() => yt.value ? 0 : ee.initialPresetCount != null ? ee.initialPresetCount : pe.value < 0 ? null : pe.value), lt = m(() => {
10542
10542
  const K = Z.value;
@@ -10551,11 +10551,11 @@ const Ns = {
10551
10551
  ), St = m(() => {
10552
10552
  const K = Z.value;
10553
10553
  return K == null ? [] : ee.presetColors.slice(0, K);
10554
- }), Re = m(() => {
10554
+ }), De = m(() => {
10555
10555
  const K = Z.value;
10556
10556
  return K == null ? [] : ee.presetColors.slice(K);
10557
10557
  });
10558
- function re(K) {
10558
+ function ue(K) {
10559
10559
  const J = Z.value;
10560
10560
  return J != null ? J + K : -1;
10561
10561
  }
@@ -10626,8 +10626,8 @@ const Ns = {
10626
10626
  zIndex: 1002
10627
10627
  }));
10628
10628
  function mt() {
10629
- if (!ue.value || !Se.value) return;
10630
- const K = ue.value.getBoundingClientRect(), J = window.innerHeight || document.documentElement.clientHeight;
10629
+ if (!re.value || !Se.value) return;
10630
+ const K = re.value.getBoundingClientRect(), J = window.innerHeight || document.documentElement.clientHeight;
10631
10631
  let ie = K.bottom + 4;
10632
10632
  const ye = xe.value;
10633
10633
  ye && ie + ye.offsetHeight > J - 8 && (ie = K.top - 4 - ye.offsetHeight), We.value = { top: ie, left: K.left };
@@ -10704,14 +10704,14 @@ const Ns = {
10704
10704
  }
10705
10705
  }), It(() => ee.modelValue, () => {
10706
10706
  Se.value && qt();
10707
- }, { immediate: !1 }), It(Re, (K) => {
10707
+ }, { immediate: !1 }), It(De, (K) => {
10708
10708
  K.length === 0 && (Te.value = !1, $e.value = -1, g.value = !1);
10709
10709
  }), wa(Ue), (K, J) => (u(), c("div", {
10710
10710
  class: se(["dss-color-picker", { "dss-color-picker--disabled": B.disabled }])
10711
10711
  }, [
10712
10712
  a("div", {
10713
10713
  ref_key: "triggerRef",
10714
- ref: ue,
10714
+ ref: re,
10715
10715
  class: se(["dss-color-picker__trigger", { "dss-color-picker__trigger--open": Se.value }]),
10716
10716
  onClick: ce
10717
10717
  }, [
@@ -10779,7 +10779,7 @@ const Ns = {
10779
10779
  a("div", O2, [
10780
10780
  a("div", z2, [
10781
10781
  J[3] || (J[3] = a("span", { class: "dss-color-picker__section-title" }, "Custom Colors", -1)),
10782
- Re.value.length > 0 ? (u(), c("button", {
10782
+ De.value.length > 0 ? (u(), c("button", {
10783
10783
  key: 0,
10784
10784
  type: "button",
10785
10785
  class: se(["dss-color-picker__manage-icon", { "dss-color-picker__manage-icon--active": Te.value }]),
@@ -10799,7 +10799,7 @@ const Ns = {
10799
10799
  ])], 2)) : T("", !0)
10800
10800
  ]),
10801
10801
  a("div", W2, [
10802
- (u(!0), c(le, null, Me(Re.value, (ie, ye) => (u(), c("div", {
10802
+ (u(!0), c(le, null, Me(De.value, (ie, ye) => (u(), c("div", {
10803
10803
  key: "c-" + ye,
10804
10804
  class: se(["dss-color-picker__preset-wrap", { "dss-color-picker__preset-wrap--manage": Te.value }])
10805
10805
  }, [
@@ -10807,18 +10807,18 @@ const Ns = {
10807
10807
  type: "button",
10808
10808
  class: se(["dss-color-picker__preset-bubble", {
10809
10809
  "dss-color-picker__preset-bubble--selected": !Te.value && hl(ie),
10810
- "dss-color-picker__preset-bubble--editing": Te.value && $e.value === re(ye)
10810
+ "dss-color-picker__preset-bubble--editing": Te.value && $e.value === ue(ye)
10811
10811
  }]),
10812
- style: be({ backgroundColor: $e.value === re(ye) ? bt.value : ie }),
10813
- title: $e.value === re(ye) ? bt.value : ie,
10814
- onClick: qe((Ke) => Te.value ? je(re(ye)) : it(ie), ["stop"])
10812
+ style: be({ backgroundColor: $e.value === ue(ye) ? bt.value : ie }),
10813
+ title: $e.value === ue(ye) ? bt.value : ie,
10814
+ onClick: qe((Ke) => Te.value ? je(ue(ye)) : it(ie), ["stop"])
10815
10815
  }, null, 14, q2),
10816
10816
  Te.value ? (u(), c("button", {
10817
10817
  key: 0,
10818
10818
  type: "button",
10819
10819
  class: "dss-color-picker__preset-action dss-color-picker__preset-action--delete",
10820
10820
  title: "Delete",
10821
- onClick: qe((Ke) => il(re(ye)), ["stop"])
10821
+ onClick: qe((Ke) => il(ue(ye)), ["stop"])
10822
10822
  }, [...J[4] || (J[4] = [
10823
10823
  a("svg", {
10824
10824
  viewBox: "0 0 12 12",
@@ -11034,8 +11034,8 @@ const Ns = {
11034
11034
  "aria-hidden": "true"
11035
11035
  }, null, -1)),
11036
11036
  a("span", i0, [
11037
- Ml(me.$slots, "default", {}, () => [
11038
- Yl(A(B.label), 1)
11037
+ xl(me.$slots, "default", {}, () => [
11038
+ Ul(A(B.label), 1)
11039
11039
  ])
11040
11040
  ])
11041
11041
  ])) : T("", !0)
@@ -11084,7 +11084,7 @@ const Ns = {
11084
11084
  a("div", {
11085
11085
  class: se(["dss-skeleton-content", { "dss-skeleton-content--hidden": B.loading && B.mode === "single" }])
11086
11086
  }, [
11087
- Ml(U.$slots, "default")
11087
+ xl(U.$slots, "default")
11088
11088
  ], 2)
11089
11089
  ], 6));
11090
11090
  }
@@ -11138,7 +11138,7 @@ const Ns = {
11138
11138
  background: Ze
11139
11139
  } : {};
11140
11140
  }
11141
- const g = S(null), Te = S(null), $e = S(!1), pe = S(-1), ue = S(null);
11141
+ const g = S(null), Te = S(null), $e = S(!1), pe = S(-1), re = S(null);
11142
11142
  let xe = null, W = null, he = null, We = null, tt = 0, yt = 0, Z = "", lt = null;
11143
11143
  const Fe = 5, Ee = m(() => {
11144
11144
  const ce = {};
@@ -11163,7 +11163,7 @@ const Ns = {
11163
11163
  }
11164
11164
  return ce;
11165
11165
  });
11166
- function Re(ce, Ze) {
11166
+ function De(ce, Ze) {
11167
11167
  const ot = (Ee.value[ce] || []).filter(
11168
11168
  (ct) => ct[V.itemKey] !== g.value?.[V.itemKey]
11169
11169
  );
@@ -11179,7 +11179,7 @@ const Ns = {
11179
11179
  const wt = ot[Ze - 1][V.positionKey] ?? 0, it = ot[Ze][V.positionKey] ?? 0;
11180
11180
  return (wt + it) / 2;
11181
11181
  }
11182
- function re(ce, Ze, Be) {
11182
+ function ue(ce, Ze, Be) {
11183
11183
  he && he.remove();
11184
11184
  const ot = ce.getBoundingClientRect(), wt = ce.cloneNode(!0);
11185
11185
  wt.classList.add("dss-dnd-ghost"), wt.style.cssText = `
@@ -11251,15 +11251,15 @@ const Ns = {
11251
11251
  if (g.value && ot) {
11252
11252
  const wt = g.value[V.columnKey], it = ot, $t = (Ee.value[it] || []).filter(
11253
11253
  (ie) => ie[V.itemKey] !== g.value[V.itemKey]
11254
- ), Ue = Math.max(0, Math.min(pe.value, $t.length)), K = Re(it, Ue), J = g.value[V.itemKey];
11254
+ ), Ue = Math.max(0, Math.min(pe.value, $t.length)), K = De(it, Ue), J = g.value[V.itemKey];
11255
11255
  I("move", {
11256
11256
  item: g.value,
11257
11257
  from: wt,
11258
11258
  to: it,
11259
11259
  position: K,
11260
11260
  index: Ue
11261
- }), W && clearTimeout(W), ue.value = { id: J, from: wt, to: it }, W = setTimeout(() => {
11262
- ue.value = null;
11261
+ }), W && clearTimeout(W), re.value = { id: J, from: wt, to: it }, W = setTimeout(() => {
11262
+ re.value = null;
11263
11263
  }, 3500);
11264
11264
  }
11265
11265
  }
@@ -11270,7 +11270,7 @@ const Ns = {
11270
11270
  const Be = ce.target.closest(".dss-dnd-item");
11271
11271
  if (!Be) return;
11272
11272
  const ot = Be.getBoundingClientRect();
11273
- tt = ce.clientX - ot.left, yt = ce.clientY - ot.top, Z = document.body.style.cursor, document.body.style.cursor = "grabbing", g.value = Ze, We = Be, re(Be, ce.clientX, ce.clientY), requestAnimationFrame(() => je(Be)), Be.setPointerCapture?.(ce.pointerId), window.addEventListener("pointermove", hl), window.addEventListener("pointerup", Jt, { once: !0 }), window.addEventListener("pointercancel", Jt, { once: !0 });
11273
+ tt = ce.clientX - ot.left, yt = ce.clientY - ot.top, Z = document.body.style.cursor, document.body.style.cursor = "grabbing", g.value = Ze, We = Be, ue(Be, ce.clientX, ce.clientY), requestAnimationFrame(() => je(Be)), Be.setPointerCapture?.(ce.pointerId), window.addEventListener("pointermove", hl), window.addEventListener("pointerup", Jt, { once: !0 }), window.addEventListener("pointercancel", Jt, { once: !0 });
11274
11274
  }
11275
11275
  function Bt() {
11276
11276
  lt && (window.removeEventListener("pointermove", gl), window.removeEventListener("pointerup", el), window.removeEventListener("pointercancel", el), lt = null);
@@ -11320,7 +11320,7 @@ const Ns = {
11320
11320
  class: se(["dss-dnd-delete-zone", { "dss-dnd-delete-zone--drag-over": $e.value }]),
11321
11321
  "data-dss-dnd-delete-zone": ""
11322
11322
  }, [
11323
- Ml(ce.$slots, "delete-zone", {
11323
+ xl(ce.$slots, "delete-zone", {
11324
11324
  isDragging: !!g.value,
11325
11325
  isOver: $e.value
11326
11326
  })
@@ -11337,7 +11337,7 @@ const Ns = {
11337
11337
  style: be(Se(Be))
11338
11338
  }, [
11339
11339
  ee.value.showHeader ? (u(), c("div", r0, [
11340
- Ml(ce.$slots, "column-header", {
11340
+ xl(ce.$slots, "column-header", {
11341
11341
  column: Be,
11342
11342
  items: Ee.value[Be.value] || []
11343
11343
  }, () => [
@@ -11365,17 +11365,17 @@ const Ns = {
11365
11365
  class: "dss-dnd-handle",
11366
11366
  onPointerdown: qe((wt) => mt(wt, ot.item), ["stop"])
11367
11367
  }, [
11368
- Ml(ce.$slots, "handle", {}, () => [
11368
+ xl(ce.$slots, "handle", {}, () => [
11369
11369
  Ze[0] || (Ze[0] = a("span", { class: "dss-dnd-handle-icon" }, "⠿", -1))
11370
11370
  ])
11371
11371
  ], 40, p0)) : T("", !0),
11372
11372
  a("div", m0, [
11373
- Ml(ce.$slots, "item", {
11373
+ xl(ce.$slots, "item", {
11374
11374
  item: ot.item,
11375
11375
  column: Be,
11376
- justDropped: ue.value?.id === ot.item[B.itemKey],
11377
- droppedFrom: ue.value?.id === ot.item[B.itemKey] ? ue.value.from : null,
11378
- droppedTo: ue.value?.id === ot.item[B.itemKey] ? ue.value.to : null
11376
+ justDropped: re.value?.id === ot.item[B.itemKey],
11377
+ droppedFrom: re.value?.id === ot.item[B.itemKey] ? re.value.from : null,
11378
+ droppedTo: re.value?.id === ot.item[B.itemKey] ? re.value.to : null
11379
11379
  }, () => [
11380
11380
  a("div", h0, A(ot.item[B.itemKey]), 1)
11381
11381
  ])
@@ -11383,7 +11383,7 @@ const Ns = {
11383
11383
  ], 42, f0))
11384
11384
  ], 64))), 128)),
11385
11385
  (Ee.value[Be.value] || []).length === 0 && Te.value != Be.value ? (u(), c("div", g0, [
11386
- Ml(ce.$slots, "empty", { column: Be }, () => [
11386
+ xl(ce.$slots, "empty", { column: Be }, () => [
11387
11387
  Ze[1] || (Ze[1] = a("span", { class: "dss-dnd-empty-text" }, "No items", -1))
11388
11388
  ])
11389
11389
  ])) : T("", !0)
@@ -11408,13 +11408,13 @@ const Ns = {
11408
11408
  setup(B) {
11409
11409
  const fe = B, V = S(null), I = S(!1);
11410
11410
  let me = [], U = null, F = null;
11411
- function ee(pe, ue) {
11411
+ function ee(pe, re) {
11412
11412
  const xe = [];
11413
11413
  for (let W = 0; W < fe.count; W++)
11414
11414
  xe.push(dt(pe));
11415
11415
  return xe;
11416
11416
  }
11417
- function dt(pe, ue) {
11417
+ function dt(pe, re) {
11418
11418
  return {
11419
11419
  x: Math.random() * pe,
11420
11420
  y: -Math.random() * 150 - 20,
@@ -11428,23 +11428,23 @@ const Ns = {
11428
11428
  speed: Math.random() * 4 + 1.5
11429
11429
  };
11430
11430
  }
11431
- function Se(pe, ue, xe, W) {
11432
- pe.clearRect(0, 0, ue, xe);
11431
+ function Se(pe, re, xe, W) {
11432
+ pe.clearRect(0, 0, re, xe);
11433
11433
  for (const he of me)
11434
11434
  pe.save(), pe.globalAlpha = he.opacity * W, pe.beginPath(), pe.lineWidth = he.r, pe.strokeStyle = he.color, pe.moveTo(he.x + he.tilt + he.r / 2, he.y), pe.lineTo(he.x + he.tilt, he.y + he.tilt + he.r / 2), pe.stroke(), pe.restore();
11435
11435
  }
11436
- function g(pe, ue, xe) {
11436
+ function g(pe, re, xe) {
11437
11437
  const W = 0.3 + xe * 0.7;
11438
11438
  for (let he = 0; he < me.length; he++) {
11439
11439
  const We = me[he];
11440
- We.tiltAngle += We.tiltInc, We.y += We.speed * W, We.x += Math.sin(We.d) * 0.5 * W, We.tilt = Math.sin(We.tiltAngle) * 15, xe >= 0.99 && We.y > ue + 20 && (me[he] = dt(pe));
11440
+ We.tiltAngle += We.tiltInc, We.y += We.speed * W, We.x += Math.sin(We.d) * 0.5 * W, We.tilt = Math.sin(We.tiltAngle) * 15, xe >= 0.99 && We.y > re + 20 && (me[he] = dt(pe));
11441
11441
  }
11442
11442
  }
11443
11443
  function Te() {
11444
11444
  I.value = !0, _e(() => {
11445
11445
  const pe = V.value;
11446
11446
  if (!pe) return;
11447
- const ue = pe.getContext("2d"), xe = pe.parentElement;
11447
+ const re = pe.getContext("2d"), xe = pe.parentElement;
11448
11448
  if (!xe) return;
11449
11449
  const W = xe.getBoundingClientRect();
11450
11450
  pe.width = W.width, pe.height = W.height, me = ee(pe.width, pe.height);
@@ -11452,7 +11452,7 @@ const Ns = {
11452
11452
  const yt = Date.now(), Z = yt - he;
11453
11453
  if (yt < We) {
11454
11454
  let lt = 1;
11455
- Z > fe.fadeStart && (lt = 1 - (Z - fe.fadeStart) / (fe.duration - fe.fadeStart)), Se(ue, pe.width, pe.height, lt), g(pe.width, pe.height, lt), U = requestAnimationFrame(tt);
11455
+ Z > fe.fadeStart && (lt = 1 - (Z - fe.fadeStart) / (fe.duration - fe.fadeStart)), Se(re, pe.width, pe.height, lt), g(pe.width, pe.height, lt), U = requestAnimationFrame(tt);
11456
11456
  } else
11457
11457
  $e();
11458
11458
  };
@@ -11466,7 +11466,7 @@ const Ns = {
11466
11466
  pe && (F && clearTimeout(F), F = setTimeout(Te, fe.delay));
11467
11467
  }, { immediate: !0 }), wa(() => {
11468
11468
  $e(), F && clearTimeout(F);
11469
- }), (pe, ue) => I.value ? (u(), c("canvas", {
11469
+ }), (pe, re) => I.value ? (u(), c("canvas", {
11470
11470
  key: 0,
11471
11471
  ref_key: "canvasRef",
11472
11472
  ref: V,
@@ -11618,7 +11618,7 @@ const Ns = {
11618
11618
  { value: "is_empty" },
11619
11619
  { value: "is_not_empty" }
11620
11620
  ]
11621
- }, Se = /* @__PURE__ */ new Set(["is_empty", "is_not_empty", "is_true", "is_false"]), g = ["label", "name", "title", "keyword", "full_name", "value", "text"], Te = S(""), $e = S([]), pe = S(null), ue = S(!1), xe = S(null), W = S(""), he = S(null), We = S(""), tt = S("asc");
11621
+ }, Se = /* @__PURE__ */ new Set(["is_empty", "is_not_empty", "is_true", "is_false"]), g = ["label", "name", "title", "keyword", "full_name", "value", "text"], Te = S(""), $e = S([]), pe = S(null), re = S(!1), xe = S(null), W = S(""), he = S(null), We = S(""), tt = S("asc");
11622
11622
  let yt = 1;
11623
11623
  function Z(H) {
11624
11624
  const M = H.find((L) => L && typeof L == "object");
@@ -11676,11 +11676,11 @@ const Ns = {
11676
11676
  const H = {};
11677
11677
  for (const M of Fe.value) H[M.key] = M;
11678
11678
  return H;
11679
- }), St = m(() => Array.isArray(me.config.groups) && me.config.groups.length > 0), Re = m(() => {
11679
+ }), St = m(() => Array.isArray(me.config.groups) && me.config.groups.length > 0), De = m(() => {
11680
11680
  if (!St.value) return [];
11681
11681
  const H = new Set(Fe.value.map((M) => M.key));
11682
11682
  return me.config.groups.map((M) => ({ ...M, keys: M.keys.filter((L) => H.has(L)) })).filter((M) => M.keys.length > 0);
11683
- }), re = m(() => {
11683
+ }), ue = m(() => {
11684
11684
  if (!St.value) return [];
11685
11685
  const H = new Set(me.config.groups.flatMap((M) => M.keys));
11686
11686
  return Fe.value.filter((M) => !H.has(M.key));
@@ -11703,7 +11703,7 @@ const Ns = {
11703
11703
  }
11704
11704
  function hl(H) {
11705
11705
  const M = H.target.closest(".dss-datepicker__overlay, .dss-datepicker__dropdown");
11706
- pe.value && !M && !H.target.closest(".dss-filter-popup") && !H.target.closest(".dss-filter-trigger") && !H.target.closest(".dss-filter-add-btn") && Kt(), ue.value && xe.value && !xe.value.contains(H.target) && (M || (ue.value = !1));
11706
+ pe.value && !M && !H.target.closest(".dss-filter-popup") && !H.target.closest(".dss-filter-trigger") && !H.target.closest(".dss-filter-add-btn") && Kt(), re.value && xe.value && !xe.value.contains(H.target) && (M || (re.value = !1));
11707
11707
  }
11708
11708
  Ja(() => document.addEventListener("click", hl)), wa(() => document.removeEventListener("click", hl));
11709
11709
  function Jt(H) {
@@ -11959,7 +11959,7 @@ const Ns = {
11959
11959
  return !!(H == null || H === "" || H === "NULL" || Array.isArray(H) && H.length === 0 || Array.isArray(H) && H.every((M) => M == null));
11960
11960
  }
11961
11961
  It(ye, (H) => U("update:modelValue", H), { immediate: !0 }), It(() => me.data, () => {
11962
- $e.value = [], Te.value = "", ue.value = !1, We.value = "", tt.value = "asc", Kt();
11962
+ $e.value = [], Te.value = "", re.value = !1, We.value = "", tt.value = "asc", Kt();
11963
11963
  });
11964
11964
  function nl(H) {
11965
11965
  return H.replace(/_/g, " ").replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b\w/g, (M) => M.toUpperCase());
@@ -12031,10 +12031,10 @@ const Ns = {
12031
12031
  onClick: M[0] || (M[0] = (L) => Te.value = "")
12032
12032
  }, "×")) : T("", !0),
12033
12033
  a("button", {
12034
- class: se(["dss-filter-funnel-btn", { active: ue.value || $e.value.length > 0, "dss-filter-funnel-btn--with-sort": me.showSortBy }]),
12035
- onClick: M[1] || (M[1] = (L) => ue.value = !ue.value),
12034
+ class: se(["dss-filter-funnel-btn", { active: re.value || $e.value.length > 0, "dss-filter-funnel-btn--with-sort": me.showSortBy }]),
12035
+ onClick: M[1] || (M[1] = (L) => re.value = !re.value),
12036
12036
  type: "button",
12037
- title: ue.value ? R(I)("filter.closeAdvancedFilter") : R(I)("filter.openAdvancedFilter")
12037
+ title: re.value ? R(I)("filter.closeAdvancedFilter") : R(I)("filter.openAdvancedFilter")
12038
12038
  }, [
12039
12039
  M[14] || (M[14] = a("svg", {
12040
12040
  class: "dss-filter-funnel-icon",
@@ -12092,7 +12092,7 @@ const Ns = {
12092
12092
  ], 8, $0)
12093
12093
  ])) : T("", !0)
12094
12094
  ]),
12095
- ue.value ? (u(), c("div", {
12095
+ re.value ? (u(), c("div", {
12096
12096
  key: 0,
12097
12097
  class: "dss-filter-advanced-popup",
12098
12098
  onClick: M[13] || (M[13] = qe(() => {
@@ -12133,7 +12133,7 @@ const Ns = {
12133
12133
  "onUpdate:modelValue": M[2] || (M[2] = (oe) => W.value = oe),
12134
12134
  placeholder: R(I)("filter.searchAttributes")
12135
12135
  }, null, 8, I0), [
12136
- [_l, W.value]
12136
+ [Ml, W.value]
12137
12137
  ]),
12138
12138
  a("ul", P0, [
12139
12139
  (u(!0), c(le, null, Me(je.value, (oe) => (u(), c("li", {
@@ -12184,7 +12184,7 @@ const Ns = {
12184
12184
  placeholder: R(I)("filter.enterValue"),
12185
12185
  "onUpdate:modelValue": (oe) => L.value = oe
12186
12186
  }, null, 8, X0)), [
12187
- [_l, L.value]
12187
+ [Ml, L.value]
12188
12188
  ]) : bt(L) === "date" ? (u(), c("div", Y0, [
12189
12189
  ta(Ms, {
12190
12190
  mode: "single",
@@ -12198,7 +12198,7 @@ const Ns = {
12198
12198
  placeholder: R(I)("filter.enterValue"),
12199
12199
  "onUpdate:modelValue": (oe) => L.value = oe
12200
12200
  }, null, 8, j0)), [
12201
- [_l, L.value]
12201
+ [Ml, L.value]
12202
12202
  ]) : vl(L) === "number" ? (u(), c("input", {
12203
12203
  key: 3,
12204
12204
  type: "number",
@@ -12254,7 +12254,7 @@ const Ns = {
12254
12254
  "onUpdate:modelValue": M[5] || (M[5] = (oe) => W.value = oe),
12255
12255
  placeholder: R(I)("filter.search")
12256
12256
  }, null, 8, a9)), [
12257
- [_l, W.value]
12257
+ [Ml, W.value]
12258
12258
  ]) : T("", !0),
12259
12259
  a("ul", s9, [
12260
12260
  (u(!0), c(le, null, Me(rl(L), (oe) => (u(), c("li", {
@@ -12320,10 +12320,10 @@ const Ns = {
12320
12320
  "onUpdate:modelValue": M[8] || (M[8] = (L) => W.value = L),
12321
12321
  placeholder: R(I)("filter.searchAttributes")
12322
12322
  }, null, 8, v9), [
12323
- [_l, W.value]
12323
+ [Ml, W.value]
12324
12324
  ]),
12325
12325
  a("ul", f9, [
12326
- (u(!0), c(le, null, Me(Re.value, (L) => (u(), c("li", {
12326
+ (u(!0), c(le, null, Me(De.value, (L) => (u(), c("li", {
12327
12327
  key: L.label,
12328
12328
  class: "dss-filter-popup-item dss-filter-popup-group",
12329
12329
  onClick: (ne) => he.value = L
@@ -12339,8 +12339,8 @@ const Ns = {
12339
12339
  a("polyline", { points: "9 18 15 12 9 6" })
12340
12340
  ], -1))
12341
12341
  ], 8, p9))), 128)),
12342
- re.value.length > 0 ? (u(), c("li", m9)) : T("", !0),
12343
- (u(!0), c(le, null, Me(re.value, (L) => (u(), c("li", {
12342
+ ue.value.length > 0 ? (u(), c("li", m9)) : T("", !0),
12343
+ (u(!0), c(le, null, Me(ue.value, (L) => (u(), c("li", {
12344
12344
  key: L.key,
12345
12345
  class: "dss-filter-popup-item",
12346
12346
  onClick: (ne) => Ze(L.key)
@@ -12367,7 +12367,7 @@ const Ns = {
12367
12367
  "onUpdate:modelValue": M[10] || (M[10] = (L) => W.value = L),
12368
12368
  placeholder: R(I)("filter.searchAttributes")
12369
12369
  }, null, 8, g9), [
12370
- [_l, W.value]
12370
+ [Ml, W.value]
12371
12371
  ]),
12372
12372
  a("ul", y9, [
12373
12373
  (u(!0), c(le, null, Me(nt.value, (L) => (u(), c("li", {
@@ -12384,7 +12384,7 @@ const Ns = {
12384
12384
  "onUpdate:modelValue": M[11] || (M[11] = (L) => W.value = L),
12385
12385
  placeholder: R(I)("filter.searchAttributes")
12386
12386
  }, null, 8, w9), [
12387
- [_l, W.value]
12387
+ [Ml, W.value]
12388
12388
  ]),
12389
12389
  a("ul", x9, [
12390
12390
  (u(!0), c(le, null, Me(je.value, (L) => (u(), c("li", {
@@ -12432,17 +12432,17 @@ const Ns = {
12432
12432
  const lt = Z.trim();
12433
12433
  return lt ? Te.value.has(lt) ? ($e(lt), !1) : (U.value = [...U.value, lt], I("update:modelValue", [...U.value]), !0) : !1;
12434
12434
  }
12435
- function ue(Z) {
12436
- const lt = Z.split(/\r?\n/g).map((Re) => Re.trim()).filter(Boolean);
12435
+ function re(Z) {
12436
+ const lt = Z.split(/\r?\n/g).map((De) => De.trim()).filter(Boolean);
12437
12437
  if (!lt.length) return;
12438
- const Fe = new Set(U.value.map((Re) => Re.trim()).filter(Boolean)), Ee = [...U.value];
12438
+ const Fe = new Set(U.value.map((De) => De.trim()).filter(Boolean)), Ee = [...U.value];
12439
12439
  let St = null;
12440
- for (const Re of lt) {
12441
- if (Fe.has(Re)) {
12442
- St ??= Re;
12440
+ for (const De of lt) {
12441
+ if (Fe.has(De)) {
12442
+ St ??= De;
12443
12443
  continue;
12444
12444
  }
12445
- Fe.add(Re), Ee.push(Re);
12445
+ Fe.add(De), Ee.push(De);
12446
12446
  }
12447
12447
  Ee.length !== U.value.length && (U.value = Ee, I("update:modelValue", [...U.value])), St && $e(St);
12448
12448
  }
@@ -12463,10 +12463,10 @@ const Ns = {
12463
12463
  return;
12464
12464
  }
12465
12465
  if (!Fe) {
12466
- U.value = U.value.filter((St, Re) => Re !== Z), I("update:modelValue", [...U.value]);
12466
+ U.value = U.value.filter((St, De) => De !== Z), I("update:modelValue", [...U.value]);
12467
12467
  return;
12468
12468
  }
12469
- const Ee = U.value.map((St, Re) => Re === Z ? Fe : St);
12469
+ const Ee = U.value.map((St, De) => De === Z ? Fe : St);
12470
12470
  U.value = Ee, I("update:modelValue", [...U.value]);
12471
12471
  }
12472
12472
  function tt(Z) {
@@ -12476,7 +12476,7 @@ const Ns = {
12476
12476
  if (V.disabled) return;
12477
12477
  const lt = Z.clipboardData?.getData("text") ?? "";
12478
12478
  !lt.includes(`
12479
- `) && !lt.includes("\r") || (Z.preventDefault(), ue(lt), me.value = "");
12479
+ `) && !lt.includes("\r") || (Z.preventDefault(), re(lt), me.value = "");
12480
12480
  }
12481
12481
  return It(() => V.modelValue, (Z) => {
12482
12482
  U.value = Array.isArray(Z) ? [...Z] : [];
@@ -12505,7 +12505,7 @@ const Ns = {
12505
12505
  ],
12506
12506
  onBlur: We
12507
12507
  }, null, 40, $9)), [
12508
- [_l, Se.value]
12508
+ [Ml, Se.value]
12509
12509
  ]) : (u(), c(le, { key: 1 }, [
12510
12510
  a("span", A9, A(Fe), 1),
12511
12511
  Z.disabled ? T("", !0) : (u(), c("span", E9, [
@@ -12543,7 +12543,7 @@ const Ns = {
12543
12543
  onPaste: yt,
12544
12544
  onKeydown: tn(tt, ["enter"])
12545
12545
  }, null, 40, H9), [
12546
- [_l, me.value]
12546
+ [Ml, me.value]
12547
12547
  ])
12548
12548
  ])
12549
12549
  ], 2));
@@ -12608,69 +12608,69 @@ const Ns = {
12608
12608
  }
12609
12609
  },
12610
12610
  setup(B) {
12611
- const fe = B, V = m(() => Math.max(1, Number(fe.steps) || 1)), I = m(() => Math.min(V.value, Math.max(0, Number(fe.currentStep) || 0))), me = m(() => Array.isArray(fe.segments) && fe.segments.length > 0), U = m(() => me.value ? fe.segments.map((Re, re) => {
12612
- const nt = Number(Re?.value);
12611
+ const fe = B, V = m(() => Math.max(1, Number(fe.steps) || 1)), I = m(() => Math.min(V.value, Math.max(0, Number(fe.currentStep) || 0))), me = m(() => Array.isArray(fe.segments) && fe.segments.length > 0), U = m(() => me.value ? fe.segments.map((De, ue) => {
12612
+ const nt = Number(De?.value);
12613
12613
  return {
12614
- label: Re?.label || `Step ${re + 1}`,
12614
+ label: De?.label || `Step ${ue + 1}`,
12615
12615
  value: Number.isFinite(nt) && nt > 0 ? nt : 0,
12616
- color: Re?.color || fe.activeColor
12616
+ color: De?.color || fe.activeColor
12617
12617
  };
12618
- }) : []), F = m(() => me.value ? U.value.reduce((Re, re) => Re + re.value, 0) : I.value), ee = m(() => me.value ? Number.isFinite(Number(fe.totalValue)) && Number(fe.totalValue) > 0 ? Number(fe.totalValue) : Math.max(1, F.value) : V.value), dt = m(
12618
+ }) : []), F = m(() => me.value ? U.value.reduce((De, ue) => De + ue.value, 0) : I.value), ee = m(() => me.value ? Number.isFinite(Number(fe.totalValue)) && Number(fe.totalValue) > 0 ? Number(fe.totalValue) : Math.max(1, F.value) : V.value), dt = m(
12619
12619
  () => me.value && Number.isFinite(Number(fe.totalValue)) && Number(fe.totalValue) > 0
12620
12620
  ), Se = m(() => dt.value ? Math.max(0, Number(fe.totalValue) - F.value) : 0), g = m(
12621
12621
  () => typeof fe.remainderLabel == "string" && fe.remainderLabel.trim().length > 0
12622
12622
  ), Te = m(() => Se.value > 0), $e = m(
12623
- () => U.value.filter((Re) => Re.value > 0).map((Re) => `${Re.label}: ${Re.value}`).join(" | ")
12624
- ), pe = m(() => me.value ? dt.value ? U.value.filter((Re) => Re.value > 0) : U.value : []), ue = m(() => {
12623
+ () => U.value.filter((De) => De.value > 0).map((De) => `${De.label}: ${De.value}`).join(" | ")
12624
+ ), pe = m(() => me.value ? dt.value ? U.value.filter((De) => De.value > 0) : U.value : []), re = m(() => {
12625
12625
  if (!fe.counterAsPercentage) return `${F.value} / ${ee.value}`;
12626
- const Re = Number(ee.value);
12627
- if (!Number.isFinite(Re) || Re <= 0) return "0%";
12628
- const re = Math.round(Number(F.value) / Re * 100);
12629
- return `${Math.min(Math.max(re, 0), 100)}%`;
12626
+ const De = Number(ee.value);
12627
+ if (!Number.isFinite(De) || De <= 0) return "0%";
12628
+ const ue = Math.round(Number(F.value) / De * 100);
12629
+ return `${Math.min(Math.max(ue, 0), 100)}%`;
12630
12630
  }), xe = m(() => F.value), W = m(() => ee.value), he = hs({
12631
12631
  visible: !1,
12632
12632
  x: 0,
12633
12633
  content: ""
12634
12634
  }), We = m(() => ({
12635
12635
  left: `${he.x}px`
12636
- })), tt = (Re) => {
12637
- const re = Re?.parentElement;
12638
- return re ? re.offsetLeft + re.offsetWidth / 2 : 0;
12639
- }, yt = (Re) => {
12636
+ })), tt = (De) => {
12637
+ const ue = De?.parentElement;
12638
+ return ue ? ue.offsetLeft + ue.offsetWidth / 2 : 0;
12639
+ }, yt = (De) => {
12640
12640
  if (dt.value) {
12641
- const je = Math.max(0, Number(Re.value) || 0);
12641
+ const je = Math.max(0, Number(De.value) || 0);
12642
12642
  return {
12643
12643
  flex: `${je} 0 0`,
12644
12644
  minWidth: je > 0 ? "6px" : "0",
12645
- backgroundColor: Re.color
12645
+ backgroundColor: De.color
12646
12646
  };
12647
12647
  }
12648
- const re = F.value;
12648
+ const ue = F.value;
12649
12649
  return {
12650
- flex: `${Re.value > 0 ? Re.value : re > 0 ? 1e-4 : 1} 0 0`,
12650
+ flex: `${De.value > 0 ? De.value : ue > 0 ? 1e-4 : 1} 0 0`,
12651
12651
  minWidth: "6px",
12652
- backgroundColor: Re.color
12652
+ backgroundColor: De.color
12653
12653
  };
12654
12654
  }, Z = m(() => ({
12655
12655
  flex: `${Se.value} 0 0`,
12656
12656
  minWidth: Se.value > 0 ? "6px" : "0",
12657
12657
  backgroundColor: fe.inactiveColor
12658
- })), lt = (Re, re) => {
12659
- if (!Re || !re?.currentTarget) return;
12660
- const nt = re.currentTarget;
12658
+ })), lt = (De, ue) => {
12659
+ if (!De || !ue?.currentTarget) return;
12660
+ const nt = ue.currentTarget;
12661
12661
  if (fe.remainderTooltipSummary) {
12662
12662
  he.x = tt(nt), he.content = $e.value, he.visible = !!he.content;
12663
12663
  return;
12664
12664
  }
12665
- he.x = nt.offsetLeft + nt.offsetWidth / 2, he.content = `${Re.label}: ${Re.value}`, he.visible = !0;
12666
- }, Fe = (Re) => {
12667
- if (!Se.value || !Re?.currentTarget) return;
12668
- const re = Re.currentTarget;
12665
+ he.x = nt.offsetLeft + nt.offsetWidth / 2, he.content = `${De.label}: ${De.value}`, he.visible = !0;
12666
+ }, Fe = (De) => {
12667
+ if (!Se.value || !De?.currentTarget) return;
12668
+ const ue = De.currentTarget;
12669
12669
  if (fe.remainderTooltipSummary) {
12670
- he.x = tt(re), he.content = $e.value, he.visible = !!he.content;
12670
+ he.x = tt(ue), he.content = $e.value, he.visible = !!he.content;
12671
12671
  return;
12672
12672
  }
12673
- he.x = re.offsetLeft + re.offsetWidth / 2, g.value && (he.content = `${fe.remainderLabel}: ${Se.value}`, he.visible = !0);
12673
+ he.x = ue.offsetLeft + ue.offsetWidth / 2, g.value && (he.content = `${fe.remainderLabel}: ${Se.value}`, he.visible = !0);
12674
12674
  }, Ee = () => {
12675
12675
  he.visible = !1;
12676
12676
  }, St = m(() => ({
@@ -12679,17 +12679,21 @@ const Ns = {
12679
12679
  "--dss-step-bar-active-color": fe.activeColor,
12680
12680
  "--dss-step-bar-inactive-color": fe.inactiveColor
12681
12681
  }));
12682
- return (Re, re) => (u(), c("div", {
12682
+ return (De, ue) => (u(), c("div", {
12683
12683
  class: "dss-step-bar",
12684
12684
  style: be(St.value)
12685
12685
  }, [
12686
12686
  a("div", D9, [
12687
12687
  a("span", R9, [
12688
- Ml(Re.$slots, "label", { label: B.label }, () => [
12689
- Yl(A(B.label), 1)
12688
+ xl(De.$slots, "label", { label: B.label }, () => [
12689
+ Ul(A(B.label), 1)
12690
12690
  ])
12691
12691
  ]),
12692
- B.showCounter ? (u(), c("span", V9, A(ue.value), 1)) : T("", !0)
12692
+ B.showCounter ? (u(), c("span", V9, [
12693
+ xl(De.$slots, "counter", { counterDisplay: re.value }, () => [
12694
+ Ul(A(re.value), 1)
12695
+ ])
12696
+ ])) : T("", !0)
12693
12697
  ]),
12694
12698
  a("div", N9, [
12695
12699
  a("div", {
@@ -12712,7 +12716,7 @@ const Ns = {
12712
12716
  key: 0,
12713
12717
  class: "dss-step-bar__segment dss-step-bar__segment--remainder",
12714
12718
  style: be(Z.value),
12715
- onMouseenter: re[0] || (re[0] = (nt) => Fe(nt)),
12719
+ onMouseenter: ue[0] || (ue[0] = (nt) => Fe(nt)),
12716
12720
  onMouseleave: Ee
12717
12721
  }, null, 36)) : T("", !0)
12718
12722
  ], 64)) : (u(!0), c(le, { key: 1 }, Me(V.value, (nt) => (u(), c("div", {