@opengis/form 0.0.68 → 0.0.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, ref as $, onMounted as ke, onUnmounted as et, createElementBlock as c, openBlock as r, createCommentVNode as F, renderSlot as Ee, createElementVNode as l, toDisplayString as K, mergeProps as Ge, computed as V, normalizeStyle as ge, createTextVNode as be, normalizeProps as yt, guardReactiveProps as xt, normalizeClass as D, mergeModels as ue, useModel as de, withDirectives as se, unref as ne, vModelText as me, vModelCheckbox as It, createVNode as G, createBlock as ce, resolveDynamicComponent as qe, withCtx as Te, withModifiers as we, onBeforeUnmount as wt, watch as re, createStaticVNode as _e, vModelRadio as Tt, Fragment as ie, renderList as pe, reactive as Ot, vModelDynamic as qt, vShow as kt, inject as Ie, resolveComponent as $t, Transition as _t, nextTick as je, Teleport as pt, getCurrentInstance as Kt, watchEffect as Wt, withKeys as Zt, toRef as Jt, provide as Ct } from "vue";
1
+ import { defineComponent as W, ref as _, onMounted as ke, onUnmounted as et, createElementBlock as c, openBlock as r, createCommentVNode as F, renderSlot as Ee, createElementVNode as l, toDisplayString as K, mergeProps as Ge, computed as V, normalizeStyle as ge, createTextVNode as be, normalizeProps as yt, guardReactiveProps as xt, normalizeClass as D, mergeModels as ue, useModel as de, withDirectives as se, unref as ne, vModelText as me, vModelCheckbox as It, createVNode as G, createBlock as ce, resolveDynamicComponent as qe, withCtx as Te, withModifiers as we, onBeforeUnmount as wt, watch as re, createStaticVNode as _e, vModelRadio as Tt, Fragment as ie, renderList as pe, reactive as Ot, vModelDynamic as qt, vShow as kt, inject as Ie, resolveComponent as $t, Transition as _t, nextTick as je, Teleport as pt, getCurrentInstance as Kt, watchEffect as Wt, withKeys as Zt, toRef as Jt, provide as Ct } from "vue";
2
2
  import { notify as fe, VsModal as Ft, modal as Yt } from "@opengis/core";
