@opengis/form 0.0.38 → 0.0.39

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 O, ref as w, onMounted as ge, onUnmounted as Pe, createElementBlock as d, openBlock as i, normalizeClass as V, createCommentVNode as z, renderSlot as _e, createElementVNode as l, toDisplayString as T, normalizeProps as He, guardReactiveProps as Ne, createTextVNode as ce, computed as D, mergeModels as X, useModel as Y, withDirectives as Q, unref as G, vModelText as ie, vModelCheckbox as ht, createVNode as j, createBlock as de, resolveDynamicComponent as Ie, normalizeStyle as xe, withCtx as Be, withModifiers as he, onBeforeUnmount as It, watch as te, createStaticVNode as pe, vModelRadio as gt, Fragment as ee, renderList as ae, mergeProps as Ae, reactive as Et, vModelDynamic as zt, vShow as Ze, inject as Se, resolveComponent as rt, Transition as bt, nextTick as ze, Teleport as Ft, getCurrentInstance as At, toRef as Dt, provide as nt } from "vue";
1
+ import { defineComponent as O, ref as w, onMounted as ge, onUnmounted as Pe, createElementBlock as d, openBlock as i, normalizeClass as V, createCommentVNode as z, renderSlot as _e, createElementVNode as l, toDisplayString as T, normalizeProps as He, guardReactiveProps as Ne, createTextVNode as fe, computed as D, mergeModels as X, useModel as Y, withDirectives as Z, unref as G, vModelText as ie, vModelCheckbox as ht, createVNode as j, createBlock as de, resolveDynamicComponent as Ie, normalizeStyle as xe, withCtx as Be, withModifiers as he, onBeforeUnmount as It, watch as te, createStaticVNode as ce, vModelRadio as gt, Fragment as ee, renderList as ae, mergeProps as Ae, reactive as Et, vModelDynamic as zt, vShow as qe, inject as Se, resolveComponent as rt, Transition as bt, nextTick as ze, Teleport as Ft, getCurrentInstance as At, toRef as Dt, provide as nt } from "vue";
2
2
  import { notify as ne, VsModal as yt, modal as Ot } from "@opengis/core";
