@opengis/bi 1.2.25 → 1.2.26

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.
@@ -1,7 +1,8 @@
1
- var us = Object.defineProperty;
2
- var hs = (s, e, t) => e in s ? us(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
- var P = (s, e, t) => hs(s, typeof e != "symbol" ? e + "" : e, t);
4
- import { h as et, defineComponent as ge, ref as I, computed as F, onUnmounted as Ue, createElementBlock as y, openBlock as p, Fragment as U, createElementVNode as h, createCommentVNode as A, createTextVNode as X, toDisplayString as W, renderList as Z, mergeModels as Be, useModel as Gt, withDirectives as Ht, normalizeClass as ee, vModelCheckbox as ps, defineAsyncComponent as M, onMounted as le, watch as te, normalizeStyle as Ge, createBlock as N, createVNode as T, unref as E, resolveDynamicComponent as Zt, createStaticVNode as fs, mergeProps as he, resolveComponent as Y, inject as He, withCtx as j, Teleport as gs, Transition as ms, withModifiers as bs, renderSlot as Rt, getCurrentInstance as me, onErrorCaptured as xs, vModelText as ys, provide as Xe, readonly as ws } from "vue";
1
+ var ds = Object.defineProperty;
2
+ var us = (s, e, t) => e in s ? ds(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
3
+ var P = (s, e, t) => us(s, typeof e != "symbol" ? e + "" : e, t);
4
+ import { h as Ke, defineComponent as ge, ref as I, computed as F, onUnmounted as Ue, createElementBlock as y, openBlock as p, Fragment as U, createElementVNode as h, createCommentVNode as A, createTextVNode as X, toDisplayString as W, renderList as Z, mergeModels as Be, useModel as Ut, withDirectives as Gt, normalizeClass as ee, vModelCheckbox as hs, defineAsyncComponent as M, onMounted as le, watch as te, normalizeStyle as Ge, createBlock as N, createVNode as T, unref as E, resolveDynamicComponent as Ht, createStaticVNode as ps, mergeProps as he, resolveComponent as J, withCtx as j, Teleport as fs, Transition as gs, withModifiers as ms, renderSlot as St, getCurrentInstance as me, onErrorCaptured as bs, inject as Zt, vModelText as xs, provide as Qe, readonly as ys } from "vue";
5
+ import { useRouter as we, useRoute as ws } from "vue-router";
5
6
  /**
6
7
  * @license lucide-vue-next v0.577.0 - ISC
7
8
  *
@@ -20,7 +21,7 @@ const vs = (s) => {
20
21
  * This source code is licensed under the ISC license.
21
22
  * See the LICENSE file in the root directory of this source tree.
22
23
  */
23
- const Vt = (s) => s === "";
24
+ const Rt = (s) => s === "";
24
25
  /**
25
26
  * @license lucide-vue-next v0.577.0 - ISC
26
27
  *
@@ -88,7 +89,7 @@ const Ds = ({
88
89
  size: n = ze.width,
89
90
  color: o = ze.stroke,
90
91
  ...l
91
- }, { slots: c }) => et(
92
+ }, { slots: c }) => Ke(
92
93
  "svg",
93
94
  {
94
95
  ...ze,
@@ -96,7 +97,7 @@ const Ds = ({
96
97
  width: n,
97
98
  height: n,
98
99
  stroke: o,
99
- "stroke-width": Vt(t) || Vt(a) || t === !0 || a === !0 ? Number(r || i || ze["stroke-width"]) * 24 / Number(n) : r || i || ze["stroke-width"],
100
+ "stroke-width": Rt(t) || Rt(a) || t === !0 || a === !0 ? Number(r || i || ze["stroke-width"]) * 24 / Number(n) : r || i || ze["stroke-width"],
100
101
  class: ks(
101
102
  "lucide",
102
103
  l.class,
@@ -104,7 +105,7 @@ const Ds = ({
104
105
  ),
105
106
  ...!c.default && !vs(l) && { "aria-hidden": "true" }
106
107
  },
107
- [...e.map((u) => et(...u)), ...c.default ? [c.default()] : []]
108
+ [...e.map((u) => Ke(...u)), ...c.default ? [c.default()] : []]
108
109
  );
109
110
  /**
110
111
  * @license lucide-vue-next v0.577.0 - ISC
@@ -112,7 +113,7 @@ const Ds = ({
112
113
  * This source code is licensed under the ISC license.
113
114
  * See the LICENSE file in the root directory of this source tree.
114
115
  */
115
- const se = (s, e) => (t, { slots: a, attrs: r }) => et(
116
+ const se = (s, e) => (t, { slots: a, attrs: r }) => Ke(
116
117
  Ds,
117
118
  {
118
119
  ...r,
@@ -198,7 +199,7 @@ const Rs = se("layout-grid", [
198
199
  * This source code is licensed under the ISC license.
199
200
  * See the LICENSE file in the root directory of this source tree.
200
201
  */
201
- const Vs = se("pencil", [
202
+ const Ls = se("pencil", [
202
203
  [
203
204
  "path",
204
205
  {
@@ -224,7 +225,7 @@ const Qt = se("plus", [
224
225
  * This source code is licensed under the ISC license.
225
226
  * See the LICENSE file in the root directory of this source tree.
226
227
  */
227
- const Ls = se("save", [
228
+ const Vs = se("save", [
228
229
  [
229
230
  "path",
230
231
  {
@@ -241,7 +242,7 @@ const Ls = se("save", [
241
242
  * This source code is licensed under the ISC license.
242
243
  * See the LICENSE file in the root directory of this source tree.
243
244
  */
244
- const Wt = se("search", [
245
+ const Vt = se("search", [
245
246
  ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }],
246
247
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }]
247
248
  ]);
@@ -282,7 +283,7 @@ const Ns = se("trash-2", [
282
283
  const Es = se("x", [
283
284
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
284
285
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
285
- ]), Ke = {
286
+ ]), Xe = {
286
287
  week: "Тиждень",
287
288
  month: "Місяць",
288
289
  quarter: "Квартал",
@@ -313,7 +314,7 @@ const Es = se("x", [
313
314
  r.value = !r.value, r.value ? setTimeout(() => {
314
315
  document.addEventListener("click", u);
315
316
  }, 200) : document.removeEventListener("click", u);
316
- }, v = (g) => (Ke == null ? void 0 : Ke[g]) ?? g;
317
+ }, v = (g) => (Xe == null ? void 0 : Xe[g]) ?? g;
317
318
  return Ue(() => {
318
319
  document.removeEventListener("click", u);
319
320
  }), (g, b) => (p(), y(U, null, [
@@ -393,7 +394,7 @@ const Es = se("x", [
393
394
  }),
394
395
  emits: /* @__PURE__ */ Be(["update:is-enabled"], ["update:modelValue"]),
395
396
  setup(s, { emit: e }) {
396
- const t = e, a = Gt(s, "modelValue"), r = () => {
397
+ const t = e, a = Ut(s, "modelValue"), r = () => {
397
398
  t("update:is-enabled", a);
398
399
  };
399
400
  return (i, n) => (p(), y("div", As, [
@@ -401,13 +402,13 @@ const Es = se("x", [
401
402
  key: 0,
402
403
  class: ee(["transition-colors", { "text-blue-500": !a.value }])
403
404
  }, W(s.leftLabel), 3)) : A("", !0),
404
- Ht(h("input", {
405
+ Gt(h("input", {
405
406
  "onUpdate:modelValue": n[0] || (n[0] = (o) => a.value = o),
406
407
  type: "checkbox",
407
408
  class: "relative w-11 h-6 p-px bg-gray-100 border-transparent text-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:ring-blue-600 disabled:opacity-50 disabled:pointer-events-none checked:bg-none checked:text-blue-600 checked:border-blue-600 focus:checked:border-blue-600 dark:bg-neutral-800 dark:border-neutral-700 dark:checked:bg-blue-500 dark:checked:border-blue-500 dark:focus:ring-offset-gray-600 before:inline-block before:size-5 before:bg-white checked:before:bg-blue-200 before:translate-x-0 checked:before:translate-x-full before:rounded-full before:shadow before:h-5 before:w-5 before:transform before:ring-0 before:transition before:ease-in-out before:duration-200 dark:before:bg-neutral-400 dark:checked:before:bg-blue-200",
408
409
  onChange: r
409
410
  }, null, 544), [
410
- [ps, a.value]
411
+ [hs, a.value]
411
412
  ]),
412
413
  s.rightLabel ? (p(), y("div", {
413
414
  key: 1,
@@ -428,24 +429,24 @@ function Us(s, e) {
428
429
  ], -1)
429
430
  ])]);
430
431
  }
431
- const Gs = /* @__PURE__ */ Q(qs, [["render", Us]]), Nt = {
432
- "bi-bar": M(() => Promise.resolve().then(() => ti)),
433
- "bi-number": M(() => import("./vs-number-DcNzw794.js")),
434
- "bi-text": M(() => import("./vs-text-BrR4ghm-.js")),
435
- "bi-listbar": M(() => Promise.resolve().then(() => eo)),
436
- "bi-pie": M(() => Promise.resolve().then(() => ui)),
437
- "bi-donut": M(() => Promise.resolve().then(() => ii)),
438
- "bi-line": M(() => Promise.resolve().then(() => mi)),
439
- "bi-stat": M(() => Promise.resolve().then(() => Vi)),
440
- "bi-pivot": M(() => Promise.resolve().then(() => xo)),
441
- "bi-progress": M(() => Promise.resolve().then(() => Ui)),
442
- "bi-funnel": M(() => import("./vs-funnel-bar-DqAvALNw.js")),
443
- "bi-map": M(() => import("./vs-map-Bv1DE5Cy.js")),
444
- "bi-cluster": M(() => import("./vs-map-cluster-Bi6VgdLb.js")),
445
- "bi-table": M(() => import("./vs-table-BNtAxSD5.js"))
432
+ const Gs = /* @__PURE__ */ Q(qs, [["render", Us]]), Wt = {
433
+ "bi-bar": M(() => Promise.resolve().then(() => Jn)),
434
+ "bi-number": M(() => import("./vs-number-BM6bcbqf.js")),
435
+ "bi-text": M(() => import("./vs-text-gU23_bK6.js")),
436
+ "bi-listbar": M(() => Promise.resolve().then(() => Yi)),
437
+ "bi-pie": M(() => Promise.resolve().then(() => li)),
438
+ "bi-donut": M(() => Promise.resolve().then(() => ai)),
439
+ "bi-line": M(() => Promise.resolve().then(() => pi)),
440
+ "bi-stat": M(() => Promise.resolve().then(() => Ii)),
441
+ "bi-pivot": M(() => Promise.resolve().then(() => go)),
442
+ "bi-progress": M(() => Promise.resolve().then(() => Fi)),
443
+ "bi-funnel": M(() => import("./vs-funnel-bar-Bm8btLrA.js")),
444
+ "bi-map": M(() => import("./vs-map-3A5t9VTQ.js")),
445
+ "bi-cluster": M(() => import("./vs-map-cluster-DKZhfi6w.js")),
446
+ "bi-table": M(() => import("./vs-table-CYix8IRT.js"))
446
447
  };
447
448
  let Xt = "/api";
448
- function Ze(s) {
449
+ function He(s) {
449
450
  Xt = s || "/api";
450
451
  }
451
452
  function Hs(s, e) {
@@ -492,7 +493,7 @@ const H = {
492
493
  }, Zs = {
493
494
  key: 0,
494
495
  class: "text-[16px] flex max-w-full items-center min-h-0 justify-between h-fit shrink-0"
495
- }, Qs = { class: "flex items-center justify-between w-full gap-2" }, Xs = { class: "flex items-center gap-2 min-w-0" }, Ks = { class: "text-gray-800 inline-block line-clamp-1 font-semibold" }, Ys = { class: "flex flex-col justify-end" }, Js = {
496
+ }, Qs = { class: "flex items-center justify-between w-full gap-2" }, Xs = { class: "flex items-center gap-2 min-w-0" }, Ys = { class: "text-gray-800 inline-block line-clamp-1 font-semibold" }, Js = { class: "flex flex-col justify-end" }, Ks = {
496
497
  key: 0,
497
498
  class: "flex items-center justify-end w-full gap-2"
498
499
  }, ea = { class: "w-full h-full" }, Oe = /* @__PURE__ */ ge({
@@ -529,7 +530,7 @@ const H = {
529
530
  }));
530
531
  }), g = F(() => {
531
532
  const w = u.value ? `bi-${u.value}` : "";
532
- return w && w in Nt ? Nt[w] : null;
533
+ return w && w in Wt ? Wt[w] : null;
533
534
  });
534
535
  function b(w, d) {
535
536
  var x, _;
@@ -546,7 +547,7 @@ const H = {
546
547
  w += `&${_.name}=${_.option}`;
547
548
  }), (x = (d = i.value) == null ? void 0 : d.getDataFromURL) == null || x.call(d, w);
548
549
  }
549
- function V() {
550
+ function L() {
550
551
  const w = n.value;
551
552
  if (w != null && w.getDataURL) {
552
553
  const d = w.getDataURL({
@@ -558,7 +559,7 @@ const H = {
558
559
  }
559
560
  }
560
561
  return le(() => {
561
- t.prefix && Ze(t.prefix);
562
+ t.prefix && He(t.prefix);
562
563
  }), te(
563
564
  () => t.filterURl,
564
565
  (w) => {
@@ -588,10 +589,10 @@ const H = {
588
589
  ["text", "cluster", "map"].includes(u.value) ? A("", !0) : (p(), y("div", Zs, [
589
590
  h("div", Qs, [
590
591
  h("div", Xs, [
591
- h("span", Ks, W(c.value), 1)
592
+ h("span", Ys, W(c.value), 1)
592
593
  ]),
593
- h("div", Ys, [
594
- (x = v.value) != null && x.length ? (p(), y("span", Js, [
594
+ h("div", Js, [
595
+ (x = v.value) != null && x.length ? (p(), y("span", Ks, [
595
596
  (p(!0), y(U, null, Z((_ = v.value) == null ? void 0 : _.filter(
596
597
  (m) => (m == null ? void 0 : m.options) && (m == null ? void 0 : m.name) !== "export"
597
598
  ), (m) => {
@@ -617,7 +618,7 @@ const H = {
617
618
  key: 0,
618
619
  type: "button",
619
620
  class: "h-[32px] w-[32px] rounded-lg hover:bg-gray-100 duration-100 flex items-center justify-center",
620
- onClick: V
621
+ onClick: L
621
622
  }, [
622
623
  T(E(zs), {
623
624
  size: 16,
@@ -629,7 +630,7 @@ const H = {
629
630
  ])
630
631
  ])),
631
632
  h("div", ea, [
632
- g.value ? (p(), N(Zt(g.value), {
633
+ g.value ? (p(), N(Ht(g.value), {
633
634
  key: 0,
634
635
  ref_key: "chartRef",
635
636
  ref: i,
@@ -659,7 +660,7 @@ const H = {
659
660
  return (e, t) => (p(), y("div", ta, [
660
661
  h("div", null, [
661
662
  h("div", sa, [
662
- t[0] || (t[0] = fs('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
663
+ t[0] || (t[0] = ps('<svg class="w-48 mx-auto" viewBox="0 0 178 90" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs></svg>', 1)),
663
664
  h("div", aa, [
664
665
  h("p", ra, W(s.title), 1),
665
666
  h("p", na, W(s.text), 1)
@@ -685,7 +686,7 @@ const H = {
685
686
  title: "Фільтри вимкнено (v3-filter видалено)"
686
687
  };
687
688
  function da(s, e, t, a, r, i) {
688
- const n = Y("filterIcon");
689
+ const n = J("filterIcon");
689
690
  return p(), y("div", la, [
690
691
  t.filterScheme ? (p(), y("button", ca, [
691
692
  T(n),
@@ -708,7 +709,7 @@ const ua = /* @__PURE__ */ Q(oa, [["render", da]]), ha = {
708
709
  };
709
710
  function xa(s, e, t, a, r, i) {
710
711
  var o, l, c;
711
- const n = Y("VsFilterHeader");
712
+ const n = J("VsFilterHeader");
712
713
  return p(), y("div", pa, [
713
714
  h("div", fa, [
714
715
  h("h1", ga, W((o = t.dashboardData) == null ? void 0 : o.title), 1),
@@ -722,19 +723,10 @@ function xa(s, e, t, a, r, i) {
722
723
  ])) : A("", !0)
723
724
  ]);
724
725
  }
725
- const ya = /* @__PURE__ */ Q(ha, [["render", xa]]);
726
- var Kt = {};
727
- const wa = Symbol(Kt.NODE_ENV !== "production" ? "router" : ""), va = Symbol(Kt.NODE_ENV !== "production" ? "route location" : "");
728
- function we() {
729
- return He(wa);
730
- }
731
- function ka(s) {
732
- return He(va);
733
- }
734
- const $a = {
726
+ const ya = /* @__PURE__ */ Q(ha, [["render", xa]]), wa = {
735
727
  key: 0,
736
728
  class: "text-gray-400 shrink-0"
737
- }, _a = ["onClick"], Da = ["onClick"], Ca = {
729
+ }, va = ["onClick"], ka = ["onClick"], $a = {
738
730
  key: 4,
739
731
  class: "text-gray-900 font-medium truncate"
740
732
  }, Yt = {
@@ -753,20 +745,20 @@ const $a = {
753
745
  t != null && t.push ? t.push(i) : typeof i == "string" && (window != null && window.location) && (window.location.href = i);
754
746
  }
755
747
  return (i, n) => {
756
- const o = Y("router-link");
748
+ const o = J("router-link");
757
749
  return p(), y("nav", {
758
750
  class: ee(["flex items-center gap-2 text-sm text-gray-600", s.compact ? "py-1" : "py-6"]),
759
751
  "aria-label": "Breadcrumb"
760
752
  }, [
761
753
  (p(!0), y(U, null, Z(a.value, (l, c) => (p(), y(U, { key: c }, [
762
- c > 0 ? (p(), y("span", $a, [
754
+ c > 0 ? (p(), y("span", wa, [
763
755
  T(E(Cs), { class: "w-4 h-4" })
764
756
  ])) : A("", !0),
765
757
  typeof l.onClick == "function" ? (p(), y("span", {
766
758
  key: 1,
767
759
  class: "hover:text-gray-900 transition-colors cursor-pointer",
768
760
  onClick: (u) => l.onClick()
769
- }, W(l.label), 9, _a)) : E(t) && l.to ? (p(), N(o, {
761
+ }, W(l.label), 9, va)) : E(t) && l.to ? (p(), N(o, {
770
762
  key: 2,
771
763
  to: l.to,
772
764
  class: "hover:text-gray-900 transition-colors"
@@ -779,12 +771,12 @@ const $a = {
779
771
  key: 3,
780
772
  class: "hover:text-gray-900 transition-colors cursor-pointer",
781
773
  onClick: (u) => r(l.to)
782
- }, W(l.label), 9, Da)) : (p(), y("span", Ca, W(l.label), 1))
774
+ }, W(l.label), 9, ka)) : (p(), y("span", $a, W(l.label), 1))
783
775
  ], 64))), 128))
784
776
  ], 2);
785
777
  };
786
778
  }
787
- }, za = {
779
+ }, _a = {
788
780
  components: { VsWidget: Oe, VsNewNodata: Pe, VsHeader: ya, VsBreadcrumbs: Yt },
789
781
  props: ["id", "prefix"],
790
782
  data() {
@@ -798,7 +790,7 @@ const $a = {
798
790
  };
799
791
  },
800
792
  async mounted() {
801
- Ze(this.prefix || "/api"), await this.fetchData();
793
+ He(this.prefix || "/api"), await this.fetchData();
802
794
  },
803
795
  methods: {
804
796
  async fetchData() {
@@ -833,12 +825,12 @@ const $a = {
833
825
  }), this.filterURl += e);
834
826
  }
835
827
  }
836
- }, Ta = { class: "w-full pb-8 overflow-y-auto mx-auto" }, Ia = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
837
- function Sa(s, e, t, a, r, i) {
828
+ }, Da = { class: "w-full pb-8 overflow-y-auto mx-auto" }, Ca = { class: "grid flex-grow w-full grid-cols-12 gap-4 h-fit" };
829
+ function za(s, e, t, a, r, i) {
838
830
  var l;
839
- const n = Y("VsNewNodata"), o = Y("VsWidget");
840
- return p(), y("div", Ta, [
841
- h("div", Ia, [
831
+ const n = J("VsNewNodata"), o = J("VsWidget");
832
+ return p(), y("div", Da, [
833
+ h("div", Ca, [
842
834
  r.error || !r.dashboardData ? (p(), N(n, {
843
835
  key: 0,
844
836
  class: "col-span-12"
@@ -868,21 +860,21 @@ function Sa(s, e, t, a, r, i) {
868
860
  ])
869
861
  ]);
870
862
  }
871
- const vo = /* @__PURE__ */ Q(za, [["render", Sa]]);
872
- var Ra = /* @__PURE__ */ ((s) => (s.Dashboard = "/dashboard", s.BiPlatform = "/bi-platform", s.EditorBase = "/editor", s.AllDashboards = "/dashboards", s.DashboardByName = "/dashboards/:name", s))(Ra || {}), Et;
863
+ const yo = /* @__PURE__ */ Q(_a, [["render", za]]);
864
+ var Ta = /* @__PURE__ */ ((s) => (s.Dashboard = "/dashboard", s.BiPlatform = "/bi-platform", s.EditorBase = "/editor", s.AllDashboards = "/dashboards", s.DashboardByName = "/dashboards/:name", s))(Ta || {}), Nt;
873
865
  ((s) => {
874
866
  ((e) => {
875
867
  e.Bar = "bar", e.ListBar = "listbar", e.Number = "number", e.Text = "text", e.Pie = "pie", e.Heatmap = "heatmap", e.Calendar = "calendar", e.Line = "line", e.Stat = "stat", e.Pivot = "pivot", e.Funnel = "funnel", e.Progress = "progress";
876
868
  })(s.Types || (s.Types = {}));
877
- })(Et || (Et = {}));
878
- var K = /* @__PURE__ */ ((s) => (s.AllDashboards = "all-dashboards", s.BiPlatform = "bi-platform", s.Dashboard = "dashboard", s.Erobota = "erobota", s.Datatest = "datatest", s.Sourcedate = "sourcedate", s.Widgetwidget = "widgetwidget", s.Test = "test", s.Demo = "demo", s.Crm = "crm", s.Editor = "editor", s.EditorDashboard = "editor-dashboard", s.EditorWidget = "editor-widget", s.Editordetails = "editordetails", s.Dbtables = "dbtables", s.Biviewer = "biviewer", s.Biviewerinner = "biviewerinner", s.Bieditor = "bieditor", s.Bieditorinner = "bieditorinner", s))(K || {});
879
- const Va = {
869
+ })(Nt || (Nt = {}));
870
+ var Y = /* @__PURE__ */ ((s) => (s.AllDashboards = "all-dashboards", s.BiPlatform = "bi-platform", s.Dashboard = "dashboard", s.Erobota = "erobota", s.Datatest = "datatest", s.Sourcedate = "sourcedate", s.Widgetwidget = "widgetwidget", s.Test = "test", s.Demo = "demo", s.Crm = "crm", s.Editor = "editor", s.EditorDashboard = "editor-dashboard", s.EditorWidget = "editor-widget", s.Editordetails = "editordetails", s.Dbtables = "dbtables", s.Biviewer = "biviewer", s.Biviewerinner = "biviewerinner", s.Bieditor = "bieditor", s.Bieditorinner = "bieditorinner", s))(Y || {});
871
+ const Ia = {
880
872
  key: 0,
881
873
  class: "vs-modal-wrapper fixed inset-0 flex items-center justify-center p-4"
882
- }, La = { class: "flex items-center justify-between shrink-0 py-2.5 px-4 border-b border-gray-200 dark:border-[#454545]" }, Wa = { class: "font-medium text-gray-800 dark:text-white" }, Na = { class: "vs-modal-content flex-1 min-h-0 overflow-auto p-4" }, Ea = {
874
+ }, Sa = { class: "flex items-center justify-between shrink-0 py-2.5 px-4 border-b border-gray-200 dark:border-[#454545]" }, Ra = { class: "font-medium text-gray-800 dark:text-white" }, La = { class: "vs-modal-content flex-1 min-h-0 overflow-auto p-4" }, Va = {
883
875
  key: 0,
884
876
  class: "shrink-0 border-t border-gray-200 dark:border-neutral-700"
885
- }, ja = {
877
+ }, Wa = {
886
878
  __name: "vs-modal",
887
879
  props: {
888
880
  visible: { type: Boolean, default: !1 },
@@ -904,14 +896,14 @@ const Va = {
904
896
  window.addEventListener("keydown", n);
905
897
  }), Ue(() => {
906
898
  window.removeEventListener("keydown", n);
907
- }), (o, l) => (p(), N(gs, { to: s.teleport }, [
908
- s.visible ? (p(), y("div", Va, [
899
+ }), (o, l) => (p(), N(fs, { to: s.teleport }, [
900
+ s.visible ? (p(), y("div", Ia, [
909
901
  h("div", {
910
902
  class: "absolute inset-0 bg-black/50",
911
903
  "aria-hidden": "true",
912
904
  onMousedown: l[0] || (l[0] = (c) => s.closeClickBack && c.target === c.currentTarget && i())
913
905
  }, null, 32),
914
- T(ms, {
906
+ T(gs, {
915
907
  name: "vs-modal",
916
908
  appear: ""
917
909
  }, {
@@ -921,11 +913,11 @@ const Va = {
921
913
  class: ee(["vs-modal-panel relative flex flex-col bg-white dark:bg-[#1A1A1A] rounded-xl shadow-xl max-h-[85vh] min-w-0 border border-gray-200 dark:border-[#454545]", r.value]),
922
914
  role: "dialog",
923
915
  "aria-modal": "true",
924
- onMousedown: l[1] || (l[1] = bs(() => {
916
+ onMousedown: l[1] || (l[1] = ms(() => {
925
917
  }, ["stop"]))
926
918
  }, [
927
- h("div", La, [
928
- h("h3", Wa, W(s.title), 1),
919
+ h("div", Sa, [
920
+ h("h3", Ra, W(s.title), 1),
929
921
  h("button", {
930
922
  type: "button",
931
923
  class: "size-8 inline-flex justify-center items-center rounded-full bg-gray-100 text-gray-800 hover:bg-gray-200 dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-300",
@@ -948,11 +940,11 @@ const Va = {
948
940
  ], -1)
949
941
  ])])
950
942
  ]),
951
- h("div", Na, [
952
- Rt(o.$slots, "default", {}, void 0, !0)
943
+ h("div", La, [
944
+ St(o.$slots, "default", {}, void 0, !0)
953
945
  ]),
954
- o.$slots.footer ? (p(), y("div", Ea, [
955
- Rt(o.$slots, "footer", {}, void 0, !0)
946
+ o.$slots.footer ? (p(), y("div", Va, [
947
+ St(o.$slots, "footer", {}, void 0, !0)
956
948
  ])) : A("", !0)
957
949
  ], 34)) : A("", !0)
958
950
  ]),
@@ -961,12 +953,12 @@ const Va = {
961
953
  ])) : A("", !0)
962
954
  ], 8, ["to"]));
963
955
  }
964
- }, Ve = /* @__PURE__ */ Q(ja, [["__scopeId", "data-v-5722a50f"]]), Ba = {
956
+ }, Le = /* @__PURE__ */ Q(Wa, [["__scopeId", "data-v-5722a50f"]]), Na = {
965
957
  __name: "icon-plus",
966
958
  setup(s) {
967
959
  return (e, t) => (p(), N(E(Qt), he(e.$attrs, { size: 24 }), null, 16));
968
960
  }
969
- }, Oa = { class: "mb-4 overflow-auto scrollbar max-h-96" }, Pa = {
961
+ }, Ea = { class: "mb-4 overflow-auto scrollbar max-h-96" }, ja = {
970
962
  __name: "vs-editor-create-widget",
971
963
  props: {
972
964
  columns: {
@@ -1001,15 +993,15 @@ const Va = {
1001
993
  message: "Віджет успішно створено"
1002
994
  }), await i("update-data"), l.value = {}, o.value = !1;
1003
995
  } catch ($) {
1004
- const V = ($ == null ? void 0 : $.message) || "При спробі створити віджет сталася помилка. Перевірте обов'язкові поля (зокрема Type).";
996
+ const L = ($ == null ? void 0 : $.message) || "При спробі створити віджет сталася помилка. Перевірте обов'язкові поля (зокрема Type).";
1005
997
  r == null || r({
1006
998
  type: "error",
1007
999
  title: "Помилка!",
1008
- message: V
1000
+ message: L
1009
1001
  });
1010
1002
  }
1011
1003
  }, g = F(() => {
1012
- var k, $, V, w;
1004
+ var k, $, L, w;
1013
1005
  return {
1014
1006
  title: {
1015
1007
  type: "text",
@@ -1039,7 +1031,7 @@ const Va = {
1039
1031
  style: { size: "xs" },
1040
1032
  options: [
1041
1033
  { id: "count", label: "count" },
1042
- ...(w = (V = n.columns) == null ? void 0 : V.filter((d) => (d == null ? void 0 : d.type) === "numeric" || (d == null ? void 0 : d.type) === "double precision")) == null ? void 0 : w.map(({ name: d, type: x }) => ({
1034
+ ...(w = (L = n.columns) == null ? void 0 : L.filter((d) => (d == null ? void 0 : d.type) === "numeric" || (d == null ? void 0 : d.type) === "double precision")) == null ? void 0 : w.map(({ name: d, type: x }) => ({
1043
1035
  id: d,
1044
1036
  text: d,
1045
1037
  type: x
@@ -1149,9 +1141,9 @@ const Va = {
1149
1141
  };
1150
1142
  });
1151
1143
  return (k, $) => {
1152
- const V = Y("VsPopover");
1144
+ const L = J("VsPopover");
1153
1145
  return p(), y("div", null, [
1154
- s.inline ? A("", !0) : (p(), N(V, {
1146
+ s.inline ? A("", !0) : (p(), N(L, {
1155
1147
  key: 0,
1156
1148
  placement: "right",
1157
1149
  trigger: "hover"
@@ -1162,7 +1154,7 @@ const Va = {
1162
1154
  class: "z-50 flex items-center justify-center h-[50px] !w-[50px] text-2xl text-white transition-colors bg-blue-500 rounded-full cursor-pointer hover:bg-blue-700",
1163
1155
  onClick: u
1164
1156
  }, [
1165
- T(Ba, {
1157
+ T(Na, {
1166
1158
  height: "20",
1167
1159
  width: "20"
1168
1160
  })
@@ -1174,7 +1166,7 @@ const Va = {
1174
1166
  ]),
1175
1167
  _: 1
1176
1168
  })),
1177
- T(Ve, {
1169
+ T(Le, {
1178
1170
  teleport: "#modal",
1179
1171
  visible: o.value,
1180
1172
  title: "Створити віджет",
@@ -1194,7 +1186,7 @@ const Va = {
1194
1186
  ])
1195
1187
  ]),
1196
1188
  default: j(() => [
1197
- h("div", Oa, [
1189
+ h("div", Ea, [
1198
1190
  T(E(a), {
1199
1191
  ref_key: "form",
1200
1192
  ref: c,
@@ -1214,12 +1206,12 @@ const Va = {
1214
1206
  setup(s) {
1215
1207
  return (e, t) => (p(), N(E(Ns), he(e.$attrs, { size: 24 }), null, 16));
1216
1208
  }
1217
- }, es = {
1209
+ }, Kt = {
1218
1210
  __name: "edit",
1219
1211
  setup(s) {
1220
- return (e, t) => (p(), N(E(Vs), he(e.$attrs, { size: 24 }), null, 16));
1212
+ return (e, t) => (p(), N(E(Ls), he(e.$attrs, { size: 24 }), null, 16));
1221
1213
  }
1222
- }, Aa = { class: "space-y-4" }, Fa = {
1214
+ }, Ba = { class: "space-y-4" }, Oa = {
1223
1215
  __name: "vs-editor-form-style",
1224
1216
  props: {
1225
1217
  widgetName: { type: String },
@@ -1283,7 +1275,7 @@ const Va = {
1283
1275
  }
1284
1276
  }, k = (C = n.data) == null ? void 0 : C.style, $ = I(
1285
1277
  k != null && k.label ? { ...k.label } : { show: f.label }
1286
- ), V = I(
1278
+ ), L = I(
1287
1279
  k != null && k.legend ? { ...k.legend } : { show: f.legend }
1288
1280
  ), w = I(
1289
1281
  k != null && k.tooltip ? { ...k.tooltip } : { show: f.tooltip }
@@ -1291,19 +1283,19 @@ const Va = {
1291
1283
  const z = new CustomEvent(`update-style-${n.widgetName}`);
1292
1284
  z.chartId = n.widgetName, z.options = {
1293
1285
  options: {
1294
- legend: V.value,
1286
+ legend: L.value,
1295
1287
  tooltip: w.value,
1296
1288
  label: $.value
1297
1289
  },
1298
1290
  seriesOptions: $.value
1299
1291
  }, window.dispatchEvent(z);
1300
1292
  };
1301
- te($, d, { deep: !0 }), te(V, d, { deep: !0 }), te(w, d, { deep: !0 });
1293
+ te($, d, { deep: !0 }), te(L, d, { deep: !0 }), te(w, d, { deep: !0 });
1302
1294
  const x = async () => {
1303
1295
  try {
1304
1296
  await H.put(`/bi-dashboard/${l.value}/${n.widgetName}`, {
1305
1297
  style: {
1306
- legend: V.value,
1298
+ legend: L.value,
1307
1299
  tooltip: w.value,
1308
1300
  label: $.value
1309
1301
  }
@@ -1311,7 +1303,7 @@ const Va = {
1311
1303
  const z = new CustomEvent(`update-style-${n.widgetName}`);
1312
1304
  z.chartId = n.widgetName, z.options = {
1313
1305
  options: {
1314
- legend: V.value,
1306
+ legend: L.value,
1315
1307
  tooltip: w.value,
1316
1308
  label: $.value
1317
1309
  },
@@ -1332,7 +1324,7 @@ const Va = {
1332
1324
  return le(() => {
1333
1325
  const z = new URLSearchParams(window.top.location.search);
1334
1326
  o.value = z.get("dashboard"), d();
1335
- }), e({ requestUpdateWidget: x }), (z, R) => (p(), y("div", Aa, [
1327
+ }), e({ requestUpdateWidget: x }), (z, R) => (p(), y("div", Ba, [
1336
1328
  T(E(a), {
1337
1329
  schema: v,
1338
1330
  values: $.value,
@@ -1341,8 +1333,8 @@ const Va = {
1341
1333
  }, null, 8, ["values"]),
1342
1334
  T(E(a), {
1343
1335
  schema: g,
1344
- values: V.value,
1345
- "onUpdate:values": R[1] || (R[1] = (q) => V.value = q),
1336
+ values: L.value,
1337
+ "onUpdate:values": R[1] || (R[1] = (q) => L.value = q),
1346
1338
  class: "p-0"
1347
1339
  }, null, 8, ["values"]),
1348
1340
  T(E(a), {
@@ -1354,7 +1346,7 @@ const Va = {
1354
1346
  ]));
1355
1347
  }
1356
1348
  };
1357
- function st() {
1349
+ function tt() {
1358
1350
  return {
1359
1351
  async: !1,
1360
1352
  breaks: !1,
@@ -1368,39 +1360,39 @@ function st() {
1368
1360
  walkTokens: null
1369
1361
  };
1370
1362
  }
1371
- let be = st();
1372
- function ts(s) {
1363
+ let be = tt();
1364
+ function es(s) {
1373
1365
  be = s;
1374
1366
  }
1375
- const ss = /[&<>"']/, qa = new RegExp(ss.source, "g"), as = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ma = new RegExp(as.source, "g"), Ua = {
1367
+ const ts = /[&<>"']/, Pa = new RegExp(ts.source, "g"), ss = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Aa = new RegExp(ss.source, "g"), Fa = {
1376
1368
  "&": "&amp;",
1377
1369
  "<": "&lt;",
1378
1370
  ">": "&gt;",
1379
1371
  '"': "&quot;",
1380
1372
  "'": "&#39;"
1381
- }, jt = (s) => Ua[s];
1382
- function J(s, e) {
1373
+ }, Et = (s) => Fa[s];
1374
+ function K(s, e) {
1383
1375
  if (e) {
1384
- if (ss.test(s))
1385
- return s.replace(qa, jt);
1386
- } else if (as.test(s))
1387
- return s.replace(Ma, jt);
1376
+ if (ts.test(s))
1377
+ return s.replace(Pa, Et);
1378
+ } else if (ss.test(s))
1379
+ return s.replace(Aa, Et);
1388
1380
  return s;
1389
1381
  }
1390
- const Ga = /(^|[^\[])\^/g;
1382
+ const qa = /(^|[^\[])\^/g;
1391
1383
  function O(s, e) {
1392
1384
  let t = typeof s == "string" ? s : s.source;
1393
1385
  e = e || "";
1394
1386
  const a = {
1395
1387
  replace: (r, i) => {
1396
1388
  let n = typeof i == "string" ? i : i.source;
1397
- return n = n.replace(Ga, "$1"), t = t.replace(r, n), a;
1389
+ return n = n.replace(qa, "$1"), t = t.replace(r, n), a;
1398
1390
  },
1399
1391
  getRegex: () => new RegExp(t, e)
1400
1392
  };
1401
1393
  return a;
1402
1394
  }
1403
- function Bt(s) {
1395
+ function jt(s) {
1404
1396
  try {
1405
1397
  s = encodeURI(s).replace(/%25/g, "%");
1406
1398
  } catch {
@@ -1409,7 +1401,7 @@ function Bt(s) {
1409
1401
  return s;
1410
1402
  }
1411
1403
  const Se = { exec: () => null };
1412
- function Ot(s, e) {
1404
+ function Bt(s, e) {
1413
1405
  const t = s.replace(/\|/g, (i, n, o) => {
1414
1406
  let l = !1, c = n;
1415
1407
  for (; --c >= 0 && o[c] === "\\"; )
@@ -1436,7 +1428,7 @@ function Te(s, e, t) {
1436
1428
  r++;
1437
1429
  return s.slice(0, a - r);
1438
1430
  }
1439
- function Ha(s, e) {
1431
+ function Ma(s, e) {
1440
1432
  if (s.indexOf(e[1]) === -1)
1441
1433
  return -1;
1442
1434
  let t = 0;
@@ -1449,8 +1441,8 @@ function Ha(s, e) {
1449
1441
  return a;
1450
1442
  return -1;
1451
1443
  }
1452
- function Pt(s, e, t, a) {
1453
- const r = e.href, i = e.title ? J(e.title) : null, n = s[1].replace(/\\([\[\]])/g, "$1");
1444
+ function Ot(s, e, t, a) {
1445
+ const r = e.href, i = e.title ? K(e.title) : null, n = s[1].replace(/\\([\[\]])/g, "$1");
1454
1446
  if (s[0].charAt(0) !== "!") {
1455
1447
  a.state.inLink = !0;
1456
1448
  const o = {
@@ -1468,10 +1460,10 @@ function Pt(s, e, t, a) {
1468
1460
  raw: t,
1469
1461
  href: r,
1470
1462
  title: i,
1471
- text: J(n)
1463
+ text: K(n)
1472
1464
  };
1473
1465
  }
1474
- function Za(s, e) {
1466
+ function Ua(s, e) {
1475
1467
  const t = s.match(/^(\s+)(?:```)/);
1476
1468
  if (t === null)
1477
1469
  return e;
@@ -1519,7 +1511,7 @@ class Ae {
1519
1511
  fences(e) {
1520
1512
  const t = this.rules.block.fences.exec(e);
1521
1513
  if (t) {
1522
- const a = t[0], r = Za(a, t[3] || "");
1514
+ const a = t[0], r = Ua(a, t[3] || "");
1523
1515
  return {
1524
1516
  type: "code",
1525
1517
  raw: a,
@@ -1629,16 +1621,16 @@ ${f}` : f;
1629
1621
  break;
1630
1622
  c = t[0], e = e.substring(c.length);
1631
1623
  let f = t[2].split(`
1632
- `, 1)[0].replace(/^\t+/, (V) => " ".repeat(3 * V.length)), v = e.split(`
1624
+ `, 1)[0].replace(/^\t+/, (L) => " ".repeat(3 * L.length)), v = e.split(`
1633
1625
  `, 1)[0], g = !f.trim(), b = 0;
1634
1626
  if (this.options.pedantic ? (b = 2, u = f.trimStart()) : g ? b = t[1].length + 1 : (b = t[2].search(/[^ ]/), b = b > 4 ? 1 : b, u = f.slice(b), b += t[1].length), g && /^[ \t]*$/.test(v) && (c += v + `
1635
1627
  `, e = e.substring(v.length + 1), l = !0), !l) {
1636
- const V = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), w = new RegExp(`^ {0,${Math.min(3, b - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), d = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:\`\`\`|~~~)`), x = new RegExp(`^ {0,${Math.min(3, b - 1)}}#`), _ = new RegExp(`^ {0,${Math.min(3, b - 1)}}<(?:[a-z].*>|!--)`, "i");
1628
+ const L = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), w = new RegExp(`^ {0,${Math.min(3, b - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), d = new RegExp(`^ {0,${Math.min(3, b - 1)}}(?:\`\`\`|~~~)`), x = new RegExp(`^ {0,${Math.min(3, b - 1)}}#`), _ = new RegExp(`^ {0,${Math.min(3, b - 1)}}<(?:[a-z].*>|!--)`, "i");
1637
1629
  for (; e; ) {
1638
1630
  const D = e.split(`
1639
1631
  `, 1)[0];
1640
1632
  let m;
1641
- if (v = D, this.options.pedantic ? (v = v.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), m = v) : m = v.replace(/\t/g, " "), d.test(v) || x.test(v) || _.test(v) || V.test(v) || w.test(v))
1633
+ if (v = D, this.options.pedantic ? (v = v.replace(/^ {1,4}(?=( {4})*[^ ])/g, " "), m = v) : m = v.replace(/\t/g, " "), d.test(v) || x.test(v) || _.test(v) || L.test(v) || w.test(v))
1642
1634
  break;
1643
1635
  if (m.search(/[^ ]/) >= b || !v.trim())
1644
1636
  u += `
@@ -1705,7 +1697,7 @@ ${f}` : f;
1705
1697
  const t = this.rules.block.table.exec(e);
1706
1698
  if (!t || !/[:|]/.test(t[2]))
1707
1699
  return;
1708
- const a = Ot(t[1]), r = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
1700
+ const a = Bt(t[1]), r = t[2].replace(/^\||\| *$/g, "").split("|"), i = t[3] && t[3].trim() ? t[3].replace(/\n[ \t]*$/, "").split(`
1709
1701
  `) : [], n = {
1710
1702
  type: "table",
1711
1703
  raw: t[0],
@@ -1724,7 +1716,7 @@ ${f}` : f;
1724
1716
  align: n.align[o]
1725
1717
  });
1726
1718
  for (const o of i)
1727
- n.rows.push(Ot(o, n.header.length).map((l, c) => ({
1719
+ n.rows.push(Bt(o, n.header.length).map((l, c) => ({
1728
1720
  text: l,
1729
1721
  tokens: this.lexer.inline(l),
1730
1722
  header: !1,
@@ -1773,7 +1765,7 @@ ${f}` : f;
1773
1765
  return {
1774
1766
  type: "escape",
1775
1767
  raw: t[0],
1776
- text: J(t[1])
1768
+ text: K(t[1])
1777
1769
  };
1778
1770
  }
1779
1771
  tag(e) {
@@ -1799,7 +1791,7 @@ ${f}` : f;
1799
1791
  if ((a.length - n.length) % 2 === 0)
1800
1792
  return;
1801
1793
  } else {
1802
- const n = Ha(t[2], "()");
1794
+ const n = Ma(t[2], "()");
1803
1795
  if (n > -1) {
1804
1796
  const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + n;
1805
1797
  t[2] = t[2].substring(0, n), t[0] = t[0].substring(0, l).trim(), t[3] = "";
@@ -1811,7 +1803,7 @@ ${f}` : f;
1811
1803
  n && (r = n[1], i = n[3]);
1812
1804
  } else
1813
1805
  i = t[3] ? t[3].slice(1, -1) : "";
1814
- return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(a) ? r = r.slice(1) : r = r.slice(1, -1)), Pt(t, {
1806
+ return r = r.trim(), /^</.test(r) && (this.options.pedantic && !/>$/.test(a) ? r = r.slice(1) : r = r.slice(1, -1)), Ot(t, {
1815
1807
  href: r && r.replace(this.rules.inline.anyPunctuation, "$1"),
1816
1808
  title: i && i.replace(this.rules.inline.anyPunctuation, "$1")
1817
1809
  }, t[0], this.lexer);
@@ -1829,7 +1821,7 @@ ${f}` : f;
1829
1821
  text: n
1830
1822
  };
1831
1823
  }
1832
- return Pt(a, i, a[0], this.lexer);
1824
+ return Ot(a, i, a[0], this.lexer);
1833
1825
  }
1834
1826
  }
1835
1827
  emStrong(e, t, a = "") {
@@ -1878,7 +1870,7 @@ ${f}` : f;
1878
1870
  if (t) {
1879
1871
  let a = t[2].replace(/\n/g, " ");
1880
1872
  const r = /[^ ]/.test(a), i = /^ /.test(a) && / $/.test(a);
1881
- return r && i && (a = a.substring(1, a.length - 1)), a = J(a, !0), {
1873
+ return r && i && (a = a.substring(1, a.length - 1)), a = K(a, !0), {
1882
1874
  type: "codespan",
1883
1875
  raw: t[0],
1884
1876
  text: a
@@ -1907,7 +1899,7 @@ ${f}` : f;
1907
1899
  const t = this.rules.inline.autolink.exec(e);
1908
1900
  if (t) {
1909
1901
  let a, r;
1910
- return t[2] === "@" ? (a = J(t[1]), r = "mailto:" + a) : (a = J(t[1]), r = a), {
1902
+ return t[2] === "@" ? (a = K(t[1]), r = "mailto:" + a) : (a = K(t[1]), r = a), {
1911
1903
  type: "link",
1912
1904
  raw: t[0],
1913
1905
  text: a,
@@ -1928,13 +1920,13 @@ ${f}` : f;
1928
1920
  if (t = this.rules.inline.url.exec(e)) {
1929
1921
  let r, i;
1930
1922
  if (t[2] === "@")
1931
- r = J(t[0]), i = "mailto:" + r;
1923
+ r = K(t[0]), i = "mailto:" + r;
1932
1924
  else {
1933
1925
  let n;
1934
1926
  do
1935
1927
  n = t[0], t[0] = ((a = this.rules.inline._backpedal.exec(t[0])) == null ? void 0 : a[0]) ?? "";
1936
1928
  while (n !== t[0]);
1937
- r = J(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
1929
+ r = K(t[0]), t[1] === "www." ? i = "http://" + t[0] : i = t[0];
1938
1930
  }
1939
1931
  return {
1940
1932
  type: "link",
@@ -1955,7 +1947,7 @@ ${f}` : f;
1955
1947
  const t = this.rules.inline.text.exec(e);
1956
1948
  if (t) {
1957
1949
  let a;
1958
- return this.lexer.state.inRawBlock ? a = t[0] : a = J(t[0]), {
1950
+ return this.lexer.state.inRawBlock ? a = t[0] : a = K(t[0]), {
1959
1951
  type: "text",
1960
1952
  raw: t[0],
1961
1953
  text: a
@@ -1963,79 +1955,79 @@ ${f}` : f;
1963
1955
  }
1964
1956
  }
1965
1957
  }
1966
- const Qa = /^(?:[ \t]*(?:\n|$))+/, Xa = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Ka = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, We = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Ya = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, rs = /(?:[*+-]|\d{1,9}[.)])/, ns = O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, rs).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), at = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Ja = /^[^\n]+/, rt = /(?!\s*\])(?:\\.|[^\[\]\\])+/, er = O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", rt).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), tr = O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, rs).getRegex(), Qe = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", nt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, sr = O("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", nt).replace("tag", Qe).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), is = O(at).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qe).getRegex(), ar = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", is).getRegex(), it = {
1967
- blockquote: ar,
1968
- code: Xa,
1969
- def: er,
1970
- fences: Ka,
1971
- heading: Ya,
1958
+ const Ga = /^(?:[ \t]*(?:\n|$))+/, Ha = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Za = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, We = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qa = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, as = /(?:[*+-]|\d{1,9}[.)])/, rs = O(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, as).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), st = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, Xa = /^[^\n]+/, at = /(?!\s*\])(?:\\.|[^\[\]\\])+/, Ya = O(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", at).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Ja = O(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, as).getRegex(), Ze = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", rt = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, Ka = O("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", rt).replace("tag", Ze).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ns = O(st).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex(), er = O(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ns).getRegex(), nt = {
1959
+ blockquote: er,
1960
+ code: Ha,
1961
+ def: Ya,
1962
+ fences: Za,
1963
+ heading: Qa,
1972
1964
  hr: We,
1973
- html: sr,
1974
- lheading: ns,
1975
- list: tr,
1976
- newline: Qa,
1977
- paragraph: is,
1965
+ html: Ka,
1966
+ lheading: rs,
1967
+ list: Ja,
1968
+ newline: Ga,
1969
+ paragraph: ns,
1978
1970
  table: Se,
1979
- text: Ja
1980
- }, At = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qe).getRegex(), rr = {
1981
- ...it,
1982
- table: At,
1983
- paragraph: O(at).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", At).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Qe).getRegex()
1984
- }, nr = {
1985
- ...it,
1986
- html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", nt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1971
+ text: Xa
1972
+ }, Pt = O("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex(), tr = {
1973
+ ...nt,
1974
+ table: Pt,
1975
+ paragraph: O(st).replace("hr", We).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", Pt).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", Ze).getRegex()
1976
+ }, sr = {
1977
+ ...nt,
1978
+ html: O(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", rt).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1987
1979
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
1988
1980
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
1989
1981
  fences: Se,
1990
1982
  // fences not supported
1991
1983
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
1992
- paragraph: O(at).replace("hr", We).replace("heading", ` *#{1,6} *[^
1993
- ]`).replace("lheading", ns).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1994
- }, os = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ir = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, ls = /^( {2,}|\\)\n(?!\s*$)/, or = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ne = "\\p{P}\\p{S}", lr = O(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ne).getRegex(), cr = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, dr = O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ne).getRegex(), ur = O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ne).getRegex(), hr = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ne).getRegex(), pr = O(/\\([punct])/, "gu").replace(/punct/g, Ne).getRegex(), fr = O(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), gr = O(nt).replace("(?:-->|$)", "-->").getRegex(), mr = O("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", gr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Fe = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, br = O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Fe).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), cs = O(/^!?\[(label)\]\[(ref)\]/).replace("label", Fe).replace("ref", rt).getRegex(), ds = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", rt).getRegex(), xr = O("reflink|nolink(?!\\()", "g").replace("reflink", cs).replace("nolink", ds).getRegex(), ot = {
1984
+ paragraph: O(st).replace("hr", We).replace("heading", ` *#{1,6} *[^
1985
+ ]`).replace("lheading", rs).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1986
+ }, is = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, ar = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, os = /^( {2,}|\\)\n(?!\s*$)/, rr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, Ne = "\\p{P}\\p{S}", nr = O(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, Ne).getRegex(), ir = /\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g, or = O(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, Ne).getRegex(), lr = O("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, Ne).getRegex(), cr = O("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, Ne).getRegex(), dr = O(/\\([punct])/, "gu").replace(/punct/g, Ne).getRegex(), ur = O(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), hr = O(rt).replace("(?:-->|$)", "-->").getRegex(), pr = O("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", hr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Fe = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, fr = O(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", Fe).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), ls = O(/^!?\[(label)\]\[(ref)\]/).replace("label", Fe).replace("ref", at).getRegex(), cs = O(/^!?\[(ref)\](?:\[\])?/).replace("ref", at).getRegex(), gr = O("reflink|nolink(?!\\()", "g").replace("reflink", ls).replace("nolink", cs).getRegex(), it = {
1995
1987
  _backpedal: Se,
1996
1988
  // only used for GFM url
1997
- anyPunctuation: pr,
1998
- autolink: fr,
1999
- blockSkip: cr,
2000
- br: ls,
2001
- code: ir,
1989
+ anyPunctuation: dr,
1990
+ autolink: ur,
1991
+ blockSkip: ir,
1992
+ br: os,
1993
+ code: ar,
2002
1994
  del: Se,
2003
- emStrongLDelim: dr,
2004
- emStrongRDelimAst: ur,
2005
- emStrongRDelimUnd: hr,
2006
- escape: os,
2007
- link: br,
2008
- nolink: ds,
2009
- punctuation: lr,
2010
- reflink: cs,
2011
- reflinkSearch: xr,
2012
- tag: mr,
2013
- text: or,
1995
+ emStrongLDelim: or,
1996
+ emStrongRDelimAst: lr,
1997
+ emStrongRDelimUnd: cr,
1998
+ escape: is,
1999
+ link: fr,
2000
+ nolink: cs,
2001
+ punctuation: nr,
2002
+ reflink: ls,
2003
+ reflinkSearch: gr,
2004
+ tag: pr,
2005
+ text: rr,
2014
2006
  url: Se
2015
- }, yr = {
2016
- ...ot,
2007
+ }, mr = {
2008
+ ...it,
2017
2009
  link: O(/^!?\[(label)\]\((.*?)\)/).replace("label", Fe).getRegex(),
2018
2010
  reflink: O(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Fe).getRegex()
2019
- }, tt = {
2020
- ...ot,
2021
- escape: O(os).replace("])", "~|])").getRegex(),
2011
+ }, et = {
2012
+ ...it,
2013
+ escape: O(is).replace("])", "~|])").getRegex(),
2022
2014
  url: O(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/, "i").replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
2023
2015
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
2024
2016
  del: /^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,
2025
2017
  text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
2026
- }, wr = {
2027
- ...tt,
2028
- br: O(ls).replace("{2,}", "*").getRegex(),
2029
- text: O(tt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
2018
+ }, br = {
2019
+ ...et,
2020
+ br: O(os).replace("{2,}", "*").getRegex(),
2021
+ text: O(et.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
2030
2022
  }, je = {
2031
- normal: it,
2032
- gfm: rr,
2033
- pedantic: nr
2023
+ normal: nt,
2024
+ gfm: tr,
2025
+ pedantic: sr
2034
2026
  }, Ie = {
2035
- normal: ot,
2036
- gfm: tt,
2037
- breaks: wr,
2038
- pedantic: yr
2027
+ normal: it,
2028
+ gfm: et,
2029
+ breaks: br,
2030
+ pedantic: mr
2039
2031
  };
2040
2032
  class ae {
2041
2033
  constructor(e) {
@@ -2274,8 +2266,8 @@ class qe {
2274
2266
  var n;
2275
2267
  const r = (n = (t || "").match(/^\S*/)) == null ? void 0 : n[0], i = e.replace(/\n$/, "") + `
2276
2268
  `;
2277
- return r ? '<pre><code class="language-' + J(r) + '">' + (a ? i : J(i, !0)) + `</code></pre>
2278
- ` : "<pre><code>" + (a ? i : J(i, !0)) + `</code></pre>
2269
+ return r ? '<pre><code class="language-' + K(r) + '">' + (a ? i : K(i, !0)) + `</code></pre>
2270
+ ` : "<pre><code>" + (a ? i : K(i, !0)) + `</code></pre>
2279
2271
  `;
2280
2272
  }
2281
2273
  blockquote({ tokens: e }) {
@@ -2374,7 +2366,7 @@ ${e}</tr>
2374
2366
  return `<del>${this.parser.parseInline(e)}</del>`;
2375
2367
  }
2376
2368
  link({ href: e, title: t, tokens: a }) {
2377
- const r = this.parser.parseInline(a), i = Bt(e);
2369
+ const r = this.parser.parseInline(a), i = jt(e);
2378
2370
  if (i === null)
2379
2371
  return r;
2380
2372
  e = i;
@@ -2382,7 +2374,7 @@ ${e}</tr>
2382
2374
  return t && (n += ' title="' + t + '"'), n += ">" + r + "</a>", n;
2383
2375
  }
2384
2376
  image({ href: e, title: t, text: a }) {
2385
- const r = Bt(e);
2377
+ const r = jt(e);
2386
2378
  if (r === null)
2387
2379
  return a;
2388
2380
  e = r;
@@ -2393,7 +2385,7 @@ ${e}</tr>
2393
2385
  return "tokens" in e && e.tokens ? this.parser.parseInline(e.tokens) : e.text;
2394
2386
  }
2395
2387
  }
2396
- class lt {
2388
+ class ot {
2397
2389
  // no need for block level renderers
2398
2390
  strong({ text: e }) {
2399
2391
  return e;
@@ -2428,7 +2420,7 @@ class re {
2428
2420
  P(this, "options");
2429
2421
  P(this, "renderer");
2430
2422
  P(this, "textRenderer");
2431
- this.options = e || be, this.options.renderer = this.options.renderer || new qe(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new lt();
2423
+ this.options = e || be, this.options.renderer = this.options.renderer || new qe(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new ot();
2432
2424
  }
2433
2425
  /**
2434
2426
  * Static Parse Method
@@ -2627,15 +2619,15 @@ P(Re, "passThroughHooks", /* @__PURE__ */ new Set([
2627
2619
  "postprocess",
2628
2620
  "processAllTokens"
2629
2621
  ]));
2630
- class vr {
2622
+ class xr {
2631
2623
  constructor(...e) {
2632
- P(this, "defaults", st());
2624
+ P(this, "defaults", tt());
2633
2625
  P(this, "options", this.setOptions);
2634
2626
  P(this, "parse", this.parseMarkdown(!0));
2635
2627
  P(this, "parseInline", this.parseMarkdown(!1));
2636
2628
  P(this, "Parser", re);
2637
2629
  P(this, "Renderer", qe);
2638
- P(this, "TextRenderer", lt);
2630
+ P(this, "TextRenderer", ot);
2639
2631
  P(this, "Lexer", ae);
2640
2632
  P(this, "Tokenizer", Ae);
2641
2633
  P(this, "Hooks", Re);
@@ -2791,7 +2783,7 @@ class vr {
2791
2783
  return (a) => {
2792
2784
  if (a.message += `
2793
2785
  Please report this to https://github.com/markedjs/marked.`, e) {
2794
- const r = "<p>An error occurred:</p><pre>" + J(a.message + "", !0) + "</pre>";
2786
+ const r = "<p>An error occurred:</p><pre>" + K(a.message + "", !0) + "</pre>";
2795
2787
  return t ? Promise.resolve(r) : r;
2796
2788
  }
2797
2789
  if (t)
@@ -2800,17 +2792,17 @@ Please report this to https://github.com/markedjs/marked.`, e) {
2800
2792
  };
2801
2793
  }
2802
2794
  }
2803
- const fe = new vr();
2795
+ const fe = new xr();
2804
2796
  function B(s, e) {
2805
2797
  return fe.parse(s, e);
2806
2798
  }
2807
2799
  B.options = B.setOptions = function(s) {
2808
- return fe.setOptions(s), B.defaults = fe.defaults, ts(B.defaults), B;
2800
+ return fe.setOptions(s), B.defaults = fe.defaults, es(B.defaults), B;
2809
2801
  };
2810
- B.getDefaults = st;
2802
+ B.getDefaults = tt;
2811
2803
  B.defaults = be;
2812
2804
  B.use = function(...s) {
2813
- return fe.use(...s), B.defaults = fe.defaults, ts(B.defaults), B;
2805
+ return fe.use(...s), B.defaults = fe.defaults, es(B.defaults), B;
2814
2806
  };
2815
2807
  B.walkTokens = function(s, e) {
2816
2808
  return fe.walkTokens(s, e);
@@ -2819,7 +2811,7 @@ B.parseInline = fe.parseInline;
2819
2811
  B.Parser = re;
2820
2812
  B.parser = re.parse;
2821
2813
  B.Renderer = qe;
2822
- B.TextRenderer = lt;
2814
+ B.TextRenderer = ot;
2823
2815
  B.Lexer = ae;
2824
2816
  B.lexer = ae.lex;
2825
2817
  B.Tokenizer = Ae;
@@ -2832,7 +2824,7 @@ B.walkTokens;
2832
2824
  B.parseInline;
2833
2825
  re.parse;
2834
2826
  ae.lex;
2835
- const kr = { class: "space-y-4" }, $r = {
2827
+ const yr = { class: "space-y-4" }, wr = {
2836
2828
  __name: "vs-editor-form-data",
2837
2829
  props: {
2838
2830
  widgetName: { type: String },
@@ -2843,7 +2835,7 @@ const kr = { class: "space-y-4" }, $r = {
2843
2835
  },
2844
2836
  emits: ["update-dashboard"],
2845
2837
  setup(s, { expose: e, emit: t }) {
2846
- var _, D, m, C, z, R, q, ne, ie, de, ve, ke, $e, _e, De, G, ue, Ce, dt, ut, ht, pt, ft, gt, mt, bt, xt, yt, wt, vt, kt, $t, _t, Dt, Ct, zt, Tt, It;
2838
+ var _, D, m, C, z, R, q, ne, ie, de, ve, ke, $e, _e, De, G, ue, Ce, ct, dt, ut, ht, pt, ft, gt, mt, bt, xt, yt, wt, vt, kt, $t, _t, Dt, Ct, zt, Tt;
2847
2839
  const a = M(() => import("@opengis/form")), { $notify: r } = me().proxy, i = t, n = s, o = typeof window < "u" ? new URLSearchParams(window.top.location.search) : null, l = I((o == null ? void 0 : o.get("dashboard")) || null), c = I([]), u = F(() => {
2848
2840
  const S = n.columns ?? [];
2849
2841
  return S.length ? S : c.value;
@@ -2853,20 +2845,20 @@ const kr = { class: "space-y-4" }, $r = {
2853
2845
  const S = f.value;
2854
2846
  if (!(u.value.length || !S || !n.widgetName))
2855
2847
  try {
2856
- const L = await H.get(`/bi-data?dashboard=${S}&widget=${n.widgetName}`);
2857
- Array.isArray(L == null ? void 0 : L.columns) && L.columns.length && (c.value = L.columns);
2848
+ const V = await H.get(`/bi-data?dashboard=${S}&widget=${n.widgetName}`);
2849
+ Array.isArray(V == null ? void 0 : V.columns) && V.columns.length && (c.value = V.columns);
2858
2850
  } catch {
2859
2851
  }
2860
2852
  }
2861
- const g = (S) => (S == null ? void 0 : S.name) != null ? { id: S.name, text: S.title || S.name } : null, b = (S) => Array.isArray(S) ? [...S].sort((L, oe) => {
2862
- const xe = L.text && L.text !== L.id, St = oe.text && oe.text !== oe.id;
2863
- return xe && !St ? -1 : !xe && St ? 1 : (L.text || "").localeCompare(oe.text || "", void 0, { sensitivity: "base" });
2853
+ const g = (S) => (S == null ? void 0 : S.name) != null ? { id: S.name, text: S.title || S.name } : null, b = (S) => Array.isArray(S) ? [...S].sort((V, oe) => {
2854
+ const xe = V.text && V.text !== V.id, It = oe.text && oe.text !== oe.id;
2855
+ return xe && !It ? -1 : !xe && It ? 1 : (V.text || "").localeCompare(oe.text || "", void 0, { sensitivity: "base" });
2864
2856
  }) : S, k = F(() => {
2865
2857
  const S = (u.value ?? []).filter(
2866
- (L) => (L == null ? void 0 : L.type) == "text" || (L == null ? void 0 : L.type) === "date" || (L == null ? void 0 : L.type) === "timestamp without time zone" || (L == null ? void 0 : L.type) === "boolean" || (L == null ? void 0 : L.type) === "integer"
2858
+ (V) => (V == null ? void 0 : V.type) == "text" || (V == null ? void 0 : V.type) === "date" || (V == null ? void 0 : V.type) === "timestamp without time zone" || (V == null ? void 0 : V.type) === "boolean" || (V == null ? void 0 : V.type) === "integer"
2867
2859
  ).map(g).filter(Boolean);
2868
2860
  return b(S);
2869
- }), $ = F(() => `${n.widgetName}-${k.value.length}-${(u.value ?? []).length}`), V = F(() => ({
2861
+ }), $ = F(() => `${n.widgetName}-${k.value.length}-${(u.value ?? []).length}`), L = F(() => ({
2870
2862
  text: {
2871
2863
  type: "Text",
2872
2864
  label: "Текст",
@@ -2972,13 +2964,13 @@ const kr = { class: "space-y-4" }, $r = {
2972
2964
  granularity: ((ve = (de = n.data) == null ? void 0 : de.data) == null ? void 0 : ve.granularity) || ((ke = n.data) == null ? void 0 : ke.granularity) || null,
2973
2965
  type: ((_e = ($e = n.data) == null ? void 0 : $e.data) == null ? void 0 : _e.type) || ((De = n.data) == null ? void 0 : De.type) || null,
2974
2966
  groupby: ((ue = (G = n.data) == null ? void 0 : G.data) == null ? void 0 : ue.groupby) || n.data.groupby || null,
2975
- fx: ((dt = (Ce = n.data) == null ? void 0 : Ce.data) == null ? void 0 : dt.fx) || ((ut = n.data) == null ? void 0 : ut.fx) || null,
2976
- query: ((pt = (ht = n.data) == null ? void 0 : ht.data) == null ? void 0 : pt.query) || ((ft = n.data) == null ? void 0 : ft.query) || null,
2977
- y_type: ((mt = (gt = n.data) == null ? void 0 : gt.data) == null ? void 0 : mt.y_type) || ((bt = n.data) == null ? void 0 : bt.y_type) || null,
2978
- tableSQL: ((yt = (xt = n.data) == null ? void 0 : xt.data) == null ? void 0 : yt.tableSQL) || ((wt = n.data) == null ? void 0 : wt.tableSQL) || null,
2979
- cls: ((kt = (vt = n.data) == null ? void 0 : vt.data) == null ? void 0 : kt.cls) || (($t = n.data) == null ? void 0 : $t.cls) || null,
2980
- text: ((Dt = (_t = n.data) == null ? void 0 : _t.data) == null ? void 0 : Dt.text) || ((Ct = n.data) == null ? void 0 : Ct.text) || null,
2981
- table: ((Tt = (zt = n.data) == null ? void 0 : zt.data) == null ? void 0 : Tt.table) || ((It = n.data) == null ? void 0 : It.table) || null
2967
+ fx: ((ct = (Ce = n.data) == null ? void 0 : Ce.data) == null ? void 0 : ct.fx) || ((dt = n.data) == null ? void 0 : dt.fx) || null,
2968
+ query: ((ht = (ut = n.data) == null ? void 0 : ut.data) == null ? void 0 : ht.query) || ((pt = n.data) == null ? void 0 : pt.query) || null,
2969
+ y_type: ((gt = (ft = n.data) == null ? void 0 : ft.data) == null ? void 0 : gt.y_type) || ((mt = n.data) == null ? void 0 : mt.y_type) || null,
2970
+ tableSQL: ((xt = (bt = n.data) == null ? void 0 : bt.data) == null ? void 0 : xt.tableSQL) || ((yt = n.data) == null ? void 0 : yt.tableSQL) || null,
2971
+ cls: ((vt = (wt = n.data) == null ? void 0 : wt.data) == null ? void 0 : vt.cls) || ((kt = n.data) == null ? void 0 : kt.cls) || null,
2972
+ text: ((_t = ($t = n.data) == null ? void 0 : $t.data) == null ? void 0 : _t.text) || ((Dt = n.data) == null ? void 0 : Dt.text) || null,
2973
+ table: ((zt = (Ct = n.data) == null ? void 0 : Ct.data) == null ? void 0 : zt.table) || ((Tt = n.data) == null ? void 0 : Tt.table) || null
2982
2974
  }), d = async () => {
2983
2975
  try {
2984
2976
  await H.put(`/bi-dashboard/${f.value}/${n.widgetName}`, {
@@ -2988,8 +2980,8 @@ const kr = { class: "space-y-4" }, $r = {
2988
2980
  Object.entries(w.value).forEach(([oe, xe]) => {
2989
2981
  S += `&${oe}=${xe}`;
2990
2982
  });
2991
- const L = new CustomEvent(`update-data-${n.widgetName}`);
2992
- L.filterUrl = S, window.dispatchEvent(L), i("update-dashboard"), r({
2983
+ const V = new CustomEvent(`update-data-${n.widgetName}`);
2984
+ V.filterUrl = S, window.dispatchEvent(V), i("update-dashboard"), r({
2993
2985
  type: "success",
2994
2986
  title: "Успішно!",
2995
2987
  message: "Дані успішно оновлено"
@@ -3007,8 +2999,8 @@ const kr = { class: "space-y-4" }, $r = {
3007
2999
  Object.entries(w.value).forEach(([oe, xe]) => {
3008
3000
  S += `&${oe}=${xe}`;
3009
3001
  });
3010
- const L = new CustomEvent(`update-data-${n.widgetName}`);
3011
- L.filterUrl = S, window.dispatchEvent(L), i("update-dashboard");
3002
+ const V = new CustomEvent(`update-data-${n.widgetName}`);
3003
+ V.filterUrl = S, window.dispatchEvent(V), i("update-dashboard");
3012
3004
  } catch {
3013
3005
  await r({
3014
3006
  type: "error",
@@ -3025,16 +3017,16 @@ const kr = { class: "space-y-4" }, $r = {
3025
3017
  c.value = [], v();
3026
3018
  },
3027
3019
  { immediate: !0 }
3028
- ), e({ requestUpdateWidget: d }), (S, L) => (p(), y("div", kr, [
3020
+ ), e({ requestUpdateWidget: d }), (S, V) => (p(), y("div", yr, [
3029
3021
  (p(), N(E(a), {
3030
3022
  key: $.value,
3031
- schema: V.value,
3023
+ schema: L.value,
3032
3024
  values: w.value,
3033
- "onUpdate:values": L[0] || (L[0] = (oe) => w.value = oe)
3025
+ "onUpdate:values": V[0] || (V[0] = (oe) => w.value = oe)
3034
3026
  }, null, 8, ["schema", "values"]))
3035
3027
  ]));
3036
3028
  }
3037
- }, _r = { class: "space-y-4" }, Dr = {
3029
+ }, vr = { class: "space-y-4" }, kr = {
3038
3030
  __name: "vs-editor-form-yaml",
3039
3031
  props: {
3040
3032
  yamlValue: { type: null, default: () => "" },
@@ -3046,7 +3038,7 @@ const kr = { class: "space-y-4" }, $r = {
3046
3038
  const a = typeof window < "u" ? window.echarts : null, r = M(
3047
3039
  () => import("@opengis/form").then((g) => g.VsInputMonaco)
3048
3040
  ), i = I(null), { $notify: n } = me().proxy, o = t, l = s, c = (g, { dimensions: b, source: k }) => {
3049
- const $ = g.getOption(), { data: V, ...w } = ($ == null ? void 0 : $.series)[0], [, ...d] = b || [], x = d.map((_, D) => ({
3041
+ const $ = g.getOption(), { data: L, ...w } = ($ == null ? void 0 : $.series)[0], [, ...d] = b || [], x = d.map((_, D) => ({
3050
3042
  ...($ == null ? void 0 : $.series[D]) || {},
3051
3043
  data: k.map((m) => m[D + 1]),
3052
3044
  name: _
@@ -3097,7 +3089,7 @@ const kr = { class: "space-y-4" }, $r = {
3097
3089
  return le(() => {
3098
3090
  const g = new URLSearchParams(window.top.location.search);
3099
3091
  i.value = g.get("dashboard");
3100
- }), e({ requestUpdateWidget: v }), (g, b) => (p(), y("div", _r, [
3092
+ }), e({ requestUpdateWidget: v }), (g, b) => (p(), y("div", vr, [
3101
3093
  T(E(r), {
3102
3094
  modelValue: f.value,
3103
3095
  "onUpdate:modelValue": b[0] || (b[0] = (k) => f.value = k),
@@ -3108,7 +3100,7 @@ const kr = { class: "space-y-4" }, $r = {
3108
3100
  }, null, 8, ["modelValue"])
3109
3101
  ]));
3110
3102
  }
3111
- }, Cr = { class: "pt-[10px]" }, zr = {
3103
+ }, $r = { class: "pt-[10px]" }, _r = {
3112
3104
  __name: "vs-editor-form-controls",
3113
3105
  props: {
3114
3106
  widgetName: { type: String },
@@ -3155,8 +3147,8 @@ const kr = { class: "space-y-4" }, $r = {
3155
3147
  const f = new URLSearchParams(window.top.location.search);
3156
3148
  n.value = f.get("dashboard");
3157
3149
  }), (f, v) => {
3158
- const g = Y("VsButton");
3159
- return p(), y("div", Cr, [
3150
+ const g = J("VsButton");
3151
+ return p(), y("div", $r, [
3160
3152
  T(g, {
3161
3153
  class: "ml-[10px] mb-[10px]",
3162
3154
  type: "plain",
@@ -3175,15 +3167,15 @@ const kr = { class: "space-y-4" }, $r = {
3175
3167
  ]);
3176
3168
  };
3177
3169
  }
3178
- }, Ft = {
3179
- "vs-editor-form-style": Fa,
3180
- "vs-editor-form-data": $r,
3181
- "vs-editor-form-yaml": Dr,
3182
- "vs-editor-form-controls": zr
3183
- }, Tr = {
3170
+ }, At = {
3171
+ "vs-editor-form-style": Oa,
3172
+ "vs-editor-form-data": wr,
3173
+ "vs-editor-form-yaml": kr,
3174
+ "vs-editor-form-controls": _r
3175
+ }, Dr = {
3184
3176
  key: 0,
3185
3177
  class: "p-4 text-sm text-amber-700 bg-amber-50 rounded-lg"
3186
- }, qt = {
3178
+ }, Ft = {
3187
3179
  __name: "editor-tab-error-boundary",
3188
3180
  props: {
3189
3181
  tabComponent: { type: Object, default: null },
@@ -3198,13 +3190,13 @@ const kr = { class: "space-y-4" }, $r = {
3198
3190
  }
3199
3191
  e({ save: r });
3200
3192
  const i = I(!1);
3201
- return xs((n, o, l) => (console.error("Editor tab error:", n, l), i.value = !0, !1)), te(
3193
+ return bs((n, o, l) => (console.error("Editor tab error:", n, l), i.value = !0, !1)), te(
3202
3194
  () => t.tabComponent,
3203
3195
  () => {
3204
3196
  i.value = !1;
3205
3197
  },
3206
3198
  { immediate: !0 }
3207
- ), (n, o) => i.value ? (p(), y("div", Tr, " Помилка завантаження вмісту. Переключіть таб або оновіть сторінку. ")) : (p(), N(Zt(s.tabComponent), he({
3199
+ ), (n, o) => i.value ? (p(), y("div", Dr, " Помилка завантаження вмісту. Переключіть таб або оновіть сторінку. ")) : (p(), N(Ht(s.tabComponent), he({
3208
3200
  ref_key: "tabRef",
3209
3201
  ref: a,
3210
3202
  key: s.tabKey || "tab"
@@ -3212,16 +3204,16 @@ const kr = { class: "space-y-4" }, $r = {
3212
3204
  onUpdateDashboard: o[0] || (o[0] = (l) => n.$emit("update-dashboard"))
3213
3205
  }), null, 16));
3214
3206
  }
3215
- }, Ir = { class: "h-full flex flex-col bg-white shrink-0 !w-[400px] border rounded-xl overflow-hidden border-gray-200" }, Sr = {
3207
+ }, Cr = { class: "h-full flex flex-col bg-white shrink-0 !w-[400px] border rounded-xl overflow-hidden border-gray-200" }, zr = {
3216
3208
  key: 0,
3217
3209
  class: "flex flex-col min-h-0 flex-1"
3218
- }, Rr = { class: "flex items-center border-b border-gray-200 bg-white shrink-0 px-4 h-[49px]" }, Vr = { class: "flex items-center gap-6 min-w-0 -mb-[14px]" }, Lr = ["onClick"], Wr = {
3210
+ }, Tr = { class: "flex items-center border-b border-gray-200 bg-white shrink-0 px-4 h-[49px]" }, Ir = { class: "flex items-center gap-6 min-w-0 -mb-[14px]" }, Sr = ["onClick"], Rr = {
3219
3211
  key: 0,
3220
3212
  class: "absolute bottom-0 left-0 right-0 h-0.5 bg-blue-600 rounded-full"
3221
- }, Nr = { class: "flex items-center gap-1 ml-auto shrink-0" }, Er = {
3213
+ }, Lr = { class: "flex items-center gap-1 ml-auto shrink-0" }, Vr = {
3222
3214
  key: 1,
3223
3215
  class: "flex-1 min-h-0 overflow-auto px-4 py-4 [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
3224
- }, jr = { key: 0 }, Br = { key: 1 }, Or = { class: "p-4" }, Pr = { class: "flex justify-end mt-4 gap-x-3" }, Ar = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, Fr = {
3216
+ }, Wr = { key: 0 }, Nr = { key: 1 }, Er = { class: "p-4" }, jr = { class: "flex justify-end mt-4 gap-x-3" }, Br = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, Or = {
3225
3217
  __name: "vs-editor-forms",
3226
3218
  props: /* @__PURE__ */ Be({
3227
3219
  selectedWidgetData: {
@@ -3244,7 +3236,7 @@ const kr = { class: "space-y-4" }, $r = {
3244
3236
  emits: /* @__PURE__ */ Be(["update-data"], ["update:selectedWidget"]),
3245
3237
  setup(s, { emit: e }) {
3246
3238
  var x, _;
3247
- const t = M(() => import("@opengis/form")), a = (_ = (x = me()) == null ? void 0 : x.proxy) == null ? void 0 : _.$notify, r = we(), i = e, n = I(null), o = s, l = I(!1), c = I(!0), u = I(!1), f = I({}), v = Gt(s, "selectedWidget"), g = [
3239
+ const t = M(() => import("@opengis/form")), a = (_ = (x = me()) == null ? void 0 : x.proxy) == null ? void 0 : _.$notify, r = we(), i = e, n = I(null), o = s, l = I(!1), c = I(!0), u = I(!1), f = I({}), v = Ut(s, "selectedWidget"), g = [
3248
3240
  "table",
3249
3241
  "text",
3250
3242
  "number",
@@ -3257,8 +3249,8 @@ const kr = { class: "space-y-4" }, $r = {
3257
3249
  try {
3258
3250
  await H.delete(
3259
3251
  `/bi-dashboard/${o.selectedDashboard}/${o.selectedWidgetData.name}`
3260
- ), r.hasRoute(K.EditorDashboard) ? r.push({
3261
- name: K.EditorDashboard,
3252
+ ), r.hasRoute(Y.EditorDashboard) ? r.push({
3253
+ name: Y.EditorDashboard,
3262
3254
  params: { dashboardId: o.selectedDashboard }
3263
3255
  }) : v.value = "", i("update-data"), l.value = !1, a({
3264
3256
  type: "success",
@@ -3285,7 +3277,7 @@ const kr = { class: "space-y-4" }, $r = {
3285
3277
  ((C = o.selectedWidgetData) == null ? void 0 : C.type) || ((R = (z = o.selectedWidgetData) == null ? void 0 : z.data) == null ? void 0 : R.type)
3286
3278
  )) : !0;
3287
3279
  });
3288
- }), V = () => {
3280
+ }), L = () => {
3289
3281
  var D, m, C, z, R, q, ne, ie, de;
3290
3282
  f.value = {
3291
3283
  title: (D = o.selectedWidgetData) == null ? void 0 : D.title,
@@ -3406,12 +3398,12 @@ const kr = { class: "space-y-4" }, $r = {
3406
3398
  };
3407
3399
  return (D, m) => {
3408
3400
  var z, R, q, ne, ie, de, ve, ke, $e, _e, De;
3409
- const C = Y("VsPopover");
3401
+ const C = J("VsPopover");
3410
3402
  return p(), y(U, null, [
3411
- h("div", Ir, [
3412
- s.selectedWidgetData ? (p(), y("div", Sr, [
3413
- h("div", Rr, [
3414
- h("nav", Vr, [
3403
+ h("div", Cr, [
3404
+ s.selectedWidgetData ? (p(), y("div", zr, [
3405
+ h("div", Tr, [
3406
+ h("nav", Ir, [
3415
3407
  (p(!0), y(U, null, Z($.value, (G) => (p(), y("button", {
3416
3408
  key: G.id,
3417
3409
  type: "button",
@@ -3419,10 +3411,10 @@ const kr = { class: "space-y-4" }, $r = {
3419
3411
  onClick: (ue) => b.value = G.id
3420
3412
  }, [
3421
3413
  X(W(G.label) + " ", 1),
3422
- b.value === G.id ? (p(), y("span", Wr)) : A("", !0)
3423
- ], 10, Lr))), 128))
3414
+ b.value === G.id ? (p(), y("span", Rr)) : A("", !0)
3415
+ ], 10, Sr))), 128))
3424
3416
  ]),
3425
- h("div", Nr, [
3417
+ h("div", Lr, [
3426
3418
  T(C, {
3427
3419
  placement: "left",
3428
3420
  trigger: "hover"
@@ -3437,7 +3429,7 @@ const kr = { class: "space-y-4" }, $r = {
3437
3429
  return (Ce = (ue = n.value) == null ? void 0 : ue.save) == null ? void 0 : Ce.call(ue);
3438
3430
  })
3439
3431
  }, [
3440
- T(E(Ls), { class: "h-4 w-4" })
3432
+ T(E(Vs), { class: "h-4 w-4" })
3441
3433
  ])
3442
3434
  ]),
3443
3435
  default: j(() => [
@@ -3453,9 +3445,9 @@ const kr = { class: "space-y-4" }, $r = {
3453
3445
  h("button", {
3454
3446
  type: "button",
3455
3447
  class: "h-8 w-8 flex items-center justify-center rounded-lg text-gray-500 hover:text-gray-700 hover:bg-gray-100 transition-colors",
3456
- onClick: V
3448
+ onClick: L
3457
3449
  }, [
3458
- T(es, { class: "h-4 w-4" })
3450
+ T(Kt, { class: "h-4 w-4" })
3459
3451
  ])
3460
3452
  ]),
3461
3453
  default: j(() => [
@@ -3487,13 +3479,13 @@ const kr = { class: "space-y-4" }, $r = {
3487
3479
  key: 0,
3488
3480
  title: (R = s.currentWidgetData) == null ? void 0 : R.title,
3489
3481
  text: (q = s.currentWidgetData) == null ? void 0 : q.message
3490
- }, null, 8, ["title", "text"])) : (p(), y("div", Er, [
3491
- c.value && s.currentWidgetData ? (p(), y("div", jr, [
3492
- T(qt, {
3482
+ }, null, 8, ["title", "text"])) : (p(), y("div", Vr, [
3483
+ c.value && s.currentWidgetData ? (p(), y("div", Wr, [
3484
+ T(Ft, {
3493
3485
  ref_key: "tabPanelRef",
3494
3486
  ref: n,
3495
3487
  "tab-key": b.value,
3496
- "tab-component": E(Ft)["vs-editor-form-" + b.value],
3488
+ "tab-component": E(At)["vs-editor-form-" + b.value],
3497
3489
  widgetName: (ne = s.selectedWidgetData) == null ? void 0 : ne.name,
3498
3490
  dashboardId: s.selectedDashboard,
3499
3491
  yamlValue: ((ie = s.selectedWidgetData) == null ? void 0 : ie.yml) || "",
@@ -3502,12 +3494,12 @@ const kr = { class: "space-y-4" }, $r = {
3502
3494
  columns: (ve = s.currentWidgetData) == null ? void 0 : ve.columns,
3503
3495
  onUpdateDashboard: m[2] || (m[2] = (G) => D.$emit("update-data"))
3504
3496
  }, null, 8, ["tab-key", "tab-component", "widgetName", "dashboardId", "yamlValue", "data", "controls", "columns"])
3505
- ])) : (p(), y("div", Br, [
3506
- T(qt, {
3497
+ ])) : (p(), y("div", Nr, [
3498
+ T(Ft, {
3507
3499
  ref_key: "tabPanelRef",
3508
3500
  ref: n,
3509
3501
  "tab-key": b.value,
3510
- "tab-component": E(Ft)["vs-editor-form-" + b.value],
3502
+ "tab-component": E(At)["vs-editor-form-" + b.value],
3511
3503
  widgetName: (ke = s.selectedWidgetData) == null ? void 0 : ke.name,
3512
3504
  dashboardId: s.selectedDashboard,
3513
3505
  yamlValue: (($e = s.selectedWidgetData) == null ? void 0 : $e.yml) || "",
@@ -3517,16 +3509,16 @@ const kr = { class: "space-y-4" }, $r = {
3517
3509
  onUpdateDashboard: m[3] || (m[3] = (G) => D.$emit("update-data"))
3518
3510
  }, null, 8, ["tab-key", "tab-component", "widgetName", "dashboardId", "yamlValue", "data", "controls", "columns"])
3519
3511
  ])),
3520
- T(Ve, {
3512
+ T(Le, {
3521
3513
  teleport: "#modal",
3522
3514
  visible: l.value,
3523
3515
  title: "Ви впевнені?",
3524
3516
  onClose: m[5] || (m[5] = (G) => l.value = !1)
3525
3517
  }, {
3526
3518
  default: j(() => [
3527
- h("div", Or, [
3519
+ h("div", Er, [
3528
3520
  m[12] || (m[12] = h("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей віджет? ", -1)),
3529
- h("div", Pr, [
3521
+ h("div", jr, [
3530
3522
  h("button", {
3531
3523
  type: "button",
3532
3524
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -3550,14 +3542,14 @@ const kr = { class: "space-y-4" }, $r = {
3550
3542
  class: "p-4"
3551
3543
  }))
3552
3544
  ]),
3553
- T(Ve, {
3545
+ T(Le, {
3554
3546
  teleport: "#modal",
3555
3547
  visible: u.value,
3556
3548
  title: "Редагувати віджет",
3557
3549
  onClose: m[8] || (m[8] = (G) => u.value = !1)
3558
3550
  }, {
3559
3551
  footer: j(() => [
3560
- h("div", Ar, [
3552
+ h("div", Br, [
3561
3553
  h("button", {
3562
3554
  style: { border: "1px solid #000" },
3563
3555
  onClick: m[7] || (m[7] = (G) => u.value = !1),
@@ -3582,10 +3574,10 @@ const kr = { class: "space-y-4" }, $r = {
3582
3574
  ], 64);
3583
3575
  };
3584
3576
  }
3585
- }, qr = { class: "overflow-hidden flex flex-col min-h-[480px]" }, Mr = { class: "flex-1 flex min-h-0 gap-4" }, Ur = { class: "flex-1 min-w-0 pb-4 overflow-auto bg-gray-50/50" }, Gr = {
3577
+ }, Pr = { class: "overflow-hidden flex flex-col min-h-[480px]" }, Ar = { class: "flex-1 flex min-h-0 gap-4" }, Fr = { class: "flex-1 min-w-0 pb-4 overflow-auto bg-gray-50/50" }, qr = {
3586
3578
  key: 1,
3587
3579
  class: "flex items-center justify-center h-full"
3588
- }, Hr = { class: "w-[400px] shrink-0 flex flex-col" }, Zr = {
3580
+ }, Mr = { class: "w-[400px] shrink-0 flex flex-col" }, Ur = {
3589
3581
  __name: "vs-widget-editor-panel",
3590
3582
  props: {
3591
3583
  selectedWidget: { type: String, default: "" },
@@ -3621,9 +3613,9 @@ const kr = { class: "space-y-4" }, $r = {
3621
3613
  get: () => t.selectedWidget,
3622
3614
  set: (l) => a("update:selectedWidget", l)
3623
3615
  });
3624
- return (l, c) => (p(), y("div", qr, [
3625
- h("div", Mr, [
3626
- h("div", Ur, [
3616
+ return (l, c) => (p(), y("div", Pr, [
3617
+ h("div", Ar, [
3618
+ h("div", Fr, [
3627
3619
  r.value ? (p(), N(Oe, {
3628
3620
  key: 0,
3629
3621
  dashboard: s.selectedDashboard,
@@ -3633,12 +3625,12 @@ const kr = { class: "space-y-4" }, $r = {
3633
3625
  "prefetched-data": r.value,
3634
3626
  "filter-u-rl": void 0,
3635
3627
  class: "max-h-full"
3636
- }, null, 8, ["dashboard", "widget", "selected-widget", "dashboard-widgets", "prefetched-data"])) : (p(), y("div", Gr, [...c[1] || (c[1] = [
3628
+ }, null, 8, ["dashboard", "widget", "selected-widget", "dashboard-widgets", "prefetched-data"])) : (p(), y("div", qr, [...c[1] || (c[1] = [
3637
3629
  h("span", { class: "text-sm text-gray-400" }, "Завантаження...", -1)
3638
3630
  ])]))
3639
3631
  ]),
3640
- h("div", Hr, [
3641
- T(Fr, {
3632
+ h("div", Mr, [
3633
+ T(Or, {
3642
3634
  selectedWidget: o.value,
3643
3635
  "onUpdate:selectedWidget": c[0] || (c[0] = (u) => o.value = u),
3644
3636
  selectedWidgetData: s.selectedWidgetData,
@@ -3650,30 +3642,30 @@ const kr = { class: "space-y-4" }, $r = {
3650
3642
  ])
3651
3643
  ]));
3652
3644
  }
3653
- }, Qr = {
3645
+ }, Gr = {
3654
3646
  __name: "icon-grid",
3655
3647
  setup(s) {
3656
3648
  return (e, t) => (p(), N(E(Rs), he(e.$attrs, { size: 24 }), null, 16));
3657
3649
  }
3658
- }, Xr = {
3650
+ }, Hr = {
3659
3651
  __name: "icon-table",
3660
3652
  setup(s) {
3661
3653
  return (e, t) => (p(), N(E(Ws), he(e.$attrs, { size: 24 }), null, 16));
3662
3654
  }
3663
- }, Kr = {
3655
+ }, Zr = {
3664
3656
  __name: "icon-more",
3665
3657
  setup(s) {
3666
3658
  return (e, t) => (p(), N(E(Ts), he(e.$attrs, { size: 24 }), null, 16));
3667
3659
  }
3668
- }, Yr = M(() => import("@opengis/form")), Jr = {
3660
+ }, Qr = M(() => import("@opengis/form")), Xr = {
3669
3661
  components: {
3670
- VsModal: Ve,
3671
- VForm: Yr,
3662
+ VsModal: Le,
3663
+ VForm: Qr,
3672
3664
  deleteIcon: Jt,
3673
- editIcon: es,
3674
- IconGrid: Qr,
3675
- IconMore: Kr,
3676
- IconTable: Xr
3665
+ editIcon: Kt,
3666
+ IconGrid: Gr,
3667
+ IconMore: Zr,
3668
+ IconTable: Hr
3677
3669
  },
3678
3670
  watch: {
3679
3671
  dashboardData: {
@@ -3871,14 +3863,14 @@ const kr = { class: "space-y-4" }, $r = {
3871
3863
  document.body.click();
3872
3864
  }
3873
3865
  }
3874
- }, en = {
3866
+ }, Yr = {
3875
3867
  key: 0,
3876
3868
  class: "flex items-center gap-4"
3877
- }, tn = { class: "h-[30px] w-[30px] flex items-center justify-center" }, sn = { class: "flex flex-col items-start -ml-2 -mr-2" }, an = { class: "p-4" }, rn = { class: "flex justify-end mt-4 gap-x-3" }, nn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, on = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" };
3878
- function ln(s, e, t, a, r, i) {
3879
- const n = Y("IconGrid"), o = Y("VsPopover"), l = Y("IconMore"), c = Y("VsModal"), u = Y("VForm");
3869
+ }, Jr = { class: "h-[30px] w-[30px] flex items-center justify-center" }, Kr = { class: "flex flex-col items-start -ml-2 -mr-2" }, en = { class: "p-4" }, tn = { class: "flex justify-end mt-4 gap-x-3" }, sn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, an = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" };
3870
+ function rn(s, e, t, a, r, i) {
3871
+ const n = J("IconGrid"), o = J("VsPopover"), l = J("IconMore"), c = J("VsModal"), u = J("VForm");
3880
3872
  return p(), y("div", null, [
3881
- t.selected ? (p(), y("div", en, [
3873
+ t.selected ? (p(), y("div", Yr, [
3882
3874
  T(o, {
3883
3875
  placement: "left",
3884
3876
  trigger: "hover"
@@ -3903,12 +3895,12 @@ function ln(s, e, t, a, r, i) {
3903
3895
  reference: j(() => [
3904
3896
  T(o, { placement: "bottom-left" }, {
3905
3897
  reference: j(() => [
3906
- h("button", tn, [
3898
+ h("button", Jr, [
3907
3899
  T(l, { class: "h-[20px]" })
3908
3900
  ])
3909
3901
  ]),
3910
3902
  default: j(() => [
3911
- h("div", sn, [
3903
+ h("div", Kr, [
3912
3904
  h("button", {
3913
3905
  onClick: e[1] || (e[1] = (f) => {
3914
3906
  i.closePopover(), r.isFormEdit = !0;
@@ -3940,9 +3932,9 @@ function ln(s, e, t, a, r, i) {
3940
3932
  onClose: e[5] || (e[5] = (f) => r.isDeleteConfirm = !1)
3941
3933
  }, {
3942
3934
  default: j(() => [
3943
- h("div", an, [
3935
+ h("div", en, [
3944
3936
  e[16] || (e[16] = h("p", { class: "mt-1 text-gray-500 dark:text-neutral-500" }, " Ви впевнені, що хочете видалити цей дашборд? ", -1)),
3945
- h("div", rn, [
3937
+ h("div", tn, [
3946
3938
  h("button", {
3947
3939
  type: "button",
3948
3940
  class: "inline-flex items-center px-3 py-2 text-sm font-medium text-gray-800 bg-white border border-gray-200 rounded-lg shadow-sm gap-x-2 hover:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-50 dark:bg-neutral-800 dark:border-neutral-700 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
@@ -3965,7 +3957,7 @@ function ln(s, e, t, a, r, i) {
3965
3957
  onClose: e[9] || (e[9] = (f) => r.isFormEdit = !1)
3966
3958
  }, {
3967
3959
  footer: j(() => [
3968
- h("div", nn, [
3960
+ h("div", sn, [
3969
3961
  h("button", {
3970
3962
  style: { border: "1px solid #000" },
3971
3963
  onClick: e[7] || (e[7] = (f) => r.isFormEdit = !1),
@@ -3994,7 +3986,7 @@ function ln(s, e, t, a, r, i) {
3994
3986
  onClose: e[13] || (e[13] = (f) => r.isFormGrid = !1)
3995
3987
  }, {
3996
3988
  footer: j(() => [
3997
- h("div", on, [
3989
+ h("div", an, [
3998
3990
  h("button", {
3999
3991
  style: { border: "1px solid #000" },
4000
3992
  onClick: e[11] || (e[11] = (f) => r.isFormGrid = !1),
@@ -4018,16 +4010,16 @@ function ln(s, e, t, a, r, i) {
4018
4010
  }, 8, ["visible"])
4019
4011
  ]);
4020
4012
  }
4021
- const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-0 flex flex-col overflow-auto" }, un = { class: "max-w-7xl mx-auto px-6 w-full flex flex-col min-h-0 flex-1" }, hn = { class: "relative z-10 shrink-0 mt-4 mb-6" }, pn = { class: "flex items-center text-sm text-gray-600" }, fn = {
4013
+ const nn = /* @__PURE__ */ Q(Xr, [["render", rn]]), on = { class: "flex-1 min-w-0 flex flex-col overflow-auto" }, ln = { class: "max-w-7xl mx-auto px-6 w-full flex flex-col min-h-0 flex-1" }, cn = { class: "relative z-10 shrink-0 mt-4 mb-6" }, dn = { class: "flex items-center text-sm text-gray-600" }, un = {
4022
4014
  key: 0,
4023
4015
  class: "flex items-center justify-between gap-4 mt-3"
4024
- }, gn = { class: "min-w-0" }, mn = { class: "text-2xl font-bold text-gray-900" }, bn = {
4016
+ }, hn = { class: "min-w-0" }, pn = { class: "text-2xl font-bold text-gray-900" }, fn = {
4025
4017
  key: 0,
4026
4018
  class: "mt-1.5 text-sm text-gray-600"
4027
- }, xn = { class: "flex items-center shrink-0" }, yn = {
4019
+ }, gn = { class: "flex items-center shrink-0" }, mn = {
4028
4020
  key: 1,
4029
4021
  class: "grid flex-grow w-full grid-cols-12 gap-4 py-4 pr-[15px] min-h-0 overflow-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-stone-100 [&::-webkit-scrollbar-thumb]:bg-stone-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
4030
- }, wn = {
4022
+ }, bn = {
4031
4023
  __name: "vs-editor",
4032
4024
  props: {
4033
4025
  prefix: String,
@@ -4038,8 +4030,8 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4038
4030
  emits: ["back"],
4039
4031
  setup(s, { emit: e }) {
4040
4032
  const t = s;
4041
- Ze(t.prefix || "/api");
4042
- const a = e, r = we(), i = F(() => r.hasRoute(K.EditorWidget)), n = He("biClearDashboard", null), o = I(t.initialDashboardId || ""), l = I(t.initialWidgetId || ""), c = I(null), u = I(null), f = I(null);
4033
+ He(t.prefix || "/api");
4034
+ const a = e, r = we(), i = F(() => r.hasRoute(Y.EditorWidget)), n = Zt("biClearDashboard", null), o = I(t.initialDashboardId || ""), l = I(t.initialWidgetId || ""), c = I(null), u = I(null), f = I(null);
4043
4035
  te(() => t.initialWidgetId, (w) => {
4044
4036
  l.value = w || "";
4045
4037
  });
@@ -4064,26 +4056,26 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4064
4056
  );
4065
4057
  function b(w) {
4066
4058
  i.value ? r.push({
4067
- name: K.EditorWidget,
4059
+ name: Y.EditorWidget,
4068
4060
  params: { dashboardId: o.value, widgetId: w }
4069
4061
  }) : l.value = w;
4070
4062
  }
4071
4063
  function k() {
4072
4064
  i.value ? r.push({
4073
- name: K.EditorDashboard,
4065
+ name: Y.EditorDashboard,
4074
4066
  params: { dashboardId: o.value }
4075
4067
  }) : l.value = "";
4076
4068
  }
4077
4069
  function $() {
4078
- i.value ? r.push({ name: K.Editor }) : (typeof n == "function" && n(), a("back"));
4070
+ i.value ? r.push({ name: Y.Editor }) : (typeof n == "function" && n(), a("back"));
4079
4071
  }
4080
- const V = F(() => {
4072
+ const L = F(() => {
4081
4073
  var x, _, D, m, C;
4082
- const d = [i.value ? { label: "Дашборди", to: { name: K.Editor } } : { label: "Дашборди", onClick: $ }];
4074
+ const d = [i.value ? { label: "Дашборди", to: { name: Y.Editor } } : { label: "Дашборди", onClick: $ }];
4083
4075
  if ((x = c.value) != null && x.title || o.value) {
4084
4076
  const z = ((_ = c.value) == null ? void 0 : _.title) || o.value || "Редактор";
4085
4077
  !!l.value ? d.push(
4086
- i.value ? { label: z, to: { name: K.EditorDashboard, params: { dashboardId: o.value } } } : { label: z, onClick: () => {
4078
+ i.value ? { label: z, to: { name: Y.EditorDashboard, params: { dashboardId: o.value } } } : { label: z, onClick: () => {
4087
4079
  l.value = "";
4088
4080
  } }
4089
4081
  ) : d.push({ label: z });
@@ -4104,21 +4096,21 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4104
4096
  return p(), y("div", {
4105
4097
  class: ee(["flex w-full h-full", [s.customClass]])
4106
4098
  }, [
4107
- h("div", dn, [
4108
- h("div", un, [
4109
- h("div", hn, [
4110
- h("div", pn, [
4099
+ h("div", on, [
4100
+ h("div", ln, [
4101
+ h("div", cn, [
4102
+ h("div", dn, [
4111
4103
  T(Yt, {
4112
- items: V.value,
4104
+ items: L.value,
4113
4105
  compact: ""
4114
4106
  }, null, 8, ["items"])
4115
4107
  ]),
4116
- o.value && c.value ? (p(), y("div", fn, [
4117
- h("div", gn, [
4118
- h("h1", mn, W(c.value.title || o.value), 1),
4119
- c.value.description ? (p(), y("p", bn, W(c.value.description), 1)) : A("", !0)
4108
+ o.value && c.value ? (p(), y("div", un, [
4109
+ h("div", hn, [
4110
+ h("h1", pn, W(c.value.title || o.value), 1),
4111
+ c.value.description ? (p(), y("p", fn, W(c.value.description), 1)) : A("", !0)
4120
4112
  ]),
4121
- h("div", xn, [
4113
+ h("div", gn, [
4122
4114
  l.value ? (p(), y("button", {
4123
4115
  key: 0,
4124
4116
  type: "button",
@@ -4128,7 +4120,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4128
4120
  T(E(Es), { class: "w-4 h-4" }),
4129
4121
  d[5] || (d[5] = X(" Закрити ", -1))
4130
4122
  ])) : (p(), y(U, { key: 1 }, [
4131
- T(cn, {
4123
+ T(nn, {
4132
4124
  selected: o.value,
4133
4125
  "onUpdate:selected": d[0] || (d[0] = (D) => o.value = D),
4134
4126
  dashboardData: c.value,
@@ -4148,7 +4140,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4148
4140
  h("span", { class: "leading-none" }, "+", -1),
4149
4141
  X(" Створити віджет ", -1)
4150
4142
  ])]),
4151
- o.value ? (p(), N(Pa, {
4143
+ o.value ? (p(), N(ja, {
4152
4144
  key: 0,
4153
4145
  ref_key: "createWidgetRef",
4154
4146
  ref: f,
@@ -4161,7 +4153,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4161
4153
  ])
4162
4154
  ])) : A("", !0)
4163
4155
  ]),
4164
- l.value && c.value ? (p(), N(Zr, {
4156
+ l.value && c.value ? (p(), N(Ur, {
4165
4157
  key: 0,
4166
4158
  "selected-widget": l.value,
4167
4159
  "onUpdate:selectedWidget": d[2] || (d[2] = (D) => l.value = D),
@@ -4170,7 +4162,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4170
4162
  "selected-dashboard": o.value,
4171
4163
  "dashboard-widgets": c.value.widgets || [],
4172
4164
  onUpdateData: v
4173
- }, null, 8, ["selected-widget", "selected-widget-data", "current-widget-data", "selected-dashboard", "dashboard-widgets"])) : (p(), y("div", yn, [
4165
+ }, null, 8, ["selected-widget", "selected-widget-data", "current-widget-data", "selected-dashboard", "dashboard-widgets"])) : (p(), y("div", mn, [
4174
4166
  c.value ? (p(!0), y(U, { key: 1 }, Z(c.value.panels, (D, m) => {
4175
4167
  var C;
4176
4168
  return p(), y("div", {
@@ -4213,7 +4205,7 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4213
4205
  ], 2);
4214
4206
  };
4215
4207
  }
4216
- }, vn = /* @__PURE__ */ Q(wn, [["__scopeId", "data-v-f586e5b0"]]), kn = { class: "w-full h-screen" }, $n = /* @__PURE__ */ ge({
4208
+ }, xn = /* @__PURE__ */ Q(bn, [["__scopeId", "data-v-f586e5b0"]]), yn = { class: "w-full h-screen" }, wn = /* @__PURE__ */ ge({
4217
4209
  __name: "vs-editor-page",
4218
4210
  props: {
4219
4211
  prefix: { default: "/api" },
@@ -4222,8 +4214,8 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4222
4214
  },
4223
4215
  emits: ["back"],
4224
4216
  setup(s) {
4225
- return (e, t) => (p(), y("div", kn, [
4226
- T(vn, {
4217
+ return (e, t) => (p(), y("div", yn, [
4218
+ T(xn, {
4227
4219
  customClass: "h-full w-full",
4228
4220
  prefix: s.prefix,
4229
4221
  "initial-dashboard-id": s.dashboardId,
@@ -4232,17 +4224,17 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4232
4224
  }, null, 8, ["prefix", "initial-dashboard-id", "initial-widget-id"])
4233
4225
  ]));
4234
4226
  }
4235
- }), _n = { class: "relative group h-full" }, Dn = { class: "flex items-start gap-3 flex-1 min-h-0" }, Cn = { class: "p-2 bg-blue-50 rounded-lg group-hover:bg-blue-100 transition-colors shrink-0" }, zn = { class: "flex-1 min-w-0 flex flex-col min-h-0" }, Tn = { class: "font-semibold text-gray-900 mb-1 truncate" }, In = {
4227
+ }), vn = { class: "relative group h-full" }, kn = { class: "flex items-start gap-3 flex-1 min-h-0" }, $n = { class: "p-2 bg-blue-50 rounded-lg group-hover:bg-blue-100 transition-colors shrink-0" }, _n = { class: "flex-1 min-w-0 flex flex-col min-h-0" }, Dn = { class: "font-semibold text-gray-900 mb-1 truncate" }, Cn = {
4236
4228
  key: 0,
4237
4229
  class: "text-sm text-gray-600 mb-2 line-clamp-2 min-h-10"
4238
- }, Sn = {
4230
+ }, zn = {
4239
4231
  key: 1,
4240
4232
  class: "text-sm text-gray-600 mb-2 line-clamp-2 min-h-10 invisible",
4241
4233
  "aria-hidden": "true"
4242
- }, Rn = {
4234
+ }, Tn = {
4243
4235
  key: 2,
4244
4236
  class: "text-sm text-gray-400 mt-1 shrink-0"
4245
- }, Vn = {
4237
+ }, In = {
4246
4238
  __name: "dashboard-card",
4247
4239
  props: {
4248
4240
  title: String,
@@ -4257,37 +4249,37 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4257
4249
  setup(s) {
4258
4250
  const e = s, t = we(), a = I(!1);
4259
4251
  function r() {
4260
- e.dashboardRouteName && (t.hasRoute(K.EditorDashboard) ? t.push({
4261
- name: K.EditorDashboard,
4252
+ e.dashboardRouteName && (t.hasRoute(Y.EditorDashboard) ? t.push({
4253
+ name: Y.EditorDashboard,
4262
4254
  params: { dashboardId: e.dashboardRouteName }
4263
4255
  }) : e.onOpenEditor ? e.onOpenEditor(e.dashboardRouteName) : t.push({ path: "/editor", query: { dashboard: e.dashboardRouteName } }));
4264
4256
  }
4265
4257
  function i(n) {
4266
4258
  n.target.closest(".dashboard-card-menu") || (a.value = !1);
4267
4259
  }
4268
- return le(() => document.addEventListener("click", i)), Ue(() => document.removeEventListener("click", i)), (n, o) => (p(), y("div", _n, [
4260
+ return le(() => document.addEventListener("click", i)), Ue(() => document.removeEventListener("click", i)), (n, o) => (p(), y("div", vn, [
4269
4261
  h("button", {
4270
4262
  type: "button",
4271
4263
  class: "w-full h-full bg-white border border-gray-200 rounded-lg p-6 hover:shadow-md hover:border-blue-200 transition-all text-left animate-fade-in flex flex-col",
4272
4264
  onClick: r
4273
4265
  }, [
4274
- h("div", Dn, [
4275
- h("div", Cn, [
4266
+ h("div", kn, [
4267
+ h("div", $n, [
4276
4268
  T(E(Ss), {
4277
4269
  size: 24,
4278
4270
  class: "w-5 h-5 text-blue-600"
4279
4271
  })
4280
4272
  ]),
4281
- h("div", zn, [
4282
- h("h3", Tn, W(s.title), 1),
4283
- s.description ? (p(), y("p", In, W(s.description), 1)) : (p(), y("p", Sn, "   ")),
4284
- s.widgetCount != null ? (p(), y("p", Rn, W(s.widgetCount) + " віджетів ", 1)) : A("", !0)
4273
+ h("div", _n, [
4274
+ h("h3", Dn, W(s.title), 1),
4275
+ s.description ? (p(), y("p", Cn, W(s.description), 1)) : (p(), y("p", zn, "   ")),
4276
+ s.widgetCount != null ? (p(), y("p", Tn, W(s.widgetCount) + " віджетів ", 1)) : A("", !0)
4285
4277
  ])
4286
4278
  ])
4287
4279
  ])
4288
4280
  ]));
4289
4281
  }
4290
- }, Ln = /* @__PURE__ */ Q(Vn, [["__scopeId", "data-v-716ced89"]]), Wn = [
4282
+ }, Sn = /* @__PURE__ */ Q(In, [["__scopeId", "data-v-716ced89"]]), Rn = [
4291
4283
  { type: "Text", key: "name", label: "Назва", validators: ["required"], original: { type: "Text", ua: "Назва", col: 8 } },
4292
4284
  { type: "Text", key: "title", label: "Заголовок", validators: ["required"], original: { type: "Text", ua: "Титул", col: 8 } },
4293
4285
  { type: "Text", key: "description", label: "Опис", original: { type: "Text", ua: "Назва", col: 8 } },
@@ -4297,26 +4289,26 @@ const cn = /* @__PURE__ */ Q(Jr, [["render", ln]]), dn = { class: "flex-1 min-w-
4297
4289
  { type: "Text", key: "category", label: "Категорія", original: { type: "Text", ua: "Категорія", col: 8 } },
4298
4290
  { type: "Switcher", key: "public", label: "Публічний", original: { type: "Text", ua: "Назва", col: 8 } }
4299
4291
  ];
4300
- function Nn(s) {
4292
+ function Ln(s) {
4301
4293
  return !Array.isArray(s) || s.length === 0 ? {} : s.reduce((e, t) => {
4302
4294
  if (!t || t.key == null) return e;
4303
4295
  const { key: a, ...r } = t;
4304
4296
  return e[a] = r, e;
4305
4297
  }, {});
4306
4298
  }
4307
- const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6 py-8" }, Bn = { class: "mb-6" }, On = { class: "flex items-center justify-between mb-6" }, Pn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, An = { class: "flex items-center space-x-4" }, Fn = { class: "flex-1 relative" }, qn = {
4299
+ const Vn = { class: "flex-1 bg-gray-50" }, Wn = { class: "max-w-7xl mx-auto px-6 py-8" }, Nn = { class: "mb-6" }, En = { class: "flex items-center justify-between mb-6" }, jn = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, Bn = { class: "flex items-center space-x-4" }, On = { class: "flex-1 relative" }, Pn = {
4308
4300
  key: 0,
4309
4301
  class: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"
4310
- }, Mn = {
4302
+ }, An = {
4311
4303
  key: 1,
4312
4304
  class: "flex flex-col items-center justify-center py-20 text-center"
4313
- }, Un = { class: "mt-1 text-sm text-gray-400" }, Gn = { class: "font-medium text-gray-500" }, Hn = /* @__PURE__ */ ge({
4305
+ }, Fn = { class: "mt-1 text-sm text-gray-400" }, qn = { class: "font-medium text-gray-500" }, Mn = /* @__PURE__ */ ge({
4314
4306
  __name: "all-dashboards-page",
4315
4307
  props: {
4316
4308
  prefix: {}
4317
4309
  },
4318
4310
  setup(s) {
4319
- const e = M(() => import("@opengis/form")), t = Nn(Wn), a = I([]), r = I([]), i = we(), n = He("biSetDashboard", void 0), o = s, l = I(null), c = I(!1), u = I({}), f = I(""), v = F(() => {
4311
+ const e = M(() => import("@opengis/form")), t = Ln(Rn), a = I([]), r = I([]), i = we(), n = Zt("biSetDashboard", void 0), o = s, l = I(null), c = I(!1), u = I({}), f = I(""), v = F(() => {
4320
4312
  const d = f.value.trim().toLowerCase();
4321
4313
  return d ? a.value.filter((x) => x.title.toLowerCase().includes(d)) : a.value;
4322
4314
  });
@@ -4349,8 +4341,8 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4349
4341
  type: "success",
4350
4342
  title: "Успішно!",
4351
4343
  message: "Дашборд створено успішно"
4352
- }), i.hasRoute(K.EditorDashboard) ? i.push({
4353
- name: K.EditorDashboard,
4344
+ }), i.hasRoute(Y.EditorDashboard) ? i.push({
4345
+ name: Y.EditorDashboard,
4354
4346
  params: { dashboardId: C }
4355
4347
  }) : n ? n(C) : await g();
4356
4348
  } catch {
@@ -4362,7 +4354,7 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4362
4354
  }
4363
4355
  }
4364
4356
  le(() => {
4365
- Ze(o.prefix || "/api"), g();
4357
+ He(o.prefix || "/api"), g();
4366
4358
  });
4367
4359
  const k = I(1), $ = () => {
4368
4360
  const d = window.innerWidth;
@@ -4373,19 +4365,19 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4373
4365
  }), Ue(() => {
4374
4366
  window.removeEventListener("resize", $);
4375
4367
  });
4376
- const V = (d) => d ? d.trim().length > 70 ? 2 : 1 : 0, w = (d) => {
4368
+ const L = (d) => d ? d.trim().length > 70 ? 2 : 1 : 0, w = (d) => {
4377
4369
  const x = k.value || 1, D = Math.floor(d / x) * x, m = D + x, C = v.value.slice(D, m);
4378
4370
  let z = 0;
4379
4371
  for (const R of C) {
4380
- const q = V(R.description ?? null);
4372
+ const q = L(R.description ?? null);
4381
4373
  if (q > z && (z = q), z === 2) break;
4382
4374
  }
4383
4375
  return z;
4384
4376
  };
4385
- return I("grid"), (d, x) => (p(), y("div", En, [
4386
- h("div", jn, [
4387
- h("div", Bn, [
4388
- h("div", On, [
4377
+ return I("grid"), (d, x) => (p(), y("div", Vn, [
4378
+ h("div", Wn, [
4379
+ h("div", Nn, [
4380
+ h("div", En, [
4389
4381
  x[6] || (x[6] = h("div", null, [
4390
4382
  h("h1", { class: "text-3xl font-bold text-gray-900" }, "Дашборди"),
4391
4383
  h("p", { class: "mt-2 text-gray-600" }, " Керуйте та переглядайте свої аналітичні дашборди ")
@@ -4402,14 +4394,14 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4402
4394
  x[5] || (x[5] = h("span", null, "Новий дашборд", -1))
4403
4395
  ])
4404
4396
  ]),
4405
- T(Ve, {
4397
+ T(Le, {
4406
4398
  teleport: "#modal",
4407
4399
  visible: c.value,
4408
4400
  title: "Створити дашборд",
4409
4401
  onClose: x[3] || (x[3] = (_) => c.value = !1)
4410
4402
  }, {
4411
4403
  footer: j(() => [
4412
- h("div", Pn, [
4404
+ h("div", jn, [
4413
4405
  h("button", {
4414
4406
  type: "button",
4415
4407
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border border-gray-200 rounded-lg hover:bg-gray-100 duration-300",
@@ -4433,29 +4425,29 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4433
4425
  ]),
4434
4426
  _: 1
4435
4427
  }, 8, ["visible"]),
4436
- h("div", An, [
4437
- h("div", Fn, [
4438
- T(E(Wt), {
4428
+ h("div", Bn, [
4429
+ h("div", On, [
4430
+ T(E(Vt), {
4439
4431
  size: 24,
4440
4432
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-gray-400"
4441
4433
  }),
4442
- Ht(h("input", {
4434
+ Gt(h("input", {
4443
4435
  "onUpdate:modelValue": x[4] || (x[4] = (_) => f.value = _),
4444
4436
  type: "text",
4445
4437
  placeholder: "Пошук дашбордів...",
4446
4438
  class: "w-full pl-10 pr-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"
4447
4439
  }, null, 512), [
4448
- [ys, f.value]
4440
+ [xs, f.value]
4449
4441
  ])
4450
4442
  ])
4451
4443
  ])
4452
4444
  ]),
4453
- v.value.length ? (p(), y("div", qn, [
4445
+ v.value.length ? (p(), y("div", Pn, [
4454
4446
  (p(!0), y(U, null, Z(v.value, (_, D) => (p(), y("div", {
4455
4447
  key: _.routeName,
4456
4448
  class: "cursor-pointer h-full"
4457
4449
  }, [
4458
- T(Ln, {
4450
+ T(Sn, {
4459
4451
  title: _.title,
4460
4452
  description: _.description,
4461
4453
  modified: _.modified,
@@ -4465,29 +4457,29 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4465
4457
  "on-open-editor": E(n)
4466
4458
  }, null, 8, ["title", "description", "modified", "name", "reserveLines", "dashboard-route-name", "on-open-editor"])
4467
4459
  ]))), 128))
4468
- ])) : (p(), y("div", Mn, [
4469
- T(E(Wt), {
4460
+ ])) : (p(), y("div", An, [
4461
+ T(E(Vt), {
4470
4462
  size: 48,
4471
4463
  class: "text-gray-300 mb-4"
4472
4464
  }),
4473
4465
  x[9] || (x[9] = h("p", { class: "text-lg font-medium text-gray-500" }, "Дашбордів не знайдено", -1)),
4474
- h("p", Un, [
4466
+ h("p", Fn, [
4475
4467
  x[7] || (x[7] = X(" За запитом «", -1)),
4476
- h("span", Gn, W(f.value), 1),
4468
+ h("span", qn, W(f.value), 1),
4477
4469
  x[8] || (x[8] = X("» нічого не знайдено. Спробуйте змінити пошуковий запит. ", -1))
4478
4470
  ])
4479
4471
  ]))
4480
4472
  ])
4481
4473
  ]));
4482
4474
  }
4483
- }), ko = /* @__PURE__ */ ge({
4475
+ }), wo = /* @__PURE__ */ ge({
4484
4476
  __name: "editor-root-page",
4485
4477
  props: {
4486
4478
  prefix: { default: "/api" }
4487
4479
  },
4488
4480
  setup(s) {
4489
- const e = s, t = F(() => e.prefix), a = we(), r = ka(), i = F(
4490
- () => a.hasRoute(K.EditorDashboard)
4481
+ const e = s, t = F(() => e.prefix), a = we(), r = ws(), i = F(
4482
+ () => a.hasRoute(Y.EditorDashboard)
4491
4483
  ), n = I("");
4492
4484
  le(() => {
4493
4485
  var l;
@@ -4497,19 +4489,19 @@ const En = { class: "flex-1 bg-gray-50" }, jn = { class: "max-w-7xl mx-auto px-6
4497
4489
  }
4498
4490
  });
4499
4491
  const o = F(() => n.value.length > 0);
4500
- return Xe("biSetDashboard", (l) => {
4492
+ return Qe("biSetDashboard", (l) => {
4501
4493
  n.value = l || "";
4502
- }), Xe("biClearDashboard", () => {
4494
+ }), Qe("biClearDashboard", () => {
4503
4495
  n.value = "";
4504
- }), Xe("biSelectedDashboardId", ws(n)), (l, c) => {
4505
- const u = Y("router-view");
4496
+ }), Qe("biSelectedDashboardId", ys(n)), (l, c) => {
4497
+ const u = J("router-view");
4506
4498
  return i.value ? (p(), N(u, { key: 0 })) : (p(), y(U, { key: 1 }, [
4507
- o.value ? (p(), N($n, {
4499
+ o.value ? (p(), N(wn, {
4508
4500
  key: `editor-${n.value}`,
4509
4501
  prefix: t.value,
4510
4502
  "dashboard-id": n.value,
4511
4503
  onBack: c[0] || (c[0] = (f) => n.value = "")
4512
- }, null, 8, ["prefix", "dashboard-id"])) : (p(), N(Hn, {
4504
+ }, null, 8, ["prefix", "dashboard-id"])) : (p(), N(Mn, {
4513
4505
  key: 0,
4514
4506
  prefix: t.value
4515
4507
  }, null, 8, ["prefix"]))
@@ -4523,15 +4515,15 @@ function ce(s, e) {
4523
4515
  const a = Number(t);
4524
4516
  return Number.isNaN(a) ? String(t) : new Intl.NumberFormat("en", e ?? { notation: "compact" }).format(a);
4525
4517
  }
4526
- function ct(s) {
4518
+ function lt(s) {
4527
4519
  if (!(s != null && s.includes("T"))) return s ?? "";
4528
4520
  const [e, t, a] = s.split("T")[0].split("-");
4529
4521
  return `${a}.${t}.${e}`;
4530
4522
  }
4531
- function $o(s) {
4523
+ function vo(s) {
4532
4524
  return Intl.NumberFormat("en").format(s ?? 0);
4533
4525
  }
4534
- class Zn {
4526
+ class Un {
4535
4527
  static getTooltipOptions(e = !0) {
4536
4528
  return {
4537
4529
  show: e,
@@ -4546,7 +4538,7 @@ class Zn {
4546
4538
  };
4547
4539
  }
4548
4540
  }
4549
- const Qn = {
4541
+ const Gn = {
4550
4542
  show_label: !1,
4551
4543
  show_legend: !1,
4552
4544
  label: null,
@@ -4555,14 +4547,14 @@ const Qn = {
4555
4547
  color: null,
4556
4548
  title: null
4557
4549
  };
4558
- function Xn() {
4550
+ function Hn() {
4559
4551
  const s = "0123456789ABCDEF";
4560
4552
  let e = "#";
4561
4553
  for (let t = 0; t < 6; t += 1)
4562
4554
  e += s[Math.floor(Math.random() * 16)];
4563
4555
  return e;
4564
4556
  }
4565
- function Le(s = Qn) {
4557
+ function Ve(s = Gn) {
4566
4558
  var t, a, r;
4567
4559
  const e = {
4568
4560
  label: {
@@ -4581,7 +4573,7 @@ function Le(s = Qn) {
4581
4573
  };
4582
4574
  return (s != null && s.colors || s != null && s.color) && (e.color = (s == null ? void 0 : s.colors) || (s == null ? void 0 : s.color) || null), e;
4583
4575
  }
4584
- function Mt(s) {
4576
+ function qt(s) {
4585
4577
  return {
4586
4578
  color: "#9ca3af",
4587
4579
  fontSize: 10,
@@ -4595,7 +4587,7 @@ function Mt(s) {
4595
4587
  rotate: (s == null ? void 0 : s.rotate) ?? 0
4596
4588
  };
4597
4589
  }
4598
- const Ut = [
4590
+ const Mt = [
4599
4591
  "#d3c7e6",
4600
4592
  "#bedae3",
4601
4593
  "#f8e9cb",
@@ -4743,14 +4735,14 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4743
4735
  shadowColor: "transparent",
4744
4736
  padding: [0, 0, 0, 0],
4745
4737
  borderWidth: 0,
4746
- position: (k, $, V, w, d) => {
4738
+ position: (k, $, L, w, d) => {
4747
4739
  const [x, _] = k, [D, m] = d.contentSize, [C, z] = d.viewSize;
4748
4740
  let R = x + 14, q = _ - m / 2;
4749
4741
  return R + D > C && (R = x - D - 14), R < 0 && (R = 0), q + m > z && (q = z - m), q < 0 && (q = 0), [R, q];
4750
4742
  },
4751
4743
  formatter: (k) => {
4752
4744
  var m;
4753
- const V = (m = k[0]) == null ? void 0 : m.axisValue, w = V ? this.formatDate(V) : "N/A", d = [...k].filter((C) => {
4745
+ const L = (m = k[0]) == null ? void 0 : m.axisValue, w = L ? this.formatDate(L) : "N/A", d = [...k].filter((C) => {
4754
4746
  var z;
4755
4747
  return parseFloat(C == null ? void 0 : C.data) || ((z = C == null ? void 0 : C.data) == null ? void 0 : z.value);
4756
4748
  }).sort((C, z) => {
@@ -4785,11 +4777,11 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4785
4777
  type: e ? "category" : "value",
4786
4778
  name: ((n = (i = this.styleData) == null ? void 0 : i.x_axis) == null ? void 0 : n.name) || "",
4787
4779
  axisLabel: {
4788
- ...Mt((o = this.styleData) == null ? void 0 : o.x_axis),
4780
+ ...qt((o = this.styleData) == null ? void 0 : o.x_axis),
4789
4781
  formatter: (k) => {
4790
- var V, w;
4782
+ var L, w;
4791
4783
  const $ = this.formatDate(k);
4792
- return ((w = (V = this.styleData) == null ? void 0 : V.x_axis) == null ? void 0 : w.overflow) === "ellipsis" && $.length > 10 ? `${$.slice(0, 10)}...` : $;
4784
+ return ((w = (L = this.styleData) == null ? void 0 : L.x_axis) == null ? void 0 : w.overflow) === "ellipsis" && $.length > 10 ? `${$.slice(0, 10)}...` : $;
4793
4785
  }
4794
4786
  }
4795
4787
  },
@@ -4797,10 +4789,10 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4797
4789
  data: t != null && t.length ? t : null,
4798
4790
  type: t ? "category" : "value",
4799
4791
  name: ((c = (l = this.styleData) == null ? void 0 : l.y_axis) == null ? void 0 : c.name) || "",
4800
- axisLabel: Mt((u = this.styleData) == null ? void 0 : u.y_axis)
4792
+ axisLabel: qt((u = this.styleData) == null ? void 0 : u.y_axis)
4801
4793
  },
4802
4794
  series: s != null && s.length ? s : null,
4803
- ...Le(this.styleData),
4795
+ ...Ve(this.styleData),
4804
4796
  grid: {
4805
4797
  bottom: "0%",
4806
4798
  right: "0%",
@@ -4835,7 +4827,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4835
4827
  ...r,
4836
4828
  ...e.options,
4837
4829
  tooltip: {
4838
- ...Zn.getTooltipOptions(e.options.tooltip.show)
4830
+ ...Un.getTooltipOptions(e.options.tooltip.show)
4839
4831
  }
4840
4832
  });
4841
4833
  },
@@ -4864,7 +4856,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4864
4856
  ) : e;
4865
4857
  }
4866
4858
  }
4867
- }, Kn = {
4859
+ }, Zn = {
4868
4860
  name: "VsBar",
4869
4861
  mixins: [pe],
4870
4862
  data() {
@@ -4912,7 +4904,7 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
4912
4904
  )
4913
4905
  );
4914
4906
  let o;
4915
- this.dimensions[0].includes("date") ? o = n.map((v) => ct(v)) : o = [...n];
4907
+ this.dimensions[0].includes("date") ? o = n.map((v) => lt(v)) : o = [...n];
4916
4908
  let l, c;
4917
4909
  ((e = this.styleData) == null ? void 0 : e.horizontal) === !0 ? c = [...o] : l = [...o];
4918
4910
  const u = this.sourceData.filter(
@@ -5016,18 +5008,18 @@ const ye = typeof window < "u" ? window.echarts : null, pe = {
5016
5008
  ];
5017
5009
  }
5018
5010
  }
5019
- }, Yn = ["id"];
5020
- function Jn(s, e, t, a, r, i) {
5011
+ }, Qn = ["id"];
5012
+ function Xn(s, e, t, a, r, i) {
5021
5013
  return p(), y("div", {
5022
5014
  id: i.uniqueID,
5023
5015
  ref: "chart",
5024
5016
  class: "h-full w-full min-h-[200px]"
5025
- }, null, 8, Yn);
5017
+ }, null, 8, Qn);
5026
5018
  }
5027
- const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5019
+ const Yn = /* @__PURE__ */ Q(Zn, [["render", Xn]]), Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5028
5020
  __proto__: null,
5029
- default: ei
5030
- }, Symbol.toStringTag, { value: "Module" })), Ye = typeof window < "u" ? window.echarts : null, si = {
5021
+ default: Yn
5022
+ }, Symbol.toStringTag, { value: "Module" })), Ye = typeof window < "u" ? window.echarts : null, Kn = {
5031
5023
  name: "VsPie",
5032
5024
  props: ["currentWidget"],
5033
5025
  mixins: [pe],
@@ -5125,7 +5117,7 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
5125
5117
  radius: v,
5126
5118
  center: ["50%", "60%"],
5127
5119
  height: "75%",
5128
- ...Le(this.styleData),
5120
+ ...Ve(this.styleData),
5129
5121
  data: c
5130
5122
  }
5131
5123
  ] };
@@ -5167,7 +5159,7 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
5167
5159
  backgroundColor: "transparent"
5168
5160
  },
5169
5161
  series: s,
5170
- ...Le(this.styleData || {}),
5162
+ ...Ve(this.styleData || {}),
5171
5163
  title: {
5172
5164
  text: ce(r),
5173
5165
  left: "center",
@@ -5188,18 +5180,18 @@ const ei = /* @__PURE__ */ Q(Kn, [["render", Jn]]), ti = /* @__PURE__ */ Object.
5188
5180
  }
5189
5181
  }
5190
5182
  }
5191
- }, ai = ["id"];
5192
- function ri(s, e, t, a, r, i) {
5183
+ }, ei = ["id"];
5184
+ function ti(s, e, t, a, r, i) {
5193
5185
  return p(), y("div", {
5194
5186
  id: i.uniqueID,
5195
5187
  ref: "chart",
5196
5188
  class: "h-full min-h-[200px] flex items-center"
5197
- }, null, 8, ai);
5189
+ }, null, 8, ei);
5198
5190
  }
5199
- const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5191
+ const si = /* @__PURE__ */ Q(Kn, [["render", ti]]), ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5200
5192
  __proto__: null,
5201
- default: ni
5202
- }, Symbol.toStringTag, { value: "Module" })), Je = typeof window < "u" ? window.echarts : null, oi = {
5193
+ default: si
5194
+ }, Symbol.toStringTag, { value: "Module" })), Je = typeof window < "u" ? window.echarts : null, ri = {
5203
5195
  name: "VsPie",
5204
5196
  props: ["currentWidget"],
5205
5197
  mixins: [pe],
@@ -5293,7 +5285,7 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
5293
5285
  radius: f,
5294
5286
  center: ["50%", "60%"],
5295
5287
  height: "75%",
5296
- ...Le(this.styleData),
5288
+ ...Ve(this.styleData),
5297
5289
  data: l
5298
5290
  }
5299
5291
  ] };
@@ -5329,7 +5321,7 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
5329
5321
  backgroundColor: "transparent"
5330
5322
  },
5331
5323
  series: s,
5332
- ...Le(this.styleData || {})
5324
+ ...Ve(this.styleData || {})
5333
5325
  };
5334
5326
  this.chartInstance.setOption(r), this.$emit("update:currentWidget", this.chartInstance), this.chartInstance.resize(), window.addEventListener("resize", () => {
5335
5327
  var i;
@@ -5340,18 +5332,18 @@ const ni = /* @__PURE__ */ Q(si, [["render", ri]]), ii = /* @__PURE__ */ Object.
5340
5332
  }
5341
5333
  }
5342
5334
  }
5343
- }, li = ["id"];
5344
- function ci(s, e, t, a, r, i) {
5335
+ }, ni = ["id"];
5336
+ function ii(s, e, t, a, r, i) {
5345
5337
  return p(), y("div", {
5346
5338
  id: i.uniqueID,
5347
5339
  ref: "chart",
5348
5340
  class: "h-full min-h-[200px] flex items-center"
5349
- }, null, 8, li);
5341
+ }, null, 8, ni);
5350
5342
  }
5351
- const di = /* @__PURE__ */ Q(oi, [["render", ci]]), ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5343
+ const oi = /* @__PURE__ */ Q(ri, [["render", ii]]), li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5352
5344
  __proto__: null,
5353
- default: di
5354
- }, Symbol.toStringTag, { value: "Module" })), hi = {
5345
+ default: oi
5346
+ }, Symbol.toStringTag, { value: "Module" })), ci = {
5355
5347
  name: "VsLine",
5356
5348
  mixins: [pe],
5357
5349
  data() {
@@ -5383,7 +5375,7 @@ const di = /* @__PURE__ */ Q(oi, [["render", ci]]), ui = /* @__PURE__ */ Object.
5383
5375
  new Set(this.sourceData.map((n) => n[this.dimensions[0]]))
5384
5376
  );
5385
5377
  let a;
5386
- this.dimensions[0].includes("date") ? a = t.map((n) => ct(n)) : a = [...t];
5378
+ this.dimensions[0].includes("date") ? a = t.map((n) => lt(n)) : a = [...t];
5387
5379
  const r = this.sourceData.map(
5388
5380
  (n) => parseFloat(n[this.dimensions[1]])
5389
5381
  );
@@ -5408,18 +5400,18 @@ const di = /* @__PURE__ */ Q(oi, [["render", ci]]), ui = /* @__PURE__ */ Object.
5408
5400
  }
5409
5401
  }
5410
5402
  }
5411
- }, pi = ["id"];
5412
- function fi(s, e, t, a, r, i) {
5403
+ }, di = ["id"];
5404
+ function ui(s, e, t, a, r, i) {
5413
5405
  return p(), y("div", {
5414
5406
  id: r.uniqueID,
5415
5407
  ref: "chart",
5416
5408
  style: { height: "400px" }
5417
- }, null, 8, pi);
5409
+ }, null, 8, di);
5418
5410
  }
5419
- const gi = /* @__PURE__ */ Q(hi, [["render", fi]]), mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5411
+ const hi = /* @__PURE__ */ Q(ci, [["render", ui]]), pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5420
5412
  __proto__: null,
5421
- default: gi
5422
- }, Symbol.toStringTag, { value: "Module" })), bi = {
5413
+ default: hi
5414
+ }, Symbol.toStringTag, { value: "Module" })), fi = {
5423
5415
  name: "VsStat",
5424
5416
  mixins: [pe],
5425
5417
  data() {
@@ -5444,7 +5436,7 @@ const gi = /* @__PURE__ */ Q(hi, [["render", fi]]), mi = /* @__PURE__ */ Object.
5444
5436
  this.columns = Object.keys(this.sourceData[0]);
5445
5437
  const s = this.getValues();
5446
5438
  this.sumValue = s.reduce((e, t) => e + t, 0), this.sourceData.forEach((e, t) => {
5447
- e.color = t < Ut.length - 1 ? Ut[t] : Xn();
5439
+ e.color = t < Mt.length - 1 ? Mt[t] : Hn();
5448
5440
  });
5449
5441
  },
5450
5442
  formattedValue(s) {
@@ -5452,15 +5444,15 @@ const gi = /* @__PURE__ */ Q(hi, [["render", fi]]), mi = /* @__PURE__ */ Object.
5452
5444
  return ce(e);
5453
5445
  }
5454
5446
  }
5455
- }, xi = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, yi = { class: "flex flex-col justify-between w-full h-full" }, wi = { class: "w-full h-full pb-6 space-y-4" }, vi = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, ki = ["onMouseover"], $i = {
5447
+ }, gi = { class: "flex flex-col w-full h-full pt-[16px] rounded-xl" }, mi = { class: "flex flex-col justify-between w-full h-full" }, bi = { class: "w-full h-full pb-6 space-y-4" }, xi = { class: "flex w-full h-3 rounded-full gap-x-1 min-h-3 custom-x-scrollbar" }, yi = ["onMouseover"], wi = {
5456
5448
  key: 0,
5457
5449
  class: "absolute top-[-1] left-1/2 transform -translate-x-1/2 -translate-y-full bg-black text-white rounded px-2 py-1"
5458
- }, _i = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, Di = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, Ci = { class: "flex items-center" }, zi = { class: "text-sm text-gray-800" }, Ti = { class: "text-end" }, Ii = { class: "text-sm text-gray-500" };
5459
- function Si(s, e, t, a, r, i) {
5460
- return p(), y("div", xi, [
5461
- h("div", yi, [
5462
- h("div", wi, [
5463
- h("div", vi, [
5450
+ }, vi = { class: "h-[calc(100%-20px)] w-full custom-scrollbar" }, ki = { class: "grid items-center justify-between grid-cols-2 py-2 gap-x-4" }, $i = { class: "flex items-center" }, _i = { class: "text-sm text-gray-800" }, Di = { class: "text-end" }, Ci = { class: "text-sm text-gray-500" };
5451
+ function zi(s, e, t, a, r, i) {
5452
+ return p(), y("div", gi, [
5453
+ h("div", mi, [
5454
+ h("div", bi, [
5455
+ h("div", xi, [
5464
5456
  (p(!0), y(U, null, Z(s.sourceData, (n, o) => {
5465
5457
  var l, c, u, f;
5466
5458
  return p(), y("div", {
@@ -5475,22 +5467,22 @@ function Si(s, e, t, a, r, i) {
5475
5467
  onMouseover: (v) => r.showTooltip = o,
5476
5468
  onMouseleave: e[0] || (e[0] = (v) => r.showTooltip = -1)
5477
5469
  }, [
5478
- r.showTooltip > -1 ? (p(), y("div", $i, W(s.sourceData[r.showTooltip][r.columns[0]]) + " " + W((parseFloat((f = (c = s.sourceData) == null ? void 0 : c[r.showTooltip]) == null ? void 0 : f[(u = r.columns) == null ? void 0 : u[1]]) / r.sumValue * 100).toFixed(2)) + "% ", 1)) : A("", !0)
5479
- ], 46, ki);
5470
+ r.showTooltip > -1 ? (p(), y("div", wi, W(s.sourceData[r.showTooltip][r.columns[0]]) + " " + W((parseFloat((f = (c = s.sourceData) == null ? void 0 : c[r.showTooltip]) == null ? void 0 : f[(u = r.columns) == null ? void 0 : u[1]]) / r.sumValue * 100).toFixed(2)) + "% ", 1)) : A("", !0)
5471
+ ], 46, yi);
5480
5472
  }), 256))
5481
5473
  ]),
5482
- h("ul", _i, [
5474
+ h("ul", vi, [
5483
5475
  (p(!0), y(U, null, Z(s.sourceData, (n) => {
5484
5476
  var o, l;
5485
- return p(), y("li", Di, [
5486
- h("div", Ci, [
5477
+ return p(), y("li", ki, [
5478
+ h("div", $i, [
5487
5479
  h("span", {
5488
5480
  class: ee(["shrink-0 size-2.5 inline-block rounded-sm me-2.5 min-w-[10px] w-[10px] h-[10px] min-h-[10px]", `bg-[${n.color}]`])
5489
5481
  }, null, 2),
5490
- h("span", zi, W((n == null ? void 0 : n[(o = r.columns) == null ? void 0 : o[0]]) || "Не визначено"), 1)
5482
+ h("span", _i, W((n == null ? void 0 : n[(o = r.columns) == null ? void 0 : o[0]]) || "Не визначено"), 1)
5491
5483
  ]),
5492
- h("div", Ti, [
5493
- h("span", Ii, W(i.formattedValue(n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[1]]) || "-"), 1)
5484
+ h("div", Di, [
5485
+ h("span", Ci, W(i.formattedValue(n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[1]]) || "-"), 1)
5494
5486
  ])
5495
5487
  ]);
5496
5488
  }), 256))
@@ -5499,10 +5491,10 @@ function Si(s, e, t, a, r, i) {
5499
5491
  ])
5500
5492
  ]);
5501
5493
  }
5502
- const Ri = /* @__PURE__ */ Q(bi, [["render", Si]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5494
+ const Ti = /* @__PURE__ */ Q(fi, [["render", zi]]), Ii = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5503
5495
  __proto__: null,
5504
- default: Ri
5505
- }, Symbol.toStringTag, { value: "Module" })), Li = {
5496
+ default: Ti
5497
+ }, Symbol.toStringTag, { value: "Module" })), Si = {
5506
5498
  name: "VsProgressBar",
5507
5499
  mixins: [pe],
5508
5500
  data() {
@@ -5532,24 +5524,24 @@ const Ri = /* @__PURE__ */ Q(bi, [["render", Si]]), Vi = /* @__PURE__ */ Object.
5532
5524
  return ce(s);
5533
5525
  }
5534
5526
  }
5535
- }, Wi = {
5527
+ }, Ri = {
5536
5528
  key: 0,
5537
5529
  class: "flex flex-col h-full pt-[16px] rounded-xl"
5538
- }, Ni = { class: "h-full pt-0 pb-6 space-y-4" }, Ei = { class: "h-full space-y-4 custom-scrollbar" }, ji = { class: "flex items-center justify-between mr-2 gap-x-2" }, Bi = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, Oi = { class: "text-sm text-gray-800" }, Pi = {
5530
+ }, Li = { class: "h-full pt-0 pb-6 space-y-4" }, Vi = { class: "h-full space-y-4 custom-scrollbar" }, Wi = { class: "flex items-center justify-between mr-2 gap-x-2" }, Ni = { class: "grid items-center w-full grid-cols-2 gap-x-2" }, Ei = { class: "text-sm text-gray-800" }, ji = {
5539
5531
  class: "flex justify-end",
5540
5532
  role: "progressbar",
5541
5533
  "aria-valuenow": "100",
5542
5534
  "aria-valuemin": "0",
5543
5535
  "aria-valuemax": "100"
5544
- }, Ai = { class: "min-w-[60px] text-end" }, Fi = { class: "text-sm text-gray-500" };
5545
- function qi(s, e, t, a, r, i) {
5546
- return r.columns ? (p(), y("div", Wi, [
5547
- h("div", Ni, [
5548
- h("ul", Ei, [
5549
- (p(!0), y(U, null, Z(s.sourceData, (n, o) => (p(), y("li", ji, [
5550
- h("div", Bi, [
5551
- h("span", Oi, W(n[r.columns[0]]), 1),
5552
- h("div", Pi, [
5536
+ }, Bi = { class: "min-w-[60px] text-end" }, Oi = { class: "text-sm text-gray-500" };
5537
+ function Pi(s, e, t, a, r, i) {
5538
+ return r.columns ? (p(), y("div", Ri, [
5539
+ h("div", Li, [
5540
+ h("ul", Vi, [
5541
+ (p(!0), y(U, null, Z(s.sourceData, (n, o) => (p(), y("li", Wi, [
5542
+ h("div", Ni, [
5543
+ h("span", Ei, W(n[r.columns[0]]), 1),
5544
+ h("div", ji, [
5553
5545
  h("div", {
5554
5546
  class: "h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",
5555
5547
  style: Ge({
@@ -5558,18 +5550,18 @@ function qi(s, e, t, a, r, i) {
5558
5550
  }, null, 4)
5559
5551
  ])
5560
5552
  ]),
5561
- h("div", Ai, [
5562
- h("span", Fi, W(i.formattedValue(n[r.columns[1]])), 1)
5553
+ h("div", Bi, [
5554
+ h("span", Oi, W(i.formattedValue(n[r.columns[1]])), 1)
5563
5555
  ])
5564
5556
  ]))), 256))
5565
5557
  ])
5566
5558
  ])
5567
5559
  ])) : A("", !0);
5568
5560
  }
5569
- const Mi = /* @__PURE__ */ Q(Li, [["render", qi]]), Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5561
+ const Ai = /* @__PURE__ */ Q(Si, [["render", Pi]]), Fi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5570
5562
  __proto__: null,
5571
- default: Mi
5572
- }, Symbol.toStringTag, { value: "Module" })), Gi = {
5563
+ default: Ai
5564
+ }, Symbol.toStringTag, { value: "Module" })), qi = {
5573
5565
  name: "VsListbar",
5574
5566
  mixins: [pe],
5575
5567
  props: ["source"],
@@ -5607,18 +5599,18 @@ const Mi = /* @__PURE__ */ Q(Li, [["render", qi]]), Ui = /* @__PURE__ */ Object.
5607
5599
  return `${s / this.maxValue * 100}%`;
5608
5600
  }
5609
5601
  }
5610
- }, Hi = { class: "h-full pt-[20px] list-bar" }, Zi = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, Qi = { class: "relative w-full truncate" }, Xi = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, Ki = { class: "text-[14px] text-gray-500" };
5611
- function Yi(s, e, t, a, r, i) {
5612
- return p(), y("div", Hi, [
5613
- h("ul", Zi, [
5602
+ }, Mi = { class: "h-full pt-[20px] list-bar" }, Ui = { class: "space-y-2 custom-scrollbar h-full h-[calc(100%-20px)]" }, Gi = { class: "relative w-full truncate" }, Hi = { class: "relative z-[1] text-sm block py-1 px-2 w-full text-sm truncate text-gray-800" }, Zi = { class: "text-[14px] text-gray-500" };
5603
+ function Qi(s, e, t, a, r, i) {
5604
+ return p(), y("div", Mi, [
5605
+ h("ul", Ui, [
5614
5606
  (p(!0), y(U, null, Z(s.sourceData, (n, o) => {
5615
5607
  var l, c, u;
5616
5608
  return p(), y("li", {
5617
5609
  key: o,
5618
5610
  class: "flex items-center justify-between w-full gap-x-2"
5619
5611
  }, [
5620
- h("div", Qi, [
5621
- h("span", Xi, W((n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[0]]) || "Без категорії"), 1),
5612
+ h("div", Gi, [
5613
+ h("span", Hi, W((n == null ? void 0 : n[(l = r.columns) == null ? void 0 : l[0]]) || "Без категорії"), 1),
5622
5614
  h("div", {
5623
5615
  class: ee(["absolute inset-y-0 h-full rounded start-0", n != null && n[(c = r.columns) == null ? void 0 : c[0]] ? "bg-indigo-100" : "bg-gray-100"]),
5624
5616
  style: Ge({ width: i.getWidth(n == null ? void 0 : n[(u = r.columns) == null ? void 0 : u[1]]) })
@@ -5628,17 +5620,17 @@ function Yi(s, e, t, a, r, i) {
5628
5620
  key: v,
5629
5621
  class: "w-20 mr-2 text-end"
5630
5622
  }, [
5631
- h("span", Ki, W(i.formattedValue(n == null ? void 0 : n[f])), 1)
5623
+ h("span", Zi, W(i.formattedValue(n == null ? void 0 : n[f])), 1)
5632
5624
  ]))), 128))
5633
5625
  ]);
5634
5626
  }), 128))
5635
5627
  ])
5636
5628
  ]);
5637
5629
  }
5638
- const Ji = /* @__PURE__ */ Q(Gi, [["render", Yi]]), eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5630
+ const Xi = /* @__PURE__ */ Q(qi, [["render", Qi]]), Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5639
5631
  __proto__: null,
5640
- default: Ji
5641
- }, Symbol.toStringTag, { value: "Module" })), to = {
5632
+ default: Xi
5633
+ }, Symbol.toStringTag, { value: "Module" })), Ji = {
5642
5634
  name: "VsPivotTable",
5643
5635
  mixins: [pe],
5644
5636
  data() {
@@ -5663,7 +5655,7 @@ const Ji = /* @__PURE__ */ Q(Gi, [["render", Yi]]), eo = /* @__PURE__ */ Object.
5663
5655
  const s = Array.from(
5664
5656
  new Set(this.sourceData.map((e) => e[this.dimensions[0]]))
5665
5657
  );
5666
- this.dimensions[0].includes("date") ? this.xs = s.map((e) => ct(e)) : this.xs = [...s], this.products = this.dimensions.filter((e, t) => t != 0), this.values = this.products.map((e, t) => ({
5658
+ this.dimensions[0].includes("date") ? this.xs = s.map((e) => lt(e)) : this.xs = [...s], this.products = this.dimensions.filter((e, t) => t != 0), this.values = this.products.map((e, t) => ({
5667
5659
  name: e,
5668
5660
  data: this.sourceData.filter((a) => parseFloat(a[e])).map((a) => ce(parseFloat(a[e])))
5669
5661
  }));
@@ -5672,37 +5664,37 @@ const Ji = /* @__PURE__ */ Q(Gi, [["render", Yi]]), eo = /* @__PURE__ */ Object.
5672
5664
  }
5673
5665
  }
5674
5666
  }
5675
- }, so = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, ao = { class: "overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 custom-scrollbar" }, ro = { class: "inline-block min-w-full align-middle" }, no = { class: "min-w-full divide-y divide-gray-200" }, io = { class: "space-x-2" }, oo = {
5667
+ }, Ki = { class: "flex flex-col h-full p-5 space-y-4 rounded-xl custom-scrollbar" }, eo = { class: "overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 custom-scrollbar" }, to = { class: "inline-block min-w-full align-middle" }, so = { class: "min-w-full divide-y divide-gray-200" }, ao = { class: "space-x-2" }, ro = {
5676
5668
  scope: "col",
5677
5669
  class: "xl:min-w-[120px] min-w-48"
5678
- }, lo = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, co = { class: "divide-y divide-gray-200 text-[12px]" }, uo = { class: "py-3 size-px whitespace-nowrap" }, ho = { class: "flex items-center gap-x-3" }, po = { class: "font-medium text-gray-800" }, fo = { class: "py-3 size-px whitespace-nowrap" }, go = { class: "text-gray-600" };
5679
- function mo(s, e, t, a, r, i) {
5680
- return p(), y("div", so, [
5681
- h("div", ao, [
5682
- h("div", ro, [
5683
- h("table", no, [
5670
+ }, no = { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" }, io = { class: "divide-y divide-gray-200 text-[12px]" }, oo = { class: "py-3 size-px whitespace-nowrap" }, lo = { class: "flex items-center gap-x-3" }, co = { class: "font-medium text-gray-800" }, uo = { class: "py-3 size-px whitespace-nowrap" }, ho = { class: "text-gray-600" };
5671
+ function po(s, e, t, a, r, i) {
5672
+ return p(), y("div", Ki, [
5673
+ h("div", eo, [
5674
+ h("div", to, [
5675
+ h("table", so, [
5684
5676
  h("thead", null, [
5685
- h("tr", io, [
5677
+ h("tr", ao, [
5686
5678
  e[0] || (e[0] = h("th", {
5687
5679
  scope: "col",
5688
5680
  class: "min-w-[200px]"
5689
5681
  }, [
5690
5682
  h("div", { class: "py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500" })
5691
5683
  ], -1)),
5692
- (p(!0), y(U, null, Z(r.xs, (n) => (p(), y("th", oo, [
5693
- h("div", lo, W(n), 1)
5684
+ (p(!0), y(U, null, Z(r.xs, (n) => (p(), y("th", ro, [
5685
+ h("div", no, W(n), 1)
5694
5686
  ]))), 256))
5695
5687
  ])
5696
5688
  ]),
5697
- (p(!0), y(U, null, Z(r.values, (n) => (p(), y("tbody", co, [
5689
+ (p(!0), y(U, null, Z(r.values, (n) => (p(), y("tbody", io, [
5698
5690
  h("tr", null, [
5699
- h("td", uo, [
5700
- h("div", ho, [
5701
- h("span", po, W(n.name), 1)
5691
+ h("td", oo, [
5692
+ h("div", lo, [
5693
+ h("span", co, W(n.name), 1)
5702
5694
  ])
5703
5695
  ]),
5704
- (p(!0), y(U, null, Z(r.xs, (o, l) => (p(), y("td", fo, [
5705
- h("span", go, W(n.data[l]), 1)
5696
+ (p(!0), y(U, null, Z(r.xs, (o, l) => (p(), y("td", uo, [
5697
+ h("span", ho, W(n.data[l]), 1)
5706
5698
  ]))), 256))
5707
5699
  ])
5708
5700
  ]))), 256))
@@ -5711,36 +5703,36 @@ function mo(s, e, t, a, r, i) {
5711
5703
  ])
5712
5704
  ]);
5713
5705
  }
5714
- const bo = /* @__PURE__ */ Q(to, [["render", mo]]), xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5706
+ const fo = /* @__PURE__ */ Q(Ji, [["render", po]]), go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5715
5707
  __proto__: null,
5716
- default: bo
5708
+ default: fo
5717
5709
  }, Symbol.toStringTag, { value: "Module" }));
5718
5710
  export {
5719
- K as R,
5720
- Ra as U,
5721
- ei as V,
5711
+ Y as R,
5712
+ Ta as U,
5713
+ Yn as V,
5722
5714
  Es as X,
5723
5715
  Q as _,
5724
- Le as a,
5725
- ct as b,
5716
+ Ve as a,
5717
+ lt as b,
5726
5718
  pe as c,
5727
5719
  ce as d,
5728
5720
  se as e,
5729
- $o as f,
5721
+ vo as f,
5730
5722
  H as g,
5731
- Xr as h,
5732
- Qr as i,
5733
- Hn as j,
5734
- $n as k,
5735
- ko as l,
5723
+ Hr as h,
5724
+ Gr as i,
5725
+ Mn as j,
5726
+ wn as k,
5727
+ wo as l,
5736
5728
  B as m,
5737
- di as n,
5738
- gi as o,
5739
- Ri as p,
5740
- Mi as q,
5741
- Ji as r,
5742
- bo as s,
5743
- vo as t,
5729
+ oi as n,
5730
+ hi as o,
5731
+ Ti as p,
5732
+ Ai as q,
5733
+ Xi as r,
5734
+ fo as s,
5735
+ yo as t,
5744
5736
  Oe as u,
5745
- ni as v
5737
+ si as v
5746
5738
  };