3
3
  const Xt = { class: "w-full relative" }, Qt = {
4
4
  key: 0,
@@ -24,7 +24,7 @@ const Xt = { class: "w-full relative" }, Qt = {
24
24
  columns: {}
25
25
  },
26
26
  setup(o) {
27
- const e = $("uk"), t = (a) => {
27
+ const e = _("uk"), t = (a) => {
28
28
  a.detail.key === "locale" && (e.value = a.detail.newValue);
29
29
  };
30
30
  return ke(() => {
@@ -148,7 +148,7 @@ const Xt = { class: "w-full relative" }, Qt = {
148
148
  columns: {}
149
149
  },
150
150
  setup(o) {
151
- const e = o, t = $("uk");
151
+ const e = o, t = _("uk");
152
152
  V(() => (e.item ?? {})?.[t.value] ?? e.ua ?? e.label ?? "");
153
153
  const a = V(() => e.item?.description ?? ""), n = V(() => Array.isArray(e.item?.rules) && e.item.rules.includes("required")), i = V(() => (typeof e.error == "string" ? e.error : "") ?? ""), s = (u) => {
154
154
  u.key === "locale" && (t.value = u.newValue ?? "uk");
@@ -447,7 +447,7 @@ const Ll = /* @__PURE__ */ Q($l, [["render", Vl]]), Ml = { class: "flex items-ce
447
447
  } else
448
448
  a("update:modelValue", u);
449
449
  }
450
- }), s = $(`vs-checkbox-${t.view || "default"}`);
450
+ }), s = _(`vs-checkbox-${t.view || "default"}`);
451
451
  return (u, f) => (r(), c("div", Fl, [
452
452
  (r(), ce(qe(s.value === "vs-checkbox-buttons" ? ne(Ol) : ne(El)), {
453
453
  value: u.value,
@@ -629,7 +629,7 @@ const Jl = /* @__PURE__ */ Q(Kl, [["render", Zl]]), Yl = {
629
629
  }),
630
630
  emits: ["update:modelValue"],
631
631
  setup(o) {
632
- const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue"), n = $(null);
632
+ const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue"), n = _(null);
633
633
  let i = null;
634
634
  return ke(async () => {
635
635
  if (n.value) {
@@ -853,7 +853,7 @@ const Jl = /* @__PURE__ */ Q(Kl, [["render", Zl]]), Yl = {
853
853
  },
854
854
  emits: ["update:modelValue"],
855
855
  setup(o, { emit: e }) {
856
- const t = o, a = e, n = $([]), i = Ot({}), s = (y) => y?.value || y?.id || y?.text || y, u = (y) => y.text || String(y), f = (y) => `lg:col-span-${y || 12}`, v = V(() => [
856
+ const t = o, a = e, n = _([]), i = Ot({}), s = (y) => y?.value || y?.id || y?.text || y, u = (y) => y.text || String(y), f = (y) => `lg:col-span-${y || 12}`, v = V(() => [
857
857
  t.position === "vertical" ? "flex flex-col" : "",
858
858
  t.colSpan ? "grid" : "flex justify-start"
859
859
  ]), h = (y) => y == null || y === "" ? null : typeof y == "string" || typeof y == "number" ? y : String(y), b = V(() => {
@@ -879,16 +879,16 @@ const Jl = /* @__PURE__ */ Q(Kl, [["render", Zl]]), Yl = {
879
879
  label: k,
880
880
  options: j
881
881
  };
882
- }, _ = [];
882
+ }, $ = [];
883
883
  return I.forEach((M) => {
884
884
  const j = x(M);
885
- j && _.push(j);
885
+ j && $.push(j);
886
886
  }), y.forEach((M, j) => {
887
887
  if (z.has(j))
888
888
  return;
889
889
  const g = x(j);
890
- g && _.push(g);
891
- }), _;
890
+ g && $.push(g);
891
+ }), $;
892
892
  }), C = async () => {
893
893
  try {
894
894
  const y = await fetch(`/api/suggest/${t.data}`).then((I) => I.json());
@@ -964,7 +964,7 @@ const Jl = /* @__PURE__ */ Q(Kl, [["render", Zl]]), Yl = {
964
964
  }, [
965
965
  (r(!0), c(ie, null, pe(z.options, (x) => (r(), ce(gt, {
966
966
  modelValue: i[s(x)],
967
- "onUpdate:modelValue": (_) => i[s(x)] = _,
967
+ "onUpdate:modelValue": ($) => i[s(x)] = $,
968
968
  value: s(x),
969
969
  class: D(f(y.colSpan)),
970
970
  disabled: t.disabled || x.disabled,
@@ -1321,7 +1321,7 @@ const Pt = /* @__PURE__ */ Q(Jo, [["render", Xo]]), Qo = ["title"], en = { class
1321
1321
  }),
1322
1322
  emits: /* @__PURE__ */ ue(["change"], ["update:modelValue"]),
1323
1323
  setup(o, { emit: e }) {
1324
- const t = o, a = de(o, "modelValue"), n = e, i = $(null), s = $(!1), u = (h) => Array.isArray(a.value) && a.value[h] || "", f = (h) => {
1324
+ const t = o, a = de(o, "modelValue"), n = e, i = _(null), s = _(!1), u = (h) => Array.isArray(a.value) && a.value[h] || "", f = (h) => {
1325
1325
  if (t.max_size && h.size > t.max_size * 1024 * 1024) {
1326
1326
  const b = (h.size / 1048576).toFixed(2);
1327
1327
  return fe({
@@ -1343,7 +1343,7 @@ const Pt = /* @__PURE__ */ Q(Jo, [["render", Xo]]), Qo = ["title"], en = { class
1343
1343
  s.value = !0;
1344
1344
  try {
1345
1345
  if (t.multiple) {
1346
- const y = Array.from(b).map(async (_) => t.format && !_.name.endsWith(t.format) ? null : await Mt(_, "1", "form", "table")), x = (await Promise.all(y)).filter((_) => _ !== null).map((_) => _?.file_path).filter(Boolean);
1346
+ const y = Array.from(b).map(async ($) => t.format && !$.name.endsWith(t.format) ? null : await Mt($, "1", "form", "table")), x = (await Promise.all(y)).filter(($) => $ !== null).map(($) => $?.file_path).filter(Boolean);
1347
1347
  a.value = [...a.value || [], ...x], n("change", a.value);
1348
1348
  } else {
1349
1349
  const y = b[0];
@@ -1594,7 +1594,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1594
1594
  },
1595
1595
  emits: ["update"],
1596
1596
  setup(o, { emit: e }) {
1597
- const t = o, a = Ie("form"), n = V(() => a.value.formId), i = $(!1), s = $(0), u = e, f = $(!1), v = $({}), h = $([]), b = $(""), C = V(() => Array.isArray(h.value) ? h.value.filter((j) => j.ext === "jpg" || j.ext === "png").map((j) => j?.file_path) : []), y = V(() => b.value === "" ? h.value : h.value.filter((j) => j?.uploaded_name?.includes(b.value))), I = (j) => {
1597
+ const t = o, a = Ie("form"), n = V(() => a.value.formId), i = _(!1), s = _(0), u = e, f = _(!1), v = _({}), h = _([]), b = _(""), C = V(() => Array.isArray(h.value) ? h.value.filter((j) => j.ext === "jpg" || j.ext === "png").map((j) => j?.file_path) : []), y = V(() => b.value === "" ? h.value : h.value.filter((j) => j?.uploaded_name?.includes(b.value))), I = (j) => {
1598
1598
  const g = C.value.findIndex((k) => k === j.item.file_path);
1599
1599
  g !== -1 && (i.value = !0, s.value = g);
1600
1600
  }, z = async () => {
@@ -1625,7 +1625,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1625
1625
  }
1626
1626
  })
1627
1627
  ), await z();
1628
- }, _ = (j) => {
1628
+ }, $ = (j) => {
1629
1629
  const g = { ...j };
1630
1630
  return j.cancel || (g.cancel = () => {
1631
1631
  f.value = !1;
@@ -1633,7 +1633,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1633
1633
  await j.confirm(), f.value = !1, z();
1634
1634
  }), g;
1635
1635
  }, M = (j) => {
1636
- v.value = _(j), f.value = !0;
1636
+ v.value = $(j), f.value = !0;
1637
1637
  };
1638
1638
  return re(n, (j) => {
1639
1639
  j && z();
@@ -1746,7 +1746,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1746
1746
  }
1747
1747
  },
1748
1748
  setup(o) {
1749
- const e = o, t = $(e.isOpen);
1749
+ const e = o, t = _(e.isOpen);
1750
1750
  return re(
1751
1751
  () => e.isOpen,
1752
1752
  (a) => {
@@ -1790,7 +1790,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1790
1790
  }
1791
1791
  },
1792
1792
  setup(o) {
1793
- const e = o, t = $(e.isOpen);
1793
+ const e = o, t = _(e.isOpen);
1794
1794
  return re(
1795
1795
  () => e.isOpen,
1796
1796
  (a) => {
@@ -1911,7 +1911,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1911
1911
  }
1912
1912
  },
1913
1913
  setup(o) {
1914
- const e = o, t = Ie("values", $({})), a = Ie("form"), n = V(() => e.schema?.filter((u) => {
1914
+ const e = o, t = Ie("values", _({})), a = Ie("form"), n = V(() => e.schema?.filter((u) => {
1915
1915
  const f = u?.conditions;
1916
1916
  if (!f) return !0;
1917
1917
  const v = Array.isArray(f) ? f[0] : f, h = e.name ? t.value?.[e.name]?.[v] ?? t.value?.[v] : t.value?.[v];
@@ -1990,16 +1990,16 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
1990
1990
  set: (m) => a("update:modelValue", m)
1991
1991
  });
1992
1992
  !s.value && t.defaultValue && (s.value = t.defaultValue);
1993
- const u = $(null), f = $(null), v = $(null), h = $(null), b = $(!1), C = $(!1), y = $(null), I = $([]), z = $(-1), x = $([]), _ = $(""), M = $(null), j = $("bottom"), g = $({}), k = $([]), T = V(() => {
1993
+ const u = _(null), f = _(null), v = _(null), h = _(null), b = _(!1), C = _(!1), y = _(null), I = _([]), z = _(-1), x = _([]), $ = _(""), M = _(null), j = _("bottom"), g = _({}), k = _([]), T = V(() => {
1994
1994
  if (!k.value.length) return [];
1995
1995
  const m = I.value, w = new Map(m.map((S) => [S.id?.toString(), S]));
1996
1996
  return k.value.map((S) => w.get(S?.toString())).filter((S) => !!S);
1997
1997
  }), A = V(() => t.placeholder || "Select..."), q = V(() => O(y.value));
1998
- V(() => n.value ? !k.value.length && _.value === "" : !q.value && _.value === "");
1998
+ V(() => n.value ? !k.value.length && $.value === "" : !q.value && $.value === "");
1999
1999
  const oe = V(() => i.value ? !1 : n.value ? k.value.length > 0 : !!s.value), Y = (m) => n.value ? k.value.some((w) => w?.toString() === m?.toString()) : s.value?.toString() === m?.toString(), U = V(() => {
2000
2000
  let m = I.value ?? [];
2001
- if (!t.data && _.value.trim() !== "") {
2002
- const w = _.value.toLowerCase();
2001
+ if (!t.data && $.value.trim() !== "") {
2002
+ const w = $.value.toLowerCase();
2003
2003
  m = m.filter((S) => {
2004
2004
  const N = O(S).toLowerCase(), le = S.text?.toLowerCase?.() || "";
2005
2005
  return N.includes(w) || le.includes(w);
@@ -2047,7 +2047,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2047
2047
  return [];
2048
2048
  }
2049
2049
  }, Me = async () => {
2050
- t.data ? I.value = await ye(_.value) : I.value = t.options ? [...t.options] : [];
2050
+ t.data ? I.value = await ye($.value) : I.value = t.options ? [...t.options] : [];
2051
2051
  }, ze = async (m) => {
2052
2052
  if (m == null) return null;
2053
2053
  const w = I.value?.find((S) => S?.id?.toString() === String(m));
@@ -2079,13 +2079,13 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2079
2079
  }, Ke = async () => {
2080
2080
  b.value ? M.value?.focus() : await he();
2081
2081
  }, ot = () => {
2082
- n.value ? (k.value = [], s.value = [], a("change", [])) : (y.value = null, s.value = null, a("change", null)), Z(null), _.value = "", je(() => M.value?.focus());
2082
+ n.value ? (k.value = [], s.value = [], a("change", [])) : (y.value = null, s.value = null, a("change", null)), Z(null), $.value = "", je(() => M.value?.focus());
2083
2083
  }, mt = (m) => {
2084
2084
  n.value && (k.value = k.value.filter((w) => w?.toString() !== m?.toString()), s.value = [...k.value], a("change", s.value), je(() => M.value?.focus()));
2085
2085
  }, Se = (m) => {
2086
- n.value ? (Y(m.id) || (k.value = [...k.value, m.id], s.value = [...k.value], a("change", s.value)), _.value = "", je(() => {
2086
+ n.value ? (Y(m.id) || (k.value = [...k.value, m.id], s.value = [...k.value], a("change", s.value)), $.value = "", je(() => {
2087
2087
  M.value?.focus(), z.value = Math.min(z.value, U.value.length - 1);
2088
- }), Z(null)) : (y.value = m, s.value = m.id, a("change", s.value), _.value = "", Le(), Z(m));
2088
+ }), Z(null)) : (y.value = m, s.value = m.id, a("change", s.value), $.value = "", Le(), Z(m));
2089
2089
  }, Ae = (m) => {
2090
2090
  Y(m.id) || Se(m);
2091
2091
  }, Pe = (m, w) => {
@@ -2139,11 +2139,11 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2139
2139
  m.preventDefault();
2140
2140
  const S = U.value[z.value];
2141
2141
  S && Se(S), M.value?.blur();
2142
- } else w === "Escape" ? (m.preventDefault(), Le()) : w === "Backspace" ? n.value && _.value === "" && k.value.length && (k.value = k.value.slice(0, -1), s.value = [...k.value], a("change", s.value)) : w === "Home" ? (z.value = 0, Pe(x.value[0], v.value)) : w === "End" ? (z.value = U.value.length - 1, Pe(x.value[z.value], v.value)) : w === "Tab" && Le();
2142
+ } else w === "Escape" ? (m.preventDefault(), Le()) : w === "Backspace" ? n.value && $.value === "" && k.value.length && (k.value = k.value.slice(0, -1), s.value = [...k.value], a("change", s.value)) : w === "Home" ? (z.value = 0, Pe(x.value[0], v.value)) : w === "End" ? (z.value = U.value.length - 1, Pe(x.value[z.value], v.value)) : w === "Tab" && Le();
2143
2143
  }, at = () => {
2144
2144
  i.value || (C.value = !0);
2145
2145
  }, Be = () => {
2146
- C.value = !1, _.value = "";
2146
+ C.value = !1, $.value = "";
2147
2147
  }, st = (m) => {
2148
2148
  m.key === "Escape" && b.value && Le();
2149
2149
  }, rt = (m) => {
@@ -2177,7 +2177,7 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2177
2177
  }), et(() => {
2178
2178
  removeEventListener("keydown", st), removeEventListener("scroll", Oe, !0), removeEventListener("resize", it), document.removeEventListener("click", rt, !0), f.value && xe(f.value).removeEventListener("scroll", ut, !0);
2179
2179
  });
2180
- const Ne = $(!1), We = $({}), Fe = $([]), d = $(null);
2180
+ const Ne = _(!1), We = _({}), Fe = _([]), d = _(null);
2181
2181
  async function p() {
2182
2182
  if (!t.add?.token || d?.value.validate())
2183
2183
  return;
@@ -2206,14 +2206,14 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2206
2206
  const R = E(async (m) => {
2207
2207
  I.value = await ye(m);
2208
2208
  }, 200);
2209
- re(_, (m) => {
2209
+ re($, (m) => {
2210
2210
  t.data && R(m.trim());
2211
2211
  }), re(() => t.options, (m) => {
2212
2212
  !t.data && m?.length && (I.value = [...m], He());
2213
2213
  }, { immediate: !0 }), re(() => t.parent ?? t.parentValue, () => {
2214
2214
  t.data && Me();
2215
2215
  });
2216
- const J = $(!0);
2216
+ const J = _(!0);
2217
2217
  return re(ee, async () => {
2218
2218
  if (t.data && (J.value || (n.value ? (k.value = [], s.value = [], a("change", [])) : (y.value = null, s.value = null, a("change", null))), await Me(), t.auto === 1 && ee.value && I.value.length > 0)) {
2219
2219
  const m = I.value[0];
@@ -2333,15 +2333,15 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2333
2333
  tabindex: "0",
2334
2334
  "aria-autocomplete": "list",
2335
2335
  placeholder: k.value.length ? " " : A.value,
2336
- "onUpdate:modelValue": w[2] || (w[2] = (S) => _.value = S),
2336
+ "onUpdate:modelValue": w[2] || (w[2] = (S) => $.value = S),
2337
2337
  onFocus: at,
2338
2338
  onBlur: Be,
2339
2339
  onKeydown: nt
2340
2340
  }, null, 40, ba)), [
2341
- [me, _.value]
2341
+ [me, $.value]
2342
2342
  ]) : F("", !0)
2343
2343
  ])
2344
- ])) : !n.value && !C.value && q.value && _.value === "" ? (r(), c("div", {
2344
+ ])) : !n.value && !C.value && q.value && $.value === "" ? (r(), c("div", {
2345
2345
  key: 1,
2346
2346
  class: D(["truncate text-gray-900"]),
2347
2347
  title: q.value
@@ -2373,13 +2373,13 @@ const Sn = /* @__PURE__ */ Q(Vn, [["render", Mn]]), Bn = { class: "flex flex-col
2373
2373
  type: "text",
2374
2374
  tabindex: "0",
2375
2375
  "aria-autocomplete": "list",
2376
- placeholder: C.value && !_.value?.length && q.value || " ",
2377
- "onUpdate:modelValue": w[3] || (w[3] = (S) => _.value = S),
2376
+ placeholder: q.value ? " " : A.value,
2377
+ "onUpdate:modelValue": w[3] || (w[3] = (S) => $.value = S),
2378
2378
  onFocus: at,
2379
2379
  onBlur: Be,
2380
2380
  onKeydown: nt
2381
2381
  }, null, 40, ka)), [
2382
- [me, _.value]
2382
+ [me, $.value]
2383
2383
  ]) : F("", !0)
2384
2384
  ]))
2385
2385
  ], 512),
@@ -2677,14 +2677,14 @@ const ns = /* @__PURE__ */ Q(ts, [["render", os]]), as = { class: "vs-datatable
2677
2677
  }),
2678
2678
  emits: ["update:modelValue"],
2679
2679
  setup(o) {
2680
- const e = o, t = de(o, "modelValue"), a = $({}), n = $(""), i = V(() => {
2680
+ const e = o, t = de(o, "modelValue"), a = _({}), n = _(""), i = V(() => {
2681
2681
  if (!n.value) return t.value ?? [];
2682
2682
  const H = n.value.toLowerCase();
2683
2683
  return t.value.filter((P) => e.colModel?.some((O) => {
2684
2684
  const Z = P[O.key];
2685
2685
  return Z ? Array.isArray(Z) ? Z.join(", ").toLowerCase().includes(H) : String(Z).toLowerCase().includes(H) : !1;
2686
2686
  }));
2687
- }), s = $(null), u = $(null), f = $(!1), v = $(null), h = $({ top: 0, left: 0 }), b = (H) => {
2687
+ }), s = _(null), u = _(null), f = _(!1), v = _(null), h = _({ top: 0, left: 0 }), b = (H) => {
2688
2688
  s.value = H;
2689
2689
  }, C = (H) => {
2690
2690
  u.value = H;
@@ -2703,7 +2703,7 @@ const ns = /* @__PURE__ */ Q(ts, [["render", os]]), as = { class: "vs-datatable
2703
2703
  }, x = (H) => {
2704
2704
  const P = [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".webp", ".svg", ".ico", ".tiff", ".tif"], O = H.toLowerCase();
2705
2705
  return P.some((Z) => O.endsWith(Z));
2706
- }, _ = (H) => {
2706
+ }, $ = (H) => {
2707
2707
  const O = H.target.files?.[0];
2708
2708
  if (!O) return;
2709
2709
  const Z = new FileReader();
@@ -2729,9 +2729,9 @@ const ns = /* @__PURE__ */ Q(ts, [["render", os]]), as = { class: "vs-datatable
2729
2729
  a.value[P.key] = Z.data;
2730
2730
  }));
2731
2731
  });
2732
- const j = $(""), g = $(!1);
2732
+ const j = _(""), g = _(!1);
2733
2733
  let k = "edit", T = 0;
2734
- const A = $({}), q = $({});
2734
+ const A = _({}), q = _({});
2735
2735
  async function oe() {
2736
2736
  j.value = "Додати", g.value = !0, k = "add", A.value = {};
2737
2737
  }
@@ -2778,7 +2778,7 @@ const ns = /* @__PURE__ */ Q(ts, [["render", os]]), as = { class: "vs-datatable
2778
2778
  l("input", {
2779
2779
  ref_key: "fileInput",
2780
2780
  ref: v,
2781
- onChange: _,
2781
+ onChange: $,
2782
2782
  class: "hidden",
2783
2783
  accept: ".json",
2784
2784
  type: "file"
@@ -3234,11 +3234,11 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3234
3234
  const t = o, a = e, n = ["here", "xy", "parcel"], i = V(() => {
3235
3235
  const g = t.config?.tools?.filter((k) => n.includes(k));
3236
3236
  return g && g.length ? g : n;
3237
- }), s = V(() => t.config?.placeholder?.trim() || "Пошук…"), u = $(i.value[0] ?? n[0]);
3237
+ }), s = V(() => t.config?.placeholder?.trim() || "Пошук…"), u = _(i.value[0] ?? n[0]);
3238
3238
  re(i, (g) => {
3239
3239
  g.includes(u.value) || (u.value = g[0]);
3240
3240
  });
3241
- const f = $(""), v = $(!1), h = $(null);
3241
+ const f = _(""), v = _(!1), h = _(null);
3242
3242
  re(u, () => {
3243
3243
  f.value = "", v.value = !1;
3244
3244
  });
@@ -3297,7 +3297,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3297
3297
  }
3298
3298
  ];
3299
3299
  }
3300
- function _(g) {
3300
+ function $(g) {
3301
3301
  const T = g.replace(/\s+/g, "").split(":");
3302
3302
  if (T.length !== 4) return !1;
3303
3303
  const A = [10, 2, 3, 4];
@@ -3323,7 +3323,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3323
3323
  if (u.value === "here")
3324
3324
  k.searchParams.set("searchtext", g);
3325
3325
  else {
3326
- if (!_(g)) {
3326
+ if (!$(g)) {
3327
3327
  fe({ type: "warning", title: "Пошук кадастру", message: "Кадастровий номер має формат ХХХХХХХХХХ:ХХ:ХХХ:ХХХХ" });
3328
3328
  return;
3329
3329
  }
@@ -3431,7 +3431,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3431
3431
  },
3432
3432
  emits: ["onLayerChange"],
3433
3433
  setup(o, { emit: e }) {
3434
- const a = $(Object.keys(o.basemaps)[0]), n = e;
3434
+ const a = _(Object.keys(o.basemaps)[0]), n = e;
3435
3435
  function i(s) {
3436
3436
  n("onLayerChange", s), a.value = s;
3437
3437
  }
@@ -3515,15 +3515,15 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3515
3515
  polygon: p.has("polygon"),
3516
3516
  rectangle: p.has("rectangle")
3517
3517
  };
3518
- }), s = V(() => !!a.disabled), u = $(!1), f = $(null), v = $(null), h = $(!1), b = $(""), C = Ot({}), y = $([]), I = V(() => y.value.map((d) => C[d]).filter((d) => !!d)), z = V(() => Array.isArray(a.layers) && a.layers.some((d) => `${d?.service ?? ""}`.toLowerCase() === "vtile"));
3519
- let x, _, M;
3518
+ }), s = V(() => !!a.disabled), u = _(!1), f = _(null), v = _(null), h = _(!1), b = _(""), C = Ot({}), y = _([]), I = V(() => y.value.map((d) => C[d]).filter((d) => !!d)), z = V(() => Array.isArray(a.layers) && a.layers.some((d) => `${d?.service ?? ""}`.toLowerCase() === "vtile"));
3519
+ let x, $, M;
3520
3520
  function j() {
3521
3521
  const d = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
3522
3522
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "Використовуйте два пальці для зуму карти." : "Використовуйте Ctrl + прокрутка для зуму карти.";
3523
3523
  }
3524
- const g = $(null), k = $(null);
3524
+ const g = _(null), k = _(null);
3525
3525
  let T = null;
3526
- const A = $(null), q = (d) => {
3526
+ const A = _(null), q = (d) => {
3527
3527
  d.ctrlKey && d.preventDefault();
3528
3528
  };
3529
3529
  function oe(d, p) {
@@ -3725,9 +3725,9 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3725
3725
  k.value && (k.value.removeEventListener("wheel", p), k.value.removeEventListener("touchstart", B)), x && x.off("wheel"), clearTimeout(d);
3726
3726
  };
3727
3727
  }
3728
- const ye = $(null), Me = $(6), ze = $(0), vt = $(t?.appContext.config.globalProperties.$settings?.center || [50, 30]), he = $(null), Le = We();
3728
+ const ye = _(null), Me = _(6), ze = _(0), vt = _(t?.appContext.config.globalProperties.$settings?.center || [50, 30]), he = _(null), Le = We();
3729
3729
  let De;
3730
- const Ke = $("topo100");
3730
+ const Ke = _("topo100");
3731
3731
  function ot(d) {
3732
3732
  return d ? d.type === "Polygon" ? {
3733
3733
  type: "MultiPolygon",
@@ -3756,7 +3756,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3756
3756
  });
3757
3757
  }
3758
3758
  function Se() {
3759
- const d = _.toGeoJSON(), p = [];
3759
+ const d = $.toGeoJSON(), p = [];
3760
3760
  let B = null;
3761
3761
  const E = (J) => {
3762
3762
  if (J)
@@ -3777,10 +3777,10 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3777
3777
  };
3778
3778
  (d?.features || []).forEach((J) => E(J.geometry));
3779
3779
  const R = B || (p.length ? { type: "MultiPolygon", coordinates: p } : null);
3780
- n("update:modelValue", R ? ot(R) : null), ze.value = _.getLayers().length;
3780
+ n("update:modelValue", R ? ot(R) : null), ze.value = $.getLayers().length;
3781
3781
  }
3782
3782
  function Ae(d = 30) {
3783
- const p = _.getLayers();
3783
+ const p = $.getLayers();
3784
3784
  if (!p.length) return;
3785
3785
  const E = L.featureGroup(p).getBounds();
3786
3786
  E && E.isValid() && x.fitBounds(E, { padding: [d, d] });
@@ -3788,7 +3788,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3788
3788
  function Pe() {
3789
3789
  s.value || A.value?.click();
3790
3790
  }
3791
- const xe = $("");
3791
+ const xe = _("");
3792
3792
  re(i, (d) => {
3793
3793
  xe.value && !Object.entries(d).filter(([p, B]) => B).map(([p]) => p).includes(xe.value) && (M?.disable && M.disable(), xe.value = "");
3794
3794
  }), re(
@@ -3821,7 +3821,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3821
3821
  },
3822
3822
  { immediate: !0, deep: !0 }
3823
3823
  ), re(s, (d) => {
3824
- d && M && (M.disable(), xe.value = ""), _ && _.eachLayer((p) => {
3824
+ d && M && (M.disable(), xe.value = ""), $ && $.eachLayer((p) => {
3825
3825
  d ? p.dragging?.disable?.() : p.dragging?.enable && (p.dragging.enable(), p.dragging.enabled?.());
3826
3826
  });
3827
3827
  });
@@ -3860,7 +3860,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3860
3860
  }
3861
3861
  }
3862
3862
  function Be() {
3863
- const d = _.getLayers();
3863
+ const d = $.getLayers();
3864
3864
  if (!d.length) {
3865
3865
  he.value = null, ze.value = 0;
3866
3866
  return;
@@ -3881,7 +3881,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3881
3881
  function rt() {
3882
3882
  if (s.value) return;
3883
3883
  const d = he.value?.layer;
3884
- d && (_.removeLayer(d), Se(), Be());
3884
+ d && ($.removeLayer(d), Se(), Be());
3885
3885
  }
3886
3886
  ke(async () => {
3887
3887
  document.addEventListener("wheel", q, { passive: !1 }), await mt(), L.drawLocal = Us;
@@ -3891,10 +3891,10 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3891
3891
  scrollWheelZoom: !d
3892
3892
  }).setView(vt.value, 10), setTimeout(() => {
3893
3893
  T = ee();
3894
- }, 100), L.control.zoom({ position: "bottomright" }).addTo(x), Ke.value = Object.keys(Le)[0], De = L.tileLayer(Le[Ke.value].url, { maxZoom: 19, minZoom: 6 }).addTo(x), _ = new L.FeatureGroup().addTo(x), x.on(L.Draw.Event.CREATED, (E) => {
3894
+ }, 100), L.control.zoom({ position: "bottomright" }).addTo(x), Ke.value = Object.keys(Le)[0], De = L.tileLayer(Le[Ke.value].url, { maxZoom: 19, minZoom: 6 }).addTo(x), $ = new L.FeatureGroup().addTo(x), x.on(L.Draw.Event.CREATED, (E) => {
3895
3895
  if (s.value) return;
3896
3896
  const { layer: R } = E;
3897
- _.clearLayers(), _.addLayer(R), Se(), Ae(), xe.value = "";
3897
+ $.clearLayers(), $.addLayer(R), Se(), Ae(), xe.value = "";
3898
3898
  }), x.on(L.Draw.Event.EDITED, () => {
3899
3899
  s.value || (Se(), Be(), Ae());
3900
3900
  }), x.on(L.Draw.Event.DELETED, () => {
@@ -3909,7 +3909,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3909
3909
  const B = Ds(a.modelValue);
3910
3910
  if (B) {
3911
3911
  const E = [];
3912
- L.geoJSON(B).eachLayer((R) => E.push(R)), E.length && _.addLayer(E[0]), Se(), Be(), Ae();
3912
+ L.geoJSON(B).eachLayer((R) => E.push(R)), E.length && $.addLayer(E[0]), Se(), Be(), Ae();
3913
3913
  }
3914
3914
  O();
3915
3915
  }), et(() => {
@@ -3941,7 +3941,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3941
3941
  }
3942
3942
  function it() {
3943
3943
  if (s.value) return;
3944
- const d = _.toGeoJSON(), p = new Blob([JSON.stringify(d, null, 2)], { type: "application/json" }), B = URL.createObjectURL(p), E = document.createElement("a");
3944
+ const d = $.toGeoJSON(), p = new Blob([JSON.stringify(d, null, 2)], { type: "application/json" }), B = URL.createObjectURL(p), E = document.createElement("a");
3945
3945
  E.href = B, E.download = "data.geojson", E.click(), URL.revokeObjectURL(B);
3946
3946
  }
3947
3947
  function ut(d) {
@@ -3953,8 +3953,8 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3953
3953
  if (typeof E.result == "string")
3954
3954
  try {
3955
3955
  const R = JSON.parse(E.result);
3956
- _.clearLayers(), R && L.geoJSON({ type: "Feature", geometry: R }).eachLayer((J) => {
3957
- _.addLayer(J);
3956
+ $.clearLayers(), R && L.geoJSON({ type: "Feature", geometry: R }).eachLayer((J) => {
3957
+ $.addLayer(J);
3958
3958
  }), Se(), Be(), Ae();
3959
3959
  } finally {
3960
3960
  p.value = "";
@@ -3976,8 +3976,8 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3976
3976
  n("update:modelValue", p);
3977
3977
  return;
3978
3978
  }
3979
- _.clearLayers(), p && L.geoJSON({ type: "Feature", geometry: p }).eachLayer((B) => {
3980
- if (_.addLayer(B), s.value) {
3979
+ $.clearLayers(), p && L.geoJSON({ type: "Feature", geometry: p }).eachLayer((B) => {
3980
+ if ($.addLayer(B), s.value) {
3981
3981
  B.dragging?.disable?.();
3982
3982
  return;
3983
3983
  }
@@ -3985,7 +3985,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
3985
3985
  const J = E.target.getLatLng();
3986
3986
  n("update:modelValue", { type: "Point", coordinates: [J.lng, J.lat] });
3987
3987
  });
3988
- }), ze.value = _.getLayers().length, Be(), Ae();
3988
+ }), ze.value = $.getLayers().length, Be(), Ae();
3989
3989
  }
3990
3990
  );
3991
3991
  function We() {
@@ -4004,7 +4004,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4004
4004
  }
4005
4005
  };
4006
4006
  }
4007
- const Fe = $(!1);
4007
+ const Fe = _(!1);
4008
4008
  return re(Fe, () => {
4009
4009
  setTimeout(() => {
4010
4010
  x.invalidateSize();
@@ -4237,7 +4237,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4237
4237
  setup(o, { emit: e }) {
4238
4238
  const t = o, a = e;
4239
4239
  $e(t.style);
4240
- const n = $(null), i = $(null), s = $(null), u = $(!1), f = $(""), v = de(o, "modelValue"), h = V(() => t.placeholder || "Add tag…"), b = V(() => v.value?.length === 0 && f.value === ""), C = V(() => !t.disabled && v.value?.length > 0), y = V(() => t.disabled), I = async () => {
4240
+ const n = _(null), i = _(null), s = _(null), u = _(!1), f = _(""), v = de(o, "modelValue"), h = V(() => t.placeholder || "Add tag…"), b = V(() => v.value?.length === 0 && f.value === ""), C = V(() => !t.disabled && v.value?.length > 0), y = V(() => t.disabled), I = async () => {
4241
4241
  y.value || await je(() => s.value?.focus());
4242
4242
  }, z = (T) => {
4243
4243
  const A = T.trim();
@@ -4245,7 +4245,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4245
4245
  }, x = () => {
4246
4246
  const T = f.value;
4247
4247
  T.trim() !== "" && z(T), f.value = "";
4248
- }, _ = (T) => {
4248
+ }, $ = (T) => {
4249
4249
  const A = v.value.slice();
4250
4250
  A.splice(T, 1), a("update:modelValue", A);
4251
4251
  }, M = () => {
@@ -4256,7 +4256,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4256
4256
  u.value = !1, !y.value && x();
4257
4257
  }, k = (T) => {
4258
4258
  const { key: A } = T;
4259
- A === "Enter" ? (T.preventDefault(), x()) : A === "Backspace" && f.value === "" && v.value.length > 0 && _(v.value.length - 1);
4259
+ A === "Enter" ? (T.preventDefault(), x()) : A === "Backspace" && f.value === "" && v.value.length > 0 && $(v.value.length - 1);
4260
4260
  };
4261
4261
  return (T, A) => (r(), c("div", {
4262
4262
  class: "flex gap-1 w-full",
@@ -4295,7 +4295,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4295
4295
  l("div", {
4296
4296
  role: "button",
4297
4297
  class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
4298
- onClick: we((Y) => _(oe), ["stop"]),
4298
+ onClick: we((Y) => $(oe), ["stop"]),
4299
4299
  "aria-label": `Remove ${q}`
4300
4300
  }, A[2] || (A[2] = [
4301
4301
  l("svg", {
@@ -4453,7 +4453,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4453
4453
  }),
4454
4454
  emits: ["update:modelValue"],
4455
4455
  setup(o) {
4456
- const e = o, t = de(o, "modelValue"), a = $(!1), n = V(() => e.init !== !1), i = V(() => !!e.table && !!e.code), s = () => {
4456
+ const e = o, t = de(o, "modelValue"), a = _(!1), n = V(() => e.init !== !1), i = V(() => !!e.table && !!e.code), s = () => {
4457
4457
  if (!i.value) return "";
4458
4458
  const v = encodeURIComponent(String(e.table)), h = encodeURIComponent(String(e.code));
4459
4459
  return `/api/code-gen/${v}/${h}`;
@@ -4513,12 +4513,12 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4513
4513
  },
4514
4514
  emits: ["update:modelValue"],
4515
4515
  setup(o, { emit: e }) {
4516
- const t = (x) => `${x}-${Math.random().toString(36).substring(2, 15)}`, a = Ie("values"), n = o, i = e, s = n.addButtonText ?? "Додати", u = n.ignore ?? [], f = $([]), v = $(null);
4516
+ const t = (x) => `${x}-${Math.random().toString(36).substring(2, 15)}`, a = Ie("values"), n = o, i = e, s = n.addButtonText ?? "Додати", u = n.ignore ?? [], f = _([]), v = _(null);
4517
4517
  (() => {
4518
4518
  const x = n.parent && a?.value?.[n.parent] || n.modelValue || {};
4519
- f.value = Object.entries(x).filter(([_]) => !u.includes(_)).map(([_, M]) => ({
4519
+ f.value = Object.entries(x).filter(([$]) => !u.includes($)).map(([$, M]) => ({
4520
4520
  id: t("key-value-"),
4521
- key: _,
4521
+ key: $,
4522
4522
  value: M
4523
4523
  }));
4524
4524
  })();
@@ -4527,44 +4527,44 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4527
4527
  }
4528
4528
  function C(x) {
4529
4529
  if (v.value === null || v.value === x) return;
4530
- const _ = f.value.splice(v.value, 1)[0];
4531
- f.value.splice(x, 0, _), v.value = null;
4530
+ const $ = f.value.splice(v.value, 1)[0];
4531
+ f.value.splice(x, 0, $), v.value = null;
4532
4532
  }
4533
4533
  const y = V(
4534
4534
  () => f.value.some((x) => x.key && !x.value || !x.key && x.value)
4535
4535
  ), I = () => {
4536
4536
  f.value.push({ id: t("key-value-"), key: "", value: "" });
4537
4537
  }, z = (x) => {
4538
- f.value = f.value.filter((_) => _.id !== x);
4538
+ f.value = f.value.filter(($) => $.id !== x);
4539
4539
  };
4540
4540
  return re(
4541
4541
  f,
4542
4542
  (x) => {
4543
- const _ = {};
4543
+ const $ = {};
4544
4544
  x.forEach((j) => {
4545
- j.key && j.value !== void 0 && (_[j.key] = j.value);
4545
+ j.key && j.value !== void 0 && ($[j.key] = j.value);
4546
4546
  });
4547
4547
  const M = {};
4548
4548
  u.length && u.forEach((j) => {
4549
4549
  M[j] = n.parent ? a?.value?.[n.parent]?.[j] : void 0;
4550
4550
  }), a?.value && n.parent && (a.value[n.parent] = {
4551
4551
  ...M,
4552
- ..._
4553
- }), i("update:modelValue", _);
4552
+ ...$
4553
+ }), i("update:modelValue", $);
4554
4554
  },
4555
4555
  { deep: !0 }
4556
- ), (x, _) => (r(), c("div", xi, [
4556
+ ), (x, $) => (r(), c("div", xi, [
4557
4557
  l("div", wi, [
4558
4558
  (r(!0), c(ie, null, pe(f.value, (M, j) => (r(), c("div", {
4559
4559
  key: M.id,
4560
4560
  class: D(["flex items-center gap-2 w-full", { "opacity-50": v.value === j }]),
4561
4561
  draggable: "true",
4562
4562
  onDragstart: (g) => b(j),
4563
- onDragover: _[0] || (_[0] = we(() => {
4563
+ onDragover: $[0] || ($[0] = we(() => {
4564
4564
  }, ["prevent"])),
4565
4565
  onDrop: (g) => C(j)
4566
4566
  }, [
4567
- _[1] || (_[1] = _e('<button class="cursor-move" data-v-a0f7fbfc><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-a0f7fbfc><circle cx="15" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="18" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="18" r="1.5" data-v-a0f7fbfc></circle></svg></button>', 1)),
4567
+ $[1] || ($[1] = _e('<button class="cursor-move" data-v-a0f7fbfc><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-a0f7fbfc><circle cx="15" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="18" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="18" r="1.5" data-v-a0f7fbfc></circle></svg></button>', 1)),
4568
4568
  l("div", _i, [
4569
4569
  G(ct, {
4570
4570
  modelValue: M.key,
@@ -4779,20 +4779,20 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4779
4779
  setup(o, { emit: e }) {
4780
4780
  const t = o, a = e, { inputClass: n } = $e(t.style), i = de(o, "modelValue"), s = V({
4781
4781
  get: () => i.value,
4782
- set: (_) => {
4783
- i.value = _;
4782
+ set: ($) => {
4783
+ i.value = $;
4784
4784
  }
4785
- }), u = $(!1), f = $([]), v = $(!1), h = V(() => t.placeholder ?? ""), b = V(() => !!t.disabled), C = Ie("values");
4785
+ }), u = _(!1), f = _([]), v = _(!1), h = V(() => t.placeholder ?? ""), b = V(() => !!t.disabled), C = Ie("values");
4786
4786
  function y() {
4787
4787
  !b.value && s.value.trim() && I();
4788
4788
  }
4789
4789
  async function I() {
4790
- const _ = (s.value || "").trim();
4791
- if (!_) return;
4792
- let M = _;
4790
+ const $ = (s.value || "").trim();
4791
+ if (!$) return;
4792
+ let M = $;
4793
4793
  if (t.includes?.length && C?.value) {
4794
4794
  const g = t.includes.map((k) => C.value?.[k]).filter(Boolean);
4795
- g.length && (M = `${g.join(", ")}, ${_}`);
4795
+ g.length && (M = `${g.join(", ")}, ${$}`);
4796
4796
  }
4797
4797
  const j = t.api.replace("{{value}}", encodeURIComponent(M));
4798
4798
  u.value = !0;
@@ -4808,16 +4808,16 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
4808
4808
  function z() {
4809
4809
  v.value = !v.value;
4810
4810
  }
4811
- function x(_) {
4812
- if (!_) return;
4811
+ function x($) {
4812
+ if (!$) return;
4813
4813
  v.value = !1;
4814
- const M = parseFloat(_.lat), g = {
4814
+ const M = parseFloat($.lat), g = {
4815
4815
  type: "Point",
4816
- coordinates: [parseFloat(_.lon), M]
4816
+ coordinates: [parseFloat($.lon), M]
4817
4817
  };
4818
4818
  t.geom && C?.value && (C.value[t.geom] = g), a("update:geom", g);
4819
4819
  }
4820
- return (_, M) => (r(), c("div", Pi, [
4820
+ return ($, M) => (r(), c("div", Pi, [
4821
4821
  l("div", Ri, [
4822
4822
  se(l("input", {
4823
4823
  type: "text",
@@ -5066,7 +5066,7 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
5066
5066
  width: { default: 400 }
5067
5067
  },
5068
5068
  setup(o, { expose: e }) {
5069
- const t = o, a = $([]), n = $(""), i = $(""), s = V(() => !!t.enabled), u = V(() => [
5069
+ const t = o, a = _([]), n = _(""), i = _(""), s = V(() => !!t.enabled), u = V(() => [
5070
5070
  "vs-compact-form-navigation flex flex-col pl-[6px] pt-[8px] pr-[8px]",
5071
5071
  "sticky top-0 self-start shrink-0",
5072
5072
  "max-h-full min-h-0 overflow-y-auto"
@@ -5095,15 +5095,15 @@ const sr = /* @__PURE__ */ Q(or, [["render", ar]]), rr = { class: "map-search-wi
5095
5095
  y = U ?? null;
5096
5096
  return;
5097
5097
  }
5098
- _(U ?? null), je(() => M());
5098
+ $(U ?? null), je(() => M());
5099
5099
  },
5100
5100
  { immediate: !0 }
5101
5101
  ), ke(() => {
5102
- t.scrollContainer || _(null), M();
5102
+ t.scrollContainer || $(null), M();
5103
5103
  }), wt(() => {
5104
- T(), _(null, !0), C = null, typeof window < "u" && (h && window.cancelAnimationFrame(h), b && window.cancelAnimationFrame(b));
5104
+ T(), $(null, !0), C = null, typeof window < "u" && (h && window.cancelAnimationFrame(h), b && window.cancelAnimationFrame(b));
5105
5105
  });
5106
- function _(U, X = !1) {
5106
+ function $(U, X = !1) {
5107
5107
  if (I && (I(), I = null), X) {
5108
5108
  y = null;
5109
5109
  return;
@@ -5277,7 +5277,7 @@ function vu(o, e, t = !1) {
5277
5277
  const a = V(() => bt(
5278
5278
  (Array.isArray(e), e),
5279
5279
  typeof t == "boolean" ? t : t.value
5280
- )), n = $({});
5280
+ )), n = _({});
5281
5281
  function i(v) {
5282
5282
  const h = v?.conditions;
5283
5283
  if (!h) return !0;
@@ -5337,7 +5337,7 @@ const mu = { class: "flex w-full h-full min-h-0 gap-6" }, hu = {
5337
5337
  validate: f,
5338
5338
  reset: v,
5339
5339
  visibleSchema: h
5340
- } = vu(s, n.schema, Jt(n, "disabled")), b = $(null), C = $(null), y = V(() => n.navigation), I = V(() => n.navWidth), z = V(() => n.style?.columns), x = Object.freeze({ container: 12, label: 3 }), _ = V(() => n.columns ?? z.value ?? x), M = V(() => n.columns != null || z.value != null), j = V(() => M.value ? "horizontal" : n.layout), g = (q) => q?.columns ? "horizontal" : j.value, k = (q) => q?.columns ?? _.value, T = () => {
5340
+ } = vu(s, n.schema, Jt(n, "disabled")), b = _(null), C = _(null), y = V(() => n.navigation), I = V(() => n.navWidth), z = V(() => n.style?.columns), x = Object.freeze({ container: 12, label: 3 }), $ = V(() => n.columns ?? z.value ?? x), M = V(() => n.columns != null || z.value != null), j = V(() => M.value ? "horizontal" : n.layout), g = (q) => q?.columns ? "horizontal" : j.value, k = (q) => q?.columns ?? $.value, T = () => {
5341
5341
  a("update:modelValue", s.value), f(), a("handle-submit", s.value);
5342
5342
  };
5343
5343
  e({
@@ -5410,7 +5410,7 @@ const mu = { class: "flex w-full h-full min-h-0 gap-6" }, hu = {
5410
5410
  },
5411
5411
  emits: ["close", "save", "edit"],
5412
5412
  setup(o, { emit: e }) {
5413
- const t = o, a = e, n = $(t.schema), i = $(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), s = $({}), u = $(), f = $(t.mode);
5413
+ const t = o, a = e, n = _(t.schema), i = _(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), s = _({}), u = _(), f = _(t.mode);
5414
5414
  async function v() {
5415
5415
  const b = s.value.validate();
5416
5416
  if (b) {