3
3
  const Ut = {
4
4
  key: 0,
@@ -66,7 +66,7 @@ const Ut = {
66
66
  setup(o) {
67
67
  return (e, t) => (i(), d("div", Nt, [
68
68
  e.item?.type !== "html" ? (i(), d("span", qt, [
69
- ce(T(e.ua || e.label) + " ", 1),
69
+ fe(T(e.ua || e.label) + " ", 1),
70
70
  e.item?.rules?.includes("required") && (e.ua || e.label) ? (i(), d("span", Gt, "*")) : z("", !0)
71
71
  ])) : z("", !0),
72
72
  _e(e.$slots, "default", He(Ne(e.$attrs))),
@@ -185,7 +185,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
185
185
  emits: ["update:modelValue"],
186
186
  setup(o) {
187
187
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
188
- return (a, r) => Q((i(), d("input", {
188
+ return (a, r) => Z((i(), d("input", {
189
189
  type: "password",
190
190
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
191
191
  placeholder: a.placeholder,
@@ -215,7 +215,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
215
215
  emits: ["update:modelValue"],
216
216
  setup(o) {
217
217
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
218
- return (a, r) => Q((i(), d("input", {
218
+ return (a, r) => Z((i(), d("input", {
219
219
  type: "text",
220
220
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
221
221
  placeholder: a.placeholder,
@@ -245,7 +245,7 @@ const nl = ["placeholder", "disabled"], il = /* @__PURE__ */ O({
245
245
  emits: ["update:modelValue"],
246
246
  setup(o) {
247
247
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
248
- return (a, r) => Q((i(), d("input", {
248
+ return (a, r) => Z((i(), d("input", {
249
249
  type: "number",
250
250
  step: "any",
251
251
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
@@ -301,7 +301,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
301
301
  set: (r) => t("update:modelValue", r)
302
302
  });
303
303
  return (r, s) => (i(), d("div", hl, [
304
- Q(l("input", {
304
+ Z(l("input", {
305
305
  type: "checkbox",
306
306
  value: r.value,
307
307
  "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u),
@@ -325,7 +325,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
325
325
  ], 2),
326
326
  l("span", yl, [
327
327
  _e(r.$slots, "default", {}, () => [
328
- ce(T(r.label), 1)
328
+ fe(T(r.label), 1)
329
329
  ])
330
330
  ])
331
331
  ], 10, bl)
@@ -357,7 +357,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
357
357
  return (u, c) => (i(), d("label", {
358
358
  class: V(["group relative flex justify-center items-center gap-x-3 text-center bg-white text-gray-800 ring-ring ring-2 cursor-pointer rounded-lg", [s.value, r.value ? "ring-blue-500" : "border border-gray-200 ring-transparent"]])
359
359
  }, [
360
- Q(l("input", {
360
+ Z(l("input", {
361
361
  type: "checkbox",
362
362
  class: "hidden",
363
363
  name: u.id,
@@ -382,7 +382,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
382
382
  }, null, 8, $l)) : z("", !0)
383
383
  ])) : z("", !0),
384
384
  _e(u.$slots, "default", {}, () => [
385
- ce(T(u.label), 1)
385
+ fe(T(u.label), 1)
386
386
  ])
387
387
  ])
388
388
  ], 2));
@@ -429,7 +429,7 @@ const ml = /* @__PURE__ */ H(pl, [["render", vl]]), hl = { class: "flex items-ce
429
429
  error: u.error
430
430
  }, {
431
431
  default: Be(() => [
432
- ce(T(u.label), 1)
432
+ fe(T(u.label), 1)
433
433
  ]),
434
434
  _: 1
435
435
  }, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style", "error"]))
@@ -657,8 +657,8 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
657
657
  setup(o) {
658
658
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
659
659
  return (a, r) => (i(), d("div", Gl, [
660
- r[1] || (r[1] = pe('<div class="absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke-gray-500 transition-all"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path><path d="M3 7l9 6l9 -6"></path></svg></div>', 1)),
661
- Q(l("input", {
660
+ r[1] || (r[1] = ce('<div class="absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke-gray-500 transition-all"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path><path d="M3 7l9 6l9 -6"></path></svg></div>', 1)),
661
+ Z(l("input", {
662
662
  type: "email",
663
663
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
664
664
  placeholder: a.placeholder,
@@ -694,7 +694,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
694
694
  return (t, n) => (i(), d("label", {
695
695
  class: V(["flex items-center gap-0", [t.customClass]])
696
696
  }, [
697
- Q(l("input", {
697
+ Z(l("input", {
698
698
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
699
699
  type: "radio",
700
700
  value: t.value,
@@ -742,7 +742,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
742
742
  t.customClass
743
743
  ]])
744
744
  }, [
745
- Q(l("input", {
745
+ Z(l("input", {
746
746
  "onUpdate:modelValue": n[0] || (n[0] = (a) => e.value = a),
747
747
  type: "radio",
748
748
  value: t.value,
@@ -913,7 +913,7 @@ const Ol = /* @__PURE__ */ H(Fl, [["render", Dl]]), Ul = {
913
913
  get: () => n(t.modelValue),
914
914
  set: (c) => r("update:modelValue", c)
915
915
  }), u = D(() => t.mode === "datetime" ? "datetime-local" : t.mode);
916
- return (c, v) => Q((i(), d("input", {
916
+ return (c, v) => Z((i(), d("input", {
917
917
  type: u.value,
918
918
  "onUpdate:modelValue": v[0] || (v[0] = (p) => s.value = p),
919
919
  placeholder: c.placeholder,
@@ -989,7 +989,7 @@ const De = /* @__PURE__ */ H(io, [["render", co]]), po = {}, fo = {
989
989
  };
990
990
  function vo(o, e, t, n, a, r) {
991
991
  return i(), d("svg", fo, e[0] || (e[0] = [
992
- pe('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><line x1="9" y1="9" x2="10" y2="9"></line><line x1="9" y1="13" x2="15" y2="13"></line><line x1="9" y1="17" x2="15" y2="17"></line>', 6)
992
+ ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><line x1="9" y1="9" x2="10" y2="9"></line><line x1="9" y1="13" x2="15" y2="13"></line><line x1="9" y1="17" x2="15" y2="17"></line>', 6)
993
993
  ]));
994
994
  }
995
995
  const mo = /* @__PURE__ */ H(po, [["render", vo]]), ho = {}, go = {
@@ -1045,7 +1045,7 @@ const yo = /* @__PURE__ */ H(ho, [["render", bo]]), xo = {}, wo = {
1045
1045
  };
1046
1046
  function ko(o, e) {
1047
1047
  return i(), d("svg", wo, e[0] || (e[0] = [
1048
- pe('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M9 9l1 0"></path><path d="M9 13l6 0"></path><path d="M9 17l6 0"></path>', 6)
1048
+ ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M9 9l1 0"></path><path d="M9 13l6 0"></path><path d="M9 17l6 0"></path>', 6)
1049
1049
  ]));
1050
1050
  }
1051
1051
  const kt = /* @__PURE__ */ H(xo, [["render", ko]]), _o = {}, $o = {
@@ -1062,7 +1062,7 @@ const kt = /* @__PURE__ */ H(xo, [["render", ko]]), _o = {}, $o = {
1062
1062
  };
1063
1063
  function Co(o, e, t, n, a, r) {
1064
1064
  return i(), d("svg", $o, e[0] || (e[0] = [
1065
- pe('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"></path><path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"></path><line x1="11" y1="5" x2="10" y2="5"></line><line x1="13" y1="7" x2="12" y2="7"></line><line x1="11" y1="9" x2="10" y2="9"></line><line x1="13" y1="11" x2="12" y2="11"></line><line x1="11" y1="13" x2="10" y2="13"></line><line x1="13" y1="15" x2="12" y2="15"></line>', 9)
1065
+ ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"></path><path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"></path><line x1="11" y1="5" x2="10" y2="5"></line><line x1="13" y1="7" x2="12" y2="7"></line><line x1="11" y1="9" x2="10" y2="9"></line><line x1="13" y1="11" x2="12" y2="11"></line><line x1="11" y1="13" x2="10" y2="13"></line><line x1="13" y1="15" x2="12" y2="15"></line>', 9)
1066
1066
  ]));
1067
1067
  }
1068
1068
  const Vo = /* @__PURE__ */ H(_o, [["render", Co]]), Mo = {}, Lo = {
@@ -1079,7 +1079,7 @@ const Vo = /* @__PURE__ */ H(_o, [["render", Co]]), Mo = {}, Lo = {
1079
1079
  };
1080
1080
  function So(o, e, t, n, a, r) {
1081
1081
  return i(), d("svg", Lo, e[0] || (e[0] = [
1082
- pe('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M10 13l-1 2l1 2"></path><path d="M14 13l1 2l-1 2"></path>', 5)
1082
+ ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M10 13l-1 2l1 2"></path><path d="M14 13l1 2l-1 2"></path>', 5)
1083
1083
  ]));
1084
1084
  }
1085
1085
  const Bo = /* @__PURE__ */ H(Mo, [["render", So]]), jo = (o) => {
@@ -1109,10 +1109,10 @@ const Bo = /* @__PURE__ */ H(Mo, [["render", So]]), jo = (o) => {
1109
1109
  };
1110
1110
  function Fo(o, e) {
1111
1111
  return i(), d("svg", zo, e[0] || (e[0] = [
1112
- pe('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
1112
+ ce('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
1113
1113
  ]));
1114
1114
  }
1115
- const qe = /* @__PURE__ */ H(Eo, [["render", Fo]]), Ao = {}, Do = {
1115
+ const Ge = /* @__PURE__ */ H(Eo, [["render", Fo]]), Ao = {}, Do = {
1116
1116
  xmlns: "http://www.w3.org/2000/svg",
1117
1117
  width: "24",
1118
1118
  height: "24",
@@ -1172,7 +1172,7 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1172
1172
  }),
1173
1173
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
1174
1174
  }, [
1175
- j(qe, { class: "w-4 h-4" })
1175
+ j(Ge, { class: "w-4 h-4" })
1176
1176
  ]),
1177
1177
  l("button", {
1178
1178
  type: "button",
@@ -1281,13 +1281,13 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1281
1281
  return r < 1024 ? `${r.toFixed(2)} KB` : `${(r / 1024).toFixed(2)} MB`;
1282
1282
  }
1283
1283
  return (a, r) => (i(), d(ee, null, [
1284
- r[1] || (r[1] = pe('<div class="flex items-center justify-center h-[30px] w-[30px]"><svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path></svg></div>', 1)),
1284
+ r[1] || (r[1] = ce('<div class="flex items-center justify-center h-[30px] w-[30px]"><svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path></svg></div>', 1)),
1285
1285
  l("div", qo, [
1286
1286
  l("p", Go, T(a.item?.uploaded_name), 1),
1287
1287
  l("p", Jo, [
1288
1288
  l("span", null, T(a.item?.username), 1),
1289
- Q(l("span", Ko, "|", 512), [
1290
- [Ze, a.item?.username]
1289
+ Z(l("span", Ko, "|", 512), [
1290
+ [qe, a.item?.username]
1291
1291
  ]),
1292
1292
  l("span", null, T(t.value), 1),
1293
1293
  r[0] || (r[0] = l("span", { class: "px-[5px]" }, "|", -1)),
@@ -1391,7 +1391,7 @@ const _t = /* @__PURE__ */ H(Ao, [["render", Oo]]), Uo = { class: "h-[120px] w-[
1391
1391
  class: "size-[30px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-red-600 hover:bg-red-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-red-100 dark:text-red-500 dark:hover:bg-red-500/20 dark:focus:bg-red-500/20",
1392
1392
  onClick: m[2] || (m[2] = (g) => c())
1393
1393
  }, [
1394
- j(qe, {
1394
+ j(Ge, {
1395
1395
  height: "14",
1396
1396
  width: "14"
1397
1397
  })
@@ -1536,7 +1536,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1536
1536
  l("path", { d: "m21 21-4.3-4.3" })
1537
1537
  ])
1538
1538
  ], -1)),
1539
- Q(l("input", {
1539
+ Z(l("input", {
1540
1540
  type: "text",
1541
1541
  "onUpdate:modelValue": f[1] || (f[1] = ($) => m.value = $),
1542
1542
  class: "py-2 px-3 ps-10 pe-16 block w-full bg-gray-200 xl:bg-gray-100 rounded-lg text-sm focus:border-blue-500 h-[40px] focus:border-2 focus:outline-none disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:border-transparent dark:text-neutral-400 dark:placeholder:text-neutral-400 dark:focus:ring-neutral-600",
@@ -1615,10 +1615,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1615
1615
  ]),
1616
1616
  j(bt, { name: "slide-fade" }, {
1617
1617
  default: Be(() => [
1618
- Q(l("div", _a, [
1618
+ Z(l("div", _a, [
1619
1619
  _e(n.$slots, "default", {}, void 0, !0)
1620
1620
  ], 512), [
1621
- [Ze, t.value]
1621
+ [qe, t.value]
1622
1622
  ])
1623
1623
  ]),
1624
1624
  _: 3
@@ -1661,10 +1661,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1661
1661
  ]),
1662
1662
  j(bt, { name: "slide-fade" }, {
1663
1663
  default: Be(() => [
1664
- Q(l("div", Ma, [
1664
+ Z(l("div", Ma, [
1665
1665
  _e(n.$slots, "default", {}, void 0, !0)
1666
1666
  ], 512), [
1667
- [Ze, t.value]
1667
+ [qe, t.value]
1668
1668
  ])
1669
1669
  ]),
1670
1670
  _: 3
@@ -1695,7 +1695,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1695
1695
  switcher: Ca,
1696
1696
  accordion: Sa,
1697
1697
  default: ja
1698
- }, fe = {
1698
+ }, pe = {
1699
1699
  Equal: "==",
1700
1700
  Inequal: "!=",
1701
1701
  Higer: ">",
@@ -1711,29 +1711,29 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1711
1711
  }, Ea = (o, e) => String(o) === String(e), za = (o, e) => String(o) !== String(e), Fa = (o, e) => o > e, Aa = (o, e) => o >= e, Da = (o, e) => o < e, Oa = (o, e) => o <= e, Ua = (o, e) => Array.isArray(e) && e.length === 2 ? o >= e[0] && o <= e[1] : !1, Ta = (o, e) => String(o).startsWith(String(e)), Ra = (o, e) => String(o).endsWith(String(e)), Pa = (o, e) => String(o).includes(String(e)), Ha = (o, e) => Array.isArray(e) ? e.includes(o) : !1, Na = (o, e) => Array.isArray(e) ? !e.includes(o) : !0, $t = (o, e) => {
1712
1712
  if (!e) return !0;
1713
1713
  switch (e?.[1]) {
1714
- case fe.Equal:
1714
+ case pe.Equal:
1715
1715
  return Ea(o, e?.[2]);
1716
- case fe.Inequal:
1716
+ case pe.Inequal:
1717
1717
  return za(o, e?.[2]);
1718
- case fe.Higer:
1718
+ case pe.Higer:
1719
1719
  return Fa(o, e?.[2]);
1720
- case fe.HigerOrEqual:
1720
+ case pe.HigerOrEqual:
1721
1721
  return Aa(o, e?.[2]);
1722
- case fe.Lower:
1722
+ case pe.Lower:
1723
1723
  return Da(o, e?.[2]);
1724
- case fe.LowerOrEqual:
1724
+ case pe.LowerOrEqual:
1725
1725
  return Oa(o, e?.[2]);
1726
- case fe.Between:
1726
+ case pe.Between:
1727
1727
  return Ua(o, e?.[2]);
1728
- case fe.StartWith:
1728
+ case pe.StartWith:
1729
1729
  return Ta(o, e?.[2]);
1730
- case fe.EndWith:
1730
+ case pe.EndWith:
1731
1731
  return Ra(o, e?.[2]);
1732
- case fe.Contain:
1732
+ case pe.Contain:
1733
1733
  return Pa(o, e?.[2]);
1734
- case fe.In:
1734
+ case pe.In:
1735
1735
  return Ha(o, e?.[2]);
1736
- case fe.NotIn:
1736
+ case pe.NotIn:
1737
1737
  return Na(o, e?.[2]);
1738
1738
  default:
1739
1739
  return !0;
@@ -1869,11 +1869,11 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1869
1869
  r.value || (p.value = !0, await A(), await ze(() => {
1870
1870
  me(), F.value?.focus(), re.value.length ? I.value = 0 : I.value = -1;
1871
1871
  }));
1872
- }, Z = () => {
1872
+ }, W = () => {
1873
1873
  p.value = !1, I.value = -1;
1874
1874
  }, Ce = async (y) => {
1875
1875
  if (r.value) return;
1876
- !p.value ? await N() : Z();
1876
+ !p.value ? await N() : W();
1877
1877
  }, ke = async () => {
1878
1878
  p.value ? F.value?.focus() : await N();
1879
1879
  }, b = () => {
@@ -1883,10 +1883,10 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1883
1883
  }, U = (y) => {
1884
1884
  a.value ? (le(y.id) || (f.value = [...f.value, y.id], s.value = [...f.value], n("change", s.value)), M.value = "", ze(() => {
1885
1885
  F.value?.focus(), I.value = Math.min(I.value, re.value.length - 1);
1886
- })) : (g.value = y, s.value = y.id, n("change", s.value), M.value = "", Z());
1886
+ })) : (g.value = y, s.value = y.id, n("change", s.value), M.value = "", W());
1887
1887
  }, q = (y) => {
1888
1888
  le(y.id) || U(y);
1889
- }, W = (y, h) => {
1889
+ }, Q = (y, h) => {
1890
1890
  if (!y || !h) return;
1891
1891
  const C = y.offsetTop, P = C + y.offsetHeight, oe = h.scrollTop, ue = oe + h.clientHeight;
1892
1892
  let je = h.scrollTop;
@@ -1907,26 +1907,26 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1907
1907
  }, me = () => {
1908
1908
  if (!c.value) return;
1909
1909
  const y = c.value.getBoundingClientRect(), C = ye(c.value).getBoundingClientRect(), P = 300, oe = 20, ue = 8, je = y.top - C.top, Ee = y.bottom - C.top, at = C.height - Ee - ue - oe, st = je - ue - oe;
1910
- let Je = !1;
1911
- if (at >= st ? Je = !0 : Je = !1, Je) {
1910
+ let Ke = !1;
1911
+ if (at >= st ? Ke = !0 : Ke = !1, Ke) {
1912
1912
  E.value = "bottom";
1913
- const Ke = Math.min(P, Math.max(at + oe, 50));
1913
+ const Ze = Math.min(P, Math.max(at + oe, 50));
1914
1914
  x.value = {
1915
1915
  top: `${y.height + ue}px`,
1916
1916
  left: "0px",
1917
1917
  right: "0px",
1918
1918
  bottom: "auto",
1919
- maxHeight: `${Ke}px`
1919
+ maxHeight: `${Ze}px`
1920
1920
  };
1921
1921
  } else {
1922
1922
  E.value = "top";
1923
- const Ke = Math.min(P, Math.max(st + oe, 50));
1923
+ const Ze = Math.min(P, Math.max(st + oe, 50));
1924
1924
  x.value = {
1925
1925
  top: "auto",
1926
1926
  left: "0px",
1927
1927
  right: "0px",
1928
1928
  bottom: `${y.height + ue}px`,
1929
- maxHeight: `${Ke}px`
1929
+ maxHeight: `${Ze}px`
1930
1930
  };
1931
1931
  }
1932
1932
  }, Ve = async (y) => {
@@ -1935,22 +1935,22 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1935
1935
  if (!p.value) return;
1936
1936
  const { key: h } = y;
1937
1937
  if (h === "ArrowDown")
1938
- y.preventDefault(), I.value + 1 < re.value.length && (I.value += 1, W(R.value[I.value], v.value));
1938
+ y.preventDefault(), I.value + 1 < re.value.length && (I.value += 1, Q(R.value[I.value], v.value));
1939
1939
  else if (h === "ArrowUp")
1940
- y.preventDefault(), I.value > 0 && (I.value -= 1, W(R.value[I.value], v.value));
1940
+ y.preventDefault(), I.value > 0 && (I.value -= 1, Q(R.value[I.value], v.value));
1941
1941
  else if (h === "Enter") {
1942
1942
  y.preventDefault();
1943
1943
  const C = re.value[I.value];
1944
1944
  C && U(C), F.value?.blur();
1945
- } else h === "Escape" ? (y.preventDefault(), Z()) : h === "Backspace" ? a.value && M.value === "" && f.value.length && (f.value = f.value.slice(0, -1), s.value = [...f.value], n("change", s.value)) : h === "Home" ? (I.value = 0, W(R.value[0], v.value)) : h === "End" ? (I.value = re.value.length - 1, W(R.value[I.value], v.value)) : h === "Tab" && Z();
1945
+ } else h === "Escape" ? (y.preventDefault(), W()) : h === "Backspace" ? a.value && M.value === "" && f.value.length && (f.value = f.value.slice(0, -1), s.value = [...f.value], n("change", s.value)) : h === "Home" ? (I.value = 0, Q(R.value[0], v.value)) : h === "End" ? (I.value = re.value.length - 1, Q(R.value[I.value], v.value)) : h === "Tab" && W();
1946
1946
  }, Le = () => {
1947
1947
  r.value || (m.value = !0);
1948
1948
  }, Mt = () => {
1949
1949
  m.value = !1, M.value = "";
1950
1950
  }, We = (y) => {
1951
- y.key === "Escape" && p.value && Z();
1951
+ y.key === "Escape" && p.value && W();
1952
1952
  }, Qe = (y) => {
1953
- u.value && (u.value.contains(y.target) || Z());
1953
+ u.value && (u.value.contains(y.target) || W());
1954
1954
  }, Xe = (y) => {
1955
1955
  p.value && v.value && !v.value.contains(y.target) && me();
1956
1956
  }, Ye = () => {
@@ -1979,14 +1979,14 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
1979
1979
  }), Pe(() => {
1980
1980
  removeEventListener("keydown", We), removeEventListener("scroll", Xe, !0), removeEventListener("resize", Ye), document.removeEventListener("click", Qe, !0), c.value && ye(c.value).removeEventListener("scroll", et, !0);
1981
1981
  });
1982
- const Ue = w(!1), Ge = w({}), lt = w([]), ot = w(null);
1982
+ const Ue = w(!1), Je = w({}), lt = w([]), ot = w(null);
1983
1983
  async function Lt() {
1984
1984
  if (!t.add?.token || ot?.value.validate())
1985
1985
  return;
1986
1986
  const h = t.add.api ?? `/api/table/${t.add.token}`, { id: C } = await fetch(h, {
1987
1987
  method: "POST",
1988
1988
  headers: { "Content-Type": "application/json" },
1989
- body: JSON.stringify(Ge.value)
1989
+ body: JSON.stringify(Je.value)
1990
1990
  }).then((P) => P.json());
1991
1991
  if (!t.options?.length && t.data) {
1992
1992
  const { data: P } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${C}`).then((oe) => oe.json());
@@ -2027,8 +2027,8 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2027
2027
  default: Be(() => [
2028
2028
  j(Oe, {
2029
2029
  schema: lt.value,
2030
- modelValue: Ge.value,
2031
- "onUpdate:modelValue": h[0] || (h[0] = (C) => Ge.value = C),
2030
+ modelValue: Je.value,
2031
+ "onUpdate:modelValue": h[0] || (h[0] = (C) => Je.value = C),
2032
2032
  ref_key: "addForm",
2033
2033
  ref: ot
2034
2034
  }, null, 8, ["schema", "modelValue"])
@@ -2122,7 +2122,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2122
2122
  ], 8, Wa)) : z("", !0),
2123
2123
  $.value ? (i(), d("div", Qa, T(K.value), 1)) : z("", !0),
2124
2124
  l("div", Xa, [
2125
- !r.value && y.search ? Q((i(), d("input", {
2125
+ !r.value && y.search ? Z((i(), d("input", {
2126
2126
  key: 0,
2127
2127
  ref_key: "inputRef",
2128
2128
  ref: F,
@@ -2261,7 +2261,7 @@ const da = /* @__PURE__ */ H(na, [["render", ua]]), ca = { class: "flex flex-col
2261
2261
  emits: ["update:modelValue"],
2262
2262
  setup(o) {
2263
2263
  const e = o, { inputClass: t } = be(e.style), n = Y(o, "modelValue");
2264
- return (a, r) => Q((i(), d("textarea", {
2264
+ return (a, r) => Z((i(), d("textarea", {
2265
2265
  "onUpdate:modelValue": r[0] || (r[0] = (s) => n.value = s),
2266
2266
  placeholder: a.placeholder,
2267
2267
  disabled: a.disabled,
@@ -2368,7 +2368,7 @@ const _s = /* @__PURE__ */ H(xs, [["render", ks]]), $s = {}, Cs = {
2368
2368
  };
2369
2369
  function Vs(o, e) {
2370
2370
  return i(), d("svg", Cs, e[0] || (e[0] = [
2371
- pe('<circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>', 6)
2371
+ ce('<circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>', 6)
2372
2372
  ]));
2373
2373
  }
2374
2374
  const ft = /* @__PURE__ */ H($s, [["render", Vs]]), Ms = {}, Ls = {
@@ -2378,7 +2378,7 @@ const ft = /* @__PURE__ */ H($s, [["render", Vs]]), Ms = {}, Ls = {
2378
2378
  };
2379
2379
  function Ss(o, e) {
2380
2380
  return i(), d("svg", Ls, e[0] || (e[0] = [
2381
- pe('<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)
2381
+ ce('<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)
2382
2382
  ]));
2383
2383
  }
2384
2384
  const Bs = /* @__PURE__ */ H(Ms, [["render", Ss]]), js = {}, Is = {
@@ -2455,9 +2455,9 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2455
2455
  const B = A.target.files?.[0];
2456
2456
  if (!B) return;
2457
2457
  const N = new FileReader();
2458
- N.onload = (Z) => {
2458
+ N.onload = (W) => {
2459
2459
  try {
2460
- const Ce = Z.target?.result;
2460
+ const Ce = W.target?.result;
2461
2461
  if (typeof Ce == "string") {
2462
2462
  const ke = JSON.parse(Ce);
2463
2463
  Array.isArray(ke) && t.value.push(...ke);
@@ -2510,7 +2510,7 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2510
2510
  height: "14",
2511
2511
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-stone-500"
2512
2512
  }),
2513
- Q(l("input", {
2513
+ Z(l("input", {
2514
2514
  type: "text",
2515
2515
  "onUpdate:modelValue": S[0] || (S[0] = (B) => a.value = B),
2516
2516
  placeholder: "Пошук",
@@ -2561,7 +2561,7 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2561
2561
  width: "14",
2562
2562
  height: "14"
2563
2563
  }),
2564
- S[4] || (S[4] = ce(" Імпортувати ", -1))
2564
+ S[4] || (S[4] = fe(" Імпортувати ", -1))
2565
2565
  ]),
2566
2566
  l("button", {
2567
2567
  onClick: E,
@@ -2573,7 +2573,7 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2573
2573
  width: "14",
2574
2574
  height: "14"
2575
2575
  }),
2576
- S[5] || (S[5] = ce(" Експортувати ", -1))
2576
+ S[5] || (S[5] = fe(" Експортувати ", -1))
2577
2577
  ])
2578
2578
  ])
2579
2579
  ])
@@ -2585,7 +2585,7 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2585
2585
  class: "text-slate-700 bg-white hover:bg-gray-100 font-semibold text-[15px] leadig-[18.5px] py-[10px] px-[12px] border border-[#E5E7EB] rounded-[8px] h-[38px] max-h-[38px] gap-[8px] flex items-center"
2586
2586
  }, [
2587
2587
  j(De),
2588
- S[6] || (S[6] = ce(" Додати ", -1))
2588
+ S[6] || (S[6] = fe(" Додати ", -1))
2589
2589
  ])
2590
2590
  ]),
2591
2591
  l("div", qs, [
@@ -2627,9 +2627,9 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2627
2627
  "border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": u.value === N
2628
2628
  }]),
2629
2629
  draggable: "true",
2630
- onDragstart: (Z) => m(N),
2631
- onDragover: he((Z) => g(N), ["prevent"]),
2632
- onDrop: (Z) => _(N)
2630
+ onDragstart: (W) => m(N),
2631
+ onDragover: he((W) => g(N), ["prevent"]),
2632
+ onDrop: (W) => _(N)
2633
2633
  }, [
2634
2634
  l("td", er, [
2635
2635
  l("div", tr, [
@@ -2640,14 +2640,14 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2640
2640
  })
2641
2641
  ])
2642
2642
  ]),
2643
- (i(!0), d(ee, null, ae(A.colModel, (Z) => (i(), d("td", {
2644
- key: Z.key,
2643
+ (i(!0), d(ee, null, ae(A.colModel, (W) => (i(), d("td", {
2644
+ key: W.key,
2645
2645
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
2646
2646
  }, [
2647
- Z.type === "file" ? (i(), d("div", lr, [
2648
- M(re(B, Z)) ? (i(), d("div", or, [
2647
+ W.type === "file" ? (i(), d("div", lr, [
2648
+ M(re(B, W)) ? (i(), d("div", or, [
2649
2649
  l("img", {
2650
- src: re(B, Z),
2650
+ src: re(B, W),
2651
2651
  alt: "alt",
2652
2652
  width: "45",
2653
2653
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
@@ -2655,16 +2655,16 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2655
2655
  ])) : (i(), d("div", sr, [
2656
2656
  j(kt, { class: "w-[25px] min-w-[25px] h-[25px]" })
2657
2657
  ]))
2658
- ])) : Z.type === "tiptap-editor" ? (i(), d("div", {
2658
+ ])) : W.type === "tiptap-editor" ? (i(), d("div", {
2659
2659
  key: 1,
2660
2660
  class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors",
2661
- innerHTML: re(B, Z)
2662
- }, null, 8, rr)) : (i(), d("div", nr, T(re(B, Z)), 1))
2661
+ innerHTML: re(B, W)
2662
+ }, null, 8, rr)) : (i(), d("div", nr, T(re(B, W)), 1))
2663
2663
  ]))), 128)),
2664
2664
  l("td", ir, [
2665
2665
  l("div", ur, [
2666
2666
  l("button", {
2667
- onClick: (Z) => ve(B, N),
2667
+ onClick: (W) => ve(B, N),
2668
2668
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-blue-50 dark:hover:bg-slate-600 hover:border-blue-300 dark:hover:border-slate-500 hover:text-blue-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
2669
2669
  }, [
2670
2670
  j(zs, {
@@ -2674,10 +2674,10 @@ const zs = /* @__PURE__ */ H(js, [["render", Es]]), Fs = { class: "vs-datatable
2674
2674
  })
2675
2675
  ], 8, dr),
2676
2676
  l("button", {
2677
- onClick: (Z) => $e(N),
2677
+ onClick: (W) => $e(N),
2678
2678
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-slate-600 hover:border-red-300 dark:hover:border-slate-500 hover:text-red-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
2679
2679
  }, [
2680
- j(qe, {
2680
+ j(Ge, {
2681
2681
  width: "24",
2682
2682
  height: "24",
2683
2683
  class: "w-3 h-3"
@@ -2908,7 +2908,7 @@ const _r = /* @__PURE__ */ H(xr, [["render", kr]]), $r = {}, Cr = {
2908
2908
  };
2909
2909
  function Vr(o, e) {
2910
2910
  return i(), d("svg", Cr, e[0] || (e[0] = [
2911
- pe('<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)
2911
+ ce('<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)
2912
2912
  ]));
2913
2913
  }
2914
2914
  const Mr = /* @__PURE__ */ H($r, [["render", Vr]]), Lr = {}, Sr = {
@@ -2923,7 +2923,7 @@ const Mr = /* @__PURE__ */ H($r, [["render", Vr]]), Lr = {}, Sr = {
2923
2923
  };
2924
2924
  function Br(o, e) {
2925
2925
  return i(), d("svg", Sr, e[0] || (e[0] = [
2926
- pe('<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)
2926
+ ce('<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)
2927
2927
  ]));
2928
2928
  }
2929
2929
  const jr = /* @__PURE__ */ H(Lr, [["render", Br]]), Ir = {}, Er = {
@@ -3119,7 +3119,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3119
3119
  })
3120
3120
  ])
3121
3121
  ], -1)),
3122
- Q(l("input", {
3122
+ Z(l("input", {
3123
3123
  type: "text",
3124
3124
  "onUpdate:modelValue": x[1] || (x[1] = (f) => r.value = f),
3125
3125
  onInput: R,
@@ -3233,38 +3233,38 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3233
3233
  function x() {
3234
3234
  return new Promise((b, k) => {
3235
3235
  window.L && window.L.Draw && b(0);
3236
- const U = (W) => {
3237
- if (Array.from(document.styleSheets).some((Ve) => Ve?.href?.includes(W))) return;
3236
+ const U = (Q) => {
3237
+ if (Array.from(document.styleSheets).some((Ve) => Ve?.href?.includes(Q))) return;
3238
3238
  const me = document.createElement("link");
3239
- me.rel = "stylesheet", me.href = W, document.head.appendChild(me);
3240
- }, q = (W) => new Promise((ye, me) => {
3241
- const Ve = Array.from(document.scripts).find((Le) => Le.src === W);
3239
+ me.rel = "stylesheet", me.href = Q, document.head.appendChild(me);
3240
+ }, q = (Q) => new Promise((ye, me) => {
3241
+ const Ve = Array.from(document.scripts).find((Le) => Le.src === Q);
3242
3242
  if (Ve) {
3243
3243
  Ve.addEventListener("load", () => ye()), Ve.addEventListener("error", (Le) => me(Le));
3244
3244
  return;
3245
3245
  }
3246
3246
  const Me = document.createElement("script");
3247
- Me.src = W, Me.async = !0, Me.onload = () => ye(), Me.onerror = (Le) => me(Le), document.body.appendChild(Me);
3247
+ Me.src = Q, Me.async = !0, Me.onload = () => ye(), Me.onerror = (Le) => me(Le), document.body.appendChild(Me);
3248
3248
  });
3249
3249
  U("https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"), U("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.css"), q("https://unpkg.com/leaflet@1.9.4/dist/leaflet.js").then(() => q("https://unpkg.com/leaflet-draw@1.0.4/dist/leaflet.draw.js")).then(() => b(0)).catch(k);
3250
3250
  });
3251
3251
  }
3252
3252
  function f() {
3253
- const b = u.toGeoJSON(), k = [], U = (W) => {
3254
- if (W)
3255
- switch (W.type) {
3253
+ const b = u.toGeoJSON(), k = [], U = (Q) => {
3254
+ if (Q)
3255
+ switch (Q.type) {
3256
3256
  case "Polygon":
3257
- k.push(W.coordinates);
3257
+ k.push(Q.coordinates);
3258
3258
  break;
3259
3259
  case "MultiPolygon":
3260
- k.push(...W.coordinates);
3260
+ k.push(...Q.coordinates);
3261
3261
  break;
3262
3262
  case "GeometryCollection":
3263
- (W.geometries || []).forEach(U);
3263
+ (Q.geometries || []).forEach(U);
3264
3264
  break;
3265
3265
  }
3266
3266
  };
3267
- (b?.features || []).forEach((W) => U(W.geometry));
3267
+ (b?.features || []).forEach((Q) => U(Q.geometry));
3268
3268
  const q = k.length ? { type: "MultiPolygon", coordinates: k } : null;
3269
3269
  a("update:modelValue", q ? E(q) : null), g.value = u.getLayers().length;
3270
3270
  }
@@ -3304,11 +3304,11 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3304
3304
  I.value = null, g.value = 0;
3305
3305
  return;
3306
3306
  }
3307
- const k = b[b.length - 1], U = se(k), q = re(k), W = le(k);
3307
+ const k = b[b.length - 1], U = se(k), q = re(k), Q = le(k);
3308
3308
  I.value = {
3309
3309
  type: U,
3310
3310
  center: q,
3311
- areaKm2: W,
3311
+ areaKm2: Q,
3312
3312
  layer: k
3313
3313
  }, g.value = b.length;
3314
3314
  }
@@ -3375,8 +3375,8 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3375
3375
  if (typeof U.result == "string")
3376
3376
  try {
3377
3377
  const q = JSON.parse(U.result);
3378
- u.clearLayers(), q && L.geoJSON({ type: "Feature", geometry: q }).eachLayer((W) => {
3379
- u.addLayer(W);
3378
+ u.clearLayers(), q && L.geoJSON({ type: "Feature", geometry: q }).eachLayer((Q) => {
3379
+ u.addLayer(Q);
3380
3380
  }), f(), ve(), J();
3381
3381
  } finally {
3382
3382
  b.target.value = "";
@@ -3386,7 +3386,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3386
3386
  function N(b) {
3387
3387
  s && (M && s.removeLayer(M), M = L.tileLayer(R[b].url, { maxZoom: 19, minZoom: 6 }).addTo(s), F.value = b);
3388
3388
  }
3389
- function Z(b) {
3389
+ function W(b) {
3390
3390
  const k = L.latLng(b[0], b[1]);
3391
3391
  s.setView(k, 13);
3392
3392
  }
@@ -3437,7 +3437,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3437
3437
  class: "w-full h-full"
3438
3438
  }, null, 512),
3439
3439
  l("div", un, [
3440
- j(ln, { onGoToCoordinates: Z }),
3440
+ j(ln, { onGoToCoordinates: W }),
3441
3441
  l("div", dn, [
3442
3442
  l("div", cn, [
3443
3443
  l("button", {
@@ -3523,19 +3523,19 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3523
3523
  l("div", yn, [
3524
3524
  I.value ? (i(), d("div", xn, [
3525
3525
  l("div", wn, [
3526
- k[7] || (k[7] = ce(" Тип: ", -1)),
3526
+ k[7] || (k[7] = fe(" Тип: ", -1)),
3527
3527
  l("span", kn, T(I.value.type), 1)
3528
3528
  ]),
3529
3529
  l("div", _n, [
3530
3530
  l("div", $n, [
3531
- k[8] || (k[8] = ce(" Центр: ", -1)),
3531
+ k[8] || (k[8] = fe(" Центр: ", -1)),
3532
3532
  l("b", null, T(I.value.center.lat.toFixed(5)) + ", " + T(I.value.center.lng.toFixed(5)), 1)
3533
3533
  ]),
3534
3534
  I.value.areaKm2 !== null ? (i(), d("div", Cn, [
3535
- k[9] || (k[9] = ce(" Площа: ", -1)),
3535
+ k[9] || (k[9] = fe(" Площа: ", -1)),
3536
3536
  l("b", null, T(I.value.areaKm2.toFixed(1)) + "км²", 1)
3537
3537
  ])) : (i(), d("div", Vn, k[10] || (k[10] = [
3538
- ce(" Площа: ", -1),
3538
+ fe(" Площа: ", -1),
3539
3539
  l("b", null, "—", -1)
3540
3540
  ]))),
3541
3541
  l("button", {
@@ -3543,14 +3543,14 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3543
3543
  title: "Наблизити",
3544
3544
  onClick: k[5] || (k[5] = (U) => we())
3545
3545
  }, k[11] || (k[11] = [
3546
- pe('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3" data-v-44f47a6f><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" data-v-44f47a6f></path><path d="M7 10l6 0" data-v-44f47a6f></path><path d="M10 7l0 6" data-v-44f47a6f></path><path d="M21 21l-6 -6" data-v-44f47a6f></path></svg>', 1)
3546
+ ce('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="w-3 h-3" data-v-44f47a6f><path d="M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0" data-v-44f47a6f></path><path d="M7 10l6 0" data-v-44f47a6f></path><path d="M10 7l0 6" data-v-44f47a6f></path><path d="M21 21l-6 -6" data-v-44f47a6f></path></svg>', 1)
3547
3547
  ])),
3548
3548
  l("button", {
3549
3549
  class: "tool bg-gray-100 py-1.5 px-2 rounded-lg text-md cursor-pointer hover:bg-blue-500 hover:text-white transition-all",
3550
3550
  title: "Видалити",
3551
3551
  onClick: k[6] || (k[6] = (U) => $e())
3552
3552
  }, [
3553
- j(qe, { class: "w-3 h-3" })
3553
+ j(Ge, { class: "w-3 h-3" })
3554
3554
  ])
3555
3555
  ])
3556
3556
  ])) : z("", !0)
@@ -3654,7 +3654,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3654
3654
  ]))), 128)),
3655
3655
  m.value ? (i(), d("div", En, T(p.value), 1)) : z("", !0),
3656
3656
  l("div", zn, [
3657
- _.value ? z("", !0) : Q((i(), d("input", {
3657
+ _.value ? z("", !0) : Z((i(), d("input", {
3658
3658
  key: 0,
3659
3659
  ref_key: "inputRef",
3660
3660
  ref: s,
@@ -3759,7 +3759,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3759
3759
  n.value = u.toString();
3760
3760
  };
3761
3761
  return (s, u) => (i(), d("div", Un, [
3762
- Q(l("input", {
3762
+ Z(l("input", {
3763
3763
  ref: "vsText",
3764
3764
  disabled: s.disabled,
3765
3765
  placeholder: s.placeholder,
@@ -3841,7 +3841,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3841
3841
  }, ["prevent"])),
3842
3842
  onDrop: (f) => g(x)
3843
3843
  }, [
3844
- F[1] || (F[1] = pe('<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)),
3844
+ F[1] || (F[1] = ce('<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)),
3845
3845
  l("div", Gn, [
3846
3846
  j(Re, {
3847
3847
  modelValue: E.key,
@@ -3879,7 +3879,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3879
3879
  height: "14",
3880
3880
  width: "14"
3881
3881
  }),
3882
- ce(" " + T(G(s)), 1)
3882
+ fe(" " + T(G(s)), 1)
3883
3883
  ], 8, Qn)
3884
3884
  ])
3885
3885
  ]));
@@ -3902,7 +3902,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3902
3902
  set: (s) => a("update:modelValue", s)
3903
3903
  });
3904
3904
  return (s, u) => (i(), d("div", ei, [
3905
- Q(l("input", {
3905
+ Z(l("input", {
3906
3906
  type: "color",
3907
3907
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
3908
3908
  disabled: s.disabled,
@@ -3912,7 +3912,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3912
3912
  }, null, 10, ti), [
3913
3913
  [ie, r.value]
3914
3914
  ]),
3915
- Q(l("input", {
3915
+ Z(l("input", {
3916
3916
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
3917
3917
  "onUpdate:modelValue": u[1] || (u[1] = (c) => r.value = c)
3918
3918
  }, null, 512), [
@@ -3941,7 +3941,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3941
3941
  set: (s) => a("update:modelValue", Number(s))
3942
3942
  });
3943
3943
  return (s, u) => (i(), d("div", oi, [
3944
- Q(l("input", {
3944
+ Z(l("input", {
3945
3945
  type: "range",
3946
3946
  "onUpdate:modelValue": u[0] || (u[0] = (c) => r.value = c),
3947
3947
  min: s.min,
@@ -3953,7 +3953,7 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
3953
3953
  }, null, 10, ai), [
3954
3954
  [ie, r.value]
3955
3955
  ]),
3956
- Q(l("input", {
3956
+ Z(l("input", {
3957
3957
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2 max-w-[100px]",
3958
3958
  type: "number",
3959
3959
  "onUpdate:modelValue": u[1] || (u[1] = (c) => r.value = c)
@@ -4046,14 +4046,13 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
4046
4046
  const u = e.item ?? {}, c = r.value;
4047
4047
  return c.size ? Object.fromEntries(Object.entries(u).filter(([v]) => c.has(v))) : {};
4048
4048
  });
4049
- return (u, c) => (i(), de(Ie(n.value), {
4049
+ return (u, c) => Z((i(), de(Ie(n.value), {
4050
4050
  ua: e.item.ua,
4051
4051
  error: e.error || "",
4052
4052
  item: u.item,
4053
4053
  label: e.item.label
4054
4054
  }, {
4055
4055
  default: Be(() => [
4056
- c[1] || (c[1] = ce(' v-show="!item.hidden" > ', -1)),
4057
4056
  l("div", {
4058
4057
  class: V(["flex w-full", `${e.item.type}-component`])
4059
4058
  }, [
@@ -4064,9 +4063,10 @@ const Fr = /* @__PURE__ */ H(Ir, [["render", zr]]), Ar = { class: "form-geom__se
4064
4063
  u.item.behavior?.api && u.item.behavior?.button ? (i(), de(ni, Ae({ key: 0 }, u.item.behavior, { value: t.value }), null, 16, ["value"])) : z("", !0)
4065
4064
  ], 2)
4066
4065
  ]),
4067
- _: 1,
4068
- __: [1]
4069
- }, 8, ["ua", "error", "item", "label"]));
4066
+ _: 1
4067
+ }, 8, ["ua", "error", "item", "label"])), [
4068
+ [qe, !u.item.hidden]
4069
+ ]);
4070
4070
  }
4071
4071
  }), Vt = {
4072
4072
  required: "Це поле є обов’язковим",