@opengis/form 0.1.12 → 0.1.13

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.
@@ -1421,12 +1421,12 @@ const is = { class: "relative w-full bg-white rounded-lg" }, us = { class: "abso
1421
1421
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "labelHtml", "icon", "imgUrl", "option", "view"]))), 128))
1422
1422
  ], 2));
1423
1423
  }
1424
- }), Ye = (e, t) => {
1424
+ }), qe = (e, t) => {
1425
1425
  const n = e.__vccOpts || e;
1426
1426
  for (const [l, o] of t)
1427
1427
  n[l] = o;
1428
1428
  return n;
1429
- }, Is = /* @__PURE__ */ Ye(Ds, [["__scopeId", "data-v-9056e0ec"]]), Ts = 1440 * 60 * 1e3, Fs = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], Es = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], Ps = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
1429
+ }, Is = /* @__PURE__ */ qe(Ds, [["__scopeId", "data-v-9056e0ec"]]), Ts = 1440 * 60 * 1e3, Fs = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], Es = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], Ps = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
1430
1430
  function gt(e) {
1431
1431
  return e instanceof Date && !Number.isNaN(e.getTime());
1432
1432
  }
@@ -1778,7 +1778,7 @@ function si(e, t, n, l, o, a) {
1778
1778
  ])
1779
1779
  ], 38);
1780
1780
  }
1781
- const cl = /* @__PURE__ */ Ye(ei, [["render", si]]), ii = me({
1781
+ const cl = /* @__PURE__ */ qe(ei, [["render", si]]), ii = me({
1782
1782
  components: {
1783
1783
  PickerPopup: cl
1784
1784
  },
@@ -1852,7 +1852,7 @@ function ui(e, t, n, l, o, a) {
1852
1852
  _: 1
1853
1853
  }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
1854
1854
  }
1855
- const di = /* @__PURE__ */ Ye(ii, [["render", ui]]), ci = me({
1855
+ const di = /* @__PURE__ */ qe(ii, [["render", ui]]), ci = me({
1856
1856
  components: {
1857
1857
  PickerPopup: cl
1858
1858
  },
@@ -1936,7 +1936,7 @@ function fi(e, t, n, l, o, a) {
1936
1936
  _: 1
1937
1937
  }, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
1938
1938
  }
1939
- const pi = /* @__PURE__ */ Ye(ci, [["render", fi]]), mi = me({
1939
+ const pi = /* @__PURE__ */ qe(ci, [["render", fi]]), mi = me({
1940
1940
  components: {
1941
1941
  PickerPopup: cl
1942
1942
  },
@@ -2083,7 +2083,7 @@ function vi(e, t, n, l, o, a) {
2083
2083
  } : void 0
2084
2084
  ]), 1032, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
2085
2085
  }
2086
- const gi = /* @__PURE__ */ Ye(mi, [["render", vi]]), yi = me({
2086
+ const gi = /* @__PURE__ */ qe(mi, [["render", vi]]), yi = me({
2087
2087
  components: {
2088
2088
  PickerPopup: cl,
2089
2089
  ChevronUp: Go,
@@ -2237,7 +2237,7 @@ function Ai(e, t, n, l, o, a) {
2237
2237
  _: 1
2238
2238
  }));
2239
2239
  }
2240
- const Vi = /* @__PURE__ */ Ye(yi, [["render", Ai]]), jn = ["time", "day", "month", "year"], Di = (e, t, n = void 0) => {
2240
+ const Vi = /* @__PURE__ */ qe(yi, [["render", Ai]]), jn = ["time", "day", "month", "year"], Di = (e, t, n = void 0) => {
2241
2241
  let l = n || /* @__PURE__ */ new Date();
2242
2242
  const o = Ks([e, l]);
2243
2243
  o && (l = o);
@@ -2528,7 +2528,7 @@ const Vi = /* @__PURE__ */ Ye(yi, [["render", Ai]]), jn = ["time", "day", "month
2528
2528
  return le < we ? e.minimumView : e.startingView;
2529
2529
  }), se = h(() => e.weekDayNames?.length === 7 ? e.weekDayNames : void 0), Se = () => e.startingView === "time" && e.minimumView === "time" ? null : B("day"), Ie = () => {
2530
2530
  if (!a.value || !i.value) return;
2531
- const le = 4, we = 8, Ve = a.value.getBoundingClientRect(), De = i.value.getBoundingClientRect(), Ge = i.value.firstElementChild?.getBoundingClientRect(), yt = window.innerWidth, je = window.innerHeight, qe = window.scrollX || window.pageXOffset, $t = window.scrollY || window.pageYOffset, R = Math.max(160, je - we * 2), te = Math.min(De.height || 0, R), ue = je - Ve.bottom - le - we, A = Ve.top - le - we, g = ue < te && A > ue;
2531
+ const le = 4, we = 8, Ve = a.value.getBoundingClientRect(), De = i.value.getBoundingClientRect(), Ge = i.value.firstElementChild?.getBoundingClientRect(), yt = window.innerWidth, je = window.innerHeight, Ke = window.scrollX || window.pageXOffset, $t = window.scrollY || window.pageYOffset, R = Math.max(160, je - we * 2), te = Math.min(De.height || 0, R), ue = je - Ve.bottom - le - we, A = Ve.top - le - we, g = ue < te && A > ue;
2532
2532
  let L = g ? Ve.top - le - te : Ve.bottom + le;
2533
2533
  L = Math.max(we, Math.min(L, je - we - te));
2534
2534
  const P = Ge?.width || De.width || 268;
@@ -2538,7 +2538,7 @@ const Vi = /* @__PURE__ */ Ye(yi, [["render", Ai]]), jn = ["time", "day", "month
2538
2538
  r.value = {
2539
2539
  position: "absolute",
2540
2540
  top: `${Math.round(L + $t)}px`,
2541
- left: `${Math.round(oe + qe)}px`,
2541
+ left: `${Math.round(oe + Ke)}px`,
2542
2542
  maxHeight: `${Math.round(Math.min(R, Ce))}px`,
2543
2543
  overflowX: "hidden",
2544
2544
  overflowY: "auto",
@@ -2747,7 +2747,7 @@ function Bi(e, t, n, l, o, a) {
2747
2747
  ])) : Y("", !0)
2748
2748
  ], 512);
2749
2749
  }
2750
- const Ri = /* @__PURE__ */ Ye(Ii, [["render", Bi]]), Ni = /* @__PURE__ */ me({
2750
+ const Ri = /* @__PURE__ */ qe(Ii, [["render", Bi]]), Ni = /* @__PURE__ */ me({
2751
2751
  __name: "vs-input-date2",
2752
2752
  props: {
2753
2753
  clearable: { type: Boolean, default: !0 },
@@ -2990,7 +2990,7 @@ const Ri = /* @__PURE__ */ Ye(Ii, [["render", Bi]]), Ni = /* @__PURE__ */ me({
2990
2990
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "typeable", "week-day-names", "week-starts-on", "starting-view", "minimum-view", "input-format", "upper-limit", "name", "class"])
2991
2991
  ], 2));
2992
2992
  }
2993
- }), ji = /* @__PURE__ */ Ye(Ni, [["__scopeId", "data-v-fb3e8176"]]), zi = (e, t) => {
2993
+ }), ji = /* @__PURE__ */ qe(Ni, [["__scopeId", "data-v-fb3e8176"]]), zi = (e, t) => {
2994
2994
  if (!t || !Object.keys(t).length)
2995
2995
  return e;
2996
2996
  const [n, l = ""] = e.split("?"), o = new URLSearchParams(l);
@@ -3166,7 +3166,7 @@ const Ri = /* @__PURE__ */ Ye(Ii, [["render", Bi]]), Ni = /* @__PURE__ */ me({
3166
3166
  ])
3167
3167
  ], 8, Gi));
3168
3168
  }
3169
- }), Dt = /* @__PURE__ */ Ye(Zi, [["__scopeId", "data-v-b03cac5c"]]), Gl = (e) => e ? e.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean).map((t) => t.startsWith(".") ? t.slice(1) : t) : [], Xl = (e, t) => !t || e.size <= t * 1024 * 1024 ? !0 : (Ae({
3169
+ }), Dt = /* @__PURE__ */ qe(Zi, [["__scopeId", "data-v-b03cac5c"]]), Gl = (e) => e ? e.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean).map((t) => t.startsWith(".") ? t.slice(1) : t) : [], Xl = (e, t) => !t || e.size <= t * 1024 * 1024 ? !0 : (Ae({
3170
3170
  type: "error",
3171
3171
  title: "Помилка!",
3172
3172
  message: `Файл "${e.name}" занадто великий. Максимальний розмір: ${t} МБ`,
@@ -4099,7 +4099,7 @@ const uu = { class: "vs-input-file64 flex flex-col gap-2" }, du = { class: "flex
4099
4099
  })
4100
4100
  ]));
4101
4101
  }
4102
- }), ld = /* @__PURE__ */ Ye(nd, [["__scopeId", "data-v-90320b87"]]), ad = { class: "text-[16px] text-gray-900 font-medium" }, od = { class: "grid gap-3" }, rd = /* @__PURE__ */ me({
4102
+ }), ld = /* @__PURE__ */ qe(nd, [["__scopeId", "data-v-90320b87"]]), ad = { class: "text-[16px] text-gray-900 font-medium" }, od = { class: "grid gap-3" }, rd = /* @__PURE__ */ me({
4103
4103
  __name: "vs-container-accordion",
4104
4104
  props: {
4105
4105
  title: {
@@ -4145,7 +4145,7 @@ const uu = { class: "vs-input-file64 flex flex-col gap-2" }, du = { class: "flex
4145
4145
  })
4146
4146
  ]));
4147
4147
  }
4148
- }), sd = /* @__PURE__ */ Ye(rd, [["__scopeId", "data-v-0c825d65"]]), id = { class: "flex items-center justify-between" }, ud = /* @__PURE__ */ me({
4148
+ }), sd = /* @__PURE__ */ qe(rd, [["__scopeId", "data-v-0c825d65"]]), id = { class: "flex items-center justify-between" }, ud = /* @__PURE__ */ me({
4149
4149
  __name: "vs-container-default",
4150
4150
  props: {
4151
4151
  title: {
@@ -4817,23 +4817,23 @@ const $d = /* @__PURE__ */ me({
4817
4817
  }), await De(), await Ze(() => {
4818
4818
  Ce(), C.value?.focus();
4819
4819
  }), yt());
4820
- }, qe = () => {
4820
+ }, Ke = () => {
4821
4821
  w.value = !1, x.value = -1, Ze(() => {
4822
4822
  C.value?.blur();
4823
4823
  });
4824
4824
  }, $t = async (U) => {
4825
4825
  if (a.value) return;
4826
- (U !== void 0 ? U : !w.value) ? await je() : qe();
4826
+ (U !== void 0 ? U : !w.value) ? await je() : Ke();
4827
4827
  }, R = async () => {
4828
4828
  if (!a.value) {
4829
4829
  if (w.value) {
4830
- qe();
4830
+ Ke();
4831
4831
  return;
4832
4832
  }
4833
4833
  await je();
4834
4834
  }
4835
4835
  }, te = () => {
4836
- o.value ? (B.value = [], r.value = [], l("change", []), A(null, [])) : (v.value = null, r.value = null, l("change", null), A(null, null)), Ie(null), Se(null), S.value = "", qe(), Ze(() => {
4836
+ o.value ? (B.value = [], r.value = [], l("change", []), A(null, [])) : (v.value = null, r.value = null, l("change", null), A(null, null)), Ie(null), Se(null), S.value = "", Ke(), Ze(() => {
4837
4837
  C.value?.focus();
4838
4838
  });
4839
4839
  }, ue = (U) => {
@@ -4848,14 +4848,14 @@ const $d = /* @__PURE__ */ me({
4848
4848
  }, g = (U, ae = "manual") => {
4849
4849
  o.value ? (ee(U.id) || (B.value = [...B.value, U.id], r.value = [...B.value], l("change", r.value), A(U)), S.value = "", Ze(() => {
4850
4850
  C.value?.focus(), x.value = Math.min(x.value, ne.value.length - 1);
4851
- }), Ie(null)) : (v.value = U, r.value = U.id, l("change", r.value), A(U), S.value = "", qe(), Ie(U), ae === "parent-auto" && Se({
4851
+ }), Ie(null)) : (v.value = U, r.value = U.id, l("change", r.value), A(U), S.value = "", Ke(), Ie(U), ae === "parent-auto" && Se({
4852
4852
  source: ae,
4853
4853
  parentField: n.parent ?? null,
4854
4854
  parentValue: Ue.value ?? null
4855
4855
  }));
4856
4856
  }, L = (U) => {
4857
4857
  if (ee(U.id)) {
4858
- o.value || qe();
4858
+ o.value || Ke();
4859
4859
  return;
4860
4860
  }
4861
4861
  g(U);
@@ -4898,7 +4898,7 @@ const $d = /* @__PURE__ */ me({
4898
4898
  };
4899
4899
  }, Xe = async (U) => {
4900
4900
  a.value || !w.value && (U.key === "ArrowDown" || U.key === "ArrowUp") && (U.preventDefault(), await je());
4901
- }, Ke = (U) => {
4901
+ }, Ye = (U) => {
4902
4902
  if (!w.value) return;
4903
4903
  const { key: ae } = U;
4904
4904
  if (ae === "ArrowDown")
@@ -4909,16 +4909,16 @@ const $d = /* @__PURE__ */ me({
4909
4909
  U.preventDefault();
4910
4910
  const _e = ne.value[x.value];
4911
4911
  _e && g(_e), C.value?.blur();
4912
- } else ae === "Escape" ? (U.preventDefault(), qe()) : ae === "Backspace" ? o.value && S.value === "" && B.value.length && (B.value = B.value.slice(0, -1), r.value = [...B.value], l("change", r.value)) : ae === "Home" ? (x.value = 0, P(b.value[0], _.value)) : ae === "End" ? (x.value = ne.value.length - 1, P(b.value[x.value], _.value)) : ae === "Tab" && qe();
4912
+ } else ae === "Escape" ? (U.preventDefault(), Ke()) : ae === "Backspace" ? o.value && S.value === "" && B.value.length && (B.value = B.value.slice(0, -1), r.value = [...B.value], l("change", r.value)) : ae === "Home" ? (x.value = 0, P(b.value[0], _.value)) : ae === "End" ? (x.value = ne.value.length - 1, P(b.value[x.value], _.value)) : ae === "Tab" && Ke();
4913
4913
  }, it = () => {
4914
4914
  a.value || (k.value = !0);
4915
4915
  }, dt = () => {
4916
4916
  k.value = !1, S.value = "";
4917
4917
  }, St = (U) => {
4918
- U.key === "Escape" && w.value && qe();
4918
+ U.key === "Escape" && w.value && Ke();
4919
4919
  }, ct = (U) => {
4920
4920
  const ae = U.target;
4921
- d.value?.contains(ae) || $.value?.contains(ae) || qe();
4921
+ d.value?.contains(ae) || $.value?.contains(ae) || Ke();
4922
4922
  }, xt = (U) => {
4923
4923
  w.value && _.value && !_.value.contains(U.target) && Ce();
4924
4924
  }, Zt = () => {
@@ -5069,7 +5069,7 @@ const $d = /* @__PURE__ */ me({
5069
5069
  "on-control-click": R,
5070
5070
  "on-input-focus": it,
5071
5071
  "on-input-blur": dt,
5072
- "on-input-keydown": Ke,
5072
+ "on-input-keydown": Ye,
5073
5073
  "on-remove-selected": ue,
5074
5074
  "on-clear-selected": te,
5075
5075
  "on-toggle-select": $t
@@ -5107,7 +5107,7 @@ const $d = /* @__PURE__ */ me({
5107
5107
  ], 512)
5108
5108
  ], 64));
5109
5109
  }
5110
- }), Ma = /* @__PURE__ */ Ye(ec, [["__scopeId", "data-v-49a64961"]]), Jl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, tc = ["disabled", "aria-expanded"], nc = { class: "truncate" }, lc = { class: "py-2 px-4" }, ac = { class: "block font-medium text-[13px] text-foreground" }, oc = { class: "truncate" }, rc = { class: "p-1 border-t border-gray-200" }, sc = { class: "space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-none [&::-webkit-scrollbar-track]:bg-scrollbar-track [&::-webkit-scrollbar-thumb]:bg-scrollbar-thumb" }, ic = ["onClick"], uc = ["checked"], dc = { class: "shrink-0 size-3.5 flex justify-center items-center" }, cc = {
5110
+ }), Ma = /* @__PURE__ */ qe(ec, [["__scopeId", "data-v-49a64961"]]), Jl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, tc = ["disabled", "aria-expanded"], nc = { class: "truncate" }, lc = { class: "py-2 px-4" }, ac = { class: "block font-medium text-[13px] text-foreground" }, oc = { class: "truncate" }, rc = { class: "p-1 border-t border-gray-200" }, sc = { class: "space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-none [&::-webkit-scrollbar-track]:bg-scrollbar-track [&::-webkit-scrollbar-thumb]:bg-scrollbar-thumb" }, ic = ["onClick"], uc = ["checked"], dc = { class: "shrink-0 size-3.5 flex justify-center items-center" }, cc = {
5111
5111
  key: 1,
5112
5112
  class: "shrink-0 size-2 block mx-auto rounded-full bg-secondary/60"
5113
5113
  }, fc = { class: "truncate" }, pc = {
@@ -5380,7 +5380,7 @@ const $d = /* @__PURE__ */ me({
5380
5380
  }),
5381
5381
  emits: ["update:modelValue"],
5382
5382
  setup(e) {
5383
- const t = jo(() => import("./vs-richtext-CMo9-pJa.js")), n = e, l = ze(e, "modelValue"), o = h(() => !!n.disabled), a = h(() => n.placeholder ?? ""), i = h(() => ({
5383
+ const t = jo(() => import("./vs-richtext-B7BofYig.js")), n = e, l = ze(e, "modelValue"), o = h(() => !!n.disabled), a = h(() => n.placeholder ?? ""), i = h(() => ({
5384
5384
  height: n.richtextProps.height || "300px",
5385
5385
  format: n.format,
5386
5386
  ...n.richtextProps
@@ -5406,7 +5406,7 @@ function bc(e, t) {
5406
5406
  Nl('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12)
5407
5407
  ]));
5408
5408
  }
5409
- const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, kc = {
5409
+ const wc = /* @__PURE__ */ qe(yc, [["render", bc]]), xc = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, kc = {
5410
5410
  key: 0,
5411
5411
  class: "flex flex-col gap-2 !p-4 border-b border-gray-200 md:flex-row md:items-center md:justify-between bg-gray-50"
5412
5412
  }, _c = {
@@ -5670,7 +5670,7 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5670
5670
  const te = Ge(Se.value);
5671
5671
  N === "add" ? Array.isArray(d.value) ? d.value = [...d.value, te] : d.value = [te] : d.value = d.value.map((ue, A) => A === ve ? te : ue), J.value = !1;
5672
5672
  }
5673
- function qe(R) {
5673
+ function Ke(R) {
5674
5674
  d.value = d.value.filter((te, ue) => ue !== R);
5675
5675
  }
5676
5676
  function $t() {
@@ -5798,7 +5798,7 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5798
5798
  row: ue,
5799
5799
  value: ue[g.key],
5800
5800
  column: g
5801
- }) : (u(), m("div", {
5801
+ }, void 0, !0) : (u(), m("div", {
5802
5802
  key: 1,
5803
5803
  class: "text-sm text-gray-900",
5804
5804
  innerHTML: He(g.slot, ue)
@@ -5822,7 +5822,7 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5822
5822
  }, null, 4)
5823
5823
  ])) : ye(g) === "tiptap-editor" ? (u(), m("div", {
5824
5824
  key: 2,
5825
- class: "text-sm font-medium text-gray-900",
5825
+ class: "text-sm font-medium text-gray-900 datatable-tiptap-editor line-clamp-4",
5826
5826
  innerHTML: De(ue, g)
5827
5827
  }, null, 8, Hc)) : (u(), m("div", Wc, de(De(ue, g)), 1))
5828
5828
  ], 64))
@@ -5836,7 +5836,7 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5836
5836
  Z(z(tr), { class: "h-4 w-4" })
5837
5837
  ], 8, Yc),
5838
5838
  c("button", {
5839
- onClick: (g) => qe(A),
5839
+ onClick: (g) => Ke(A),
5840
5840
  class: "p-1.5 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded transition-colors"
5841
5841
  }, [
5842
5842
  Z(z(an), { class: "h-4 w-4" })
@@ -5880,7 +5880,7 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5880
5880
  }, 8, ["visible", "title"])
5881
5881
  ]));
5882
5882
  }
