@opengis/gis 0.2.13 → 0.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as Dt, defineComponent as ne, mergeModels as Ge, defineAsyncComponent as Be, useModel as Pe, ref as O, createElementBlock as x, openBlock as m, createElementVNode as s, createVNode as re, unref as le, withCtx as we, createStaticVNode as Qe, computed as N, Fragment as q, createCommentVNode as H, createTextVNode as se, renderList as J, normalizeStyle as Ae, toDisplayString as B, withModifiers as Te, normalizeClass as pe, createBlock as Q, resolveDynamicComponent as yt, withDirectives as Me, watch as Z, onBeforeUnmount as fe, onMounted as he, shallowRef as Tn, onUnmounted as jn, provide as vr, inject as mr, vModelText as ot, renderSlot as Zt, nextTick as ye, reactive as Ne, Teleport as Xe, Transition as Gt, createSlots as gr, getCurrentInstance as Xt, vShow as kt, vModelRadio as hr } from "vue";
1
+ import { h as Dt, defineComponent as ne, mergeModels as Ge, defineAsyncComponent as Be, useModel as Pe, ref as O, createElementBlock as b, openBlock as m, createElementVNode as s, createVNode as re, unref as le, withCtx as we, createStaticVNode as Qe, computed as N, Fragment as q, createCommentVNode as H, createTextVNode as se, renderList as J, normalizeStyle as Ae, toDisplayString as B, withModifiers as Te, normalizeClass as pe, createBlock as Q, resolveDynamicComponent as yt, withDirectives as Me, watch as Z, onBeforeUnmount as fe, onMounted as he, shallowRef as Tn, onUnmounted as jn, provide as vr, inject as mr, vModelText as ot, renderSlot as Zt, nextTick as ye, reactive as Ne, Teleport as Xe, Transition as Gt, createSlots as gr, getCurrentInstance as Xt, vShow as kt, vModelRadio as hr } from "vue";
2
2
  import { useRoute as xt, useRouter as st } from "vue-router";
3
3
  import { notify as xe } from "@opengis/core";
4
4
  /**
@@ -184,7 +184,7 @@ const Er = Ke("x", [
184
184
  }
185
185
  l.value[r.index] = u.value, o.value = !1;
186
186
  };
187
- return (g, a) => (m(), x("div", Fr, [
187
+ return (g, a) => (m(), b("div", Fr, [
188
188
  s("button", {
189
189
  onClick: a[0] || (a[0] = (v) => {
190
190
  o.value = !0;
@@ -306,7 +306,7 @@ const Er = Ke("x", [
306
306
  __v0_r: "0,5361,5384"
307
307
  };
308
308
  function zr(e, t) {
309
- return m(), x("svg", Pr, [...t[0] || (t[0] = [
309
+ return m(), b("svg", Pr, [...t[0] || (t[0] = [
310
310
  s("polyline", { points: "4 7 4 4 20 4 20 7" }, null, -1),
311
311
  s("line", {
312
312
  x1: "9",
@@ -336,7 +336,7 @@ const Rr = /* @__PURE__ */ ie(Nr, [["render", zr]]), Dr = {}, Br = {
336
336
  __v0_r: "0,5361,5384"
337
337
  };
