dsp-semactic 0.6.29 → 0.6.30

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
@@ -62,26 +62,30 @@ const Ds = {
62
62
  quickSelect: {
63
63
  type: Boolean,
64
64
  default: !0
65
+ },
66
+ placeholder: {
67
+ type: String,
68
+ default: ""
65
69
  }
66
70
  },
67
71
  emits: ["update:modelValue"],
68
72
  setup(W, { emit: De }) {
69
- const z = W, O = De, { t: Re, locale: x } = Qa(), Ie = L(!1), ve = L("days"), ft = /* @__PURE__ */ new Date(), h = g(() => z.minDate instanceof Date ? z.minDate : ft), Ce = L(h.value.getMonth()), $e = L(h.value.getFullYear()), Se = L(h.value.getMonth()), me = L(h.value.getFullYear()), ce = L(h.value.getMonth()), de = L(h.value.getFullYear()), Z = L("start"), Ne = L(null), Xe = L(null);
73
+ const B = W, z = De, { t: Re, locale: x } = Qa(), Ie = L(!1), ve = L("days"), ft = /* @__PURE__ */ new Date(), h = g(() => B.minDate instanceof Date ? B.minDate : ft), Ce = L(h.value.getMonth()), $e = L(h.value.getFullYear()), Se = L(h.value.getMonth()), me = L(h.value.getFullYear()), ce = L(h.value.getMonth()), de = L(h.value.getFullYear()), Z = L("start"), Ne = L(null), Xe = L(null);
70
74
  function at() {
71
75
  const q = h.value, G = q.getMonth(), U = q.getFullYear(), he = G === 11 ? 0 : G + 1, Ue = G === 11 ? U + 1 : U;
72
76
  return { left: { month: G, year: U }, right: { month: he, year: Ue } };
73
77
  }
74
78
  const kt = L(null), I = L(null), Me = L(null), pt = L(null), We = L(null), $t = L(null), Ee = (/* @__PURE__ */ new Date()).getFullYear(), lt = g(
75
- () => ["single", "singleFromAvailable"].includes(z.mode)
79
+ () => ["single", "singleFromAvailable"].includes(B.mode)
76
80
  ), Nt = g(
77
- () => ["range", "rangeFromAvailable"].includes(z.mode)
81
+ () => ["range", "rangeFromAvailable"].includes(B.mode)
78
82
  ), st = g(() => {
79
- if (z.mode !== "single" && z.mode !== "singleFromAvailable") return null;
80
- const q = z.modelValue;
83
+ if (B.mode !== "single" && B.mode !== "singleFromAvailable") return null;
84
+ const q = B.modelValue;
81
85
  return q instanceof Date ? q : null;
82
86
  }), Xt = g(() => {
83
87
  if (!Nt.value) return { start: null, end: null };
84
- const q = z.modelValue;
88
+ const q = B.modelValue;
85
89
  return !q || typeof q != "object" ? { start: null, end: null } : {
86
90
  start: q.start instanceof Date ? q.start : null,
87
91
  end: q.end instanceof Date ? q.end : null
@@ -98,8 +102,8 @@ const Ds = {
98
102
  const U = !G || q && q <= G ? q : G, he = !q || G && G >= q ? G : q;
99
103
  return le(U, he) ? wt(U) : `${wt(U)} - ${wt(he)}`;
100
104
  }), Ut = g(() => {
101
- if (z.mode !== "readonly") return "—";
102
- const q = z.modelValue;
105
+ if (B.mode !== "readonly") return "—";
106
+ const q = B.modelValue;
103
107
  if (q instanceof Date) return wt(q) || "—";
104
108
  if (q && typeof q == "object" && ("start" in q || "end" in q)) {
105
109
  const G = q.start instanceof Date ? q.start : null, U = q.end instanceof Date ? q.end : null;
@@ -170,7 +174,7 @@ const Ds = {
170
174
  const q = new Date(de.value, ce.value, 1);
171
175
  return new Intl.DateTimeFormat(x.value, { month: "long" }).format(q);
172
176
  }), ut = g(
173
- () => z.availableDates && z.availableDates.length > 0
177
+ () => B.availableDates && B.availableDates.length > 0
174
178
  ), ot = g(() => ut.value ? [
175
179
  { id: "all", labelKey: "datepicker.quickSelect.allDates" },
176
180
  { id: "last2", labelKey: "datepicker.quickSelect.last2Dates" },
@@ -215,17 +219,17 @@ const Ds = {
215
219
  return new Date(q.getFullYear(), q.getMonth(), q.getDate()).getTime();
216
220
  }
217
221
  function J(q) {
218
- return !z.availableDates || !z.availableDates.length ? !0 : z.availableDates.some((G) => G instanceof Date && le(G, q));
222
+ return !B.availableDates || !B.availableDates.length ? !0 : B.availableDates.some((G) => G instanceof Date && le(G, q));
219
223
  }
220
224
  function pe(q) {
221
225
  const G = K(q);
222
- return !(z.minDate instanceof Date && G < K(z.minDate) || z.maxDate instanceof Date && G > K(z.maxDate));
226
+ return !(B.minDate instanceof Date && G < K(B.minDate) || B.maxDate instanceof Date && G > K(B.maxDate));
223
227
  }
224
228
  function S(q) {
225
- return !z.exceptDates || !z.exceptDates.length ? !1 : z.exceptDates.some((G) => G instanceof Date && le(G, q));
229
+ return !B.exceptDates || !B.exceptDates.length ? !1 : B.exceptDates.some((G) => G instanceof Date && le(G, q));
226
230
  }
227
231
  function M(q) {
228
- return S(q) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(z.mode) ? J(q) : pe(q);
232
+ return S(q) ? !1 : ["singleFromAvailable", "rangeFromAvailable"].includes(B.mode) ? J(q) : pe(q);
229
233
  }
230
234
  function A(q) {
231
235
  const G = st.value, U = Xt.value, he = K(q), Ue = Nt.value && U.start && U.end && he > K(U.start) && he < K(U.end), bt = Nt.value && U.start && le(q, U.start), ht = Nt.value && U.end && le(q, U.end), dt = bt && ht, gt = lt.value && G && le(q, G) || bt || ht;
@@ -261,7 +265,7 @@ const Ds = {
261
265
  Ne.value = null;
262
266
  }
263
267
  function qe() {
264
- if (!z.doubleCalendar || !Nt.value) return;
268
+ if (!B.doubleCalendar || !Nt.value) return;
265
269
  const q = Xt.value, { start: G, end: U } = q;
266
270
  if (G && U) {
267
271
  const bt = G <= U ? G : U, ht = G <= U ? U : G, dt = bt.getMonth(), gt = bt.getFullYear(), Sl = ht.getMonth(), dl = ht.getFullYear();
@@ -286,13 +290,13 @@ const Ds = {
286
290
  Se.value = Ue.left.month, me.value = Ue.left.year, ce.value = Ue.right.month, de.value = Ue.right.year;
287
291
  }
288
292
  function Je(q = "start") {
289
- if (z.mode === "readonly") return;
293
+ if (B.mode === "readonly") return;
290
294
  Z.value = q;
291
295
  const G = st.value, U = Xt.value;
292
296
  if (lt.value && G)
293
297
  Ce.value = G.getMonth(), $e.value = G.getFullYear();
294
298
  else if (Nt.value)
295
- if (z.doubleCalendar)
299
+ if (B.doubleCalendar)
296
300
  qe();
297
301
  else {
298
302
  const he = q === "start" && U.start ? U.start : U.end || U.start;
@@ -315,7 +319,7 @@ const Ds = {
315
319
  const G = /* @__PURE__ */ new Date(), U = G.getFullYear(), he = G.getMonth(), Ue = G.getDate();
316
320
  let bt, ht;
317
321
  if (ut.value) {
318
- const dt = [...z.availableDates].filter((gt) => gt instanceof Date).map((gt) => new Date(gt.getFullYear(), gt.getMonth(), gt.getDate()));
322
+ const dt = [...B.availableDates].filter((gt) => gt instanceof Date).map((gt) => new Date(gt.getFullYear(), gt.getMonth(), gt.getDate()));
319
323
  if (dt.sort((gt, Sl) => gt.getTime() - Sl.getTime()), dt.length === 0) return;
320
324
  if (q === "all")
321
325
  bt = dt[0], ht = dt[dt.length - 1];
@@ -359,7 +363,7 @@ const Ds = {
359
363
  return;
360
364
  }
361
365
  }
362
- O("update:modelValue", { start: bt, end: ht }), qe();
366
+ z("update:modelValue", { start: bt, end: ht }), qe();
363
367
  }
364
368
  function Ye(q) {
365
369
  Xe.value === "left" ? Se.value = q : Xe.value === "right" ? ce.value = q : Ce.value = q, Rt();
@@ -389,28 +393,28 @@ const Ds = {
389
393
  if (!M(q)) return;
390
394
  const G = new Date(q.getFullYear(), q.getMonth(), q.getDate());
391
395
  if (lt.value) {
392
- O("update:modelValue", G), Oe();
396
+ z("update:modelValue", G), Oe();
393
397
  return;
394
398
  }
395
399
  const U = Xt.value;
396
400
  if (!U.start && !U.end) {
397
- O("update:modelValue", { start: G, end: null }), Z.value = "end";
401
+ z("update:modelValue", { start: G, end: null }), Z.value = "end";
398
402
  return;
399
403
  }
400
404
  if (U.start && U.end) {
401
- O("update:modelValue", { start: G, end: null }), Z.value = "end";
405
+ z("update:modelValue", { start: G, end: null }), Z.value = "end";
402
406
  return;
403
407
  }
404
408
  if (Z.value === "start") {
405
409
  let he = G, Ue = U.end;
406
- he && Ue && he > Ue && ([he, Ue] = [Ue, he]), O("update:modelValue", { start: he || Ue, end: Ue || he }), Z.value = "end";
410
+ he && Ue && he > Ue && ([he, Ue] = [Ue, he]), z("update:modelValue", { start: he || Ue, end: Ue || he }), Z.value = "end";
407
411
  } else {
408
412
  let he = U.start, Ue = G;
409
- he && Ue && Ue < he && ([he, Ue] = [Ue, he]), O("update:modelValue", { start: he || Ue, end: Ue || he }), Z.value = "start";
413
+ he && Ue && Ue < he && ([he, Ue] = [Ue, he]), z("update:modelValue", { start: he || Ue, end: Ue || he }), Z.value = "start";
410
414
  }
411
415
  }
412
416
  Zt(Xt, () => {
413
- z.doubleCalendar && Nt.value && Ie.value && qe();
417
+ B.doubleCalendar && Nt.value && Ie.value && qe();
414
418
  }, { deep: !0 });
415
419
  let cl = null, bl = null, Jl = null;
416
420
  function zl() {
@@ -484,7 +488,7 @@ const Ds = {
484
488
  ref: kt,
485
489
  type: "text",
486
490
  class: "dss-datepicker__input",
487
- placeholder: Y(Re)("datepicker.selectDate"),
491
+ placeholder: B.placeholder || Y(Re)("datepicker.selectDate"),
488
492
  value: It.value,
489
493
  readonly: "",
490
494
  disabled: W.mode === "readonly"
@@ -517,7 +521,7 @@ const Ds = {
517
521
  ref: Me,
518
522
  type: "text",
519
523
  class: "dss-datepicker__input",
520
- placeholder: Y(Re)("datepicker.selectRange"),
524
+ placeholder: B.placeholder || Y(Re)("datepicker.selectRange"),
521
525
  value: Ml.value,
522
526
  readonly: ""
523
527
  }, null, 8, Is)
@@ -872,7 +876,7 @@ const Ds = {
872
876
  },
873
877
  emits: ["add-marker", "update-marker", "delete-marker"],
874
878
  setup(W, { emit: De }) {
875
- const { t: z, locale: O } = Qa(), Re = De, x = L(null), Ie = L(null), ve = L(null), ft = L(0), h = L(0);
879
+ const { t: B, locale: z } = Qa(), Re = De, x = L(null), Ie = L(null), ve = L(null), ft = L(0), h = L(0);
876
880
  let Ce = null, $e = null;
877
881
  const Se = 20, me = g(() => {
878
882
  if (h.value, ft.value, !x.value || !Ie.value) return 0;
@@ -1303,7 +1307,7 @@ const Ds = {
1303
1307
  return 0;
1304
1308
  let r = 0, m = 1 / 0;
1305
1309
  return o.forEach((C, E) => {
1306
- const [_, P, F] = C.split("-"), B = Number(F?.length === 2 ? `20${F}` : F), V = new Date(B, Number(P) - 1, Number(_)), oe = Math.abs(V - t);
1310
+ const [_, P, F] = C.split("-"), O = Number(F?.length === 2 ? `20${F}` : F), V = new Date(O, Number(P) - 1, Number(_)), oe = Math.abs(V - t);
1307
1311
  oe < m && (m = oe, r = E);
1308
1312
  }), r;
1309
1313
  }
@@ -1356,10 +1360,10 @@ const Ds = {
1356
1360
  }), gt = g(() => {
1357
1361
  const { width: e, height: o } = dt.value, t = ht.value;
1358
1362
  let r, m;
1359
- const C = X.value.left, E = X.value.right, _ = X.value.top, P = X.value.bottom, F = X.value.width, B = X.value.height;
1363
+ const C = X.value.left, E = X.value.right, _ = X.value.top, P = X.value.bottom, F = X.value.width, O = X.value.height;
1360
1364
  switch (t) {
1361
1365
  case "center":
1362
- r = C + (F - e) / 2, m = _ + (B - o) / 2;
1366
+ r = C + (F - e) / 2, m = _ + (O - o) / 2;
1363
1367
  break;
1364
1368
  case "top-left":
1365
1369
  r = C + 15, m = _ + 5;
@@ -1383,14 +1387,14 @@ const Ds = {
1383
1387
  }), Sl = (e) => !Z.flags || !Z.flags.length ? [] : Z.flags.filter((o) => o.categoryIndex === e), dl = (e) => {
1384
1388
  const o = Sl(e), t = ra(e), r = o.filter((E) => E.manual), m = o.filter((E) => !E.manual), C = [];
1385
1389
  return r.length > 0 && C.push({
1386
- type: z("chart.tooltip.manualFlags"),
1390
+ type: B("chart.tooltip.manualFlags"),
1387
1391
  color: "#698dbe",
1388
1392
  flags: r.map((E) => ({
1389
1393
  text: E.text,
1390
1394
  color: "#698dbe"
1391
1395
  }))
1392
1396
  }), m.length > 0 && C.push({
1393
- type: z("chart.tooltip.autoFlags"),
1397
+ type: B("chart.tooltip.autoFlags"),
1394
1398
  color: "#a1d499",
1395
1399
  flags: m.map((E) => ({
1396
1400
  text: E.text,
@@ -1401,7 +1405,7 @@ const Ds = {
1401
1405
  markers: t.map((E) => ({
1402
1406
  title: E.title,
1403
1407
  description: E.description,
1404
- type: z("chart.tooltip.markers"),
1408
+ type: B("chart.tooltip.markers"),
1405
1409
  color: E.color || "#9784ba"
1406
1410
  }))
1407
1411
  };
@@ -1602,7 +1606,7 @@ const Ds = {
1602
1606
  }), g(() => {
1603
1607
  if (!Z.categories || Z.categories.length === 0) {
1604
1608
  const { maxX: e } = el.value;
1605
- return Array.from({ length: e + 1 }, (o, t) => z("chart.fallback.item", { number: t + 1 }));
1609
+ return Array.from({ length: e + 1 }, (o, t) => B("chart.fallback.item", { number: t + 1 }));
1606
1610
  }
1607
1611
  return Z.categories;
1608
1612
  });
@@ -1685,7 +1689,7 @@ const Ds = {
1685
1689
  vt.value.show = !1;
1686
1690
  return;
1687
1691
  }
1688
- const { minX: E, maxX: _ } = el.value, P = _ - E || 1, F = P / ne.value.scale, B = E - ne.value.offsetX / X.value.width * P, V = (r - X.value.left) / X.value.width, oe = B + V * F, Ae = Math.round(oe);
1692
+ const { minX: E, maxX: _ } = el.value, P = _ - E || 1, F = P / ne.value.scale, O = E - ne.value.offsetX / X.value.width * P, V = (r - X.value.left) / X.value.width, oe = O + V * F, Ae = Math.round(oe);
1689
1693
  if (Ae >= 0 && Ae <= _) {
1690
1694
  const tt = ol(Ae), fe = Bn.value.map((xe, Te) => {
1691
1695
  const ge = Z.series.findIndex((et) => et === xe), rt = xe.data[Ae];
@@ -1719,7 +1723,7 @@ const Ds = {
1719
1723
  const m = Math.max(0, X.value.left - 20), C = X.value.right, E = X.value.top, _ = X.value.bottom + 80;
1720
1724
  t >= m && t <= C && r >= E && r <= _ && (Et.value.show = !1, be(() => {
1721
1725
  Et.value.show = !0, Et.value.x = e.clientX, Et.value.y = e.clientY, Et.value.categoryIndex = null;
1722
- const P = Math.max(X.value.left, Math.min(t, X.value.right)) - X.value.left, B = X.value.width / On.value.length, V = Math.floor(P / B);
1726
+ const P = Math.max(X.value.left, Math.min(t, X.value.right)) - X.value.left, O = X.value.width / On.value.length, V = Math.floor(P / O);
1723
1727
  V >= 0 && V < On.value.length && (Et.value.categoryIndex = V);
1724
1728
  }));
1725
1729
  }, nt = (e) => {
@@ -1884,7 +1888,7 @@ const Ds = {
1884
1888
  }
1885
1889
  });
1886
1890
  await Promise.all(P);
1887
- const B = new XMLSerializer().serializeToString(C).replace(/<svg[^>]*>/, "").replace("</svg>", "");
1891
+ const O = new XMLSerializer().serializeToString(C).replace(/<svg[^>]*>/, "").replace("</svg>", "");
1888
1892
  let V = "", oe = 30;
1889
1893
  if (wt.value && (V += `
1890
1894
  <text x="24" y="${oe}"
@@ -1968,7 +1972,7 @@ const Ds = {
1968
1972
  <rect width="100%" height="100%" fill="#fafafa"/>
1969
1973
  ${V}
1970
1974
  <g transform="translate(0, ${t.height})">
1971
- ${B}
1975
+ ${O}
1972
1976
  ${Ae}
1973
1977
  </g>
1974
1978
  </svg>`, fe = new Blob([tt], { type: "image/svg+xml;charset=utf-8" }), xe = URL.createObjectURL(fe), Te = document.createElement("a");
@@ -1998,8 +2002,8 @@ const Ds = {
1998
2002
  }
1999
2003
  });
2000
2004
  }
2001
- const F = Ie.value.cloneNode(!0), B = F.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text"), V = F.querySelectorAll(".dss-crosshair"), oe = F.querySelectorAll('[class*="tooltip"]');
2002
- B.forEach((ge) => ge.remove()), V.forEach((ge) => ge.remove()), oe.forEach((ge) => ge.remove()), F.querySelectorAll("image").forEach((ge, rt) => {
2005
+ const F = Ie.value.cloneNode(!0), O = F.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text"), V = F.querySelectorAll(".dss-crosshair"), oe = F.querySelectorAll('[class*="tooltip"]');
2006
+ O.forEach((ge) => ge.remove()), V.forEach((ge) => ge.remove()), oe.forEach((ge) => ge.remove()), F.querySelectorAll("image").forEach((ge, rt) => {
2003
2007
  const et = ge.getAttribute("xlink:href") || ge.getAttribute("href");
2004
2008
  if (et && !et.startsWith("data:")) {
2005
2009
  const ze = tl.value[rt], Pe = ze ? Qt(ze.seriesIndex) : "#3B82F6", Qe = ge.getAttribute("x") || 0, Ft = ge.getAttribute("y") || 0, zt = ge.getAttribute("width") || 32, Ul = ge.getAttribute("height") || 32, nl = document.createElementNS("http://www.w3.org/2000/svg", "circle");
@@ -2061,9 +2065,9 @@ const Ds = {
2061
2065
  }, ta = () => {
2062
2066
  try {
2063
2067
  let e = "";
2064
- wt.value && (e += `# ${z("chart.csv.chartTitle")}: ${wt.value}
2065
- `), It.value && (e += `# ${z("chart.csv.chartSubtitle")}: ${It.value}
2066
- `), e += `# ${z("chart.csv.generated")}: ${(/* @__PURE__ */ new Date()).toLocaleString()}
2068
+ wt.value && (e += `# ${B("chart.csv.chartTitle")}: ${wt.value}
2069
+ `), It.value && (e += `# ${B("chart.csv.chartSubtitle")}: ${It.value}
2070
+ `), e += `# ${B("chart.csv.generated")}: ${(/* @__PURE__ */ new Date()).toLocaleString()}
2067
2071
 
2068
2072
  `, e += "Category", Z.series.forEach((C) => {
2069
2073
  const E = C.name.replace(/"/g, '""');
@@ -2072,10 +2076,10 @@ const Ds = {
2072
2076
  `;
2073
2077
  const o = Math.max(...Z.series.map((C) => C.data?.length || 0));
2074
2078
  for (let C = 0; C < o; C++) {
2075
- let P = '"' + (Z.categories[C] || z("chart.fallback.item", { number: C + 1 })).toString().replace(/"/g, '""') + '"';
2079
+ let P = '"' + (Z.categories[C] || B("chart.fallback.item", { number: C + 1 })).toString().replace(/"/g, '""') + '"';
2076
2080
  Z.series.forEach((F) => {
2077
- const B = F.data && F.data[C] !== void 0 ? F.data[C] : "";
2078
- P += "," + B;
2081
+ const O = F.data && F.data[C] !== void 0 ? F.data[C] : "";
2082
+ P += "," + O;
2079
2083
  }), e += P + `
2080
2084
  `;
2081
2085
  }
@@ -2124,7 +2128,7 @@ const Ds = {
2124
2128
  Math.min(ne.value.maxScale, ne.value.scale * C)
2125
2129
  );
2126
2130
  if (E !== ne.value.scale) {
2127
- const { minX: _, maxX: P } = el.value, F = P - _ || 1, B = F / ne.value.scale, V = _ - ne.value.offsetX / X.value.width * F, oe = (r - X.value.left) / X.value.width, Ae = V + oe * B;
2131
+ const { minX: _, maxX: P } = el.value, F = P - _ || 1, O = F / ne.value.scale, V = _ - ne.value.offsetX / X.value.width * F, oe = (r - X.value.left) / X.value.width, Ae = V + oe * O;
2128
2132
  ne.value.scale = E;
2129
2133
  const tt = F / ne.value.scale, fe = Ae - oe * tt;
2130
2134
  ne.value.offsetX = -(fe - _) / F * X.value.width, ne.value.scale <= 1.01 && (ne.value.scale = 1, ne.value.offsetX = 0);
@@ -2147,8 +2151,8 @@ const Ds = {
2147
2151
  return `M ${e[0].x} ${e[0].y} L ${e[1].x} ${e[1].y}`;
2148
2152
  let o = `M ${e[0].x} ${e[0].y}`;
2149
2153
  for (let t = 0; t < e.length - 1; t++) {
2150
- const r = e[Math.max(t - 1, 0)], m = e[t], C = e[t + 1], E = e[Math.min(t + 2, e.length - 1)], _ = m.x + (C.x - r.x) / 6 * S.value, P = m.y + (C.y - r.y) / 6 * S.value, F = C.x - (E.x - m.x) / 6 * S.value, B = C.y - (E.y - m.y) / 6 * S.value;
2151
- o += ` C ${_} ${P} ${F} ${B} ${C.x} ${C.y}`;
2154
+ const r = e[Math.max(t - 1, 0)], m = e[t], C = e[t + 1], E = e[Math.min(t + 2, e.length - 1)], _ = m.x + (C.x - r.x) / 6 * S.value, P = m.y + (C.y - r.y) / 6 * S.value, F = C.x - (E.x - m.x) / 6 * S.value, O = C.y - (E.y - m.y) / 6 * S.value;
2155
+ o += ` C ${_} ${P} ${F} ${O} ${C.x} ${C.y}`;
2152
2156
  }
2153
2157
  return o;
2154
2158
  }, Bl = g(() => {
@@ -2178,8 +2182,8 @@ const Ds = {
2178
2182
  const _ = at();
2179
2183
  let P = m + 16, F = m;
2180
2184
  Wt.value && Pt.value === "left" ? P += _.legendWidth || 150 : Wt.value && Pt.value === "right" && (F += _.legendWidth || 150);
2181
- const B = { left: P, top: m + E, right: F, bottom: C };
2182
- return t != null ? { left: t, top: t, right: t, bottom: t } : r ? { left: r.left ?? B.left, top: r.top ?? B.top, right: r.right ?? B.right, bottom: r.bottom ?? B.bottom } : B;
2185
+ const O = { left: P, top: m + E, right: F, bottom: C };
2186
+ return t != null ? { left: t, top: t, right: t, bottom: t } : r ? { left: r.left ?? O.left, top: r.top ?? O.top, right: r.right ?? O.right, bottom: r.bottom ?? O.bottom } : O;
2183
2187
  }), X = g(() => ({
2184
2188
  left: Bl.value.left,
2185
2189
  top: Bl.value.top,
@@ -2217,8 +2221,8 @@ const Ds = {
2217
2221
  ), Fa = g(() => {
2218
2222
  const e = Jt.value ? Kl.value : 1, o = Bt.value, t = Ot.value, r = ul.value, m = Tt.value, C = Math.PI, E = Math.PI + e * Math.PI;
2219
2223
  if (e <= 0) return `M ${o} ${t} L ${o} ${t} Z`;
2220
- const _ = o + m * Math.cos(C), P = t + m * Math.sin(C), F = o + m * Math.cos(E), B = t + m * Math.sin(E), V = o + r * Math.cos(E), oe = t + r * Math.sin(E), Ae = o + r * Math.cos(C), tt = t + r * Math.sin(C), fe = e > 0.5 ? 1 : 0;
2221
- return `M ${o} ${t} L ${_} ${P} A ${m} ${m} 0 ${fe} 1 ${F} ${B} L ${V} ${oe} A ${r} ${r} 0 ${fe} 1 ${Ae} ${tt} Z`;
2224
+ const _ = o + m * Math.cos(C), P = t + m * Math.sin(C), F = o + m * Math.cos(E), O = t + m * Math.sin(E), V = o + r * Math.cos(E), oe = t + r * Math.sin(E), Ae = o + r * Math.cos(C), tt = t + r * Math.sin(C), fe = e > 0.5 ? 1 : 0;
2225
+ return `M ${o} ${t} L ${_} ${P} A ${m} ${m} 0 ${fe} 1 ${F} ${O} L ${V} ${oe} A ${r} ${r} 0 ${fe} 1 ${Ae} ${tt} Z`;
2222
2226
  }), Ln = g(() => {
2223
2227
  if (!(!ln.value || !Jt.value) && !la.value)
2224
2228
  return `url(#${kn.value})`;
@@ -2232,8 +2236,8 @@ const Ds = {
2232
2236
  const V = o - r, oe = o + r;
2233
2237
  return `M ${V} ${t} A ${r} ${r} 0 0 1 ${oe} ${t} A ${r} ${r} 0 0 1 ${V} ${t} Z`;
2234
2238
  }
2235
- const m = -Math.PI / 2, C = m + e * Math.PI * 2, E = o + r * Math.cos(m), _ = t + r * Math.sin(m), P = o + r * Math.cos(C), F = t + r * Math.sin(C), B = e >= 0.5 ? 1 : 0;
2236
- return `M ${o} ${t} L ${E} ${_} A ${r} ${r} 0 ${B} 1 ${P} ${F} Z`;
2239
+ const m = -Math.PI / 2, C = m + e * Math.PI * 2, E = o + r * Math.cos(m), _ = t + r * Math.sin(m), P = o + r * Math.cos(C), F = t + r * Math.sin(C), O = e >= 0.5 ? 1 : 0;
2240
+ return `M ${o} ${t} L ${E} ${_} A ${r} ${r} 0 ${O} 1 ${P} ${F} Z`;
2237
2241
  }), as = g(() => {
2238
2242
  if (Ln.value) return Ln.value;
2239
2243
  if (Ol.value) return `url(#${Tn.value})`;
@@ -2313,10 +2317,10 @@ const Ds = {
2313
2317
  return { minX: 0, maxX: 8, minY: 0, maxY: 50, minSize: 10, maxSize: 30 };
2314
2318
  e === o && (e = Math.min(e, 0), o = Math.max(o, Z.categories?.length - 1 || 8)), t === r && (t = Math.max(0, t - 10), r = t + 20);
2315
2319
  const _ = o - e, P = r - t;
2316
- let F, B, V, oe;
2317
- return qt.value !== null ? F = qt.value : F = e - _ * 0.1, Kt.value !== null ? B = Kt.value : B = o + _ * 0.1, mt.value !== null && typeof mt.value == "number" ? V = mt.value : V = Math.max(0, t - P * 0.1), Vt.value !== null && typeof Vt.value == "number" ? oe = Vt.value : oe = r + P * 0.1, {
2320
+ let F, O, V, oe;
2321
+ return qt.value !== null ? F = qt.value : F = e - _ * 0.1, Kt.value !== null ? O = Kt.value : O = o + _ * 0.1, mt.value !== null && typeof mt.value == "number" ? V = mt.value : V = Math.max(0, t - P * 0.1), Vt.value !== null && typeof Vt.value == "number" ? oe = Vt.value : oe = r + P * 0.1, {
2318
2322
  minX: F,
2319
- maxX: B,
2323
+ maxX: O,
2320
2324
  minY: V,
2321
2325
  maxY: oe,
2322
2326
  minSize: m,
@@ -2363,15 +2367,15 @@ const Ds = {
2363
2367
  xe.push({
2364
2368
  x: Qe,
2365
2369
  y: X.value.bottom + 20,
2366
- text: Z.categories[Pe] || z("chart.fallback.item", { number: Pe + 1 })
2370
+ text: Z.categories[Pe] || B("chart.fallback.item", { number: Pe + 1 })
2367
2371
  });
2368
2372
  }
2369
2373
  return xe;
2370
2374
  }
2371
- const e = [], { minX: o, maxX: t } = el.value, r = qt.value !== null ? qt.value : o, m = Kt.value !== null ? Kt.value : t, C = m - r || 1, E = C / ne.value.scale, _ = r - ne.value.offsetX / X.value.width * C, P = _ + E, F = Math.max(0, Math.floor(_ - 2)), B = Math.min(m, Math.ceil(P + 2)), V = B - F, oe = X.value.width, tt = Math.floor(oe / 60);
2375
+ const e = [], { minX: o, maxX: t } = el.value, r = qt.value !== null ? qt.value : o, m = Kt.value !== null ? Kt.value : t, C = m - r || 1, E = C / ne.value.scale, _ = r - ne.value.offsetX / X.value.width * C, P = _ + E, F = Math.max(0, Math.floor(_ - 2)), O = Math.min(m, Math.ceil(P + 2)), V = O - F, oe = X.value.width, tt = Math.floor(oe / 60);
2372
2376
  let fe = 1;
2373
2377
  V > tt && (fe = Math.ceil(V / tt));
2374
- for (let xe = F; xe <= B; xe += fe)
2378
+ for (let xe = F; xe <= O; xe += fe)
2375
2379
  if (xe >= 0 && xe <= m) {
2376
2380
  const Te = ol(xe);
2377
2381
  Te >= X.value.left - 100 && Te <= X.value.right + 100 && e.push({
@@ -2442,9 +2446,9 @@ const Ds = {
2442
2446
  } else if (typeof document < "u") {
2443
2447
  const F = document.createElement("span");
2444
2448
  F.style.color = o, F.style.display = "none", document.body.appendChild(F);
2445
- const B = getComputedStyle(F).color;
2449
+ const O = getComputedStyle(F).color;
2446
2450
  document.body.removeChild(F);
2447
- const V = B.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
2451
+ const V = O.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i);
2448
2452
  if (V)
2449
2453
  t = Number(V[1]) / 255, r = Number(V[2]) / 255, m = Number(V[3]) / 255;
2450
2454
  else
@@ -2501,7 +2505,7 @@ const Ds = {
2501
2505
  pe.value ? oe = ua(V) : oe = `M ${V[0].x} ${V[0].y}` + V.slice(1).map((Ae) => ` L ${Ae.x} ${Ae.y}`).join(""), E += (E ? " " : "") + oe;
2502
2506
  }
2503
2507
  });
2504
- const _ = m.reduce((V, oe) => V + Yn(oe), 0), P = At.value.has(r), F = _e.value === r, B = _e.value !== null && _e.value !== r;
2508
+ const _ = m.reduce((V, oe) => V + Yn(oe), 0), P = At.value.has(r), F = _e.value === r, O = _e.value !== null && _e.value !== r;
2505
2509
  return {
2506
2510
  path: E,
2507
2511
  color: Qt(r),
@@ -2509,7 +2513,7 @@ const Ds = {
2509
2513
  seriesIndex: r,
2510
2514
  animationDelay: t * Ve.value,
2511
2515
  isHighlighted: F,
2512
- isDimmed: B,
2516
+ isDimmed: O,
2513
2517
  isHidden: P
2514
2518
  };
2515
2519
  }) : []), qa = g(() => {
@@ -2522,8 +2526,8 @@ const Ds = {
2522
2526
  if (E != null) {
2523
2527
  let _ = -1, P = 0;
2524
2528
  for (let F = C + 1; F < t.data.length; F++) {
2525
- const B = t.data[F];
2526
- if (B == null)
2529
+ const O = t.data[F];
2530
+ if (O == null)
2527
2531
  P++;
2528
2532
  else {
2529
2533
  _ = F;
@@ -2531,9 +2535,9 @@ const Ds = {
2531
2535
  }
2532
2536
  }
2533
2537
  if (P > 0 && _ !== -1) {
2534
- const F = t.data[_], B = wl.value ? wn(E) : ol(C), V = wl.value ? jl(C) : xl(E), oe = wl.value ? wn(F) : ol(_), Ae = wl.value ? jl(_) : xl(F), tt = At.value.has(m), fe = _e.value === m, xe = _e.value !== null && _e.value !== m;
2538
+ const F = t.data[_], O = wl.value ? wn(E) : ol(C), V = wl.value ? jl(C) : xl(E), oe = wl.value ? wn(F) : ol(_), Ae = wl.value ? jl(_) : xl(F), tt = At.value.has(m), fe = _e.value === m, xe = _e.value !== null && _e.value !== m;
2535
2539
  o.push({
2536
- path: `M ${B} ${V} L ${oe} ${Ae}`,
2540
+ path: `M ${O} ${V} L ${oe} ${Ae}`,
2537
2541
  color: Qt(m),
2538
2542
  seriesIndex: m,
2539
2543
  animationDelay: r * Ve.value,
@@ -2551,17 +2555,17 @@ const Ds = {
2551
2555
  let m = "", C = null;
2552
2556
  o.data.forEach((P, F) => {
2553
2557
  if (P != null) {
2554
- const B = {
2558
+ const O = {
2555
2559
  x: wl.value ? wn(P) : ol(F),
2556
2560
  y: wl.value ? jl(F) : xl(P)
2557
2561
  };
2558
- C === null ? m += `M ${B.x} ${B.y}` : m += ` L ${B.x} ${B.y}`, C = B;
2562
+ C === null ? m += `M ${O.x} ${O.y}` : m += ` L ${O.x} ${O.y}`, C = O;
2559
2563
  } else if (C !== null) {
2560
- const B = o.data.findIndex((V, oe) => oe > F && V !== null && V !== void 0);
2561
- if (B !== -1) {
2564
+ const O = o.data.findIndex((V, oe) => oe > F && V !== null && V !== void 0);
2565
+ if (O !== -1) {
2562
2566
  const V = {
2563
- x: wl.value ? wn(o.data[B]) : ol(B),
2564
- y: wl.value ? jl(B) : xl(o.data[B])
2567
+ x: wl.value ? wn(o.data[O]) : ol(O),
2568
+ y: wl.value ? jl(O) : xl(o.data[O])
2565
2569
  };
2566
2570
  m += ` L ${V.x} ${V.y}`, C = V;
2567
2571
  }
@@ -2629,21 +2633,21 @@ const Ds = {
2629
2633
  if (!o?.data?.length) return;
2630
2634
  const r = _e.value, m = r !== null && r === t, C = r !== null && r !== t, E = At.value.has(t);
2631
2635
  o.data.forEach((_, P) => {
2632
- let F, B, V, oe, Ae;
2636
+ let F, O, V, oe, Ae;
2633
2637
  if (typeof _ == "object" && _ !== null && !Array.isArray(_))
2634
- F = typeof _.x == "number" ? _.x : P, B = typeof _.y == "number" ? _.y : 0, V = typeof _.size == "number" ? _.size : 20, oe = _.label || Z.categories?.[P] || `Point ${P + 1}`, Ae = _.image || _.imageUrl;
2638
+ F = typeof _.x == "number" ? _.x : P, O = typeof _.y == "number" ? _.y : 0, V = typeof _.size == "number" ? _.size : 20, oe = _.label || Z.categories?.[P] || `Point ${P + 1}`, Ae = _.image || _.imageUrl;
2635
2639
  else if (Array.isArray(_) && _.length >= 3)
2636
- F = typeof _[0] == "number" ? _[0] : P, B = typeof _[1] == "number" ? _[1] : 0, V = typeof _[2] == "number" ? _[2] : 20, oe = _[3] || Z.categories?.[P] || `Point ${P + 1}`, Ae = _[4];
2640
+ F = typeof _[0] == "number" ? _[0] : P, O = typeof _[1] == "number" ? _[1] : 0, V = typeof _[2] == "number" ? _[2] : 20, oe = _[3] || Z.categories?.[P] || `Point ${P + 1}`, Ae = _[4];
2637
2641
  else if (typeof _ == "number")
2638
- F = P, B = _, V = za(t, P), oe = Z.categories?.[P] || `Point ${P + 1}`;
2642
+ F = P, O = _, V = za(t, P), oe = Z.categories?.[P] || `Point ${P + 1}`;
2639
2643
  else
2640
2644
  return;
2641
- !isFinite(F) || !isFinite(B) || !isFinite(V) || e.push({
2645
+ !isFinite(F) || !isFinite(O) || !isFinite(V) || e.push({
2642
2646
  x: ol(F),
2643
- y: xl(B),
2647
+ y: xl(O),
2644
2648
  radius: Wa(V),
2645
2649
  originalX: F,
2646
- originalY: B,
2650
+ originalY: O,
2647
2651
  originalSize: V,
2648
2652
  color: Qt(t),
2649
2653
  seriesName: o.name || `Series ${t + 1}`,
@@ -2694,12 +2698,12 @@ const Ds = {
2694
2698
  });
2695
2699
  tt += ` L ${V[V.length - 1].x} ${m} Z`, E += (E ? " " : "") + tt;
2696
2700
  });
2697
- const _ = _e.value === o, P = _e.value !== null && _e.value !== o, F = At.value.has(o), B = t.reduce((V, oe) => V + Yn(oe), 0);
2701
+ const _ = _e.value === o, P = _e.value !== null && _e.value !== o, F = At.value.has(o), O = t.reduce((V, oe) => V + Yn(oe), 0);
2698
2702
  return {
2699
2703
  linePath: C,
2700
2704
  areaPath: E,
2701
2705
  color: Qt(o),
2702
- pathLength: B,
2706
+ pathLength: O,
2703
2707
  isHighlighted: _,
2704
2708
  isDimmed: P,
2705
2709
  isHidden: F
@@ -2708,23 +2712,23 @@ const Ds = {
2708
2712
  if (!(["bar"].includes(st.value) || Yl.value)) return [];
2709
2713
  const e = [], { maxX: o } = el.value, t = Yl.value ? Z.series.filter((m) => (m.type || st.value) === "bar") : nn.value, r = t.length;
2710
2714
  if (wl.value) {
2711
- const m = o + 1, E = X.value.height / m, _ = E * (2 / 3), P = Math.min(4, _ / r * 0.15), F = _ - (r - 1) * P, B = Math.max(4, F / r);
2715
+ const m = o + 1, E = X.value.height / m, _ = E * (2 / 3), P = Math.min(4, _ / r * 0.15), F = _ - (r - 1) * P, O = Math.max(4, F / r);
2712
2716
  t.forEach((V, oe) => {
2713
2717
  const Ae = Z.series.findIndex((Te) => Te === V), tt = _e.value === Ae, fe = _e.value !== null && _e.value !== Ae, xe = At.value.has(Ae);
2714
2718
  V.data.forEach((Te, ge) => {
2715
2719
  if (Te == null || typeof Te != "number" || !isFinite(Te))
2716
2720
  return;
2717
- const ze = X.value.top + (ge + 0.5) * E - _ / 2 + oe * (B + P), Pe = X.value.left, Qe = Math.abs(wn(Te) - X.value.left);
2721
+ const ze = X.value.top + (ge + 0.5) * E - _ / 2 + oe * (O + P), Pe = X.value.left, Qe = Math.abs(wn(Te) - X.value.left);
2718
2722
  let Ft = "";
2719
2723
  if (pe.value && Qe > 0) {
2720
- const zt = Math.min(M.value, B / 2, Qe / 2);
2724
+ const zt = Math.min(M.value, O / 2, Qe / 2);
2721
2725
  Ft = [
2722
2726
  `M ${Pe} ${ze}`,
2723
2727
  `L ${Pe + Qe - zt} ${ze}`,
2724
2728
  `Q ${Pe + Qe} ${ze} ${Pe + Qe} ${ze + zt}`,
2725
- `L ${Pe + Qe} ${ze + B - zt}`,
2726
- `Q ${Pe + Qe} ${ze + B} ${Pe + Qe - zt} ${ze + B}`,
2727
- `L ${Pe} ${ze + B}`,
2729
+ `L ${Pe + Qe} ${ze + O - zt}`,
2730
+ `Q ${Pe + Qe} ${ze + O} ${Pe + Qe - zt} ${ze + O}`,
2731
+ `L ${Pe} ${ze + O}`,
2728
2732
  "Z"
2729
2733
  ].join(" ");
2730
2734
  }
@@ -2732,7 +2736,7 @@ const Ds = {
2732
2736
  x: Pe,
2733
2737
  y: ze,
2734
2738
  width: Qe,
2735
- height: B,
2739
+ height: O,
2736
2740
  color: Qt(r === 1 ? ge : Ae),
2737
2741
  value: Te,
2738
2742
  label: Z.categories[ge] || ge.toString(),
@@ -2747,7 +2751,7 @@ const Ds = {
2747
2751
  });
2748
2752
  });
2749
2753
  } else {
2750
- const m = o + 1, E = X.value.width / m, _ = E * 0.8, P = _ / r, F = P * 0.05, B = P - F;
2754
+ const m = o + 1, E = X.value.width / m, _ = E * 0.8, P = _ / r, F = P * 0.05, O = P - F;
2751
2755
  t.forEach((V, oe) => {
2752
2756
  const Ae = Z.series.findIndex((Te) => Te === V), tt = _e.value === Ae, fe = _e.value !== null && _e.value !== Ae, xe = At.value.has(Ae);
2753
2757
  V.data.forEach((Te, ge) => {
@@ -2756,21 +2760,21 @@ const Ds = {
2756
2760
  const ze = X.value.left + (ge + 0.5) * E - _ / 2 + oe * P + F / 2, Pe = xl(Math.max(0, Te)), Qe = Math.abs(xl(0) - xl(Te));
2757
2761
  let Ft = "";
2758
2762
  if (pe.value && Qe > 0) {
2759
- const zt = Math.min(M.value, B / 2, Qe / 2);
2763
+ const zt = Math.min(M.value, O / 2, Qe / 2);
2760
2764
  Ft = [
2761
2765
  `M ${ze} ${Pe + Qe}`,
2762
2766
  `L ${ze} ${Pe + zt}`,
2763
2767
  `Q ${ze} ${Pe} ${ze + zt} ${Pe}`,
2764
- `L ${ze + B - zt} ${Pe}`,
2765
- `Q ${ze + B} ${Pe} ${ze + B} ${Pe + zt}`,
2766
- `L ${ze + B} ${Pe + Qe}`,
2768
+ `L ${ze + O - zt} ${Pe}`,
2769
+ `Q ${ze + O} ${Pe} ${ze + O} ${Pe + zt}`,
2770
+ `L ${ze + O} ${Pe + Qe}`,
2767
2771
  "Z"
2768
2772
  ].join(" ");
2769
2773
  }
2770
2774
  e.push({
2771
2775
  x: ze,
2772
2776
  y: Pe,
2773
- width: B,
2777
+ width: O,
2774
2778
  height: Qe,
2775
2779
  color: Qt(r === 1 ? ge : Ae),
2776
2780
  value: Te,
@@ -2794,7 +2798,7 @@ const Ds = {
2794
2798
  let o = st.value === "semi-radial" ? Math.PI : -Math.PI / 2;
2795
2799
  const t = st.value === "semi-radial" ? Math.PI : Math.PI * 2, r = [];
2796
2800
  if (e.length === 1) {
2797
- const { series: C, originalIndex: E } = e[0], _ = C.data[0] || 0, P = o, F = o + t - 1e-3, B = P + t / 2, V = Bt.value + Math.cos(P) * ul.value, oe = Ot.value + Math.sin(P) * ul.value, Ae = Bt.value + Math.cos(F) * ul.value, tt = Ot.value + Math.sin(F) * ul.value, fe = Bt.value + Math.cos(F) * Tt.value, xe = Ot.value + Math.sin(F) * Tt.value, Te = Bt.value + Math.cos(P) * Tt.value, ge = Ot.value + Math.sin(P) * Tt.value, rt = 1, et = [
2801
+ const { series: C, originalIndex: E } = e[0], _ = C.data[0] || 0, P = o, F = o + t - 1e-3, O = P + t / 2, V = Bt.value + Math.cos(P) * ul.value, oe = Ot.value + Math.sin(P) * ul.value, Ae = Bt.value + Math.cos(F) * ul.value, tt = Ot.value + Math.sin(F) * ul.value, fe = Bt.value + Math.cos(F) * Tt.value, xe = Ot.value + Math.sin(F) * Tt.value, Te = Bt.value + Math.cos(P) * Tt.value, ge = Ot.value + Math.sin(P) * Tt.value, rt = 1, et = [
2798
2802
  `M ${V} ${oe}`,
2799
2803
  `A ${ul.value} ${ul.value} 0 ${rt} 1 ${Ae} ${tt}`,
2800
2804
  `L ${fe} ${xe}`,
@@ -2814,12 +2818,12 @@ const Ds = {
2814
2818
  isHidden: !1,
2815
2819
  startAngle: P,
2816
2820
  endAngle: F,
2817
- midAngle: B
2821
+ midAngle: O
2818
2822
  }), r;
2819
2823
  }
2820
2824
  if (la.value && e.length === 2) {
2821
- const C = e[0], E = e[1], _ = Math.min(100, Math.max(0, C.series.data[0] || 0)), P = _ / 100 * t, F = (B, V, oe, Ae, tt) => {
2822
- const fe = B + (V - B) / 2, xe = V - B, Te = Bt.value + Math.cos(B) * ul.value, ge = Ot.value + Math.sin(B) * ul.value, rt = Bt.value + Math.cos(V) * ul.value, et = Ot.value + Math.sin(V) * ul.value, ze = Bt.value + Math.cos(V) * Tt.value, Pe = Ot.value + Math.sin(V) * Tt.value, Qe = Bt.value + Math.cos(B) * Tt.value, Ft = Ot.value + Math.sin(B) * Tt.value, zt = xe > Math.PI ? 1 : 0, Ul = [
2825
+ const C = e[0], E = e[1], _ = Math.min(100, Math.max(0, C.series.data[0] || 0)), P = _ / 100 * t, F = (O, V, oe, Ae, tt) => {
2826
+ const fe = O + (V - O) / 2, xe = V - O, Te = Bt.value + Math.cos(O) * ul.value, ge = Ot.value + Math.sin(O) * ul.value, rt = Bt.value + Math.cos(V) * ul.value, et = Ot.value + Math.sin(V) * ul.value, ze = Bt.value + Math.cos(V) * Tt.value, Pe = Ot.value + Math.sin(V) * Tt.value, Qe = Bt.value + Math.cos(O) * Tt.value, Ft = Ot.value + Math.sin(O) * Tt.value, zt = xe > Math.PI ? 1 : 0, Ul = [
2823
2827
  `M ${Te} ${ge}`,
2824
2828
  `A ${ul.value} ${ul.value} 0 ${zt} 1 ${rt} ${et}`,
2825
2829
  `L ${ze} ${Pe}`,
@@ -2837,7 +2841,7 @@ const Ds = {
2837
2841
  isHighlighted: _e.value === Ae,
2838
2842
  isDimmed: _e.value !== null && _e.value !== Ae,
2839
2843
  isHidden: !1,
2840
- startAngle: B,
2844
+ startAngle: O,
2841
2845
  endAngle: V,
2842
2846
  midAngle: fe
2843
2847
  };
@@ -2846,7 +2850,7 @@ const Ds = {
2846
2850
  }
2847
2851
  const m = e.reduce((C, { series: E }) => C + (E.data[0] || 0), 0);
2848
2852
  return m === 0 ? [] : (e.forEach(({ series: C, originalIndex: E }) => {
2849
- const _ = C.data[0] || 0, P = _ / m * t, F = o, B = o + P, V = F + P / 2, oe = Bt.value + Math.cos(F) * ul.value, Ae = Ot.value + Math.sin(F) * ul.value, tt = Bt.value + Math.cos(B) * ul.value, fe = Ot.value + Math.sin(B) * ul.value, xe = Bt.value + Math.cos(B) * Tt.value, Te = Ot.value + Math.sin(B) * Tt.value, ge = Bt.value + Math.cos(F) * Tt.value, rt = Ot.value + Math.sin(F) * Tt.value, et = P > Math.PI ? 1 : 0, ze = [
2853
+ const _ = C.data[0] || 0, P = _ / m * t, F = o, O = o + P, V = F + P / 2, oe = Bt.value + Math.cos(F) * ul.value, Ae = Ot.value + Math.sin(F) * ul.value, tt = Bt.value + Math.cos(O) * ul.value, fe = Ot.value + Math.sin(O) * ul.value, xe = Bt.value + Math.cos(O) * Tt.value, Te = Ot.value + Math.sin(O) * Tt.value, ge = Bt.value + Math.cos(F) * Tt.value, rt = Ot.value + Math.sin(F) * Tt.value, et = P > Math.PI ? 1 : 0, ze = [
2850
2854
  `M ${oe} ${Ae}`,
2851
2855
  `A ${ul.value} ${ul.value} 0 ${et} 1 ${tt} ${fe}`,
2852
2856
  `L ${xe} ${Te}`,
@@ -2865,9 +2869,9 @@ const Ds = {
2865
2869
  isDimmed: _e.value !== null && _e.value !== E,
2866
2870
  isHidden: !1,
2867
2871
  startAngle: F,
2868
- endAngle: B,
2872
+ endAngle: O,
2869
2873
  midAngle: V
2870
- }), o = B;
2874
+ }), o = O;
2871
2875
  }), r);
2872
2876
  }), s = g(() => {
2873
2877
  const e = l.value;
@@ -2898,23 +2902,23 @@ const Ds = {
2898
2902
  }, P = (V, oe) => {
2899
2903
  const Ae = Math.abs(V.textY - oe.textY) < C, tt = V.isRightSide ? V.textX : V.textX - V.textWidth, fe = V.isRightSide ? V.textX + V.textWidth : V.textX, xe = oe.isRightSide ? oe.textX : oe.textX - oe.textWidth, Te = oe.isRightSide ? oe.textX + oe.textWidth : oe.textX, ge = tt < Te && xe < fe;
2900
2904
  return Ae && ge;
2901
- }, F = l.value.filter((V) => !V.isHidden), B = [];
2905
+ }, F = l.value.filter((V) => !V.isHidden), O = [];
2902
2906
  for (let V = 0; V < F.length; V++) {
2903
2907
  const oe = F[V];
2904
2908
  let Ae = Math.cos(oe.midAngle) >= 0;
2905
2909
  if (V > 0) {
2906
- const fe = B[V - 1], xe = _(oe, Ae);
2910
+ const fe = O[V - 1], xe = _(oe, Ae);
2907
2911
  P(fe, xe) && (Ae = !Ae);
2908
2912
  }
2909
2913
  const tt = _(oe, Ae);
2910
- B.push({
2914
+ O.push({
2911
2915
  ...tt,
2912
2916
  color: oe.color,
2913
2917
  isHighlighted: oe.isHighlighted,
2914
2918
  isDimmed: oe.isDimmed
2915
2919
  });
2916
2920
  }
2917
- return B;
2921
+ return O;
2918
2922
  }), u = (e) => {
2919
2923
  if (!e || e.isHidden)
2920
2924
  return 0;
@@ -2951,7 +2955,7 @@ const Ds = {
2951
2955
  let m = o.clientX - r.left + 10, C = o.clientY - r.top - 10;
2952
2956
  const E = 200, _ = 120;
2953
2957
  m + E > We.value && (m = o.clientX - r.left - E - 10), C + _ > r.height && (C = o.clientY - r.top - _ - 10), m < 0 && (m = 10), C < 0 && (C = 10);
2954
- const P = ia.value, F = Fn.value, B = P.map((V) => {
2958
+ const P = ia.value, F = Fn.value, O = P.map((V) => {
2955
2959
  const oe = F[V] || V, Ae = b(V, e);
2956
2960
  return Ae ? { seriesName: e.seriesName, label: e.label, value: `${oe}: ${Ae}`, color: e.color } : null;
2957
2961
  }).filter(Boolean);
@@ -2961,7 +2965,7 @@ const Ds = {
2961
2965
  y: C,
2962
2966
  title: e.label || e.seriesName || "",
2963
2967
  value: "",
2964
- bubbleData: B,
2968
+ bubbleData: O,
2965
2969
  categoryIndex: void 0,
2966
2970
  spiderSeries: []
2967
2971
  };
@@ -3056,13 +3060,13 @@ const Ds = {
3056
3060
  const e = [], o = ee.value;
3057
3061
  return nn.value.forEach((t, r) => {
3058
3062
  const m = [], C = [], E = [], _ = _e.value === r, P = _e.value !== null && _e.value !== r, F = At.value.has(r);
3059
- for (let B = 0; B < o; B++) {
3060
- const V = t.data[B] || 0, Ae = V / Ge.value * Tt.value, tt = B * 2 * Math.PI / o - Math.PI / 2, fe = Bt.value + Math.cos(tt) * Ae, xe = Ot.value + Math.sin(tt) * Ae;
3063
+ for (let O = 0; O < o; O++) {
3064
+ const V = t.data[O] || 0, Ae = V / Ge.value * Tt.value, tt = O * 2 * Math.PI / o - Math.PI / 2, fe = Bt.value + Math.cos(tt) * Ae, xe = Ot.value + Math.sin(tt) * Ae;
3061
3065
  m.push(`${fe},${xe}`), C.push({ x: fe, y: xe }), E.push({
3062
3066
  x: fe,
3063
3067
  y: xe,
3064
3068
  value: V,
3065
- label: Z.categories[B] || `Axis ${B + 1}`,
3069
+ label: Z.categories[O] || `Axis ${O + 1}`,
3066
3070
  seriesName: t.name
3067
3071
  });
3068
3072
  }
@@ -3099,9 +3103,9 @@ const Ds = {
3099
3103
  const m = e.clientX - r.left, C = e.clientY - r.top, E = ll.value.filter((_) => _.isHidden ? !1 : pl({ x: m, y: C }, _.polygonPoints));
3100
3104
  if (E.length > 0) {
3101
3105
  E.length, _e.value = E[0].seriesIndex;
3102
- const _ = e.clientX - t.left + 10, P = e.clientY - t.top - 10, F = 200, B = 50 + E.length * 25;
3106
+ const _ = e.clientX - t.left + 10, P = e.clientY - t.top - 10, F = 200, O = 50 + E.length * 25;
3103
3107
  let V = _, oe = P;
3104
- V + F > We.value && (V = e.clientX - t.left - F - 10), oe + B > lt.value && (oe = e.clientY - t.top - B - 10), V < 0 && (V = 10), oe < 0 && (oe = 10);
3108
+ V + F > We.value && (V = e.clientX - t.left - F - 10), oe + O > lt.value && (oe = e.clientY - t.top - O - 10), V < 0 && (V = 10), oe < 0 && (oe = 10);
3105
3109
  const Ae = E.map((tt) => {
3106
3110
  let fe = tt.dataPoints[0], xe = 1 / 0;
3107
3111
  return tt.dataPoints.forEach((Te) => {
@@ -3135,21 +3139,21 @@ const Ds = {
3135
3139
  let m, C;
3136
3140
  if ($l.value) {
3137
3141
  let _ = -1, P = null;
3138
- for (let B = r.data.length - 1; B >= 0; B--)
3139
- if (r.data[B] !== null && r.data[B] !== void 0) {
3140
- _ = B, P = r.data[B];
3142
+ for (let O = r.data.length - 1; O >= 0; O--)
3143
+ if (r.data[O] !== null && r.data[O] !== void 0) {
3144
+ _ = O, P = r.data[O];
3141
3145
  break;
3142
3146
  }
3143
3147
  if (_ === -1 || P === null)
3144
3148
  return null;
3145
- const F = r.data.map((B, V) => B == null ? null : {
3149
+ const F = r.data.map((O, V) => O == null ? null : {
3146
3150
  x: ol(V),
3147
- y: xl(B),
3151
+ y: xl(O),
3148
3152
  index: V
3149
- }).filter((B) => B !== null);
3153
+ }).filter((O) => O !== null);
3150
3154
  if (e.animations.enabled && !hl.value && e.animations.type === "draw" && e.chart.type === "line" && (xt.value.isAnimating || !xt.value.hasAnimated))
3151
3155
  if (xt.value.isAnimating) {
3152
- const B = xt.value.currentFrame / xt.value.totalFrames, V = an(e.animations.easing, Math.min(B, 1)), oe = Hs(F, V);
3156
+ const O = xt.value.currentFrame / xt.value.totalFrames, V = an(e.animations.easing, Math.min(O, 1)), oe = Hs(F, V);
3153
3157
  m = oe.x + (o.offsetX || 0), C = oe.y + (o.offsetY || 0);
3154
3158
  } else
3155
3159
  m = F[0].x + (o.offsetX || 0), C = F[0].y + (o.offsetY || 0);
@@ -3196,8 +3200,8 @@ const Ds = {
3196
3200
  let m = o.clientX - r.left + 10, C = o.clientY - r.top - 10;
3197
3201
  const E = 200, _ = 120, P = We.value, F = lt.value;
3198
3202
  m + E > P && (m = o.clientX - r.left - E - 10), C + _ > F && (C = o.clientY - r.top - _ - 10), m < 0 && (m = 10), C < 0 && (C = 10);
3199
- let B;
3200
- typeof e.categoryIndex == "number" ? B = e.categoryIndex : typeof e.dataIndex == "number" ? B = e.dataIndex : e.label && Z.categories.includes(e.label) && (B = Z.categories.indexOf(e.label));
3203
+ let O;
3204
+ typeof e.categoryIndex == "number" ? O = e.categoryIndex : typeof e.dataIndex == "number" ? O = e.dataIndex : e.label && Z.categories.includes(e.label) && (O = Z.categories.indexOf(e.label));
3201
3205
  const V = (wl.value || st.value === "bar") && e.label ? e.label : e.seriesName || e.label || "";
3202
3206
  je.value = {
3203
3207
  show: !0,
@@ -3205,7 +3209,7 @@ const Ds = {
3205
3209
  y: C,
3206
3210
  title: V,
3207
3211
  value: zl(e.value) || "",
3208
- categoryIndex: B,
3212
+ categoryIndex: O,
3209
3213
  spiderSeries: []
3210
3214
  };
3211
3215
  }, $a = L(!1), aa = L(!1), $n = () => {
@@ -3298,7 +3302,7 @@ const Ds = {
3298
3302
  }, { flush: "post" }), Zt([Fe, ut], ([e, o]) => {
3299
3303
  ne.value.minScale = e, ne.value.maxScale = o, (ne.value.scale < e || ne.value.scale > o) && wa();
3300
3304
  }, { immediate: !0 }), Zt(() => Z.locale, (e) => {
3301
- e && e !== O.value && (O.value = e);
3305
+ e && e !== z.value && (z.value = e);
3302
3306
  }, { immediate: !0 }), Zt(() => Et.value.show, (e) => {
3303
3307
  e ? be(() => {
3304
3308
  document.addEventListener("click", Ca);
@@ -3320,8 +3324,8 @@ const Ds = {
3320
3324
  vt.value.show = !1;
3321
3325
  const o = e.clientX - ne.value.lastMouseX, { minX: t, maxX: r } = el.value, m = r - t || 1, E = o * 0.8;
3322
3326
  ne.value.offsetX += E;
3323
- const _ = m / ne.value.scale, P = m - _, F = 0, B = -P / m * X.value.width, V = F;
3324
- ne.value.offsetX = Math.max(B, Math.min(V, ne.value.offsetX)), ne.value.lastMouseX = e.clientX, ne.value.lastMouseY = e.clientY;
3327
+ const _ = m / ne.value.scale, P = m - _, F = 0, O = -P / m * X.value.width, V = F;
3328
+ ne.value.offsetX = Math.max(O, Math.min(V, ne.value.offsetX)), ne.value.lastMouseX = e.clientX, ne.value.lastMouseY = e.clientY;
3325
3329
  }
3326
3330
  }, vs = () => {
3327
3331
  ne.value.isDragging && (ne.value.isDragging = !1, setTimeout(() => {
@@ -3335,18 +3339,18 @@ const Ds = {
3335
3339
  let r = 0;
3336
3340
  const m = [];
3337
3341
  for (let _ = 1; _ < t.length; _++) {
3338
- const P = t[_].x - t[_ - 1].x, F = t[_].y - t[_ - 1].y, B = Math.sqrt(P * P + F * F);
3339
- m.push(B), r += B;
3342
+ const P = t[_].x - t[_ - 1].x, F = t[_].y - t[_ - 1].y, O = Math.sqrt(P * P + F * F);
3343
+ m.push(O), r += O;
3340
3344
  }
3341
3345
  const C = r * o;
3342
3346
  let E = 0;
3343
3347
  for (let _ = 0; _ < m.length; _++) {
3344
3348
  const P = E + m[_];
3345
3349
  if (C <= P) {
3346
- const F = (C - E) / m[_], B = t[_], V = t[_ + 1];
3350
+ const F = (C - E) / m[_], O = t[_], V = t[_ + 1];
3347
3351
  return {
3348
- x: B.x + (V.x - B.x) * F,
3349
- y: B.y + (V.y - B.y) * F
3352
+ x: O.x + (V.x - O.x) * F,
3353
+ y: O.y + (V.y - O.y) * F
3350
3354
  };
3351
3355
  }
3352
3356
  E = P;
@@ -3451,7 +3455,7 @@ const Ds = {
3451
3455
  key: 0,
3452
3456
  class: "dss-add-marker-button",
3453
3457
  onClick: Ra,
3454
- title: Y(z)("chart.contextMenu.addMarker")
3458
+ title: Y(B)("chart.contextMenu.addMarker")
3455
3459
  }, [
3456
3460
  n("img", {
3457
3461
  src: _l.value,
@@ -4364,7 +4368,7 @@ const Ds = {
4364
4368
  je.value.categoryIndex !== void 0 ? (c(), d(te, { key: 3 }, [
4365
4369
  dl(je.value.categoryIndex).flagGroups.length > 0 ? (c(), d("div", Cr, [
4366
4370
  o[5] || (o[5] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4367
- n("div", br, T(Y(z)("chart.tooltip.flags")), 1),
4371
+ n("div", br, T(Y(B)("chart.tooltip.flags")), 1),
4368
4372
  (c(!0), d(te, null, we(dl(je.value.categoryIndex).flagGroups, (t, r) => (c(), d("div", {
4369
4373
  key: `tooltip-flag-group-${r}`
4370
4374
  }, [
@@ -4387,7 +4391,7 @@ const Ds = {
4387
4391
  ])) : D("", !0),
4388
4392
  dl(je.value.categoryIndex).markers.length > 0 ? (c(), d("div", Mr, [
4389
4393
  o[6] || (o[6] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4390
- n("div", _r, T(Y(z)("chart.tooltip.markers")), 1),
4394
+ n("div", _r, T(Y(B)("chart.tooltip.markers")), 1),
4391
4395
  (c(!0), d(te, null, we(dl(je.value.categoryIndex).markers, (t, r) => (c(), d("div", {
4392
4396
  key: `tooltip-marker-${r}`,
4393
4397
  class: "dss-tooltip-item"
@@ -4425,7 +4429,7 @@ const Ds = {
4425
4429
  ]),
4426
4430
  dl(vt.value.categoryIndex).flagGroups.length > 0 ? (c(), d("div", Dr, [
4427
4431
  o[7] || (o[7] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4428
- n("div", Rr, T(Y(z)("chart.tooltip.flags")), 1),
4432
+ n("div", Rr, T(Y(B)("chart.tooltip.flags")), 1),
4429
4433
  (c(!0), d(te, null, we(dl(vt.value.categoryIndex).flagGroups, (t, r) => (c(), d("div", {
4430
4434
  key: `crosshair-flag-group-${r}`
4431
4435
  }, [
@@ -4448,7 +4452,7 @@ const Ds = {
4448
4452
  ])) : D("", !0),
4449
4453
  dl(vt.value.categoryIndex).markers.length > 0 ? (c(), d("div", Pr, [
4450
4454
  o[8] || (o[8] = n("div", { class: "dss-tooltip-separator" }, null, -1)),
4451
- n("div", Br, T(Y(z)("chart.tooltip.markers")), 1),
4455
+ n("div", Br, T(Y(B)("chart.tooltip.markers")), 1),
4452
4456
  (c(!0), d(te, null, we(dl(vt.value.categoryIndex).markers, (t, r) => (c(), d("div", {
4453
4457
  key: `crosshair-dss-marker-${r}`,
4454
4458
  class: "dss-tooltip-item"
@@ -4471,7 +4475,7 @@ const Ds = {
4471
4475
  onClick: wa
4472
4476
  }, [
4473
4477
  o[9] || (o[9] = n("span", { style: { display: "inline-block", transform: "scaleX(-1)", "font-size": "14px" } }, "⌕", -1)),
4474
- rn(" " + T(Math.round(ne.value.scale * 100)) + "% " + T(Y(z)("chart.zoom.doubleClickToReset")), 1)
4478
+ rn(" " + T(Math.round(ne.value.scale * 100)) + "% " + T(Y(B)("chart.zoom.doubleClickToReset")), 1)
4475
4479
  ])) : D("", !0)
4476
4480
  ], 46, Mo),
4477
4481
  Wt.value && Pt.value === "bottom" ? (c(), d("div", {
@@ -4516,23 +4520,23 @@ const Ds = {
4516
4520
  key: 0,
4517
4521
  class: "dss-context-menu-item",
4518
4522
  onClick: Da
4519
- }, T(Y(z)("chart.contextMenu.addMarker")), 1)) : D("", !0),
4523
+ }, T(Y(B)("chart.contextMenu.addMarker")), 1)) : D("", !0),
4520
4524
  Cl.value.addMarker && (Cl.value.downloadSvg || Cl.value.downloadPng || Cl.value.downloadCsv || pn.value.length > 0) ? (c(), d("div", Ur)) : D("", !0),
4521
4525
  Cl.value.downloadSvg ? (c(), d("div", {
4522
4526
  key: 2,
4523
4527
  class: "dss-context-menu-item",
4524
4528
  onClick: ql
4525
- }, T(Y(z)("chart.contextMenu.downloadSvg")), 1)) : D("", !0),
4529
+ }, T(Y(B)("chart.contextMenu.downloadSvg")), 1)) : D("", !0),
4526
4530
  Cl.value.downloadPng ? (c(), d("div", {
4527
4531
  key: 3,
4528
4532
  class: "dss-context-menu-item",
4529
4533
  onClick: ya
4530
- }, T(Y(z)("chart.contextMenu.downloadPng")), 1)) : D("", !0),
4534
+ }, T(Y(B)("chart.contextMenu.downloadPng")), 1)) : D("", !0),
4531
4535
  Cl.value.downloadCsv ? (c(), d("div", {
4532
4536
  key: 4,
4533
4537
  class: "dss-context-menu-item",
4534
4538
  onClick: ta
4535
- }, T(Y(z)("chart.contextMenu.downloadCsv")), 1)) : D("", !0),
4539
+ }, T(Y(B)("chart.contextMenu.downloadCsv")), 1)) : D("", !0),
4536
4540
  pn.value.length > 0 ? (c(), d(te, { key: 5 }, [
4537
4541
  Cl.value.downloadSvg || Cl.value.downloadPng || Cl.value.downloadCsv ? (c(), d("div", Xr)) : D("", !0),
4538
4542
  (c(!0), d(te, null, we(pn.value, (t, r) => (c(), d(te, {
@@ -4567,7 +4571,7 @@ const Ds = {
4567
4571
  }, ["stop"]))
4568
4572
  }, [
4569
4573
  n("div", Qr, [
4570
- n("h3", null, T(yn.value ? Y(z)("chart.modalMarker.viewMarker") : Dl.value ? Y(z)("chart.modalMarker.editMarker") : Y(z)("chart.contextMenu.addMarker")), 1),
4574
+ n("h3", null, T(yn.value ? Y(B)("chart.modalMarker.viewMarker") : Dl.value ? Y(B)("chart.modalMarker.editMarker") : Y(B)("chart.contextMenu.addMarker")), 1),
4571
4575
  n("button", {
4572
4576
  class: "dss-modal-close-btn",
4573
4577
  onClick: vl
@@ -4586,12 +4590,12 @@ const Ds = {
4586
4590
  }, null, 8, ["modelValue", "min-date", "max-date", "disabled"])
4587
4591
  ]),
4588
4592
  n("div", tu, [
4589
- n("label", lu, T(Y(z)("chart.modalMarker.description")), 1),
4593
+ n("label", lu, T(Y(B)("chart.modalMarker.description")), 1),
4590
4594
  yn.value ? (c(), d("div", nu, T(Ke.value.description), 1)) : Yt((c(), d("textarea", {
4591
4595
  key: 1,
4592
4596
  id: "dss-marker-description",
4593
4597
  "onUpdate:modelValue": o[2] || (o[2] = (t) => Ke.value.description = t),
4594
- placeholder: Y(z)("chart.modalMarker.placeholderDescription"),
4598
+ placeholder: Y(B)("chart.modalMarker.placeholderDescription"),
4595
4599
  class: "dss-form-textarea",
4596
4600
  rows: "5"
4597
4601
  }, null, 8, au)), [
@@ -4605,19 +4609,19 @@ const Ds = {
4605
4609
  key: 0,
4606
4610
  class: "dss-btn dss-btn-danger",
4607
4611
  onClick: Va
4608
- }, T(Y(z)("chart.modalMarker.deleteMarker")), 1)) : D("", !0)
4612
+ }, T(Y(B)("chart.modalMarker.deleteMarker")), 1)) : D("", !0)
4609
4613
  ]),
4610
4614
  n("div", iu, [
4611
4615
  n("button", {
4612
4616
  class: "dss-btn dss-btn-secondary",
4613
4617
  onClick: vl
4614
- }, T(yn.value ? Y(z)("chart.modalMarker.close") : Y(z)("chart.modalMarker.cancel")), 1),
4618
+ }, T(yn.value ? Y(B)("chart.modalMarker.close") : Y(B)("chart.modalMarker.cancel")), 1),
4615
4619
  yn.value ? D("", !0) : (c(), d("button", {
4616
4620
  key: 0,
4617
4621
  class: "dss-btn dss-btn-primary",
4618
4622
  onClick: Ta,
4619
4623
  disabled: !(Ke.value.description && Ke.value.description.length)
4620
- }, T(Dl.value ? Y(z)("chart.modalMarker.save") : Y(z)("chart.contextMenu.addMarker")), 9, ru))
4624
+ }, T(Dl.value ? Y(B)("chart.modalMarker.save") : Y(B)("chart.contextMenu.addMarker")), 9, ru))
4621
4625
  ])
4622
4626
  ])
4623
4627
  ])
@@ -4658,17 +4662,17 @@ const Ds = {
4658
4662
  },
4659
4663
  emits: ["close-modal"],
4660
4664
  setup(W, { emit: De }) {
4661
- const z = W, O = De, Re = L(null), x = L(null), Ie = g(() => {
4665
+ const B = W, z = De, Re = L(null), x = L(null), Ie = g(() => {
4662
4666
  const ce = {
4663
- "max-width": z.width
4667
+ "max-width": B.width
4664
4668
  };
4665
- return z.height !== "auto" && (ce.height = z.height, ce["min-height"] = "0"), ce;
4669
+ return B.height !== "auto" && (ce.height = B.height, ce["min-height"] = "0"), ce;
4666
4670
  }), ve = g(() => ({}));
4667
4671
  function ft() {
4668
- O("close-modal");
4672
+ z("close-modal");
4669
4673
  }
4670
4674
  function h() {
4671
- z.backDrop && !Re.value && O("close-modal");
4675
+ B.backDrop && !Re.value && z("close-modal");
4672
4676
  }
4673
4677
  function Ce(ce) {
4674
4678
  ce.target.tagName === "INPUT" && (Re.value = ce.target.tagName);
@@ -4695,7 +4699,7 @@ const Ds = {
4695
4699
  ce.style.overflow = Z || "", ce.style.position = Ne || "", ce.style.top = Xe || "", ce.style.width = at || "", ce.style.left = "", de.style.overflow = kt || "", window.scrollTo(0, I || 0);
4696
4700
  }
4697
4701
  return Zt(
4698
- () => z.showModal,
4702
+ () => B.showModal,
4699
4703
  (ce) => {
4700
4704
  if (ce)
4701
4705
  Se(), document.body.classList.add("dss-modal-open"), setTimeout(() => {
@@ -4710,7 +4714,7 @@ const Ds = {
4710
4714
  },
4711
4715
  { immediate: !0 }
4712
4716
  ), Ga(() => {
4713
- z.showModal && me();
4717
+ B.showModal && me();
4714
4718
  }), (ce, de) => (c(), Gn(Qn, { to: "body" }, [
4715
4719
  W.showModal ? (c(), d("div", {
4716
4720
  key: 0,
@@ -4864,7 +4868,7 @@ const Ds = {
4864
4868
  "search"
4865
4869
  ],
4866
4870
  setup(W, { emit: De }) {
4867
- const { t: z, locale: O } = Qa(), Re = W, x = De, Ie = {
4871
+ const { t: B, locale: z } = Qa(), Re = W, x = De, Ie = {
4868
4872
  table: {
4869
4873
  width: "auto",
4870
4874
  height: null,
@@ -5242,7 +5246,7 @@ const Ds = {
5242
5246
  return k.width && (w.width = typeof k.width == "number" ? `${k.width}px` : k.width), k.minWidth && (w.minWidth = typeof k.minWidth == "number" ? `${k.minWidth}px` : k.minWidth), k.maxWidth && (w.maxWidth = typeof k.maxWidth == "number" ? `${k.maxWidth}px` : k.maxWidth), w;
5243
5247
  };
5244
5248
  return Zt(() => Re.locale, (k) => {
5245
- k && k !== O.value && (O.value = k);
5249
+ k && k !== z.value && (z.value = k);
5246
5250
  }, { immediate: !0 }), Zt(Nt, (k) => {
5247
5251
  Wl.value = k, Al.value = 0;
5248
5252
  }), Zt(Vt, (k) => {
@@ -5272,7 +5276,7 @@ const Ds = {
5272
5276
  onClick: w[0] || (w[0] = ($) => x("download-pdf"))
5273
5277
  }, [
5274
5278
  w[21] || (w[21] = fs('<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)),
5275
- rn(" " + T(Y(z)("table.downloadPdf")), 1)
5279
+ rn(" " + T(Y(B)("table.downloadPdf")), 1)
5276
5280
  ])) : D("", !0),
5277
5281
  Ml.value ? (c(), d("button", {
5278
5282
  key: 1,
@@ -5281,7 +5285,7 @@ const Ds = {
5281
5285
  onClick: w[1] || (w[1] = ($) => x("download-excel"))
5282
5286
  }, [
5283
5287
  w[22] || (w[22] = fs('<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)),
5284
- rn(" " + T(Y(z)("table.downloadExcel")), 1)
5288
+ rn(" " + T(Y(B)("table.downloadExcel")), 1)
5285
5289
  ])) : D("", !0),
5286
5290
  mt.value ? (c(), d("div", {
5287
5291
  key: 2,
@@ -5296,7 +5300,7 @@ const Ds = {
5296
5300
  "aria-expanded": it.value,
5297
5301
  "aria-haspopup": "listbox"
5298
5302
  }, [
5299
- rn(T(Y(z)("table.columnVisibility")) + " ", 1),
5303
+ rn(T(Y(B)("table.columnVisibility")) + " ", 1),
5300
5304
  w[23] || (w[23] = n("span", {
5301
5305
  class: "dss-pagination-select-chevron",
5302
5306
  "aria-hidden": "true"
@@ -5358,7 +5362,7 @@ const Ds = {
5358
5362
  "onUpdate:modelValue": w[4] || (w[4] = ($) => Vt.value = $),
5359
5363
  type: "text",
5360
5364
  class: "dss-table-toolbar-search-input",
5361
- placeholder: Y(z)("table.searchPlaceholder"),
5365
+ placeholder: Y(B)("table.searchPlaceholder"),
5362
5366
  "aria-label": "Search table",
5363
5367
  onFocus: w[5] || (w[5] = ($) => qt.value = !0),
5364
5368
  onBlur: Pt
@@ -5653,7 +5657,7 @@ const Ds = {
5653
5657
  class: "dss-pagination-btn",
5654
5658
  disabled: Al.value === 0,
5655
5659
  onClick: w[8] || (w[8] = ($) => ne(0)),
5656
- title: Y(z)("table.firstPage")
5660
+ title: Y(B)("table.firstPage")
5657
5661
  }, [...w[34] || (w[34] = [
5658
5662
  n("span", { class: "dss-pagination-double-arrow" }, [
5659
5663
  n("span", null, "‹"),
@@ -5664,7 +5668,7 @@ const Ds = {
5664
5668
  class: "dss-pagination-btn",
5665
5669
  disabled: Al.value === 0,
5666
5670
  onClick: w[9] || (w[9] = ($) => ne(Al.value - 1)),
5667
- title: Y(z)("table.previousPage")
5671
+ title: Y(B)("table.previousPage")
5668
5672
  }, " ‹ ", 8, tc),
5669
5673
  n("span", lc, [
5670
5674
  (c(!0), d(te, null, we(Et.value, ($) => (c(), d(te, { key: $ }, [
@@ -5679,13 +5683,13 @@ const Ds = {
5679
5683
  class: "dss-pagination-btn",
5680
5684
  disabled: Al.value >= tn.value - 1,
5681
5685
  onClick: w[10] || (w[10] = ($) => ne(Al.value + 1)),
5682
- title: Y(z)("table.nextPage")
5686
+ title: Y(B)("table.nextPage")
5683
5687
  }, " › ", 8, sc),
5684
5688
  n("button", {
5685
5689
  class: "dss-pagination-btn",
5686
5690
  disabled: Al.value >= tn.value - 1,
5687
5691
  onClick: w[11] || (w[11] = ($) => ne(tn.value - 1)),
5688
- title: Y(z)("table.lastPage")
5692
+ title: Y(B)("table.lastPage")
5689
5693
  }, [...w[35] || (w[35] = [
5690
5694
  n("span", { class: "dss-pagination-double-arrow" }, [
5691
5695
  n("span", null, "›"),
@@ -5747,7 +5751,7 @@ const Ds = {
5747
5751
  value: cl(Ye.value).value ?? "",
5748
5752
  onInput: w[13] || (w[13] = ($) => ht(Ye.value, $.target.value)),
5749
5753
  class: "dss-table-filter-input",
5750
- placeholder: Y(z)("table.search") || "Search..."
5754
+ placeholder: Y(B)("table.search") || "Search..."
5751
5755
  }, null, 40, dc)
5752
5756
  ])) : Hl.value.filter === "range" && al.value ? (c(), d("div", {
5753
5757
  key: 1,
@@ -5783,7 +5787,7 @@ const Ds = {
5783
5787
  n("div", pc, T(al.value.currentMin) + " – " + T(al.value.currentMax), 1)
5784
5788
  ], 4)) : Hl.value.filter === "dateRange" ? (c(), d("div", mc, [
5785
5789
  n("div", hc, [
5786
- n("label", gc, T(Y(z)("table.filterFrom") || "From:"), 1),
5790
+ n("label", gc, T(Y(B)("table.filterFrom") || "From:"), 1),
5787
5791
  n("input", {
5788
5792
  type: "date",
5789
5793
  value: cl(Ye.value).from ?? "",
@@ -5792,7 +5796,7 @@ const Ds = {
5792
5796
  }, null, 40, yc)
5793
5797
  ]),
5794
5798
  n("div", Cc, [
5795
- n("label", bc, T(Y(z)("table.filterTo") || "To:"), 1),
5799
+ n("label", bc, T(Y(B)("table.filterTo") || "To:"), 1),
5796
5800
  n("input", {
5797
5801
  type: "date",
5798
5802
  value: cl(Ye.value).to ?? "",
@@ -5806,7 +5810,7 @@ const Ds = {
5806
5810
  value: dl[Ye.value] ?? "",
5807
5811
  onInput: w[18] || (w[18] = ($) => Zl(Ye.value, $.target.value)),
5808
5812
  class: "dss-table-filter-input dss-table-filter-list-search",
5809
- placeholder: Y(z)("table.search") || "Search..."
5813
+ placeholder: Y(B)("table.search") || "Search..."
5810
5814
  }, null, 40, xc),
5811
5815
  n("div", kc, [
5812
5816
  (c(!0), d(te, null, we(en(Hl.value), ($) => (c(), d("label", {
@@ -5827,7 +5831,7 @@ const Ds = {
5827
5831
  type: "button",
5828
5832
  class: "dss-table-filter-clear",
5829
5833
  onClick: w[19] || (w[19] = ($) => zl(Ye.value))
5830
- }, T(Y(z)("table.clearFilter") || "Clear"), 1)
5834
+ }, T(Y(B)("table.clearFilter") || "Clear"), 1)
5831
5835
  ])
5832
5836
  ], 64)) : D("", !0)
5833
5837
  ], 4), [
@@ -6157,8 +6161,8 @@ const Ds = {
6157
6161
  "comment-marker-clicked",
6158
6162
  "comment-deleted"
6159
6163
  ],
6160
- setup(W, { expose: De, emit: z }) {
6161
- const { t: O, locale: Re } = Qa(), x = W, Ie = z, ve = xs(), ft = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6164
+ setup(W, { expose: De, emit: B }) {
6165
+ const { t: z, locale: Re } = Qa(), x = W, Ie = B, ve = xs(), ft = `<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
6162
6166
  <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"/>
6163
6167
  </svg>`, h = L(null), Ce = L(null), $e = L(!1), Se = L(!1), me = L(!1), ce = L(""), de = L({}), Z = L(!1), Ne = L(!1), Xe = L(""), at = L(""), kt = L(null), I = L(null), Me = L(null), pt = L(null), We = L(""), $t = L(!1), Ee = L({}), lt = L(!1), Nt = L({}), st = L(null), Xt = L(null), wt = L(!1), It = L(""), Ml = L(null), Ut = L(""), Ht = L(""), mt = L(""), Vt = L(null), qt = L(null), Kt = L(null), yt = L(null), Wt = L(null), Pt = L(!1), jt = L(""), Vl = L({}), se = L(!1), He = L("upload"), Be = L(""), Fe = L(null), ut = L(null), ot = L([]), Ct = L([]), ke = L(null), it = L(!1), le = L(""), K = L(""), J = L(""), pe = L(""), S = L(""), M = L(""), A = L(null), j = L(null), ae = L(null), qe = L(!1), Je = L(null), Oe = L(!1), Ve = L(!1), Rt = L(null), ct = L("p"), Ye = L(!1), Dt = L([]), Mt = L(null), Rl = L(null), Hl = L(null), al = L(!1), Cl = L(0), pn = 100, _l = L(null), cl = g(() => ({
6164
6168
  "dss-text-editor-no-border": !x.border,
@@ -6182,7 +6186,7 @@ const Ds = {
6182
6186
  }), U = g(() => {
6183
6187
  const a = G.value.trim();
6184
6188
  return a ? a.split(/\s+/).filter((l) => l.length > 0).length : 0;
6185
- }), he = g(() => G.value.length), Ue = g(() => yt.value !== null && He.value === "upload" && Ut.value && Ut.value.startsWith("data:")), bt = g(() => x.titlePlaceholder || O("textEditor.placeholders.title")), ht = g(() => x.descriptionPlaceholder || O("textEditor.placeholders.description")), dt = g(() => x.placeholder || O("textEditor.placeholders.startTyping")), gt = (a) => ve && ve[a] !== void 0, Sl = (a) => {
6189
+ }), he = g(() => G.value.length), Ue = g(() => yt.value !== null && He.value === "upload" && Ut.value && Ut.value.startsWith("data:")), bt = g(() => x.titlePlaceholder || z("textEditor.placeholders.title")), ht = g(() => x.descriptionPlaceholder || z("textEditor.placeholders.description")), dt = g(() => x.placeholder || z("textEditor.placeholders.startTyping")), gt = (a) => ve && ve[a] !== void 0, Sl = (a) => {
6186
6190
  for (let l = a + 1; l < x.customToolbarSlots.length; l++)
6187
6191
  if (gt(x.customToolbarSlots[l]))
6188
6192
  return !0;
@@ -6230,7 +6234,7 @@ const Ds = {
6230
6234
  ].includes(l))
6231
6235
  return !0;
6232
6236
  try {
6233
- const u = O("textEditor.started_conversation");
6237
+ const u = z("textEditor.started_conversation");
6234
6238
  if (u && l === u)
6235
6239
  return !0;
6236
6240
  } catch {
@@ -8344,7 +8348,7 @@ const Ds = {
8344
8348
  let u = i.getAttribute("alt");
8345
8349
  u === null && (u = i.alt || "");
8346
8350
  let f = i.getAttribute("data-alt");
8347
- f === null && (f = u), i.hasAttribute("alt") || i.setAttribute("alt", u), i.hasAttribute("data-alt") || i.setAttribute("data-alt", f), yt.value = i, jt.value = u.trim() || O("textEditor.image.noAlt"), Pt.value = !0, se.value = !0, Ba(i);
8351
+ f === null && (f = u), i.hasAttribute("alt") || i.setAttribute("alt", u), i.hasAttribute("data-alt") || i.setAttribute("data-alt", f), yt.value = i, jt.value = u.trim() || z("textEditor.image.noAlt"), Pt.value = !0, se.value = !0, Ba(i);
8348
8352
  } else !i && Ol ? (Ol = null, Tn = setTimeout(() => {
8349
8353
  se.value || Xn();
8350
8354
  }, 150)) : i && i === Ol && Ba(i);
@@ -9138,7 +9142,7 @@ const Ds = {
9138
9142
  n("div", {
9139
9143
  class: "dss-toolbar-button",
9140
9144
  onClick: Ke,
9141
- title: Y(O)("textEditor.toolbar.undo")
9145
+ title: Y(z)("textEditor.toolbar.undo")
9142
9146
  }, [...l[45] || (l[45] = [
9143
9147
  n("svg", {
9144
9148
  viewBox: "0 0 18 8",
@@ -9154,7 +9158,7 @@ const Ds = {
9154
9158
  n("div", {
9155
9159
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-disabled": !q.value }]),
9156
9160
  onClick: gn,
9157
- title: Y(O)("textEditor.toolbar.redo")
9161
+ title: Y(z)("textEditor.toolbar.redo")
9158
9162
  }, [...l[46] || (l[46] = [
9159
9163
  n("svg", {
9160
9164
  viewBox: "0 0 18 8",
@@ -9172,7 +9176,7 @@ const Ds = {
9172
9176
  n("div", {
9173
9177
  class: "dss-toolbar-button dss-toolbar-dropdown-toggle",
9174
9178
  onClick: l[0] || (l[0] = (s) => Q("paragraph")),
9175
- title: Y(O)("textEditor.toolbar.paragraphFormat")
9179
+ title: Y(z)("textEditor.toolbar.paragraphFormat")
9176
9180
  }, [
9177
9181
  ct.value === "h1" ? (c(), d("svg", Tc, [...l[47] || (l[47] = [
9178
9182
  n("path", {
@@ -9262,7 +9266,7 @@ const Ds = {
9262
9266
  fill: "#FFC230"
9263
9267
  })
9264
9268
  ], -1)),
9265
- n("h1", null, T(Y(O)("textEditor.paragraph.heading1")), 1)
9269
+ n("h1", null, T(Y(z)("textEditor.paragraph.heading1")), 1)
9266
9270
  ]),
9267
9271
  n("div", {
9268
9272
  class: "dss-toolbar-dropdown-item",
@@ -9284,7 +9288,7 @@ const Ds = {
9284
9288
  fill: "#FFC230"
9285
9289
  })
9286
9290
  ], -1)),
9287
- n("h2", null, T(Y(O)("textEditor.paragraph.heading2")), 1)
9291
+ n("h2", null, T(Y(z)("textEditor.paragraph.heading2")), 1)
9288
9292
  ]),
9289
9293
  n("div", {
9290
9294
  class: "dss-toolbar-dropdown-item",
@@ -9306,7 +9310,7 @@ const Ds = {
9306
9310
  fill: "#FFC230"
9307
9311
  })
9308
9312
  ], -1)),
9309
- n("h3", null, T(Y(O)("textEditor.paragraph.heading3")), 1)
9313
+ n("h3", null, T(Y(z)("textEditor.paragraph.heading3")), 1)
9310
9314
  ]),
9311
9315
  n("div", {
9312
9316
  class: "dss-toolbar-dropdown-item",
@@ -9328,7 +9332,7 @@ const Ds = {
9328
9332
  fill: "#FFC230"
9329
9333
  })
9330
9334
  ], -1)),
9331
- n("h4", null, T(Y(O)("textEditor.paragraph.heading4")), 1)
9335
+ n("h4", null, T(Y(z)("textEditor.paragraph.heading4")), 1)
9332
9336
  ]),
9333
9337
  n("div", {
9334
9338
  class: "dss-toolbar-dropdown-item",
@@ -9350,7 +9354,7 @@ const Ds = {
9350
9354
  fill: "#FFC230"
9351
9355
  })
9352
9356
  ], -1)),
9353
- n("h5", null, T(Y(O)("textEditor.paragraph.heading5")), 1)
9357
+ n("h5", null, T(Y(z)("textEditor.paragraph.heading5")), 1)
9354
9358
  ]),
9355
9359
  n("div", {
9356
9360
  class: "dss-toolbar-dropdown-item",
@@ -9372,7 +9376,7 @@ const Ds = {
9372
9376
  fill: "#FFC230"
9373
9377
  })
9374
9378
  ], -1)),
9375
- n("h6", null, T(Y(O)("textEditor.paragraph.heading6")), 1)
9379
+ n("h6", null, T(Y(z)("textEditor.paragraph.heading6")), 1)
9376
9380
  ]),
9377
9381
  n("div", {
9378
9382
  class: "dss-toolbar-dropdown-item",
@@ -9391,14 +9395,14 @@ const Ds = {
9391
9395
  fill: "#323232"
9392
9396
  })
9393
9397
  ], -1)),
9394
- n("p", null, T(Y(O)("textEditor.paragraph.paragraph")), 1)
9398
+ n("p", null, T(Y(z)("textEditor.paragraph.paragraph")), 1)
9395
9399
  ])
9396
9400
  ])) : D("", !0)
9397
9401
  ]),
9398
9402
  n("div", {
9399
9403
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("bold") }]),
9400
9404
  onClick: l[9] || (l[9] = (s) => w("bold")),
9401
- title: Y(O)("textEditor.toolbar.bold")
9405
+ title: Y(z)("textEditor.toolbar.bold")
9402
9406
  }, [...l[62] || (l[62] = [
9403
9407
  n("svg", {
9404
9408
  viewBox: "0 0 11 14",
@@ -9414,7 +9418,7 @@ const Ds = {
9414
9418
  n("div", {
9415
9419
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("italic") }]),
9416
9420
  onClick: l[10] || (l[10] = (s) => w("italic")),
9417
- title: Y(O)("textEditor.toolbar.italic")
9421
+ title: Y(z)("textEditor.toolbar.italic")
9418
9422
  }, [...l[63] || (l[63] = [
9419
9423
  n("svg", {
9420
9424
  viewBox: "0 0 12 14",
@@ -9430,7 +9434,7 @@ const Ds = {
9430
9434
  n("div", {
9431
9435
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("underline") }]),
9432
9436
  onClick: l[11] || (l[11] = (s) => w("underline")),
9433
- title: Y(O)("textEditor.toolbar.underline")
9437
+ title: Y(z)("textEditor.toolbar.underline")
9434
9438
  }, [...l[64] || (l[64] = [
9435
9439
  n("svg", {
9436
9440
  viewBox: "0 0 11 14",
@@ -9446,7 +9450,7 @@ const Ds = {
9446
9450
  n("div", {
9447
9451
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $t.value }]),
9448
9452
  onClick: Il,
9449
- title: Y(O)("textEditor.toolbar.citation")
9453
+ title: Y(z)("textEditor.toolbar.citation")
9450
9454
  }, [...l[65] || (l[65] = [
9451
9455
  n("svg", {
9452
9456
  viewBox: "0 0 20 14",
@@ -9464,7 +9468,7 @@ const Ds = {
9464
9468
  key: 1,
9465
9469
  class: "dss-toolbar-button",
9466
9470
  onClick: ra,
9467
- title: Y(O)("textEditor.toolbar.removeLink")
9471
+ title: Y(z)("textEditor.toolbar.removeLink")
9468
9472
  }, [...l[67] || (l[67] = [
9469
9473
  n("svg", {
9470
9474
  width: "20",
@@ -9482,7 +9486,7 @@ const Ds = {
9482
9486
  key: 0,
9483
9487
  class: "dss-toolbar-button",
9484
9488
  onClick: Hn,
9485
- title: Y(O)("textEditor.toolbar.insertLink")
9489
+ title: Y(z)("textEditor.toolbar.insertLink")
9486
9490
  }, [...l[66] || (l[66] = [
9487
9491
  n("svg", {
9488
9492
  width: "20",
@@ -9501,7 +9505,7 @@ const Ds = {
9501
9505
  n("div", {
9502
9506
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("insertUnorderedList") }]),
9503
9507
  onClick: La,
9504
- title: Y(O)("textEditor.toolbar.bulletList")
9508
+ title: Y(z)("textEditor.toolbar.bulletList")
9505
9509
  }, [...l[68] || (l[68] = [
9506
9510
  n("svg", {
9507
9511
  viewBox: "0 0 17 13",
@@ -9517,7 +9521,7 @@ const Ds = {
9517
9521
  n("div", {
9518
9522
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("insertOrderedList") }]),
9519
9523
  onClick: ga,
9520
- title: Y(O)("textEditor.toolbar.numberList")
9524
+ title: Y(z)("textEditor.toolbar.numberList")
9521
9525
  }, [...l[69] || (l[69] = [
9522
9526
  n("svg", {
9523
9527
  viewBox: "0 0 18 15",
@@ -9534,7 +9538,7 @@ const Ds = {
9534
9538
  n("div", {
9535
9539
  class: "dss-toolbar-button",
9536
9540
  onClick: el,
9537
- title: Y(O)("textEditor.toolbar.image")
9541
+ title: Y(z)("textEditor.toolbar.image")
9538
9542
  }, [...l[70] || (l[70] = [
9539
9543
  n("svg", {
9540
9544
  viewBox: "1.5 1.5 17 17",
@@ -9559,7 +9563,7 @@ const Ds = {
9559
9563
  Ye.value ? (c(), d("div", {
9560
9564
  key: 3,
9561
9565
  class: "dss-toolbar-button",
9562
- title: Y(O)("textEditor.toolbar.comment"),
9566
+ title: Y(z)("textEditor.toolbar.comment"),
9563
9567
  onClick: Da
9564
9568
  }, [...l[71] || (l[71] = [
9565
9569
  n("svg", {
@@ -9582,7 +9586,7 @@ const Ds = {
9582
9586
  n("div", {
9583
9587
  class: "dss-toolbar-ai-button dss-toolbar-dropdown-toggle",
9584
9588
  onClick: l[12] || (l[12] = (s) => Q("askAi")),
9585
- title: Y(O)("textEditor.toolbar.askAi")
9589
+ title: Y(z)("textEditor.toolbar.askAi")
9586
9590
  }, [
9587
9591
  l[72] || (l[72] = n("svg", {
9588
9592
  width: "14",
@@ -9600,7 +9604,7 @@ const Ds = {
9600
9604
  fill: "#FFC963"
9601
9605
  })
9602
9606
  ], -1)),
9603
- n("span", Jc, T(Y(O)("textEditor.toolbar.askAi")), 1)
9607
+ n("span", Jc, T(Y(z)("textEditor.toolbar.askAi")), 1)
9604
9608
  ], 8, Qc),
9605
9609
  Ce.value === "askAi" ? (c(), d("div", {
9606
9610
  key: 0,
@@ -9633,33 +9637,33 @@ const Ds = {
9633
9637
  onCloseModal: ca
9634
9638
  }, {
9635
9639
  title: Nn(() => [
9636
- rn(T(Y(O)("textEditor.link.editLink")), 1)
9640
+ rn(T(Y(z)("textEditor.link.editLink")), 1)
9637
9641
  ]),
9638
9642
  content: Nn(() => [
9639
9643
  n("div", nd, [
9640
9644
  n("div", ad, [
9641
- n("label", sd, T(Y(O)("textEditor.link.altText")), 1),
9645
+ n("label", sd, T(Y(z)("textEditor.link.altText")), 1),
9642
9646
  Yt(n("input", {
9643
9647
  ref_key: "linkAltInput",
9644
9648
  ref: I,
9645
9649
  type: "text",
9646
9650
  "onUpdate:modelValue": l[15] || (l[15] = (s) => at.value = s),
9647
9651
  class: "dss-link-modal-input",
9648
- placeholder: Y(O)("textEditor.link.enterAltText"),
9652
+ placeholder: Y(z)("textEditor.link.enterAltText"),
9649
9653
  onKeyup: on(ka, ["enter"])
9650
9654
  }, null, 40, od), [
9651
9655
  [gl, at.value]
9652
9656
  ])
9653
9657
  ]),
9654
9658
  n("div", id, [
9655
- n("label", rd, T(Y(O)("textEditor.link.url")), 1),
9659
+ n("label", rd, T(Y(z)("textEditor.link.url")), 1),
9656
9660
  Yt(n("input", {
9657
9661
  ref_key: "linkUrlInput",
9658
9662
  ref: kt,
9659
9663
  type: "text",
9660
9664
  "onUpdate:modelValue": l[16] || (l[16] = (s) => Xe.value = s),
9661
9665
  class: "dss-link-modal-input",
9662
- placeholder: Y(O)("textEditor.link.enterUrl"),
9666
+ placeholder: Y(z)("textEditor.link.enterUrl"),
9663
9667
  onKeyup: on(ka, ["enter"])
9664
9668
  }, null, 40, ud), [
9665
9669
  [gl, Xe.value]
@@ -9672,12 +9676,12 @@ const Ds = {
9672
9676
  type: "button",
9673
9677
  class: "dss-link-modal-button dss-link-modal-button-cancel",
9674
9678
  onClick: ca
9675
- }, T(Y(O)("textEditor.link.cancel")), 1),
9679
+ }, T(Y(z)("textEditor.link.cancel")), 1),
9676
9680
  n("button", {
9677
9681
  type: "button",
9678
9682
  class: "dss-link-modal-button dss-link-modal-button-save",
9679
9683
  onClick: ka
9680
- }, T(Y(O)("textEditor.link.save")), 1)
9684
+ }, T(Y(z)("textEditor.link.save")), 1)
9681
9685
  ]),
9682
9686
  _: 1
9683
9687
  }, 8, ["showModal"]),
@@ -9688,7 +9692,7 @@ const Ds = {
9688
9692
  onCloseModal: On
9689
9693
  }, {
9690
9694
  title: Nn(() => [
9691
- rn(T(yt.value ? Y(O)("textEditor.image.editImage") : Y(O)("textEditor.image.addImage")), 1)
9695
+ rn(T(yt.value ? Y(z)("textEditor.image.editImage") : Y(z)("textEditor.image.addImage")), 1)
9692
9696
  ]),
9693
9697
  content: Nn(() => [
9694
9698
  n("div", cd, [
@@ -9696,18 +9700,18 @@ const Ds = {
9696
9700
  type: "button",
9697
9701
  class: ie(["dss-image-modal-tab", { "dss-image-modal-tab-active": He.value === "upload" }]),
9698
9702
  onClick: l[17] || (l[17] = (s) => He.value = "upload")
9699
- }, T(Y(O)("textEditor.image.upload")), 3),
9703
+ }, T(Y(z)("textEditor.image.upload")), 3),
9700
9704
  l[77] || (l[77] = n("div", { class: "dss-image-modal-tab-separator" }, null, -1)),
9701
9705
  n("button", {
9702
9706
  type: "button",
9703
9707
  class: ie(["dss-image-modal-tab", { "dss-image-modal-tab-active": He.value === "url" }]),
9704
9708
  onClick: l[18] || (l[18] = (s) => He.value = "url")
9705
- }, T(Y(O)("textEditor.image.imageLink")), 3)
9709
+ }, T(Y(z)("textEditor.image.imageLink")), 3)
9706
9710
  ]),
9707
9711
  He.value === "upload" ? (c(), d("div", dd, [
9708
9712
  n("div", vd, [
9709
9713
  n("div", fd, [
9710
- Ue.value ? D("", !0) : (c(), d("label", pd, T(Y(O)("textEditor.image.uploadImage")), 1)),
9714
+ Ue.value ? D("", !0) : (c(), d("label", pd, T(Y(z)("textEditor.image.uploadImage")), 1)),
9711
9715
  Ue.value ? (c(), d("div", {
9712
9716
  key: 1,
9713
9717
  class: "dss-image-upload-preview",
@@ -9751,27 +9755,27 @@ const Ds = {
9751
9755
  }, null, 544))
9752
9756
  ]),
9753
9757
  n("div", hd, [
9754
- n("label", gd, T(Y(O)("textEditor.image.altText")), 1),
9758
+ n("label", gd, T(Y(z)("textEditor.image.altText")), 1),
9755
9759
  Yt(n("input", {
9756
9760
  ref_key: "imageAltInput",
9757
9761
  ref: Vt,
9758
9762
  type: "text",
9759
9763
  "onUpdate:modelValue": l[19] || (l[19] = (s) => It.value = s),
9760
9764
  class: "dss-link-modal-input",
9761
- placeholder: Y(O)("textEditor.image.enterAltText"),
9765
+ placeholder: Y(z)("textEditor.image.enterAltText"),
9762
9766
  onKeyup: on(Vn, ["enter"])
9763
9767
  }, null, 40, yd), [
9764
9768
  [gl, It.value]
9765
9769
  ])
9766
9770
  ]),
9767
9771
  n("div", Cd, [
9768
- n("label", bd, T(Y(O)("textEditor.image.width")), 1),
9772
+ n("label", bd, T(Y(z)("textEditor.image.width")), 1),
9769
9773
  Yt(n("input", {
9770
9774
  type: "number",
9771
9775
  min: "1",
9772
9776
  "onUpdate:modelValue": l[20] || (l[20] = (s) => Ht.value = s),
9773
9777
  class: "dss-link-modal-input",
9774
- placeholder: Y(O)("textEditor.image.auto"),
9778
+ placeholder: Y(z)("textEditor.image.auto"),
9775
9779
  onKeyup: on(Vn, ["enter"]),
9776
9780
  onInput: xl
9777
9781
  }, null, 40, wd), [
@@ -9779,13 +9783,13 @@ const Ds = {
9779
9783
  ])
9780
9784
  ]),
9781
9785
  n("div", xd, [
9782
- n("label", kd, T(Y(O)("textEditor.image.height")), 1),
9786
+ n("label", kd, T(Y(z)("textEditor.image.height")), 1),
9783
9787
  Yt(n("input", {
9784
9788
  type: "number",
9785
9789
  min: "1",
9786
9790
  "onUpdate:modelValue": l[21] || (l[21] = (s) => mt.value = s),
9787
9791
  class: "dss-link-modal-input",
9788
- placeholder: Y(O)("textEditor.image.auto"),
9792
+ placeholder: Y(z)("textEditor.image.auto"),
9789
9793
  onKeyup: on(Vn, ["enter"]),
9790
9794
  onInput: Wa
9791
9795
  }, null, 40, Md), [
@@ -9797,39 +9801,39 @@ const Ds = {
9797
9801
  He.value === "url" ? (c(), d("div", _d, [
9798
9802
  n("div", Sd, [
9799
9803
  n("div", $d, [
9800
- n("label", Ed, T(Y(O)("textEditor.image.imageUrl")), 1),
9804
+ n("label", Ed, T(Y(z)("textEditor.image.imageUrl")), 1),
9801
9805
  Yt(n("input", {
9802
9806
  ref_key: "imageUrlInput",
9803
9807
  ref: Kt,
9804
9808
  type: "text",
9805
9809
  "onUpdate:modelValue": l[22] || (l[22] = (s) => Be.value = s),
9806
9810
  class: "dss-link-modal-input",
9807
- placeholder: Y(O)("textEditor.image.enterImageUrl"),
9811
+ placeholder: Y(z)("textEditor.image.enterImageUrl"),
9808
9812
  onKeyup: on(Vn, ["enter"])
9809
9813
  }, null, 40, Hd), [
9810
9814
  [gl, Be.value]
9811
9815
  ])
9812
9816
  ]),
9813
9817
  n("div", Ad, [
9814
- n("label", Ld, T(Y(O)("textEditor.image.altText")), 1),
9818
+ n("label", Ld, T(Y(z)("textEditor.image.altText")), 1),
9815
9819
  Yt(n("input", {
9816
9820
  type: "text",
9817
9821
  "onUpdate:modelValue": l[23] || (l[23] = (s) => It.value = s),
9818
9822
  class: "dss-link-modal-input",
9819
- placeholder: Y(O)("textEditor.image.enterAltText"),
9823
+ placeholder: Y(z)("textEditor.image.enterAltText"),
9820
9824
  onKeyup: on(Vn, ["enter"])
9821
9825
  }, null, 40, Td), [
9822
9826
  [gl, It.value]
9823
9827
  ])
9824
9828
  ]),
9825
9829
  n("div", Vd, [
9826
- n("label", Dd, T(Y(O)("textEditor.image.width")), 1),
9830
+ n("label", Dd, T(Y(z)("textEditor.image.width")), 1),
9827
9831
  Yt(n("input", {
9828
9832
  type: "number",
9829
9833
  min: "1",
9830
9834
  "onUpdate:modelValue": l[24] || (l[24] = (s) => Ht.value = s),
9831
9835
  class: "dss-link-modal-input",
9832
- placeholder: Y(O)("textEditor.image.auto"),
9836
+ placeholder: Y(z)("textEditor.image.auto"),
9833
9837
  onKeyup: on(Vn, ["enter"]),
9834
9838
  onInput: xl
9835
9839
  }, null, 40, Rd), [
@@ -9837,13 +9841,13 @@ const Ds = {
9837
9841
  ])
9838
9842
  ]),
9839
9843
  n("div", Nd, [
9840
- n("label", Id, T(Y(O)("textEditor.image.height")), 1),
9844
+ n("label", Id, T(Y(z)("textEditor.image.height")), 1),
9841
9845
  Yt(n("input", {
9842
9846
  type: "number",
9843
9847
  min: "1",
9844
9848
  "onUpdate:modelValue": l[25] || (l[25] = (s) => mt.value = s),
9845
9849
  class: "dss-link-modal-input",
9846
- placeholder: Y(O)("textEditor.image.auto"),
9850
+ placeholder: Y(z)("textEditor.image.auto"),
9847
9851
  onKeyup: on(Vn, ["enter"]),
9848
9852
  onInput: Wa
9849
9853
  }, null, 40, Fd), [
@@ -9858,19 +9862,19 @@ const Ds = {
9858
9862
  type: "button",
9859
9863
  class: "dss-link-modal-button dss-link-modal-button-cancel",
9860
9864
  onClick: On
9861
- }, T(Y(O)("textEditor.image.cancel")), 1),
9865
+ }, T(Y(z)("textEditor.image.cancel")), 1),
9862
9866
  n("button", {
9863
9867
  type: "button",
9864
9868
  class: "dss-link-modal-button dss-link-modal-button-save",
9865
9869
  onClick: Vn
9866
- }, T(Y(O)("textEditor.image.save")), 1)
9870
+ }, T(Y(z)("textEditor.image.save")), 1)
9867
9871
  ]),
9868
9872
  _: 1
9869
9873
  }, 8, ["showModal"]),
9870
9874
  n("div", {
9871
9875
  class: ie(["dss-text-editor-title-wrapper", { "dss-text-editor-no-border-bottom": mn.value && Oe.value }])
9872
9876
  }, [
9873
- n("p", null, T(Y(O)("textEditor.labels.title")), 1),
9877
+ n("p", null, T(Y(z)("textEditor.labels.title")), 1),
9874
9878
  n("div", Pd, [
9875
9879
  Oe.value ? D("", !0) : (c(), d("div", Bd, [
9876
9880
  W.title ? (c(), d("span", Od, T(W.title), 1)) : (c(), d("span", zd, T(bt.value), 1))
@@ -9896,7 +9900,7 @@ const Ds = {
9896
9900
  n("div", {
9897
9901
  class: ie(["dss-text-editor-description-wrapper", { "dss-text-editor-no-border-bottom": Zn.value && Ve.value }])
9898
9902
  }, [
9899
- n("p", null, T(Y(O)("textEditor.labels.description")), 1),
9903
+ n("p", null, T(Y(z)("textEditor.labels.description")), 1),
9900
9904
  n("div", qd, [
9901
9905
  Ve.value ? D("", !0) : (c(), d("div", Ud, [
9902
9906
  W.description ? (c(), d("span", Xd, T(W.description), 1)) : (c(), d("span", Yd, T(ht.value), 1))
@@ -10028,7 +10032,7 @@ const Ds = {
10028
10032
  type: "button",
10029
10033
  class: "dss-comment-delete-button",
10030
10034
  onClick: Ze((u) => Na(s, i), ["stop"]),
10031
- title: Y(O)("textEditor.comment.delete") || "Delete comment"
10035
+ title: Y(z)("textEditor.comment.delete") || "Delete comment"
10032
10036
  }, [...l[80] || (l[80] = [
10033
10037
  n("svg", {
10034
10038
  width: "22",
@@ -10053,7 +10057,7 @@ const Ds = {
10053
10057
  "onUpdate:modelValue": l[26] || (l[26] = (s) => Xl.value = s),
10054
10058
  class: "dss-comment-input",
10055
10059
  rows: "1",
10056
- placeholder: Y(O)("textEditor.comment.placeholder"),
10060
+ placeholder: Y(z)("textEditor.comment.placeholder"),
10057
10061
  onKeydown: on(Ze(Ra, ["prevent", "stop"]), ["enter"]),
10058
10062
  onInput: l[27] || (l[27] = () => {
10059
10063
  if (dn.value) {
@@ -10089,9 +10093,9 @@ const Ds = {
10089
10093
  }),
10090
10094
  n("div", E1, [
10091
10095
  n("div", H1, [
10092
- n("span", A1, T(U.value) + " " + T(U.value === 1 ? Y(O)("textEditor.footer.word") : Y(O)("textEditor.footer.words")), 1),
10096
+ n("span", A1, T(U.value) + " " + T(U.value === 1 ? Y(z)("textEditor.footer.word") : Y(z)("textEditor.footer.words")), 1),
10093
10097
  l[82] || (l[82] = n("span", { class: "dss-text-editor-footer-separator" }, "•", -1)),
10094
- n("span", L1, T(he.value) + " " + T(he.value === 1 ? Y(O)("textEditor.footer.character") : Y(O)("textEditor.footer.characters")), 1)
10098
+ n("span", L1, T(he.value) + " " + T(he.value === 1 ? Y(z)("textEditor.footer.character") : Y(z)("textEditor.footer.characters")), 1)
10095
10099
  ])
10096
10100
  ])
10097
10101
  ])) : (c(), d("div", o1, [
@@ -10107,9 +10111,9 @@ const Ds = {
10107
10111
  }, null, 46, i1),
10108
10112
  n("div", r1, [
10109
10113
  n("div", u1, [
10110
- n("span", c1, T(U.value) + " " + T(U.value === 1 ? Y(O)("textEditor.footer.word") : Y(O)("textEditor.footer.words")), 1),
10114
+ n("span", c1, T(U.value) + " " + T(U.value === 1 ? Y(z)("textEditor.footer.word") : Y(z)("textEditor.footer.words")), 1),
10111
10115
  l[79] || (l[79] = n("span", { class: "dss-text-editor-footer-separator" }, "•", -1)),
10112
- n("span", d1, T(he.value) + " " + T(he.value === 1 ? Y(O)("textEditor.footer.character") : Y(O)("textEditor.footer.characters")), 1)
10116
+ n("span", d1, T(he.value) + " " + T(he.value === 1 ? Y(z)("textEditor.footer.character") : Y(z)("textEditor.footer.characters")), 1)
10113
10117
  ])
10114
10118
  ])
10115
10119
  ])),
@@ -10130,7 +10134,7 @@ const Ds = {
10130
10134
  type: "button",
10131
10135
  class: "dss-link-popup-edit",
10132
10136
  onClick: Ze(za, ["stop"]),
10133
- title: Y(O)("textEditor.link.editLink")
10137
+ title: Y(z)("textEditor.link.editLink")
10134
10138
  }, [
10135
10139
  (c(), d("svg", D1, [...l[83] || (l[83] = [
10136
10140
  n("g", null, [
@@ -10155,7 +10159,7 @@ const Ds = {
10155
10159
  onMouseleave: Xn
10156
10160
  }, [
10157
10161
  n("div", R1, [
10158
- jt.value === Y(O)("textEditor.image.noAlt") ? (c(), d("div", N1, [...l[84] || (l[84] = [
10162
+ jt.value === Y(z)("textEditor.image.noAlt") ? (c(), d("div", N1, [...l[84] || (l[84] = [
10159
10163
  n("svg", {
10160
10164
  width: "20",
10161
10165
  height: "20",
@@ -10178,7 +10182,7 @@ const Ds = {
10178
10182
  type: "button",
10179
10183
  class: "dss-link-popup-edit",
10180
10184
  onClick: Ze(ss, ["stop"]),
10181
- title: Y(O)("textEditor.image.editImage")
10185
+ title: Y(z)("textEditor.image.editImage")
10182
10186
  }, [
10183
10187
  (c(), d("svg", P1, [...l[85] || (l[85] = [
10184
10188
  n("g", null, [
@@ -10208,7 +10212,7 @@ const Ds = {
10208
10212
  n("div", {
10209
10213
  class: "dss-toolbar-button",
10210
10214
  onClick: Ze(Ke, ["stop"]),
10211
- title: Y(O)("textEditor.toolbar.undo")
10215
+ title: Y(z)("textEditor.toolbar.undo")
10212
10216
  }, [...l[86] || (l[86] = [
10213
10217
  n("svg", {
10214
10218
  viewBox: "0 0 18 8",
@@ -10224,7 +10228,7 @@ const Ds = {
10224
10228
  n("div", {
10225
10229
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-disabled": !q.value }]),
10226
10230
  onClick: Ze(gn, ["stop"]),
10227
- title: Y(O)("textEditor.toolbar.redo")
10231
+ title: Y(z)("textEditor.toolbar.redo")
10228
10232
  }, [...l[87] || (l[87] = [
10229
10233
  n("svg", {
10230
10234
  viewBox: "0 0 18 8",
@@ -10242,7 +10246,7 @@ const Ds = {
10242
10246
  n("div", {
10243
10247
  class: "dss-toolbar-button dss-toolbar-dropdown-toggle",
10244
10248
  onClick: l[30] || (l[30] = Ze((s) => la("paragraph"), ["stop"])),
10245
- title: Y(O)("textEditor.toolbar.paragraphFormat")
10249
+ title: Y(z)("textEditor.toolbar.paragraphFormat")
10246
10250
  }, [
10247
10251
  ct.value === "h1" ? (c(), d("svg", q1, [...l[88] || (l[88] = [
10248
10252
  n("path", {
@@ -10316,43 +10320,43 @@ const Ds = {
10316
10320
  class: "dss-toolbar-dropdown-item",
10317
10321
  onClick: l[31] || (l[31] = (s) => Ln("<h1>"))
10318
10322
  }, [
10319
- n("h1", null, T(Y(O)("textEditor.paragraph.heading1")), 1)
10323
+ n("h1", null, T(Y(z)("textEditor.paragraph.heading1")), 1)
10320
10324
  ]),
10321
10325
  n("div", {
10322
10326
  class: "dss-toolbar-dropdown-item",
10323
10327
  onClick: l[32] || (l[32] = (s) => Ln("<h2>"))
10324
10328
  }, [
10325
- n("h2", null, T(Y(O)("textEditor.paragraph.heading2")), 1)
10329
+ n("h2", null, T(Y(z)("textEditor.paragraph.heading2")), 1)
10326
10330
  ]),
10327
10331
  n("div", {
10328
10332
  class: "dss-toolbar-dropdown-item",
10329
10333
  onClick: l[33] || (l[33] = (s) => Ln("<h3>"))
10330
10334
  }, [
10331
- n("h3", null, T(Y(O)("textEditor.paragraph.heading3")), 1)
10335
+ n("h3", null, T(Y(z)("textEditor.paragraph.heading3")), 1)
10332
10336
  ]),
10333
10337
  n("div", {
10334
10338
  class: "dss-toolbar-dropdown-item",
10335
10339
  onClick: l[34] || (l[34] = (s) => Ln("<h4>"))
10336
10340
  }, [
10337
- n("h4", null, T(Y(O)("textEditor.paragraph.heading4")), 1)
10341
+ n("h4", null, T(Y(z)("textEditor.paragraph.heading4")), 1)
10338
10342
  ]),
10339
10343
  n("div", {
10340
10344
  class: "dss-toolbar-dropdown-item",
10341
10345
  onClick: l[35] || (l[35] = (s) => Ln("<h5>"))
10342
10346
  }, [
10343
- n("h5", null, T(Y(O)("textEditor.paragraph.heading5")), 1)
10347
+ n("h5", null, T(Y(z)("textEditor.paragraph.heading5")), 1)
10344
10348
  ]),
10345
10349
  n("div", {
10346
10350
  class: "dss-toolbar-dropdown-item",
10347
10351
  onClick: l[36] || (l[36] = (s) => Ln("<h6>"))
10348
10352
  }, [
10349
- n("h6", null, T(Y(O)("textEditor.paragraph.heading6")), 1)
10353
+ n("h6", null, T(Y(z)("textEditor.paragraph.heading6")), 1)
10350
10354
  ]),
10351
10355
  n("div", {
10352
10356
  class: "dss-toolbar-dropdown-item",
10353
10357
  onClick: l[37] || (l[37] = (s) => Ln("<p>"))
10354
10358
  }, [
10355
- n("p", null, T(Y(O)("textEditor.paragraph.paragraph")), 1)
10359
+ n("p", null, T(Y(z)("textEditor.paragraph.paragraph")), 1)
10356
10360
  ])
10357
10361
  ])) : D("", !0)
10358
10362
  ]),
@@ -10360,7 +10364,7 @@ const Ds = {
10360
10364
  n("div", {
10361
10365
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("bold") }]),
10362
10366
  onClick: l[39] || (l[39] = Ze((s) => w("bold"), ["stop"])),
10363
- title: Y(O)("textEditor.toolbar.bold")
10367
+ title: Y(z)("textEditor.toolbar.bold")
10364
10368
  }, [...l[96] || (l[96] = [
10365
10369
  n("svg", {
10366
10370
  viewBox: "0 0 11 14",
@@ -10376,7 +10380,7 @@ const Ds = {
10376
10380
  n("div", {
10377
10381
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("italic") }]),
10378
10382
  onClick: l[40] || (l[40] = Ze((s) => w("italic"), ["stop"])),
10379
- title: Y(O)("textEditor.toolbar.italic")
10383
+ title: Y(z)("textEditor.toolbar.italic")
10380
10384
  }, [...l[97] || (l[97] = [
10381
10385
  n("svg", {
10382
10386
  viewBox: "0 0 12 14",
@@ -10392,7 +10396,7 @@ const Ds = {
10392
10396
  n("div", {
10393
10397
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("underline") }]),
10394
10398
  onClick: l[41] || (l[41] = Ze((s) => w("underline"), ["stop"])),
10395
- title: Y(O)("textEditor.toolbar.underline")
10399
+ title: Y(z)("textEditor.toolbar.underline")
10396
10400
  }, [...l[98] || (l[98] = [
10397
10401
  n("svg", {
10398
10402
  viewBox: "0 0 11 14",
@@ -10409,7 +10413,7 @@ const Ds = {
10409
10413
  n("div", {
10410
10414
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $t.value }]),
10411
10415
  onClick: Ze(Il, ["stop"]),
10412
- title: Y(O)("textEditor.toolbar.citation")
10416
+ title: Y(z)("textEditor.toolbar.citation")
10413
10417
  }, [...l[99] || (l[99] = [
10414
10418
  n("svg", {
10415
10419
  viewBox: "0 0 20 14",
@@ -10427,7 +10431,7 @@ const Ds = {
10427
10431
  key: 1,
10428
10432
  class: "dss-toolbar-button",
10429
10433
  onClick: Ze(ra, ["stop"]),
10430
- title: Y(O)("textEditor.toolbar.removeLink")
10434
+ title: Y(z)("textEditor.toolbar.removeLink")
10431
10435
  }, [...l[101] || (l[101] = [
10432
10436
  n("svg", {
10433
10437
  width: "20",
@@ -10445,7 +10449,7 @@ const Ds = {
10445
10449
  key: 0,
10446
10450
  class: "dss-toolbar-button",
10447
10451
  onClick: Ze(Hn, ["stop"]),
10448
- title: Y(O)("textEditor.toolbar.insertLink")
10452
+ title: Y(z)("textEditor.toolbar.insertLink")
10449
10453
  }, [...l[100] || (l[100] = [
10450
10454
  n("svg", {
10451
10455
  width: "20",
@@ -10464,7 +10468,7 @@ const Ds = {
10464
10468
  n("div", {
10465
10469
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("insertUnorderedList") }]),
10466
10470
  onClick: Ze(La, ["stop"]),
10467
- title: Y(O)("textEditor.toolbar.bulletList")
10471
+ title: Y(z)("textEditor.toolbar.bulletList")
10468
10472
  }, [...l[102] || (l[102] = [
10469
10473
  n("svg", {
10470
10474
  viewBox: "0 0 17 13",
@@ -10480,7 +10484,7 @@ const Ds = {
10480
10484
  n("div", {
10481
10485
  class: ie(["dss-toolbar-button", { "dss-toolbar-button-active": $("insertOrderedList") }]),
10482
10486
  onClick: Ze(ga, ["stop"]),
10483
- title: Y(O)("textEditor.toolbar.numberList")
10487
+ title: Y(z)("textEditor.toolbar.numberList")
10484
10488
  }, [...l[103] || (l[103] = [
10485
10489
  n("svg", {
10486
10490
  viewBox: "0 0 18 15",
@@ -10497,7 +10501,7 @@ const Ds = {
10497
10501
  n("div", {
10498
10502
  class: "dss-toolbar-button",
10499
10503
  onClick: Ze(el, ["stop"]),
10500
- title: Y(O)("textEditor.toolbar.image")
10504
+ title: Y(z)("textEditor.toolbar.image")
10501
10505
  }, [...l[104] || (l[104] = [
10502
10506
  n("svg", {
10503
10507
  viewBox: "1.5 1.5 17 17",
@@ -10521,7 +10525,7 @@ const Ds = {
10521
10525
  l[113] || (l[113] = n("div", { class: "dss-toolbar-separator" }, null, -1)),
10522
10526
  n("div", {
10523
10527
  class: "dss-toolbar-button",
10524
- title: Y(O)("textEditor.toolbar.comment"),
10528
+ title: Y(z)("textEditor.toolbar.comment"),
10525
10529
  onClick: Ze(Da, ["stop"])
10526
10530
  }, [...l[105] || (l[105] = [
10527
10531
  n("svg", {
@@ -10544,7 +10548,7 @@ const Ds = {
10544
10548
  n("div", {
10545
10549
  class: "dss-toolbar-ai-button dss-toolbar-ai-float dss-toolbar-dropdown-toggle",
10546
10550
  onClick: l[42] || (l[42] = Ze((s) => la("askAi"), ["stop"])),
10547
- title: Y(O)("textEditor.toolbar.askAi")
10551
+ title: Y(z)("textEditor.toolbar.askAi")
10548
10552
  }, [
10549
10553
  l[106] || (l[106] = n("svg", {
10550
10554
  width: "14",
@@ -10562,7 +10566,7 @@ const Ds = {
10562
10566
  fill: "#FFC963"
10563
10567
  })
10564
10568
  ], -1)),
10565
- n("span", d2, T(Y(O)("textEditor.toolbar.askAi")), 1)
10569
+ n("span", d2, T(Y(z)("textEditor.toolbar.askAi")), 1)
10566
10570
  ], 8, c2),
10567
10571
  Xt.value === "askAi" ? (c(), d("div", {
10568
10572
  key: 0,
@@ -10623,7 +10627,7 @@ const Ds = {
10623
10627
  },
10624
10628
  emits: ["update:modelValue", "update:presetColors"],
10625
10629
  setup(W, { emit: De }) {
10626
- function z(le) {
10630
+ function B(le) {
10627
10631
  const K = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(le);
10628
10632
  if (!K) return { h: 0, s: 0, l: 50 };
10629
10633
  const J = parseInt(K[1], 16) / 255, pe = parseInt(K[2], 16) / 255, S = parseInt(K[3], 16) / 255, M = Math.max(J, pe, S), A = Math.min(J, pe, S);
@@ -10645,7 +10649,7 @@ const Ds = {
10645
10649
  }
10646
10650
  return { h: j * 360, s: ae * 100, l: qe * 100 };
10647
10651
  }
10648
- function O(le, K, J) {
10652
+ function z(le, K, J) {
10649
10653
  K /= 100, J /= 100;
10650
10654
  const pe = K * Math.min(J, 1 - J), S = (M) => {
10651
10655
  const A = (M + le / 30) % 12, j = J - pe * Math.max(Math.min(A - 3, 9 - A, 1), -1);
@@ -10669,7 +10673,7 @@ const Ds = {
10669
10673
  const pe = J * (1 - K / 2), S = pe === 0 || pe === 1 ? 0 : (J - pe) / Math.min(pe, 1 - pe);
10670
10674
  return { h: le, s: S * 100, l: pe * 100 };
10671
10675
  }
10672
- const ve = W, ft = De, h = L(!1), Ce = L(!1), $e = L(!1), Se = L(-1), me = L(-1), ce = L(null), de = L(null), Z = L(null), Ne = L(null), Xe = L({ top: 0, left: 0 }), at = L(z(ve.modelValue || "#b8a5de")), kt = g(
10676
+ const ve = W, ft = De, h = L(!1), Ce = L(!1), $e = L(!1), Se = L(-1), me = L(-1), ce = L(null), de = L(null), Z = L(null), Ne = L(null), Xe = L({ top: 0, left: 0 }), at = L(B(ve.modelValue || "#b8a5de")), kt = g(
10673
10677
  () => Array.isArray(ve.presetGroups) && ve.presetGroups.length > 0
10674
10678
  ), I = g(() => kt.value ? 0 : ve.initialPresetCount != null ? ve.initialPresetCount : me.value < 0 ? null : me.value), Me = g(() => {
10675
10679
  const le = I.value;
@@ -10697,7 +10701,7 @@ const Ds = {
10697
10701
  return K != null && le >= K;
10698
10702
  }
10699
10703
  function st(le) {
10700
- Nt(le) && (Se.value = le, at.value = z(ve.presetColors[le]), Ce.value = !0, be(() => Ne.value?.focus()));
10704
+ Nt(le) && (Se.value = le, at.value = B(ve.presetColors[le]), Ce.value = !0, be(() => Ne.value?.focus()));
10701
10705
  }
10702
10706
  function Xt(le) {
10703
10707
  if (!Nt(le)) return;
@@ -10739,7 +10743,7 @@ const Ds = {
10739
10743
  }
10740
10744
  const mt = g(() => {
10741
10745
  const { h: le, s: K, l: J } = at.value;
10742
- return O(le, K, J);
10746
+ return z(le, K, J);
10743
10747
  }), Vt = g(() => mt.value.toLowerCase()), qt = g(() => ({
10744
10748
  background: `linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, hsl(${at.value.h}, 100%, 50%))`
10745
10749
  })), Kt = g(() => {
@@ -10767,7 +10771,7 @@ const Ds = {
10767
10771
  }
10768
10772
  function jt() {
10769
10773
  const le = ve.modelValue || "#b8a5de";
10770
- Re(le) && (at.value = z(le));
10774
+ Re(le) && (at.value = B(le));
10771
10775
  }
10772
10776
  function Vl() {
10773
10777
  ft("update:modelValue", mt.value);
@@ -10814,12 +10818,12 @@ const Ds = {
10814
10818
  }
10815
10819
  function ut(le) {
10816
10820
  const K = le.target.value, J = Re(K);
10817
- J && (at.value = z(J), ft("update:modelValue", J));
10821
+ J && (at.value = B(J), ft("update:modelValue", J));
10818
10822
  }
10819
10823
  function ot(le) {
10820
10824
  if (ve.disabled) return;
10821
10825
  const K = Re(le);
10822
- K && (at.value = z(K), ft("update:modelValue", K));
10826
+ K && (at.value = B(K), ft("update:modelValue", K));
10823
10827
  }
10824
10828
  let Ct = null, ke = null;
10825
10829
  function it() {
@@ -11103,10 +11107,10 @@ const Ds = {
11103
11107
  }
11104
11108
  },
11105
11109
  setup(W) {
11106
- const De = W, z = g(() => De.size === "small" ? "dss-loaders--size-small" : De.size === "large" ? "dss-loaders--size-large" : De.size === "medium" || De.size == null ? "dss-loaders--size-medium" : null), O = g(() => De.size === "small" || De.size === "medium" || De.size === "large" || De.size == null ? {} : { "--dss-loader-size": typeof De.size == "number" ? `${De.size}px` : String(De.size) });
11110
+ const De = W, B = g(() => De.size === "small" ? "dss-loaders--size-small" : De.size === "large" ? "dss-loaders--size-large" : De.size === "medium" || De.size == null ? "dss-loaders--size-medium" : null), z = g(() => De.size === "small" || De.size === "medium" || De.size === "large" || De.size == null ? {} : { "--dss-loader-size": typeof De.size == "number" ? `${De.size}px` : String(De.size) });
11107
11111
  return (Re, x) => (c(), d("div", {
11108
- class: ie(["dss-loaders", z.value]),
11109
- style: ye(O.value)
11112
+ class: ie(["dss-loaders", B.value]),
11113
+ style: ye(z.value)
11110
11114
  }, [
11111
11115
  W.type === "spinner" ? (c(), d("div", T2, [
11112
11116
  x[0] || (x[0] = n("span", {
@@ -11177,7 +11181,7 @@ const Ds = {
11177
11181
  shimmerDark: { type: String, default: null }
11178
11182
  },
11179
11183
  setup(W) {
11180
- const De = W, z = g(() => {
11184
+ const De = W, B = g(() => {
11181
11185
  const x = {
11182
11186
  "dss-skeleton--loading": De.loading,
11183
11187
  "dss-skeleton--static": !De.shimmer,
@@ -11185,7 +11189,7 @@ const Ds = {
11185
11189
  "dss-skeleton--dark": De.darkMode
11186
11190
  };
11187
11191
  return De.mode === "multiple" && De.targetClass !== hs && (x[`dss-skeleton--target-${De.targetClass}`] = !0), x;
11188
- }), O = g(() => {
11192
+ }), z = g(() => {
11189
11193
  const x = {};
11190
11194
  return De.borderRadius && (x.borderRadius = De.borderRadius), x;
11191
11195
  }), Re = g(() => {
@@ -11193,13 +11197,13 @@ const Ds = {
11193
11197
  return De.borderRadius && (x["--dss-skeleton-border-radius"] = De.borderRadius), De.darkMode ? (x["--dss-skeleton-bg"] = De.bgDark || "#322c3f", x["--dss-skeleton-shimmer"] = De.shimmerDark || "#3e3f41", x) : (De.bgColor && (x["--dss-skeleton-bg"] = De.bgColor), De.shimmerColor && (x["--dss-skeleton-shimmer"] = De.shimmerColor), x);
11194
11198
  });
11195
11199
  return (x, Ie) => (c(), d("div", {
11196
- class: ie(["dss-skeleton", z.value]),
11200
+ class: ie(["dss-skeleton", B.value]),
11197
11201
  style: ye(Re.value)
11198
11202
  }, [
11199
11203
  W.loading && W.mode === "single" ? (c(), d("div", {
11200
11204
  key: 0,
11201
11205
  class: "dss-skeleton-overlay",
11202
- style: ye(O.value),
11206
+ style: ye(z.value),
11203
11207
  "aria-hidden": "true"
11204
11208
  }, null, 4)) : D("", !0),
11205
11209
  n("div", {
@@ -11231,7 +11235,7 @@ const Ds = {
11231
11235
  },
11232
11236
  emits: ["move", "delete"],
11233
11237
  setup(W, { emit: De }) {
11234
- const z = W, O = De, Re = xs(), x = g(() => !!Re["delete-zone"]), Ie = {
11238
+ const B = W, z = De, Re = xs(), x = g(() => !!Re["delete-zone"]), Ie = {
11235
11239
  columnMinWidth: "280px",
11236
11240
  columnMaxWidth: "none",
11237
11241
  columnGap: "12px",
@@ -11245,7 +11249,7 @@ const Ds = {
11245
11249
  unstyled: !1,
11246
11250
  deleteZoneAlwaysVisible: !1,
11247
11251
  ColColor: !1
11248
- }, ve = g(() => ({ ...Ie, ...z.options })), ft = g(() => ({
11252
+ }, ve = g(() => ({ ...Ie, ...B.options })), ft = g(() => ({
11249
11253
  "--dss-dnd-col-min-w": ve.value.columnMinWidth,
11250
11254
  "--dss-dnd-col-max-w": ve.value.columnMaxWidth,
11251
11255
  "--dss-dnd-col-gap": ve.value.columnGap,
@@ -11263,21 +11267,21 @@ const Ds = {
11263
11267
  let de = null, Z = null, Ne = null, Xe = null, at = 0, kt = 0, I = "", Me = null;
11264
11268
  const pt = 5, We = g(() => {
11265
11269
  const se = {};
11266
- for (const He of z.columns)
11267
- se[He.value] = z.items.filter((Be) => Be[z.columnKey] === He.value).sort((Be, Fe) => (Be[z.positionKey] ?? 0) - (Fe[z.positionKey] ?? 0));
11270
+ for (const He of B.columns)
11271
+ se[He.value] = B.items.filter((Be) => Be[B.columnKey] === He.value).sort((Be, Fe) => (Be[B.positionKey] ?? 0) - (Fe[B.positionKey] ?? 0));
11268
11272
  return se;
11269
11273
  }), $t = g(() => {
11270
- const se = {}, He = !!Ce.value, Be = Ce.value?.[z.itemKey], Fe = $e.value, ut = me.value;
11271
- for (const ot of z.columns) {
11274
+ const se = {}, He = !!Ce.value, Be = Ce.value?.[B.itemKey], Fe = $e.value, ut = me.value;
11275
+ for (const ot of B.columns) {
11272
11276
  const Ct = We.value[ot.value] || [], ke = [], it = Fe == ot.value;
11273
11277
  let le = 0;
11274
11278
  for (let K = 0; K < Ct.length; K++) {
11275
- const J = Ct[K], pe = He && J[z.itemKey] === Be;
11279
+ const J = Ct[K], pe = He && J[B.itemKey] === Be;
11276
11280
  !pe && it && ut === le && ke.push({ type: "indicator", key: `ind-${le}` }), pe || le++, ke.push({
11277
11281
  type: "item",
11278
11282
  item: J,
11279
11283
  isDragged: pe,
11280
- key: `item-${J[z.itemKey]}`
11284
+ key: `item-${J[B.itemKey]}`
11281
11285
  });
11282
11286
  }
11283
11287
  it && ut >= le && ke.push({ type: "indicator", key: "ind-end" }), se[ot.value] = ke;
@@ -11286,18 +11290,18 @@ const Ds = {
11286
11290
  });
11287
11291
  function Ee(se, He) {
11288
11292
  const Fe = (We.value[se] || []).filter(
11289
- (Ct) => Ct[z.itemKey] !== Ce.value?.[z.itemKey]
11293
+ (Ct) => Ct[B.itemKey] !== Ce.value?.[B.itemKey]
11290
11294
  );
11291
11295
  if (Fe.length === 0) return 1;
11292
11296
  if (He <= 0) {
11293
- const Ct = Fe[0][z.positionKey];
11297
+ const Ct = Fe[0][B.positionKey];
11294
11298
  return Ct != null && Ct > 0 ? Ct / 2 : 0.5;
11295
11299
  }
11296
11300
  if (He >= Fe.length) {
11297
- const Ct = Fe[Fe.length - 1][z.positionKey];
11301
+ const Ct = Fe[Fe.length - 1][B.positionKey];
11298
11302
  return (Ct ?? 0) + 1;
11299
11303
  }
11300
- const ut = Fe[He - 1][z.positionKey] ?? 0, ot = Fe[He][z.positionKey] ?? 0;
11304
+ const ut = Fe[He - 1][B.positionKey] ?? 0, ot = Fe[He][B.positionKey] ?? 0;
11301
11305
  return (ut + ot) / 2;
11302
11306
  }
11303
11307
  function lt(se, He, Be) {
@@ -11366,14 +11370,14 @@ const Ds = {
11366
11370
  window.removeEventListener("pointermove", Ut), window.removeEventListener("pointerup", Ht), window.removeEventListener("pointercancel", Ht), Xe?.releasePointerCapture?.(se.pointerId), Xt(Xe), Xe = null;
11367
11371
  const He = x.value && It(se.clientX, se.clientY);
11368
11372
  if (Ce.value && He)
11369
- O("delete", { item: Ce.value });
11373
+ z("delete", { item: Ce.value });
11370
11374
  else {
11371
11375
  const Fe = wt(se.clientX, se.clientY)?.getAttribute("data-column") ?? null;
11372
11376
  if (Ce.value && Fe) {
11373
- const ut = Ce.value[z.columnKey], ot = Fe, ke = (We.value[ot] || []).filter(
11374
- (J) => J[z.itemKey] !== Ce.value[z.itemKey]
11375
- ), it = Math.max(0, Math.min(me.value, ke.length)), le = Ee(ot, it), K = Ce.value[z.itemKey];
11376
- O("move", {
11377
+ const ut = Ce.value[B.columnKey], ot = Fe, ke = (We.value[ot] || []).filter(
11378
+ (J) => J[B.itemKey] !== Ce.value[B.itemKey]
11379
+ ), it = Math.max(0, Math.min(me.value, ke.length)), le = Ee(ot, it), K = Ce.value[B.itemKey];
11380
+ z("move", {
11377
11381
  item: Ce.value,
11378
11382
  from: ut,
11379
11383
  to: ot,
@@ -11527,7 +11531,7 @@ const Ds = {
11527
11531
  delay: { type: Number, default: 300 }
11528
11532
  },
11529
11533
  setup(W) {
11530
- const De = W, z = L(null), O = L(!1);
11534
+ const De = W, B = L(null), z = L(!1);
11531
11535
  let Re = [], x = null, Ie = null;
11532
11536
  function ve(me, ce) {
11533
11537
  const de = [];
@@ -11562,8 +11566,8 @@ const Ds = {
11562
11566
  }
11563
11567
  }
11564
11568
  function $e() {
11565
- O.value = !0, be(() => {
11566
- const me = z.value;
11569
+ z.value = !0, be(() => {
11570
+ const me = B.value;
11567
11571
  if (!me) return;
11568
11572
  const ce = me.getContext("2d"), de = me.parentElement;
11569
11573
  if (!de) return;
@@ -11581,16 +11585,16 @@ const Ds = {
11581
11585
  });
11582
11586
  }
11583
11587
  function Se() {
11584
- x && (cancelAnimationFrame(x), x = null), Re = [], O.value = !1;
11588
+ x && (cancelAnimationFrame(x), x = null), Re = [], z.value = !1;
11585
11589
  }
11586
11590
  return Zt(() => De.trigger, (me) => {
11587
11591
  me && (Ie && clearTimeout(Ie), Ie = setTimeout($e, De.delay));
11588
11592
  }, { immediate: !0 }), ma(() => {
11589
11593
  Se(), Ie && clearTimeout(Ie);
11590
- }), (me, ce) => O.value ? (c(), d("canvas", {
11594
+ }), (me, ce) => z.value ? (c(), d("canvas", {
11591
11595
  key: 0,
11592
11596
  ref_key: "canvasRef",
11593
- ref: z,
11597
+ ref: B,
11594
11598
  class: "dss-confetti-canvas"
11595
11599
  }, null, 512)) : D("", !0);
11596
11600
  }
@@ -11641,12 +11645,12 @@ const Ds = {
11641
11645
  options: { type: Object, default: () => ({}) }
11642
11646
  },
11643
11647
  emits: ["update:modelValue"],
11644
- setup(W, { expose: De, emit: z }) {
11645
- const O = W, Re = z, x = {
11648
+ setup(W, { expose: De, emit: B }) {
11649
+ const z = W, Re = B, x = {
11646
11650
  unstyled: !1,
11647
11651
  maxUniqueForSelect: 30,
11648
11652
  maxUniqueForEnum: 15
11649
- }, Ie = g(() => ({ ...x, ...O.options })), ve = {
11653
+ }, Ie = g(() => ({ ...x, ...z.options })), ve = {
11650
11654
  text: [
11651
11655
  { value: "contains", label: "contains" },
11652
11656
  { value: "not_contains", label: "does not contain" },
@@ -11730,15 +11734,15 @@ const Ds = {
11730
11734
  return A.every((j) => typeof j == "boolean") ? "boolean" : A.every((j) => typeof j == "number") ? new Set(A).size <= Ie.value.maxUniqueForEnum ? "select" : "range" : A.every((j) => typeof j == "string") ? new Set(A).size <= Ie.value.maxUniqueForSelect ? "select" : "text" : A.some((j) => typeof j == "object" && !Array.isArray(j)) ? null : "text";
11731
11735
  }
11732
11736
  const kt = g(() => {
11733
- if (!O.data?.length) return [];
11737
+ if (!z.data?.length) return [];
11734
11738
  const S = /* @__PURE__ */ new Set();
11735
- for (const ae of O.data)
11739
+ for (const ae of z.data)
11736
11740
  if (ae && typeof ae == "object")
11737
11741
  for (const qe of Object.keys(ae)) S.add(qe);
11738
- const M = new Set(O.exclude), A = [];
11742
+ const M = new Set(z.exclude), A = [];
11739
11743
  for (const ae of S) {
11740
11744
  if (M.has(ae)) continue;
11741
- const qe = O.config[ae] || {}, Je = O.data.map((Ye) => Ye?.[ae]), Oe = qe.type || at(ae, Je);
11745
+ const qe = z.config[ae] || {}, Je = z.data.map((Ye) => Ye?.[ae]), Oe = qe.type || at(ae, Je);
11742
11746
  if (!Oe) continue;
11743
11747
  const Ve = qe.filterMode || "contain", Rt = Ve === "date" ? "date" : Ve === "string" ? "text" : Oe, ct = { key: ae, label: qe.label || J(ae), type: Rt, filterMode: Ve };
11744
11748
  if (Oe === "select") {
@@ -11757,7 +11761,7 @@ const Ds = {
11757
11761
  }
11758
11762
  A.push(ct);
11759
11763
  }
11760
- const j = O.config._order;
11764
+ const j = z.config._order;
11761
11765
  return j && A.sort((ae, qe) => {
11762
11766
  const Je = j.indexOf(ae.key), Oe = j.indexOf(qe.key);
11763
11767
  return Je === -1 && Oe === -1 ? 0 : Je === -1 ? 1 : Oe === -1 ? -1 : Je - Oe;
@@ -11766,13 +11770,13 @@ const Ds = {
11766
11770
  const S = {};
11767
11771
  for (const M of kt.value) S[M.key] = M;
11768
11772
  return S;
11769
- }), Me = g(() => Array.isArray(O.config.groups) && O.config.groups.length > 0), pt = g(() => {
11773
+ }), Me = g(() => Array.isArray(z.config.groups) && z.config.groups.length > 0), pt = g(() => {
11770
11774
  if (!Me.value) return [];
11771
11775
  const S = new Set(kt.value.map((M) => M.key));
11772
- return O.config.groups.map((M) => ({ ...M, keys: M.keys.filter((A) => S.has(A)) })).filter((M) => M.keys.length > 0);
11776
+ return z.config.groups.map((M) => ({ ...M, keys: M.keys.filter((A) => S.has(A)) })).filter((M) => M.keys.length > 0);
11773
11777
  }), We = g(() => {
11774
11778
  if (!Me.value) return [];
11775
- const S = new Set(O.config.groups.flatMap((M) => M.keys));
11779
+ const S = new Set(z.config.groups.flatMap((M) => M.keys));
11776
11780
  return kt.value.filter((M) => !S.has(M.key));
11777
11781
  }), $t = g(() => {
11778
11782
  if (!Z.value) return [];
@@ -11884,8 +11888,8 @@ const Ds = {
11884
11888
  Ce.value = S.target.value;
11885
11889
  }
11886
11890
  const ot = g(() => {
11887
- if (!O.data) return [];
11888
- let S = O.data;
11891
+ if (!z.data) return [];
11892
+ let S = z.data;
11889
11893
  if (Ce.value) {
11890
11894
  const M = Ce.value.toLowerCase();
11891
11895
  S = S.filter((A) => {
@@ -12032,7 +12036,7 @@ const Ds = {
12032
12036
  function K(S) {
12033
12037
  return !!(S == null || S === "" || S === "NULL" || Array.isArray(S) && S.length === 0 || Array.isArray(S) && S.every((M) => M == null));
12034
12038
  }
12035
- Zt(ot, (S) => Re("update:modelValue", S), { immediate: !0 }), Zt(() => O.data, () => {
12039
+ Zt(ot, (S) => Re("update:modelValue", S), { immediate: !0 }), Zt(() => z.data, () => {
12036
12040
  $e.value = [], Ce.value = "", me.value = !1, Nt();
12037
12041
  });
12038
12042
  function J(S) {
@@ -12452,7 +12456,7 @@ const Ds = {
12452
12456
  },
12453
12457
  emits: ["update:modelValue"],
12454
12458
  setup(W, { emit: De }) {
12455
- const z = W, O = De, Re = L(""), x = L([...z.modelValue]), Ie = L(null);
12459
+ const B = W, z = De, Re = L(""), x = L([...B.modelValue]), Ie = L(null);
12456
12460
  let ve = null;
12457
12461
  const ft = L(null), h = L(""), Ce = L(null), $e = g(() => new Set(x.value.map((I) => I.trim()).filter(Boolean)));
12458
12462
  function Se(I) {
@@ -12462,7 +12466,7 @@ const Ds = {
12462
12466
  }
12463
12467
  function me(I) {
12464
12468
  const Me = I.trim();
12465
- return Me ? $e.value.has(Me) ? (Se(Me), !1) : (x.value = [...x.value, Me], O("update:modelValue", [...x.value]), !0) : !1;
12469
+ return Me ? $e.value.has(Me) ? (Se(Me), !1) : (x.value = [...x.value, Me], z("update:modelValue", [...x.value]), !0) : !1;
12466
12470
  }
12467
12471
  function ce(I) {
12468
12472
  const Me = I.split(/\r?\n/g).map((Ee) => Ee.trim()).filter(Boolean);
@@ -12476,41 +12480,41 @@ const Ds = {
12476
12480
  }
12477
12481
  pt.add(Ee), We.push(Ee);
12478
12482
  }
12479
- We.length !== x.value.length && (x.value = We, O("update:modelValue", [...x.value])), $t && Se($t);
12483
+ We.length !== x.value.length && (x.value = We, z("update:modelValue", [...x.value])), $t && Se($t);
12480
12484
  }
12481
12485
  function de(I) {
12482
- z.disabled || (ft.value === I && (ft.value = null, h.value = ""), x.value = x.value.filter((Me, pt) => pt !== I), O("update:modelValue", [...x.value]));
12486
+ B.disabled || (ft.value === I && (ft.value = null, h.value = ""), x.value = x.value.filter((Me, pt) => pt !== I), z("update:modelValue", [...x.value]));
12483
12487
  }
12484
12488
  async function Z(I) {
12485
- z.disabled || (ft.value = I, h.value = x.value[I] ?? "", await be(), Ce.value?.focus(), Ce.value?.select());
12489
+ B.disabled || (ft.value = I, h.value = x.value[I] ?? "", await be(), Ce.value?.focus(), Ce.value?.select());
12486
12490
  }
12487
12491
  function Ne() {
12488
12492
  ft.value = null, h.value = "";
12489
12493
  }
12490
12494
  function Xe() {
12491
- if (z.disabled || ft.value === null) return;
12495
+ if (B.disabled || ft.value === null) return;
12492
12496
  const I = ft.value, Me = x.value[I] ?? "", pt = h.value.trim();
12493
12497
  if (ft.value = null, h.value = "", pt !== Me && $e.value.has(pt)) {
12494
12498
  Se(pt);
12495
12499
  return;
12496
12500
  }
12497
12501
  if (!pt) {
12498
- x.value = x.value.filter(($t, Ee) => Ee !== I), O("update:modelValue", [...x.value]);
12502
+ x.value = x.value.filter(($t, Ee) => Ee !== I), z("update:modelValue", [...x.value]);
12499
12503
  return;
12500
12504
  }
12501
12505
  const We = x.value.map(($t, Ee) => Ee === I ? pt : $t);
12502
- x.value = We, O("update:modelValue", [...x.value]);
12506
+ x.value = We, z("update:modelValue", [...x.value]);
12503
12507
  }
12504
12508
  function at(I) {
12505
- I.preventDefault(), !z.disabled && (me(Re.value), Re.value = "");
12509
+ I.preventDefault(), !B.disabled && (me(Re.value), Re.value = "");
12506
12510
  }
12507
12511
  function kt(I) {
12508
- if (z.disabled) return;
12512
+ if (B.disabled) return;
12509
12513
  const Me = I.clipboardData?.getData("text") ?? "";
12510
12514
  !Me.includes(`
12511
12515
  `) && !Me.includes("\r") || (I.preventDefault(), ce(Me), Re.value = "");
12512
12516
  }
12513
- return Zt(() => z.modelValue, (I) => {
12517
+ return Zt(() => B.modelValue, (I) => {
12514
12518
  x.value = Array.isArray(I) ? [...I] : [];
12515
12519
  }, { deep: !0 }), ma(() => {
12516
12520
  ve && clearTimeout(ve);
@@ -12600,8 +12604,8 @@ function $0(W) {
12600
12604
  if (!W || !W.global)
12601
12605
  return;
12602
12606
  const De = W.global.availableLocales || [];
12603
- Object.keys(gs).forEach((z) => {
12604
- De.includes(z) && W.global.mergeLocaleMessage(z, gs[z]);
12607
+ Object.keys(gs).forEach((B) => {
12608
+ De.includes(B) && W.global.mergeLocaleMessage(B, gs[B]);
12605
12609
  });
12606
12610
  }
12607
12611
  const ys = {
@@ -12613,8 +12617,8 @@ function E0(W) {
12613
12617
  if (!W || !W.global)
12614
12618
  return;
12615
12619
  const De = W.global.availableLocales || [];
12616
- Object.keys(ys).forEach((z) => {
12617
- De.includes(z) && W.global.mergeLocaleMessage(z, ys[z]);
12620
+ Object.keys(ys).forEach((B) => {
12621
+ De.includes(B) && W.global.mergeLocaleMessage(B, ys[B]);
12618
12622
  });
12619
12623
  }
12620
12624
  const Cs = {
@@ -12626,8 +12630,8 @@ function H0(W) {
12626
12630
  if (!W || !W.global)
12627
12631
  return;
12628
12632
  const De = W.global.availableLocales || [];
12629
- Object.keys(Cs).forEach((z) => {
12630
- De.includes(z) && W.global.mergeLocaleMessage(z, Cs[z]);
12633
+ Object.keys(Cs).forEach((B) => {
12634
+ De.includes(B) && W.global.mergeLocaleMessage(B, Cs[B]);
12631
12635
  });
12632
12636
  }
12633
12637
  const bs = {
@@ -12639,8 +12643,8 @@ function A0(W) {
12639
12643
  if (!W || !W.global)
12640
12644
  return;
12641
12645
  const De = W.global.availableLocales || [];
12642
- Object.keys(bs).forEach((z) => {
12643
- De.includes(z) && W.global.mergeLocaleMessage(z, bs[z]);
12646
+ Object.keys(bs).forEach((B) => {
12647
+ De.includes(B) && W.global.mergeLocaleMessage(B, bs[B]);
12644
12648
  });
12645
12649
  }
12646
12650
  const p0 = {