5883
- }), Jc = {}, Qc = {
5883
+ }), Jc = /* @__PURE__ */ qe(Zc, [["__scopeId", "data-v-34b73a50"]]), Qc = {}, ef = {
5884
5884
  xmlns: "http://www.w3.org/2000/svg",
5885
5885
  viewBox: "0 0 24 24",
5886
5886
  fill: "none",
@@ -5890,8 +5890,8 @@ const wc = /* @__PURE__ */ Ye(yc, [["render", bc]]), xc = { class: "bg-white rou
5890
5890
  "stroke-linejoin": "round",
5891
5891
  class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
5892
5892
  };
5893
- function ef(e, t) {
5894
- return u(), m("svg", Qc, t[0] || (t[0] = [
5893
+ function tf(e, t) {
5894
+ return u(), m("svg", ef, t[0] || (t[0] = [
5895
5895
  c("path", {
5896
5896
  stroke: "none",
5897
5897
  d: "M0 0h24v24H0z",
@@ -5902,7 +5902,7 @@ function ef(e, t) {
5902
5902
  c("path", { d: "M7.5 16.5l9 -9" }, null, -1)
5903
5903
  ]));
5904
5904
  }
5905
- const tf = /* @__PURE__ */ Ye(Jc, [["render", ef]]), nf = {}, lf = {
5905
+ const nf = /* @__PURE__ */ qe(Qc, [["render", tf]]), lf = {}, af = {
5906
5906
  xmlns: "http://www.w3.org/2000/svg",
5907
5907
  viewBox: "0 0 24 24",
5908
5908
  fill: "none",
@@ -5912,12 +5912,12 @@ const tf = /* @__PURE__ */ Ye(Jc, [["render", ef]]), nf = {}, lf = {
5912
5912
  "stroke-linejoin": "round",
5913
5913
  class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
5914
5914
  };
5915
- function af(e, t) {
5916
- return u(), m("svg", lf, t[0] || (t[0] = [
5915
+ function of(e, t) {
5916
+ return u(), m("svg", af, t[0] || (t[0] = [
5917
5917
  Nl('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6.5 9.5l3.5 -3"></path><path d="M14 5.5l3 1.5"></path><path d="M18.5 10l-2.5 7"></path><path d="M13.5 17.5l-7 -5"></path>', 9)
5918
5918
  ]));
5919
5919
  }
5920
- const of = /* @__PURE__ */ Ye(nf, [["render", af]]), rf = {}, sf = {
5920
+ const rf = /* @__PURE__ */ qe(lf, [["render", of]]), sf = {}, uf = {
5921
5921
  xmlns: "http://www.w3.org/2000/svg",
5922
5922
  viewBox: "0 0 24 24",
5923
5923
  fill: "none",
@@ -5927,19 +5927,19 @@ const of = /* @__PURE__ */ Ye(nf, [["render", af]]), rf = {}, sf = {
5927
5927
  "stroke-linejoin": "round",
5928
5928
  class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
5929
5929
  };
5930
- function uf(e, t) {
5931
- return u(), m("svg", sf, t[0] || (t[0] = [
5930
+ function df(e, t) {
5931
+ return u(), m("svg", uf, t[0] || (t[0] = [
5932
5932
  Nl('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M8 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M8 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M6 8v8"></path><path d="M18 16v-8"></path><path d="M8 6h8"></path><path d="M16 18h-8"></path>', 9)
5933
5933
  ]));
5934
5934
  }
5935
- const df = /* @__PURE__ */ Ye(rf, [["render", uf]]);
5936
- function cf(e, t, n) {
5935
+ const cf = /* @__PURE__ */ qe(sf, [["render", df]]);
5936
+ function ff(e, t, n) {
5937
5937
  const l = Math.max(0, Math.min(22, Math.floor(n))), o = 2 ** l, a = Math.floor((e + 180) / 360 * o), i = t * Math.PI / 180, r = Math.floor(
5938
5938
  (1 - Math.log(Math.tan(i) + 1 / Math.cos(i)) / Math.PI) / 2 * o
5939
5939
  );
5940
5940
  return { z: l, x: a, y: r };
5941
5941
  }
5942
- function ff(e, t) {
5942
+ function pf(e, t) {
5943
5943
  if (typeof e != "string" || !e.trim() || !/\{z\}/i.test(e)) return;
5944
5944
  const n = {
5945
5945
  "{z}": t.z,
@@ -5962,9 +5962,9 @@ function Aa(e, t) {
5962
5962
  );
5963
5963
  return n !== e ? n : void 0;
5964
5964
  }
5965
- function pf(e, t) {
5965
+ function mf(e, t) {
5966
5966
  if (e?.url) {
5967
- const n = ff(e.url, t);
5967
+ const n = pf(e.url, t);
5968
5968
  if (n) return n;
5969
5969
  const l = Aa(e.url, t);
5970
5970
  if (l) return l;
@@ -5974,16 +5974,16 @@ function pf(e, t) {
5974
5974
  return n || e.preview;
5975
5975
  }
5976
5976
  }
5977
- const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__header" }, yf = { class: "map-layers__body" }, hf = {
5977
+ const vf = ["title", "aria-expanded"], gf = ["src"], yf = { class: "map-layers__header" }, hf = { class: "map-layers__body" }, bf = {
5978
5978
  key: 0,
5979
5979
  class: "map-layers__section"
5980
- }, bf = { class: "map-layers__grid map-layers__grid--4" }, wf = ["disabled", "title", "onClick"], xf = { class: "map-layers__thumb" }, kf = ["src"], _f = { class: "map-layers__option-label" }, $f = {
5980
+ }, wf = { class: "map-layers__grid map-layers__grid--4" }, xf = ["disabled", "title", "onClick"], kf = { class: "map-layers__thumb" }, _f = ["src"], $f = { class: "map-layers__option-label" }, Sf = {
5981
5981
  key: 1,
5982
5982
  class: "map-layers__section"
5983
- }, Sf = { class: "map-layers__grid map-layers__grid--4" }, Cf = ["title", "onClick"], Mf = { class: "map-layers__thumb" }, Lf = ["src"], Af = { class: "map-layers__option-label" }, Vf = {
5983
+ }, Cf = { class: "map-layers__grid map-layers__grid--4" }, Mf = ["title", "onClick"], Lf = { class: "map-layers__thumb" }, Af = ["src"], Vf = { class: "map-layers__option-label" }, Df = {
5984
5984
  key: 2,
5985
5985
  class: "map-layers__section map-layers__section--vector"
5986
- }, Df = { class: "map-layers__vector-list" }, If = ["checked", "disabled", "onChange"], Un = 0.8, Tf = /* @__PURE__ */ me({
5986
+ }, If = { class: "map-layers__vector-list" }, Tf = ["checked", "disabled", "onChange"], Un = 0.8, Ff = /* @__PURE__ */ me({
5987
5987
  __name: "map-layers",
5988
5988
  props: {
5989
5989
  basemaps: {},
@@ -6005,7 +6005,7 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6005
6005
  return ie ? Object.fromEntries(
6006
6006
  Object.entries(Q).map(([he, j]) => [
6007
6007
  String(he),
6008
- pf(j, ie) ?? j.preview ?? ""
6008
+ mf(j, ie) ?? j.preview ?? ""
6009
6009
  ])
6010
6010
  ) : {};
6011
6011
  }
@@ -6085,8 +6085,8 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6085
6085
  src: O.value,
6086
6086
  alt: "",
6087
6087
  class: "map-layers__trigger-img"
6088
- }, null, 8, vf)) : Y("", !0)
6089
- ], 8, mf),
6088
+ }, null, 8, gf)) : Y("", !0)
6089
+ ], 8, vf),
6090
6090
  (u(), be(Xt, { to: "body" }, [
6091
6091
  Z(ll, { name: "map-layers-panel" }, {
6092
6092
  default: rt(() => [
@@ -6099,7 +6099,7 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6099
6099
  role: "dialog",
6100
6100
  "aria-label": "Шари карти"
6101
6101
  }, [
6102
- c("header", gf, [
6102
+ c("header", yf, [
6103
6103
  ie[0] || (ie[0] = c("h3", { class: "map-layers__title" }, "Шари карти", -1)),
6104
6104
  c("button", {
6105
6105
  type: "button",
@@ -6110,10 +6110,10 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6110
6110
  Z(z(_t), { class: "map-layers__close-icon" })
6111
6111
  ])
6112
6112
  ]),
6113
- c("div", yf, [
6114
- v.value ? (u(), m("section", hf, [
6113
+ c("div", hf, [
6114
+ v.value ? (u(), m("section", bf, [
6115
6115
  ie[1] || (ie[1] = c("h4", { class: "map-layers__section-title" }, "Додаткові шари", -1)),
6116
- c("div", bf, [
6116
+ c("div", wf, [
6117
6117
  (u(!0), m(Me, null, Pe(Q.tileOverlays, (he, j) => (u(), m("button", {
6118
6118
  key: `tile-${j}`,
6119
6119
  type: "button",
@@ -6122,19 +6122,19 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6122
6122
  title: he.name || String(j),
6123
6123
  onClick: (J) => ee(String(j))
6124
6124
  }, [
6125
- c("span", xf, [
6125
+ c("span", kf, [
6126
6126
  c("img", {
6127
6127
  src: F(String(j)),
6128
6128
  alt: ""
6129
- }, null, 8, kf)
6129
+ }, null, 8, _f)
6130
6130
  ]),
6131
- c("span", _f, de(he.name || j), 1)
6132
- ], 10, wf))), 128))
6131
+ c("span", $f, de(he.name || j), 1)
6132
+ ], 10, xf))), 128))
6133
6133
  ])
6134
6134
  ])) : Y("", !0),
6135
- k.value ? (u(), m("section", $f, [
6135
+ k.value ? (u(), m("section", Sf, [
6136
6136
  ie[2] || (ie[2] = c("h4", { class: "map-layers__section-title" }, "Базові шари", -1)),
6137
- c("div", Sf, [
6137
+ c("div", Cf, [
6138
6138
  (u(!0), m(Me, null, Pe(Q.basemaps, (he, j) => (u(), m("button", {
6139
6139
  key: `base-${j}`,
6140
6140
  type: "button",
@@ -6142,19 +6142,19 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6142
6142
  title: he.name || String(j),
6143
6143
  onClick: (J) => ke(String(j))
6144
6144
  }, [
6145
- c("span", Mf, [
6145
+ c("span", Lf, [
6146
6146
  c("img", {
6147
6147
  src: G(String(j)),
6148
6148
  alt: ""
6149
- }, null, 8, Lf)
6149
+ }, null, 8, Af)
6150
6150
  ]),
6151
- c("span", Af, de(he.name || j), 1)
6152
- ], 10, Cf))), 128))
6151
+ c("span", Vf, de(he.name || j), 1)
6152
+ ], 10, Mf))), 128))
6153
6153
  ])
6154
6154
  ])) : Y("", !0),
6155
- b.value ? (u(), m("section", Vf, [
6155
+ b.value ? (u(), m("section", Df, [
6156
6156
  ie[3] || (ie[3] = c("h4", { class: "map-layers__section-title" }, "Дані", -1)),
6157
- c("div", Df, [
6157
+ c("div", If, [
6158
6158
  (u(!0), m(Me, null, Pe(x.value, (he) => (u(), m("label", {
6159
6159
  key: he.id,
6160
6160
  class: "map-layers__vector-item"
@@ -6165,7 +6165,7 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6165
6165
  checked: he.visible,
6166
6166
  disabled: Q.disabled,
6167
6167
  onChange: (j) => ne(he.id)
6168
- }, null, 40, If),
6168
+ }, null, 40, Tf),
6169
6169
  c("span", null, de(he.label), 1)
6170
6170
  ]))), 128))
6171
6171
  ])
@@ -6178,8 +6178,8 @@ const mf = ["title", "aria-expanded"], vf = ["src"], gf = { class: "map-layers__
6178
6178
  ]))
6179
6179
  ], 2)) : Y("", !0);
6180
6180
  }
6181
- }), Ff = /* @__PURE__ */ Ye(Tf, [["__scopeId", "data-v-c1206d48"]]), un = 1e-10, Hn = /([+-]?\d{1,3})\s*[°º˚]\s*(\d{1,2})\s*['’′`]\s*(\d{1,2}(?:\.\d+)?)\s*["”″]\s*([NSEW])/gi, Ef = /^[+-]?\d+(?:\.\d+)?$/;
6182
- function Pf(e, t, n) {
6181
+ }), Ef = /* @__PURE__ */ qe(Ff, [["__scopeId", "data-v-c1206d48"]]), un = 1e-10, Hn = /([+-]?\d{1,3})\s*[°º˚]\s*(\d{1,2})\s*['’′`]\s*(\d{1,2}(?:\.\d+)?)\s*["”″]\s*([NSEW])/gi, Pf = /^[+-]?\d+(?:\.\d+)?$/;
6182
+ function Of(e, t, n) {
6183
6183
  const l = e.split(/\r?\n/).map((f) => f.trim()).filter(Boolean);
6184
6184
  if (l.length < 3)
6185
6185
  return {
@@ -6203,7 +6203,7 @@ function Pf(e, t, n) {
6203
6203
  };
6204
6204
  const o = [], a = [];
6205
6205
  if (l.forEach((f, _) => {
6206
- const $ = _ + 1, w = t === "decimal" ? Of(f, $, n) : oo(f, $, n);
6206
+ const $ = _ + 1, w = t === "decimal" ? Bf(f, $, n) : oo(f, $, n);
6207
6207
  if (!w.ok) {
6208
6208
  o.push(...w.errors);
6209
6209
  return;
@@ -6216,7 +6216,7 @@ function Pf(e, t, n) {
6216
6216
  a.push(w.point);
6217
6217
  }), o.length)
6218
6218
  return { ok: !1, errors: o };
6219
- if (new Set(a.map(Rf)).size < 3)
6219
+ if (new Set(a.map(Nf)).size < 3)
6220
6220
  return {
6221
6221
  ok: !1,
6222
6222
  errors: [
@@ -6228,7 +6228,7 @@ function Pf(e, t, n) {
6228
6228
  };
6229
6229
  const r = [...a];
6230
6230
  let d = !1;
6231
- return Da(r[0], r[r.length - 1]) || (r.push(r[0]), d = !0), Nf(r) ? {
6231
+ return Da(r[0], r[r.length - 1]) || (r.push(r[0]), d = !0), jf(r) ? {
6232
6232
  ok: !1,
6233
6233
  errors: [
6234
6234
  {
@@ -6242,13 +6242,13 @@ function Pf(e, t, n) {
6242
6242
  wasClosedAutomatically: d
6243
6243
  };
6244
6244
  }
6245
- function Of(e, t, n) {
6245
+ function Bf(e, t, n) {
6246
6246
  return ao(e, "decimal", n, t);
6247
6247
  }
6248
6248
  function ao(e, t, n, l = 1) {
6249
- return t === "decimal" ? Bf(e, l, n) : oo(e, l, n);
6249
+ return t === "decimal" ? Rf(e, l, n) : oo(e, l, n);
6250
6250
  }
6251
- function Bf(e, t, n) {
6251
+ function Rf(e, t, n) {
6252
6252
  const l = [];
6253
6253
  if (/[A-Za-zА-Яа-яІіЇїЄєҐґ]/.test(e))
6254
6254
  return {
@@ -6266,7 +6266,7 @@ function Bf(e, t, n) {
6266
6266
  ok: !1,
6267
6267
  errors: [{ line: t, message: "У рядку дозволено лише одну пару координат." }]
6268
6268
  };
6269
- if (!o.every((f) => Ef.test(f)))
6269
+ if (!o.every((f) => Pf.test(f)))
6270
6270
  return {
6271
6271
  ok: !1,
6272
6272
  errors: [{ line: t, message: "Не вдалося розпізнати десяткові координати." }]
@@ -6339,25 +6339,25 @@ function Va(e, t, n) {
6339
6339
  const $ = f + o / 60 + a / 3600;
6340
6340
  return { ok: !0, value: i === "S" || i === "W" ? -$ : $ };
6341
6341
  }
6342
- function Rf(e) {
6342
+ function Nf(e) {
6343
6343
  return `${e[0].toFixed(12)}:${e[1].toFixed(12)}`;
6344
6344
  }
6345
6345
  function Da(e, t) {
6346
6346
  return Math.abs(e[0] - t[0]) < un && Math.abs(e[1] - t[1]) < un;
6347
6347
  }
6348
- function Nf(e) {
6348
+ function jf(e) {
6349
6349
  if (e.length < 4) return !1;
6350
6350
  for (let t = 0; t < e.length - 1; t += 1) {
6351
6351
  const n = e[t], l = e[t + 1];
6352
6352
  for (let o = t + 1; o < e.length - 1; o += 1) {
6353
6353
  if (Math.abs(t - o) <= 1 || t === 0 && o === e.length - 2) continue;
6354
6354
  const a = e[o], i = e[o + 1];
6355
- if (jf(n, l, a, i)) return !0;
6355
+ if (zf(n, l, a, i)) return !0;
6356
6356
  }
6357
6357
  }
6358
6358
  return !1;
6359
6359
  }
6360
- function jf(e, t, n, l) {
6360
+ function zf(e, t, n, l) {
6361
6361
  const o = Wn(e, t, n), a = Wn(e, t, l), i = Wn(n, l, e), r = Wn(n, l, t);
6362
6362
  return !!(o !== a && i !== r || o === 0 && qn(e, n, t) || a === 0 && qn(e, l, t) || i === 0 && qn(n, e, l) || r === 0 && qn(n, t, l));
6363
6363
  }
@@ -6368,16 +6368,16 @@ function Wn(e, t, n) {
6368
6368
  function qn(e, t, n) {
6369
6369
  return t[0] <= Math.max(e[0], n[0]) + un && t[0] + un >= Math.min(e[0], n[0]) && t[1] <= Math.max(e[1], n[1]) + un && t[1] + un >= Math.min(e[1], n[1]);
6370
6370
  }
6371
- const zf = ["title"], Uf = {
6371
+ const Uf = ["title"], Hf = {
6372
6372
  key: 0,
6373
6373
  class: "vs-select__options absolute z-50 mt-1 w-auto min-w-full bg-white border border-gray-300 shadow-lg rounded-lg text-sm text-gray-900"
6374
- }, Hf = ["onClick"], Wf = ["placeholder"], qf = { class: "absolute inset-y-0 right-2 flex items-center gap-1" }, Kf = { class: "flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-100" }, Yf = { class: "text-xs font-semibold uppercase tracking-wide text-gray-500" }, Gf = { class: "max-h-[260px] overflow-auto" }, Xf = {
6374
+ }, Wf = ["onClick"], qf = ["placeholder"], Kf = { class: "absolute inset-y-0 right-2 flex items-center gap-1" }, Yf = { class: "flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-100" }, Gf = { class: "text-xs font-semibold uppercase tracking-wide text-gray-500" }, Xf = { class: "max-h-[260px] overflow-auto" }, Zf = {
6375
6375
  key: 0,
6376
6376
  class: "divide-y divide-gray-100"
6377
- }, Zf = ["onClick"], Jf = {
6377
+ }, Jf = ["onClick"], Qf = {
6378
6378
  key: 1,
6379
6379
  class: "px-3 py-3 text-xs text-gray-500"
6380
- }, Ia = "formMapSearchAddressHistory", Qf = 12, ep = "https://geo.rv.ua/api-user/dzk.api", tp = "https://nominatim.openstreetmap.org/search", np = /* @__PURE__ */ me({
6380
+ }, Ia = "formMapSearchAddressHistory", ep = 12, tp = "https://geo.rv.ua/api-user/dzk.api", np = "https://nominatim.openstreetmap.org/search", lp = /* @__PURE__ */ me({
6381
6381
  __name: "map-search",
6382
6382
  props: {
6383
6383
  config: {}
@@ -6402,8 +6402,8 @@ const zf = ["title"], Uf = {
6402
6402
  pointerEvents: "none",
6403
6403
  zIndex: "9999"
6404
6404
  }), document.body.appendChild(L);
6405
- const Ke = A.getBoundingClientRect();
6406
- L.style.left = `${Ke.right + window.scrollX + P}px`, L.style.top = `${Ke.top + window.scrollY + (Ke.height - L.offsetHeight) / 2}px`;
6405
+ const Ye = A.getBoundingClientRect();
6406
+ L.style.left = `${Ye.right + window.scrollX + P}px`, L.style.top = `${Ye.top + window.scrollY + (Ye.height - L.offsetHeight) / 2}px`;
6407
6407
  }, Ce = () => {
6408
6408
  L?.parentNode && L.parentNode.removeChild(L), L = null;
6409
6409
  };
@@ -6484,7 +6484,7 @@ const zf = ["title"], Uf = {
6484
6484
  });
6485
6485
  function j() {
6486
6486
  if (!K.value) return;
6487
- const A = K.value.getBoundingClientRect(), g = D.value?.getBoundingClientRect(), L = g?.width ?? A.width, P = (g?.left ?? A.left) + window.scrollX, oe = A.bottom + window.scrollY + Qf;
6487
+ const A = K.value.getBoundingClientRect(), g = D.value?.getBoundingClientRect(), L = g?.width ?? A.width, P = (g?.left ?? A.left) + window.scrollX, oe = A.bottom + window.scrollY + ep;
6488
6488
  he.left = `${P}px`, he.top = `${oe}px`, he.width = `${L}px`, he.display = "block";
6489
6489
  }
6490
6490
  const J = () => {
@@ -6577,26 +6577,26 @@ const zf = ["title"], Uf = {
6577
6577
  if (P.length < 2) return null;
6578
6578
  const oe = P.slice(0, 2).map(Number);
6579
6579
  if (!oe.every((ct) => Number.isFinite(ct))) return null;
6580
- let [Ce, Xe] = oe, Ke = Ce, it = Xe;
6580
+ let [Ce, Xe] = oe, Ye = Ce, it = Xe;
6581
6581
  const dt = (ct) => Math.abs(ct) <= 90, St = (ct) => Math.abs(ct) <= 180;
6582
- if (!dt(Ke) || !St(it))
6583
- if (dt(it) && St(Ke))
6584
- Ke = Xe, it = Ce;
6582
+ if (!dt(Ye) || !St(it))
6583
+ if (dt(it) && St(Ye))
6584
+ Ye = Xe, it = Ce;
6585
6585
  else
6586
6586
  return null;
6587
- return { lat: Ke, lng: it };
6587
+ return { lat: Ye, lng: it };
6588
6588
  }
6589
6589
  function Ne(A) {
6590
6590
  const g = A?.result || A?.data || A;
6591
6591
  return (Array.isArray(g) ? g : g ? [g] : []).map((P, oe) => {
6592
6592
  const Ce = P?.geom_centroid, Xe = Array.isArray(Ce?.coordinates) ? Ce.coordinates : null;
6593
6593
  if (!Xe || Xe.length < 2) return null;
6594
- const Ke = Number(Xe[0]), it = Number(Xe[1]);
6595
- return !Number.isFinite(it) || !Number.isFinite(Ke) ? null : {
6594
+ const Ye = Number(Xe[0]), it = Number(Xe[1]);
6595
+ return !Number.isFinite(it) || !Number.isFinite(Ye) ? null : {
6596
6596
  id: String(P?.parcel_id ?? P?.cad_num ?? oe),
6597
6597
  title: P?.cadnum || P?.cad_num || "Земельна ділянка",
6598
6598
  lat: it,
6599
- lng: Ke
6599
+ lng: Ye
6600
6600
  };
6601
6601
  }).filter((P) => !!P);
6602
6602
  }
@@ -6604,8 +6604,8 @@ const zf = ["title"], Uf = {
6604
6604
  return (Array.isArray(A?.features) ? A.features : []).map((L, P) => {
6605
6605
  const oe = L?.geometry?.coordinates, Ce = Number(oe?.[0]), Xe = Number(oe?.[1]);
6606
6606
  if (!Number.isFinite(Xe) || !Number.isFinite(Ce)) return null;
6607
- const Ke = L?.properties || {}, it = Ke?.geocoding?.label || Ke?.display_name || Ke?.label || "Адреса";
6608
- return { id: String(Ke?.geocoding?.place_id || Ke?.place_id || P), title: it, lat: Xe, lng: Ce };
6607
+ const Ye = L?.properties || {}, it = Ye?.geocoding?.label || Ye?.display_name || Ye?.label || "Адреса";
6608
+ return { id: String(Ye?.geocoding?.place_id || Ye?.place_id || P), title: it, lat: Xe, lng: Ce };
6609
6609
  }).filter((L) => !!L);
6610
6610
  }
6611
6611
  function We(A) {
@@ -6636,7 +6636,7 @@ const zf = ["title"], Uf = {
6636
6636
  }).filter((L) => !!L?.title);
6637
6637
  }
6638
6638
  function De(A) {
6639
- const g = f() || ep;
6639
+ const g = f() || tp;
6640
6640
  if (g.includes(":id"))
6641
6641
  return g.replace(":id", encodeURIComponent(A));
6642
6642
  if (g.includes(":name"))
@@ -6669,7 +6669,7 @@ const zf = ["title"], Uf = {
6669
6669
  return Ve(P);
6670
6670
  }
6671
6671
  async function yt(A) {
6672
- const g = new URL(tp);
6672
+ const g = new URL(np);
6673
6673
  g.searchParams.set("format", "geojson"), g.searchParams.set("q", A), g.searchParams.set("addressdetails", "1"), g.searchParams.set("bounded", "1");
6674
6674
  const L = r();
6675
6675
  L && g.searchParams.set("viewbox", L);
@@ -6703,7 +6703,7 @@ const zf = ["title"], Uf = {
6703
6703
  }
6704
6704
  G.value = g;
6705
6705
  }
6706
- async function qe(A) {
6706
+ async function Ke(A) {
6707
6707
  if (We(A)) {
6708
6708
  te(A), ie(A);
6709
6709
  return;
@@ -6810,7 +6810,7 @@ const zf = ["title"], Uf = {
6810
6810
  title: Le(x.value)
6811
6811
  }, [
6812
6812
  et(de(Le(x.value)), 1)
6813
- ], 8, zf)), [
6813
+ ], 8, Uf)), [
6814
6814
  [n, Ue(x.value)]
6815
6815
  ]),
6816
6816
  (u(), m("svg", {
@@ -6828,7 +6828,7 @@ const zf = ["title"], Uf = {
6828
6828
  }, null, -1)
6829
6829
  ]), 2))
6830
6830
  ]),
6831
- S.value ? (u(), m("div", Uf, [
6831
+ S.value ? (u(), m("div", Hf, [
6832
6832
  c("ul", null, [
6833
6833
  (u(!0), m(Me, null, Pe(k.value, (L) => Oe((u(), m("li", {
6834
6834
  key: L,
@@ -6836,7 +6836,7 @@ const zf = ["title"], Uf = {
6836
6836
  onClick: (P) => se(L, P)
6837
6837
  }, [
6838
6838
  et(de(Le(L)), 1)
6839
- ], 8, Hf)), [
6839
+ ], 8, Wf)), [
6840
6840
  [n, Ue(L)]
6841
6841
  ])), 128))
6842
6842
  ])
@@ -6860,7 +6860,7 @@ const zf = ["title"], Uf = {
6860
6860
  type: "text",
6861
6861
  class: re(["vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", ke.value ? "!pr-14" : "!pr-8"]),
6862
6862
  onFocus: $t
6863
- }, null, 42, Wf)), [
6863
+ }, null, 42, qf)), [
6864
6864
  [
6865
6865
  ot,
6866
6866
  b.value,
@@ -6868,7 +6868,7 @@ const zf = ["title"], Uf = {
6868
6868
  { trim: !0 }
6869
6869
  ]
6870
6870
  ]),
6871
- c("div", qf, [
6871
+ c("div", Kf, [
6872
6872
  ke.value ? (u(), m("button", {
6873
6873
  key: 0,
6874
6874
  type: "button",
@@ -6922,8 +6922,8 @@ const zf = ["title"], Uf = {
6922
6922
  class: "vs-select__options mt-1 bg-white border border-gray-300 rounded-lg shadow-lg text-sm text-gray-900 z-50",
6923
6923
  style: Ee(he)
6924
6924
  }, [
6925
- c("div", Kf, [
6926
- c("span", Yf, de(ne.value), 1),
6925
+ c("div", Yf, [
6926
+ c("span", Gf, de(ne.value), 1),
6927
6927
  c("button", {
6928
6928
  type: "button",
6929
6929
  class: "text-gray-400 hover:text-gray-600",
@@ -6931,14 +6931,14 @@ const zf = ["title"], Uf = {
6931
6931
  onClick: g[2] || (g[2] = (L) => O.value = !1)
6932
6932
  }, " ✕ ")
6933
6933
  ]),
6934
- c("div", Gf, [
6935
- ee.value.length ? (u(), m("ul", Xf, [
6934
+ c("div", Xf, [
6935
+ ee.value.length ? (u(), m("ul", Zf, [
6936
6936
  (u(!0), m(Me, null, Pe(ee.value, (L) => (u(), m("li", {
6937
6937
  key: L.id,
6938
6938
  class: "px-3 py-2 cursor-pointer hover:bg-gray-50",
6939
- onClick: (P) => qe(L)
6940
- }, de(L.title), 9, Zf))), 128))
6941
- ])) : (u(), m("div", Jf, de(ge.value), 1))
6939
+ onClick: (P) => Ke(L)
6940
+ }, de(L.title), 9, Jf))), 128))
6941
+ ])) : (u(), m("div", Qf, de(ge.value), 1))
6942
6942
  ])
6943
6943
  ], 4)
6944
6944
  ])) : Y("", !0)
@@ -6946,7 +6946,7 @@ const zf = ["title"], Uf = {
6946
6946
  ], 32)
6947
6947
  ], 512));
6948
6948
  }
6949
- }), lp = /* @__PURE__ */ Ye(np, [["__scopeId", "data-v-4d528cf7"]]), ap = { class: "pt-1 border-t border-gray-100" }, op = { class: "space-y-1" }, rp = /* @__PURE__ */ me({
6949
+ }), ap = /* @__PURE__ */ qe(lp, [["__scopeId", "data-v-4d528cf7"]]), op = { class: "pt-1 border-t border-gray-100" }, rp = { class: "space-y-1" }, sp = /* @__PURE__ */ me({
6950
6950
  __name: "AddCoordinates",
6951
6951
  emits: ["submit", "cancel"],
6952
6952
  setup(e, { emit: t }) {
@@ -6958,9 +6958,9 @@ const zf = ["title"], Uf = {
6958
6958
  }, r = () => {
6959
6959
  l.value = null, o.value = null, n("cancel");
6960
6960
  };
6961
- return (d, f) => (u(), m("div", ap, [
6961
+ return (d, f) => (u(), m("div", op, [
6962
6962
  f[2] || (f[2] = c("p", { class: "text-xs text-gray-600 mb-1" }, "Додати точку за координатами:", -1)),
6963
- c("div", op, [
6963
+ c("div", rp, [
6964
6964
  Oe(c("input", {
6965
6965
  "onUpdate:modelValue": f[0] || (f[0] = (_) => l.value = _),
6966
6966
  type: "number",
@@ -7004,7 +7004,7 @@ const zf = ["title"], Uf = {
7004
7004
  ])
7005
7005
  ]));
7006
7006
  }
7007
- }), sp = /* @__PURE__ */ me({
7007
+ }), ip = /* @__PURE__ */ me({
7008
7008
  __name: "BtnAdd",
7009
7009
  emits: ["click"],
7010
7010
  setup(e) {
@@ -7019,7 +7019,7 @@ const zf = ["title"], Uf = {
7019
7019
  n[1] || (n[1] = et(" Додати ", -1))
7020
7020
  ]));
7021
7021
  }
7022
- }), ip = /* @__PURE__ */ me({
7022
+ }), up = /* @__PURE__ */ me({
7023
7023
  __name: "BtnClear",
7024
7024
  emits: ["click"],
7025
7025
  setup(e) {
@@ -7034,7 +7034,7 @@ const zf = ["title"], Uf = {
7034
7034
  n[1] || (n[1] = et(" Очистити ", -1))
7035
7035
  ]));
7036
7036
  }
7037
- }), up = /* @__PURE__ */ me({
7037
+ }), dp = /* @__PURE__ */ me({
7038
7038
  __name: "BtnComplete",
7039
7039
  emits: ["click"],
7040
7040
  setup(e) {
@@ -7049,23 +7049,23 @@ const zf = ["title"], Uf = {
7049
7049
  n[1] || (n[1] = et("Замкнути ", -1))
7050
7050
  ]));
7051
7051
  }
7052
- }), dp = new Intl.NumberFormat("uk-UA", {
7052
+ }), cp = new Intl.NumberFormat("uk-UA", {
7053
7053
  minimumFractionDigits: 2,
7054
7054
  maximumFractionDigits: 2
7055
7055
  });
7056
7056
  function sn(e) {
7057
- return dp.format(e);
7057
+ return cp.format(e);
7058
7058
  }
7059
7059
  function ro(e) {
7060
7060
  return e >= 1e3 ? `${sn(e / 1e3)} км` : `${sn(e)} м`;
7061
7061
  }
7062
- const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5" }, fp = {
7062
+ const fp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5" }, pp = {
7063
7063
  key: 0,
7064
7064
  class: "flex-1 flex gap-1"
7065
- }, pp = {
7065
+ }, mp = {
7066
7066
  key: 1,
7067
7067
  class: "flex-1 font-mono text-gray-700"
7068
- }, mp = /* @__PURE__ */ me({
7068
+ }, vp = /* @__PURE__ */ me({
7069
7069
  __name: "DotListItem",
7070
7070
  props: {
7071
7071
  id: {},
@@ -7094,13 +7094,13 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7094
7094
  }, $ = () => {
7095
7095
  l("delete", n.id);
7096
7096
  };
7097
- return (w, k) => (u(), m("div", cp, [
7097
+ return (w, k) => (u(), m("div", fp, [
7098
7098
  Z(z(za), {
7099
7099
  size: 12,
7100
7100
  "stroke-width": 2,
7101
7101
  class: "text-gray-400 flex-shrink-0"
7102
7102
  }),
7103
- a.value ? (u(), m("div", fp, [
7103
+ a.value ? (u(), m("div", pp, [
7104
7104
  Oe(c("input", {
7105
7105
  "onUpdate:modelValue": k[0] || (k[0] = (v) => i.value = v),
7106
7106
  type: "number",
@@ -7138,7 +7138,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7138
7138
  type: "button",
7139
7139
  onClick: _
7140
7140
  }, " ✓ ")
7141
- ])) : (u(), m("span", pp, de(o.value), 1)),
7141
+ ])) : (u(), m("span", mp, de(o.value), 1)),
7142
7142
  a.value ? Y("", !0) : (u(), m("button", {
7143
7143
  key: 2,
7144
7144
  class: "text-blue-500 hover:text-blue-600 px-0.5",
@@ -7152,40 +7152,40 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7152
7152
  }, " ✕ ")
7153
7153
  ]));
7154
7154
  }
7155
- }), vp = { class: "ruler-control px-3 py-2.5 space-y-2" }, gp = {
7155
+ }), gp = { class: "ruler-control px-3 py-2.5 space-y-2" }, yp = {
7156
7156
  type: "button",
7157
7157
  class: "ruler-row w-full flex items-center gap-2 cursor-pointer group text-left"
7158
- }, yp = {
7158
+ }, hp = {
7159
7159
  class: /* @__PURE__ */ re([
7160
7160
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
7161
7161
  ]),
7162
7162
  title: "Сумарна довжина всіх відрізків",
7163
7163
  "aria-hidden": "true"
7164
- }, hp = { class: "text-sm font-semibold text-slate-700" }, bp = { class: "ruler-row" }, wp = {
7164
+ }, bp = { class: "text-sm font-semibold text-slate-700" }, wp = { class: "ruler-row" }, xp = {
7165
7165
  type: "button",
7166
7166
  class: "w-full flex items-center gap-2 cursor-pointer group text-left"
7167
- }, xp = {
7167
+ }, kp = {
7168
7168
  class: /* @__PURE__ */ re([
7169
7169
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
7170
7170
  ]),
7171
7171
  title: "Площа замкнутого контуру",
7172
7172
  "aria-hidden": "true"
7173
- }, kp = { class: "inline-flex rounded-md overflow-hidden border border-gray-200 bg-gray-100" }, _p = ["onClick"], $p = { class: "flex items-center gap-2 mt-0.5 pl-7" }, Sp = {
7173
+ }, _p = { class: "inline-flex rounded-md overflow-hidden border border-gray-200 bg-gray-100" }, $p = ["onClick"], Sp = { class: "flex items-center gap-2 mt-0.5 pl-7" }, Cp = {
7174
7174
  key: 0,
7175
7175
  class: "text-base font-semibold text-green-600"
7176
- }, Cp = {
7176
+ }, Mp = {
7177
7177
  key: 1,
7178
7178
  class: "text-xs text-gray-400"
7179
- }, Mp = { class: "ruler-row flex items-center gap-2 cursor-pointer" }, Lp = {
7179
+ }, Lp = { class: "ruler-row flex items-center gap-2 cursor-pointer" }, Ap = {
7180
7180
  class: /* @__PURE__ */ re([
7181
7181
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
7182
7182
  ]),
7183
7183
  title: "Список точок",
7184
7184
  "aria-hidden": "true"
7185
- }, Ap = { class: "text-xs font-medium text-gray-600 flex-1" }, Vp = {
7185
+ }, Vp = { class: "text-xs font-medium text-gray-600 flex-1" }, Dp = {
7186
7186
  key: 0,
7187
7187
  class: "pt-1.5 border-t border-gray-100 max-h-32 overflow-y-auto space-y-1"
7188
- }, Dp = /* @__PURE__ */ me({
7188
+ }, Ip = /* @__PURE__ */ me({
7189
7189
  __name: "ControlPanel",
7190
7190
  props: {
7191
7191
  points: {},
@@ -7255,27 +7255,27 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7255
7255
  () => {
7256
7256
  t.points.length === 0 && (n.value = !1);
7257
7257
  }
7258
- ), (v, x) => (u(), m("div", vp, [
7259
- c("button", gp, [
7260
- c("span", yp, [
7258
+ ), (v, x) => (u(), m("div", gp, [
7259
+ c("button", yp, [
7260
+ c("span", hp, [
7261
7261
  Z(z(dn), {
7262
7262
  size: 12,
7263
7263
  "stroke-width": 2.5
7264
7264
  })
7265
7265
  ]),
7266
7266
  x[1] || (x[1] = c("span", { class: "text-xs font-medium text-gray-600 flex-1" }, "Загальна відстань", -1)),
7267
- c("span", hp, de(d.value), 1)
7267
+ c("span", bp, de(d.value), 1)
7268
7268
  ]),
7269
- c("div", bp, [
7270
- c("button", wp, [
7271
- c("span", xp, [
7269
+ c("div", wp, [
7270
+ c("button", xp, [
7271
+ c("span", kp, [
7272
7272
  Z(z(dn), {
7273
7273
  size: 12,
7274
7274
  "stroke-width": 2.5
7275
7275
  })
7276
7276
  ]),
7277
7277
  x[2] || (x[2] = c("span", { class: "text-xs font-medium text-gray-600 flex-1" }, "Площа", -1)),
7278
- c("div", kp, [
7278
+ c("div", _p, [
7279
7279
  (u(), m(Me, null, Pe(o, (b, S) => c("button", {
7280
7280
  key: b.id,
7281
7281
  type: "button",
@@ -7286,29 +7286,29 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7286
7286
  l.value === b.id ? "bg-white text-green-600 font-semibold shadow-sm" : "text-gray-600 hover:bg-gray-50"
7287
7287
  ]),
7288
7288
  onClick: Te((C) => l.value = b.id, ["stop"])
7289
- }, de(b.label), 11, _p)), 64))
7289
+ }, de(b.label), 11, $p)), 64))
7290
7290
  ])
7291
7291
  ]),
7292
- c("div", $p, [
7293
- $.value ? (u(), m("span", Sp, de(w.value), 1)) : (u(), m("span", Cp, "—"))
7292
+ c("div", Sp, [
7293
+ $.value ? (u(), m("span", Cp, de(w.value), 1)) : (u(), m("span", Mp, "—"))
7294
7294
  ])
7295
7295
  ]),
7296
- c("div", Mp, [
7297
- c("span", Lp, [
7296
+ c("div", Lp, [
7297
+ c("span", Ap, [
7298
7298
  Z(z(dn), {
7299
7299
  size: 12,
7300
7300
  "stroke-width": 2.5
7301
7301
  })
7302
7302
  ]),
7303
- c("span", Ap, de(k.value), 1),
7303
+ c("span", Vp, de(k.value), 1),
7304
7304
  c("button", {
7305
7305
  type: "button",
7306
7306
  class: "text-xs text-blue-500 hover:text-blue-600 font-medium transition-colors",
7307
7307
  onClick: Te(a, ["stop"])
7308
7308
  }, " Координати ")
7309
7309
  ]),
7310
- n.value ? (u(), m("div", Vp, [
7311
- (u(!0), m(Me, null, Pe(v.points, (b, S) => (u(), be(mp, {
7310
+ n.value ? (u(), m("div", Dp, [
7311
+ (u(!0), m(Me, null, Pe(v.points, (b, S) => (u(), be(vp, {
7312
7312
  key: b.id,
7313
7313
  id: b.id,
7314
7314
  index: S + 1,
@@ -7319,11 +7319,11 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7319
7319
  ])) : Y("", !0)
7320
7320
  ]));
7321
7321
  }
7322
- }), Ip = { class: "px-3 py-3 bg-blue-50/50 border-b border-blue-100" }, Tp = { class: "flex items-start gap-2" }, Fp = /* @__PURE__ */ me({
7322
+ }), Tp = { class: "px-3 py-3 bg-blue-50/50 border-b border-blue-100" }, Fp = { class: "flex items-start gap-2" }, Ep = /* @__PURE__ */ me({
7323
7323
  __name: "InfoHint",
7324
7324
  setup(e) {
7325
- return (t, n) => (u(), m("div", Ip, [
7326
- c("div", Tp, [
7325
+ return (t, n) => (u(), m("div", Tp, [
7326
+ c("div", Fp, [
7327
7327
  Z(z(dn), {
7328
7328
  size: 16,
7329
7329
  "stroke-width": 2,
@@ -7336,7 +7336,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7336
7336
  ])
7337
7337
  ]));
7338
7338
  }
7339
- }), Ep = { class: "space-y-1.5" }, Pp = { class: "space-y-1 max-h-40 overflow-y-auto" }, Op = { class: "text-gray-700" }, Bp = { class: "font-semibold text-slate-800" }, Rp = /* @__PURE__ */ me({
7339
+ }), Pp = { class: "space-y-1.5" }, Op = { class: "space-y-1 max-h-40 overflow-y-auto" }, Bp = { class: "text-gray-700" }, Rp = { class: "font-semibold text-slate-800" }, Np = /* @__PURE__ */ me({
7340
7340
  __name: "ToPointList",
7341
7341
  props: {
7342
7342
  points: {},
@@ -7370,26 +7370,26 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7370
7370
  }
7371
7371
  return a;
7372
7372
  });
7373
- return (a, i) => (u(), m("div", Ep, [
7373
+ return (a, i) => (u(), m("div", Pp, [
7374
7374
  i[0] || (i[0] = c("p", { class: "text-xs font-medium text-gray-600 mb-1.5" }, "Відстань між точками:", -1)),
7375
- c("div", Pp, [
7375
+ c("div", Op, [
7376
7376
  (u(!0), m(Me, null, Pe(o.value, (r, d) => (u(), m("div", {
7377
7377
  key: d,
7378
7378
  class: "flex items-center justify-between text-xs py-1 px-2 rounded bg-gray-50"
7379
7379
  }, [
7380
- c("span", Op, "Точка " + de(r.from) + " → Точка " + de(r.to), 1),
7381
- c("span", Bp, de(r.label), 1)
7380
+ c("span", Bp, "Точка " + de(r.from) + " → Точка " + de(r.to), 1),
7381
+ c("span", Rp, de(r.label), 1)
7382
7382
  ]))), 128))
7383
7383
  ])
7384
7384
  ]));
7385
7385
  }
7386
- }), Np = { class: "ruler-panel-wrap absolute bottom-12 right-4 z-[1001] animate-slide-up" }, jp = { class: "bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden w-72" }, zp = { class: "bg-gradient-to-r from-blue-400 to-blue-500 px-3 py-2 flex items-center justify-between" }, Up = { class: "flex items-center gap-2" }, Hp = { class: "w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center" }, Wp = { class: "flex border-b border-gray-200" }, qp = {
7386
+ }), jp = { class: "ruler-panel-wrap absolute bottom-12 right-4 z-[1001] animate-slide-up" }, zp = { class: "bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden w-72" }, Up = { class: "bg-gradient-to-r from-blue-400 to-blue-500 px-3 py-2 flex items-center justify-between" }, Hp = { class: "flex items-center gap-2" }, Wp = { class: "w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center" }, qp = { class: "flex border-b border-gray-200" }, Kp = {
7387
7387
  key: 1,
7388
7388
  class: "px-3 py-2.5"
7389
- }, Kp = {
7389
+ }, Yp = {
7390
7390
  key: 1,
7391
7391
  class: "text-xs text-gray-500"
7392
- }, Yp = { class: "px-2.5 py-1.5 bg-gray-50 border-t border-gray-200 space-y-1.5" }, Gp = { class: "flex gap-1.5" }, Xp = /* @__PURE__ */ me({
7392
+ }, Gp = { class: "px-2.5 py-1.5 bg-gray-50 border-t border-gray-200 space-y-1.5" }, Xp = { class: "flex gap-1.5" }, Zp = /* @__PURE__ */ me({
7393
7393
  name: "RulerPanel",
7394
7394
  __name: "RulerPanel",
7395
7395
  emits: [
@@ -7452,11 +7452,11 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7452
7452
  return t({
7453
7453
  addPoint: x,
7454
7454
  clearPoints: C
7455
- }), (T, H) => (u(), m("div", Np, [
7456
- c("div", jp, [
7457
- c("div", zp, [
7458
- c("div", Up, [
7459
- c("div", Hp, [
7455
+ }), (T, H) => (u(), m("div", jp, [
7456
+ c("div", zp, [
7457
+ c("div", Up, [
7458
+ c("div", Hp, [
7459
+ c("div", Wp, [
7460
7460
  Z(z(Ua), {
7461
7461
  size: 14,
7462
7462
  "stroke-width": 2,
@@ -7477,7 +7477,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7477
7477
  })
7478
7478
  ])
7479
7479
  ]),
7480
- c("div", Wp, [
7480
+ c("div", qp, [
7481
7481
  c("button", {
7482
7482
  type: "button",
7483
7483
  class: re([
@@ -7496,37 +7496,37 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7496
7496
  }, " До точки ", 2)
7497
7497
  ]),
7498
7498
  d.value === "general" ? (u(), m(Me, { key: 0 }, [
7499
- a.value ? (u(), be(Dp, {
7499
+ a.value ? (u(), be(Ip, {
7500
7500
  key: 1,
7501
7501
  points: o.value,
7502
7502
  "is-shape-closed": r.value,
7503
7503
  onUpdatePoint: E,
7504
7504
  onDeletePoint: D
7505
- }, null, 8, ["points", "is-shape-closed"])) : (u(), be(Fp, { key: 0 }))
7506
- ], 64)) : (u(), m("div", qp, [
7507
- a.value ? (u(), be(Rp, {
7505
+ }, null, 8, ["points", "is-shape-closed"])) : (u(), be(Ep, { key: 0 }))
7506
+ ], 64)) : (u(), m("div", Kp, [
7507
+ a.value ? (u(), be(Np, {
7508
7508
  key: 0,
7509
7509
  points: o.value,
7510
7510
  "is-shape-closed": r.value
7511
- }, null, 8, ["points", "is-shape-closed"])) : (u(), m("p", Kp, "Додайте точки на карті, щоб бачити відстані між ними."))
7511
+ }, null, 8, ["points", "is-shape-closed"])) : (u(), m("p", Yp, "Додайте точки на карті, щоб бачити відстані між ними."))
7512
7512
  ])),
7513
- c("div", Yp, [
7514
- c("div", Gp, [
7515
- i.value ? Y("", !0) : (u(), be(sp, {
7513
+ c("div", Gp, [
7514
+ c("div", Xp, [
7515
+ i.value ? Y("", !0) : (u(), be(ip, {
7516
7516
  key: 0,
7517
7517
  onClick: K
7518
7518
  })),
7519
- _.value ? (u(), be(up, {
7519
+ _.value ? (u(), be(dp, {
7520
7520
  key: 1,
7521
7521
  onClick: O
7522
7522
  })) : Y("", !0)
7523
7523
  ]),
7524
- i.value ? (u(), be(rp, {
7524
+ i.value ? (u(), be(sp, {
7525
7525
  key: 0,
7526
7526
  onSubmit: G,
7527
7527
  onCancel: F
7528
7528
  })) : Y("", !0),
7529
- a.value ? (u(), be(ip, {
7529
+ a.value ? (u(), be(up, {
7530
7530
  key: 1,
7531
7531
  onClick: C
7532
7532
  })) : Y("", !0)
@@ -7534,7 +7534,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7534
7534
  ])
7535
7535
  ]));
7536
7536
  }
7537
- }), kt = "ruler-points", qt = "ruler-line", Kt = "ruler-polygon", Yt = "ruler-segments", Zp = /* @__PURE__ */ me({
7537
+ }), kt = "ruler-points", qt = "ruler-line", Kt = "ruler-polygon", Yt = "ruler-segments", Jp = /* @__PURE__ */ me({
7538
7538
  __name: "RulerLayer",
7539
7539
  props: {
7540
7540
  map: {},
@@ -7737,7 +7737,7 @@ const cp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7737
7737
  }), (v, x) => null;
7738
7738
  }
7739
7739
  });
7740
- function Jp(e = {}) {
7740
+ function Qp(e = {}) {
7741
7741
  const t = V(!1), n = V([]), l = V(!1), o = V("general"), a = V(null);
7742
7742
  function i() {
7743
7743
  t.value ? r() : (t.value = !0, e.onActivate?.());
@@ -7775,97 +7775,97 @@ function Jp(e = {}) {
7775
7775
  }
7776
7776
  const Ql = "vs-safe-raster", Cn = new ArrayBuffer(0);
7777
7777
  let Fl = !1;
7778
- function Qp(e) {
7778
+ function em(e) {
7779
7779
  const t = `${Ql}://`;
7780
7780
  return typeof e != "string" || !e.startsWith(t) ? e : e.slice(t.length);
7781
7781
  }
7782
- function em(e) {
7782
+ function tm(e) {
7783
7783
  if (!e || e.byteLength < 4) return !1;
7784
7784
  const t = new Uint8Array(e);
7785
7785
  return t[0] === 137 && t[1] === 80 && t[2] === 78 && t[3] === 71 || t[0] === 255 && t[1] === 216 && t[2] === 255 || t[0] === 82 && t[1] === 73 && t[2] === 70 && t[3] === 70 && e.byteLength >= 12 && String.fromCharCode(t[8], t[9], t[10], t[11]) === "WEBP";
7786
7786
  }
7787
- async function tm(e, t) {
7787
+ async function nm(e, t) {
7788
7788
  try {
7789
7789
  const n = await fetch(e, { signal: t });
7790
7790
  if (!n.ok || n.status === 204) return Cn;
7791
7791
  const l = await n.arrayBuffer();
7792
- return !l.byteLength || !em(l) ? Cn : l;
7792
+ return !l.byteLength || !tm(l) ? Cn : l;
7793
7793
  } catch {
7794
7794
  return Cn;
7795
7795
  }
7796
7796
  }
7797
- function nm(e) {
7797
+ function lm(e) {
7798
7798
  Fl || !e?.addProtocol || (Fl = !0, e.addProtocol(
7799
7799
  Ql,
7800
7800
  (t, n) => {
7801
- const l = Qp(String(t?.url ?? ""));
7801
+ const l = em(String(t?.url ?? ""));
7802
7802
  if (!l)
7803
7803
  return n(null, { data: Cn }), { cancel: () => {
7804
7804
  } };
7805
7805
  const o = new AbortController();
7806
- return tm(l, o.signal).then((a) => n(null, { data: a })).catch(() => n(null, { data: Cn })), { cancel: () => o.abort() };
7806
+ return nm(l, o.signal).then((a) => n(null, { data: a })).catch(() => n(null, { data: Cn })), { cancel: () => o.abort() };
7807
7807
  }
7808
7808
  ));
7809
7809
  }
7810
- function lm(e) {
7810
+ function am(e) {
7811
7811
  const t = typeof e == "string" ? e.trim() : "";
7812
7812
  if (!t) return t;
7813
7813
  const n = `${Ql}://`;
7814
7814
  return t.startsWith(n) ? t : `${n}${t}`;
7815
7815
  }
7816
- function am(e, t) {
7816
+ function om(e, t) {
7817
7817
  const n = typeof e == "string" ? e.trim() : "";
7818
- return n ? t && Fl ? [lm(n)] : [n] : [];
7818
+ return n ? t && Fl ? [am(n)] : [n] : [];
7819
7819
  }
7820
7820
  function Ll(e, t, n) {
7821
7821
  const l = {
7822
7822
  type: "raster",
7823
- tiles: am(e, !!n?.safe),
7823
+ tiles: om(e, !!n?.safe),
7824
7824
  tileSize: typeof t?.tileSize == "number" ? t.tileSize : 256
7825
7825
  };
7826
7826
  return typeof t?.minzoom == "number" && (l.minzoom = t.minzoom), typeof t?.maxzoom == "number" && (l.maxzoom = t.maxzoom), Array.isArray(t?.bounds) && t.bounds.length === 4 && (l.bounds = t.bounds), l;
7827
7827
  }
7828
- function om(e) {
7828
+ function rm(e) {
7829
7829
  const t = String(e ?? "").toLowerCase();
7830
7830
  return t.includes("could not be decoded") || t.includes("source image could not be decoded") || t.includes("unsupported image type");
7831
7831
  }
7832
- const rm = { class: "vs-map-body" }, sm = {
7832
+ const sm = { class: "vs-map-body" }, im = {
7833
7833
  key: 0,
7834
7834
  class: "absolute top-2 left-2 z-[1000] w-[calc(100%-16px)] sm:w-[320px]"
7835
- }, im = {
7835
+ }, um = {
7836
7836
  key: 1,
7837
7837
  class: "form-geom__panel flex items-center gap-1 mt-1"
7838
- }, um = { class: "flex items-center gap-1" }, dm = ["disabled"], cm = {
7838
+ }, dm = { class: "flex items-center gap-1" }, cm = ["disabled"], fm = {
7839
7839
  key: 0,
7840
7840
  class: "absolute z-[1600] left-0 top-full mt-1 w-full min-w-[140px] bg-white border border-gray-200 shadow-lg rounded-lg text-sm overflow-hidden"
7841
- }, fm = ["disabled"], pm = {
7841
+ }, pm = ["disabled"], mm = {
7842
7842
  key: 0,
7843
7843
  class: "mb-3 flex items-center gap-2 rounded-md border border-blue-100 bg-blue-50 px-3 py-2 text-sm text-blue-700"
7844
- }, mm = { class: "mt-4 flex justify-end gap-2" }, vm = ["disabled"], gm = ["disabled"], ym = { class: "mt-4 flex justify-end gap-2" }, hm = ["disabled"], bm = { class: "vs-map-controls vs-map-controls--tr" }, wm = { class: "vs-map-toolbar" }, xm = ["disabled"], km = ["disabled"], _m = ["disabled"], $m = ["disabled"], Sm = {
7844
+ }, vm = { class: "mt-4 flex justify-end gap-2" }, gm = ["disabled"], ym = ["disabled"], hm = { class: "mt-4 flex justify-end gap-2" }, bm = ["disabled"], wm = { class: "vs-map-controls vs-map-controls--tr" }, xm = { class: "vs-map-toolbar" }, km = ["disabled"], _m = ["disabled"], $m = ["disabled"], Sm = ["disabled"], Cm = {
7845
7845
  key: 1,
7846
7846
  class: "vs-map-toolbar__divider"
7847
- }, Cm = ["title"], Mm = { class: "bg-white/95 border border-gray-200 rounded-md shadow-xl px-3 py-2 max-w-[240px] text-[11px] sm:text-xs text-gray-900" }, Lm = { class: "space-y-0.5" }, Am = { class: "text-gray-500" }, Vm = { class: "text-gray-900 text-right break-all" }, Dm = { class: "absolute left-2 bottom-2 z-[1000]" }, Im = {
7847
+ }, Mm = ["title"], Lm = { class: "bg-white/95 border border-gray-200 rounded-md shadow-xl px-3 py-2 max-w-[240px] text-[11px] sm:text-xs text-gray-900" }, Am = { class: "space-y-0.5" }, Vm = { class: "text-gray-500" }, Dm = { class: "text-gray-900 text-right break-all" }, Im = { class: "absolute left-2 bottom-2 z-[1000]" }, Tm = {
7848
7848
  key: 0,
7849
7849
  class: "vs-map-status"
7850
- }, Tm = { class: "form-geom__feature vs-map-status__inner" }, Fm = { class: "vs-map-status__type" }, Em = { class: "vs-map-status__values" }, Pm = ["onClick", "disabled"], Om = {
7850
+ }, Fm = { class: "form-geom__feature vs-map-status__inner" }, Em = { class: "vs-map-status__type" }, Pm = { class: "vs-map-status__values" }, Om = ["onClick", "disabled"], Bm = {
7851
7851
  key: 1,
7852
7852
  class: "vs-map-status__chip"
7853
- }, Bm = {
7853
+ }, Rm = {
7854
7854
  key: 2,
7855
7855
  class: "vs-map-status__sep"
7856
- }, Rm = {
7856
+ }, Nm = {
7857
7857
  key: 1,
7858
7858
  class: "vs-map-status__chip"
7859
- }, Nm = { class: "vs-map-status__meta" }, jm = { class: "vs-map-status__coords" }, zm = {
7859
+ }, jm = { class: "vs-map-status__meta" }, zm = { class: "vs-map-status__coords" }, Um = {
7860
7860
  key: 0,
7861
7861
  class: "vs-map-status__value"
7862
- }, Um = {
7862
+ }, Hm = {
7863
7863
  key: 1,
7864
7864
  class: "vs-map-status__value"
7865
- }, Hm = {
7865
+ }, Wm = {
7866
7866
  key: 0,
7867
7867
  class: "vs-map-status__area"
7868
- }, Wm = { class: "vs-map-status__value" }, qm = { class: "vs-map-status__actions" }, Km = ["disabled"], Ym = ["disabled"], Gm = 11, Xm = 15, Zm = 0.7, Jm = "vs-tile-ov-src-", Qm = "vs-tile-ov-raster-", Kn = "__vs_form_maplibre_loader__", ev = "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf", Yn = "vs-global-bounds-src", gn = "vs-global-bounds-line", Ta = "rasterLayer", tv = /* @__PURE__ */ me({
7868
+ }, qm = { class: "vs-map-status__value" }, Km = { class: "vs-map-status__actions" }, Ym = ["disabled"], Gm = ["disabled"], Xm = 11, Zm = 15, Jm = 0.7, Qm = "vs-tile-ov-src-", ev = "vs-tile-ov-raster-", Kn = "__vs_form_maplibre_loader__", tv = "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf", Yn = "vs-global-bounds-src", gn = "vs-global-bounds-line", Ta = "rasterLayer", nv = /* @__PURE__ */ me({
7869
7869
  __name: "vs-input-map",
7870
7870
  props: {
7871
7871
  tools: {},
@@ -7896,7 +7896,7 @@ const rm = { class: "vs-map-body" }, sm = {
7896
7896
  const n = e, l = t, o = Pa(), a = Je("values", V({})), i = typeof document < "u" && document.querySelector("#modal") ? "#modal" : "body", r = h(() => {
7897
7897
  const s = o?.multiple, p = o?.multi, y = (M) => M === "" || M === !0 || M === "true" || M === 1 || M === "1";
7898
7898
  return !!n.multi || !!n.multiple || y(p) || y(s);
7899
- }), d = h(() => !!n.disabled), f = V(!1), _ = V(null), $ = V(0), w = V(""), k = V(null), v = V([]), x = V(null), b = V(null), S = Jp({
7899
+ }), d = h(() => !!n.disabled), f = V(!1), _ = V(null), $ = V(0), w = V(""), k = V(null), v = V([]), x = V(null), b = V(null), S = Qp({
7900
7900
  onActivate() {
7901
7901
  if ($e)
7902
7902
  try {
@@ -7963,13 +7963,13 @@ const rm = { class: "vs-map-body" }, sm = {
7963
7963
  function j(s) {
7964
7964
  const p = typeof s == "number" && Number.isFinite(s) ? s : Q.value;
7965
7965
  return Math.min(
7966
- Xm,
7967
- Math.max(Gm, Math.round(p))
7966
+ Zm,
7967
+ Math.max(Xm, Math.round(p))
7968
7968
  );
7969
7969
  }
7970
7970
  function J(s, p, y) {
7971
7971
  if (!Number.isFinite(s) || !Number.isFinite(p)) return;
7972
- const M = cf(s, p, j(y)), I = ie.value;
7972
+ const M = ff(s, p, j(y)), I = ie.value;
7973
7973
  I && I.z === M.z && I.x === M.x && I.y === M.y || (ie.value = M);
7974
7974
  }
7975
7975
  function N() {
@@ -8061,8 +8061,8 @@ const rm = { class: "vs-map-body" }, sm = {
8061
8061
  }
8062
8062
  };
8063
8063
  let Ge = !1, yt = !1;
8064
- const je = Bl({}), qe = V([]), $t = h(
8065
- () => qe.value.map((s) => je[s]).filter(Boolean)
8064
+ const je = Bl({}), Ke = V([]), $t = h(
8065
+ () => Ke.value.map((s) => je[s]).filter(Boolean)
8066
8066
  ), R = V(null), te = h(() => R.value?.entries ?? []), ue = h(() => {
8067
8067
  if (R.value)
8068
8068
  return {
@@ -8148,7 +8148,7 @@ const rm = { class: "vs-map-body" }, sm = {
8148
8148
  };
8149
8149
  }
8150
8150
  const oe = P(), Ce = Object.keys(oe), Xe = V(Ce.length ? Ce[0] : "");
8151
- function Ke() {
8151
+ function Ye() {
8152
8152
  const s = Array.isArray(K.overlays) && K.overlays.length ? K.overlays : D.overlays;
8153
8153
  return !Array.isArray(s) || !s.length ? {} : s.map((y, M) => {
8154
8154
  const q = (typeof y?.name == "string" ? y.name.trim() : "") || `o${M}`, ce = L(String(y?.url ?? ""));
@@ -8162,7 +8162,7 @@ const rm = { class: "vs-map-body" }, sm = {
8162
8162
  {}
8163
8163
  );
8164
8164
  }
8165
- const it = Ke(), dt = V(
8165
+ const it = Ye(), dt = V(
8166
8166
  Object.keys(it).filter((s) => !!it[s]?.visible)
8167
8167
  ), St = h(
8168
8168
  () => g.value.point || g.value.line || g.value.polygon || g.value.rectangle
@@ -8174,10 +8174,10 @@ const rm = { class: "vs-map-body" }, sm = {
8174
8174
  }))
8175
8175
  );
8176
8176
  function xt(s) {
8177
- return `${Jm}${s}`;
8177
+ return `${Qm}${s}`;
8178
8178
  }
8179
8179
  function Zt(s) {
8180
- return `${Qm}${s}`;
8180
+ return `${ev}${s}`;
8181
8181
  }
8182
8182
  async function Fn() {
8183
8183
  if (typeof window > "u") return null;
@@ -8199,7 +8199,7 @@ const rm = { class: "vs-map-body" }, sm = {
8199
8199
  const q = window.maplibregl, ce = window.MapboxDraw;
8200
8200
  if (!q) throw new Error("maplibregl not available after load");
8201
8201
  if (!ce) throw new Error("MapboxDraw not available after load");
8202
- return nm(q), { maplibregl: q, MapboxDraw: ce };
8202
+ return lm(q), { maplibregl: q, MapboxDraw: ce };
8203
8203
  })().catch((q) => {
8204
8204
  throw delete s[Kn], q;
8205
8205
  });
@@ -8208,7 +8208,7 @@ const rm = { class: "vs-map-body" }, sm = {
8208
8208
  function fn(s) {
8209
8209
  return {
8210
8210
  version: 8,
8211
- glyphs: ev,
8211
+ glyphs: tv,
8212
8212
  sources: {
8213
8213
  rasterSource: Ll(s, void 0, { safe: !1 })
8214
8214
  },
@@ -8730,7 +8730,7 @@ const rm = { class: "vs-map-body" }, sm = {
8730
8730
  y,
8731
8731
  Ll(p.url, p, { safe: !0 })
8732
8732
  );
8733
- const I = p?.opacity ?? p?.style?.opacity, q = typeof I == "number" ? I : Zm;
8733
+ const I = p?.opacity ?? p?.style?.opacity, q = typeof I == "number" ? I : Jm;
8734
8734
  W.addLayer({
8735
8735
  id: M,
8736
8736
  type: "raster",
@@ -8755,7 +8755,7 @@ const rm = { class: "vs-map-body" }, sm = {
8755
8755
  function Ot() {
8756
8756
  if (!W) return;
8757
8757
  const s = dt.value.map((Fe) => Zt(Fe)).filter((Fe) => W.getLayer(Fe)), p = [], y = [], M = [], I = [];
8758
- qe.value.forEach((Fe) => {
8758
+ Ke.value.forEach((Fe) => {
8759
8759
  const Qe = je[Fe];
8760
8760
  if (!Qe) return;
8761
8761
  const Ht = String(Qe.config?.url ?? ""), _l = /\.v(?:m)?t(?:\?|$|\/)/i.test(Ht) || /\/vtile(?:\/|\?|$)/i.test(Ht) || ir(Qe.config, Ht, G.value), Wt = /\.png(?:\?|$)/i.test(Ht);
@@ -8790,7 +8790,7 @@ const rm = { class: "vs-map-body" }, sm = {
8790
8790
  }
8791
8791
  const M = W.getCenter?.(), I = W.getZoom?.(), q = $e?.getAll?.();
8792
8792
  W.setStyle(fn(p)), W.once("style.load", () => {
8793
- if (W && (M && Number.isFinite(I) && W.jumpTo({ center: [M.lng, M.lat], zoom: I }), kn(), ta(), qe.value.forEach((ce) => {
8793
+ if (W && (M && Number.isFinite(I) && W.jumpTo({ center: [M.lng, M.lat], zoom: I }), kn(), ta(), Ke.value.forEach((ce) => {
8794
8794
  const xe = je[ce];
8795
8795
  xe && mn(xe);
8796
8796
  }), Ot(), q?.features?.length && $e))
@@ -9286,7 +9286,7 @@ const rm = { class: "vs-map-body" }, sm = {
9286
9286
  }
9287
9287
  function Bo() {
9288
9288
  if (d.value || !$e) return;
9289
- const s = Pf(
9289
+ const s = Of(
9290
9290
  De.value.coordinates ?? "",
9291
9291
  De.value.format || "decimal",
9292
9292
  De.value.order || "lat-lon"
@@ -9338,7 +9338,7 @@ const rm = { class: "vs-map-body" }, sm = {
9338
9338
  attributionControl: !1
9339
9339
  }), x.value = W, W.addControl(new jt.NavigationControl({ showCompass: !0 }), "bottom-right"), W.on("error", (y) => {
9340
9340
  const M = y?.error?.message ?? y?.message ?? "";
9341
- om(M);
9341
+ rm(M);
9342
9342
  }), W.on("load", () => {
9343
9343
  if (!(!Jt || !W)) {
9344
9344
  if ($e = new Jt({
@@ -9428,7 +9428,7 @@ const rm = { class: "vs-map-body" }, sm = {
9428
9428
  $e && On(y);
9429
9429
  });
9430
9430
  }
9431
- kn(), ta(), qe.value.forEach((y) => {
9431
+ kn(), ta(), Ke.value.forEach((y) => {
9432
9432
  const M = je[y];
9433
9433
  M && mn(M);
9434
9434
  }), Ot(), N();
@@ -9481,7 +9481,7 @@ const rm = { class: "vs-map-body" }, sm = {
9481
9481
  if (M.has(I)) return;
9482
9482
  const q = je[I];
9483
9483
  q && W && Qt(q), delete je[I];
9484
- }), qe.value = y, W && (qe.value.forEach((I) => {
9484
+ }), Ke.value = y, W && (Ke.value.forEach((I) => {
9485
9485
  const q = je[I];
9486
9486
  q && mn(q);
9487
9487
  }), Ot());
@@ -9490,7 +9490,7 @@ const rm = { class: "vs-map-body" }, sm = {
9490
9490
  ), pe(
9491
9491
  () => ge.value,
9492
9492
  () => {
9493
- W && (kn(), qe.value.forEach((s) => {
9493
+ W && (kn(), Ke.value.forEach((s) => {
9494
9494
  const p = je[s];
9495
9495
  p && mn(p);
9496
9496
  }), Ot());
@@ -9500,7 +9500,7 @@ const rm = { class: "vs-map-body" }, sm = {
9500
9500
  () => ee.value,
9501
9501
  async (s) => {
9502
9502
  if (Se.value = [], !s) {
9503
- W && (kn(), qe.value.forEach((p) => {
9503
+ W && (kn(), Ke.value.forEach((p) => {
9504
9504
  const y = je[p];
9505
9505
  y && mn(y);
9506
9506
  }), Ot());
@@ -9515,7 +9515,7 @@ const rm = { class: "vs-map-body" }, sm = {
9515
9515
  console.error("Failed to fetch KATOTTG bounds", p);
9516
9516
  } finally {
9517
9517
  if (!W) return;
9518
- kn(), qe.value.forEach((p) => {
9518
+ kn(), Ke.value.forEach((p) => {
9519
9519
  const y = je[p];
9520
9520
  y && mn(y);
9521
9521
  }), Ot();
@@ -9585,19 +9585,19 @@ const rm = { class: "vs-map-body" }, sm = {
9585
9585
  c("div", {
9586
9586
  class: re(["vs-map-wrapper w-full", { fullscreen: f.value }])
9587
9587
  }, [
9588
- c("div", rm, [
9588
+ c("div", sm, [
9589
9589
  c("div", {
9590
9590
  ref_key: "mapContainer",
9591
9591
  ref: _,
9592
9592
  class: "vs-map-canvas"
9593
9593
  }, null, 512),
9594
- g.value.search || g.value.import || g.value.export ? (u(), m("div", sm, [
9595
- g.value.search ? (u(), be(lp, {
9594
+ g.value.search || g.value.import || g.value.export ? (u(), m("div", im, [
9595
+ g.value.search ? (u(), be(ap, {
9596
9596
  key: 0,
9597
9597
  onGoToCoordinates: Lo
9598
9598
  })) : Y("", !0),
9599
- g.value.import || g.value.export ? (u(), m("div", im, [
9600
- c("div", um, [
9599
+ g.value.import || g.value.export ? (u(), m("div", um, [
9600
+ c("div", dm, [
9601
9601
  g.value.import ? (u(), m("div", {
9602
9602
  key: 0,
9603
9603
  ref_key: "importMenuRef",
@@ -9614,8 +9614,8 @@ const rm = { class: "vs-map-body" }, sm = {
9614
9614
  Z(z(wn), {
9615
9615
  class: re(["h-3.5 w-3.5 shrink-0 transition-transform", { "rotate-180": Ie.value }])
9616
9616
  }, null, 8, ["class"])
9617
- ], 8, dm),
9618
- Ie.value ? (u(), m("div", cm, [
9617
+ ], 8, cm),
9618
+ Ie.value ? (u(), m("div", fm, [
9619
9619
  g.value.import ? (u(), m("button", {
9620
9620
  key: 0,
9621
9621
  type: "button",
@@ -9635,7 +9635,7 @@ const rm = { class: "vs-map-body" }, sm = {
9635
9635
  class: "vs-map-action-btn",
9636
9636
  onClick: No,
9637
9637
  disabled: d.value || $.value === 0
9638
- }, " Експорт ", 8, fm)) : Y("", !0)
9638
+ }, " Експорт ", 8, pm)) : Y("", !0)
9639
9639
  ])
9640
9640
  ])) : Y("", !0)
9641
9641
  ])) : Y("", !0),
@@ -9647,7 +9647,7 @@ const rm = { class: "vs-map-body" }, sm = {
9647
9647
  teleport: z(i)
9648
9648
  }, {
9649
9649
  default: rt(() => [
9650
- Ne.value || He.value ? (u(), m("div", pm, [
9650
+ Ne.value || He.value ? (u(), m("div", mm, [
9651
9651
  Z(z(el), { class: "h-4 w-4 shrink-0 animate-spin" }),
9652
9652
  c("span", null, de(tt.value), 1)
9653
9653
  ])) : Y("", !0),
@@ -9656,13 +9656,13 @@ const rm = { class: "vs-map-body" }, sm = {
9656
9656
  values: le.value,
9657
9657
  "onUpdate:values": p[0] || (p[0] = (y) => le.value = y)
9658
9658
  }, null, 8, ["schema", "values"]),
9659
- c("div", mm, [
9659
+ c("div", vm, [
9660
9660
  c("button", {
9661
9661
  type: "button",
9662
9662
  class: "px-3 py-2 rounded-md border border-gray-300 text-gray-700 text-sm hover:bg-gray-100",
9663
9663
  onClick: Io,
9664
9664
  disabled: Ne.value || He.value
9665
- }, " Скасувати ", 8, vm),
9665
+ }, " Скасувати ", 8, gm),
9666
9666
  c("button", {
9667
9667
  type: "button",
9668
9668
  class: "px-3 py-2 rounded-md bg-blue-600 text-white text-sm hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2",
@@ -9674,7 +9674,7 @@ const rm = { class: "vs-map-body" }, sm = {
9674
9674
  class: "h-4 w-4 animate-spin"
9675
9675
  })) : Y("", !0),
9676
9676
  et(" " + de(He.value ? "Обробка..." : "Додати"), 1)
9677
- ], 8, gm)
9677
+ ], 8, ym)
9678
9678
  ])
9679
9679
  ]),
9680
9680
  _: 1
@@ -9692,7 +9692,7 @@ const rm = { class: "vs-map-body" }, sm = {
9692
9692
  values: De.value,
9693
9693
  "onUpdate:values": p[2] || (p[2] = (y) => De.value = y)
9694
9694
  }, null, 8, ["values"]),
9695
- c("div", ym, [
9695
+ c("div", hm, [
9696
9696
  c("button", {
9697
9697
  type: "button",
9698
9698
  class: "px-3 py-2 rounded-md border border-gray-300 text-gray-700 text-sm hover:bg-gray-100",
@@ -9703,13 +9703,13 @@ const rm = { class: "vs-map-body" }, sm = {
9703
9703
  class: "px-3 py-2 rounded-md bg-blue-600 text-white text-sm hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed",
9704
9704
  onClick: Bo,
9705
9705
  disabled: d.value
9706
- }, " Побудувати ", 8, hm)
9706
+ }, " Побудувати ", 8, bm)
9707
9707
  ])
9708
9708
  ]),
9709
9709
  _: 1
9710
9710
  }, 8, ["visible", "teleport"]),
9711
- c("div", bm, [
9712
- c("div", wm, [
9711
+ c("div", wm, [
9712
+ c("div", xm, [
9713
9713
  St.value ? (u(), m(Me, { key: 0 }, [
9714
9714
  g.value.point ? (u(), m("button", {
9715
9715
  key: 0,
@@ -9719,7 +9719,7 @@ const rm = { class: "vs-map-body" }, sm = {
9719
9719
  disabled: d.value
9720
9720
  }, [
9721
9721
  Z(z(za), { class: "vs-btn-icon" })
9722
- ], 10, xm)) : Y("", !0),
9722
+ ], 10, km)) : Y("", !0),
9723
9723
  g.value.line ? (u(), m("button", {
9724
9724
  key: 1,
9725
9725
  class: re(["vs-btn", { "vs-active": w.value === "polyline" }]),
@@ -9727,8 +9727,8 @@ const rm = { class: "vs-map-body" }, sm = {
9727
9727
  onClick: p[5] || (p[5] = (y) => Bn("polyline")),
9728
9728
  disabled: d.value
9729
9729
  }, [
9730
- Z(tf, { class: "vs-btn-icon" })
9731
- ], 10, km)) : Y("", !0),
9730
+ Z(nf, { class: "vs-btn-icon" })
9731
+ ], 10, _m)) : Y("", !0),
9732
9732
  g.value.polygon ? (u(), m("button", {
9733
9733
  key: 2,
9734
9734
  class: re(["vs-btn", { "vs-active": w.value === "polygon" }]),
@@ -9736,8 +9736,8 @@ const rm = { class: "vs-map-body" }, sm = {
9736
9736
  onClick: p[6] || (p[6] = (y) => Bn("polygon")),
9737
9737
  disabled: d.value
9738
9738
  }, [
9739
- Z(of, { class: "vs-btn-icon" })
9740
- ], 10, _m)) : Y("", !0),
9739
+ Z(rf, { class: "vs-btn-icon" })
9740
+ ], 10, $m)) : Y("", !0),
9741
9741
  g.value.rectangle ? (u(), m("button", {
9742
9742
  key: 3,
9743
9743
  class: re(["vs-btn", { "vs-active": w.value === "rectangle" }]),
@@ -9745,10 +9745,10 @@ const rm = { class: "vs-map-body" }, sm = {
9745
9745
  onClick: p[7] || (p[7] = (y) => Bn("rectangle")),
9746
9746
  disabled: d.value
9747
9747
  }, [
9748
- Z(df, { class: "vs-btn-icon" })
9749
- ], 10, $m)) : Y("", !0)
9748
+ Z(cf, { class: "vs-btn-icon" })
9749
+ ], 10, Sm)) : Y("", !0)
9750
9750
  ], 64)) : Y("", !0),
9751
- St.value ? (u(), m("div", Sm)) : Y("", !0),
9751
+ St.value ? (u(), m("div", Cm)) : Y("", !0),
9752
9752
  g.value.ruler ? (u(), m("button", {
9753
9753
  key: 2,
9754
9754
  class: re(["vs-btn", { "vs-active": z(S).isRulerActive.value }]),
@@ -9769,10 +9769,10 @@ const rm = { class: "vs-map-body" }, sm = {
9769
9769
  key: 1,
9770
9770
  class: "vs-btn-icon"
9771
9771
  }))
9772
- ], 8, Cm)
9772
+ ], 8, Mm)
9773
9773
  ])
9774
9774
  ]),
9775
- g.value.ruler && z(S).isRulerActive.value ? (u(), be(Xp, {
9775
+ g.value.ruler && z(S).isRulerActive.value ? (u(), be(Zp, {
9776
9776
  key: 1,
9777
9777
  ref_key: "rulerPanelRefEl",
9778
9778
  ref: b,
@@ -9781,7 +9781,7 @@ const rm = { class: "vs-map-body" }, sm = {
9781
9781
  onPointsChange: z(S).onRulerPointsChange,
9782
9782
  onShapeClosedChange: z(S).onRulerShapeClosedChange
9783
9783
  }, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) : Y("", !0),
9784
- g.value.ruler && z(S).isRulerActive.value && z(S).hasRulerPoints.value ? (u(), be(Zp, {
9784
+ g.value.ruler && z(S).isRulerActive.value && z(S).hasRulerPoints.value ? (u(), be(Jp, {
9785
9785
  key: 2,
9786
9786
  map: x.value,
9787
9787
  points: z(S).rulerPoints.value,
@@ -9793,20 +9793,20 @@ const rm = { class: "vs-map-body" }, sm = {
9793
9793
  class: "absolute z-[1500] pointer-events-none",
9794
9794
  style: Ee(ue.value)
9795
9795
  }, [
9796
- c("div", Mm, [
9797
- c("dl", Lm, [
9796
+ c("div", Lm, [
9797
+ c("dl", Am, [
9798
9798
  (u(!0), m(Me, null, Pe(te.value, (y) => (u(), m("div", {
9799
9799
  key: `${y.key}-${y.value}`,
9800
9800
  class: "flex justify-between gap-2"
9801
9801
  }, [
9802
- c("dt", Am, de(y.key), 1),
9803
- c("dd", Vm, de(y.value), 1)
9802
+ c("dt", Vm, de(y.key), 1),
9803
+ c("dd", Dm, de(y.value), 1)
9804
9804
  ]))), 128))
9805
9805
  ])
9806
9806
  ])
9807
9807
  ], 4)) : Y("", !0),
9808
- c("div", Dm, [
9809
- Z(Ff, {
9808
+ c("div", Im, [
9809
+ Z(Ef, {
9810
9810
  compact: "",
9811
9811
  basemaps: z(oe),
9812
9812
  "active-base-key": Xe.value,
@@ -9821,11 +9821,11 @@ const rm = { class: "vs-map-body" }, sm = {
9821
9821
  }, null, 8, ["basemaps", "active-base-key", "tile-overlays", "active-tile-overlay-keys", "vector-overlays", "preview-tile", "disabled"])
9822
9822
  ])
9823
9823
  ]),
9824
- pa.value ? (u(), m("div", Im, [
9825
- c("div", Tm, [
9826
- c("div", Fm, [
9824
+ pa.value ? (u(), m("div", Tm, [
9825
+ c("div", Fm, [
9826
+ c("div", Em, [
9827
9827
  p[11] || (p[11] = c("span", { class: "vs-map-status__label" }, "Тип:", -1)),
9828
- c("div", Em, [
9828
+ c("div", Pm, [
9829
9829
  xl.value.length ? (u(!0), m(Me, { key: 0 }, Pe(xl.value, (y, M) => (u(), m(Me, {
9830
9830
  key: y.id
9831
9831
  }, [
@@ -9835,21 +9835,21 @@ const rm = { class: "vs-map-body" }, sm = {
9835
9835
  class: re(["vs-map-status__chip", { "vs-map-status__chip--active": y.id === z(ft) }]),
9836
9836
  onClick: (I) => So(y.id),
9837
9837
  disabled: d.value
9838
- }, de(y.label), 11, Pm)) : (u(), m("span", Om, de(y.label), 1)),
9839
- M < xl.value.length - 1 ? (u(), m("span", Bm, ", ")) : Y("", !0)
9840
- ], 64))), 128)) : (u(), m("span", Rm, "—"))
9838
+ }, de(y.label), 11, Om)) : (u(), m("span", Bm, de(y.label), 1)),
9839
+ M < xl.value.length - 1 ? (u(), m("span", Rm, ", ")) : Y("", !0)
9840
+ ], 64))), 128)) : (u(), m("span", Nm, "—"))
9841
9841
  ])
9842
9842
  ]),
9843
- c("div", Nm, [
9844
- c("span", jm, [
9843
+ c("div", jm, [
9844
+ c("span", zm, [
9845
9845
  p[12] || (p[12] = c("span", { class: "vs-map-status__label" }, "Центр:", -1)),
9846
- k.value ? (u(), m("span", zm, de(k.value.center.lng.toFixed(5)) + ", " + de(k.value.center.lat.toFixed(5)), 1)) : (u(), m("span", Um, "—"))
9846
+ k.value ? (u(), m("span", Um, de(k.value.center.lng.toFixed(5)) + ", " + de(k.value.center.lat.toFixed(5)), 1)) : (u(), m("span", Hm, "—"))
9847
9847
  ]),
9848
- k.value && k.value.areaKm2 !== null ? (u(), m("span", Hm, [
9848
+ k.value && k.value.areaKm2 !== null ? (u(), m("span", Wm, [
9849
9849
  p[13] || (p[13] = c("span", { class: "vs-map-status__label" }, "Площа:", -1)),
9850
- c("span", Wm, de(k.value.areaKm2.toFixed(1)) + " km²", 1)
9850
+ c("span", qm, de(k.value.areaKm2.toFixed(1)) + " km²", 1)
9851
9851
  ])) : Y("", !0),
9852
- c("div", qm, [
9852
+ c("div", Km, [
9853
9853
  c("button", {
9854
9854
  type: "button",
9855
9855
  class: "vs-status-btn vs-status-btn--zoom",
@@ -9858,7 +9858,7 @@ const rm = { class: "vs-map-body" }, sm = {
9858
9858
  disabled: d.value
9859
9859
  }, [
9860
9860
  Z(z(or), { class: "vs-status-btn__icon" })
9861
- ], 8, Km),
9861
+ ], 8, Ym),
9862
9862
  c("button", {
9863
9863
  type: "button",
9864
9864
  class: "vs-status-btn vs-status-btn--delete",
@@ -9867,7 +9867,7 @@ const rm = { class: "vs-map-body" }, sm = {
9867
9867
  disabled: d.value
9868
9868
  }, [
9869
9869
  Z(z(an), { class: "vs-status-btn__icon" })
9870
- ], 8, Ym)
9870
+ ], 8, Gm)
9871
9871
  ])
9872
9872
  ])
9873
9873
  ])
@@ -9875,10 +9875,10 @@ const rm = { class: "vs-map-body" }, sm = {
9875
9875
  ], 2)
9876
9876
  ], 8, ["disabled"]));
9877
9877
  }
9878
- }), nv = /* @__PURE__ */ Ye(tv, [["__scopeId", "data-v-780ba2d7"]]), lv = ["data-focus"], av = { class: "flex items-center" }, ov = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, rv = ["onClick", "aria-label"], sv = {
9878
+ }), lv = /* @__PURE__ */ qe(nv, [["__scopeId", "data-v-780ba2d7"]]), av = ["data-focus"], ov = { class: "flex items-center" }, rv = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, sv = ["onClick", "aria-label"], iv = {
9879
9879
  key: 0,
9880
9880
  class: "absolute text-gray-500 truncate pl-2"
9881
- }, iv = { class: "flex-1 min-w-[2px]" }, uv = ["placeholder"], dv = { class: "flex items-center shrink-0" }, cv = ["disabled"], fv = /* @__PURE__ */ me({
9881
+ }, uv = { class: "flex-1 min-w-[2px]" }, dv = ["placeholder"], cv = { class: "flex items-center shrink-0" }, fv = ["disabled"], pv = /* @__PURE__ */ me({
9882
9882
  __name: "vs-input-tag",
9883
9883
  props: /* @__PURE__ */ Re({
9884
9884
  unique: { type: Boolean, default: !0 },
@@ -9951,8 +9951,8 @@ const rm = { class: "vs-map-body" }, sm = {
9951
9951
  key: B,
9952
9952
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
9953
9953
  }, [
9954
- c("div", av, [
9955
- c("div", ov, de(O), 1)
9954
+ c("div", ov, [
9955
+ c("div", rv, de(O), 1)
9956
9956
  ]),
9957
9957
  c("div", {
9958
9958
  role: "button",
@@ -9965,10 +9965,10 @@ const rm = { class: "vs-map-body" }, sm = {
9965
9965
  focusable: "false",
9966
9966
  class: "inline-block h-4 w-4"
9967
9967
  })
9968
- ], 8, rv)
9968
+ ], 8, sv)
9969
9969
  ]))), 128)),
9970
- $.value ? (u(), m("div", sv, de(_.value), 1)) : Y("", !0),
9971
- c("div", iv, [
9970
+ $.value ? (u(), m("div", iv, de(_.value), 1)) : Y("", !0),
9971
+ c("div", uv, [
9972
9972
  k.value ? Y("", !0) : Oe((u(), m("input", {
9973
9973
  key: 0,
9974
9974
  ref_key: "inputRef",
@@ -9986,12 +9986,12 @@ const rm = { class: "vs-map-body" }, sm = {
9986
9986
  onBlur: D,
9987
9987
  onKeydown: K,
9988
9988
  placeholder: f.value && f.value.length ? "" : void 0
9989
- }, null, 40, uv)), [
9989
+ }, null, 40, dv)), [
9990
9990
  [ot, d.value]
9991
9991
  ])
9992
9992
  ])
9993
9993
  ], 512),
9994
- c("div", dv, [
9994
+ c("div", cv, [
9995
9995
  w.value ? (u(), m("button", {
9996
9996
  key: 0,
9997
9997
  type: "button",
@@ -10001,13 +10001,13 @@ const rm = { class: "vs-map-body" }, sm = {
10001
10001
  onClick: Te(C, ["stop"])
10002
10002
  }, [
10003
10003
  Z(z(_t), { class: "h-4 w-4" })
10004
- ], 8, cv)) : Y("", !0)
10004
+ ], 8, fv)) : Y("", !0)
10005
10005
  ])
10006
- ], 10, lv)
10006
+ ], 10, av)
10007
10007
  ], 2)
10008
10008
  ], 512));
10009
10009
  }
10010
- }), pv = { class: "relative flex gap-1 bg-white w-full" }, mv = ["disabled", "placeholder"], vv = /* @__PURE__ */ me({
10010
+ }), mv = { class: "relative flex gap-1 bg-white w-full" }, vv = ["disabled", "placeholder"], gv = /* @__PURE__ */ me({
10011
10011
  __name: "vs-input-slug",
10012
10012
  props: /* @__PURE__ */ Re({
10013
10013
  disabled: { type: Boolean },
@@ -10066,14 +10066,14 @@ const rm = { class: "vs-map-body" }, sm = {
10066
10066
  const i = t?.value?.[n.parent || ""]?.toString(), r = o(i);
10067
10067
  l.value = r.toString();
10068
10068
  };
10069
- return (i, r) => (u(), m("div", pv, [
10069
+ return (i, r) => (u(), m("div", mv, [
10070
10070
  Oe(c("input", {
10071
10071
  ref: "vsText",
10072
10072
  disabled: i.disabled,
10073
10073
  placeholder: i.placeholder,
10074
10074
  "onUpdate:modelValue": r[0] || (r[0] = (d) => l.value = d),
10075
10075
  class: "block w-full px-3 py-2 text-sm border border-solid rounded-lg placeholder:text-nowrap border-stone-200 text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
10076
- }, null, 8, mv), [
10076
+ }, null, 8, vv), [
10077
10077
  [ot, l.value]
10078
10078
  ]),
10079
10079
  c("button", {
@@ -10082,7 +10082,7 @@ const rm = { class: "vs-map-body" }, sm = {
10082
10082
  }, " Gen ")
10083
10083
  ]));
10084
10084
  }
10085
- }), gv = /* @__PURE__ */ Ye(vv, [["__scopeId", "data-v-b0eba370"]]), yv = { class: "relative flex gap-1 bg-white w-full" }, hv = ["disabled", "placeholder"], bv = ["disabled"], wv = { key: 0 }, xv = { key: 1 }, kv = /* @__PURE__ */ me({
10085
+ }), yv = /* @__PURE__ */ qe(gv, [["__scopeId", "data-v-b0eba370"]]), hv = { class: "relative flex gap-1 bg-white w-full" }, bv = ["disabled", "placeholder"], wv = ["disabled"], xv = { key: 0 }, kv = { key: 1 }, _v = /* @__PURE__ */ me({
10086
10086
  __name: "vs-input-codegen",
10087
10087
  props: /* @__PURE__ */ Re({
10088
10088
  table: {},
@@ -10131,13 +10131,13 @@ const rm = { class: "vs-map-body" }, sm = {
10131
10131
  () => {
10132
10132
  d();
10133
10133
  }
10134
- ), (f, _) => (u(), m("div", yv, [
10134
+ ), (f, _) => (u(), m("div", hv, [
10135
10135
  Oe(c("input", {
10136
10136
  disabled: f.disabled,
10137
10137
  placeholder: f.placeholder,
10138
10138
  "onUpdate:modelValue": _[0] || (_[0] = ($) => n.value = $),
10139
10139
  class: "block w-full px-3 py-2 text-sm border border-solid rounded-lg placeholder:text-nowrap border-stone-200 text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
10140
- }, null, 8, hv), [
10140
+ }, null, 8, bv), [
10141
10141
  [ot, n.value]
10142
10142
  ]),
10143
10143
  c("button", {
@@ -10145,20 +10145,20 @@ const rm = { class: "vs-map-body" }, sm = {
10145
10145
  disabled: l.value || f.disabled || !a.value,
10146
10146
  onClick: r
10147
10147
  }, [
10148
- l.value ? (u(), m("span", xv, "...")) : (u(), m("span", wv, "Gen"))
10149
- ], 8, bv)
10148
+ l.value ? (u(), m("span", kv, "...")) : (u(), m("span", xv, "Gen"))
10149
+ ], 8, wv)
10150
10150
  ]));
10151
10151
  }
10152
- }), _v = /* @__PURE__ */ Ye(kv, [["__scopeId", "data-v-6ee5237d"]]), $v = { class: "w-full" }, Sv = {
10152
+ }), $v = /* @__PURE__ */ qe(_v, [["__scopeId", "data-v-6ee5237d"]]), Sv = { class: "w-full" }, Cv = {
10153
10153
  ref: "sortableContainer",
10154
10154
  class: "flex flex-col gap-1"
10155
- }, Cv = ["onDragstart", "onDrop"], Mv = {
10155
+ }, Mv = ["onDragstart", "onDrop"], Lv = {
10156
10156
  class: "cursor-move",
10157
10157
  type: "button"
10158
- }, Lv = { class: "w-1/3" }, Av = { class: "w-2/3" }, Vv = ["onClick"], Dv = {
10158
+ }, Av = { class: "w-1/3" }, Vv = { class: "w-2/3" }, Dv = ["onClick"], Iv = {
10159
10159
  key: 0,
10160
10160
  class: "text-[14px] text-gray-700"
10161
- }, Iv = { class: "mt-2 w-full flex items-center" }, Tv = ["disabled"], Fv = /* @__PURE__ */ me({
10161
+ }, Tv = { class: "mt-2 w-full flex items-center" }, Fv = ["disabled"], Ev = /* @__PURE__ */ me({
10162
10162
  __name: "vs-input-key-value",
10163
10163
  props: {
10164
10164
  parent: {},
@@ -10206,8 +10206,8 @@ const rm = { class: "vs-map-body" }, sm = {
10206
10206
  }), a("update:modelValue", S);
10207
10207
  },
10208
10208
  { deep: !0 }
10209
- ), (b, S) => (u(), m("div", $v, [
10210
- c("div", Sv, [
10209
+ ), (b, S) => (u(), m("div", Sv, [
10210
+ c("div", Cv, [
10211
10211
  (u(!0), m(Me, null, Pe(d.value, (C, E) => (u(), m("div", {
10212
10212
  key: C.id,
10213
10213
  class: re(["flex items-center gap-2 w-full", { "opacity-50": f.value === E }]),
@@ -10217,17 +10217,17 @@ const rm = { class: "vs-map-body" }, sm = {
10217
10217
  }, ["prevent"])),
10218
10218
  onDrop: (D) => w(E)
10219
10219
  }, [
10220
- c("button", Mv, [
10220
+ c("button", Lv, [
10221
10221
  Z(z(hn), { class: "h-4 w-4" })
10222
10222
  ]),
10223
- c("div", Lv, [
10223
+ c("div", Av, [
10224
10224
  Z(Ln, {
10225
10225
  modelValue: C.key,
10226
10226
  "onUpdate:modelValue": (D) => C.key = D,
10227
10227
  placeholder: "Ключ"
10228
10228
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
10229
10229
  ]),
10230
- c("div", Av, [
10230
+ c("div", Vv, [
10231
10231
  Z(Ln, {
10232
10232
  modelValue: C.value,
10233
10233
  "onUpdate:modelValue": (D) => C.value = D,
@@ -10239,11 +10239,11 @@ const rm = { class: "vs-map-body" }, sm = {
10239
10239
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200"
10240
10240
  }, [
10241
10241
  Z(z(_t), { class: "h-4 w-4" })
10242
- ], 8, Vv)
10243
- ], 42, Cv))), 128))
10242
+ ], 8, Dv)
10243
+ ], 42, Mv))), 128))
10244
10244
  ], 512),
10245
- d.value.length ? Y("", !0) : (u(), m("span", Dv, " Дані для відображення відсутні ")),
10246
- c("div", Iv, [
10245
+ d.value.length ? Y("", !0) : (u(), m("span", Iv, " Дані для відображення відсутні ")),
10246
+ c("div", Tv, [
10247
10247
  c("button", {
10248
10248
  type: "button",
10249
10249
  onClick: v,
@@ -10252,17 +10252,17 @@ const rm = { class: "vs-map-body" }, sm = {
10252
10252
  }, [
10253
10253
  Z(z(Tt), { class: "h-4 w-4" }),
10254
10254
  et(" " + de(z(i)), 1)
10255
- ], 8, Tv)
10255
+ ], 8, Fv)
10256
10256
  ])
10257
10257
  ]));
10258
10258
  }
10259
- }), Ev = /* @__PURE__ */ Ye(Fv, [["__scopeId", "data-v-d8c3f9d6"]]), Pv = { class: "w-full" }, Ov = {
10259
+ }), Pv = /* @__PURE__ */ qe(Ev, [["__scopeId", "data-v-d8c3f9d6"]]), Ov = { class: "w-full" }, Bv = {
10260
10260
  ref: "sortableContainer",
10261
10261
  class: "flex flex-col gap-1"
10262
- }, Bv = ["onDragstart", "onDrop"], Rv = ["disabled"], Nv = { class: "flex-1" }, jv = ["onClick", "disabled"], zv = {
10262
+ }, Rv = ["onDragstart", "onDrop"], Nv = ["disabled"], jv = { class: "flex-1" }, zv = ["onClick", "disabled"], Uv = {
10263
10263
  key: 0,
10264
10264
  class: "text-[14px] text-gray-700"
10265
- }, Uv = { class: "mt-2 w-full flex items-center" }, Hv = ["disabled"], Wv = /* @__PURE__ */ me({
10265
+ }, Hv = { class: "mt-2 w-full flex items-center" }, Wv = ["disabled"], qv = /* @__PURE__ */ me({
10266
10266
  __name: "vs-input-text-array",
10267
10267
  props: /* @__PURE__ */ Re({
10268
10268
  addButtonText: { default: "Додати" },
@@ -10317,8 +10317,8 @@ const rm = { class: "vs-map-body" }, sm = {
10317
10317
  const S = [...l.value], [C] = S.splice(o.value, 1);
10318
10318
  S.splice(b, 0, C), l.value = S, o.value = null;
10319
10319
  }
10320
- return (b, S) => (u(), m("div", Pv, [
10321
- c("div", Ov, [
10320
+ return (b, S) => (u(), m("div", Ov, [
10321
+ c("div", Bv, [
10322
10322
  (u(!0), m(Me, null, Pe(l.value, (C, E) => (u(), m("div", {
10323
10323
  key: C.id,
10324
10324
  class: re(["flex items-center gap-2 w-full", { "opacity-50": o.value === E }]),
@@ -10334,8 +10334,8 @@ const rm = { class: "vs-map-body" }, sm = {
10334
10334
  disabled: a.value
10335
10335
  }, [
10336
10336
  Z(z(hn), { class: "h-4 w-4" })
10337
- ], 8, Rv),
10338
- c("div", Nv, [
10337
+ ], 8, Nv),
10338
+ c("div", jv, [
10339
10339
  b.inputType === "text" ? (u(), be(Ln, {
10340
10340
  key: 0,
10341
10341
  modelValue: C.value,
@@ -10373,11 +10373,11 @@ const rm = { class: "vs-map-body" }, sm = {
10373
10373
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200 disabled:opacity-50"
10374
10374
  }, [
10375
10375
  Z(z(_t), { class: "h-4 w-4" })
10376
- ], 8, jv)
10377
- ], 42, Bv))), 128))
10376
+ ], 8, zv)
10377
+ ], 42, Rv))), 128))
10378
10378
  ], 512),
10379
- l.value.length ? Y("", !0) : (u(), m("span", zv, " Дані для відображення відсутні ")),
10380
- c("div", Uv, [
10379
+ l.value.length ? Y("", !0) : (u(), m("span", Uv, " Дані для відображення відсутні ")),
10380
+ c("div", Hv, [
10381
10381
  c("button", {
10382
10382
  type: "button",
10383
10383
  onClick: w,
@@ -10386,11 +10386,11 @@ const rm = { class: "vs-map-body" }, sm = {
10386
10386
  }, [
10387
10387
  Z(z(Tt), { class: "h-4 w-4" }),
10388
10388
  et(" " + de(r.value), 1)
10389
- ], 8, Hv)
10389
+ ], 8, Wv)
10390
10390
  ])
10391
10391
  ]));
10392
10392
  }
10393
- }), qv = /* @__PURE__ */ Ye(Wv, [["__scopeId", "data-v-2c229b1f"]]), Kv = { class: "flex items-center gap-2 w-full" }, Yv = ["disabled"], Gv = ["disabled"], Xv = /* @__PURE__ */ me({
10393
+ }), Kv = /* @__PURE__ */ qe(qv, [["__scopeId", "data-v-2c229b1f"]]), Yv = { class: "flex items-center gap-2 w-full" }, Gv = ["disabled"], Xv = ["disabled"], Zv = /* @__PURE__ */ me({
10394
10394
  __name: "vs-input-color",
10395
10395
  props: {
10396
10396
  style: { default: () => ({}) },
@@ -10409,7 +10409,7 @@ const rm = { class: "vs-map-body" }, sm = {
10409
10409
  get: () => n.modelValue || "#000000",
10410
10410
  set: (r) => o("update:modelValue", r)
10411
10411
  }), i = h(() => !!n.disabled);
10412
- return (r, d) => (u(), m("div", Kv, [
10412
+ return (r, d) => (u(), m("div", Yv, [
10413
10413
  Oe(c("input", {
10414
10414
  type: "color",
10415
10415
  "onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f),
@@ -10417,19 +10417,19 @@ const rm = { class: "vs-map-body" }, sm = {
10417
10417
  ref: "color",
10418
10418
  class: re(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [r.modelValue ? "" : "text-opacity-50", z(l)].join(" ")]),
10419
10419
  style: { border: "1px solid #CFD9E0" }
10420
- }, null, 10, Yv), [
10420
+ }, null, 10, Gv), [
10421
10421
  [ot, a.value]
10422
10422
  ]),
10423
10423
  Oe(c("input", {
10424
10424
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
10425
10425
  "onUpdate:modelValue": d[1] || (d[1] = (f) => a.value = f),
10426
10426
  disabled: i.value
10427
- }, null, 8, Gv), [
10427
+ }, null, 8, Xv), [
10428
10428
  [ot, a.value]
10429
10429
  ])
10430
10430
  ]));
10431
10431
  }
10432
- }), Zv = { class: "flex items-center gap-2 w-full" }, Jv = ["min", "max", "step", "disabled"], Qv = ["value", "min", "max", "step", "disabled"], eg = /* @__PURE__ */ me({
10432
+ }), Jv = { class: "flex items-center gap-2 w-full" }, Qv = ["min", "max", "step", "disabled"], eg = ["value", "min", "max", "step", "disabled"], tg = /* @__PURE__ */ me({
10433
10433
  __name: "vs-input-range",
10434
10434
  props: {
10435
10435
  style: { default: () => ({}) },
@@ -10459,7 +10459,7 @@ const rm = { class: "vs-map-body" }, sm = {
10459
10459
  }, d = (_) => {
10460
10460
  Number(n.min) >= 0 && _.key === "-" && _.preventDefault();
10461
10461
  }, f = h(() => !!n.disabled);
10462
- return (_, $) => (u(), m("div", Zv, [
10462
+ return (_, $) => (u(), m("div", Jv, [
10463
10463
  Oe(c("input", {
10464
10464
  type: "range",
10465
10465
  "onUpdate:modelValue": $[0] || ($[0] = (w) => i.value = w),
@@ -10469,7 +10469,7 @@ const rm = { class: "vs-map-body" }, sm = {
10469
10469
  disabled: f.value,
10470
10470
  ref: "range",
10471
10471
  class: re(["w-full cursor-pointer accent-blue-500", [_.modelValue ? "" : "text-opacity-50", z(l)].join(" ")])
10472
- }, null, 10, Jv), [
10472
+ }, null, 10, Qv), [
10473
10473
  [ot, i.value]
10474
10474
  ]),
10475
10475
  c("input", {
@@ -10482,10 +10482,10 @@ const rm = { class: "vs-map-body" }, sm = {
10482
10482
  onInput: r,
10483
10483
  onKeydown: d,
10484
10484
  disabled: f.value
10485
- }, null, 40, Qv)
10485
+ }, null, 40, eg)
10486
10486
  ]));
10487
10487
  }
10488
- }), tg = ["placeholder", "disabled", "name"], ng = ["type", "value", "onInput", "placeholder", "disabled"], lg = ["onClick"], ag = /* @__PURE__ */ me({
10488
+ }), ng = ["placeholder", "disabled", "name"], lg = ["type", "value", "onInput", "placeholder", "disabled"], ag = ["onClick"], og = /* @__PURE__ */ me({
10489
10489
  __name: "vs-input-array",
10490
10490
  props: /* @__PURE__ */ Re({
10491
10491
  count: { default: 1 },
@@ -10605,7 +10605,7 @@ const rm = { class: "vs-map-body" }, sm = {
10605
10605
  style: {
10606
10606
  border: "1px solid #CFD9E0"
10607
10607
  }
10608
- }, null, 10, tg)) : (u(), m("input", {
10608
+ }, null, 10, ng)) : (u(), m("input", {
10609
10609
  key: 1,
10610
10610
  type: x.inputType,
10611
10611
  value: a.value?.[S - 1],
@@ -10616,7 +10616,7 @@ const rm = { class: "vs-map-body" }, sm = {
10616
10616
  style: {
10617
10617
  border: "1px solid #CFD9E0"
10618
10618
  }
10619
- }, null, 42, ng)),
10619
+ }, null, 42, lg)),
10620
10620
  !x.disabled && S === n.value && x.isAdded ? (u(), m("button", {
10621
10621
  key: 2,
10622
10622
  type: "button",
@@ -10632,17 +10632,17 @@ const rm = { class: "vs-map-body" }, sm = {
10632
10632
  class: "cursor-pointer shrink-0 w-[38px] text-red-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
10633
10633
  }, [
10634
10634
  Z(z(_t), { class: "h-4 w-4" })
10635
- ], 8, lg)) : Y("", !0)
10635
+ ], 8, ag)) : Y("", !0)
10636
10636
  ]))), 128))
10637
10637
  ], 2));
10638
10638
  }
10639
- }), og = { class: "flex gap-1 w-full" }, rg = ["aria-expanded", "data-focus"], sg = ["placeholder", "disabled", "readonly"], ig = { class: "max-h-full" }, ug = ["onClick", "disabled"], dg = {
10639
+ }), rg = { class: "flex gap-1 w-full" }, sg = ["aria-expanded", "data-focus"], ig = ["placeholder", "disabled", "readonly"], ug = { class: "max-h-full" }, dg = ["onClick", "disabled"], cg = {
10640
10640
  key: 0,
10641
10641
  class: "px-3 py-2 text-sm text-stone-500"
10642
- }, cg = ["disabled"], fg = { class: "flex flex-col gap-1" }, pg = ["onDragstart", "onDrop"], mg = ["disabled"], vg = ["title"], gg = ["disabled", "onClick", "aria-label"], yg = {
10642
+ }, fg = ["disabled"], pg = { class: "flex flex-col gap-1" }, mg = ["onDragstart", "onDrop"], vg = ["disabled"], gg = ["title"], yg = ["disabled", "onClick", "aria-label"], hg = {
10643
10643
  key: 0,
10644
10644
  class: "text-xs text-stone-500"
10645
- }, hg = /* @__PURE__ */ me({
10645
+ }, bg = /* @__PURE__ */ me({
10646
10646
  __name: "vs-input-array-select",
10647
10647
  props: /* @__PURE__ */ Re({
10648
10648
  options: { default: () => [] },
@@ -10730,8 +10730,8 @@ const rm = { class: "vs-map-body" }, sm = {
10730
10730
  const P = Array.from(new Set(g.map((Ce) => T(Ce)))), oe = new URLSearchParams();
10731
10731
  oe.set("json", "1"), oe.set("val", P.join(",")), n.start === 1 && oe.set("start", "1"), B.value !== null && B.value !== void 0 && B.value !== "" && oe.set("parent", String(B.value));
10732
10732
  try {
10733
- const Ke = (await (await fetch(`${L}?${oe.toString()}`)).json())?.data ?? [];
10734
- return ie(Ke), Ke;
10733
+ const Ye = (await (await fetch(`${L}?${oe.toString()}`)).json())?.data ?? [];
10734
+ return ie(Ye), Ye;
10735
10735
  } catch {
10736
10736
  return [];
10737
10737
  }
@@ -10757,14 +10757,14 @@ const rm = { class: "vs-map-body" }, sm = {
10757
10757
  n.data && await N(g, { force: !0 });
10758
10758
  }, 250), se = V(null), Se = () => {
10759
10759
  if (!v.value) return;
10760
- const g = v.value.getBoundingClientRect(), L = window.innerHeight ?? document.documentElement.clientHeight, P = window.innerWidth ?? document.documentElement.clientWidth, oe = 8, Ce = 8, Xe = n.maxHeight ?? 280, Ke = L - g.bottom - Ce - oe, it = g.top - Ce - oe, dt = Ke >= it, St = Math.max(P - oe * 2, 0);
10760
+ const g = v.value.getBoundingClientRect(), L = window.innerHeight ?? document.documentElement.clientHeight, P = window.innerWidth ?? document.documentElement.clientWidth, oe = 8, Ce = 8, Xe = n.maxHeight ?? 280, Ye = L - g.bottom - Ce - oe, it = g.top - Ce - oe, dt = Ye >= it, St = Math.max(P - oe * 2, 0);
10761
10761
  let { width: ct } = g;
10762
10762
  St > 0 && ct > St && (ct = St);
10763
10763
  let { left: xt } = g;
10764
10764
  xt + ct + oe > P && (xt = P - ct - oe), xt = Math.max(xt, oe);
10765
10765
  const Zt = Math.min(
10766
10766
  Xe,
10767
- Math.max(dt ? Ke : it, 50)
10767
+ Math.max(dt ? Ye : it, 50)
10768
10768
  );
10769
10769
  S.value = {
10770
10770
  position: "fixed",
@@ -10841,7 +10841,7 @@ const rm = { class: "vs-map-body" }, sm = {
10841
10841
  addSchema: Ge,
10842
10842
  addForm: yt,
10843
10843
  addTitle: je,
10844
- addOption: qe,
10844
+ addOption: Ke,
10845
10845
  onAddValue: $t
10846
10846
  } = lo({
10847
10847
  props: n,
@@ -10921,7 +10921,7 @@ const rm = { class: "vs-map-body" }, sm = {
10921
10921
  class: "z-[1000]",
10922
10922
  title: z(je),
10923
10923
  buttonText: "Додати",
10924
- onDone: z(qe)
10924
+ onDone: z(Ke)
10925
10925
  }, {
10926
10926
  default: rt(() => [
10927
10927
  Z(Nt, {
@@ -10939,7 +10939,7 @@ const rm = { class: "vs-map-body" }, sm = {
10939
10939
  ref_key: "rootRef",
10940
10940
  ref: k
10941
10941
  }, [
10942
- c("div", og, [
10942
+ c("div", rg, [
10943
10943
  c("div", {
10944
10944
  class: "relative flex-1",
10945
10945
  onClick: L[4] || (L[4] = Te(() => {
@@ -10970,7 +10970,7 @@ const rm = { class: "vs-map-body" }, sm = {
10970
10970
  onFocus: L[3] || (L[3] = () => Ie("focus")),
10971
10971
  onKeydown: We,
10972
10972
  class: "flex-1 bg-transparent border-0 outline-none px-0 py-1 text-sm text-stone-900 placeholder:text-stone-400"
10973
- }, null, 40, sg), [
10973
+ }, null, 40, ig), [
10974
10974
  [ot, _.value]
10975
10975
  ]),
10976
10976
  c("span", {
@@ -10979,7 +10979,7 @@ const rm = { class: "vs-map-body" }, sm = {
10979
10979
  }, [
10980
10980
  Z(z(wn), { class: "h-4 w-4" })
10981
10981
  ], 2)
10982
- ], 10, rg),
10982
+ ], 10, sg),
10983
10983
  (u(), be(Xt, { to: "body" }, [
10984
10984
  Z(ll, { name: "fade" }, {
10985
10985
  default: rt(() => [
@@ -10990,15 +10990,15 @@ const rm = { class: "vs-map-body" }, sm = {
10990
10990
  class: "fixed z-[3000] rounded-md border border-stone-200 bg-white shadow-lg overflow-auto",
10991
10991
  style: Ee(S.value)
10992
10992
  }, [
10993
- c("div", ig, [
10993
+ c("div", ug, [
10994
10994
  (u(!0), m(Me, null, Pe(ee.value, (P) => (u(), m("button", {
10995
10995
  key: T(P.id),
10996
10996
  type: "button",
10997
10997
  class: "w-full px-3 py-2 text-left text-sm text-stone-900 hover:bg-stone-100 disabled:opacity-50",
10998
10998
  onClick: Te((oe) => le(P), ["stop"]),
10999
10999
  disabled: K.value
11000
- }, de(H(P)), 9, ug))), 128)),
11001
- ee.value.length === 0 ? (u(), m("p", dg, " Немає варіантів ")) : Y("", !0)
11000
+ }, de(H(P)), 9, dg))), 128)),
11001
+ ee.value.length === 0 ? (u(), m("p", cg, " Немає варіантів ")) : Y("", !0)
11002
11002
  ])
11003
11003
  ], 4)) : Y("", !0)
11004
11004
  ]),
@@ -11016,9 +11016,9 @@ const rm = { class: "vs-map-body" }, sm = {
11016
11016
  }, [
11017
11017
  Z(z(Tt), { class: "h-4 w-4" }),
11018
11018
  L[8] || (L[8] = c("span", null, "Додати", -1))
11019
- ], 8, cg)) : Y("", !0)
11019
+ ], 8, fg)) : Y("", !0)
11020
11020
  ]),
11021
- c("div", fg, [
11021
+ c("div", pg, [
11022
11022
  (u(!0), m(Me, null, Pe(a.value, (P, oe) => (u(), m("div", {
11023
11023
  key: P.key,
11024
11024
  class: re(["flex items-center gap-2 rounded-md border border-stone-200 bg-white px-2 py-2", { "opacity-60": w.value === oe }]),
@@ -11036,11 +11036,11 @@ const rm = { class: "vs-map-body" }, sm = {
11036
11036
  "aria-label": "Перетягнути"
11037
11037
  }, [
11038
11038
  Z(z(hn), { class: "h-4 w-4" })
11039
- ], 8, mg),
11039
+ ], 8, vg),
11040
11040
  c("div", {
11041
11041
  class: "flex-1 text-sm text-stone-900",
11042
11042
  title: P.text
11043
- }, de(P.text), 9, vg),
11043
+ }, de(P.text), 9, gg),
11044
11044
  c("button", {
11045
11045
  type: "button",
11046
11046
  class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-stone-400 hover:text-stone-900",
@@ -11049,20 +11049,20 @@ const rm = { class: "vs-map-body" }, sm = {
11049
11049
  "aria-label": `Видалити ${P.text}`
11050
11050
  }, [
11051
11051
  Z(z(_t), { class: "h-4 w-4" })
11052
- ], 8, gg)
11053
- ], 42, pg))), 128)),
11054
- a.value.length === 0 ? (u(), m("p", yg, "Немає вибраних значень")) : Y("", !0)
11052
+ ], 8, yg)
11053
+ ], 42, mg))), 128)),
11054
+ a.value.length === 0 ? (u(), m("p", hg, "Немає вибраних значень")) : Y("", !0)
11055
11055
  ])
11056
11056
  ], 512)
11057
11057
  ], 64));
11058
11058
  }
11059
- }), Al = /* @__PURE__ */ Ye(hg, [["__scopeId", "data-v-da4b4da7"]]), bg = { class: "flex items-center gap-2 w-full" }, wg = { class: "relative flex-1" }, xg = ["placeholder", "disabled", "onKeydown"], kg = ["disabled"], _g = {
11059
+ }), Al = /* @__PURE__ */ qe(bg, [["__scopeId", "data-v-da4b4da7"]]), wg = { class: "flex items-center gap-2 w-full" }, xg = { class: "relative flex-1" }, kg = ["placeholder", "disabled", "onKeydown"], _g = ["disabled"], $g = {
11060
11060
  key: 0,
11061
11061
  class: "fixed inset-0 z-[1000] flex items-center justify-center bg-black/50"
11062
- }, $g = { class: "bg-white text-gray-900 rounded-lg shadow-lg w-[480px] max-h-[80vh] overflow-y-auto" }, Sg = { class: "p-3 border-b font-semibold text-gray-900 flex justify-between items-center" }, Cg = ["onClick"], Mg = {
11062
+ }, Sg = { class: "bg-white text-gray-900 rounded-lg shadow-lg w-[480px] max-h-[80vh] overflow-y-auto" }, Cg = { class: "p-3 border-b font-semibold text-gray-900 flex justify-between items-center" }, Mg = ["onClick"], Lg = {
11063
11063
  key: 0,
11064
11064
  class: "p-4 text-sm text-gray-500"
11065
- }, Lg = /* @__PURE__ */ me({
11065
+ }, Ag = /* @__PURE__ */ me({
11066
11066
  __name: "vs-input-address",
11067
11067
  props: /* @__PURE__ */ Re({
11068
11068
  api: { default: "" },
@@ -11160,8 +11160,8 @@ const rm = { class: "vs-map-body" }, sm = {
11160
11160
  };
11161
11161
  return l.api.replace(n, (B, T) => O[T.trim()] ?? "");
11162
11162
  }
11163
- return (F, O) => (u(), m("div", bg, [
11164
- c("div", wg, [
11163
+ return (F, O) => (u(), m("div", wg, [
11164
+ c("div", xg, [
11165
11165
  Oe(c("input", {
11166
11166
  type: "text",
11167
11167
  "onUpdate:modelValue": O[0] || (O[0] = (B) => r.value = B),
@@ -11170,7 +11170,7 @@ const rm = { class: "vs-map-body" }, sm = {
11170
11170
  class: re(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [z(a), { "!border-red-600": l.error }]]),
11171
11171
  style: { border: "1px solid #CFD9E0" },
11172
11172
  onKeydown: Uo(Te(C, ["prevent"]), ["enter"])
11173
- }, null, 42, xg), [
11173
+ }, null, 42, kg), [
11174
11174
  [ot, r.value]
11175
11175
  ]),
11176
11176
  f.value.length ? (u(), m("button", {
@@ -11196,11 +11196,11 @@ const rm = { class: "vs-map-body" }, sm = {
11196
11196
  key: 0,
11197
11197
  class: "h-4 w-4"
11198
11198
  }))
11199
- ], 8, kg),
11199
+ ], 8, _g),
11200
11200
  (u(), be(Xt, { to: "body" }, [
11201
- _.value ? (u(), m("div", _g, [
11202
- c("div", $g, [
11203
- c("div", Sg, [
11201
+ _.value ? (u(), m("div", $g, [
11202
+ c("div", Sg, [
11203
+ c("div", Cg, [
11204
11204
  O[2] || (O[2] = c("span", null, "Результати пошуку", -1)),
11205
11205
  c("button", {
11206
11206
  class: "text-gray-500 hover:text-blue-600",
@@ -11215,18 +11215,18 @@ const rm = { class: "vs-map-body" }, sm = {
11215
11215
  key: T,
11216
11216
  onClick: (H) => K(B),
11217
11217
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
11218
- }, de(B.display_name), 9, Cg))), 128))
11218
+ }, de(B.display_name), 9, Mg))), 128))
11219
11219
  ]),
11220
- f.value.length ? Y("", !0) : (u(), m("div", Mg, " Не знайдено результатів "))
11220
+ f.value.length ? Y("", !0) : (u(), m("div", Lg, " Не знайдено результатів "))
11221
11221
  ])
11222
11222
  ])) : Y("", !0)
11223
11223
  ]))
11224
11224
  ]));
11225
11225
  }
11226
- }), Ag = { class: "vs-datalist space-y-3" }, Vg = { class: "space-y-3" }, Dg = ["onClick", "disabled"], Ig = {
11226
+ }), Vg = { class: "vs-datalist space-y-3" }, Dg = { class: "space-y-3" }, Ig = ["onClick", "disabled"], Tg = {
11227
11227
  key: 0,
11228
11228
  class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
11229
- }, Tg = ["disabled"], Fg = /* @__PURE__ */ me({
11229
+ }, Fg = ["disabled"], Eg = /* @__PURE__ */ me({
11230
11230
  __name: "vs-input-datalist",
11231
11231
  props: /* @__PURE__ */ Re({
11232
11232
  schema: { default: () => [] },
@@ -11285,8 +11285,8 @@ const rm = { class: "vs-map-body" }, sm = {
11285
11285
  ...b
11286
11286
  };
11287
11287
  }
11288
- return (b, S) => (u(), m("div", Ag, [
11289
- c("div", Vg, [
11288
+ return (b, S) => (u(), m("div", Vg, [
11289
+ c("div", Dg, [
11290
11290
  (u(!0), m(Me, null, Pe(l.value, (C, E) => (u(), m("div", {
11291
11291
  key: o.value[E],
11292
11292
  class: re(["flex items-center gap-3 rounded-lg transition-colors", {
@@ -11308,9 +11308,9 @@ const rm = { class: "vs-map-body" }, sm = {
11308
11308
  disabled: f.value
11309
11309
  }, [
11310
11310
  Z(z(an), { class: "h-4 w-4" })
11311
- ], 8, Dg)
11311
+ ], 8, Ig)
11312
11312
  ], 2))), 128)),
11313
- l.value.length === 0 ? (u(), m("div", Ig, de(t.emptyLabel), 1)) : Y("", !0)
11313
+ l.value.length === 0 ? (u(), m("div", Tg, de(t.emptyLabel), 1)) : Y("", !0)
11314
11314
  ]),
11315
11315
  c("button", {
11316
11316
  type: "button",
@@ -11320,13 +11320,13 @@ const rm = { class: "vs-map-body" }, sm = {
11320
11320
  }, [
11321
11321
  Z(z(Tt), { class: "h-4 w-4" }),
11322
11322
  et(" " + de(t.addButtonText), 1)
11323
- ], 8, Tg)
11323
+ ], 8, Fg)
11324
11324
  ]));
11325
11325
  }
11326
- }), Eg = /* @__PURE__ */ Ye(Fg, [["__scopeId", "data-v-d0065868"]]), Pg = { class: "vs-dataform space-y-4" }, Og = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], Bg = { class: "flex items-center gap-2" }, Rg = ["onClick"], Ng = { class: "text-sm font-medium text-gray-700" }, jg = { class: "flex items-center gap-2" }, zg = ["title", "onClick", "disabled"], Ug = ["title", "onClick", "disabled"], Hg = {
11326
+ }), Pg = /* @__PURE__ */ qe(Eg, [["__scopeId", "data-v-d0065868"]]), Og = { class: "vs-dataform space-y-4" }, Bg = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], Rg = { class: "flex items-center gap-2" }, Ng = ["onClick"], jg = { class: "text-sm font-medium text-gray-700" }, zg = { class: "flex items-center gap-2" }, Ug = ["title", "onClick", "disabled"], Hg = ["title", "onClick", "disabled"], Wg = {
11327
11327
  key: 0,
11328
11328
  class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
11329
- }, Wg = ["disabled"], qg = /* @__PURE__ */ me({
11329
+ }, qg = ["disabled"], Kg = /* @__PURE__ */ me({
11330
11330
  __name: "vs-input-dataform",
11331
11331
  props: /* @__PURE__ */ Re({
11332
11332
  schema: { default: () => [] },
@@ -11473,7 +11473,7 @@ const rm = { class: "vs-map-body" }, sm = {
11473
11473
  function J() {
11474
11474
  d.value = null, i.value = null, r.value = null;
11475
11475
  }
11476
- return (N, ve) => (u(), m("div", Pg, [
11476
+ return (N, ve) => (u(), m("div", Og, [
11477
11477
  (u(!0), m(Me, null, Pe(n.value, (ye, se) => (u(), m("div", {
11478
11478
  key: l.value[se],
11479
11479
  class: re(["relative border border-gray-200 rounded-lg bg-white transition vs-dataform__group", [
@@ -11492,7 +11492,7 @@ const rm = { class: "vs-map-body" }, sm = {
11492
11492
  t.view !== "accordion" && !T(se) ? "rounded-t-lg" : "rounded-lg"
11493
11493
  ]])
11494
11494
  }, [
11495
- c("div", Bg, [
11495
+ c("div", Rg, [
11496
11496
  x.value ? (u(), be(z(hn), {
11497
11497
  key: 0,
11498
11498
  class: "h-4 w-4 text-gray-400",
@@ -11507,10 +11507,10 @@ const rm = { class: "vs-map-body" }, sm = {
11507
11507
  Z(z(wn), {
11508
11508
  class: re(["h-4 w-4 transition", T(se) ? "-rotate-90" : "rotate-0"])
11509
11509
  }, null, 8, ["class"])
11510
- ], 8, Rg)) : Y("", !0),
11511
- c("div", Ng, de(`${f.value} (${se + 1})`), 1)
11510
+ ], 8, Ng)) : Y("", !0),
11511
+ c("div", jg, de(`${f.value} (${se + 1})`), 1)
11512
11512
  ]),
11513
- c("div", jg, [
11513
+ c("div", zg, [
11514
11514
  c("button", {
11515
11515
  type: "button",
11516
11516
  class: "p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-50 rounded-lg transition-all disabled:opacity-40",
@@ -11520,7 +11520,7 @@ const rm = { class: "vs-map-body" }, sm = {
11520
11520
  draggable: "false"
11521
11521
  }, [
11522
11522
  Z(z(rr), { class: "h-4 w-4" })
11523
- ], 8, zg),
11523
+ ], 8, Ug),
11524
11524
  c("button", {
11525
11525
  type: "button",
11526
11526
  class: "p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-50 rounded-lg transition-all disabled:opacity-40",
@@ -11530,7 +11530,7 @@ const rm = { class: "vs-map-body" }, sm = {
11530
11530
  draggable: "false"
11531
11531
  }, [
11532
11532
  Z(z(an), { class: "h-4 w-4" })
11533
- ], 8, Ug)
11533
+ ], 8, Hg)
11534
11534
  ])
11535
11535
  ], 2),
11536
11536
  Oe(c("div", {
@@ -11549,8 +11549,8 @@ const rm = { class: "vs-map-body" }, sm = {
11549
11549
  ], 2), [
11550
11550
  [Rt, !T(se)]
11551
11551
  ])
11552
- ], 42, Og))), 128)),
11553
- n.value.length === 0 ? (u(), m("div", Hg, de(_.value), 1)) : Y("", !0),
11552
+ ], 42, Bg))), 128)),
11553
+ n.value.length === 0 ? (u(), m("div", Wg, de(_.value), 1)) : Y("", !0),
11554
11554
  c("button", {
11555
11555
  type: "button",
11556
11556
  class: "flex items-center gap-2 text-gray-600 hover:text-gray-900 font-medium transition-colors text-sm",
@@ -11559,10 +11559,10 @@ const rm = { class: "vs-map-body" }, sm = {
11559
11559
  }, [
11560
11560
  Z(z(Tt), { class: "h-4 w-4" }),
11561
11561
  et(" " + de(t.addButtonText), 1)
11562
- ], 8, Wg)
11562
+ ], 8, qg)
11563
11563
  ]));
11564
11564
  }
11565
- }), Kg = /* @__PURE__ */ Ye(qg, [["__scopeId", "data-v-cfbcfed8"]]), Gn = "__vs_form_monaco_loader__", rn = "__vs_form_monaco_script_loader__", Xn = "__vs_form_monaco_editor_loader__", Yg = /* @__PURE__ */ me({
11565
+ }), Yg = /* @__PURE__ */ qe(Kg, [["__scopeId", "data-v-cfbcfed8"]]), Gn = "__vs_form_monaco_loader__", rn = "__vs_form_monaco_script_loader__", Xn = "__vs_form_monaco_editor_loader__", Gg = /* @__PURE__ */ me({
11566
11566
  __name: "vs-input-monaco",
11567
11567
  props: /* @__PURE__ */ Re({
11568
11568
  syntax: { default: "xml" },
@@ -11701,7 +11701,7 @@ const rm = { class: "vs-map-body" }, sm = {
11701
11701
  }, null, 512)
11702
11702
  ], 4));
11703
11703
  }
11704
- }), Gg = {
11704
+ }), Xg = {
11705
11705
  VsInputText: Ln,
11706
11706
  VsInputRadio: wa,
11707
11707
  VsInputInlineSelect: Ml,
@@ -11730,31 +11730,31 @@ const rm = { class: "vs-map-body" }, sm = {
11730
11730
  "vs-input-html": ya,
11731
11731
  "vs-input-email": qa,
11732
11732
  "vs-input-tel": Ka,
11733
- "vs-input-datatable": Zc,
11733
+ "vs-input-datatable": Jc,
11734
11734
  // 20kb
11735
- "vs-input-map": nv,
11735
+ "vs-input-map": lv,
11736
11736
  // 50kb
11737
11737
  "vs-input-file-list": Ju,
11738
- "vs-input-tags": fv,
11739
- "vs-input-slug": gv,
11740
- "vs-input-codegen": _v,
11741
- "vs-input-key-value": Ev,
11742
- "vs-input-text[]": qv,
11743
- "vs-input-range": eg,
11744
- "vs-input-color": Xv,
11738
+ "vs-input-tags": pv,
11739
+ "vs-input-slug": yv,
11740
+ "vs-input-codegen": $v,
11741
+ "vs-input-key-value": Pv,
11742
+ "vs-input-text[]": Kv,
11743
+ "vs-input-range": tg,
11744
+ "vs-input-color": Zv,
11745
11745
  "vs-input-native-select": Ma,
11746
11746
  VsInputArraySelect: Al,
11747
- "vs-input-array": ag,
11747
+ "vs-input-array": og,
11748
11748
  "vs-input-array-select": Al,
11749
11749
  "array-select": Al,
11750
- "vs-input-address": Lg,
11750
+ "vs-input-address": Ag,
11751
11751
  // 7kb
11752
- "vs-input-datalist": Eg,
11752
+ "vs-input-datalist": Pg,
11753
11753
  // 3kb
11754
- "vs-input-dataform": Kg,
11754
+ "vs-input-dataform": Yg,
11755
11755
  // 5kb
11756
- "vs-input-monaco": Yg
11757
- }, Xg = /* @__PURE__ */ me({
11756
+ "vs-input-monaco": Gg
11757
+ }, Zg = /* @__PURE__ */ me({
11758
11758
  __name: "behavior",
11759
11759
  props: {
11760
11760
  api: {},
@@ -11800,7 +11800,7 @@ const rm = { class: "vs-map-body" }, sm = {
11800
11800
  class: "vs-button relative inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border !border-gray-200 hover:text-white bg-white text-blue-500 hover:border-blue-500 hover:bg-blue-500 focus:ring-blue-500 py-1.5 px-5 focus:ring-1 focus:ring-offset-1 ml-0 md:ml-2 mt-2 md:mt-0 py-[8px] md:w-2/4 whitespace-nowrap w-full"
11801
11801
  }, de(a.button), 1));
11802
11802
  }
11803
- }), Zg = { class: "flex flex-col gap-1 w-full" }, Jg = { class: "w-full" }, Qg = ["disabled"], ey = ["innerHTML"], ty = 2e3, ny = 10, so = /* @__PURE__ */ me({
11803
+ }), Jg = { class: "flex flex-col gap-1 w-full" }, Qg = { class: "w-full" }, ey = ["disabled"], ty = ["innerHTML"], ny = 2e3, ly = 10, so = /* @__PURE__ */ me({
11804
11804
  __name: "vs-compact-form-layout",
11805
11805
  props: /* @__PURE__ */ Re({
11806
11806
  item: { default: {} },
@@ -11818,7 +11818,7 @@ const rm = { class: "vs-map-body" }, sm = {
11818
11818
  const n = e, l = ze(e, "modelValue"), o = t, a = h(() => Tr[`${n.layout}`]), i = ["label", "placeholder", "info", "description", "text", "html"], r = V(fe()), d = h(() => B(n.item, r.value)), f = h(() => {
11819
11819
  const ee = { ...d.value ?? {} }, ne = n.item?.name;
11820
11820
  return ne && $?.value?.[ne] && Object.assign(ee, $.value[ne]), ee.__locale = r.value, ee;
11821
- }), _ = h(() => Gg?.[`vs-input-${n.item.type}`]), $ = Je("field-props"), w = h(() => {
11821
+ }), _ = h(() => Xg?.[`vs-input-${n.item.type}`]), $ = Je("field-props"), w = h(() => {
11822
11822
  const ee = z(_);
11823
11823
  if (!ee) return /* @__PURE__ */ new Set();
11824
11824
  const ne = ee.props ?? ee.__vccOpts?.props;
@@ -11904,9 +11904,9 @@ const rm = { class: "vs-map-body" }, sm = {
11904
11904
  K.value = !0;
11905
11905
  try {
11906
11906
  let X = await fetch(ge), Q = 0;
11907
- for (; X.status === 202 && Q < ny; )
11907
+ for (; X.status === 202 && Q < ly; )
11908
11908
  Q += 1, await new Promise((N) => {
11909
- setTimeout(N, ty);
11909
+ setTimeout(N, ny);
11910
11910
  }), X = await fetch(ge);
11911
11911
  if (X.status === 202) {
11912
11912
  Ae({ type: "warning", title: "Validation", message: "Сервер ще обробляє запит. Спробуйте пізніше." });
@@ -11982,11 +11982,11 @@ const rm = { class: "vs-map-body" }, sm = {
11982
11982
  c("div", {
11983
11983
  class: re(["flex w-full", `${n.item.type}-component`])
11984
11984
  }, [
11985
- c("div", Zg, [
11985
+ c("div", Jg, [
11986
11986
  c("div", {
11987
11987
  class: re(["flex items-center gap-2 w-full", { "flex-1": G.value }])
11988
11988
  }, [
11989
- c("div", Jg, [
11989
+ c("div", Qg, [
11990
11990
  (u(), be(ht(_.value), nn(S.value, {
11991
11991
  modelValue: l.value,
11992
11992
  "onUpdate:modelValue": ne[0] || (ne[0] = (ge) => l.value = ge),
@@ -12007,21 +12007,21 @@ const rm = { class: "vs-map-body" }, sm = {
12007
12007
  key: 0,
12008
12008
  class: "h-4 w-4"
12009
12009
  }))
12010
- ], 8, Qg)) : Y("", !0)
12010
+ ], 8, ey)) : Y("", !0)
12011
12011
  ], 2),
12012
12012
  f.value.description && n.layout !== "settings" ? (u(), m("p", {
12013
12013
  key: 0,
12014
12014
  class: "text-sm text-gray-500",
12015
12015
  innerHTML: f.value.description
12016
- }, null, 8, ey)) : Y("", !0)
12016
+ }, null, 8, ty)) : Y("", !0)
12017
12017
  ]),
12018
- f.value.behavior?.api && f.value.behavior?.button ? (u(), be(Xg, nn({ key: 0 }, f.value.behavior, { value: l.value }), null, 16, ["value"])) : Y("", !0)
12018
+ f.value.behavior?.api && f.value.behavior?.button ? (u(), be(Zg, nn({ key: 0 }, f.value.behavior, { value: l.value }), null, 16, ["value"])) : Y("", !0)
12019
12019
  ], 2)
12020
12020
  ]),
12021
12021
  _: 1
12022
12022
  }, 8, ["ua", "error", "item", "columns", "label"]));
12023
12023
  }
12024
- }), ly = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, ay = { class: "vs-compact-form-navigation__rail mt-[6px]" }, oy = ["onClick"], ry = /* @__PURE__ */ me({
12024
+ }), ay = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, oy = { class: "vs-compact-form-navigation__rail mt-[6px]" }, ry = ["onClick"], sy = /* @__PURE__ */ me({
12025
12025
  __name: "vs-compact-form-navigation",
12026
12026
  props: {
12027
12027
  target: {},
@@ -12153,8 +12153,8 @@ const rm = { class: "vs-map-body" }, sm = {
12153
12153
  class: re(r.value),
12154
12154
  style: Ee(d.value)
12155
12155
  }, [
12156
- c("h2", ly, de(H.title), 1),
12157
- c("div", ay, [
12156
+ c("h2", ay, de(H.title), 1),
12157
+ c("div", oy, [
12158
12158
  (u(!0), m(Me, null, Pe(l.value, (ke) => (u(), m("div", {
12159
12159
  key: ke.id,
12160
12160
  class: re([
@@ -12173,12 +12173,12 @@ const rm = { class: "vs-map-body" }, sm = {
12173
12173
  ])
12174
12174
  }, [
12175
12175
  c("span", null, de(ke.text), 1)
12176
- ], 10, oy)
12176
+ ], 10, ry)
12177
12177
  ], 2))), 128))
12178
12178
  ])
12179
12179
  ], 6)) : Y("", !0);
12180
12180
  }
12181
- }), sy = /* @__PURE__ */ Ye(ry, [["__scopeId", "data-v-1584a562"]]), It = {
12181
+ }), iy = /* @__PURE__ */ qe(sy, [["__scopeId", "data-v-1584a562"]]), It = {
12182
12182
  required: "Це поле є обов’язковим",
12183
12183
  email: "Неправильний email",
12184
12184
  tel: "Неправильний телефон",
@@ -12186,20 +12186,20 @@ const rm = { class: "vs-map-body" }, sm = {
12186
12186
  maxlength: (e) => `Максимальна довжина — ${e} символів`,
12187
12187
  min: (e) => `Значення має бути не менше ${e}`,
12188
12188
  max: (e) => `Значення має бути не більше ${e}`
12189
- }, iy = (e) => typeof e == "string" ? e.trim() ? !1 : It.required : Array.isArray(e) ? e.map((n) => typeof n == "string" ? n.trim() : n).filter((n) => n != null && n !== "").length ? !1 : It.required : typeof e == "number" ? Number?.isNaN(e) ? It?.required : !1 : e ? !1 : It.required, uy = (e) => {
12189
+ }, uy = (e) => typeof e == "string" ? e.trim() ? !1 : It.required : Array.isArray(e) ? e.map((n) => typeof n == "string" ? n.trim() : n).filter((n) => n != null && n !== "").length ? !1 : It.required : typeof e == "number" ? Number?.isNaN(e) ? It?.required : !1 : e ? !1 : It.required, dy = (e) => {
12190
12190
  const t = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/;
12191
12191
  return e ? t.test(e) ? !1 : It.email : !1;
12192
- }, dy = (e, t) => {
12192
+ }, cy = (e, t) => {
12193
12193
  if (!e) return !1;
12194
12194
  const n = String(e).trim();
12195
12195
  if (!/^\+[1-9]\d{1,14}$/.test(n)) return It.tel;
12196
12196
  const a = (typeof t?.digits == "number" && Number.isFinite(t.digits) && t.digits > 0 ? t.digits : tn(Gt)) || tn(Gt);
12197
12197
  return n.length - 1 !== a ? It.tel : !1;
12198
- }, io = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, cy = (e, t) => {
12198
+ }, io = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, fy = (e, t) => {
12199
12199
  if (e == null) return !1;
12200
12200
  const n = Number(t?.value ?? t?.length);
12201
12201
  return Number.isFinite(n) && io(e) < n ? t?.message || It.minlength(n) : !1;
12202
- }, fy = (e, t) => {
12202
+ }, py = (e, t) => {
12203
12203
  if (e == null || e === "") return !1;
12204
12204
  const n = Number(t?.value ?? t?.length);
12205
12205
  return Number.isFinite(n) && io(e) > n ? t?.message || It.maxlength(n) : !1;
@@ -12210,19 +12210,19 @@ const rm = { class: "vs-map-body" }, sm = {
12210
12210
  return t ? Number(t) : Number.NaN;
12211
12211
  }
12212
12212
  return Number(e);
12213
- }, py = (e, t) => {
12213
+ }, my = (e, t) => {
12214
12214
  if (e == null || e === "") return !1;
12215
12215
  const n = Number(t?.value);
12216
12216
  if (!Number.isFinite(n)) return !1;
12217
12217
  const l = tl(e);
12218
12218
  return Number.isFinite(l) && l < n ? t?.message || It.min(n) : !1;
12219
- }, my = (e, t) => {
12219
+ }, vy = (e, t) => {
12220
12220
  if (e == null || e === "") return !1;
12221
12221
  const n = Number(t?.value);
12222
12222
  if (!Number.isFinite(n)) return !1;
12223
12223
  const l = tl(e);
12224
12224
  return Number.isFinite(l) && l > n ? t?.message || It.max(n) : !1;
12225
- }, vy = (e, t, n) => {
12225
+ }, gy = (e, t, n) => {
12226
12226
  if (e == null || e === "") return !1;
12227
12227
  const l = t?.field;
12228
12228
  if (!l || !n) return !1;
@@ -12230,39 +12230,39 @@ const rm = { class: "vs-map-body" }, sm = {
12230
12230
  if (o == null || o === "") return !1;
12231
12231
  const a = tl(e), i = tl(o);
12232
12232
  return !Number.isFinite(a) || !Number.isFinite(i) ? !1 : a > i ? t?.message || `Значення має бути не більше ${i}` : !1;
12233
- }, gy = (e, t) => {
12233
+ }, yy = (e, t) => {
12234
12234
  const n = t.pattern ?? t.regexp, l = typeof n == "string" ? new RegExp(n) : n;
12235
12235
  if (Array.isArray(e)) {
12236
12236
  const o = e.filter(Boolean);
12237
12237
  return o.length === 0 || o.every((a) => l.test(a)) ? !1 : t.message;
12238
12238
  }
12239
12239
  return !l.test(e) && e ? t.message : !1;
12240
- }, yy = (e, t) => !1, hy = (e, t, n) => {
12240
+ }, hy = (e, t) => !1, by = (e, t, n) => {
12241
12241
  switch (typeof t == "string" ? t : t.type) {
12242
12242
  case "required":
12243
- return iy(e);
12244
- case "email":
12245
12243
  return uy(e);
12244
+ case "email":
12245
+ return dy(e);
12246
12246
  case "tel":
12247
- return dy(e, typeof t == "object" ? t : void 0);
12247
+ return cy(e, typeof t == "object" ? t : void 0);
12248
12248
  case "regexp":
12249
- return gy(e, t);
12249
+ return yy(e, t);
12250
12250
  case "minlength":
12251
- return cy(e, t);
12252
- case "maxlength":
12253
12251
  return fy(e, t);
12254
- case "min":
12252
+ case "maxlength":
12255
12253
  return py(e, t);
12256
- case "max":
12254
+ case "min":
12257
12255
  return my(e, t);
12256
+ case "max":
12257
+ return vy(e, t);
12258
12258
  case "maxField":
12259
- return vy(e, t, n);
12259
+ return gy(e, t, n);
12260
12260
  case "custom":
12261
- return yy();
12261
+ return hy();
12262
12262
  default:
12263
12263
  return !1;
12264
12264
  }
12265
- }, by = {
12265
+ }, wy = {
12266
12266
  autocomplete: "select",
12267
12267
  combobox: "select",
12268
12268
  datepicker: "date",
@@ -12278,7 +12278,7 @@ const rm = { class: "vs-map-body" }, sm = {
12278
12278
  };
12279
12279
  function Fa(e) {
12280
12280
  const t = e?.toLowerCase();
12281
- return by[t] || t;
12281
+ return wy[t] || t;
12282
12282
  }
12283
12283
  function El(e, t = !1) {
12284
12284
  if (Array.isArray(e)) {
@@ -12309,7 +12309,7 @@ function El(e, t = !1) {
12309
12309
  l[1].type?.includes("list") && (o.multiple = !0), !o.api && l[1].data && (o.api = `/api/suggest/${l[1].data}`), Array.isArray(o.schema) && (o.schema = El(o.schema, o.disabled)), n.push(o);
12310
12310
  }), n;
12311
12311
  }
12312
- function wy(e, t, n = !1) {
12312
+ function xy(e, t, n = !1) {
12313
12313
  const l = h(() => El(
12314
12314
  (Array.isArray(t), t),
12315
12315
  typeof n == "boolean" ? n : n.value
@@ -12339,7 +12339,7 @@ function wy(e, t, n = !1) {
12339
12339
  }
12340
12340
  let E = !1, D = null;
12341
12341
  C.forEach((K) => {
12342
- const G = hy(e.value[w.name], K, e.value);
12342
+ const G = by(e.value[w.name], K, e.value);
12343
12343
  G && (E = !0, !D && typeof G == "string" && (D = G));
12344
12344
  }), E && D ? o.value[w.name] = D : delete o.value[w.name];
12345
12345
  }
@@ -12368,7 +12368,7 @@ function wy(e, t, n = !1) {
12368
12368
  visibleSchema: _
12369
12369
  };
12370
12370
  }
12371
- const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12371
+ const ky = { class: "flex w-full h-full min-h-0 gap-6" }, _y = {
12372
12372
  key: 0,
12373
12373
  "data-orientation": "horizontal",
12374
12374
  role: "none",
@@ -12406,7 +12406,7 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12406
12406
  validate: $,
12407
12407
  reset: w,
12408
12408
  visibleSchema: k
12409
- } = wy(f, o.schema, Ho(o, "disabled")), v = V(null), x = V(null), b = V({}), S = h(() => o.navigation), C = h(() => o.navWidth), E = h(() => o.style?.columns), D = Object.freeze({ container: 12, label: 3 }), K = h(() => o.columns ?? E.value ?? D), G = h(() => o.columns != null || E.value != null), F = h(() => G.value ? "horizontal" : o.layout), O = (X) => X?.columns ? "horizontal" : F.value, B = (X) => X?.columns ?? K.value, T = h(() => {
12409
+ } = xy(f, o.schema, Ho(o, "disabled")), v = V(null), x = V(null), b = V({}), S = h(() => o.navigation), C = h(() => o.navWidth), E = h(() => o.style?.columns), D = Object.freeze({ container: 12, label: 3 }), K = h(() => o.columns ?? E.value ?? D), G = h(() => o.columns != null || E.value != null), F = h(() => G.value ? "horizontal" : o.layout), O = (X) => X?.columns ? "horizontal" : F.value, B = (X) => X?.columns ?? K.value, T = h(() => {
12410
12410
  const X = {}, Q = (ie) => {
12411
12411
  if (!ie) return;
12412
12412
  (Array.isArray(ie) ? ie.map((j, J) => ({ key: String(J), entry: j })) : typeof ie == "object" ? Object.entries(ie).map(([j, J]) => ({ key: j, entry: J })) : []).forEach(({ key: j, entry: J }) => {
@@ -12459,7 +12459,7 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12459
12459
  ne(X);
12460
12460
  },
12461
12461
  { immediate: !0, deep: !0 }
12462
- ), yn("form", i), yn("values", f), Je("form-root-values", null) || yn("form-root-values", f), yn("field-props", b), yn("schema-by-name", T), (X, Q) => (u(), m("div", xy, [
12462
+ ), yn("form", i), yn("values", f), Je("form-root-values", null) || yn("form-root-values", f), yn("field-props", b), yn("schema-by-name", T), (X, Q) => (u(), m("div", ky, [
12463
12463
  c("div", {
12464
12464
  class: "flex-1 min-h-0 overflow-y-auto overflow-x-visible",
12465
12465
  ref_key: "formScrollContainer",
@@ -12489,11 +12489,11 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12489
12489
  error: z(_)[ie.name],
12490
12490
  onValueSelected: fe
12491
12491
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
12492
- O(ie) === "settings" && he + 1 !== z(k).length ? (u(), m("div", ky)) : Y("", !0)
12492
+ O(ie) === "settings" && he + 1 !== z(k).length ? (u(), m("div", _y)) : Y("", !0)
12493
12493
  ], 2))), 128))
12494
12494
  ], 34)
12495
12495
  ], 512),
12496
- Z(sy, {
12496
+ Z(iy, {
12497
12497
  target: v.value,
12498
12498
  "scroll-container": x.value,
12499
12499
  enabled: S.value,
@@ -12501,7 +12501,7 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12501
12501
  }, null, 8, ["target", "scroll-container", "enabled", "width"])
12502
12502
  ]));
12503
12503
  }
12504
- }), _y = { class: "relative" }, $y = { class: "w-full h-full fixed top-0 start-0 bg-black bg-opacity-50" }, Sy = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, Cy = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, My = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Ly = { class: "p-4 mim-h-0 h-full overflow-auto" }, Ay = /* @__PURE__ */ me({
12504
+ }), $y = { class: "relative" }, Sy = { class: "w-full h-full fixed top-0 start-0 bg-black bg-opacity-50" }, Cy = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, My = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, Ly = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Ay = { class: "p-4 mim-h-0 h-full overflow-auto" }, Vy = /* @__PURE__ */ me({
12505
12505
  __name: "modal-edit",
12506
12506
  props: {
12507
12507
  schema: {},
@@ -12659,11 +12659,11 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12659
12659
  message: b.message || "Unexpected error"
12660
12660
  }), console.error(b);
12661
12661
  }
12662
- }), (b, S) => (u(), m("div", _y, [
12663
- c("div", $y, [
12664
- c("div", Sy, [
12665
- c("div", Cy, [
12666
- c("h3", My, de(f.value === "add" ? "Додати" : "Змінити"), 1),
12662
+ }), (b, S) => (u(), m("div", $y, [
12663
+ c("div", Sy, [
12664
+ c("div", Cy, [
12665
+ c("div", My, [
12666
+ c("h3", Ly, de(f.value === "add" ? "Додати" : "Змінити"), 1),
12667
12667
  c("button", {
12668
12668
  onClick: x,
12669
12669
  type: "button",
@@ -12673,7 +12673,7 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12673
12673
  Z(z(_t), { class: "h-4 w-4 flex-shrink-0" })
12674
12674
  ])
12675
12675
  ]),
12676
- c("div", Ly, [
12676
+ c("div", Ay, [
12677
12677
  o.value ? (u(), be(Nt, {
12678
12678
  key: 0,
12679
12679
  schema: o.value,
@@ -12700,15 +12700,15 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12700
12700
  ])
12701
12701
  ]));
12702
12702
  }
12703
- }), Vy = zl.form.richtext, Dy = Ul.form.richtext, Ey = {
12703
+ }), Dy = zl.form.richtext, Iy = Ul.form.richtext, Py = {
12704
12704
  en: {
12705
12705
  form: {
12706
- richtext: Vy
12706
+ richtext: Dy
12707
12707
  }
12708
12708
  },
12709
12709
  uk: {
12710
12710
  form: {
12711
- richtext: Dy
12711
+ richtext: Iy
12712
12712
  }
12713
12713
  }
12714
12714
  }, Ea = (e = { mode: "edit", schema: null }) => new Promise((t) => {
@@ -12718,7 +12718,7 @@ const xy = { class: "flex w-full h-full min-h-0 gap-6" }, ky = {
12718
12718
  visible: !0,
12719
12719
  size: "medium",
12720
12720
  closeClickBack: !0,
12721
- content: Ay,
12721
+ content: Vy,
12722
12722
  contentProps: {
12723
12723
  ...e,
12724
12724
  onClose: () => {
@@ -12741,38 +12741,38 @@ export {
12741
12741
  Ml as C,
12742
12742
  vc as D,
12743
12743
  gc as E,
12744
- Vy as F,
12745
- Dy as G,
12746
- Zc as H,
12747
- nv as I,
12748
- fv as J,
12749
- gv as K,
12750
- _v as L,
12751
- Ev as M,
12752
- qv as N,
12753
- ag as O,
12754
- Lg as P,
12744
+ Dy as F,
12745
+ Iy as G,
12746
+ Jc as H,
12747
+ lv as I,
12748
+ pv as J,
12749
+ yv as K,
12750
+ $v as L,
12751
+ Pv as M,
12752
+ Kv as N,
12753
+ og as O,
12754
+ Ag as P,
12755
12755
  Al as Q,
12756
12756
  Is as V,
12757
- Ye as _,
12757
+ qe as _,
12758
12758
  Nt as a,
12759
- Yg as b,
12759
+ Gg as b,
12760
12760
  Vl as c,
12761
- Ay as d,
12761
+ Vy as d,
12762
12762
  Ln as e,
12763
12763
  Br as f,
12764
12764
  Wa as g,
12765
12765
  ir as h,
12766
- Gg as i,
12766
+ Xg as i,
12767
12767
  ya as j,
12768
12768
  Hl as k,
12769
12769
  qa as l,
12770
12770
  Ka as m,
12771
- eg as n,
12772
- Xv as o,
12771
+ tg as n,
12772
+ Zv as o,
12773
12773
  wa as p,
12774
12774
  ji as q,
12775
- Ey as r,
12775
+ Py as r,
12776
12776
  eu as s,
12777
12777
  $l as t,
12778
12778
  Cl as u,