338
338
  function Vr(e, t) {
339
- return m(), x("svg", Br, [...t[0] || (t[0] = [
339
+ return m(), b("svg", Br, [...t[0] || (t[0] = [
340
340
  s("line", {
341
341
  x1: "4",
342
342
  x2: "20",
@@ -377,7 +377,7 @@ const Ur = /* @__PURE__ */ ie(Dr, [["render", Vr]]), qr = {}, Yr = {
377
377
  __v0_r: "0,5361,5384"
378
378
  };
379
379
  function Hr(e, t) {
380
- return m(), x("svg", Yr, [...t[0] || (t[0] = [
380
+ return m(), b("svg", Yr, [...t[0] || (t[0] = [
381
381
  s("path", { d: "M8 2v4" }, null, -1),
382
382
  s("path", { d: "M16 2v4" }, null, -1),
383
383
  s("rect", {
@@ -404,7 +404,7 @@ const Wr = /* @__PURE__ */ ie(qr, [["render", Hr]]), Kr = {}, Zr = {
404
404
  __v0_r: "0,5361,5384"
405
405
  };
406
406
  function Gr(e, t) {
407
- return m(), x("svg", Zr, [...t[0] || (t[0] = [
407
+ return m(), b("svg", Zr, [...t[0] || (t[0] = [
408
408
  s("path", { d: "M8 2v4" }, null, -1),
409
409
  s("path", { d: "M16 2v4" }, null, -1),
410
410
  s("rect", {
@@ -431,7 +431,7 @@ const Xr = /* @__PURE__ */ ie(Kr, [["render", Gr]]), Qr = {}, Jr = {
431
431
  __v0_r: "0,5361,5384"
432
432
  };
433
433
  function eo(e, t) {
434
- return m(), x("svg", Jr, [...t[0] || (t[0] = [
434
+ return m(), b("svg", Jr, [...t[0] || (t[0] = [
435
435
  s("polyline", { points: "16 18 22 12 16 6" }, null, -1),
436
436
  s("polyline", { points: "8 6 2 12 8 18" }, null, -1)
437
437
  ])]);
@@ -450,7 +450,7 @@ const to = /* @__PURE__ */ ie(Qr, [["render", eo]]), no = {}, ro = {
450
450
  __v0_r: "0,5361,5384"
451
451
  };
452
452
  function oo(e, t) {
453
- return m(), x("svg", ro, [...t[0] || (t[0] = [
453
+ return m(), b("svg", ro, [...t[0] || (t[0] = [
454
454
  s("rect", {
455
455
  width: "20",
456
456
  height: "12",
@@ -480,7 +480,7 @@ const lo = /* @__PURE__ */ ie(no, [["render", oo]]), io = {}, so = {
480
480
  __v0_r: "0,5361,5384"
481
481
  };
482
482
  function ao(e, t) {
483
- return m(), x("svg", so, [...t[0] || (t[0] = [
483
+ return m(), b("svg", so, [...t[0] || (t[0] = [
484
484
  Qe('<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>', 5)
485
485
  ])]);
486
486
  }
@@ -498,7 +498,7 @@ const uo = /* @__PURE__ */ ie(io, [["render", ao]]), co = {}, fo = {
498
498
  __v0_r: "0,5361,5384"
499
499
  };
500
500
  function po(e, t) {
501
- return m(), x("svg", fo, [...t[0] || (t[0] = [
501
+ return m(), b("svg", fo, [...t[0] || (t[0] = [
502
502
  s("rect", {
503
503
  width: "18",
504
504
  height: "18",
@@ -529,7 +529,7 @@ const vo = /* @__PURE__ */ ie(co, [["render", po]]), mo = {}, go = {
529
529
  __v0_r: "0,5361,5384"
530
530
  };
531
531
  function ho(e, t) {
532
- return m(), x("svg", go, [...t[0] || (t[0] = [
532
+ return m(), b("svg", go, [...t[0] || (t[0] = [
533
533
  Qe('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
534
534
  ])]);
535
535
  }
@@ -547,7 +547,7 @@ const yo = /* @__PURE__ */ ie(mo, [["render", ho]]), xo = {}, bo = {
547
547
  __v0_r: "0,5361,5384"
548
548
  };
549
549
  function _o(e, t) {
550
- return m(), x("svg", bo, [...t[0] || (t[0] = [
550
+ return m(), b("svg", bo, [...t[0] || (t[0] = [
551
551
  Qe('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
552
552
  ])]);
553
553
  }
@@ -565,7 +565,7 @@ const wo = /* @__PURE__ */ ie(xo, [["render", _o]]), ko = {}, $o = {
565
565
  __v0_r: "0,5361,5384"
566
566
  };
567
567
  function Co(e, t) {
568
- return m(), x("svg", $o, [...t[0] || (t[0] = [
568
+ return m(), b("svg", $o, [...t[0] || (t[0] = [
569
569
  s("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }, null, -1),
570
570
  s("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }, null, -1),
571
571
  s("line", {
@@ -590,7 +590,7 @@ const Ao = /* @__PURE__ */ ie(ko, [["render", Co]]), Lo = {}, So = {
590
590
  __v0_r: "0,5361,5384"
591
591
  };
592
592
  function Eo(e, t) {
593
- return m(), x("svg", So, [...t[0] || (t[0] = [
593
+ return m(), b("svg", So, [...t[0] || (t[0] = [
594
594
  Qe('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
595
595
  ])]);
596
596
  }
@@ -608,7 +608,7 @@ const Fo = /* @__PURE__ */ ie(Lo, [["render", Eo]]), Io = {}, Mo = {
608
608
  __v0_r: "0,5361,5384"
609
609
  };
610
610
  function To(e, t) {
611
- return m(), x("svg", Mo, [...t[0] || (t[0] = [
611
+ return m(), b("svg", Mo, [...t[0] || (t[0] = [
612
612
  s("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }, null, -1),
613
613
  s("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }, null, -1),
614
614
  s("line", {
@@ -633,7 +633,7 @@ const jo = /* @__PURE__ */ ie(Io, [["render", To]]), Oo = {}, No = {
633
633
  __v0_r: "0,5361,5384"
634
634
  };
635
635
  function Po(e, t) {
636
- return m(), x("svg", No, [...t[0] || (t[0] = [
636
+ return m(), b("svg", No, [...t[0] || (t[0] = [
637
637
  Qe('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
638
638
  ])]);
639
639
  }
@@ -648,7 +648,7 @@ const zo = /* @__PURE__ */ ie(Oo, [["render", Po]]), Ro = {}, Do = {
648
648
  "xml:space": "preserve"
649
649
  };
650
650
  function Bo(e, t) {
651
- return m(), x("svg", Do, [...t[0] || (t[0] = [
651
+ return m(), b("svg", Do, [...t[0] || (t[0] = [
652
652
  s("g", null, [
653
653
  s("path", {
654
654
  class: "st0",
@@ -669,7 +669,7 @@ const Vo = /* @__PURE__ */ ie(Ro, [["render", Bo]]), Uo = {}, qo = {
669
669
  fill: "none"
670
670
  };
671
671
  function Yo(e, t) {
672
- return m(), x("svg", qo, [...t[0] || (t[0] = [
672
+ return m(), b("svg", qo, [...t[0] || (t[0] = [
673
673
  s("path", {
674
674
  d: "M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z",
675
675
  stroke: "#323232",
@@ -781,20 +781,20 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
781
781
  }
782
782
  y();
783
783
  }
784
- const p = O(null), b = O(null), S = (F) => {
784
+ const p = O(null), x = O(null), S = (F) => {
785
785
  p.value = F;
786
786
  }, _ = (F) => {
787
- b.value = F;
787
+ x.value = F;
788
788
  }, k = (F) => {
789
789
  if (p.value === null || p.value === F) {
790
- p.value = null, b.value = null;
790
+ p.value = null, x.value = null;
791
791
  return;
792
792
  }
793
793
  const M = [...a.value], [h] = M.splice(p.value, 1);
794
- M.splice(F, 0, h), a.value = M, p.value = null, b.value = null;
794
+ M.splice(F, 0, h), a.value = M, p.value = null, x.value = null;
795
795
  };
796
- return (F, M) => (m(), x(q, null, [
797
- e.addButton ? (m(), x("div", Wo, [
796
+ return (F, M) => (m(), b(q, null, [
797
+ e.addButton ? (m(), b("div", Wo, [
798
798
  s("div", Ko, [
799
799
  s("button", {
800
800
  onClick: M[0] || (M[0] = (h) => f.value = !0),
@@ -822,7 +822,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
822
822
  s("div", Go, [
823
823
  s("table", Xo, [
824
824
  s("colgroup", null, [
825
- (m(!0), x(q, null, J(v.value, (h) => (m(), x("col", {
825
+ (m(!0), b(q, null, J(v.value, (h) => (m(), b("col", {
826
826
  key: h.key,
827
827
  style: Ae(
828
828
  h.type === "main" ? `width: ${e.mainColWidth}` : h.width ? `width: ${h.width}` : "auto"
@@ -832,34 +832,34 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
832
832
  ]),
833
833
  s("thead", null, [
834
834
  s("tr", Qo, [
835
- (m(!0), x(q, null, J(v.value, (h) => (m(), x("th", {
835
+ (m(!0), b(q, null, J(v.value, (h) => (m(), b("th", {
836
836
  key: h.key,
837
837
  class: "px-6 py-4"
838
838
  }, B(h.label), 1))), 128)),
839
839
  M[6] || (M[6] = s("th", { class: "px-6 py-4" }, "Дії", -1))
840
840
  ])
841
841
  ]),
842
- a.value.length ? (m(), x("tbody", Jo, [
843
- (m(!0), x(q, null, J(a.value, (h, I) => (m(), x("tr", {
842
+ a.value.length ? (m(), b("tbody", Jo, [
843
+ (m(!0), b(q, null, J(a.value, (h, I) => (m(), b("tr", {
844
844
  key: h.id || h.name || I,
845
845
  class: pe(["transition-colors hover:bg-gray-50/50 cursor-move", {
846
846
  "opacity-50": p.value === I,
847
- "border-t-2 border-b-2 border-blue-500 bg-blue-50": b.value === I
847
+ "border-t-2 border-b-2 border-blue-500 bg-blue-50": x.value === I
848
848
  }]),
849
849
  draggable: "true",
850
850
  onDragstart: (A) => S(I),
851
851
  onDragover: Te((A) => _(I), ["prevent"]),
852
852
  onDrop: (A) => k(I)
853
853
  }, [
854
- (m(!0), x(q, null, J(v.value, (A) => (m(), x("td", {
854
+ (m(!0), b(q, null, J(v.value, (A) => (m(), b("td", {
855
855
  key: A.key,
856
856
  class: "px-6 py-4 align-middle text-center"
857
857
  }, [
858
- A.type === "main" ? (m(), x("div", tl, [
858
+ A.type === "main" ? (m(), b("div", tl, [
859
859
  M[7] || (M[7] = s("span", { class: "drag-handle cursor-move mr-2 text-gray-400" }, "☰", -1)),
860
860
  le(Nn)(
861
861
  h.format === "yes/no" ? "check" : h.format || h.type
862
- ) ? (m(), x("div", {
862
+ ) ? (m(), b("div", {
863
863
  key: 0,
864
864
  class: pe(["flex items-center justify-center p-1 rounded", `bg-${le(On)(
865
865
  h.format === "yes/no" ? "check" : h.format || h.type
@@ -870,21 +870,21 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
870
870
  ), { class: "w-4 h-4" }))
871
871
  ], 2)) : H("", !0),
872
872
  s("div", nl, [
873
- Me((m(), x("p", rl, [
873
+ Me((m(), b("p", rl, [
874
874
  se(B(h.name || h.id), 1)
875
875
  ])), [
876
876
  [le(Tr)]
877
877
  ]),
878
878
  s("p", ol, B(h.label || h.ua || h.name || h.id), 1)
879
879
  ])
880
- ])) : (m(), x(q, { key: 1 }, [
881
- A.type === "color" ? (m(), x("div", ll, [
880
+ ])) : (m(), b(q, { key: 1 }, [
881
+ A.type === "color" ? (m(), b("div", ll, [
882
882
  s("div", {
883
883
  class: pe(["w-4 h-4 rounded-full align-middle", `bg-[${h[A.key]}]`])
884
884
  }, null, 2)
885
- ])) : ["format", "type", "meta"].includes(A.key) ? (m(), x(q, { key: 1 }, [
886
- h[A.key] ? (m(), x("span", il, B(h[A.key]), 1)) : (m(), x("span", sl, "Не вказано"))
887
- ], 64)) : (m(), x("span", al, B(h[A.key]), 1))
885
+ ])) : ["format", "type", "meta"].includes(A.key) ? (m(), b(q, { key: 1 }, [
886
+ h[A.key] ? (m(), b("span", il, B(h[A.key]), 1)) : (m(), b("span", sl, "Не вказано"))
887
+ ], 64)) : (m(), b("span", al, B(h[A.key]), 1))
888
888
  ], 64))
889
889
  ]))), 128)),
890
890
  s("td", ul, [
@@ -897,7 +897,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
897
897
  }, null, 8, ["columns", "data", "index", "scheme"])
898
898
  ])
899
899
  ], 42, el))), 128))
900
- ])) : (m(), x("tr", cl, [
900
+ ])) : (m(), b("tr", cl, [
901
901
  s("td", {
902
902
  colspan: v.value.length + 1,
903
903
  class: "text-gray-500 text-center py-4"
@@ -966,7 +966,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
966
966
  if (!k) return;
967
967
  const F = new Set(a.value);
968
968
  F.has(k) ? F.delete(k) : F.add(k), r.value = Array.from(F);
969
- }, d = N(() => l.confirmText || "Імпортувати"), p = N(() => l.cancelText || "Скасувати"), b = () => {
969
+ }, d = N(() => l.confirmText || "Імпортувати"), p = N(() => l.cancelText || "Скасувати"), x = () => {
970
970
  n.value = !1, o("cancel");
971
971
  }, S = () => {
972
972
  o("confirm"), n.value = !1;
@@ -980,7 +980,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
980
980
  footer: we(() => [
981
981
  s("div", xl, [
982
982
  s("button", {
983
- onClick: b,
983
+ onClick: x,
984
984
  class: "px-4 py-2 rounded bg-gray-100 text-gray-700"
985
985
  }, B(p.value), 1),
986
986
  s("button", {
@@ -992,7 +992,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
992
992
  default: we(() => [
993
993
  s("div", pl, [
994
994
  s("div", vl, [
995
- (m(!0), x(q, null, J(u.value, (F) => (m(), x("label", {
995
+ (m(!0), b(q, null, J(u.value, (F) => (m(), b("label", {
996
996
  key: c(F),
997
997
  class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
998
998
  }, [
@@ -1003,7 +1003,7 @@ const Ho = /* @__PURE__ */ ie(Uo, [["render", Yo]]), ln = {
1003
1003
  onChange: (M) => y(F)
1004
1004
  }, null, 40, ml),
1005
1005
  s("div", gl, [
1006
- le(Nn)(F.type) ? (m(), x("div", {
1006
+ le(Nn)(F.type) ? (m(), b("div", {
1007
1007
  key: 0,
1008
1008
  class: pe(`bg-${le(On)(F.type)}-100 p-1 rounded`)
1009
1009
  }, [
@@ -1149,7 +1149,7 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1149
1149
  placeholder: "Description",
1150
1150
  col: 12
1151
1151
  }
1152
- }, b = [
1152
+ }, x = [
1153
1153
  { key: "name", label: "Name", type: "text" },
1154
1154
  { key: "label", label: "Label", type: "text" },
1155
1155
  // { key: "format", label: "Format", type: "text" },
@@ -1192,7 +1192,7 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1192
1192
  };
1193
1193
  return fe(() => {
1194
1194
  n.value = null;
1195
- }), (_, k) => (m(), x("div", bl, [
1195
+ }), (_, k) => (m(), b("div", bl, [
1196
1196
  s("div", _l, [
1197
1197
  s("div", wl, [
1198
1198
  s("div", kl, [
@@ -1234,7 +1234,7 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1234
1234
  re(Je, {
1235
1235
  modelValue: v.value,
1236
1236
  "onUpdate:modelValue": k[1] || (k[1] = (F) => v.value = F),
1237
- "columns-scheme": b,
1237
+ "columns-scheme": x,
1238
1238
  "form-scheme": S,
1239
1239
  "main-col-width": "250px",
1240
1240
  "add-button": !1
@@ -1283,11 +1283,11 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1283
1283
  });
1284
1284
  const g = () => {
1285
1285
  const y = new Set(
1286
- u.value.map((b) => lt(b)).filter((b) => b.length > 0)
1287
- ), d = Array.isArray(c.value) ? [...c.value] : [], p = l.value.filter((b) => y.has(o(b))).map((b) => ({
1288
- name: o(b),
1289
- label: b.title ?? b.label ?? o(b),
1290
- type: b.type || "text"
1286
+ u.value.map((x) => lt(x)).filter((x) => x.length > 0)
1287
+ ), d = Array.isArray(c.value) ? [...c.value] : [], p = l.value.filter((x) => y.has(o(x))).map((x) => ({
1288
+ name: o(x),
1289
+ label: x.title ?? x.label ?? o(x),
1290
+ type: x.type || "text"
1291
1291
  }));
1292
1292
  c.value = ut(d, p, {
1293
1293
  selectedKeys: u.value,
@@ -1325,7 +1325,7 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1325
1325
  };
1326
1326
  return fe(() => {
1327
1327
  n.value = null;
1328
- }), (y, d) => (m(), x("div", Ll, [
1328
+ }), (y, d) => (m(), b("div", Ll, [
1329
1329
  s("div", Sl, [
1330
1330
  s("div", El, [
1331
1331
  d[4] || (d[4] = s("div", { class: "h-fit w-full flex flex-wrap mb-6 px-2" }, [
@@ -1407,21 +1407,21 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1407
1407
  Z(i, (y) => {
1408
1408
  var d;
1409
1409
  if (y) {
1410
- const p = ((d = c.value) == null ? void 0 : d.map((b) => b.name)) || [];
1410
+ const p = ((d = c.value) == null ? void 0 : d.map((x) => x.name)) || [];
1411
1411
  u.value = [...p];
1412
1412
  }
1413
1413
  });
1414
1414
  const g = () => {
1415
1415
  const y = new Set(
1416
- u.value.map((b) => lt(b)).filter((b) => b.length > 0)
1417
- ), d = Array.isArray(c.value) ? [...c.value] : [], p = l.value.filter((b) => y.has(o(b))).map((b) => {
1418
- const S = o(b), _ = b.title ?? b.label ?? S;
1416
+ u.value.map((x) => lt(x)).filter((x) => x.length > 0)
1417
+ ), d = Array.isArray(c.value) ? [...c.value] : [], p = l.value.filter((x) => y.has(o(x))).map((x) => {
1418
+ const S = o(x), _ = x.title ?? x.label ?? S;
1419
1419
  return {
1420
- ...b,
1420
+ ...x,
1421
1421
  name: S,
1422
1422
  label: _,
1423
- format: b.format || b.type || "text",
1424
- meta: b.meta || "title"
1423
+ format: x.format || x.type || "text",
1424
+ meta: x.meta || "title"
1425
1425
  };
1426
1426
  });
1427
1427
  c.value = ut(d, p, {
@@ -1467,7 +1467,7 @@ const bl = { class: "vs-form" }, _l = { class: "vs-form__body auto-rows-max cont
1467
1467
  };
1468
1468
  return fe(() => {
1469
1469
  n.value = null;
1470
- }), (y, d) => (m(), x("div", Tl, [
1470
+ }), (y, d) => (m(), b("div", Tl, [
1471
1471
  s("div", jl, [
1472
1472
  s("div", Ol, [
1473
1473
  d[4] || (d[4] = s("div", { class: "h-fit w-full flex flex-wrap mb-6 px-2" }, [
@@ -1580,9 +1580,9 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1580
1580
  const g = u(c, t.id_key);
1581
1581
  return `${t.path}?id=${g}`;
1582
1582
  };
1583
- return (c, g) => (m(!0), x(q, null, J(n.value, (a) => {
1583
+ return (c, g) => (m(!0), b(q, null, J(n.value, (a) => {
1584
1584
  var v, y, d;
1585
- return m(), x("div", {
1585
+ return m(), b("div", {
1586
1586
  key: a.id,
1587
1587
  class: "rounded-lg border bg-card text-card-foreground overflow-hidden border-none shadow-md relative",
1588
1588
  "data-v0-t": "card"
@@ -1590,39 +1590,39 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1590
1590
  s("div", Dl, [
1591
1591
  s("div", Bl, [
1592
1592
  s("h2", Vl, B(a[`${(v = r.value) == null ? void 0 : v.name}_text`] || a[(y = r.value) == null ? void 0 : y.name] || a[(d = r.value) == null ? void 0 : d.label] || "Не вказано"), 1),
1593
- Array.isArray(l.value) && l.value.length ? (m(!0), x(q, { key: 0 }, J(l.value, (p) => (m(), x(q, {
1593
+ Array.isArray(l.value) && l.value.length ? (m(!0), b(q, { key: 0 }, J(l.value, (p) => (m(), b(q, {
1594
1594
  key: p.name
1595
1595
  }, [
1596
- a[p.name] ? (m(), x("div", Ul, B(a[`${p.name}_text`] || a[p.name]), 1)) : H("", !0)
1596
+ a[p.name] ? (m(), b("div", Ul, B(a[`${p.name}_text`] || a[p.name]), 1)) : H("", !0)
1597
1597
  ], 64))), 128)) : H("", !0)
1598
1598
  ]),
1599
- Array.isArray(o.value) && o.value.length ? (m(), x("div", ql, [
1600
- (m(!0), x(q, null, J(o.value, (p) => (m(), x("div", {
1599
+ Array.isArray(o.value) && o.value.length ? (m(), b("div", ql, [
1600
+ (m(!0), b(q, null, J(o.value, (p) => (m(), b("div", {
1601
1601
  key: p.name,
1602
1602
  class: "mt-2 flex flex-wrap gap-1"
1603
1603
  }, [
1604
- a[p.name] ? (m(), x("span", Yl, B(a[`${p.name}_text`] || a[p.name]), 1)) : H("", !0)
1604
+ a[p.name] ? (m(), b("span", Yl, B(a[`${p.name}_text`] || a[p.name]), 1)) : H("", !0)
1605
1605
  ]))), 128))
1606
1606
  ])) : H("", !0)
1607
1607
  ]),
1608
1608
  s("div", Hl, [
1609
1609
  s("div", Wl, [
1610
- (m(!0), x(q, null, J(i.value, (p) => {
1611
- var b;
1612
- return m(), x("div", {
1610
+ (m(!0), b(q, null, J(i.value, (p) => {
1611
+ var x;
1612
+ return m(), b("div", {
1613
1613
  key: p.name,
1614
1614
  class: "flex items-center gap-1.5"
1615
1615
  }, [
1616
1616
  s("span", Kl, B(p.ua || p.label) + ": ", 1),
1617
1617
  s("span", Zl, [
1618
- Array.isArray(a[p == null ? void 0 : p.name]) ? (m(!0), x(q, { key: 0 }, J(a[(p == null ? void 0 : p.name) + "_text"] || a[p == null ? void 0 : p.name], (S, _) => (m(), x("span", {
1618
+ Array.isArray(a[p == null ? void 0 : p.name]) ? (m(!0), b(q, { key: 0 }, J(a[(p == null ? void 0 : p.name) + "_text"] || a[p == null ? void 0 : p.name], (S, _) => (m(), b("span", {
1619
1619
  key: _,
1620
1620
  class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
1621
- }, B(S), 1))), 128)) : (m(), x(q, { key: 1 }, [
1622
- p.type === "date" ? (m(), x(q, { key: 0 }, [
1621
+ }, B(S), 1))), 128)) : (m(), b(q, { key: 1 }, [
1622
+ p.type === "date" ? (m(), b(q, { key: 0 }, [
1623
1623
  se(B(le(bt)(a[p == null ? void 0 : p.name]) || "Немає даних"), 1)
1624
- ], 64)) : (m(), x(q, { key: 1 }, [
1625
- se(B(((b = a[(p == null ? void 0 : p.name) + "_data"]) == null ? void 0 : b.text) || a[(p == null ? void 0 : p.name) + "_text"] || a[p == null ? void 0 : p.name] || "Немає даних"), 1)
1624
+ ], 64)) : (m(), b(q, { key: 1 }, [
1625
+ se(B(((x = a[(p == null ? void 0 : p.name) + "_data"]) == null ? void 0 : x.text) || a[(p == null ? void 0 : p.name) + "_text"] || a[p == null ? void 0 : p.name] || "Немає даних"), 1)
1626
1626
  ], 64))
1627
1627
  ], 64))
1628
1628
  ])
@@ -1684,9 +1684,9 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1684
1684
  const g = u(c, t.id_key);
1685
1685
  return `${t.path}?id=${g}`;
1686
1686
  };
1687
- return (c, g) => (m(!0), x(q, null, J(n.value, (a) => {
1687
+ return (c, g) => (m(!0), b(q, null, J(n.value, (a) => {
1688
1688
  var v, y;
1689
- return m(), x("div", {
1689
+ return m(), b("div", {
1690
1690
  key: a.id,
1691
1691
  class: "rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden",
1692
1692
  "data-v0-t": "card"
@@ -1696,35 +1696,35 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1696
1696
  s("div", ti, [
1697
1697
  s("div", ni, [
1698
1698
  s("h2", ri, B(a[`${(v = r.value) == null ? void 0 : v.name}_text`] || a[(y = r.value) == null ? void 0 : y.name] || "Не вказано"), 1),
1699
- Array.isArray(l.value) && l.value.length ? (m(!0), x(q, { key: 0 }, J(l.value, (d) => (m(), x(q, {
1699
+ Array.isArray(l.value) && l.value.length ? (m(!0), b(q, { key: 0 }, J(l.value, (d) => (m(), b(q, {
1700
1700
  key: d.name
1701
1701
  }, [
1702
- a[d.name] ? (m(), x("div", oi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1702
+ a[d.name] ? (m(), b("div", oi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1703
1703
  ], 64))), 128)) : H("", !0),
1704
- Array.isArray(o.value) && o.value.length ? (m(), x("div", li, [
1705
- (m(!0), x(q, null, J(o.value, (d) => (m(), x("div", {
1704
+ Array.isArray(o.value) && o.value.length ? (m(), b("div", li, [
1705
+ (m(!0), b(q, null, J(o.value, (d) => (m(), b("div", {
1706
1706
  key: d.name,
1707
1707
  class: "flex flex-wrap gap-1 ml-2"
1708
1708
  }, [
1709
- a[d.name] ? (m(), x("span", ii, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1709
+ a[d.name] ? (m(), b("span", ii, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1710
1710
  ]))), 128))
1711
1711
  ])) : H("", !0)
1712
1712
  ]),
1713
1713
  s("div", si, [
1714
- (m(!0), x(q, null, J(i.value, (d) => {
1714
+ (m(!0), b(q, null, J(i.value, (d) => {
1715
1715
  var p;
1716
- return m(), x("div", {
1716
+ return m(), b("div", {
1717
1717
  key: d.name
1718
1718
  }, [
1719
1719
  s("p", ai, B(d.ua), 1),
1720
1720
  s("p", ui, [
1721
- Array.isArray(a[d == null ? void 0 : d.name]) ? (m(!0), x(q, { key: 0 }, J(a[d == null ? void 0 : d.name], (b, S) => (m(), x("span", {
1721
+ Array.isArray(a[d == null ? void 0 : d.name]) ? (m(!0), b(q, { key: 0 }, J(a[d == null ? void 0 : d.name], (x, S) => (m(), b("span", {
1722
1722
  key: S,
1723
1723
  class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
1724
- }, B(b), 1))), 128)) : (m(), x(q, { key: 1 }, [
1725
- d.type === "date" ? (m(), x(q, { key: 0 }, [
1724
+ }, B(x), 1))), 128)) : (m(), b(q, { key: 1 }, [
1725
+ d.type === "date" ? (m(), b(q, { key: 0 }, [
1726
1726
  se(B(le(bt)(a[d == null ? void 0 : d.name]) || "Немає даних"), 1)
1727
- ], 64)) : (m(), x(q, { key: 1 }, [
1727
+ ], 64)) : (m(), b(q, { key: 1 }, [
1728
1728
  se(B(((p = a[(d == null ? void 0 : d.name) + "_data"]) == null ? void 0 : p.text) || a[(d == null ? void 0 : d.name) + "_text"] || a[d == null ? void 0 : d.name] || "Немає даних"), 1)
1729
1729
  ], 64))
1730
1730
  ], 64))
@@ -1790,10 +1790,10 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1790
1790
  const a = f(g, t.id_key);
1791
1791
  return `${t.path}?id=${a}`;
1792
1792
  };
1793
- return (g, a) => (m(), x("div", pi, [
1794
- (m(!0), x(q, null, J(n.value, (v) => {
1793
+ return (g, a) => (m(), b("div", pi, [
1794
+ (m(!0), b(q, null, J(n.value, (v) => {
1795
1795
  var y, d;
1796
- return m(), x("div", {
1796
+ return m(), b("div", {
1797
1797
  key: v.id,
1798
1798
  class: "border-b border-slate-200 hover:bg-slate-50 transition-colors"
1799
1799
  }, [
@@ -1809,37 +1809,37 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1809
1809
  "w-full h-full flex items-center": !Array.isArray(o.value) || !o.value.length
1810
1810
  }])
1811
1811
  }, B(v[`${(y = r.value) == null ? void 0 : y.name}_text`] || v[(d = r.value) == null ? void 0 : d.name] || v[Object.keys(v)[0]] || "Не вказано"), 3),
1812
- Array.isArray(l.value) && l.value.length ? (m(!0), x(q, { key: 0 }, J(l.value, (p) => (m(), x(q, {
1812
+ Array.isArray(l.value) && l.value.length ? (m(!0), b(q, { key: 0 }, J(l.value, (p) => (m(), b(q, {
1813
1813
  key: p.name
1814
1814
  }, [
1815
- v[p.name] ? (m(), x("div", yi, B(v[`${p.name}_text`] || v[p.name]), 1)) : H("", !0)
1815
+ v[p.name] ? (m(), b("div", yi, B(v[`${p.name}_text`] || v[p.name]), 1)) : H("", !0)
1816
1816
  ], 64))), 128)) : H("", !0),
1817
- Array.isArray(o.value) && o.value.length ? (m(), x("div", xi, [
1818
- (m(!0), x(q, null, J(o.value, (p) => (m(), x("div", {
1817
+ Array.isArray(o.value) && o.value.length ? (m(), b("div", xi, [
1818
+ (m(!0), b(q, null, J(o.value, (p) => (m(), b("div", {
1819
1819
  key: p.name,
1820
1820
  class: "flex flex-wrap gap-1 mt-1"
1821
1821
  }, [
1822
- v[p.name] ? (m(), x("span", bi, B(v[`${p.name}_text`] || v[p.name]), 1)) : H("", !0)
1822
+ v[p.name] ? (m(), b("span", bi, B(v[`${p.name}_text`] || v[p.name]), 1)) : H("", !0)
1823
1823
  ]))), 128))
1824
1824
  ])) : H("", !0)
1825
1825
  ]),
1826
1826
  s("div", _i, [
1827
1827
  s("div", wi, [
1828
- (m(!0), x(q, null, J(i.value, (p) => {
1829
- var b;
1830
- return m(), x("div", {
1828
+ (m(!0), b(q, null, J(i.value, (p) => {
1829
+ var x;
1830
+ return m(), b("div", {
1831
1831
  key: p.name
1832
1832
  }, [
1833
1833
  s("p", ki, B(p.ua), 1),
1834
1834
  s("p", $i, [
1835
- Array.isArray(v[p == null ? void 0 : p.name]) ? (m(!0), x(q, { key: 0 }, J(v[p == null ? void 0 : p.name], (S, _) => (m(), x("span", {
1835
+ Array.isArray(v[p == null ? void 0 : p.name]) ? (m(!0), b(q, { key: 0 }, J(v[p == null ? void 0 : p.name], (S, _) => (m(), b("span", {
1836
1836
  key: _,
1837
1837
  class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
1838
- }, B(S), 1))), 128)) : (m(), x(q, { key: 1 }, [
1839
- p.type === "date" ? (m(), x(q, { key: 0 }, [
1838
+ }, B(S), 1))), 128)) : (m(), b(q, { key: 1 }, [
1839
+ p.type === "date" ? (m(), b(q, { key: 0 }, [
1840
1840
  se(B(le(bt)(v[p == null ? void 0 : p.name]) || "Немає даних"), 1)
1841
- ], 64)) : (m(), x(q, { key: 1 }, [
1842
- se(B(((b = v[(p == null ? void 0 : p.name) + "_data"]) == null ? void 0 : b.text) || v[(p == null ? void 0 : p.name) + "_text"] || v[p == null ? void 0 : p.name] || "Немає даних"), 1)
1841
+ ], 64)) : (m(), b(q, { key: 1 }, [
1842
+ se(B(((x = v[(p == null ? void 0 : p.name) + "_data"]) == null ? void 0 : x.text) || v[(p == null ? void 0 : p.name) + "_text"] || v[p == null ? void 0 : p.name] || "Немає даних"), 1)
1843
1843
  ], 64))
1844
1844
  ], 64))
1845
1845
  ])
@@ -1902,9 +1902,9 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1902
1902
  const g = u(c, t.id_key);
1903
1903
  return `${t.path}?id=${g}`;
1904
1904
  };
1905
- return (c, g) => (m(!0), x(q, null, J(n.value, (a) => {
1905
+ return (c, g) => (m(!0), b(q, null, J(n.value, (a) => {
1906
1906
  var v, y;
1907
- return m(), x("div", {
1907
+ return m(), b("div", {
1908
1908
  key: a.id,
1909
1909
  class: "rounded-lg border bg-card text-card-foreground shadow-sm border-l-4 border-l-blue-600",
1910
1910
  "data-v0-t": "card"
@@ -1912,37 +1912,37 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1912
1912
  s("div", Li, [
1913
1913
  s("div", Si, [
1914
1914
  s("h3", Ei, B(a[`${(v = r.value) == null ? void 0 : v.name}_text`] || a[(y = r.value) == null ? void 0 : y.name] || Object.keys(a)[0] || "Не вказано"), 1),
1915
- Array.isArray(l.value) && l.value.length ? (m(!0), x(q, { key: 0 }, J(l.value, (d) => (m(), x(q, {
1915
+ Array.isArray(l.value) && l.value.length ? (m(!0), b(q, { key: 0 }, J(l.value, (d) => (m(), b(q, {
1916
1916
  key: d.name
1917
1917
  }, [
1918
- a[d.name] ? (m(), x("div", Fi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1918
+ a[d.name] ? (m(), b("div", Fi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1919
1919
  ], 64))), 128)) : H("", !0),
1920
- Array.isArray(o.value) && o.value.length ? (m(), x("div", Ii, [
1921
- (m(!0), x(q, null, J(o.value, (d) => (m(), x("div", {
1920
+ Array.isArray(o.value) && o.value.length ? (m(), b("div", Ii, [
1921
+ (m(!0), b(q, null, J(o.value, (d) => (m(), b("div", {
1922
1922
  key: d.name,
1923
1923
  class: "flex flex-wrap gap-1 ml-2"
1924
1924
  }, [
1925
- a[d.name] ? (m(), x("span", Mi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1925
+ a[d.name] ? (m(), b("span", Mi, B(a[`${d.name}_text`] || a[d.name]), 1)) : H("", !0)
1926
1926
  ]))), 128))
1927
1927
  ])) : H("", !0)
1928
1928
  ])
1929
1929
  ]),
1930
1930
  s("div", Ti, [
1931
1931
  s("div", ji, [
1932
- (m(!0), x(q, null, J(i.value, (d) => {
1932
+ (m(!0), b(q, null, J(i.value, (d) => {
1933
1933
  var p;
1934
- return m(), x("div", {
1934
+ return m(), b("div", {
1935
1935
  key: d.name
1936
1936
  }, [
1937
1937
  s("p", Oi, B(d.ua), 1),
1938
1938
  s("p", Ni, [
1939
- Array.isArray(a[d == null ? void 0 : d.name]) ? (m(!0), x(q, { key: 0 }, J(a[d == null ? void 0 : d.name], (b, S) => (m(), x("span", {
1939
+ Array.isArray(a[d == null ? void 0 : d.name]) ? (m(!0), b(q, { key: 0 }, J(a[d == null ? void 0 : d.name], (x, S) => (m(), b("span", {
1940
1940
  key: S,
1941
1941
  class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
1942
- }, B(b), 1))), 128)) : (m(), x(q, { key: 1 }, [
1943
- d.type === "date" ? (m(), x(q, { key: 0 }, [
1942
+ }, B(x), 1))), 128)) : (m(), b(q, { key: 1 }, [
1943
+ d.type === "date" ? (m(), b(q, { key: 0 }, [
1944
1944
  se(B(le(bt)(a[d == null ? void 0 : d.name]) || "Немає даних"), 1)
1945
- ], 64)) : (m(), x(q, { key: 1 }, [
1945
+ ], 64)) : (m(), b(q, { key: 1 }, [
1946
1946
  se(B(((p = a[(d == null ? void 0 : d.name) + "_data"]) == null ? void 0 : p.text) || a[(d == null ? void 0 : d.name) + "_text"] || a[d == null ? void 0 : d.name] || "Немає даних"), 1)
1947
1947
  ], 64))
1948
1948
  ], 64))
@@ -1992,21 +1992,21 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
1992
1992
  const v = c(a, t.id_key);
1993
1993
  return `${t.path}?id=${v}`;
1994
1994
  };
1995
- return (a, v) => (m(!0), x(q, null, J(n.value, (y) => {
1996
- var d, p, b, S, _;
1997
- return m(), x("div", {
1995
+ return (a, v) => (m(!0), b(q, null, J(n.value, (y) => {
1996
+ var d, p, x, S, _;
1997
+ return m(), b("div", {
1998
1998
  key: y.id,
1999
1999
  class: "bg-white border border-gray-200 rounded-lg overflow-hidden transition-all duration-200 hover:shadow-md"
2000
2000
  }, [
2001
2001
  s("div", Di, [
2002
- u.value ? (m(), x("div", Bi, [
2003
- y[(d = u.value) == null ? void 0 : d.name] ? (m(), x("img", {
2002
+ u.value ? (m(), b("div", Bi, [
2003
+ y[(d = u.value) == null ? void 0 : d.name] ? (m(), b("img", {
2004
2004
  key: 0,
2005
2005
  src: y[(p = u.value) == null ? void 0 : p.name],
2006
2006
  alt: "image",
2007
2007
  class: "object-cover h-full"
2008
2008
  }, null, 8, Vi)) : H("", !0)
2009
- ])) : (m(), x("div", Ui, [...v[0] || (v[0] = [
2009
+ ])) : (m(), b("div", Ui, [...v[0] || (v[0] = [
2010
2010
  s("div", {
2011
2011
  class: "w-3 h-12 rounded-sm bg-blue-500",
2012
2012
  title: "Пріоритет: Високий",
@@ -2015,35 +2015,35 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2015
2015
  ])])),
2016
2016
  s("div", qi, [
2017
2017
  s("div", Yi, [
2018
- s("h3", Hi, B(y[`${(b = r.value) == null ? void 0 : b.name}_text`] || y[(S = r.value) == null ? void 0 : S.name] || Object.keys(y)[0] || "Не вказано"), 1),
2019
- Array.isArray(l.value) && l.value.length ? (m(!0), x(q, { key: 0 }, J(l.value, (k) => (m(), x(q, {
2018
+ s("h3", Hi, B(y[`${(x = r.value) == null ? void 0 : x.name}_text`] || y[(S = r.value) == null ? void 0 : S.name] || Object.keys(y)[0] || "Не вказано"), 1),
2019
+ Array.isArray(l.value) && l.value.length ? (m(!0), b(q, { key: 0 }, J(l.value, (k) => (m(), b(q, {
2020
2020
  key: k.name
2021
2021
  }, [
2022
- y[k.name] ? (m(), x("div", Wi, B(y[`${k.name}_text`] || y[k.name]), 1)) : H("", !0)
2022
+ y[k.name] ? (m(), b("div", Wi, B(y[`${k.name}_text`] || y[k.name]), 1)) : H("", !0)
2023
2023
  ], 64))), 128)) : H("", !0)
2024
2024
  ]),
2025
2025
  s("p", Ki, B(y[(_ = f.value) == null ? void 0 : _.name]), 1),
2026
2026
  s("div", Zi, [
2027
- (m(!0), x(q, null, J(i.value, (k) => {
2027
+ (m(!0), b(q, null, J(i.value, (k) => {
2028
2028
  var F;
2029
- return m(), x("div", {
2029
+ return m(), b("div", {
2030
2030
  key: k.name,
2031
2031
  class: "flex items-center"
2032
2032
  }, [
2033
2033
  s("span", Gi, B((k == null ? void 0 : k.ua) || k.label || k.name) + ":", 1),
2034
- k.icon ? (m(), x("span", {
2034
+ k.icon ? (m(), b("span", {
2035
2035
  key: 0,
2036
2036
  class: "mr-1 flex-shrink-0",
2037
2037
  innerHTML: k.icon
2038
2038
  }, null, 8, Xi)) : H("", !0),
2039
2039
  s("span", Qi, [
2040
- Array.isArray(y[k == null ? void 0 : k.name]) ? (m(!0), x(q, { key: 0 }, J(y[k == null ? void 0 : k.name], (M, h) => (m(), x("span", {
2040
+ Array.isArray(y[k == null ? void 0 : k.name]) ? (m(!0), b(q, { key: 0 }, J(y[k == null ? void 0 : k.name], (M, h) => (m(), b("span", {
2041
2041
  key: h,
2042
2042
  class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
2043
- }, B(M), 1))), 128)) : (m(), x(q, { key: 1 }, [
2044
- k.type === "date" ? (m(), x(q, { key: 0 }, [
2043
+ }, B(M), 1))), 128)) : (m(), b(q, { key: 1 }, [
2044
+ k.type === "date" ? (m(), b(q, { key: 0 }, [
2045
2045
  se(B(le(bt)(y[k == null ? void 0 : k.name]) || "Немає даних"), 1)
2046
- ], 64)) : (m(), x(q, { key: 1 }, [
2046
+ ], 64)) : (m(), b(q, { key: 1 }, [
2047
2047
  se(B(((F = y[(k == null ? void 0 : k.name) + "_data"]) == null ? void 0 : F.text) || y[k == null ? void 0 : k.name] || "Немає даних"), 1)
2048
2048
  ], 64))
2049
2049
  ], 64))
@@ -2054,12 +2054,12 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2054
2054
  ]),
2055
2055
  s("div", Ji, [
2056
2056
  s("p", es, " Теги: " + B(o.value.length && y[o.value[0].name] ? "" : "відсутні"), 1),
2057
- Array.isArray(o.value) && o.value.length ? (m(), x("div", ts, [
2058
- (m(!0), x(q, null, J(o.value, (k) => (m(), x("div", {
2057
+ Array.isArray(o.value) && o.value.length ? (m(), b("div", ts, [
2058
+ (m(!0), b(q, null, J(o.value, (k) => (m(), b("div", {
2059
2059
  key: k.name,
2060
2060
  class: "flex flex-wrap gap-1"
2061
2061
  }, [
2062
- y[k.name] ? (m(), x("span", ns, B(y[`${k.name}_text`] || y[k.name]), 1)) : H("", !0)
2062
+ y[k.name] ? (m(), b("span", ns, B(y[`${k.name}_text`] || y[k.name]), 1)) : H("", !0)
2063
2063
  ]))), 128))
2064
2064
  ])) : H("", !0)
2065
2065
  ]),
@@ -2123,7 +2123,7 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2123
2123
  const a = r.find((y) => y.id === g);
2124
2124
  return (a == null ? void 0 : a.text) || g;
2125
2125
  }), c = N(() => (Array.isArray(n.value.tableData) ? n.value.tableData : []).slice(0, 5));
2126
- return (g, a) => (m(), x("div", ss, [
2126
+ return (g, a) => (m(), b("div", ss, [
2127
2127
  s("div", as, [
2128
2128
  (m(), Q(le(t), {
2129
2129
  key: n.value.id,
@@ -2139,7 +2139,7 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2139
2139
  path: "#",
2140
2140
  id_key: "id",
2141
2141
  key: i.value
2142
- }, null, 8, ["items", "columns"])) : c.value.length ? (m(), x("div", ds, " Додайте колонки та виберіть вигляд для перегляду ")) : (m(), x("div", cs, " Немає даних для превʼю "))
2142
+ }, null, 8, ["items", "columns"])) : c.value.length ? (m(), b("div", ds, " Додайте колонки та виберіть вигляд для перегляду ")) : (m(), b("div", cs, " Немає даних для превʼю "))
2143
2143
  ]));
2144
2144
  }
2145
2145
  }), ps = { class: "relative min-h-svh flex-1 flex-col flex gap-4 bg-white p-8 overflow-y-auto" }, vs = { class: "max-w-6xl mx-auto" }, ms = { class: "flex items-center justify-between mb-6" }, gs = { class: "flex items-center gap-2" }, hs = ["href"], ys = { class: "w-full" }, xs = { class: "flex items-center w-full h-10 max-w-md grid-cols-3 p-1 mb-6 bg-white border border-gray-200 rounded-md text-muted-foreground" }, bs = ["onClick"], wv = /* @__PURE__ */ ne({
@@ -2189,22 +2189,22 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2189
2189
  }
2190
2190
  }, a = async (y) => {
2191
2191
  try {
2192
- const p = await (await fetch(`/api/gis-registry/${y}`)).json(), b = Array.isArray(p == null ? void 0 : p.rows) ? p.rows : [];
2193
- f.value.tableData = b.slice(0, 3);
2192
+ const p = await (await fetch(`/api/gis-registry/${y}`)).json(), x = Array.isArray(p == null ? void 0 : p.rows) ? p.rows : [];
2193
+ f.value.tableData = x.slice(0, 3);
2194
2194
  } catch (d) {
2195
2195
  console.error("Помилка завантаження превʼю:", d);
2196
2196
  }
2197
2197
  }, v = async () => {
2198
2198
  var y, d;
2199
2199
  try {
2200
- const b = await (await fetch(`/api/data/gis.registers.table/${t.params.id}`)).json(), S = ((y = b == null ? void 0 : b.rows) == null ? void 0 : y[0]) || {};
2200
+ const x = await (await fetch(`/api/data/gis.registers.table/${t.params.id}`)).json(), S = ((y = x == null ? void 0 : x.rows) == null ? void 0 : y[0]) || {};
2201
2201
  l.value = S.register_key || "", f.value = {
2202
2202
  ...S,
2203
2203
  columns: Array.isArray(S.columns) ? S.columns : [],
2204
2204
  filters: Array.isArray(S.filters) ? S.filters : [],
2205
2205
  card: Array.isArray(S.card) ? S.card : [],
2206
2206
  tableData: Array.isArray(S.tableData) ? S.tableData : []
2207
- }, (d = b == null ? void 0 : b.tokens) != null && d.edit && (f.value.token = b.tokens.edit), c.value = Array.isArray(b == null ? void 0 : b.fields) ? b.fields : [];
2207
+ }, (d = x == null ? void 0 : x.tokens) != null && d.edit && (f.value.token = x.tokens.edit), c.value = Array.isArray(x == null ? void 0 : x.fields) ? x.fields : [];
2208
2208
  } catch (p) {
2209
2209
  console.error("Помилка завантаження даних:", p);
2210
2210
  }
@@ -2221,7 +2221,7 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2221
2221
  (y) => {
2222
2222
  typeof y == "string" && u.includes(y) && r.value !== y && (r.value = y);
2223
2223
  }
2224
- ), (y, d) => (m(), x("main", ps, [
2224
+ ), (y, d) => (m(), b("main", ps, [
2225
2225
  s("div", null, [
2226
2226
  s("div", vs, [
2227
2227
  s("div", ms, [
@@ -2242,9 +2242,9 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2242
2242
  ]),
2243
2243
  s("div", ys, [
2244
2244
  s("div", xs, [
2245
- (m(), x(q, null, J(o, (p) => s("button", {
2245
+ (m(), b(q, null, J(o, (p) => s("button", {
2246
2246
  key: p.id,
2247
- onClick: (b) => r.value = p.id,
2247
+ onClick: (x) => r.value = p.id,
2248
2248
  class: pe(["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm data-[state=active]:bg-blue-50 data-[state=active]:text-blue-700 data-[state=active]:border-blue-200", p.id === r.value ? "bg-blue-50 text-blue-700 border-blue-200" : ""])
2249
2249
  }, B(p.name), 11, bs)), 64))
2250
2250
  ])
@@ -2272,7 +2272,7 @@ const Dl = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Bl = {
2272
2272
  class: "lucide lucide-settings"
2273
2273
  };
2274
2274
  function ks(e, t) {
2275
- return m(), x("svg", ws, [...t[0] || (t[0] = [
2275
+ return m(), b("svg", ws, [...t[0] || (t[0] = [
2276
2276
  s("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }, null, -1),
2277
2277
  s("circle", {
2278
2278
  cx: "12",
@@ -2294,7 +2294,7 @@ const $s = /* @__PURE__ */ ie(_s, [["render", ks]]), Cs = {}, As = {
2294
2294
  class: "lucide lucide-layers"
2295
2295
  };
2296
2296
  function Ls(e, t) {
2297
- return m(), x("svg", As, [...t[0] || (t[0] = [
2297
+ return m(), b("svg", As, [...t[0] || (t[0] = [
2298
2298
  s("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }, null, -1),
2299
2299
  s("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }, null, -1),
2300
2300
  s("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" }, null, -1)
@@ -2313,7 +2313,7 @@ const Ss = /* @__PURE__ */ ie(Cs, [["render", Ls]]), Es = {}, Fs = {
2313
2313
  class: "lucide lucide-eye"
2314
2314
  };
2315
2315
  function Is(e, t) {
2316
- return m(), x("svg", Fs, [...t[0] || (t[0] = [
2316
+ return m(), b("svg", Fs, [...t[0] || (t[0] = [
2317
2317
  s("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }, null, -1),
2318
2318
  s("circle", {
2319
2319
  cx: "12",
@@ -2335,7 +2335,7 @@ const Ms = /* @__PURE__ */ ie(Es, [["render", Is]]), Ts = {}, js = {
2335
2335
  class: "lucide lucide-map"
2336
2336
  };
2337
2337
  function Os(e, t) {
2338
- return m(), x("svg", js, [...t[0] || (t[0] = [
2338
+ return m(), b("svg", js, [...t[0] || (t[0] = [
2339
2339
  s("path", { d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" }, null, -1),
2340
2340
  s("path", { d: "M15 5.764v15" }, null, -1),
2341
2341
  s("path", { d: "M9 3.236v15" }, null, -1)
@@ -2354,7 +2354,7 @@ const Ns = /* @__PURE__ */ ie(Ts, [["render", Os]]), Ps = {}, zs = {
2354
2354
  class: "lucide lucide-filter"
2355
2355
  };
2356
2356
  function Rs(e, t) {
2357
- return m(), x("svg", zs, [...t[0] || (t[0] = [
2357
+ return m(), b("svg", zs, [...t[0] || (t[0] = [
2358
2358
  s("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1)
2359
2359
  ])]);
2360
2360
  }
@@ -2375,15 +2375,15 @@ const Ds = /* @__PURE__ */ ie(Ps, [["render", Rs]]), Pn = /* @__PURE__ */ ne({
2375
2375
  if (window.monaco)
2376
2376
  return i = window.monaco, g(i);
2377
2377
  const v = (d) => {
2378
- if ([...document.styleSheets].some((b) => {
2378
+ if ([...document.styleSheets].some((x) => {
2379
2379
  var S;
2380
- return (S = b == null ? void 0 : b.href) == null ? void 0 : S.includes(d);
2380
+ return (S = x == null ? void 0 : x.href) == null ? void 0 : S.includes(d);
2381
2381
  })) return;
2382
2382
  const p = document.createElement("link");
2383
2383
  p.rel = "stylesheet", p.href = d, document.head.appendChild(p);
2384
- }, y = (d) => new Promise((p, b) => {
2384
+ }, y = (d) => new Promise((p, x) => {
2385
2385
  const S = document.createElement("script");
2386
- S.src = d, S.onload = () => p(!0), S.onerror = b, document.body.appendChild(S);
2386
+ S.src = d, S.onload = () => p(!0), S.onerror = x, document.body.appendChild(S);
2387
2387
  });
2388
2388
  v("https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs/editor/editor.main.min.css"), y("https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.52.0/min/vs/loader.min.js").then(() => {
2389
2389
  window.require.config({
@@ -2420,7 +2420,7 @@ const Ds = /* @__PURE__ */ ie(Ps, [["render", Rs]]), Pn = /* @__PURE__ */ ne({
2420
2420
  await f(), c();
2421
2421
  }), fe(() => {
2422
2422
  o && o.dispose();
2423
- }), (g, a) => (m(), x("div", {
2423
+ }), (g, a) => (m(), b("div", {
2424
2424
  ref_key: "editorContainer",
2425
2425
  ref: l,
2426
2426
  class: "w-full h-full"
@@ -3189,7 +3189,7 @@ function mu(e, t) {
3189
3189
  X(e, "unexpected end of the stream within a double quoted scalar");
3190
3190
  }
3191
3191
  function gu(e, t) {
3192
- var n = !0, r, l, o, i = e.tag, u, f = e.anchor, c, g, a, v, y, d = /* @__PURE__ */ Object.create(null), p, b, S, _;
3192
+ var n = !0, r, l, o, i = e.tag, u, f = e.anchor, c, g, a, v, y, d = /* @__PURE__ */ Object.create(null), p, x, S, _;
3193
3193
  if (_ = e.input.charCodeAt(e.position), _ === 91)
3194
3194
  g = 93, y = !1, u = [];
3195
3195
  else if (_ === 123)
@@ -3199,7 +3199,7 @@ function gu(e, t) {
3199
3199
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), _ = e.input.charCodeAt(++e.position); _ !== 0; ) {
3200
3200
  if (me(e, !0, t), _ = e.input.charCodeAt(e.position), _ === g)
3201
3201
  return e.position++, e.tag = i, e.anchor = f, e.kind = y ? "mapping" : "sequence", e.result = u, !0;
3202
- n ? _ === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), b = p = S = null, a = v = !1, _ === 63 && (c = e.input.charCodeAt(e.position + 1), Ce(c) && (a = v = !0, e.position++, me(e, !0, t))), r = e.line, l = e.lineStart, o = e.position, it(e, t, $t, !1, !0), b = e.tag, p = e.result, me(e, !0, t), _ = e.input.charCodeAt(e.position), (v || e.line === r) && _ === 58 && (a = !0, _ = e.input.charCodeAt(++e.position), me(e, !0, t), it(e, t, $t, !1, !0), S = e.result), y ? rt(e, u, d, b, p, S, r, l, o) : a ? u.push(rt(e, null, d, b, p, S, r, l, o)) : u.push(p), me(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
3202
+ n ? _ === 44 && X(e, "expected the node content, but found ','") : X(e, "missed comma between flow collection entries"), x = p = S = null, a = v = !1, _ === 63 && (c = e.input.charCodeAt(e.position + 1), Ce(c) && (a = v = !0, e.position++, me(e, !0, t))), r = e.line, l = e.lineStart, o = e.position, it(e, t, $t, !1, !0), x = e.tag, p = e.result, me(e, !0, t), _ = e.input.charCodeAt(e.position), (v || e.line === r) && _ === 58 && (a = !0, _ = e.input.charCodeAt(++e.position), me(e, !0, t), it(e, t, $t, !1, !0), S = e.result), y ? rt(e, u, d, x, p, S, r, l, o) : a ? u.push(rt(e, null, d, x, p, S, r, l, o)) : u.push(p), me(e, !0, t), _ = e.input.charCodeAt(e.position), _ === 44 ? (n = !0, _ = e.input.charCodeAt(++e.position)) : n = !1;
3203
3203
  }
3204
3204
  X(e, "unexpected end of the stream within a flow collection");
3205
3205
  }
@@ -3266,11 +3266,11 @@ function vn(e, t) {
3266
3266
  return u ? (e.tag = r, e.anchor = l, e.kind = "sequence", e.result = o, !0) : !1;
3267
3267
  }
3268
3268
  function yu(e, t, n) {
3269
- var r, l, o, i, u, f, c = e.tag, g = e.anchor, a = {}, v = /* @__PURE__ */ Object.create(null), y = null, d = null, p = null, b = !1, S = !1, _;
3269
+ var r, l, o, i, u, f, c = e.tag, g = e.anchor, a = {}, v = /* @__PURE__ */ Object.create(null), y = null, d = null, p = null, x = !1, S = !1, _;
3270
3270
  if (e.firstTabInLine !== -1) return !1;
3271
3271
  for (e.anchor !== null && (e.anchorMap[e.anchor] = a), _ = e.input.charCodeAt(e.position); _ !== 0; ) {
3272
- if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (_ === 63 || _ === 58) && Ce(r))
3273
- _ === 63 ? (b && (rt(e, a, v, y, d, null, i, u, f), y = d = p = null), S = !0, b = !0, l = !0) : b ? (b = !1, l = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = r;
3272
+ if (!x && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, X(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (_ === 63 || _ === 58) && Ce(r))
3273
+ _ === 63 ? (x && (rt(e, a, v, y, d, null, i, u, f), y = d = p = null), S = !0, x = !0, l = !0) : x ? (x = !1, l = !0) : X(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, _ = r;
3274
3274
  else {
3275
3275
  if (i = e.line, u = e.lineStart, f = e.position, !it(e, n, Un, !1, !0))
3276
3276
  break;
@@ -3278,7 +3278,7 @@ function yu(e, t, n) {
3278
3278
  for (_ = e.input.charCodeAt(e.position); Ze(_); )
3279
3279
  _ = e.input.charCodeAt(++e.position);
3280
3280
  if (_ === 58)
3281
- _ = e.input.charCodeAt(++e.position), Ce(_) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (rt(e, a, v, y, d, null, i, u, f), y = d = p = null), S = !0, b = !1, l = !1, y = e.tag, d = e.result;
3281
+ _ = e.input.charCodeAt(++e.position), Ce(_) || X(e, "a whitespace character is expected after the key-value separator within a block mapping"), x && (rt(e, a, v, y, d, null, i, u, f), y = d = p = null), S = !0, x = !1, l = !1, y = e.tag, d = e.result;
3282
3282
  else if (S)
3283
3283
  X(e, "can not read an implicit mapping pair; a colon is missed");
3284
3284
  else
@@ -3288,12 +3288,12 @@ function yu(e, t, n) {
3288
3288
  else
3289
3289
  return e.tag = c, e.anchor = g, !0;
3290
3290
  }
3291
- if ((e.line === o || e.lineIndent > t) && (b && (i = e.line, u = e.lineStart, f = e.position), it(e, t, Ct, !0, l) && (b ? d = e.result : p = e.result), b || (rt(e, a, v, y, d, p, i, u, f), y = d = p = null), me(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && _ !== 0)
3291
+ if ((e.line === o || e.lineIndent > t) && (x && (i = e.line, u = e.lineStart, f = e.position), it(e, t, Ct, !0, l) && (x ? d = e.result : p = e.result), x || (rt(e, a, v, y, d, p, i, u, f), y = d = p = null), me(e, !0, -1), _ = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && _ !== 0)
3292
3292
  X(e, "bad indentation of a mapping entry");
3293
3293
  else if (e.lineIndent < t)
3294
3294
  break;
3295
3295
  }
3296
- return b && rt(e, a, v, y, d, null, i, u, f), S && (e.tag = c, e.anchor = g, e.kind = "mapping", e.result = a), S;
3296
+ return x && rt(e, a, v, y, d, null, i, u, f), S && (e.tag = c, e.anchor = g, e.kind = "mapping", e.result = a), S;
3297
3297
  }
3298
3298
  function xu(e) {
3299
3299
  var t, n = !1, r = !1, l, o, i;
@@ -3331,11 +3331,11 @@ function _u(e) {
3331
3331
  return e.position === t && X(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), We.call(e.anchorMap, n) || X(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], me(e, !0, -1), !0;
3332
3332
  }
3333
3333
  function it(e, t, n, r, l) {
3334
- var o, i, u, f = 1, c = !1, g = !1, a, v, y, d, p, b;
3334
+ var o, i, u, f = 1, c = !1, g = !1, a, v, y, d, p, x;
3335
3335
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = u = Ct === n || qn === n, r && me(e, !0, -1) && (c = !0, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)), f === 1)
3336
3336
  for (; xu(e) || bu(e); )
3337
3337
  me(e, !0, -1) ? (c = !0, u = o, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)) : u = !1;
3338
- if (u && (u = c || l), (f === 1 || Ct === n) && ($t === n || Un === n ? p = t : p = t + 1, b = e.position - e.lineStart, f === 1 ? u && (vn(e, b) || yu(e, b, p)) || gu(e, p) ? g = !0 : (i && hu(e, p) || vu(e, p) || mu(e, p) ? g = !0 : _u(e) ? (g = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : pu(e, p, $t === n) && (g = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : f === 0 && (g = u && vn(e, b))), e.tag === null)
3338
+ if (u && (u = c || l), (f === 1 || Ct === n) && ($t === n || Un === n ? p = t : p = t + 1, x = e.position - e.lineStart, f === 1 ? u && (vn(e, x) || yu(e, x, p)) || gu(e, p) ? g = !0 : (i && hu(e, p) || vu(e, p) || mu(e, p) ? g = !0 : _u(e) ? (g = !0, (e.tag !== null || e.anchor !== null) && X(e, "alias node should not have any properties")) : pu(e, p, $t === n) && (g = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : f === 0 && (g = u && vn(e, x))), e.tag === null)
3339
3339
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
3340
3340
  else if (e.tag === "?") {
3341
3341
  for (e.result !== null && e.kind !== "scalar" && X(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), a = 0, v = e.implicitTypes.length; a < v; a += 1)
@@ -3739,7 +3739,7 @@ const cc = { class: "flex flex-col flex-1 overflow-hidden" }, dc = { class: "fle
3739
3739
  if ((c = a == null ? void 0 : a.colorAttr) != null && c.length && ((g = n.styleYaml) == null ? void 0 : g.colorAttr) !== a.colorAttr) {
3740
3740
  const v = await o(a.colorAttr);
3741
3741
  a.colors = v.reduce(
3742
- (d, p, b) => ({ ...d, [p.id.toString()]: i[b] }),
3742
+ (d, p, x) => ({ ...d, [p.id.toString()]: i[x] }),
3743
3743
  {}
3744
3744
  );
3745
3745
  const y = kn(a);
@@ -3774,7 +3774,7 @@ const cc = { class: "flex flex-col flex-1 overflow-hidden" }, dc = { class: "fle
3774
3774
  xe({ type: "error", title: "Помилка", message: "Не вдалося зберегти стилі" }), console.log(f);
3775
3775
  }
3776
3776
  };
3777
- return (f, c) => (m(), x("div", cc, [
3777
+ return (f, c) => (m(), b("div", cc, [
3778
3778
  s("div", dc, [
3779
3779
  s("button", fc, [
3780
3780
  s("a", {
@@ -3885,11 +3885,11 @@ function yc(e) {
3885
3885
  on: (a, v, y) => {
3886
3886
  var d, p;
3887
3887
  return typeof v == "string" ? ((d = t.value) == null || d.on(a, v, y), () => {
3888
- var b;
3889
- return (b = t.value) == null ? void 0 : b.off(a, v, y);
3888
+ var x;
3889
+ return (x = t.value) == null ? void 0 : x.off(a, v, y);
3890
3890
  }) : ((p = t.value) == null || p.on(a, v), () => {
3891
- var b;
3892
- return (b = t.value) == null ? void 0 : b.off(a, v);
3891
+ var x;
3892
+ return (x = t.value) == null ? void 0 : x.off(a, v);
3893
3893
  });
3894
3894
  },
3895
3895
  off: (a, v, y) => {
@@ -4196,11 +4196,11 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4196
4196
  }
4197
4197
  function a() {
4198
4198
  var S;
4199
- const d = [...l.value], p = ((S = n.fields) == null ? void 0 : S.filter((_) => u.value.includes(_.name))) || [], b = ut(d, p, {
4199
+ const d = [...l.value], p = ((S = n.fields) == null ? void 0 : S.filter((_) => u.value.includes(_.name))) || [], x = ut(d, p, {
4200
4200
  selectedKeys: u.value,
4201
4201
  resolveKey: (_) => He(_)
4202
4202
  });
4203
- l.value = b, i.value = !1, u.value = [];
4203
+ l.value = x, i.value = !1, u.value = [];
4204
4204
  }
4205
4205
  function v() {
4206
4206
  i.value = !1, u.value = [];
@@ -4209,7 +4209,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4209
4209
  let d = [];
4210
4210
  o.value === "all" ? d = n.fields || [] : o.value === "none" ? d = [] : d = l.value, d.filter((p) => !p.label).forEach((p) => p.label = p.ua), r("save", d);
4211
4211
  }
4212
- return (d, p) => (m(), x("div", $c, [
4212
+ return (d, p) => (m(), b("div", $c, [
4213
4213
  s("div", { class: "flex justify-between mb-3 gap-2" }, [
4214
4214
  s("button", {
4215
4215
  onClick: g,
@@ -4224,7 +4224,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4224
4224
  o.value === "list" ? (m(), Q(Je, {
4225
4225
  key: 0,
4226
4226
  modelValue: l.value,
4227
- "onUpdate:modelValue": p[0] || (p[0] = (b) => l.value = b),
4227
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => l.value = x),
4228
4228
  "columns-scheme": f,
4229
4229
  "form-scheme": c,
4230
4230
  "main-col-width": "250px",
@@ -4233,9 +4233,9 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4233
4233
  ]),
4234
4234
  re(at, {
4235
4235
  visible: i.value,
4236
- "onUpdate:visible": p[1] || (p[1] = (b) => i.value = b),
4236
+ "onUpdate:visible": p[1] || (p[1] = (x) => i.value = x),
4237
4237
  selection: u.value,
4238
- "onUpdate:selection": p[2] || (p[2] = (b) => u.value = b),
4238
+ "onUpdate:selection": p[2] || (p[2] = (x) => u.value = x),
4239
4239
  fields: e.fields,
4240
4240
  title: "Імпорт полів",
4241
4241
  "id-prefix": "import-popup",
@@ -4307,10 +4307,10 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4307
4307
  function y() {
4308
4308
  r("save", l.value);
4309
4309
  }
4310
- return (d, p) => (m(), x("div", Lc, [
4310
+ return (d, p) => (m(), b("div", Lc, [
4311
4311
  s("div", Sc, [
4312
4312
  s("button", {
4313
- onClick: p[0] || (p[0] = (b) => o.value = !0),
4313
+ onClick: p[0] || (p[0] = (x) => o.value = !0),
4314
4314
  class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium bg-gradient-to-r from-gray-500 to-gray-400 text-white h-9 px-4 py-2 hover:from-gray-600 hover:to-gray-500"
4315
4315
  }, " Додати "),
4316
4316
  s("button", {
@@ -4320,7 +4320,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4320
4320
  ]),
4321
4321
  re(Je, {
4322
4322
  modelValue: l.value,
4323
- "onUpdate:modelValue": p[1] || (p[1] = (b) => l.value = b),
4323
+ "onUpdate:modelValue": p[1] || (p[1] = (x) => l.value = x),
4324
4324
  "columns-scheme": f,
4325
4325
  "form-scheme": c,
4326
4326
  "main-col-width": "250px",
@@ -4336,7 +4336,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4336
4336
  s("button", {
4337
4337
  type: "button",
4338
4338
  class: "px-4 py-2 rounded bg-gray-100 text-gray-700",
4339
- onClick: p[5] || (p[5] = (b) => g(!1))
4339
+ onClick: p[5] || (p[5] = (x) => g(!1))
4340
4340
  }, " Скасувати "),
4341
4341
  s("button", {
4342
4342
  type: "button",
@@ -4350,7 +4350,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4350
4350
  s("div", Fc, [
4351
4351
  p[6] || (p[6] = s("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Назва ", -1)),
4352
4352
  Me(s("input", {
4353
- "onUpdate:modelValue": p[2] || (p[2] = (b) => i.value.name = b),
4353
+ "onUpdate:modelValue": p[2] || (p[2] = (x) => i.value.name = x),
4354
4354
  type: "text",
4355
4355
  class: "w-full rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
4356
4356
  placeholder: "Наприклад, Житлова зона"
@@ -4362,14 +4362,14 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4362
4362
  p[7] || (p[7] = s("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Колір ", -1)),
4363
4363
  s("div", Mc, [
4364
4364
  Me(s("input", {
4365
- "onUpdate:modelValue": p[3] || (p[3] = (b) => i.value.color = b),
4365
+ "onUpdate:modelValue": p[3] || (p[3] = (x) => i.value.color = x),
4366
4366
  type: "color",
4367
4367
  class: "h-10 w-16 rounded border border-gray-300"
4368
4368
  }, null, 512), [
4369
4369
  [ot, i.value.color]
4370
4370
  ]),
4371
4371
  Me(s("input", {
4372
- "onUpdate:modelValue": p[4] || (p[4] = (b) => i.value.color = b),
4372
+ "onUpdate:modelValue": p[4] || (p[4] = (x) => i.value.color = x),
4373
4373
  type: "text",
4374
4374
  class: "flex-1 rounded-md border border-gray-300 px-3 py-2 text-sm focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200",
4375
4375
  placeholder: "#FFFFFF"
@@ -4398,13 +4398,13 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4398
4398
  { value: "list", label: "List" },
4399
4399
  { value: "none", label: "None" }
4400
4400
  ];
4401
- return (i, u) => (m(), x("div", Oc, [
4401
+ return (i, u) => (m(), b("div", Oc, [
4402
4402
  u[1] || (u[1] = s("label", { class: "text-sm font-medium text-gray-600" }, "Режим відображення", -1)),
4403
4403
  s("div", {
4404
4404
  role: "radiogroup",
4405
4405
  class: pe(["grid gap-2", `grid-cols-${le(o).length}`])
4406
4406
  }, [
4407
- (m(!0), x(q, null, J(le(o), (f) => (m(), x("div", {
4407
+ (m(!0), b(q, null, J(le(o), (f) => (m(), b("div", {
4408
4408
  key: f.value,
4409
4409
  onClick: (c) => l(f.value),
4410
4410
  class: pe(["flex items-center justify-center space-x-2 rounded-lg p-2 border transition-all duration-300 cursor-pointer", [
@@ -4418,7 +4418,7 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4418
4418
  value: f.value,
4419
4419
  class: "aspect-square rounded-full border border-primary h-4 w-4 flex items-center justify-center text-sky-500"
4420
4420
  }, [
4421
- e.modelValue === f.value ? (m(), x("span", zc, [...u[0] || (u[0] = [
4421
+ e.modelValue === f.value ? (m(), b("span", zc, [...u[0] || (u[0] = [
4422
4422
  s("svg", {
4423
4423
  xmlns: "http://www.w3.org/2000/svg",
4424
4424
  viewBox: "0 0 24 24",
@@ -4457,21 +4457,21 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4457
4457
  const n = e, r = t, l = O(n.columns || []);
4458
4458
  Z(
4459
4459
  () => n.columns,
4460
- (b) => l.value = b || [],
4460
+ (x) => l.value = x || [],
4461
4461
  { immediate: !0 }
4462
- ), Z(l, (b) => r("update:columns", b));
4462
+ ), Z(l, (x) => r("update:columns", x));
4463
4463
  const o = O(n.viewMode ?? "list");
4464
4464
  Z(
4465
4465
  () => n.viewMode,
4466
- (b) => {
4467
- b && b !== o.value && (o.value = b);
4466
+ (x) => {
4467
+ x && x !== o.value && (o.value = x);
4468
4468
  }
4469
4469
  );
4470
4470
  const i = O(n.html ?? "");
4471
4471
  Z(
4472
4472
  () => n.html,
4473
- (b) => {
4474
- typeof b == "string" && b !== i.value && (i.value = b);
4473
+ (x) => {
4474
+ typeof x == "string" && x !== i.value && (i.value = x);
4475
4475
  },
4476
4476
  { immediate: !0 }
4477
4477
  );
@@ -4517,17 +4517,17 @@ const $c = { class: "flex flex-col flex-1 min-h-0" }, Cc = { class: "flex flex-c
4517
4517
  }, */
4518
4518
  };
4519
4519
  function a() {
4520
- f.value = o.value === "html" ? [] : l.value.map((b) => b.name || b.id), u.value = !0;
4520
+ f.value = o.value === "html" ? [] : l.value.map((x) => x.name || x.id), u.value = !0;
4521
4521
  }
4522
4522
  function v() {
4523
4523
  var k;
4524
- const b = [...l.value], S = ((k = n.fields) == null ? void 0 : k.filter((F) => f.value.includes(F.name)).map((F) => {
4524
+ const x = [...l.value], S = ((k = n.fields) == null ? void 0 : k.filter((F) => f.value.includes(F.name)).map((F) => {
4525
4525
  const { type: M, format: h, ...I } = F;
4526
4526
  return {
4527
4527
  ...I,
4528
4528
  format: h ?? M ?? "text"
4529
4529
  };
4530
- })) || [], _ = ut(b, S, {
4530
+ })) || [], _ = ut(x, S, {
4531
4531
  selectedKeys: f.value,
4532
4532
  resolveKey: (F) => He(F)
4533
4533
  });
@@ -4547,10 +4547,10 @@ ${F}` : F;
4547
4547
  u.value = !1, f.value = [];
4548
4548
  }
4549
4549
  function d() {
4550
- const b = o.value === "html" ? "html" : "list", S = {
4551
- card_mode: b
4550
+ const x = o.value === "html" ? "html" : "list", S = {
4551
+ card_mode: x
4552
4552
  };
4553
- b === "html" ? S.html = i.value : b === "list" && (S.list = l.value), r("save", "card", S);
4553
+ x === "html" ? S.html = i.value : x === "list" && (S.list = l.value), r("save", "card", S);
4554
4554
  }
4555
4555
  const p = [
4556
4556
  { value: "all", label: "All" },
@@ -4558,7 +4558,7 @@ ${F}` : F;
4558
4558
  { value: "none", label: "None" },
4559
4559
  { value: "html", label: "HTML" }
4560
4560
  ];
4561
- return (b, S) => (m(), x("div", Dc, [
4561
+ return (x, S) => (m(), b("div", Dc, [
4562
4562
  s("div", { class: "flex justify-between mb-3 gap-2" }, [
4563
4563
  s("button", {
4564
4564
  onClick: a,
@@ -4657,11 +4657,11 @@ ${F}` : F;
4657
4657
  }
4658
4658
  function a() {
4659
4659
  var S;
4660
- const d = [...l.value], p = ((S = n.fields) == null ? void 0 : S.filter((_) => u.value.includes(_.name))) || [], b = ut(d, p, {
4660
+ const d = [...l.value], p = ((S = n.fields) == null ? void 0 : S.filter((_) => u.value.includes(_.name))) || [], x = ut(d, p, {
4661
4661
  selectedKeys: u.value,
4662
4662
  resolveKey: (_) => He(_)
4663
4663
  });
4664
- l.value = b, i.value = !1, u.value = [];
4664
+ l.value = x, i.value = !1, u.value = [];
4665
4665
  }
4666
4666
  function v() {
4667
4667
  i.value = !1, u.value = [];
@@ -4670,7 +4670,7 @@ ${F}` : F;
4670
4670
  let d = [];
4671
4671
  o.value === "all" ? d = n.fields || [] : o.value === "none" ? d = [] : d = l.value, r("save", d);
4672
4672
  }
4673
- return (d, p) => (m(), x("div", Uc, [
4673
+ return (d, p) => (m(), b("div", Uc, [
4674
4674
  s("div", { class: "flex justify-between mb-3 gap-2" }, [
4675
4675
  s("button", {
4676
4676
  onClick: g,
@@ -4684,7 +4684,7 @@ ${F}` : F;
4684
4684
  o.value === "list" ? (m(), Q(Je, {
4685
4685
  key: 0,
4686
4686
  modelValue: l.value,
4687
- "onUpdate:modelValue": p[0] || (p[0] = (b) => l.value = b),
4687
+ "onUpdate:modelValue": p[0] || (p[0] = (x) => l.value = x),
4688
4688
  "columns-scheme": f,
4689
4689
  "form-scheme": c,
4690
4690
  "main-col-width": "250px",
@@ -4692,9 +4692,9 @@ ${F}` : F;
4692
4692
  }, null, 8, ["modelValue"])) : H("", !0),
4693
4693
  re(at, {
4694
4694
  visible: i.value,
4695
- "onUpdate:visible": p[1] || (p[1] = (b) => i.value = b),
4695
+ "onUpdate:visible": p[1] || (p[1] = (x) => i.value = x),
4696
4696
  selection: u.value,
4697
- "onUpdate:selection": p[2] || (p[2] = (b) => u.value = b),
4697
+ "onUpdate:selection": p[2] || (p[2] = (x) => u.value = x),
4698
4698
  fields: e.fields,
4699
4699
  title: "Імпорт полів",
4700
4700
  "id-prefix": "import-filter",
@@ -4742,7 +4742,7 @@ ${F}` : F;
4742
4742
  o(), i(), window.addEventListener("resize", o);
4743
4743
  }), fe(() => {
4744
4744
  window.removeEventListener("resize", o), u();
4745
- }), t({ ctx: l }), (f, c) => (m(), x("div", {
4745
+ }), t({ ctx: l }), (f, c) => (m(), b("div", {
4746
4746
  ref_key: "el",
4747
4747
  ref: n,
4748
4748
  class: "w-full h-full rounded-xl overflow-hidden"
@@ -4848,7 +4848,7 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
4848
4848
  }), d = N(() => o.value), p = N(() => {
4849
4849
  var V;
4850
4850
  return Array.isArray((V = n.layer) == null ? void 0 : V.filters) ? n.layer.filters : [];
4851
- }), b = N(() => p.value.length > 0), S = N(() => {
4851
+ }), x = N(() => p.value.length > 0), S = N(() => {
4852
4852
  var V;
4853
4853
  return ((V = n.layer) == null ? void 0 : V.name) ?? "";
4854
4854
  }), _ = N(() => p.value), k = O(null), F = N(() => p.value.length), M = N(() => F.value <= 2), h = N(() => M.value ? "body" : typeof window > "u" || k.value ? Pt : "body"), I = N(() => !d.value || !M.value ? {} : {
@@ -4947,7 +4947,7 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
4947
4947
  function U() {
4948
4948
  typeof window > "u" || typeof document > "u" || (k.value = document.querySelector(Pt));
4949
4949
  }
4950
- return (V, Y) => b.value ? (m(), x("div", {
4950
+ return (V, Y) => x.value ? (m(), b("div", {
4951
4951
  key: 0,
4952
4952
  class: "mapLayer-filter",
4953
4953
  ref_key: "anchor",
@@ -5016,7 +5016,7 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
5016
5016
  ], 6)
5017
5017
  ], 8, ["to"])) : H("", !0),
5018
5018
  (m(), Q(Xe, { to: "body" }, [
5019
- y.visible ? (m(), x("div", {
5019
+ y.visible ? (m(), b("div", {
5020
5020
  key: 0,
5021
5021
  class: "filter-badge__hint",
5022
5022
  style: Ae({
@@ -5035,7 +5035,7 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
5035
5035
  layerId: {}
5036
5036
  },
5037
5037
  setup(e) {
5038
- return (t, n) => (m(), x("div", null, [
5038
+ return (t, n) => (m(), b("div", null, [
5039
5039
  s("div", Jc, [
5040
5040
  re(Ft, {
5041
5041
  layer: {
@@ -5071,15 +5071,15 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
5071
5071
  if (n.value = o, !t[o].url) return r.setVisible(!1);
5072
5072
  r.setVisible(!0), r.setTiles([t[o].url]);
5073
5073
  }
5074
- return (o, i) => (m(), x("div", td, [
5075
- (m(), x(q, null, J(t, (u, f) => s("div", {
5074
+ return (o, i) => (m(), b("div", td, [
5075
+ (m(), b(q, null, J(t, (u, f) => s("div", {
5076
5076
  key: f,
5077
5077
  onClick: (c) => l(f)
5078
5078
  }, [
5079
5079
  s("div", {
5080
5080
  class: pe(["w-14 h-14 flex items-center justify-center bg-gray-200 rounded-xl shadow-2xs cursor-pointer transition-all border-4", n.value === f ? "border-blue-500" : "border-gray-200"])
5081
5081
  }, [
5082
- u.preview ? (m(), x("img", {
5082
+ u.preview ? (m(), b("img", {
5083
5083
  key: 0,
5084
5084
  src: u.preview,
5085
5085
  alt: u.title,
@@ -5151,9 +5151,9 @@ const Kc = { class: "map-filter" }, Zc = { class: "map-filter__header" }, Gc = {
5151
5151
  (t.items === void 0 || t.items === null) && (await r(), c(), f());
5152
5152
  }), fe(() => {
5153
5153
  o == null || o(), o = null;
5154
- }), (g, a) => l.value.length ? (m(), x("div", od, [
5154
+ }), (g, a) => l.value.length ? (m(), b("div", od, [
5155
5155
  s("div", ld, [
5156
- (m(!0), x(q, null, J(l.value, (v) => (m(), x("div", {
5156
+ (m(!0), b(q, null, J(l.value, (v) => (m(), b("div", {
5157
5157
  key: v.id,
5158
5158
  class: "flex items-center"
5159
5159
  }, [
@@ -5220,10 +5220,10 @@ const ad = { class: "min-w-[200px] max-w-[280px] rounded-lg border border-slate-
5220
5220
  ] : v;
5221
5221
  });
5222
5222
  function g(v, y, d) {
5223
- const p = v.name || v.label || v.title || `field-${d}`, b = v.label || v.title || v.name || p, S = v.name ? y[v.name] : void 0, _ = v.name ? y[`${v.name}_text`] : void 0;
5223
+ const p = v.name || v.label || v.title || `field-${d}`, x = v.label || v.title || v.name || p, S = v.name ? y[v.name] : void 0, _ = v.name ? y[`${v.name}_text`] : void 0;
5224
5224
  return {
5225
5225
  key: p,
5226
- label: b,
5226
+ label: x,
5227
5227
  value: _ ?? S ?? v.value ?? null
5228
5228
  };
5229
5229
  }
@@ -5242,7 +5242,7 @@ const ad = { class: "min-w-[200px] max-w-[280px] rounded-lg border border-slate-
5242
5242
  ye(() => a());
5243
5243
  }), fe(() => {
5244
5244
  l();
5245
- }), (v, y) => c.value.length ? (m(), x("div", {
5245
+ }), (v, y) => c.value.length ? (m(), b("div", {
5246
5246
  key: 0,
5247
5247
  ref_key: "popupRef",
5248
5248
  ref: o,
@@ -5251,7 +5251,7 @@ const ad = { class: "min-w-[200px] max-w-[280px] rounded-lg border border-slate-
5251
5251
  }, [
5252
5252
  s("div", ad, [
5253
5253
  s("div", ud, [
5254
- (m(!0), x(q, null, J(c.value, (d) => (m(), x("div", {
5254
+ (m(!0), b(q, null, J(c.value, (d) => (m(), b("div", {
5255
5255
  key: d.key,
5256
5256
  class: "flex flex-col"
5257
5257
  }, [
@@ -5314,7 +5314,7 @@ function fd() {
5314
5314
  u.value = !1;
5315
5315
  }
5316
5316
  }
5317
- function b() {
5317
+ function x() {
5318
5318
  a(), F(null);
5319
5319
  }
5320
5320
  function S() {
@@ -5373,7 +5373,7 @@ function fd() {
5373
5373
  cardError: i,
5374
5374
  cardLoading: u,
5375
5375
  isOpen: f,
5376
- close: b
5376
+ close: x
5377
5377
  };
5378
5378
  }
5379
5379
  function pd() {
@@ -5389,7 +5389,7 @@ function pd() {
5389
5389
  color: "#0a57ff",
5390
5390
  width: 4,
5391
5391
  opacity: 0.95
5392
- }), b = (A) => Number(A.toFixed(5)), S = async (A) => {
5392
+ }), x = (A) => Number(A.toFixed(5)), S = async (A) => {
5393
5393
  if (await t(), !e.value) return;
5394
5394
  const P = d(A);
5395
5395
  P && (y(), v = ce(
@@ -5402,7 +5402,7 @@ function pd() {
5402
5402
  ));
5403
5403
  }, _ = async (A, P, L) => {
5404
5404
  var R, D;
5405
- const [$, T] = [b(A), b(P)];
5405
+ const [$, T] = [x(A), x(P)];
5406
5406
  f.value = { x: $, y: T }, c.value = L, o.value = !0, i.value = null, n.value = [], u.value = {}, l.value = 0;
5407
5407
  try {
5408
5408
  const C = L.map(async (V) => {
@@ -5527,7 +5527,7 @@ const vd = /* @__PURE__ */ ne({
5527
5527
  function f() {
5528
5528
  r("activate", u());
5529
5529
  }
5530
- return (c, g) => (m(), x("button", {
5530
+ return (c, g) => (m(), b("button", {
5531
5531
  type: "button",
5532
5532
  class: "flex items-center justify-center bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded w-full",
5533
5533
  onClick: f
@@ -5555,8 +5555,8 @@ function Rt(e) {
5555
5555
  }
5556
5556
  function cr(e) {
5557
5557
  function t(o, i = {}, u, f) {
5558
- var b, S;
5559
- const c = zt(o == null ? void 0 : o.id), g = ((b = o == null ? void 0 : o.title) == null ? void 0 : b.trim()) || c, a = ((S = o == null ? void 0 : o.url) == null ? void 0 : S.trim()) || "";
5558
+ var x, S;
5559
+ const c = zt(o == null ? void 0 : o.id), g = ((x = o == null ? void 0 : o.title) == null ? void 0 : x.trim()) || c, a = ((S = o == null ? void 0 : o.url) == null ? void 0 : S.trim()) || "";
5560
5560
  if (!c || !a) return;
5561
5561
  const v = md(a, i);
5562
5562
  if (!v) return;
@@ -5681,7 +5681,7 @@ const gd = {
5681
5681
  const E = Array.from(C).map((j) => j.charCodeAt(0).toString(16)).join("").slice(0, 8);
5682
5682
  return E ? `layer-${E}` : `layer-${Math.random().toString(36).slice(2, 8)}`;
5683
5683
  }
5684
- function b(C) {
5684
+ function x(C) {
5685
5685
  const w = {}, E = /([:@\w-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>]+)))?/g;
5686
5686
  let j;
5687
5687
  for (; (j = E.exec(C)) !== null; ) {
@@ -5717,7 +5717,7 @@ const gd = {
5717
5717
  const qe = C.slice(j, ae);
5718
5718
  qe.trim().length && w.push({ type: "html", content: qe });
5719
5719
  }
5720
- const de = b(te), ke = S(de, ["title"]) || "Тимчасовий шар", Se = S(de, ["url"]);
5720
+ const de = x(te), ke = S(de, ["title"]) || "Тимчасовий шар", Se = S(de, ["url"]);
5721
5721
  if (!Se) {
5722
5722
  w.push({ type: "html", content: K }), j = ae + K.length;
5723
5723
  continue;
@@ -5830,18 +5830,18 @@ const gd = {
5830
5830
  c({ action: "clear", owner: C || void 0 });
5831
5831
  }), (C, w) => (m(), Q(Gt, { name: "fade" }, {
5832
5832
  default: we(() => [
5833
- l.value ? (m(), x("div", gd, [
5833
+ l.value ? (m(), b("div", gd, [
5834
5834
  s("div", hd, [
5835
5835
  s("div", yd, [
5836
5836
  s("p", xd, [
5837
- r.value ? (m(), x(q, { key: 1 }, [
5837
+ r.value ? (m(), b(q, { key: 1 }, [
5838
5838
  se(" Об’єкт " + B(le(R) + 1) + " / " + B(le(T)), 1)
5839
- ], 64)) : (m(), x(q, { key: 0 }, [
5839
+ ], 64)) : (m(), b(q, { key: 0 }, [
5840
5840
  se(" Інформація про об’єкт ")
5841
5841
  ], 64))
5842
5842
  ])
5843
5843
  ]),
5844
- r.value && le(T) > 1 ? (m(), x("div", bd, [
5844
+ r.value && le(T) > 1 ? (m(), b("div", bd, [
5845
5845
  s("button", {
5846
5846
  onClick: w[0] || (w[0] = //@ts-ignore
5847
5847
  (...E) => le($) && le($)(...E)),
@@ -5866,9 +5866,9 @@ const gd = {
5866
5866
  }, " ✕ ")
5867
5867
  ]),
5868
5868
  s("div", kd, [
5869
- o.value ? (m(), x("div", $d, " Завантаження даних… ")) : i.value ? (m(), x("div", Cd, B(i.value), 1)) : M.value.length ? (m(), x("div", Ad, [
5870
- (m(!0), x(q, null, J(M.value, (E, j) => (m(), x(q, { key: j }, [
5871
- E.type === "html" ? (m(), x("div", {
5869
+ o.value ? (m(), b("div", $d, " Завантаження даних… ")) : i.value ? (m(), b("div", Cd, B(i.value), 1)) : M.value.length ? (m(), b("div", Ad, [
5870
+ (m(!0), b(q, null, J(M.value, (E, j) => (m(), b(q, { key: j }, [
5871
+ E.type === "html" ? (m(), b("div", {
5872
5872
  key: 0,
5873
5873
  innerHTML: E.content
5874
5874
  }, null, 8, Ld)) : (m(), Q(vd, {
@@ -5890,15 +5890,15 @@ const gd = {
5890
5890
  } : void 0
5891
5891
  ]), 1032, ["title", "url", "id", "button-text"]))
5892
5892
  ], 64))), 128))
5893
- ])) : F.value.length ? (m(), x("div", Ed, [
5894
- (m(!0), x(q, null, J(F.value, (E) => (m(), x("div", {
5893
+ ])) : F.value.length ? (m(), b("div", Ed, [
5894
+ (m(!0), b(q, null, J(F.value, (E) => (m(), b("div", {
5895
5895
  key: E.key,
5896
5896
  class: "flex items-start justify-between gap-3 border-b border-slate-100 pb-2"
5897
5897
  }, [
5898
5898
  s("span", Fd, B(E.label), 1),
5899
- E.format === "badge" ? (m(), x("span", Id, B(E.value), 1)) : (m(), x("span", Md, B(E.value), 1))
5899
+ E.format === "badge" ? (m(), b("span", Id, B(E.value), 1)) : (m(), b("span", Md, B(E.value), 1))
5900
5900
  ]))), 128))
5901
- ])) : (m(), x("div", Td, " Даних не знайдено. "))
5901
+ ])) : (m(), b("div", Td, " Даних не знайдено. "))
5902
5902
  ])
5903
5903
  ])) : H("", !0)
5904
5904
  ]),
@@ -5949,11 +5949,11 @@ const gd = {
5949
5949
  }
5950
5950
  async function g(d, p) {
5951
5951
  if (d) {
5952
- const b = /^https?:\/\//.test(d) ? d : new URL(d, location.origin).toString(), S = await c(b).catch(() => null), _ = u(S);
5952
+ const x = /^https?:\/\//.test(d) ? d : new URL(d, location.origin).toString(), S = await c(x).catch(() => null), _ = u(S);
5953
5953
  if (_) return _;
5954
5954
  }
5955
5955
  if (p) {
5956
- const b = await c(`https://data.gki.com.ua/api-user/atu/${encodeURIComponent(p)}`).catch(() => null), S = u(b);
5956
+ const x = await c(`https://data.gki.com.ua/api-user/atu/${encodeURIComponent(p)}`).catch(() => null), S = u(x);
5957
5957
  if (S) return S;
5958
5958
  }
5959
5959
  return null;
@@ -5971,14 +5971,14 @@ const gd = {
5971
5971
  i();
5972
5972
  return;
5973
5973
  }
5974
- const b = await g(d, p);
5975
- if (!b) {
5974
+ const x = await g(d, p);
5975
+ if (!x) {
5976
5976
  i();
5977
5977
  return;
5978
5978
  }
5979
5979
  i(), o = ce(`${t.layerId}-boundary`, {
5980
- source: { type: "geojson", data: b },
5981
- style: f(b)
5980
+ source: { type: "geojson", data: x },
5981
+ style: f(x)
5982
5982
  }, r);
5983
5983
  }
5984
5984
  return Z(
@@ -5999,7 +5999,7 @@ const gd = {
5999
5999
  const t = xt(), n = st(), { id: r } = t.params, l = O(null), o = O({}), i = O(null), u = ((P = (A = Xt()) == null ? void 0 : A.appContext.config.globalProperties) == null ? void 0 : P.$settings) || null, f = O(""), c = O([]), g = O([]), a = O([]), v = O("list"), y = O(""), d = O([]), p = N(() => {
6000
6000
  var L, $;
6001
6001
  return ((L = i.value) == null ? void 0 : L.id) ?? (($ = i.value) == null ? void 0 : $.service_id) ?? null;
6002
- }), b = N(() => {
6002
+ }), x = N(() => {
6003
6003
  const L = (u == null ? void 0 : u.map) || null, $ = (L == null ? void 0 : L.boundary) ?? null, T = (L == null ? void 0 : L.katottg) ?? null;
6004
6004
  return !$ && !T ? null : { boundary: $, katottg: T };
6005
6005
  }), S = [
@@ -6076,7 +6076,7 @@ const gd = {
6076
6076
  }
6077
6077
  return (L, $) => {
6078
6078
  var T, R, D, C;
6079
- return m(), x("div", Nd, [
6079
+ return m(), b("div", Nd, [
6080
6080
  s("div", Pd, [
6081
6081
  s("div", zd, [
6082
6082
  s("div", Rd, [
@@ -6127,8 +6127,8 @@ const gd = {
6127
6127
  p.value ? (m(), Q(fr, {
6128
6128
  key: 1,
6129
6129
  "layer-id": p.value,
6130
- boundary: ((j = i.value) == null ? void 0 : j.boundary) || ((U = b.value) == null ? void 0 : U.boundary) || null,
6131
- katottg: ((V = i.value) == null ? void 0 : V.katottg) || ((Y = b.value) == null ? void 0 : Y.katottg) || null
6130
+ boundary: ((j = i.value) == null ? void 0 : j.boundary) || ((U = x.value) == null ? void 0 : U.boundary) || null,
6131
+ katottg: ((V = i.value) == null ? void 0 : V.katottg) || ((Y = x.value) == null ? void 0 : Y.katottg) || null
6132
6132
  }, null, 8, ["layer-id", "boundary", "katottg"])) : H("", !0),
6133
6133
  s("div", Hd, [
6134
6134
  p.value ? (m(), Q(Ht, {
@@ -6160,7 +6160,7 @@ const gd = {
6160
6160
  s("div", Gd, [
6161
6161
  s("div", Xd, [
6162
6162
  s("div", Qd, [
6163
- (m(), x(q, null, J(S, (w) => s("button", {
6163
+ (m(), b(q, null, J(S, (w) => s("button", {
6164
6164
  key: w.key,
6165
6165
  type: "button",
6166
6166
  role: "tab",
@@ -6237,7 +6237,7 @@ const gd = {
6237
6237
  v();
6238
6238
  return;
6239
6239
  }
6240
- const b = p.currentTarget, S = b == null ? void 0 : b.closest(".mapLayer-info");
6240
+ const x = p.currentTarget, S = x == null ? void 0 : x.closest(".mapLayer-info");
6241
6241
  if (!S) {
6242
6242
  v();
6243
6243
  return;
@@ -6251,17 +6251,17 @@ const gd = {
6251
6251
  function c() {
6252
6252
  var P, L;
6253
6253
  if (!r.open || !l.value) return;
6254
- const p = l.value.getBoundingClientRect(), b = 8, S = window.scrollX + b, _ = window.scrollX + window.innerWidth - b, k = window.scrollY + b, F = window.scrollY + window.innerHeight - b, M = ((P = o.value) == null ? void 0 : P.offsetWidth) || 460, h = ((L = o.value) == null ? void 0 : L.offsetHeight) || 0;
6254
+ const p = l.value.getBoundingClientRect(), x = 8, S = window.scrollX + x, _ = window.scrollX + window.innerWidth - x, k = window.scrollY + x, F = window.scrollY + window.innerHeight - x, M = ((P = o.value) == null ? void 0 : P.offsetWidth) || 460, h = ((L = o.value) == null ? void 0 : L.offsetHeight) || 0;
6255
6255
  let I = p.left + window.scrollX + (p.width - M) / 2;
6256
6256
  I < S && (I = S), I + M > _ && (I = Math.max(S, _ - M)), r.left = I;
6257
- let A = p.bottom + window.scrollY + b;
6258
- A + h > F && (A = p.top + window.scrollY - h - b, A < k && (A = Math.max(k, F - h))), r.top = A, r.transform = "none";
6257
+ let A = p.bottom + window.scrollY + x;
6258
+ A + h > F && (A = p.top + window.scrollY - h - x, A < k && (A = Math.max(k, F - h))), r.top = A, r.transform = "none";
6259
6259
  }
6260
6260
  function g(p) {
6261
6261
  var S, _;
6262
6262
  if (!r.open) return;
6263
- const b = p.target;
6264
- (S = l.value) != null && S.contains(b) || (_ = o.value) != null && _.contains(b) || v();
6263
+ const x = p.target;
6264
+ (S = l.value) != null && S.contains(x) || (_ = o.value) != null && _.contains(x) || v();
6265
6265
  }
6266
6266
  function a(p) {
6267
6267
  p.key === "Escape" && v();
@@ -6287,7 +6287,7 @@ const gd = {
6287
6287
  r.open && ye(() => c());
6288
6288
  },
6289
6289
  { deep: !0 }
6290
- ), t({ close: v }), (p, b) => (m(), x("div", {
6290
+ ), t({ close: v }), (p, x) => (m(), b("div", {
6291
6291
  class: "mapLayer-info",
6292
6292
  ref_key: "anchorEl",
6293
6293
  ref: l
@@ -6296,21 +6296,21 @@ const gd = {
6296
6296
  class: "mapLayer-info__trigger",
6297
6297
  href: "#",
6298
6298
  onClick: Te(f, ["prevent", "stop"])
6299
- }, [...b[1] || (b[1] = [
6299
+ }, [...x[1] || (x[1] = [
6300
6300
  Qe('<div class="mapLayer-info__icon" data-v-48ead72b><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" data-v-48ead72b><circle cx="12" cy="12" r="10" data-v-48ead72b></circle><line x1="12" y1="16" x2="12" y2="12" data-v-48ead72b></line><line x1="12" y1="8" x2="12.01" y2="8" data-v-48ead72b></line></svg></div>', 1)
6301
6301
  ])]),
6302
6302
  (m(), Q(Xe, { to: "body" }, [
6303
- r.open ? (m(), x("div", {
6303
+ r.open ? (m(), b("div", {
6304
6304
  key: 0,
6305
6305
  class: "vst-popover__content inline-block z-50 py-3 px-4 bg-white text-sm text-gray-500 rounded-md shadow-lg bottom mapLayer-info__popover",
6306
6306
  style: Ae(u.value),
6307
6307
  ref_key: "popoverEl",
6308
6308
  ref: o,
6309
- onClick: b[0] || (b[0] = Te(() => {
6309
+ onClick: x[0] || (x[0] = Te(() => {
6310
6310
  }, ["stop"]))
6311
6311
  }, [
6312
6312
  s("div", nf, [
6313
- (m(!0), x(q, null, J(e.items, (S) => (m(), x("div", {
6313
+ (m(!0), b(q, null, J(e.items, (S) => (m(), b("div", {
6314
6314
  key: S.label,
6315
6315
  class: "mapLayer-info__item"
6316
6316
  }, [
@@ -6356,10 +6356,10 @@ const gd = {
6356
6356
  function a() {
6357
6357
  const d = l.value;
6358
6358
  if (!d) return;
6359
- const { bottom: p, left: b } = d.getBoundingClientRect();
6359
+ const { bottom: p, left: x } = d.getBoundingClientRect();
6360
6360
  o.value = {
6361
6361
  top: p + window.scrollY + 8,
6362
- left: b + window.scrollX
6362
+ left: x + window.scrollX
6363
6363
  };
6364
6364
  }
6365
6365
  function v(d) {
@@ -6383,15 +6383,15 @@ const gd = {
6383
6383
  function y(d) {
6384
6384
  r.value = !1, i.push(`/maps/${d}`);
6385
6385
  }
6386
- return (d, p) => (m(), x("div", {
6386
+ return (d, p) => (m(), b("div", {
6387
6387
  class: "map-info legend-widget flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget",
6388
6388
  ref_key: "container",
6389
6389
  ref: n
6390
6390
  }, [
6391
- e.title || u.value.length || c.value.length ? (m(), x("div", lf, [
6392
- e.title ? (m(), x("h2", sf, B(e.title), 1)) : H("", !0),
6391
+ e.title || u.value.length || c.value.length ? (m(), b("div", lf, [
6392
+ e.title ? (m(), b("h2", sf, B(e.title), 1)) : H("", !0),
6393
6393
  s("div", af, [
6394
- u.value.length ? (m(), x("div", uf, [
6394
+ u.value.length ? (m(), b("div", uf, [
6395
6395
  s("button", {
6396
6396
  ref_key: "menuButton",
6397
6397
  ref: l,
@@ -6428,19 +6428,19 @@ const gd = {
6428
6428
  ], -1)
6429
6429
  ])], 512),
6430
6430
  (m(), Q(Xe, { to: "body" }, [
6431
- r.value ? (m(), x("div", {
6431
+ r.value ? (m(), b("div", {
6432
6432
  key: 0,
6433
6433
  class: "vsTailwind vs-popover__content right map-info__popover",
6434
6434
  style: Ae(f.value),
6435
6435
  onClick: p[0] || (p[0] = Te(() => {
6436
6436
  }, ["stop"]))
6437
6437
  }, [
6438
- (m(!0), x(q, null, J(u.value, (b) => (m(), x("button", {
6439
- key: b.slug || b.name,
6438
+ (m(!0), b(q, null, J(u.value, (x) => (m(), b("button", {
6439
+ key: x.slug || x.name,
6440
6440
  type: "button",
6441
6441
  class: "map-info__popover-link",
6442
- onClick: (S) => y(b.slug)
6443
- }, B(b.name), 9, cf))), 128))
6442
+ onClick: (S) => y(x.slug)
6443
+ }, B(x.name), 9, cf))), 128))
6444
6444
  ], 4)) : H("", !0)
6445
6445
  ]))
6446
6446
  ])) : H("", !0),
@@ -6450,7 +6450,7 @@ const gd = {
6450
6450
  }, null, 8, ["items"])) : H("", !0)
6451
6451
  ])
6452
6452
  ])) : H("", !0),
6453
- e.content ? (m(), x("div", {
6453
+ e.content ? (m(), b("div", {
6454
6454
  key: 1,
6455
6455
  class: "map-info__content",
6456
6456
  innerHTML: e.content
@@ -6506,7 +6506,7 @@ const gd = {
6506
6506
  document.addEventListener("click", g), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u);
6507
6507
  }), fe(() => {
6508
6508
  document.removeEventListener("click", g), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
6509
- }), (a, v) => (m(), x("div", {
6509
+ }), (a, v) => (m(), b("div", {
6510
6510
  class: "opacity-wrapper",
6511
6511
  ref_key: "wrapper",
6512
6512
  ref: o
@@ -6522,7 +6522,7 @@ const gd = {
6522
6522
  }, B(r.value) + "% ", 1)
6523
6523
  ], !0),
6524
6524
  (m(), Q(Xe, { to: "body" }, [
6525
- n.value ? (m(), x("div", {
6525
+ n.value ? (m(), b("div", {
6526
6526
  key: 0,
6527
6527
  ref_key: "popoverEl",
6528
6528
  ref: l,
@@ -6653,7 +6653,7 @@ const gd = {
6653
6653
  const I = r.value[h];
6654
6654
  return I ?? !0;
6655
6655
  }
6656
- function b(h) {
6656
+ function x(h) {
6657
6657
  var P, L;
6658
6658
  if (!(h != null && h.id)) return null;
6659
6659
  const I = (P = h.title) == null ? void 0 : P.trim(), A = (L = h.url) == null ? void 0 : L.trim();
@@ -6677,7 +6677,7 @@ const gd = {
6677
6677
  });
6678
6678
  return;
6679
6679
  }
6680
- const A = b(h.spec);
6680
+ const A = x(h.spec);
6681
6681
  if (A) {
6682
6682
  if (h.action === "activate") {
6683
6683
  i(A, h.context || {}, I), r.value[A.id] = !0;
@@ -6739,24 +6739,24 @@ const gd = {
6739
6739
  }
6740
6740
  return (h, I) => {
6741
6741
  var A, P;
6742
- return m(), x("div", gf, [
6742
+ return m(), b("div", gf, [
6743
6743
  s("div", hf, [
6744
6744
  s("div", yf, [
6745
6745
  s("h2", xf, B(((A = e.config) == null ? void 0 : A.title) || "Шари"), 1),
6746
- (P = e.config) != null && P.description ? (m(), x("div", bf, [
6746
+ (P = e.config) != null && P.description ? (m(), b("div", bf, [
6747
6747
  s("p", null, B(e.config.description), 1)
6748
6748
  ])) : H("", !0)
6749
6749
  ]),
6750
- g.value ? (m(), x("button", {
6750
+ g.value ? (m(), b("button", {
6751
6751
  key: 0,
6752
6752
  type: "button",
6753
6753
  class: "layers-panel__clear",
6754
6754
  onClick: M
6755
6755
  }, " Очистити тимчасові шари ")) : H("", !0)
6756
6756
  ]),
6757
- (m(!0), x(q, null, J(c.value, (L) => {
6757
+ (m(!0), b(q, null, J(c.value, (L) => {
6758
6758
  var $;
6759
- return m(), x("div", {
6759
+ return m(), b("div", {
6760
6760
  key: L.id,
6761
6761
  class: "layers-panel__item"
6762
6762
  }, [
@@ -6769,7 +6769,7 @@ const gd = {
6769
6769
  }, null, 40, wf),
6770
6770
  s("span", kf, B(L.name), 1),
6771
6771
  s("div", $f, [
6772
- p(L.id) && !L.isTemporary ? (m(), x(q, { key: 0 }, [
6772
+ p(L.id) && !L.isTemporary ? (m(), b(q, { key: 0 }, [
6773
6773
  re(pr, {
6774
6774
  "layer-id": L.id,
6775
6775
  class: "flex"
@@ -6796,8 +6796,8 @@ const gd = {
6796
6796
  }, null, 8, ["items"])
6797
6797
  ])
6798
6798
  ]),
6799
- ($ = L.actions) != null && $.length ? (m(), x("div", Lf, [
6800
- (m(!0), x(q, null, J(L.actions, (T) => (m(), x("button", {
6799
+ ($ = L.actions) != null && $.length ? (m(), b("div", Lf, [
6800
+ (m(!0), b(q, null, J(L.actions, (T) => (m(), b("button", {
6801
6801
  key: T.widget || T.id || T.icon,
6802
6802
  type: "button",
6803
6803
  class: "layers-panel__action",
@@ -6837,27 +6837,27 @@ const gd = {
6837
6837
  left: 0,
6838
6838
  layerId: null
6839
6839
  }), u = N(() => {
6840
- const b = n.search.trim().toLowerCase();
6840
+ const x = n.search.trim().toLowerCase();
6841
6841
  return n.catalog.groups.map((S) => {
6842
- const _ = b ? S.layers.filter((k) => (typeof k.name == "string" ? k.name : "").toLowerCase().includes(b)) : S.layers;
6842
+ const _ = x ? S.layers.filter((k) => (typeof k.name == "string" ? k.name : "").toLowerCase().includes(x)) : S.layers;
6843
6843
  return { ...S, layers: _ };
6844
6844
  }).filter((S) => S.layers.length > 0);
6845
6845
  }), f = N({
6846
6846
  get: () => n.search,
6847
- set: (b) => r("update:search", b)
6847
+ set: (x) => r("update:search", x)
6848
6848
  });
6849
- function c(b) {
6850
- l[b] = !l[b], Hc();
6849
+ function c(x) {
6850
+ l[x] = !l[x], Hc();
6851
6851
  }
6852
- function g(b) {
6853
- return !!l[b];
6852
+ function g(x) {
6853
+ return !!l[x];
6854
6854
  }
6855
- function a(b, S) {
6855
+ function a(x, S) {
6856
6856
  if (n.selected.includes(S)) {
6857
6857
  i.visible = !1, i.layerId = null;
6858
6858
  return;
6859
6859
  }
6860
- const _ = b.currentTarget;
6860
+ const _ = x.currentTarget;
6861
6861
  if (!_) return;
6862
6862
  const k = _.getBoundingClientRect(), F = typeof window < "u" ? window.scrollX : 0, M = typeof window < "u" ? window.scrollY : 0;
6863
6863
  i.left = k.left + k.width / 2 + F, i.top = k.bottom + 8 + M, i.layerId = S, i.visible = !0;
@@ -6865,29 +6865,29 @@ const gd = {
6865
6865
  function v() {
6866
6866
  i.visible = !1, i.layerId = null;
6867
6867
  }
6868
- function y(b) {
6868
+ function y(x) {
6869
6869
  return [
6870
- { label: "Назва", value: d(b.name) },
6871
- { label: "Сервіс", value: d(b.service) },
6872
- { label: "Посилання", value: d(b.url), breakLine: !0 },
6873
- { label: "Джерело", value: d(b.source_path), breakLine: !0 },
6874
- { label: "Popup", value: p(b.popup, "полів") },
6875
- { label: "Картка", value: p(b.card, "полів") },
6876
- { label: "Фільтри", value: p(b.filters, "фільтрів") }
6870
+ { label: "Назва", value: d(x.name) },
6871
+ { label: "Сервіс", value: d(x.service) },
6872
+ { label: "Посилання", value: d(x.url), breakLine: !0 },
6873
+ { label: "Джерело", value: d(x.source_path), breakLine: !0 },
6874
+ { label: "Popup", value: p(x.popup, "полів") },
6875
+ { label: "Картка", value: p(x.card, "полів") },
6876
+ { label: "Фільтри", value: p(x.filters, "фільтрів") }
6877
6877
  ];
6878
6878
  }
6879
- function d(b) {
6880
- return b == null || b === "" ? null : String(b);
6879
+ function d(x) {
6880
+ return x == null || x === "" ? null : String(x);
6881
6881
  }
6882
- function p(b, S) {
6883
- return !Array.isArray(b) || b.length === 0 ? null : `${b.length} ${S}`;
6882
+ function p(x, S) {
6883
+ return !Array.isArray(x) || x.length === 0 ? null : `${x.length} ${S}`;
6884
6884
  }
6885
6885
  return Z(
6886
6886
  () => n.selected ? n.selected.slice() : [],
6887
- (b) => {
6888
- !i.visible || !i.layerId || b.includes(i.layerId) && (i.visible = !1, i.layerId = null);
6887
+ (x) => {
6888
+ !i.visible || !i.layerId || x.includes(i.layerId) && (i.visible = !1, i.layerId = null);
6889
6889
  }
6890
- ), (b, S) => (m(), x("div", {
6890
+ ), (x, S) => (m(), b("div", {
6891
6891
  ref_key: "catalogRef",
6892
6892
  ref: o,
6893
6893
  class: "catalog-tab"
@@ -6901,7 +6901,7 @@ const gd = {
6901
6901
  }, null, 512), [
6902
6902
  [ot, f.value]
6903
6903
  ]),
6904
- (m(), x("svg", If, [...S[1] || (S[1] = [
6904
+ (m(), b("svg", If, [...S[1] || (S[1] = [
6905
6905
  s("path", {
6906
6906
  d: "M11 19C15.4183 19 19 15.4183 19 11C19 6.5817 15.4183 3 11 3C6.5817 3 3 6.5817 3 11C3 15.4183 6.5817 19 11 19Z",
6907
6907
  stroke: "black",
@@ -6916,8 +6916,8 @@ const gd = {
6916
6916
  }, null, -1)
6917
6917
  ])]))
6918
6918
  ]),
6919
- u.value.length === 0 ? (m(), x("div", Mf, " Нічого не знайдено ")) : H("", !0),
6920
- (m(!0), x(q, null, J(u.value, (_) => (m(), x("div", {
6919
+ u.value.length === 0 ? (m(), b("div", Mf, " Нічого не знайдено ")) : H("", !0),
6920
+ (m(!0), b(q, null, J(u.value, (_) => (m(), b("div", {
6921
6921
  key: _.id,
6922
6922
  class: "mt-2"
6923
6923
  }, [
@@ -6926,7 +6926,7 @@ const gd = {
6926
6926
  onClick: (k) => c(_.id)
6927
6927
  }, [
6928
6928
  s("div", jf, [
6929
- (m(), x("svg", {
6929
+ (m(), b("svg", {
6930
6930
  width: "6",
6931
6931
  height: "10",
6932
6932
  viewBox: "0 0 6 10",
@@ -6948,7 +6948,7 @@ const gd = {
6948
6948
  re(Gt, { name: "out-in" }, {
6949
6949
  default: we(() => [
6950
6950
  Me(s("div", null, [
6951
- (m(!0), x(q, null, J(_.layers, (k) => (m(), x("div", {
6951
+ (m(!0), b(q, null, J(_.layers, (k) => (m(), b("div", {
6952
6952
  key: k.id,
6953
6953
  class: "hover:bg-gray-100 rounded-lg flex items-center justify-between ml-[20px] py-[8px] px-[8px] gap-3"
6954
6954
  }, [
@@ -6957,7 +6957,7 @@ const gd = {
6957
6957
  type: "checkbox",
6958
6958
  class: "peer hidden",
6959
6959
  checked: e.selected.includes(k.id),
6960
- onChange: (F) => b.$emit("toggle-layer", k.id, F.target.checked, k)
6960
+ onChange: (F) => x.$emit("toggle-layer", k.id, F.target.checked, k)
6961
6961
  }, null, 40, zf),
6962
6962
  S[3] || (S[3] = s("div", { class: "w-4 h-4 rounded border border-blue-800 flex items-center justify-center peer-checked:bg-blue-600 peer-checked:border-blue-600" }, [
6963
6963
  s("svg", {
@@ -7001,7 +7001,7 @@ const gd = {
7001
7001
  }, 1024)
7002
7002
  ]))), 128)),
7003
7003
  (m(), Q(Xe, { to: "body" }, [
7004
- i.visible ? (m(), x("div", {
7004
+ i.visible ? (m(), b("div", {
7005
7005
  key: 0,
7006
7006
  class: "filter-badge__hint",
7007
7007
  style: Ae({
@@ -7049,7 +7049,7 @@ const gd = {
7049
7049
  y[C] == null && (y[C] = !0);
7050
7050
  });
7051
7051
  }, { immediate: !0 });
7052
- function b(D, C) {
7052
+ function x(D, C) {
7053
7053
  y[D] = C;
7054
7054
  const w = ce(D);
7055
7055
  w && w.setVisible(C);
@@ -7127,7 +7127,7 @@ const gd = {
7127
7127
  const C = [...n.selected], [w] = C.splice(P.value, 1);
7128
7128
  C.splice(D, 0, w), r("reorder", C), P.value = null, L.value = null;
7129
7129
  }
7130
- return (D, C) => (m(), x("div", Uf, [
7130
+ return (D, C) => (m(), b("div", Uf, [
7131
7131
  s("div", qf, [
7132
7132
  s("button", {
7133
7133
  class: "selected-tab__add",
@@ -7151,11 +7151,11 @@ const gd = {
7151
7151
  s("span", null, "Вибрати шар", -1)
7152
7152
  ])])
7153
7153
  ]),
7154
- e.selected.length ? (m(), x("div", Yf, [
7154
+ e.selected.length ? (m(), b("div", Yf, [
7155
7155
  s("div", null, [
7156
- (m(!0), x(q, null, J(e.selected, (w, E) => {
7156
+ (m(!0), b(q, null, J(e.selected, (w, E) => {
7157
7157
  var j;
7158
- return m(), x("div", {
7158
+ return m(), b("div", {
7159
7159
  key: w,
7160
7160
  class: pe(["selected-tab__item", {
7161
7161
  "selected-tab__item--dragging": P.value === E,
@@ -7173,7 +7173,7 @@ const gd = {
7173
7173
  type: "checkbox",
7174
7174
  class: "selected-tab__item-checkbox",
7175
7175
  checked: y[w] ?? !0,
7176
- onChange: (U) => b(w, U.target.checked)
7176
+ onChange: (U) => x(w, U.target.checked)
7177
7177
  }, null, 40, Zf),
7178
7178
  s("span", Gf, B(((j = d(w)) == null ? void 0 : j.name) || "Шар"), 1)
7179
7179
  ]),
@@ -7222,7 +7222,7 @@ const gd = {
7222
7222
  ])
7223
7223
  ])) : H("", !0),
7224
7224
  (m(), Q(Xe, { to: "body" }, [
7225
- c.value ? (m(), x("div", {
7225
+ c.value ? (m(), b("div", {
7226
7226
  key: 0,
7227
7227
  ref_key: "menuEl",
7228
7228
  ref: a,
@@ -7391,13 +7391,13 @@ const gd = {
7391
7391
  function u(f) {
7392
7392
  l("change", f.data);
7393
7393
  }
7394
- return (f, c) => (m(), x("div", np, [
7395
- e.layer && i.value ? (m(), x("div", rp, [
7394
+ return (f, c) => (m(), b("div", np, [
7395
+ e.layer && i.value ? (m(), b("div", rp, [
7396
7396
  s("div", null, [
7397
7397
  s("p", op, B(e.layer.name), 1)
7398
7398
  ])
7399
7399
  ])) : H("", !0),
7400
- e.layer && i.value ? (m(), x("div", lp, [
7400
+ e.layer && i.value ? (m(), b("div", lp, [
7401
7401
  s("div", ip, [
7402
7402
  re(le(n), {
7403
7403
  view: "vertical",
@@ -7408,7 +7408,7 @@ const gd = {
7408
7408
  onChange: c[0] || (c[0] = (g) => u(g))
7409
7409
  }, null, 8, ["schema", "value"])
7410
7410
  ])
7411
- ])) : (m(), x("div", sp, [...c[1] || (c[1] = [
7411
+ ])) : (m(), b("div", sp, [...c[1] || (c[1] = [
7412
7412
  s("p", { class: "filter-tab__empty-title" }, "Немає доступних фільтрів", -1),
7413
7413
  s("p", { class: "filter-tab__empty-text" }, " Оберіть шар із фільтрами у каталозі, щоб налаштувати відбір даних. ", -1)
7414
7414
  ])]))
@@ -7488,7 +7488,7 @@ const gd = {
7488
7488
  } else
7489
7489
  r.value = r.value.filter((j) => j !== $), c.value === $ && (a(), c.value = null);
7490
7490
  }
7491
- function b() {
7491
+ function x() {
7492
7492
  r.value.forEach(($) => {
7493
7493
  const T = ce($);
7494
7494
  T && T.setVisible(!1);
@@ -7553,7 +7553,7 @@ const gd = {
7553
7553
  });
7554
7554
  },
7555
7555
  { deep: !0 }
7556
- ), he(L), ($, T) => (m(), x("div", cp, [
7556
+ ), he(L), ($, T) => (m(), b("div", cp, [
7557
7557
  s("div", dp, [
7558
7558
  s("div", fp, [
7559
7559
  T[5] || (T[5] = s("svg", {
@@ -7574,12 +7574,12 @@ const gd = {
7574
7574
  ], -1)),
7575
7575
  s("h2", pp, [
7576
7576
  se(B(I.value) + " ", 1),
7577
- A.value !== null ? (m(), x("span", vp, "(" + B(A.value) + ")", 1)) : H("", !0),
7578
- P.value ? (m(), x("span", mp, B(P.value), 1)) : H("", !0)
7577
+ A.value !== null ? (m(), b("span", vp, "(" + B(A.value) + ")", 1)) : H("", !0),
7578
+ P.value ? (m(), b("span", mp, B(P.value), 1)) : H("", !0)
7579
7579
  ])
7580
7580
  ]),
7581
7581
  s("button", {
7582
- onClick: b,
7582
+ onClick: x,
7583
7583
  class: "p-1 rounded-full hover:bg-gray-200 transition-colors",
7584
7584
  "aria-label": "Reset layers"
7585
7585
  }, [...T[6] || (T[6] = [
@@ -7676,7 +7676,7 @@ const gd = {
7676
7676
  return [{ id: j, text: null }];
7677
7677
  }
7678
7678
  throw new Error("MapAttributeWidget: `attribute` or `list` must be provided");
7679
- }), b = N(() => p.value.map((w) => ({
7679
+ }), x = N(() => p.value.map((w) => ({
7680
7680
  id: w.id,
7681
7681
  label: w.text || a.value[w.id] || w.id
7682
7682
  })));
@@ -7831,7 +7831,7 @@ const gd = {
7831
7831
  const T = N(() => "Набори даних"), R = N(() => o.value.reduce((w, E) => w + E.count, 0)), D = N(() => {
7832
7832
  var j;
7833
7833
  const w = S.value;
7834
- return ((j = b.value.find((U) => U.id === w)) == null ? void 0 : j.label) || null || i.value || w || null;
7834
+ return ((j = x.value.find((U) => U.id === w)) == null ? void 0 : j.label) || null || i.value || w || null;
7835
7835
  });
7836
7836
  function C(w) {
7837
7837
  return R.value ? `${(w / R.value * 100).toFixed(2)}%` : "0.00%";
@@ -7839,11 +7839,11 @@ const gd = {
7839
7839
  return fe(() => {
7840
7840
  var w, E;
7841
7841
  (E = (w = u.value) == null ? void 0 : w.remove) == null || E.call(w);
7842
- }), (w, E) => r.value ? (m(), x("div", xp, [
7842
+ }), (w, E) => r.value ? (m(), b("div", xp, [
7843
7843
  s("div", bp, [
7844
7844
  s("div", null, [
7845
7845
  s("h2", _p, B(T.value), 1),
7846
- D.value && b.value.length === 1 ? (m(), x("p", wp, B(D.value), 1)) : H("", !0)
7846
+ D.value && x.value.length === 1 ? (m(), b("p", wp, B(D.value), 1)) : H("", !0)
7847
7847
  ]),
7848
7848
  s("div", kp, [
7849
7849
  _.value ? (m(), Q(Ft, {
@@ -7873,9 +7873,9 @@ const gd = {
7873
7873
  ])
7874
7874
  ]),
7875
7875
  s("div", $p, [
7876
- b.value.length > 1 ? (m(), x("div", Cp, [
7876
+ x.value.length > 1 ? (m(), b("div", Cp, [
7877
7877
  s("div", Ap, [
7878
- (m(!0), x(q, null, J(b.value, (j) => (m(), x("label", {
7878
+ (m(!0), b(q, null, J(x.value, (j) => (m(), b("label", {
7879
7879
  key: j.id,
7880
7880
  class: "inline-flex items-center gap-2 text-sm text-gray-700"
7881
7881
  }, [
@@ -7891,10 +7891,10 @@ const gd = {
7891
7891
  ]))), 128))
7892
7892
  ])
7893
7893
  ])) : H("", !0),
7894
- l.value ? (m(), x("div", Sp, "Завантаження…")) : o.value.length ? (m(), x(q, { key: 3 }, [
7894
+ l.value ? (m(), b("div", Sp, "Завантаження…")) : o.value.length ? (m(), b(q, { key: 3 }, [
7895
7895
  s("h4", Fp, B(R.value), 1),
7896
7896
  s("ul", Ip, [
7897
- (m(!0), x(q, null, J(o.value, (j) => (m(), x("li", {
7897
+ (m(!0), b(q, null, J(o.value, (j) => (m(), b("li", {
7898
7898
  key: j.id,
7899
7899
  class: "flex flex-wrap items-center justify-between gap-x-2"
7900
7900
  }, [
@@ -7911,9 +7911,9 @@ const gd = {
7911
7911
  ])
7912
7912
  ]))), 128))
7913
7913
  ])
7914
- ], 64)) : (m(), x("div", Ep, "Дані відсутні"))
7914
+ ], 64)) : (m(), b("div", Ep, "Дані відсутні"))
7915
7915
  ])
7916
- ])) : (m(), x("button", {
7916
+ ])) : (m(), b("button", {
7917
7917
  key: 0,
7918
7918
  class: "py-2 px-2.5 max-h-[38px] inline-flex items-center gap-x-1.5 text-sm font-medium rounded-lg border border-gray-200 bg-white text-gray-800 shadow-sm hover:bg-gray-50",
7919
7919
  onClick: E[0] || (E[0] = (j) => r.value = !0)
@@ -8001,7 +8001,7 @@ const gd = {
8001
8001
  }
8002
8002
  ];
8003
8003
  }
8004
- function b(k) {
8004
+ function x(k) {
8005
8005
  const M = k.replace(/\s+/g, "").split(":");
8006
8006
  if (console.log(M), M.length !== 4) return !1;
8007
8007
  const h = [10, 2, 3, 4];
@@ -8029,7 +8029,7 @@ const gd = {
8029
8029
  if (i.value === "here")
8030
8030
  F.searchParams.set("searchtext", k);
8031
8031
  else {
8032
- if (!b(k)) {
8032
+ if (!x(k)) {
8033
8033
  xe({ type: "warning", title: "Пошук кадастру", message: "Кадастровий номер має формат ХХХХХХХХХХ:ХХ:ХХХ:ХХХХ" });
8034
8034
  return;
8035
8035
  }
@@ -8050,12 +8050,12 @@ const gd = {
8050
8050
  }
8051
8051
  }
8052
8052
  }
8053
- return (k, F) => (m(), x("div", zp, [
8053
+ return (k, F) => (m(), b("div", zp, [
8054
8054
  s("form", {
8055
8055
  class: "flex gap-2",
8056
8056
  onSubmit: Te(_, ["prevent"])
8057
8057
  }, [
8058
- l.value.length > 1 ? (m(), x("div", {
8058
+ l.value.length > 1 ? (m(), b("div", {
8059
8059
  key: 0,
8060
8060
  ref_key: "dropdownRef",
8061
8061
  ref: c,
@@ -8067,7 +8067,7 @@ const gd = {
8067
8067
  onClick: F[0] || (F[0] = (M) => f.value = !f.value)
8068
8068
  }, [
8069
8069
  s("span", null, B(v(i.value)), 1),
8070
- (m(), x("svg", {
8070
+ (m(), b("svg", {
8071
8071
  class: pe(["w-4 h-4 text-gray-500 transition-transform", { "rotate-180": f.value }]),
8072
8072
  viewBox: "0 0 24 24",
8073
8073
  fill: "none",
@@ -8082,9 +8082,9 @@ const gd = {
8082
8082
  }, null, -1)
8083
8083
  ])], 2))
8084
8084
  ]),
8085
- f.value ? (m(), x("div", Rp, [
8085
+ f.value ? (m(), b("div", Rp, [
8086
8086
  s("ul", null, [
8087
- (m(!0), x(q, null, J(l.value, (M) => (m(), x("li", {
8087
+ (m(!0), b(q, null, J(l.value, (M) => (m(), b("li", {
8088
8088
  key: M,
8089
8089
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100",
8090
8090
  onClick: (h) => g(M)
@@ -8194,10 +8194,10 @@ const gd = {
8194
8194
  "opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100",
8195
8195
  "pointer-events-none transition-opacity duration-200 whitespace-nowrap"
8196
8196
  ].join(" "), A.textContent = "Друк", A.setAttribute("aria-hidden", "true"), h.appendChild(I), h.appendChild(A), h.addEventListener("click", (P) => {
8197
- P.stopPropagation(), b();
8197
+ P.stopPropagation(), x();
8198
8198
  }), f.value = h, h;
8199
8199
  }
8200
- function b() {
8200
+ function x() {
8201
8201
  if (!u.value) return;
8202
8202
  u.value.style.display === "block" ? _() : S();
8203
8203
  }
@@ -8293,7 +8293,7 @@ const gd = {
8293
8293
  } catch {
8294
8294
  }
8295
8295
  i.value = null;
8296
- }), (h, I) => (m(), x("div", {
8296
+ }), (h, I) => (m(), b("div", {
8297
8297
  ref_key: "root",
8298
8298
  ref: o,
8299
8299
  class: "map-print-control"
@@ -8361,7 +8361,7 @@ const gd = {
8361
8361
  })(), g = o.value ?? f.getZoom();
8362
8362
  f.flyTo({ center: c, zoom: g });
8363
8363
  }
8364
- return (f, c) => (m(), x("div", Gp, [
8364
+ return (f, c) => (m(), b("div", Gp, [
8365
8365
  s("button", {
8366
8366
  id: "center-btn",
8367
8367
  type: "button",
@@ -8383,7 +8383,7 @@ const gd = {
8383
8383
  coordinates: {}
8384
8384
  },
8385
8385
  setup(e) {
8386
- return (t, n) => (m(), x("div", Jp, [
8386
+ return (t, n) => (m(), b("div", Jp, [
8387
8387
  s("span", ev, B(e.coordinates), 1)
8388
8388
  ]));
8389
8389
  }
@@ -8545,7 +8545,7 @@ const gd = {
8545
8545
  const _ = t.mapContext, k = (F = _ == null ? void 0 : _.map) == null ? void 0 : F.value;
8546
8546
  !(_ != null && _.on) || !k || (c == null || c(), c = _.on("move", d), d());
8547
8547
  }
8548
- async function b() {
8548
+ async function x() {
8549
8549
  const _ = t.mapContext;
8550
8550
  if (_) {
8551
8551
  if (typeof _.ready == "function")
@@ -8558,11 +8558,11 @@ const gd = {
8558
8558
  }
8559
8559
  }
8560
8560
  return he(() => {
8561
- g(), b();
8561
+ g(), x();
8562
8562
  }), Z(
8563
8563
  () => t.mapContext,
8564
8564
  () => {
8565
- b(), d();
8565
+ x(), d();
8566
8566
  }
8567
8567
  ), Z(
8568
8568
  () => {
@@ -8570,7 +8570,7 @@ const gd = {
8570
8570
  return (k = (_ = t.mapContext) == null ? void 0 : _.map) == null ? void 0 : k.value;
8571
8571
  },
8572
8572
  () => {
8573
- r.value && (a(), b());
8573
+ r.value && (a(), x());
8574
8574
  }
8575
8575
  ), Z(
8576
8576
  u,
@@ -8587,13 +8587,13 @@ const gd = {
8587
8587
  c == null || c(), c = null, r.value && (r.value.remove(), r.value = null);
8588
8588
  const _ = (k = t.options) == null ? void 0 : k.active;
8589
8589
  typeof _ == "boolean" && (o.value = _), ye(() => {
8590
- g(), b();
8590
+ g(), x();
8591
8591
  });
8592
8592
  },
8593
8593
  { deep: !0 }
8594
8594
  ), fe(() => {
8595
8595
  c == null || c(), c = null, r.value && (r.value.remove(), r.value = null);
8596
- }), (_, k) => (m(), x("div", {
8596
+ }), (_, k) => (m(), b("div", {
8597
8597
  class: pe(["minimap", { "minimap--open": o.value }])
8598
8598
  }, [
8599
8599
  s("button", {
@@ -8625,16 +8625,16 @@ const gd = {
8625
8625
  key: 1,
8626
8626
  class: "absolute bottom-4 right-4 z-[80] flex items-end gap-2"
8627
8627
  }, av = { class: "absolute top-[103px] right-[6.5px] z-[80] flex flex-col items-end gap-1" }, uv = { class: "map-widget__overlay-grid" }, cv = {
8628
- key: 0,
8629
- class: "map-widget__stack-wrapper map-widget__stack-wrapper--top"
8630
- }, dv = { class: "map-widget__stack" }, fv = {
8631
- key: 1,
8632
- class: "map-widget__stack-wrapper map-widget__stack-wrapper--bottom mb-5"
8633
- }, pv = { class: "map-widget__stack map-widget__stack--bottom" }, vv = {
8634
8628
  key: 0,
8635
8629
  id: "map-filter-popover-host",
8636
8630
  class: "map-widget__filter-host"
8637
- }, mv = {
8631
+ }, dv = {
8632
+ key: 1,
8633
+ class: "map-widget__stack-wrapper map-widget__stack-wrapper--top"
8634
+ }, fv = { class: "map-widget__stack" }, pv = {
8635
+ key: 2,
8636
+ class: "map-widget__stack-wrapper map-widget__stack-wrapper--bottom mb-5"
8637
+ }, vv = { class: "map-widget__stack map-widget__stack--bottom" }, mv = {
8638
8638
  key: 0,
8639
8639
  class: "map-widget__state"
8640
8640
  }, gv = {
@@ -8668,7 +8668,7 @@ const gd = {
8668
8668
  var G, oe;
8669
8669
  const z = ((G = o.value) == null ? void 0 : G.minZoom) ?? ((oe = o.value) == null ? void 0 : oe.minzoom) ?? null;
8670
8670
  return typeof z == "number" ? z : null;
8671
- }), b = N(() => {
8671
+ }), x = N(() => {
8672
8672
  var G, oe;
8673
8673
  const z = ((G = o.value) == null ? void 0 : G.maxZoom) ?? ((oe = o.value) == null ? void 0 : oe.maxzoom) ?? null;
8674
8674
  return typeof z == "number" ? z : typeof t.maxZoom == "number" ? t.maxZoom : 20;
@@ -8736,7 +8736,7 @@ const gd = {
8736
8736
  async function w() {
8737
8737
  var oe;
8738
8738
  const z = await R(), G = (oe = z == null ? void 0 : z.map) == null ? void 0 : oe.value;
8739
- G && (typeof p.value == "number" && G.setMinZoom(p.value), typeof b.value == "number" && G.setMaxZoom(b.value));
8739
+ G && (typeof p.value == "number" && G.setMinZoom(p.value), typeof x.value == "number" && G.setMaxZoom(x.value));
8740
8740
  }
8741
8741
  function E() {
8742
8742
  const z = C();
@@ -8816,7 +8816,7 @@ const gd = {
8816
8816
  de.value.includes(z) ? de.value = de.value.filter((G) => G !== z) : de.value.push(z);
8817
8817
  }
8818
8818
  const Se = N(() => (z) => de.value.includes(z.id));
8819
- return Z([p, b], () => {
8819
+ return Z([p, x], () => {
8820
8820
  w();
8821
8821
  }, { immediate: !0 }), Z(g, () => {
8822
8822
  ve();
@@ -8827,7 +8827,7 @@ const gd = {
8827
8827
  () => {
8828
8828
  U();
8829
8829
  }
8830
- ), (z, G) => (m(), x("div", {
8830
+ ), (z, G) => (m(), b("div", {
8831
8831
  class: "map-widget",
8832
8832
  style: Ae(a.value)
8833
8833
  }, [
@@ -8845,7 +8845,7 @@ const gd = {
8845
8845
  boundary: h.value.boundary,
8846
8846
  katottg: h.value.katottg
8847
8847
  }, null, 8, ["boundary", "katottg"])) : H("", !0),
8848
- k.value ? (m(), x("div", sv, [
8848
+ k.value ? (m(), b("div", sv, [
8849
8849
  _.value ? (m(), Q(nv, {
8850
8850
  key: 0,
8851
8851
  coordinates: _.value
@@ -8863,111 +8863,110 @@ const gd = {
8863
8863
  }, null, 8, ["center", "zoom"])) : H("", !0),
8864
8864
  c.value.includes("print") ? (m(), Q(Zp, { key: 1 })) : H("", !0)
8865
8865
  ]),
8866
- f.value ? (m(), x(q, { key: 2 }, [
8866
+ f.value ? (m(), b(q, { key: 2 }, [
8867
8867
  s("div", uv, [
8868
- (m(), x(q, null, J(L, (ee) => (m(), x(q, { key: ee }, [
8869
- s("div", {
8870
- class: pe(["map-widget__side", `map-widget__side--${ee}`])
8871
- }, [
8872
- $.value[ee].top.length ? (m(), x("div", cv, [
8873
- s("div", dv, [
8874
- (m(!0), x(q, null, J($.value[ee].top, (W) => {
8875
- var Ee, Oe, ze, Fe, Re, qe, ct, dt;
8876
- return Me((m(), x("div", {
8877
- key: W.id || W.type,
8878
- class: "map-overlay__item"
8879
- }, [
8880
- W.type === "info" ? (m(), Q(Ln, {
8881
- key: 0,
8882
- title: ((Ee = W.config) == null ? void 0 : Ee.title) || W.title || null,
8883
- content: ((Oe = W.config) == null ? void 0 : Oe.content) || "",
8884
- links: d.value,
8885
- "map-name": v.value,
8886
- "map-description": y.value
8887
- }, null, 8, ["title", "content", "links", "map-name", "map-description"])) : W.type === "catalog" ? (m(), Q(Fn, {
8888
- key: 1,
8889
- api: ((ze = W.config) == null ? void 0 : ze.api) || null
8890
- }, null, 8, ["api"])) : W.type === "layers" ? (m(), Q(En, {
8891
- key: 2,
8892
- layers: ae.value,
8893
- onAction: G[0] || (G[0] = (It) => ke(It.layerId)),
8894
- config: W.config
8895
- }, null, 8, ["layers", "config"])) : W.type === "basemaps" ? (m(), Q(Wt, {
8896
- key: 3,
8897
- layers: ((Fe = W.config) == null ? void 0 : Fe.layers) || null,
8898
- "default-layer": ((Re = W.config) == null ? void 0 : Re.default) || null,
8899
- title: W.title || ((qe = W.config) == null ? void 0 : qe.title) || null
8900
- }, null, 8, ["layers", "default-layer", "title"])) : W.type === "legend" ? (m(), Q(Kt, {
8901
- key: 4,
8902
- items: ((ct = W.config) == null ? void 0 : ct.items) || []
8903
- }, null, 8, ["items"])) : W.type === "filters" && Se.value(W) ? (m(), Q(Ht, {
8904
- key: 5,
8905
- "layer-id": (dt = W.config) == null ? void 0 : dt.layer,
8906
- onClose: ke
8907
- }, null, 8, ["layer-id"])) : W.type === "dataset" || W.type === "attribute" ? (m(), Q(In, {
8908
- key: 6,
8909
- config: W.config
8910
- }, null, 8, ["config"])) : W.type === "search" ? (m(), Q(Mn, {
8911
- key: 7,
8912
- config: W.config
8913
- }, null, 8, ["config"])) : H("", !0)
8914
- ])), [
8915
- [kt, W.visible !== !1]
8916
- ]);
8917
- }), 128))
8918
- ])
8919
- ])) : H("", !0),
8920
- $.value[ee].bottom.length ? (m(), x("div", fv, [
8921
- s("div", pv, [
8922
- (m(!0), x(q, null, J($.value[ee].bottom, (W) => {
8923
- var Ee, Oe, ze, Fe, Re, qe, ct, dt;
8924
- return Me((m(), x("div", {
8925
- key: W.id || W.type,
8926
- class: "map-overlay__item"
8927
- }, [
8928
- W.type === "info" ? (m(), Q(Ln, {
8929
- key: 0,
8930
- title: ((Ee = W.config) == null ? void 0 : Ee.title) || W.title || null,
8931
- content: ((Oe = W.config) == null ? void 0 : Oe.content) || "",
8932
- links: d.value,
8933
- "map-name": v.value,
8934
- "map-description": y.value
8935
- }, null, 8, ["title", "content", "links", "map-name", "map-description"])) : W.type === "catalog" ? (m(), Q(Fn, {
8936
- key: 1,
8937
- api: ((ze = W.config) == null ? void 0 : ze.api) || null
8938
- }, null, 8, ["api"])) : W.type === "layers" ? (m(), Q(En, {
8939
- key: 2,
8940
- layers: ae.value,
8941
- onAction: G[1] || (G[1] = (It) => ke(It.layerId)),
8942
- config: W.config
8943
- }, null, 8, ["layers", "config"])) : W.type === "basemaps" ? (m(), Q(Wt, {
8944
- key: 3,
8945
- layers: ((Fe = W.config) == null ? void 0 : Fe.layers) || null,
8946
- "default-layer": ((Re = W.config) == null ? void 0 : Re.default) || null,
8947
- title: W.title || ((qe = W.config) == null ? void 0 : qe.title) || null
8948
- }, null, 8, ["layers", "default-layer", "title"])) : W.type === "legend" ? (m(), Q(Kt, {
8949
- key: 4,
8950
- items: ((ct = W.config) == null ? void 0 : ct.items) || []
8951
- }, null, 8, ["items"])) : W.type === "filters" && Se.value(W) ? (m(), Q(Ht, {
8952
- key: 5,
8953
- "layer-id": (dt = W.config) == null ? void 0 : dt.layer,
8954
- onClose: ke
8955
- }, null, 8, ["layer-id"])) : W.type === "dataset" || W.type === "attribute" ? (m(), Q(In, {
8956
- key: 6,
8957
- config: W.config
8958
- }, null, 8, ["config"])) : W.type === "search" ? (m(), Q(Mn, {
8959
- key: 7,
8960
- config: W.config
8961
- }, null, 8, ["config"])) : H("", !0)
8962
- ])), [
8963
- [kt, W.visible !== !1]
8964
- ]);
8965
- }), 128))
8966
- ])
8967
- ])) : H("", !0)
8968
- ], 2),
8969
- ee === "left" ? (m(), x("div", vv)) : H("", !0)
8970
- ], 64))), 64))
8868
+ (m(), b(q, null, J(L, (ee) => s("div", {
8869
+ key: ee,
8870
+ class: pe(["map-widget__side", `map-widget__side--${ee}`])
8871
+ }, [
8872
+ ee === "left" ? (m(), b("div", cv)) : H("", !0),
8873
+ $.value[ee].top.length ? (m(), b("div", dv, [
8874
+ s("div", fv, [
8875
+ (m(!0), b(q, null, J($.value[ee].top, (W) => {
8876
+ var Ee, Oe, ze, Fe, Re, qe, ct, dt;
8877
+ return Me((m(), b("div", {
8878
+ key: W.id || W.type,
8879
+ class: "map-overlay__item"
8880
+ }, [
8881
+ W.type === "info" ? (m(), Q(Ln, {
8882
+ key: 0,
8883
+ title: ((Ee = W.config) == null ? void 0 : Ee.title) || W.title || null,
8884
+ content: ((Oe = W.config) == null ? void 0 : Oe.content) || "",
8885
+ links: d.value,
8886
+ "map-name": v.value,
8887
+ "map-description": y.value
8888
+ }, null, 8, ["title", "content", "links", "map-name", "map-description"])) : W.type === "catalog" ? (m(), Q(Fn, {
8889
+ key: 1,
8890
+ api: ((ze = W.config) == null ? void 0 : ze.api) || null
8891
+ }, null, 8, ["api"])) : W.type === "layers" ? (m(), Q(En, {
8892
+ key: 2,
8893
+ layers: ae.value,
8894
+ onAction: G[0] || (G[0] = (It) => ke(It.layerId)),
8895
+ config: W.config
8896
+ }, null, 8, ["layers", "config"])) : W.type === "basemaps" ? (m(), Q(Wt, {
8897
+ key: 3,
8898
+ layers: ((Fe = W.config) == null ? void 0 : Fe.layers) || null,
8899
+ "default-layer": ((Re = W.config) == null ? void 0 : Re.default) || null,
8900
+ title: W.title || ((qe = W.config) == null ? void 0 : qe.title) || null
8901
+ }, null, 8, ["layers", "default-layer", "title"])) : W.type === "legend" ? (m(), Q(Kt, {
8902
+ key: 4,
8903
+ items: ((ct = W.config) == null ? void 0 : ct.items) || []
8904
+ }, null, 8, ["items"])) : W.type === "filters" && Se.value(W) ? (m(), Q(Ht, {
8905
+ key: 5,
8906
+ "layer-id": (dt = W.config) == null ? void 0 : dt.layer,
8907
+ onClose: ke
8908
+ }, null, 8, ["layer-id"])) : W.type === "dataset" || W.type === "attribute" ? (m(), Q(In, {
8909
+ key: 6,
8910
+ config: W.config
8911
+ }, null, 8, ["config"])) : W.type === "search" ? (m(), Q(Mn, {
8912
+ key: 7,
8913
+ config: W.config
8914
+ }, null, 8, ["config"])) : H("", !0)
8915
+ ])), [
8916
+ [kt, W.visible !== !1]
8917
+ ]);
8918
+ }), 128))
8919
+ ])
8920
+ ])) : H("", !0),
8921
+ $.value[ee].bottom.length ? (m(), b("div", pv, [
8922
+ s("div", vv, [
8923
+ (m(!0), b(q, null, J($.value[ee].bottom, (W) => {
8924
+ var Ee, Oe, ze, Fe, Re, qe, ct, dt;
8925
+ return Me((m(), b("div", {
8926
+ key: W.id || W.type,
8927
+ class: "map-overlay__item"
8928
+ }, [
8929
+ W.type === "info" ? (m(), Q(Ln, {
8930
+ key: 0,
8931
+ title: ((Ee = W.config) == null ? void 0 : Ee.title) || W.title || null,
8932
+ content: ((Oe = W.config) == null ? void 0 : Oe.content) || "",
8933
+ links: d.value,
8934
+ "map-name": v.value,
8935
+ "map-description": y.value
8936
+ }, null, 8, ["title", "content", "links", "map-name", "map-description"])) : W.type === "catalog" ? (m(), Q(Fn, {
8937
+ key: 1,
8938
+ api: ((ze = W.config) == null ? void 0 : ze.api) || null
8939
+ }, null, 8, ["api"])) : W.type === "layers" ? (m(), Q(En, {
8940
+ key: 2,
8941
+ layers: ae.value,
8942
+ onAction: G[1] || (G[1] = (It) => ke(It.layerId)),
8943
+ config: W.config
8944
+ }, null, 8, ["layers", "config"])) : W.type === "basemaps" ? (m(), Q(Wt, {
8945
+ key: 3,
8946
+ layers: ((Fe = W.config) == null ? void 0 : Fe.layers) || null,
8947
+ "default-layer": ((Re = W.config) == null ? void 0 : Re.default) || null,
8948
+ title: W.title || ((qe = W.config) == null ? void 0 : qe.title) || null
8949
+ }, null, 8, ["layers", "default-layer", "title"])) : W.type === "legend" ? (m(), Q(Kt, {
8950
+ key: 4,
8951
+ items: ((ct = W.config) == null ? void 0 : ct.items) || []
8952
+ }, null, 8, ["items"])) : W.type === "filters" && Se.value(W) ? (m(), Q(Ht, {
8953
+ key: 5,
8954
+ "layer-id": (dt = W.config) == null ? void 0 : dt.layer,
8955
+ onClose: ke
8956
+ }, null, 8, ["layer-id"])) : W.type === "dataset" || W.type === "attribute" ? (m(), Q(In, {
8957
+ key: 6,
8958
+ config: W.config
8959
+ }, null, 8, ["config"])) : W.type === "search" ? (m(), Q(Mn, {
8960
+ key: 7,
8961
+ config: W.config
8962
+ }, null, 8, ["config"])) : H("", !0)
8963
+ ])), [
8964
+ [kt, W.visible !== !1]
8965
+ ]);
8966
+ }), 128))
8967
+ ])
8968
+ ])) : H("", !0)
8969
+ ], 2)), 64))
8971
8970
  ]),
8972
8971
  re(ur),
8973
8972
  re(dr)
@@ -8976,10 +8975,10 @@ const gd = {
8976
8975
  }),
8977
8976
  _: 1
8978
8977
  }, 512),
8979
- i.value ? (m(), x("div", mv, "Завантаження карти…")) : u.value ? (m(), x("div", gv, B(u.value), 1)) : H("", !0)
8978
+ i.value ? (m(), b("div", mv, "Завантаження карти…")) : u.value ? (m(), b("div", gv, B(u.value), 1)) : H("", !0)
8980
8979
  ], 4));
8981
8980
  }
8982
- }), yv = /* @__PURE__ */ ie(hv, [["__scopeId", "data-v-ce95923f"]]);
8981
+ }), yv = /* @__PURE__ */ ie(hv, [["__scopeId", "data-v-d5d206f3"]]);
8983
8982
  function $v(e) {
8984
8983
  e.component("MapCustom", yv);
8985
8984
  }