@opengis/form 0.0.62 → 0.0.63

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 G, ref as w, onMounted as ye, onUnmounted as Qe, createElementBlock as d, openBlock as i, createCommentVNode as U, renderSlot as Le, createElementVNode as l, toDisplayString as W, mergeProps as Fe, computed as S, normalizeStyle as be, createTextVNode as ge, normalizeProps as st, guardReactiveProps as rt, normalizeClass as T, mergeModels as ie, useModel as de, withDirectives as ne, unref as te, vModelText as he, vModelCheckbox as jt, createVNode as R, createBlock as me, resolveDynamicComponent as Oe, withCtx as Ee, withModifiers as $e, onBeforeUnmount as it, watch as ue, createStaticVNode as xe, vModelRadio as Et, Fragment as re, renderList as fe, reactive as qt, vModelDynamic as Kt, vShow as et, inject as Ae, resolveComponent as xt, Transition as ut, nextTick as je, Teleport as It, getCurrentInstance as Wt, watchEffect as Zt, toRef as Jt, provide as wt } from "vue";
1
+ import { defineComponent as G, ref as w, onMounted as ye, onUnmounted as Qe, createElementBlock as u, openBlock as i, createCommentVNode as U, renderSlot as Le, createElementVNode as l, toDisplayString as W, mergeProps as Fe, computed as S, normalizeStyle as be, createTextVNode as ge, normalizeProps as at, guardReactiveProps as st, normalizeClass as T, mergeModels as ie, useModel as de, withDirectives as ne, unref as te, vModelText as he, vModelCheckbox as jt, createVNode as R, createBlock as me, resolveDynamicComponent as Oe, withCtx as Ee, withModifiers as $e, onBeforeUnmount as rt, watch as ue, createStaticVNode as xe, vModelRadio as Et, Fragment as re, renderList as fe, reactive as qt, vModelDynamic as Kt, vShow as it, inject as Ae, resolveComponent as xt, Transition as ut, nextTick as je, Teleport as It, getCurrentInstance as Wt, watchEffect as Zt, toRef as Jt, provide as wt } from "vue";
2
2
  import { notify as ce, VsModal as zt, modal as Yt } from "@opengis/core";
3
3
  const Xt = { class: "w-full relative" }, Qt = {
4
4
  key: 0,
@@ -31,15 +31,15 @@ const Xt = { class: "w-full relative" }, Qt = {
31
31
  e.value = localStorage.locale, window.addEventListener("storage", t);
32
32
  }), Qe(() => {
33
33
  window.removeEventListener("resize", t);
34
- }), (s, n) => (i(), d("div", Xt, [
35
- s.ua || s.label ? (i(), d("div", Qt, [
34
+ }), (s, n) => (i(), u("div", Xt, [
35
+ s.ua || s.label ? (i(), u("div", Qt, [
36
36
  l("span", el, W(s.item[e.value] || s.ua || s.label), 1),
37
- s.item?.rules?.includes("required") ? (i(), d("span", tl, "*")) : U("", !0)
37
+ s.item?.rules?.includes("required") ? (i(), u("span", tl, "*")) : U("", !0)
38
38
  ])) : U("", !0),
39
39
  Le(s.$slots, "default", Fe(s.$attrs, {
40
40
  class: { "opacity-60": s.item.disabled }
41
41
  })),
42
- s.error ? (i(), d("span", ll, W(s.error), 1)) : U("", !0)
42
+ s.error ? (i(), u("span", ll, W(s.error), 1)) : U("", !0)
43
43
  ]));
44
44
  }
45
45
  }), nl = { class: "w-full relative flex flex-row items-center gap-2" }, al = {
@@ -64,38 +64,38 @@ const Xt = { class: "w-full relative" }, Qt = {
64
64
  },
65
65
  setup(o) {
66
66
  const e = o, t = S(() => e.columns ?? { container: 12, label: 3 }), s = S(() => {
67
- const { container: u, label: c } = t.value;
68
- return !u || u <= 0 ? 0 : Math.min(Math.max(c ?? 0, 0), u) / u;
67
+ const { container: d, label: c } = t.value;
68
+ return !d || d <= 0 ? 0 : Math.min(Math.max(c ?? 0, 0), d) / d;
69
69
  }), n = S(() => e.item?.type === "html" || s.value <= 0 ? !1 : !!(e.ua || e.label)), a = S(() => {
70
70
  if (!n.value) return {};
71
- const u = `${s.value * 100}%`;
72
- return { flexBasis: u, maxWidth: u };
71
+ const d = `${s.value * 100}%`;
72
+ return { flexBasis: d, maxWidth: d };
73
73
  }), r = S(() => {
74
- const { container: u, label: c } = t.value;
75
- if (!u || u <= 0) return {};
74
+ const { container: d, label: c } = t.value;
75
+ if (!d || d <= 0) return {};
76
76
  if (e.item?.type === "html") return { flexBasis: "100%", maxWidth: "100%" };
77
77
  if (!n.value) return { flexBasis: "100%", maxWidth: "100%" };
78
- const f = Math.max(u - Math.max(c ?? 0, 0), 0) / u;
78
+ const f = Math.max(d - Math.max(c ?? 0, 0), 0) / d;
79
79
  if (!f) return {};
80
80
  const p = `${f * 100}%`;
81
81
  return { flexBasis: p, maxWidth: p };
82
82
  });
83
- return (u, c) => (i(), d("div", nl, [
84
- n.value ? (i(), d("span", {
83
+ return (d, c) => (i(), u("div", nl, [
84
+ n.value ? (i(), u("span", {
85
85
  key: 0,
86
86
  class: "text-sm text-gray-900 font-medium flex shrink-0",
87
87
  style: be(a.value)
88
88
  }, [
89
- ge(W(u.ua || u.label) + " ", 1),
90
- u.item?.rules?.includes("required") && (u.ua || u.label) ? (i(), d("span", al, "*")) : U("", !0)
89
+ ge(W(d.ua || d.label) + " ", 1),
90
+ d.item?.rules?.includes("required") && (d.ua || d.label) ? (i(), u("span", al, "*")) : U("", !0)
91
91
  ], 4)) : U("", !0),
92
92
  l("div", {
93
93
  class: "flex-1 min-w-0",
94
94
  style: be(r.value)
95
95
  }, [
96
- Le(u.$slots, "default", st(rt(u.$attrs)))
96
+ Le(d.$slots, "default", at(st(d.$attrs)))
97
97
  ], 4),
98
- u.error ? (i(), d("span", sl, W(u.error), 1)) : U("", !0)
98
+ d.error ? (i(), u("span", sl, W(d.error), 1)) : U("", !0)
99
99
  ]));
100
100
  }
101
101
  }), il = { class: "w-full relative" }, ul = {
@@ -116,9 +116,9 @@ const Xt = { class: "w-full relative" }, Qt = {
116
116
  columns: {}
117
117
  },
118
118
  setup(o) {
119
- return (e, t) => (i(), d("div", il, [
120
- Le(e.$slots, "default", st(rt(e.$attrs))),
121
- e.error ? (i(), d("span", ul, W(e.error), 1)) : U("", !0)
119
+ return (e, t) => (i(), u("div", il, [
120
+ Le(e.$slots, "default", at(st(e.$attrs))),
121
+ e.error ? (i(), u("span", ul, W(e.error), 1)) : U("", !0)
122
122
  ]));
123
123
  }
124
124
  }), cl = { class: "flex-1 min-w-0" }, pl = {
@@ -150,8 +150,8 @@ const Xt = { class: "w-full relative" }, Qt = {
150
150
  setup(o) {
151
151
  const e = o, t = w("uk");
152
152
  S(() => (e.item ?? {})?.[t.value] ?? e.ua ?? e.label ?? "");
153
- const s = S(() => e.item?.description ?? ""), n = S(() => Array.isArray(e.item?.rules) && e.item.rules.includes("required")), a = S(() => (typeof e.error == "string" ? e.error : "") ?? ""), r = (u) => {
154
- u.key === "locale" && (t.value = u.newValue ?? "uk");
153
+ const s = S(() => e.item?.description ?? ""), n = S(() => Array.isArray(e.item?.rules) && e.item.rules.includes("required")), a = S(() => (typeof e.error == "string" ? e.error : "") ?? ""), r = (d) => {
154
+ d.key === "locale" && (t.value = d.newValue ?? "uk");
155
155
  };
156
156
  return ye(() => {
157
157
  try {
@@ -161,24 +161,24 @@ const Xt = { class: "w-full relative" }, Qt = {
161
161
  window.addEventListener("storage", r);
162
162
  }), Qe(() => {
163
163
  window.removeEventListener("storage", r);
164
- }), (u, c) => (i(), d("div", {
165
- class: T(["w-full relative", { "opacity-60": u.item?.disabled }])
164
+ }), (d, c) => (i(), u("div", {
165
+ class: T(["w-full relative", { "opacity-60": d.item?.disabled }])
166
166
  }, [
167
167
  l("div", {
168
- class: T(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(u.item.type) ? "flex flex-col" : ""]])
168
+ class: T(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(d.item.type) ? "flex flex-col" : ""]])
169
169
  }, [
170
170
  l("div", cl, [
171
- u.ua || u.label ? (i(), d("p", pl, [
172
- l("span", fl, W(u.item[t.value] || u.ua || u.label), 1),
173
- n.value ? (i(), d("span", vl, "*")) : U("", !0)
171
+ d.ua || d.label ? (i(), u("p", pl, [
172
+ l("span", fl, W(d.item[t.value] || d.ua || d.label), 1),
173
+ n.value ? (i(), u("span", vl, "*")) : U("", !0)
174
174
  ])) : U("", !0),
175
- s.value ? (i(), d("p", ml, W(s.value), 1)) : U("", !0)
175
+ s.value ? (i(), u("p", ml, W(s.value), 1)) : U("", !0)
176
176
  ]),
177
177
  l("div", hl, [
178
- Le(u.$slots, "default", st(rt(u.$attrs)))
178
+ Le(d.$slots, "default", at(st(d.$attrs)))
179
179
  ])
180
180
  ], 2),
181
- a.value ? (i(), d("p", gl, W(a.value), 1)) : U("", !0)
181
+ a.value ? (i(), u("p", gl, W(a.value), 1)) : U("", !0)
182
182
  ], 2));
183
183
  }
184
184
  }), yl = {
@@ -212,7 +212,7 @@ const xl = ["placeholder", "disabled"], wl = /* @__PURE__ */ G({
212
212
  emits: ["update:modelValue"],
213
213
  setup(o) {
214
214
  const e = o, { inputClass: t } = Ce(e.style), s = de(o, "modelValue");
215
- return (n, a) => ne((i(), d("input", {
215
+ return (n, a) => ne((i(), u("input", {
216
216
  type: "password",
217
217
  "onUpdate:modelValue": a[0] || (a[0] = (r) => s.value = r),
218
218
  placeholder: n.placeholder,
@@ -242,7 +242,7 @@ const xl = ["placeholder", "disabled"], wl = /* @__PURE__ */ G({
242
242
  emits: ["update:modelValue"],
243
243
  setup(o) {
244
244
  const e = o, { inputClass: t } = Ce(e.style), s = de(o, "modelValue");
245
- return (n, a) => ne((i(), d("input", {
245
+ return (n, a) => ne((i(), u("input", {
246
246
  type: "text",
247
247
  "onUpdate:modelValue": a[0] || (a[0] = (r) => s.value = r),
248
248
  placeholder: n.placeholder,
@@ -274,7 +274,7 @@ const xl = ["placeholder", "disabled"], wl = /* @__PURE__ */ G({
274
274
  emits: ["update:modelValue"],
275
275
  setup(o) {
276
276
  const e = o, { inputClass: t } = Ce(e.style), s = de(o, "modelValue");
277
- return (n, a) => ne((i(), d("input", {
277
+ return (n, a) => ne((i(), u("input", {
278
278
  type: "number",
279
279
  step: "any",
280
280
  "onUpdate:modelValue": a[0] || (a[0] = (r) => s.value = r),
@@ -305,7 +305,7 @@ const xl = ["placeholder", "disabled"], wl = /* @__PURE__ */ G({
305
305
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
306
306
  };
307
307
  function Ml(o, e) {
308
- return i(), d("svg", Vl, e[0] || (e[0] = [
308
+ return i(), u("svg", Vl, e[0] || (e[0] = [
309
309
  l("path", {
310
310
  stroke: "none",
311
311
  d: "M0 0h24v24H0z",
@@ -331,11 +331,11 @@ const Ll = /* @__PURE__ */ Y(Cl, [["render", Ml]]), Sl = { class: "flex items-ce
331
331
  get: () => s.modelValue,
332
332
  set: (a) => t("update:modelValue", a)
333
333
  });
334
- return (a, r) => (i(), d("div", Sl, [
334
+ return (a, r) => (i(), u("div", Sl, [
335
335
  ne(l("input", {
336
336
  type: "checkbox",
337
337
  value: a.value,
338
- "onUpdate:modelValue": r[0] || (r[0] = (u) => n.value = u),
338
+ "onUpdate:modelValue": r[0] || (r[0] = (d) => n.value = d),
339
339
  class: T(["shrink-0 border border-solid hidden border-gray-700 w-3.5 h-3.5 rounded text-blue-600 focus:ring-offset-0 dark:bg-neutral-800 dark:border-neutral-700 cursor-pointer", { "!cursor-not-allowed": a.disabled }]),
340
340
  id: a.id,
341
341
  disabled: a.disabled
@@ -381,44 +381,44 @@ const Ll = /* @__PURE__ */ Y(Cl, [["render", Ml]]), Sl = { class: "flex items-ce
381
381
  setup(o, { emit: e }) {
382
382
  const t = o, s = e, n = S({
383
383
  get: () => t.modelValue,
384
- set: (u) => {
385
- s("update:modelValue", u);
384
+ set: (d) => {
385
+ s("update:modelValue", d);
386
386
  }
387
387
  }), a = S(() => Array.isArray(n.value) ? n.value.includes(t.value) : n.value === !0 || n.value === t.value), r = S(() => t.style?.size === "xs" ? "p-1.5 text-xs" : t.style?.size === "lg" ? "p-3.5 text-[20px]" : "p-2.5 text-xs");
388
- return (u, c) => (i(), d("label", {
388
+ return (d, c) => (i(), u("label", {
389
389
  class: T(["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", [r.value, a.value ? "ring-blue-500" : "border border-gray-200 ring-transparent"]])
390
390
  }, [
391
391
  ne(l("input", {
392
392
  type: "checkbox",
393
393
  class: "hidden",
394
- name: u.id,
395
- value: u.value,
394
+ name: d.id,
395
+ value: d.value,
396
396
  "onUpdate:modelValue": c[0] || (c[0] = (f) => n.value = f),
397
- disabled: u.disabled
397
+ disabled: d.disabled
398
398
  }, null, 8, zl), [
399
399
  [jt, n.value]
400
400
  ]),
401
401
  l("span", Al, [
402
- u.icon || u.imgUrl ? (i(), d("span", Tl, [
403
- u.icon ? (i(), d("i", {
402
+ d.icon || d.imgUrl ? (i(), u("span", Tl, [
403
+ d.icon ? (i(), u("i", {
404
404
  key: 0,
405
- class: T(u.icon)
405
+ class: T(d.icon)
406
406
  }, null, 2)) : U("", !0),
407
- u.imgUrl ? (i(), d("img", {
407
+ d.imgUrl ? (i(), u("img", {
408
408
  key: 1,
409
- src: u.imgUrl,
409
+ src: d.imgUrl,
410
410
  width: "16",
411
411
  height: "16",
412
412
  alt: "icon"
413
413
  }, null, 8, Fl)) : U("", !0)
414
414
  ])) : U("", !0),
415
- Le(u.$slots, "default", {}, () => [
416
- ge(W(u.label), 1)
415
+ Le(d.$slots, "default", {}, () => [
416
+ ge(W(d.label), 1)
417
417
  ])
418
418
  ])
419
419
  ], 2));
420
420
  }
421
- }), Ul = { class: "flex items-center" }, nt = /* @__PURE__ */ G({
421
+ }), Ul = { class: "flex items-center" }, ot = /* @__PURE__ */ G({
422
422
  __name: "vs-input-checkbox-item",
423
423
  props: {
424
424
  value: { default: "" },
@@ -437,30 +437,30 @@ const Ll = /* @__PURE__ */ Y(Cl, [["render", Ml]]), Sl = { class: "flex items-ce
437
437
  setup(o, { emit: e }) {
438
438
  const t = o, s = e, n = `radio-${Math.floor(Math.random() * 1e4)}`, a = S({
439
439
  get: () => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && t.modelValue.includes(t.value) : t.modelValue,
440
- set: (u) => {
440
+ set: (d) => {
441
441
  if (Array.isArray(t.modelValue)) {
442
442
  let c = [...t.modelValue];
443
- u ? c.includes(t.value) || c.push(t.value) : c = c.filter((f) => f !== t.value), s("update:modelValue", c);
443
+ d ? c.includes(t.value) || c.push(t.value) : c = c.filter((f) => f !== t.value), s("update:modelValue", c);
444
444
  } else
445
- s("update:modelValue", u);
445
+ s("update:modelValue", d);
446
446
  }
447
447
  }), r = w(`vs-checkbox-${t.view || "default"}`);
448
- return (u, c) => (i(), d("div", Ul, [
448
+ return (d, c) => (i(), u("div", Ul, [
449
449
  (i(), me(Oe(r.value === "vs-checkbox-buttons" ? te(Ol) : te(Il)), {
450
- value: u.value,
451
- label: u.label,
452
- info: u.option?.info,
453
- disabled: u.disabled,
450
+ value: d.value,
451
+ label: d.label,
452
+ info: d.option?.info,
453
+ disabled: d.disabled,
454
454
  modelValue: a.value,
455
455
  "onUpdate:modelValue": c[0] || (c[0] = (f) => a.value = f),
456
456
  id: n,
457
- icon: u.icon,
458
- imgUrl: u.imgUrl,
459
- style: be(u.style),
460
- error: u.error
457
+ icon: d.icon,
458
+ imgUrl: d.imgUrl,
459
+ style: be(d.style),
460
+ error: d.error
461
461
  }, {
462
462
  default: Ee(() => [
463
- ge(W(u.label), 1)
463
+ ge(W(d.label), 1)
464
464
  ]),
465
465
  _: 1
466
466
  }, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style", "error"]))
@@ -477,7 +477,7 @@ const Ll = /* @__PURE__ */ Y(Cl, [["render", Ml]]), Sl = { class: "flex items-ce
477
477
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
478
478
  };
479
479
  function Pl(o, e) {
480
- return i(), d("svg", Rl, e[0] || (e[0] = [
480
+ return i(), u("svg", Rl, e[0] || (e[0] = [
481
481
  l("path", {
482
482
  stroke: "none",
483
483
  d: "M0 0h24v24H0z",
@@ -497,7 +497,7 @@ const Hl = /* @__PURE__ */ Y(Dl, [["render", Pl]]), Nl = {}, Gl = {
497
497
  class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
498
498
  };
499
499
  function ql(o, e) {
500
- return i(), d("svg", Gl, e[0] || (e[0] = [
500
+ return i(), u("svg", Gl, e[0] || (e[0] = [
501
501
  l("path", {
502
502
  stroke: "none",
503
503
  d: "M0 0h24v24H0z",
@@ -519,7 +519,7 @@ const Kl = /* @__PURE__ */ Y(Nl, [["render", ql]]), Wl = {}, Zl = {
519
519
  "stroke-linejoin": "round"
520
520
  };
521
521
  function Jl(o, e) {
522
- return i(), d("svg", Zl, e[0] || (e[0] = [
522
+ return i(), u("svg", Zl, e[0] || (e[0] = [
523
523
  l("path", {
524
524
  stroke: "none",
525
525
  d: "M0 0h24v24H0z",
@@ -558,15 +558,15 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
558
558
  emits: ["update:modelValue"],
559
559
  setup(o) {
560
560
  const e = o, t = de(o, "modelValue");
561
- return (s, n) => e.view === "checkbox" ? (i(), d("div", Xl, [
562
- R(nt, {
561
+ return (s, n) => e.view === "checkbox" ? (i(), u("div", Xl, [
562
+ R(ot, {
563
563
  modelValue: t.value,
564
564
  "onUpdate:modelValue": n[0] || (n[0] = (a) => t.value = a),
565
565
  label: s.text,
566
566
  error: s.error || ""
567
567
  }, null, 8, ["modelValue", "label", "error"]),
568
- s.rules?.includes("required") ? (i(), d("span", Ql, "*")) : U("", !0),
569
- s.i ? (i(), d("button", {
568
+ s.rules?.includes("required") ? (i(), u("span", Ql, "*")) : U("", !0),
569
+ s.i ? (i(), u("button", {
570
570
  key: 1,
571
571
  class: "cursor-pointer",
572
572
  title: s.i,
@@ -575,7 +575,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
575
575
  }, [
576
576
  R(te(Yl), { class: "text-gray-500 w-[14px] h-[14px]" })
577
577
  ], 8, eo)) : U("", !0)
578
- ])) : (i(), d("button", {
578
+ ])) : (i(), u("button", {
579
579
  key: 1,
580
580
  type: "button",
581
581
  class: T(["inline-flex h-5 w-9 shrink-0 px-[2px] cursor-pointer items-center rounded-full shadow-sm disabled:cursor-not-allowed disabled:opacity-50", [t.value ? `bg-${s.style?.primaryColor || "blue"}-500` : "bg-stone-200", s.customClass]]),
@@ -602,7 +602,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
602
602
  placeholder: {}
603
603
  },
604
604
  setup(o) {
605
- return (e, t) => (i(), d("div", {
605
+ return (e, t) => (i(), u("div", {
606
606
  id: e.name,
607
607
  class: T(["text-gray-900", e.customClass]),
608
608
  innerHTML: e.html ? e.html : e.text
@@ -645,7 +645,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
645
645
  s.value = e.unmask ? a.unmaskedValue : a.value;
646
646
  }), a.value = s.value ?? "";
647
647
  }
648
- }), it(() => {
648
+ }), rt(() => {
649
649
  a?.destroy();
650
650
  }), ue(() => e.mask, (r) => {
651
651
  a && a.updateOptions({
@@ -658,7 +658,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
658
658
  });
659
659
  }), ue(s, (r) => {
660
660
  a && a.unmaskedValue !== r && (a.value = r || "");
661
- }), (r, u) => (i(), d("input", {
661
+ }), (r, d) => (i(), u("input", {
662
662
  type: "text",
663
663
  ref_key: "inputEl",
664
664
  ref: n,
@@ -688,7 +688,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
688
688
  emits: ["update:modelValue"],
689
689
  setup(o) {
690
690
  const e = o, { inputClass: t } = Ce(e.style), s = de(o, "modelValue");
691
- return (n, a) => (i(), d("div", ao, [
691
+ return (n, a) => (i(), u("div", ao, [
692
692
  a[1] || (a[1] = xe('<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)),
693
693
  ne(l("input", {
694
694
  type: "email",
@@ -723,7 +723,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
723
723
  emits: ["update:modelValue"],
724
724
  setup(o) {
725
725
  const e = de(o, "modelValue");
726
- return (t, s) => (i(), d("label", {
726
+ return (t, s) => (i(), u("label", {
727
727
  class: T(["flex items-center gap-0", [t.customClass]])
728
728
  }, [
729
729
  ne(l("input", {
@@ -741,7 +741,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
741
741
  t.disabled ? "opacity-50 cursor-not-allowed" : ""
742
742
  ]])
743
743
  }, [
744
- e.value == t.value ? (i(), d("span", {
744
+ e.value == t.value ? (i(), u("span", {
745
745
  key: 0,
746
746
  class: T(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
747
747
  }, null, 2)) : U("", !0)
@@ -768,7 +768,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
768
768
  emits: ["update:modelValue"],
769
769
  setup(o) {
770
770
  const e = de(o, "modelValue");
771
- return (t, s) => (i(), d("label", {
771
+ return (t, s) => (i(), u("label", {
772
772
  class: T(["flex items-center border rounded-lg px-2 py-1", [
773
773
  e.value == t.value ? `ring-2 ring-ring ring-${t.style?.primaryColor || "blue"}-500` : "",
774
774
  t.customClass
@@ -809,16 +809,16 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
809
809
  emits: ["update:modelValue"],
810
810
  setup(o) {
811
811
  const e = o, t = de(o, "modelValue"), s = S(() => mo[`vs-input-radio-${e.view}`]);
812
- return (n, a) => (i(), d("div", {
812
+ return (n, a) => (i(), u("div", {
813
813
  class: T([n.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
814
814
  }, [
815
- (i(!0), d(re, null, fe(n.options, (r) => (i(), me(Oe(s.value), Fe({
815
+ (i(!0), u(re, null, fe(n.options, (r) => (i(), me(Oe(s.value), Fe({
816
816
  key: r?.id,
817
817
  text: r.text,
818
818
  value: r.id.toString(),
819
819
  checked: t.value === r.id,
820
820
  modelValue: t.value,
821
- "onUpdate:modelValue": a[0] || (a[0] = (u) => t.value = u)
821
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => t.value = d)
822
822
  }, { ref_for: !0 }, n.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
823
823
  ], 2));
824
824
  }
@@ -849,7 +849,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
849
849
  },
850
850
  emits: ["update:modelValue"],
851
851
  setup(o, { emit: e }) {
852
- const t = o, s = e, n = w([]), a = qt({}), r = (m) => m?.value || m?.id || m?.text || m, u = (m) => m.text || String(m), c = (m) => `lg:col-span-${m || 12}`, f = S(() => [
852
+ const t = o, s = e, n = w([]), a = qt({}), r = (m) => m?.value || m?.id || m?.text || m, d = (m) => m.text || String(m), c = (m) => `lg:col-span-${m || 12}`, f = S(() => [
853
853
  t.position === "vertical" ? "flex flex-col" : "",
854
854
  t.colSpan ? "grid" : "flex justify-start"
855
855
  ]), p = (m) => m == null || m === "" ? null : typeof m == "string" || typeof m == "number" ? m : String(m), v = S(() => {
@@ -949,22 +949,22 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
949
949
  }
950
950
  });
951
951
  }
952
- }), (m, I) => t.group ? (i(), d("div", ho, [
953
- (i(!0), d(re, null, fe(v.value, ($) => (i(), d("div", {
952
+ }), (m, I) => t.group ? (i(), u("div", ho, [
953
+ (i(!0), u(re, null, fe(v.value, ($) => (i(), u("div", {
954
954
  key: $.key,
955
955
  class: "flex flex-col gap-2"
956
956
  }, [
957
- $.label ? (i(), d("span", go, W($.label), 1)) : U("", !0),
957
+ $.label ? (i(), u("span", go, W($.label), 1)) : U("", !0),
958
958
  l("div", {
959
959
  class: T(["p-0 w-full gap-[12px]", f.value])
960
960
  }, [
961
- (i(!0), d(re, null, fe($.options, (A) => (i(), me(nt, {
961
+ (i(!0), u(re, null, fe($.options, (A) => (i(), me(ot, {
962
962
  modelValue: a[r(A)],
963
963
  "onUpdate:modelValue": (E) => a[r(A)] = E,
964
964
  value: r(A),
965
965
  class: T(c(m.colSpan)),
966
966
  disabled: A.disabled,
967
- label: u(A),
967
+ label: d(A),
968
968
  key: `${$.key}-${r(A)}`,
969
969
  icon: A?.icon,
970
970
  imgUrl: A?.imgUrl,
@@ -973,17 +973,17 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
973
973
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "view"]))), 128))
974
974
  ], 2)
975
975
  ]))), 128))
976
- ])) : (i(), d("div", {
976
+ ])) : (i(), u("div", {
977
977
  key: 0,
978
978
  class: T(["p-0 w-full gap-[10px]", f.value])
979
979
  }, [
980
- (i(!0), d(re, null, fe(n.value, ($) => (i(), me(nt, {
980
+ (i(!0), u(re, null, fe(n.value, ($) => (i(), me(ot, {
981
981
  modelValue: a[r($)],
982
982
  "onUpdate:modelValue": (A) => a[r($)] = A,
983
983
  value: r($),
984
984
  class: T(c(m.colSpan)),
985
985
  disabled: $.disabled,
986
- label: u($),
986
+ label: d($),
987
987
  key: r($),
988
988
  icon: $?.icon,
989
989
  imgUrl: $?.imgUrl,
@@ -1013,9 +1013,9 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
1013
1013
  const { inputClass: n } = Ce(t.style), a = e, r = S({
1014
1014
  get: () => s(t.modelValue),
1015
1015
  set: (c) => a("update:modelValue", c)
1016
- }), u = S(() => t.mode === "datetime" ? "datetime-local" : t.mode);
1017
- return (c, f) => ne((i(), d("input", {
1018
- type: u.value,
1016
+ }), d = S(() => t.mode === "datetime" ? "datetime-local" : t.mode);
1017
+ return (c, f) => ne((i(), u("input", {
1018
+ type: d.value,
1019
1019
  "onUpdate:modelValue": f[0] || (f[0] = (p) => r.value = p),
1020
1020
  placeholder: c.placeholder,
1021
1021
  disabled: c.disabled,
@@ -1071,7 +1071,7 @@ const Yl = /* @__PURE__ */ Y(Wl, [["render", Jl]]), Xl = {
1071
1071
  "stroke-linejoin": "round"
1072
1072
  };
1073
1073
  function Vo(o, e) {
1074
- return i(), d("svg", Co, e[0] || (e[0] = [
1074
+ return i(), u("svg", Co, e[0] || (e[0] = [
1075
1075
  l("path", { d: "M5 12h14" }, null, -1),
1076
1076
  l("path", { d: "M12 5v14" }, null, -1)
1077
1077
  ]));
@@ -1089,7 +1089,7 @@ const qe = /* @__PURE__ */ Y($o, [["render", Vo]]), Mo = {}, Lo = {
1089
1089
  "stroke-linejoin": "round"
1090
1090
  };
1091
1091
  function So(o, e, t, s, n, a) {
1092
- return i(), d("svg", Lo, e[0] || (e[0] = [
1092
+ return i(), u("svg", Lo, e[0] || (e[0] = [
1093
1093
  xe('<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)
1094
1094
  ]));
1095
1095
  }
@@ -1106,7 +1106,7 @@ const Bo = /* @__PURE__ */ Y(Mo, [["render", So]]), jo = {}, Eo = {
1106
1106
  "stroke-linejoin": "round"
1107
1107
  };
1108
1108
  function Io(o, e, t, s, n, a) {
1109
- return i(), d("svg", Eo, e[0] || (e[0] = [
1109
+ return i(), u("svg", Eo, e[0] || (e[0] = [
1110
1110
  l("path", {
1111
1111
  stroke: "none",
1112
1112
  d: "M0 0h24v24H0z",
@@ -1145,7 +1145,7 @@ const zo = /* @__PURE__ */ Y(jo, [["render", Io]]), Ao = {}, To = {
1145
1145
  "stroke-linejoin": "round"
1146
1146
  };
1147
1147
  function Fo(o, e) {
1148
- return i(), d("svg", To, e[0] || (e[0] = [
1148
+ return i(), u("svg", To, e[0] || (e[0] = [
1149
1149
  xe('<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)
1150
1150
  ]));
1151
1151
  }
@@ -1162,7 +1162,7 @@ const Tt = /* @__PURE__ */ Y(Ao, [["render", Fo]]), Oo = {}, Uo = {
1162
1162
  "stroke-linejoin": "round"
1163
1163
  };
1164
1164
  function Do(o, e, t, s, n, a) {
1165
- return i(), d("svg", Uo, e[0] || (e[0] = [
1165
+ return i(), u("svg", Uo, e[0] || (e[0] = [
1166
1166
  xe('<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)
1167
1167
  ]));
1168
1168
  }
@@ -1179,7 +1179,7 @@ const Ro = /* @__PURE__ */ Y(Oo, [["render", Do]]), Po = {}, Ho = {
1179
1179
  "stroke-linejoin": "round"
1180
1180
  };
1181
1181
  function No(o, e, t, s, n, a) {
1182
- return i(), d("svg", Ho, e[0] || (e[0] = [
1182
+ return i(), u("svg", Ho, e[0] || (e[0] = [
1183
1183
  xe('<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)
1184
1184
  ]));
1185
1185
  }
@@ -1209,11 +1209,11 @@ const Go = /* @__PURE__ */ Y(Po, [["render", No]]), qo = (o) => {
1209
1209
  class: "icon icon-tabler icons-tabler-outline icon-tabler-trash"
1210
1210
  };
1211
1211
  function Jo(o, e) {
1212
- return i(), d("svg", Zo, e[0] || (e[0] = [
1212
+ return i(), u("svg", Zo, e[0] || (e[0] = [
1213
1213
  xe('<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)
1214
1214
  ]));
1215
1215
  }
1216
- const tt = /* @__PURE__ */ Y(Wo, [["render", Jo]]), Yo = {}, Xo = {
1216
+ const et = /* @__PURE__ */ Y(Wo, [["render", Jo]]), Yo = {}, Xo = {
1217
1217
  xmlns: "http://www.w3.org/2000/svg",
1218
1218
  width: "24",
1219
1219
  height: "24",
@@ -1226,7 +1226,7 @@ const tt = /* @__PURE__ */ Y(Wo, [["render", Jo]]), Yo = {}, Xo = {
1226
1226
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
1227
1227
  };
1228
1228
  function Qo(o, e) {
1229
- return i(), d("svg", Xo, e[0] || (e[0] = [
1229
+ return i(), u("svg", Xo, e[0] || (e[0] = [
1230
1230
  l("path", {
1231
1231
  stroke: "none",
1232
1232
  d: "M0 0h24v24H0z",
@@ -1259,7 +1259,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1259
1259
  emits: ["update:value", "update:item"],
1260
1260
  setup(o) {
1261
1261
  const e = de(o, "value"), t = de(o, "item"), s = o;
1262
- return (n, a) => (i(), d("div", en, [
1262
+ return (n, a) => (i(), u("div", en, [
1263
1263
  (i(), me(Oe(te(Ko)(t.value)), {
1264
1264
  src: t.value,
1265
1265
  alt: "file",
@@ -1270,11 +1270,11 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1270
1270
  l("button", {
1271
1271
  type: "button",
1272
1272
  onClick: a[1] || (a[1] = (r) => {
1273
- te(_o)(t.value), e.value = s.multiple ? e.value?.filter((u) => u !== t.value) : "";
1273
+ te(_o)(t.value), e.value = s.multiple ? e.value?.filter((d) => d !== t.value) : "";
1274
1274
  }),
1275
1275
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
1276
1276
  }, [
1277
- R(tt, { class: "w-4 h-4" })
1277
+ R(et, { class: "w-4 h-4" })
1278
1278
  ]),
1279
1279
  l("button", {
1280
1280
  type: "button",
@@ -1314,7 +1314,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1314
1314
  }),
1315
1315
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
1316
1316
  setup(o, { emit: e }) {
1317
- const t = o, s = de(o, "modelValue"), n = e, a = w(null), r = w(!1), u = (p) => Array.isArray(s.value) && s.value[p] || "", c = (p) => {
1317
+ const t = o, s = de(o, "modelValue"), n = e, a = w(null), r = w(!1), d = (p) => Array.isArray(s.value) && s.value[p] || "", c = (p) => {
1318
1318
  if (t.max_size && p.size > t.max_size * 1024 * 1024) {
1319
1319
  const v = (p.size / 1048576).toFixed(2);
1320
1320
  return ce({
@@ -1349,7 +1349,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1349
1349
  r.value = !1, a.value && (a.value.value = "");
1350
1350
  }
1351
1351
  };
1352
- return (p, v) => (i(), d("div", on, [
1352
+ return (p, v) => (i(), u("div", on, [
1353
1353
  l("input", {
1354
1354
  class: "hidden",
1355
1355
  ref_key: "fileInput",
@@ -1365,13 +1365,13 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1365
1365
  "onUpdate:item": v[0] || (v[0] = (k) => s.value = k),
1366
1366
  value: s.value,
1367
1367
  "onUpdate:value": v[1] || (v[1] = (k) => s.value = k)
1368
- }, null, 8, ["item", "value"])) : p.multiple ? (i(), d("div", an, [
1369
- (i(!0), d(re, null, fe(s.value, (k, m) => (i(), me(Vt, {
1368
+ }, null, 8, ["item", "value"])) : p.multiple ? (i(), u("div", an, [
1369
+ (i(!0), u(re, null, fe(s.value, (k, m) => (i(), me(Vt, {
1370
1370
  multiple: p.multiple,
1371
1371
  key: m,
1372
1372
  value: s.value,
1373
1373
  "onUpdate:value": v[2] || (v[2] = (I) => s.value = I),
1374
- item: u(m)
1374
+ item: d(m)
1375
1375
  }, null, 8, ["multiple", "value", "item"]))), 128)),
1376
1376
  l("div", {
1377
1377
  onClick: v[3] || (v[3] = (k) => !p.disabled && !r.value && a.value?.click()),
@@ -1380,25 +1380,25 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1380
1380
  p.disabled || r.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50"
1381
1381
  ])
1382
1382
  }, [
1383
- r.value ? (i(), d("div", sn)) : (i(), me(qe, {
1383
+ r.value ? (i(), u("div", sn)) : (i(), me(qe, {
1384
1384
  key: 0,
1385
1385
  class: "w-6 h-6"
1386
1386
  }))
1387
1387
  ], 2)
1388
1388
  ])) : U("", !0),
1389
- p.multiple ? U("", !0) : (i(), d("div", {
1389
+ p.multiple ? U("", !0) : (i(), u("div", {
1390
1390
  key: 2,
1391
1391
  onClick: v[4] || (v[4] = (k) => a.value?.click()),
1392
1392
  class: T([p.disabled || r.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
1393
1393
  }, [
1394
- r.value ? (i(), d("div", rn)) : (i(), me(qe, {
1394
+ r.value ? (i(), u("div", rn)) : (i(), me(qe, {
1395
1395
  key: 0,
1396
1396
  class: "w-6 h-6"
1397
1397
  }))
1398
1398
  ], 2))
1399
1399
  ]));
1400
1400
  }
1401
- }), dn = /* @__PURE__ */ Y(un, [["__scopeId", "data-v-e613a523"]]), cn = { class: "max-w-[55vw]" }, pn = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, fn = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, vn = { class: "px-[5px]" }, mn = { class: "" }, Ye = /* @__PURE__ */ G({
1401
+ }), dn = /* @__PURE__ */ Y(un, [["__scopeId", "data-v-70ddd946"]]), cn = { class: "max-w-[55vw]" }, pn = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, fn = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, vn = { class: "px-[5px]" }, mn = { class: "" }, Ye = /* @__PURE__ */ G({
1402
1402
  __name: "vs-widget-file-info",
1403
1403
  props: {
1404
1404
  item: { default: null }
@@ -1421,14 +1421,14 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1421
1421
  const a = n / 1024;
1422
1422
  return a < 1024 ? `${a.toFixed(2)} KB` : `${(a / 1024).toFixed(2)} MB`;
1423
1423
  }
1424
- return (n, a) => (i(), d(re, null, [
1424
+ return (n, a) => (i(), u(re, null, [
1425
1425
  a[1] || (a[1] = xe('<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)),
1426
1426
  l("div", cn, [
1427
1427
  l("p", pn, W(n.item?.uploaded_name), 1),
1428
1428
  l("p", fn, [
1429
1429
  l("span", null, W(n.item?.username), 1),
1430
1430
  ne(l("span", vn, "|", 512), [
1431
- [et, n.item?.username]
1431
+ [it, n.item?.username]
1432
1432
  ]),
1433
1433
  l("span", null, W(t.value), 1),
1434
1434
  a[0] || (a[0] = l("span", { class: "px-[5px]" }, "|", -1)),
@@ -1469,7 +1469,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1469
1469
  const v = document.createElement("a");
1470
1470
  v.setAttribute("download", p?.uploaded_name), v.href = p?.file_path, v.click();
1471
1471
  }
1472
- async function u() {
1472
+ async function d() {
1473
1473
  try {
1474
1474
  await fetch(
1475
1475
  `${t.prefix}/widget/file/${t.item.entity_id}/${t.item.file_id}`
@@ -1484,24 +1484,24 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1484
1484
  message: "Ви впевнені, що хочете видалити цей файл?",
1485
1485
  confirmButtonText: "Так, я впевнена/ий",
1486
1486
  cancelButtonText: "Скасувати",
1487
- confirm: u,
1487
+ confirm: d,
1488
1488
  updateListOnConfirm: !0
1489
1489
  });
1490
1490
  }
1491
1491
  function f(p) {
1492
1492
  (t.item.ext === "jpg" || t.item.ext === "png") && s("openLightbox", { item: t.item, index: p });
1493
1493
  }
1494
- return (p, v) => (i(), d("div", hn, [
1495
- p.item.ext === "jpg" || p.item.ext === "png" ? (i(), d("div", gn, [
1494
+ return (p, v) => (i(), u("div", hn, [
1495
+ p.item.ext === "jpg" || p.item.ext === "png" ? (i(), u("div", gn, [
1496
1496
  l("div", {
1497
1497
  class: "max-w-[55vw] cursor-pointer flex gap-x-3 w-full items-center",
1498
1498
  onClick: v[0] || (v[0] = (k) => f(p.index))
1499
1499
  }, [
1500
1500
  R(Ye, { item: p.item }, null, 8, ["item"])
1501
1501
  ])
1502
- ])) : n(p.item) ? (i(), d("div", bn, [
1502
+ ])) : n(p.item) ? (i(), u("div", bn, [
1503
1503
  R(Ye, { item: p.item }, null, 8, ["item"])
1504
- ])) : a(p.item) ? (i(), d("div", yn, [
1504
+ ])) : a(p.item) ? (i(), u("div", yn, [
1505
1505
  l("a", {
1506
1506
  href: `/api/file-preview?id=${p.item.file_id}`,
1507
1507
  target: "_blank",
@@ -1509,7 +1509,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1509
1509
  }, [
1510
1510
  R(Ye, { item: p.item }, null, 8, ["item"])
1511
1511
  ], 8, xn)
1512
- ])) : (i(), d("div", wn, [
1512
+ ])) : (i(), u("div", wn, [
1513
1513
  R(Ye, { item: p.item }, null, 8, ["item"])
1514
1514
  ])),
1515
1515
  l("div", kn, [
@@ -1532,7 +1532,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1532
1532
  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",
1533
1533
  onClick: v[2] || (v[2] = (k) => c())
1534
1534
  }, [
1535
- R(tt, {
1535
+ R(et, {
1536
1536
  height: "14",
1537
1537
  width: "14"
1538
1538
  })
@@ -1555,7 +1555,7 @@ const Ft = /* @__PURE__ */ Y(Yo, [["render", Qo]]), en = { class: "h-[120px] w-[
1555
1555
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
1556
1556
  };
1557
1557
  function Sn(o, e) {
1558
- return i(), d("svg", Ln, e[0] || (e[0] = [
1558
+ return i(), u("svg", Ln, e[0] || (e[0] = [
1559
1559
  l("path", {
1560
1560
  stroke: "none",
1561
1561
  d: "M0 0h24v24H0z",
@@ -1587,7 +1587,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1587
1587
  },
1588
1588
  emits: ["update"],
1589
1589
  setup(o, { emit: e }) {
1590
- const t = o, s = Ae("form"), n = S(() => s.value.formId), a = w(!1), r = w(0), u = e, c = w(!1), f = w({}), p = w([]), v = w(""), k = S(() => Array.isArray(p.value) ? p.value.filter((C) => C.ext === "jpg" || C.ext === "png").map((C) => C?.file_path) : []), m = S(() => v.value === "" ? p.value : p.value.filter((C) => C?.uploaded_name?.includes(v.value))), I = (C) => {
1590
+ const t = o, s = Ae("form"), n = S(() => s.value.formId), a = w(!1), r = w(0), d = e, c = w(!1), f = w({}), p = w([]), v = w(""), k = S(() => Array.isArray(p.value) ? p.value.filter((C) => C.ext === "jpg" || C.ext === "png").map((C) => C?.file_path) : []), m = S(() => v.value === "" ? p.value : p.value.filter((C) => C?.uploaded_name?.includes(v.value))), I = (C) => {
1591
1591
  const h = k.value.findIndex((x) => x === C.item.file_path);
1592
1592
  h !== -1 && (a.value = !0, r.value = h);
1593
1593
  }, $ = async () => {
@@ -1604,7 +1604,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1604
1604
  x.append("file", h);
1605
1605
  try {
1606
1606
  const B = `${t.prefix}/widget/file/${n.value}`, V = await fetch(B, { method: "POST", body: x });
1607
- return V.ok ? (u("update", "file-list"), h) : (ce({
1607
+ return V.ok ? (d("update", "file-list"), h) : (ce({
1608
1608
  type: V.status >= 400 && V.status < 500 ? "warning" : "error",
1609
1609
  title: "Error",
1610
1610
  message: `Error code: ${V.status}`
@@ -1634,7 +1634,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1634
1634
  n.value && $();
1635
1635
  }), (C, h) => {
1636
1636
  const x = xt("Lightbox"), B = xt("MessageBox");
1637
- return i(), d("div", jn, [
1637
+ return i(), u("div", jn, [
1638
1638
  l("div", En, [
1639
1639
  l("h2", In, " Файлів: " + W(p.value?.length), 1),
1640
1640
  l("div", zn, [
@@ -1653,7 +1653,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1653
1653
  ])
1654
1654
  ])
1655
1655
  ]),
1656
- p.value?.length > 4 ? (i(), d("div", Tn, [
1656
+ p.value?.length > 4 ? (i(), u("div", Tn, [
1657
1657
  l("div", null, [
1658
1658
  l("div", Fn, [
1659
1659
  h[8] || (h[8] = l("div", { class: "absolute inset-y-0 start-0 flex items-center pointer-events-none z-[1] ps-3.5" }, [
@@ -1693,8 +1693,8 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1693
1693
  ])
1694
1694
  ])
1695
1695
  ])) : U("", !0),
1696
- p.value?.length ? (i(), d("div", On, [
1697
- (i(!0), d(re, null, fe(m.value, (V, P) => (i(), me(Vn, {
1696
+ p.value?.length ? (i(), u("div", On, [
1697
+ (i(!0), u(re, null, fe(m.value, (V, P) => (i(), me(Vn, {
1698
1698
  key: P,
1699
1699
  prefix: C.prefix,
1700
1700
  item: V,
@@ -1703,7 +1703,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1703
1703
  onOpenModal: h[3] || (h[3] = (ee) => O(ee)),
1704
1704
  onOpenLightbox: h[4] || (h[4] = (ee) => I(ee))
1705
1705
  }, null, 8, ["prefix", "item", "index"]))), 128)),
1706
- m.value.length ? U("", !0) : (i(), d("div", Un, h[9] || (h[9] = [
1706
+ m.value.length ? U("", !0) : (i(), u("div", Un, h[9] || (h[9] = [
1707
1707
  l("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
1708
1708
  ])))
1709
1709
  ])) : U("", !0),
@@ -1745,7 +1745,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1745
1745
  (s) => {
1746
1746
  t.value = s;
1747
1747
  }
1748
- ), (s, n) => (i(), d("div", null, [
1748
+ ), (s, n) => (i(), u("div", null, [
1749
1749
  l("div", Rn, [
1750
1750
  l("p", Pn, W(o.title), 1),
1751
1751
  R(At, {
@@ -1759,7 +1759,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1759
1759
  ne(l("div", Hn, [
1760
1760
  Le(s.$slots, "default", {}, void 0, !0)
1761
1761
  ], 512), [
1762
- [et, t.value]
1762
+ [it, t.value]
1763
1763
  ])
1764
1764
  ]),
1765
1765
  _: 3
@@ -1789,7 +1789,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1789
1789
  (s) => {
1790
1790
  t.value = s;
1791
1791
  }
1792
- ), (s, n) => (i(), d("div", null, [
1792
+ ), (s, n) => (i(), u("div", null, [
1793
1793
  l("button", {
1794
1794
  type: "button",
1795
1795
  onClick: n[0] || (n[0] = (a) => t.value = !t.value),
@@ -1805,7 +1805,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1805
1805
  ne(l("div", Kn, [
1806
1806
  Le(s.$slots, "default", {}, void 0, !0)
1807
1807
  ], 512), [
1808
- [et, t.value]
1808
+ [it, t.value]
1809
1809
  ])
1810
1810
  ]),
1811
1811
  _: 3
@@ -1825,7 +1825,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1825
1825
  }
1826
1826
  },
1827
1827
  setup(o) {
1828
- return (e, t) => (i(), d("div", null, [
1828
+ return (e, t) => (i(), u("div", null, [
1829
1829
  l("div", Jn, [
1830
1830
  l("p", null, W(o.title), 1)
1831
1831
  ]),
@@ -1904,28 +1904,28 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1904
1904
  }
1905
1905
  },
1906
1906
  setup(o) {
1907
- const e = o, t = Ae("values", w({})), s = Ae("form"), n = S(() => e.schema?.filter((u) => {
1908
- const c = u?.conditions;
1907
+ const e = o, t = Ae("values", w({})), s = Ae("form"), n = S(() => e.schema?.filter((d) => {
1908
+ const c = d?.conditions;
1909
1909
  if (!c) return !0;
1910
1910
  const f = Array.isArray(c) ? c[0] : c, p = e.name ? t.value?.[e.name]?.[f] ?? t.value?.[f] : t.value?.[f];
1911
1911
  return Ot(p, c);
1912
1912
  })), a = S(() => Xn[e.view]), r = S(() => {
1913
1913
  if (t.value || (t.value = {}), !e.name) return t.value;
1914
- const u = t.value[e.name];
1915
- if (u) return u;
1914
+ const d = t.value[e.name];
1915
+ if (d) return d;
1916
1916
  const c = {};
1917
1917
  return t.value = {
1918
1918
  ...t.value,
1919
1919
  [e.name]: c
1920
1920
  }, c;
1921
1921
  });
1922
- return (u, c) => o.schema?.length ? (i(), me(Oe(a.value), {
1922
+ return (d, c) => o.schema?.length ? (i(), me(Oe(a.value), {
1923
1923
  key: 0,
1924
1924
  title: o.title,
1925
1925
  style: be(o.style)
1926
1926
  }, {
1927
1927
  default: Ee(() => [
1928
- (i(!0), d(re, null, fe(n.value, (f) => (i(), me(Ut, Fe({
1928
+ (i(!0), u(re, null, fe(n.value, (f) => (i(), me(Ut, Fe({
1929
1929
  key: f.name
1930
1930
  }, { ref_for: !0 }, f, {
1931
1931
  item: f,
@@ -1985,7 +1985,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
1985
1985
  set: (g) => s("update:modelValue", g)
1986
1986
  });
1987
1987
  !r.value && t.defaultValue && (r.value = t.defaultValue);
1988
- const u = w(null), c = w(null), f = w(null), p = w(null), v = w(!1), k = w(!1), m = w(null), I = w([]), $ = w(-1), A = w([]), E = w(""), O = w(null), C = w("bottom"), h = w({}), x = w([]), B = S(() => {
1988
+ const d = w(null), c = w(null), f = w(null), p = w(null), v = w(!1), k = w(!1), m = w(null), I = w([]), $ = w(-1), A = w([]), E = w(""), O = w(null), C = w("bottom"), h = w({}), x = w([]), B = S(() => {
1989
1989
  if (!x.value.length) return [];
1990
1990
  const g = I.value, y = new Map(g.map((_) => [_.id?.toString(), _]));
1991
1991
  return x.value.map((_) => y.get(_?.toString())).filter((_) => !!_);
@@ -2053,7 +2053,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2053
2053
  return null;
2054
2054
  }
2055
2055
  return null;
2056
- }, lt = async (g) => {
2056
+ }, tt = async (g) => {
2057
2057
  const y = new Set(I.value.map((K) => K.id?.toString())), _ = g.filter((K) => !y.has(K?.toString()));
2058
2058
  _.length && await _.reduce(async (K, se) => {
2059
2059
  await K;
@@ -2141,7 +2141,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2141
2141
  g.key === "Escape" && v.value && Se();
2142
2142
  }, ft = (g) => {
2143
2143
  const y = g.target;
2144
- u.value?.contains(y) || p.value?.contains(y) || Se();
2144
+ d.value?.contains(y) || p.value?.contains(y) || Se();
2145
2145
  }, vt = (g) => {
2146
2146
  v.value && f.value && !f.value.contains(g.target) && Ve();
2147
2147
  }, mt = () => {
@@ -2154,7 +2154,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2154
2154
  }, { immediate: !0 });
2155
2155
  async function Ze() {
2156
2156
  if (n.value)
2157
- Array.isArray(r.value) ? x.value = [...r.value] : (x.value = r.value == null ? [] : [r.value], r.value = [...x.value]), t.data && x.value.length && (await lt(x.value), await je());
2157
+ Array.isArray(r.value) ? x.value = [...r.value] : (x.value = r.value == null ? [] : [r.value], r.value = [...x.value]), t.data && x.value.length && (await tt(x.value), await je());
2158
2158
  else {
2159
2159
  if (Array.isArray(r.value)) {
2160
2160
  const g = r.value[0] ?? null;
@@ -2170,14 +2170,14 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2170
2170
  }), Qe(() => {
2171
2171
  removeEventListener("keydown", pt), removeEventListener("scroll", vt, !0), removeEventListener("resize", mt), document.removeEventListener("click", ft, !0), c.value && Me(c.value).removeEventListener("scroll", ht, !0);
2172
2172
  });
2173
- const Je = w(!1), ot = w({}), gt = w([]), bt = w(null);
2173
+ const Je = w(!1), lt = w({}), gt = w([]), bt = w(null);
2174
2174
  async function Rt() {
2175
2175
  if (!t.add?.token || bt?.value.validate())
2176
2176
  return;
2177
2177
  const y = t.add.api ?? `/api/table/${t.add.token}`, { id: _ } = await fetch(y, {
2178
2178
  method: "POST",
2179
2179
  headers: { "Content-Type": "application/json" },
2180
- body: JSON.stringify(ot.value)
2180
+ body: JSON.stringify(lt.value)
2181
2181
  }).then((K) => K.json());
2182
2182
  if (!t.options?.length && t.data) {
2183
2183
  const { data: K } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${_}`).then((se) => se.json());
@@ -2209,7 +2209,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2209
2209
  const yt = w(!0);
2210
2210
  return ue(pe, async () => {
2211
2211
  t.data && (yt.value || (n.value ? (x.value = [], r.value = [], s("change", [])) : (m.value = null, r.value = null, s("change", null))), await Ue());
2212
- }), (g, y) => (i(), d(re, null, [
2212
+ }), (g, y) => (i(), u(re, null, [
2213
2213
  R(te(zt), {
2214
2214
  visible: Je.value,
2215
2215
  "onUpdate:visible": y[1] || (y[1] = (_) => Je.value = _),
@@ -2221,8 +2221,8 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2221
2221
  default: Ee(() => [
2222
2222
  R(Ke, {
2223
2223
  schema: gt.value,
2224
- modelValue: ot.value,
2225
- "onUpdate:modelValue": y[0] || (y[0] = (_) => ot.value = _),
2224
+ modelValue: lt.value,
2225
+ "onUpdate:modelValue": y[0] || (y[0] = (_) => lt.value = _),
2226
2226
  ref_key: "addForm",
2227
2227
  ref: bt
2228
2228
  }, null, 8, ["schema", "modelValue"])
@@ -2232,7 +2232,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2232
2232
  l("div", {
2233
2233
  class: "flex gap-1 w-full",
2234
2234
  ref_key: "selectRoot",
2235
- ref: u,
2235
+ ref: d,
2236
2236
  onClick: y[5] || (y[5] = $e(() => {
2237
2237
  }, ["stop"]))
2238
2238
  }, [
@@ -2269,13 +2269,13 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2269
2269
  ref_key: "triggerRef",
2270
2270
  ref: c
2271
2271
  }, [
2272
- n.value ? (i(), d("div", fa, [
2273
- (i(!0), d(re, null, fe(B.value, (_) => (i(), d("div", {
2272
+ n.value ? (i(), u("div", fa, [
2273
+ (i(!0), u(re, null, fe(B.value, (_) => (i(), u("div", {
2274
2274
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border max-w-full",
2275
2275
  key: _.id
2276
2276
  }, [
2277
2277
  l("div", va, [
2278
- _?.color ? (i(), d("span", {
2278
+ _?.color ? (i(), u("span", {
2279
2279
  key: 0,
2280
2280
  class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
2281
2281
  style: be({ backgroundColor: _?.color })
@@ -2284,10 +2284,10 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2284
2284
  class: "truncate text-gray-900 overflow-hidden max-w-[200px] px-0.5 py-[2px] pl-1.5",
2285
2285
  title: H(_)
2286
2286
  }, [
2287
- F.value ? (i(), d("span", {
2287
+ F.value ? (i(), u("span", {
2288
2288
  key: 0,
2289
2289
  innerHTML: z(_)
2290
- }, null, 8, ha)) : (i(), d(re, { key: 1 }, [
2290
+ }, null, 8, ha)) : (i(), u(re, { key: 1 }, [
2291
2291
  ge(W(_.text), 1)
2292
2292
  ], 64))
2293
2293
  ], 8, ma)
@@ -2310,7 +2310,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2310
2310
  ]), 8, ga)
2311
2311
  ]))), 128)),
2312
2312
  l("div", ba, [
2313
- !a.value && g.search ? ne((i(), d("input", {
2313
+ !a.value && g.search ? ne((i(), u("input", {
2314
2314
  key: 0,
2315
2315
  ref_key: "inputRef",
2316
2316
  ref: O,
@@ -2331,28 +2331,28 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2331
2331
  [he, E.value]
2332
2332
  ]) : U("", !0)
2333
2333
  ])
2334
- ])) : !n.value && !k.value && P.value && E.value === "" ? (i(), d("div", {
2334
+ ])) : !n.value && !k.value && P.value && E.value === "" ? (i(), u("div", {
2335
2335
  key: 1,
2336
2336
  class: T(["truncate text-gray-900"]),
2337
2337
  title: P.value
2338
2338
  }, [
2339
- m.value?.color ? (i(), d("span", {
2339
+ m.value?.color ? (i(), u("span", {
2340
2340
  key: 0,
2341
2341
  class: "w-[14px] h-[14px] rounded-md block mr-1 mt-1 absolute",
2342
2342
  style: be({ backgroundColor: m.value?.color })
2343
2343
  }, null, 4)) : U("", !0),
2344
- F.value ? (i(), d("span", {
2344
+ F.value ? (i(), u("span", {
2345
2345
  key: 1,
2346
2346
  class: T({ "pl-5": m.value?.color }),
2347
2347
  innerHTML: z(m.value)
2348
- }, null, 10, wa)) : (i(), d("span", {
2348
+ }, null, 10, wa)) : (i(), u("span", {
2349
2349
  key: 2,
2350
2350
  class: T({ "pl-5": m.value?.color })
2351
2351
  }, W(m.value?.text), 3))
2352
2352
  ], 8, xa)) : U("", !0),
2353
- ee.value ? (i(), d("div", ka, W(V.value), 1)) : U("", !0),
2354
- n.value ? U("", !0) : (i(), d("div", _a, [
2355
- !a.value && g.search ? ne((i(), d("input", {
2353
+ ee.value ? (i(), u("div", ka, W(V.value), 1)) : U("", !0),
2354
+ n.value ? U("", !0) : (i(), u("div", _a, [
2355
+ !a.value && g.search ? ne((i(), u("input", {
2356
2356
  key: 0,
2357
2357
  ref_key: "inputRef",
2358
2358
  ref: O,
@@ -2375,7 +2375,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2375
2375
  ]))
2376
2376
  ], 512),
2377
2377
  l("div", Ca, [
2378
- Q.value ? (i(), d("button", {
2378
+ Q.value ? (i(), u("button", {
2379
2379
  key: 0,
2380
2380
  type: "button",
2381
2381
  class: "px-2 text-gray-400 hover:text-gray-500 transition-colors disabled:opacity-50",
@@ -2413,7 +2413,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2413
2413
  ])
2414
2414
  ], 42, pa),
2415
2415
  (i(), me(It, { to: "body" }, [
2416
- v.value ? (i(), d("div", {
2416
+ v.value ? (i(), u("div", {
2417
2417
  key: 0,
2418
2418
  ref_key: "dropdownRef",
2419
2419
  ref: p,
@@ -2429,7 +2429,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2429
2429
  ref_key: "listRef",
2430
2430
  ref: f
2431
2431
  }, [
2432
- q.value.length ? (i(!0), d(re, { key: 0 }, fe(q.value, (_, K) => (i(), d("div", {
2432
+ q.value.length ? (i(!0), u(re, { key: 0 }, fe(q.value, (_, K) => (i(), u("div", {
2433
2433
  key: _.id,
2434
2434
  ref_for: !0,
2435
2435
  ref: (se) => A.value[K] = se,
@@ -2443,7 +2443,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2443
2443
  tabindex: "-1",
2444
2444
  onClick: (se) => ae(_)
2445
2445
  }, [
2446
- _?.color ? (i(), d("span", {
2446
+ _?.color ? (i(), u("span", {
2447
2447
  key: 0,
2448
2448
  class: "w-[11px] h-[11px] rounded-full block mr-1 mt-1.5",
2449
2449
  style: be({ backgroundColor: _?.color })
@@ -2456,19 +2456,19 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2456
2456
  ($.value === K, "")
2457
2457
  ])
2458
2458
  }, [
2459
- F.value ? (i(), d("span", {
2459
+ F.value ? (i(), u("span", {
2460
2460
  key: 0,
2461
2461
  innerHTML: z(_)
2462
- }, null, 8, Sa)) : (i(), d(re, { key: 1 }, [
2462
+ }, null, 8, Sa)) : (i(), u(re, { key: 1 }, [
2463
2463
  ge(W(_.text), 1)
2464
2464
  ], 64))
2465
2465
  ], 2)
2466
- ], 10, La))), 128)) : (i(), d("div", Ba, " No options "))
2466
+ ], 10, La))), 128)) : (i(), u("div", Ba, " No options "))
2467
2467
  ], 4)
2468
2468
  ], 4)) : U("", !0)
2469
2469
  ]))
2470
2470
  ], 2),
2471
- t.add ? (i(), d("button", {
2471
+ t.add ? (i(), u("button", {
2472
2472
  key: 0,
2473
2473
  onClick: Pt,
2474
2474
  class: "bg-white hover:bg-gray-100 text-sm text-gray-900 py-[10px] px-3 border border-stone-200 rounded-md h-[38px] flex items-center gap-2",
@@ -2501,7 +2501,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2501
2501
  emits: ["update:modelValue"],
2502
2502
  setup(o) {
2503
2503
  const e = o, { inputClass: t } = Ce(e.style), s = de(o, "modelValue");
2504
- return (n, a) => ne((i(), d("textarea", {
2504
+ return (n, a) => ne((i(), u("textarea", {
2505
2505
  "onUpdate:modelValue": a[0] || (a[0] = (r) => s.value = r),
2506
2506
  placeholder: n.placeholder,
2507
2507
  disabled: n.disabled,
@@ -2525,7 +2525,7 @@ const Bn = /* @__PURE__ */ Y(Mn, [["render", Sn]]), jn = { class: "flex flex-col
2525
2525
  class: "icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"
2526
2526
  };
2527
2527
  function Ta(o, e) {
2528
- return i(), d("svg", Aa, e[0] || (e[0] = [
2528
+ return i(), u("svg", Aa, e[0] || (e[0] = [
2529
2529
  l("path", {
2530
2530
  stroke: "none",
2531
2531
  d: "M0 0h24v24H0z",
@@ -2546,7 +2546,7 @@ const Fa = /* @__PURE__ */ Y(za, [["render", Ta]]), Oa = {}, Ua = {
2546
2546
  "stroke-linejoin": "round"
2547
2547
  };
2548
2548
  function Da(o, e) {
2549
- return i(), d("svg", Ua, e[0] || (e[0] = [
2549
+ return i(), u("svg", Ua, e[0] || (e[0] = [
2550
2550
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
2551
2551
  l("path", { d: "M7 20V4" }, null, -1),
2552
2552
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
@@ -2565,7 +2565,7 @@ const Ra = /* @__PURE__ */ Y(Oa, [["render", Da]]), Pa = {}, Ha = {
2565
2565
  "stroke-linejoin": "round"
2566
2566
  };
2567
2567
  function Na(o, e) {
2568
- return i(), d("svg", Ha, e[0] || (e[0] = [
2568
+ return i(), u("svg", Ha, e[0] || (e[0] = [
2569
2569
  l("path", {
2570
2570
  stroke: "none",
2571
2571
  d: "M0 0h24v24H0z",
@@ -2586,7 +2586,7 @@ const Ga = /* @__PURE__ */ Y(Pa, [["render", Na]]), qa = {}, Ka = {
2586
2586
  "stroke-linejoin": "round"
2587
2587
  };
2588
2588
  function Wa(o, e) {
2589
- return i(), d("svg", Ka, e[0] || (e[0] = [
2589
+ return i(), u("svg", Ka, e[0] || (e[0] = [
2590
2590
  l("path", {
2591
2591
  stroke: "none",
2592
2592
  d: "M0 0h24v24H0z",
@@ -2607,7 +2607,7 @@ const Za = /* @__PURE__ */ Y(qa, [["render", Wa]]), Ja = {}, Ya = {
2607
2607
  "stroke-linejoin": "round"
2608
2608
  };
2609
2609
  function Xa(o, e) {
2610
- return i(), d("svg", Ya, e[0] || (e[0] = [
2610
+ return i(), u("svg", Ya, e[0] || (e[0] = [
2611
2611
  xe('<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)
2612
2612
  ]));
2613
2613
  }
@@ -2617,7 +2617,7 @@ const Lt = /* @__PURE__ */ Y(Ja, [["render", Xa]]), Qa = {}, es = {
2617
2617
  xmlns: "http://www.w3.org/2000/svg"
2618
2618
  };
2619
2619
  function ts(o, e) {
2620
- return i(), d("svg", es, e[0] || (e[0] = [
2620
+ return i(), u("svg", es, e[0] || (e[0] = [
2621
2621
  xe('<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)
2622
2622
  ]));
2623
2623
  }
@@ -2631,7 +2631,7 @@ const ls = /* @__PURE__ */ Y(Qa, [["render", ts]]), os = {}, ns = {
2631
2631
  "stroke-linejoin": "round"
2632
2632
  };
2633
2633
  function as(o, e) {
2634
- return i(), d("svg", ns, e[0] || (e[0] = [
2634
+ return i(), u("svg", ns, e[0] || (e[0] = [
2635
2635
  l("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }, null, -1)
2636
2636
  ]));
2637
2637
  }
@@ -2672,17 +2672,17 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2672
2672
  const H = F[z.key];
2673
2673
  return H ? Array.isArray(H) ? H.join(", ").toLowerCase().includes(D) : String(H).toLowerCase().includes(D) : !1;
2674
2674
  }));
2675
- }), r = w(null), u = w(null), c = w(!1), f = w(null), p = w({ top: 0, left: 0 }), v = (D) => {
2675
+ }), r = w(null), d = w(null), c = w(!1), f = w(null), p = w({ top: 0, left: 0 }), v = (D) => {
2676
2676
  r.value = D;
2677
2677
  }, k = (D) => {
2678
- u.value = D;
2678
+ d.value = D;
2679
2679
  }, m = (D) => {
2680
2680
  if (r.value === null || r.value === D) {
2681
- r.value = null, u.value = null;
2681
+ r.value = null, d.value = null;
2682
2682
  return;
2683
2683
  }
2684
2684
  const F = [...t.value], [z] = F.splice(r.value, 1);
2685
- F.splice(D, 0, z), t.value = F, r.value = null, u.value = null;
2685
+ F.splice(D, 0, z), t.value = F, r.value = null, d.value = null;
2686
2686
  }, I = (D) => {
2687
2687
  const z = D.currentTarget.getBoundingClientRect();
2688
2688
  p.value = { top: z.bottom + window.scrollY, left: z.left + window.scrollX }, c.value = !c.value;
@@ -2745,7 +2745,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2745
2745
  function Z() {
2746
2746
  h.value = !1;
2747
2747
  }
2748
- return (D, F) => (i(), d("div", rs, [
2748
+ return (D, F) => (i(), u("div", rs, [
2749
2749
  l("div", is, [
2750
2750
  l("div", us, [
2751
2751
  R(Fa, {
@@ -2788,7 +2788,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2788
2788
  ])
2789
2789
  ]),
2790
2790
  (i(), me(It, { to: "body" }, [
2791
- c.value ? (i(), d("div", {
2791
+ c.value ? (i(), u("div", {
2792
2792
  key: 0,
2793
2793
  class: "text-slate-700 vsTailwind vs-popover__content bottom",
2794
2794
  style: be([{ width: "fit-content", "z-index": "10002", position: "fixed" }, { position: "absolute", top: p.value.top + "px", left: p.value.left + "px" }])
@@ -2804,7 +2804,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2804
2804
  width: "14",
2805
2805
  height: "14"
2806
2806
  }),
2807
- F[4] || (F[4] = ge(" Імпортувати ", -1))
2807
+ F[4] || (F[4] = ge(" Імпортувати "))
2808
2808
  ]),
2809
2809
  l("button", {
2810
2810
  onClick: O,
@@ -2816,7 +2816,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2816
2816
  width: "14",
2817
2817
  height: "14"
2818
2818
  }),
2819
- F[5] || (F[5] = ge(" Експортувати ", -1))
2819
+ F[5] || (F[5] = ge(" Експортувати "))
2820
2820
  ])
2821
2821
  ])
2822
2822
  ])
@@ -2828,7 +2828,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2828
2828
  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"
2829
2829
  }, [
2830
2830
  R(qe),
2831
- F[6] || (F[6] = ge(" Додати ", -1))
2831
+ F[6] || (F[6] = ge(" Додати "))
2832
2832
  ])
2833
2833
  ]),
2834
2834
  l("div", gs, [
@@ -2842,7 +2842,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2842
2842
  class: "w-4 h-4 mx-auto text-slate-400 dark:text-slate-500"
2843
2843
  })
2844
2844
  ]),
2845
- (i(!0), d(re, null, fe(D.colModel, (z) => (i(), d("th", {
2845
+ (i(!0), u(re, null, fe(D.colModel, (z) => (i(), u("th", {
2846
2846
  key: z.key,
2847
2847
  class: "h-10 px-2 text-left align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] font-semibold text-slate-700 dark:text-slate-300 min-w-[150px]"
2848
2848
  }, W(z.ua || z.label), 1))), 128)),
@@ -2850,9 +2850,9 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2850
2850
  ])
2851
2851
  ]),
2852
2852
  l("tbody", {
2853
- class: T({ "[&_tr:last-child]:border-0": !u.value })
2853
+ class: T({ "[&_tr:last-child]:border-0": !d.value })
2854
2854
  }, [
2855
- a.value.length === 0 ? (i(), d("td", ks, [
2855
+ a.value.length === 0 ? (i(), u("td", ks, [
2856
2856
  l("div", _s, [
2857
2857
  l("div", $s, [
2858
2858
  R(ls, { class: "w-48 mx-auto" }),
@@ -2863,11 +2863,11 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2863
2863
  ])
2864
2864
  ])
2865
2865
  ])) : U("", !0),
2866
- (i(!0), d(re, null, fe(a.value, (z, H) => (i(), d("tr", {
2866
+ (i(!0), u(re, null, fe(a.value, (z, H) => (i(), u("tr", {
2867
2867
  key: z.id,
2868
2868
  class: T(["border-b data-[state=selected]:bg-muted transition-all duration-200 hover:bg-slate-50/60 dark:hover:bg-slate-700/60 cursor-move", {
2869
2869
  "opacity-50": r.value === H,
2870
- "border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": u.value === H
2870
+ "border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": d.value === H
2871
2871
  }]),
2872
2872
  draggable: "true",
2873
2873
  onDragstart: (le) => v(H),
@@ -2883,26 +2883,26 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2883
2883
  })
2884
2884
  ])
2885
2885
  ]),
2886
- (i(!0), d(re, null, fe(D.colModel, (le) => (i(), d("td", {
2886
+ (i(!0), u(re, null, fe(D.colModel, (le) => (i(), u("td", {
2887
2887
  key: le.key,
2888
2888
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
2889
2889
  }, [
2890
- le.type === "file" ? (i(), d("div", Ls, [
2891
- A(Q(z, le)) ? (i(), d("div", Ss, [
2890
+ le.type === "file" ? (i(), u("div", Ls, [
2891
+ A(Q(z, le)) ? (i(), u("div", Ss, [
2892
2892
  l("img", {
2893
2893
  src: Q(z, le),
2894
2894
  alt: "alt",
2895
2895
  width: "45",
2896
2896
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
2897
2897
  }, null, 8, Bs)
2898
- ])) : (i(), d("div", js, [
2898
+ ])) : (i(), u("div", js, [
2899
2899
  R(Tt, { class: "w-[25px] min-w-[25px] h-[25px]" })
2900
2900
  ]))
2901
- ])) : le.type === "tiptap-editor" ? (i(), d("div", {
2901
+ ])) : le.type === "tiptap-editor" ? (i(), u("div", {
2902
2902
  key: 1,
2903
2903
  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",
2904
2904
  innerHTML: Q(z, le)
2905
- }, null, 8, Es)) : (i(), d("div", Is, W(Q(z, le)), 1))
2905
+ }, null, 8, Es)) : (i(), u("div", Is, W(Q(z, le)), 1))
2906
2906
  ]))), 128)),
2907
2907
  l("td", zs, [
2908
2908
  l("div", As, [
@@ -2920,7 +2920,7 @@ const ss = /* @__PURE__ */ Y(os, [["render", as]]), rs = { class: "vs-datatable
2920
2920
  onClick: (le) => X(H),
2921
2921
  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"
2922
2922
  }, [
2923
- R(tt, {
2923
+ R(et, {
2924
2924
  width: "24",
2925
2925
  height: "24",
2926
2926
  class: "w-3 h-3"
@@ -3109,7 +3109,7 @@ const Ps = {}, Hs = {
3109
3109
  class: "icon icon-tabler icons-tabler-outline icon-tabler-map-pin"
3110
3110
  };
3111
3111
  function Ns(o, e) {
3112
- return i(), d("svg", Hs, e[0] || (e[0] = [
3112
+ return i(), u("svg", Hs, e[0] || (e[0] = [
3113
3113
  l("path", {
3114
3114
  stroke: "none",
3115
3115
  d: "M0 0h24v24H0z",
@@ -3130,7 +3130,7 @@ const Gs = /* @__PURE__ */ Y(Ps, [["render", Ns]]), qs = {}, Ks = {
3130
3130
  class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
3131
3131
  };
3132
3132
  function Ws(o, e) {
3133
- return i(), d("svg", Ks, e[0] || (e[0] = [
3133
+ return i(), u("svg", Ks, e[0] || (e[0] = [
3134
3134
  l("path", {
3135
3135
  stroke: "none",
3136
3136
  d: "M0 0h24v24H0z",
@@ -3152,7 +3152,7 @@ const Zs = /* @__PURE__ */ Y(qs, [["render", Ws]]), Js = {}, Ys = {
3152
3152
  class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
3153
3153
  };
3154
3154
  function Xs(o, e) {
3155
- return i(), d("svg", Ys, e[0] || (e[0] = [
3155
+ return i(), u("svg", Ys, e[0] || (e[0] = [
3156
3156
  xe('<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)
3157
3157
  ]));
3158
3158
  }
@@ -3167,7 +3167,7 @@ const Qs = /* @__PURE__ */ Y(Js, [["render", Xs]]), er = {}, tr = {
3167
3167
  class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
3168
3168
  };
3169
3169
  function lr(o, e) {
3170
- return i(), d("svg", tr, e[0] || (e[0] = [
3170
+ return i(), u("svg", tr, e[0] || (e[0] = [
3171
3171
  xe('<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)
3172
3172
  ]));
3173
3173
  }
@@ -3180,7 +3180,7 @@ const or = /* @__PURE__ */ Y(er, [["render", lr]]), nr = {}, ar = {
3180
3180
  class: "fullscreen-icon"
3181
3181
  };
3182
3182
  function sr(o, e) {
3183
- return i(), d("svg", ar, e[0] || (e[0] = [
3183
+ return i(), u("svg", ar, e[0] || (e[0] = [
3184
3184
  l("title", null, null, -1),
3185
3185
  l("desc", null, null, -1),
3186
3186
  l("defs", null, null, -1),
@@ -3222,16 +3222,16 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3222
3222
  const t = o, s = e, n = ["here", "xy", "parcel"], a = S(() => {
3223
3223
  const h = t.config?.tools?.filter((x) => n.includes(x));
3224
3224
  return h && h.length ? h : n;
3225
- }), r = S(() => t.config?.placeholder?.trim() || "Пошук…"), u = w(a.value[0] ?? n[0]);
3225
+ }), r = S(() => t.config?.placeholder?.trim() || "Пошук…"), d = w(a.value[0] ?? n[0]);
3226
3226
  ue(a, (h) => {
3227
- h.includes(u.value) || (u.value = h[0]);
3227
+ h.includes(d.value) || (d.value = h[0]);
3228
3228
  });
3229
3229
  const c = w(""), f = w(!1), p = w(null);
3230
- ue(u, () => {
3230
+ ue(d, () => {
3231
3231
  c.value = "", f.value = !1;
3232
3232
  });
3233
3233
  function v(h) {
3234
- u.value = h;
3234
+ d.value = h;
3235
3235
  }
3236
3236
  function k(h) {
3237
3237
  if (!f.value) return;
@@ -3240,7 +3240,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3240
3240
  }
3241
3241
  ye(() => {
3242
3242
  window.addEventListener("click", k, !0);
3243
- }), it(() => {
3243
+ }), rt(() => {
3244
3244
  window.removeEventListener("click", k, !0);
3245
3245
  });
3246
3246
  function m(h) {
@@ -3297,7 +3297,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3297
3297
  async function C() {
3298
3298
  const h = c.value.trim();
3299
3299
  if (h) {
3300
- if (u.value === "xy") {
3300
+ if (d.value === "xy") {
3301
3301
  const x = I(h);
3302
3302
  if (!x) {
3303
3303
  ce({ type: "warning", title: "Пошук координат", message: "Не знайдено або невірний формат координат" });
@@ -3307,8 +3307,8 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3307
3307
  return;
3308
3308
  }
3309
3309
  try {
3310
- const x = new URL(u.value === "here" ? fr : vr);
3311
- if (u.value === "here")
3310
+ const x = new URL(d.value === "here" ? fr : vr);
3311
+ if (d.value === "here")
3312
3312
  x.searchParams.set("searchtext", h);
3313
3313
  else {
3314
3314
  if (!E(h)) {
@@ -3319,7 +3319,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3319
3319
  }
3320
3320
  const B = await fetch(x.toString());
3321
3321
  if (!B.ok) throw new Error(`HTTP ${B.status}`);
3322
- const V = await B.json(), P = u.value === "here" ? $(V) : A(V);
3322
+ const V = await B.json(), P = d.value === "here" ? $(V) : A(V);
3323
3323
  if (!P.length)
3324
3324
  ce({ type: "warning", title: "Пошук", message: "Не знайдено результатів" });
3325
3325
  else {
@@ -3332,12 +3332,12 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3332
3332
  }
3333
3333
  }
3334
3334
  }
3335
- return (h, x) => (i(), d("div", ir, [
3335
+ return (h, x) => (i(), u("div", ir, [
3336
3336
  l("form", {
3337
3337
  class: "flex gap-2",
3338
3338
  onSubmit: $e(C, ["prevent"])
3339
3339
  }, [
3340
- a.value.length > 1 ? (i(), d("div", {
3340
+ a.value.length > 1 ? (i(), u("div", {
3341
3341
  key: 0,
3342
3342
  ref_key: "dropdownRef",
3343
3343
  ref: p,
@@ -3348,8 +3348,8 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3348
3348
  class: "vstSelect-input transition-all text-left bg-white border border-gray-200 text-gray-900 rounded-lg focus:ring-blue-500 focus:border-blue-100 block w-full py-1.5 px-3 text-sm cursor-pointer flex items-center justify-between gap-2",
3349
3349
  onClick: x[0] || (x[0] = (B) => f.value = !f.value)
3350
3350
  }, [
3351
- l("span", null, W(m(u.value)), 1),
3352
- (i(), d("svg", {
3351
+ l("span", null, W(m(d.value)), 1),
3352
+ (i(), u("svg", {
3353
3353
  class: T(["w-4 h-4 text-gray-500 transition-transform", { "rotate-180": f.value }]),
3354
3354
  viewBox: "0 0 24 24",
3355
3355
  fill: "none",
@@ -3364,9 +3364,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3364
3364
  }, null, -1)
3365
3365
  ]), 2))
3366
3366
  ]),
3367
- f.value ? (i(), d("div", ur, [
3367
+ f.value ? (i(), u("div", ur, [
3368
3368
  l("ul", null, [
3369
- (i(!0), d(re, null, fe(a.value, (B) => (i(), d("li", {
3369
+ (i(!0), u(re, null, fe(a.value, (B) => (i(), u("li", {
3370
3370
  key: B,
3371
3371
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100",
3372
3372
  onClick: (V) => v(B)
@@ -3423,9 +3423,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3423
3423
  function a(r) {
3424
3424
  n("onLayerChange", r), s.value = r;
3425
3425
  }
3426
- return (r, u) => (i(), d("div", gr, [
3426
+ return (r, d) => (i(), u("div", gr, [
3427
3427
  l("div", br, [
3428
- (i(!0), d(re, null, fe(r.basemaps, (c, f) => (i(), d("div", {
3428
+ (i(!0), u(re, null, fe(r.basemaps, (c, f) => (i(), u("div", {
3429
3429
  key: f,
3430
3430
  class: T(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": s.value === f }]),
3431
3431
  onClick: (p) => a(f),
@@ -3470,7 +3470,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3470
3470
  },
3471
3471
  emits: ["update:modelValue"],
3472
3472
  setup(o, { emit: e }) {
3473
- const t = Wt(), s = o, n = e, a = S(() => s.geomType ? s.geomType.map((b) => b.toLowerCase()).filter((b) => ["marker", "polyline", "polygon", "rectangle"].includes(b)) : ["marker", "polyline", "polygon", "rectangle"]), r = w(!1), u = w("");
3473
+ const t = Wt(), s = o, n = e, a = S(() => s.geomType ? s.geomType.map((b) => b.toLowerCase()).filter((b) => ["marker", "polyline", "polygon", "rectangle"].includes(b)) : ["marker", "polyline", "polygon", "rectangle"]), r = w(!1), d = w("");
3474
3474
  function c() {
3475
3475
  const b = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
3476
3476
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "Використовуйте два пальці для зуму карти." : "Використовуйте Ctrl + прокрутка для зуму карти.";
@@ -3486,7 +3486,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3486
3486
  const M = (N) => {
3487
3487
  const ae = N.ctrlKey || N.metaKey, oe = N.shiftKey;
3488
3488
  if (!ae && !oe) {
3489
- r.value = !0, u.value = c(), clearTimeout(b), b = window.setTimeout(() => {
3489
+ r.value = !0, d.value = c(), clearTimeout(b), b = window.setTimeout(() => {
3490
3490
  r.value = !1;
3491
3491
  }, 1e3);
3492
3492
  return;
@@ -3496,7 +3496,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3496
3496
  }, 100);
3497
3497
  }, J = (N) => {
3498
3498
  if (N.touches.length === 1) {
3499
- r.value = !0, u.value = c(), clearTimeout(b), b = window.setTimeout(() => {
3499
+ r.value = !0, d.value = c(), clearTimeout(b), b = window.setTimeout(() => {
3500
3500
  r.value = !1;
3501
3501
  }, 3e3);
3502
3502
  return;
@@ -3686,7 +3686,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3686
3686
  }
3687
3687
  }, N.readAsText(J);
3688
3688
  }
3689
- function lt(b) {
3689
+ function tt(b) {
3690
3690
  p && (V && p.removeLayer(V), V = L.tileLayer(B[b].url, { maxZoom: 19, minZoom: 6 }).addTo(p), P.value = b);
3691
3691
  }
3692
3692
  function De(b) {
@@ -3730,7 +3730,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3730
3730
  setTimeout(() => {
3731
3731
  p.invalidateSize();
3732
3732
  }, 50);
3733
- }), (b, M) => (i(), d("div", {
3733
+ }), (b, M) => (i(), u("div", {
3734
3734
  class: T(["leaflet-map-wrapper relative w-full h-[400px]", { fullscreen: Te.value }])
3735
3735
  }, [
3736
3736
  l("div", {
@@ -3748,9 +3748,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3748
3748
  "leave-to-class": "opacity-0"
3749
3749
  }, {
3750
3750
  default: Ee(() => [
3751
- r.value && s.handleZoom ? (i(), d("div", kr, [
3751
+ r.value && s.handleZoom ? (i(), u("div", kr, [
3752
3752
  l("div", _r, [
3753
- l("p", $r, W(u.value), 1)
3753
+ l("p", $r, W(d.value), 1)
3754
3754
  ])
3755
3755
  ])) : U("", !0)
3756
3756
  ]),
@@ -3784,7 +3784,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3784
3784
  ]),
3785
3785
  l("div", Sr, [
3786
3786
  l("div", Br, [
3787
- a.value.includes("marker") ? (i(), d("button", {
3787
+ a.value.includes("marker") ? (i(), u("button", {
3788
3788
  key: 0,
3789
3789
  class: T(["vs-btn", { "vs-active": Z.value === "marker" }]),
3790
3790
  "aria-pressed": Z.value === "marker",
@@ -3794,7 +3794,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3794
3794
  }, [
3795
3795
  R(Gs)
3796
3796
  ], 10, jr)) : U("", !0),
3797
- a.value.includes("polyline") ? (i(), d("button", {
3797
+ a.value.includes("polyline") ? (i(), u("button", {
3798
3798
  key: 1,
3799
3799
  class: T(["vs-btn", { "vs-active": Z.value === "polyline" }]),
3800
3800
  "aria-pressed": Z.value === "polyline",
@@ -3804,7 +3804,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3804
3804
  }, [
3805
3805
  R(Zs)
3806
3806
  ], 10, Er)) : U("", !0),
3807
- a.value.includes("polygon") ? (i(), d("button", {
3807
+ a.value.includes("polygon") ? (i(), u("button", {
3808
3808
  key: 2,
3809
3809
  class: T(["vs-btn", { "vs-active": Z.value === "polygon" }]),
3810
3810
  "aria-pressed": Z.value === "polygon",
@@ -3814,7 +3814,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3814
3814
  }, [
3815
3815
  R(Qs)
3816
3816
  ], 10, Ir)) : U("", !0),
3817
- a.value.includes("rectangle") ? (i(), d("button", {
3817
+ a.value.includes("rectangle") ? (i(), u("button", {
3818
3818
  key: 3,
3819
3819
  class: T(["vs-btn", { "vs-active": Z.value === "rectangle" }]),
3820
3820
  "aria-pressed": Z.value === "rectangle",
@@ -3841,25 +3841,25 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3841
3841
  }, [
3842
3842
  R(wr, {
3843
3843
  basemaps: te(B),
3844
- onOnLayerChange: lt
3844
+ onOnLayerChange: tt
3845
3845
  }, null, 8, ["basemaps"])
3846
3846
  ], 2),
3847
3847
  l("div", Ar, [
3848
- x.value ? (i(), d("div", Tr, [
3848
+ x.value ? (i(), u("div", Tr, [
3849
3849
  l("div", Fr, [
3850
- M[7] || (M[7] = ge(" Тип: ", -1)),
3850
+ M[7] || (M[7] = ge(" Тип: ")),
3851
3851
  l("span", Or, W(x.value.type), 1)
3852
3852
  ]),
3853
3853
  l("div", Ur, [
3854
3854
  l("div", Dr, [
3855
- M[8] || (M[8] = ge(" Центр: ", -1)),
3855
+ M[8] || (M[8] = ge(" Центр: ")),
3856
3856
  l("b", null, W(x.value.center.lat.toFixed(5)) + ", " + W(x.value.center.lng.toFixed(5)), 1)
3857
3857
  ]),
3858
- x.value.areaKm2 !== null ? (i(), d("div", Rr, [
3859
- M[9] || (M[9] = ge(" Площа: ", -1)),
3858
+ x.value.areaKm2 !== null ? (i(), u("div", Rr, [
3859
+ M[9] || (M[9] = ge(" Площа: ")),
3860
3860
  l("b", null, W(x.value.areaKm2.toFixed(1)) + "км²", 1)
3861
- ])) : (i(), d("div", Pr, M[10] || (M[10] = [
3862
- ge(" Площа: ", -1),
3861
+ ])) : (i(), u("div", Pr, M[10] || (M[10] = [
3862
+ ge(" Площа: "),
3863
3863
  l("b", null, "—", -1)
3864
3864
  ]))),
3865
3865
  l("button", {
@@ -3874,7 +3874,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3874
3874
  title: "Видалити",
3875
3875
  onClick: M[6] || (M[6] = (J) => pe())
3876
3876
  }, [
3877
- R(tt, { class: "w-3 h-3" })
3877
+ R(et, { class: "w-3 h-3" })
3878
3878
  ])
3879
3879
  ])
3880
3880
  ])) : U("", !0)
@@ -3903,7 +3903,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3903
3903
  setup(o, { emit: e }) {
3904
3904
  const t = o, s = e;
3905
3905
  Ce(t.style);
3906
- const n = w(null), a = w(null), r = w(null), u = w(!1), c = w(""), f = de(o, "modelValue"), p = S(() => t.placeholder || "Add tag…"), v = S(() => f.value?.length === 0 && c.value === ""), k = S(() => !t.disabled && f.value?.length > 0), m = S(() => t.disabled), I = async () => {
3906
+ const n = w(null), a = w(null), r = w(null), d = w(!1), c = w(""), f = de(o, "modelValue"), p = S(() => t.placeholder || "Add tag…"), v = S(() => f.value?.length === 0 && c.value === ""), k = S(() => !t.disabled && f.value?.length > 0), m = S(() => t.disabled), I = async () => {
3907
3907
  m.value || await je(() => r.value?.focus());
3908
3908
  }, $ = (B) => {
3909
3909
  const V = B.trim();
@@ -3917,14 +3917,14 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3917
3917
  }, O = () => {
3918
3918
  s("update:modelValue", []);
3919
3919
  }, C = () => {
3920
- m.value || (u.value = !0);
3920
+ m.value || (d.value = !0);
3921
3921
  }, h = () => {
3922
- u.value = !1, !m.value && A();
3922
+ d.value = !1, !m.value && A();
3923
3923
  }, x = (B) => {
3924
3924
  const { key: V } = B;
3925
3925
  V === "Enter" ? (B.preventDefault(), A()) : V === "Backspace" && c.value === "" && f.value.length > 0 && E(f.value.length - 1);
3926
3926
  };
3927
- return (B, V) => (i(), d("div", {
3927
+ return (B, V) => (i(), u("div", {
3928
3928
  class: "flex gap-1 w-full",
3929
3929
  ref_key: "root",
3930
3930
  ref: n,
@@ -3940,10 +3940,10 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3940
3940
  class: T([
3941
3941
  "flex min-h-[38px] items-center justify-between rounded border transition-colors bg-white",
3942
3942
  "border-gray-300 hover:border-gray-400",
3943
- u.value ? "border-blue-500 ring-1 ring-blue-500" : "",
3943
+ d.value ? "border-blue-500 ring-1 ring-blue-500" : "",
3944
3944
  m.value ? "bg-gray-100 text-gray-400 cursor-not-allowed hover:border-gray-300" : ""
3945
3945
  ]),
3946
- "data-focus": u.value ? "true" : "false",
3946
+ "data-focus": d.value ? "true" : "false",
3947
3947
  onClick: I
3948
3948
  }, [
3949
3949
  l("div", {
@@ -3951,7 +3951,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3951
3951
  ref_key: "chipsRef",
3952
3952
  ref: a
3953
3953
  }, [
3954
- (i(!0), d(re, null, fe(f.value, (P, ee) => (i(), d("div", {
3954
+ (i(!0), u(re, null, fe(f.value, (P, ee) => (i(), u("div", {
3955
3955
  key: ee,
3956
3956
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
3957
3957
  }, [
@@ -3976,9 +3976,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
3976
3976
  ], -1)
3977
3977
  ]), 8, Wr)
3978
3978
  ]))), 128)),
3979
- v.value ? (i(), d("div", Zr, W(p.value), 1)) : U("", !0),
3979
+ v.value ? (i(), u("div", Zr, W(p.value), 1)) : U("", !0),
3980
3980
  l("div", Jr, [
3981
- m.value ? U("", !0) : ne((i(), d("input", {
3981
+ m.value ? U("", !0) : ne((i(), u("input", {
3982
3982
  key: 0,
3983
3983
  ref_key: "inputRef",
3984
3984
  ref: r,
@@ -4001,7 +4001,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4001
4001
  ])
4002
4002
  ], 512),
4003
4003
  l("div", Xr, [
4004
- k.value ? (i(), d("button", {
4004
+ k.value ? (i(), u("button", {
4005
4005
  key: 0,
4006
4006
  type: "button",
4007
4007
  class: "px-2 text-gray-400 hover:text-gray-500 transition-colors disabled:opacity-50",
@@ -4037,7 +4037,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4037
4037
  setup(o) {
4038
4038
  const e = Ae("values"), t = o, s = de(o, "modelValue");
4039
4039
  function n(r) {
4040
- const u = {
4040
+ const d = {
4041
4041
  а: "a",
4042
4042
  б: "b",
4043
4043
  в: "v",
@@ -4076,18 +4076,18 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4076
4076
  ї: "yi",
4077
4077
  ґ: "g"
4078
4078
  };
4079
- return r.toLowerCase().split("").map((c) => u[c] || c).join("").replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
4079
+ return r.toLowerCase().split("").map((c) => d[c] || c).join("").replace(/[^a-z0-9\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
4080
4080
  }
4081
4081
  const a = () => {
4082
- const r = e?.value?.[t.parent || ""]?.toString(), u = n(r);
4083
- s.value = u.toString();
4082
+ const r = e?.value?.[t.parent || ""]?.toString(), d = n(r);
4083
+ s.value = d.toString();
4084
4084
  };
4085
- return (r, u) => (i(), d("div", ti, [
4085
+ return (r, d) => (i(), u("div", ti, [
4086
4086
  ne(l("input", {
4087
4087
  ref: "vsText",
4088
4088
  disabled: r.disabled,
4089
4089
  placeholder: r.placeholder,
4090
- "onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c),
4090
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => s.value = c),
4091
4091
  class: "block w-full px-3 py-2 text-sm border border-solid rounded-lg placeholder:text-nowrap border-stone-200 text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
4092
4092
  }, null, 8, li), [
4093
4093
  [he, s.value]
@@ -4123,7 +4123,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4123
4123
  if (!a.value) return "";
4124
4124
  const f = encodeURIComponent(String(e.table)), p = encodeURIComponent(String(e.code));
4125
4125
  return `/api/code-gen/${f}/${p}`;
4126
- }, u = async () => {
4126
+ }, d = async () => {
4127
4127
  if (!a.value || s.value) return;
4128
4128
  const f = r();
4129
4129
  if (f) {
@@ -4136,7 +4136,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4136
4136
  }
4137
4137
  }
4138
4138
  }, c = () => {
4139
- n.value && (t.value || u());
4139
+ n.value && (t.value || d());
4140
4140
  };
4141
4141
  return ye(() => {
4142
4142
  c();
@@ -4145,7 +4145,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4145
4145
  () => {
4146
4146
  c();
4147
4147
  }
4148
- ), (f, p) => (i(), d("div", ai, [
4148
+ ), (f, p) => (i(), u("div", ai, [
4149
4149
  ne(l("input", {
4150
4150
  disabled: f.disabled,
4151
4151
  placeholder: f.placeholder,
@@ -4157,9 +4157,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4157
4157
  l("button", {
4158
4158
  class: "px-2 bg-gray-100 border rounded-lg hover:bg-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",
4159
4159
  disabled: s.value || f.disabled || !a.value,
4160
- onClick: u
4160
+ onClick: d
4161
4161
  }, [
4162
- s.value ? (i(), d("span", ui, "...")) : (i(), d("span", ii, "Gen"))
4162
+ s.value ? (i(), u("span", ui, "...")) : (i(), u("span", ii, "Gen"))
4163
4163
  ], 8, ri)
4164
4164
  ]));
4165
4165
  }
@@ -4179,10 +4179,10 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4179
4179
  },
4180
4180
  emits: ["update:modelValue"],
4181
4181
  setup(o, { emit: e }) {
4182
- const t = (A) => `${A}-${Math.random().toString(36).substring(2, 15)}`, s = Ae("values"), n = o, a = e, r = n.addButtonText ?? "Додати", u = n.ignore ?? [], c = w([]), f = w(null);
4182
+ const t = (A) => `${A}-${Math.random().toString(36).substring(2, 15)}`, s = Ae("values"), n = o, a = e, r = n.addButtonText ?? "Додати", d = n.ignore ?? [], c = w([]), f = w(null);
4183
4183
  (() => {
4184
4184
  const A = n.parent && s?.value?.[n.parent] || n.modelValue || {};
4185
- c.value = Object.entries(A).filter(([E]) => !u.includes(E)).map(([E, O]) => ({
4185
+ c.value = Object.entries(A).filter(([E]) => !d.includes(E)).map(([E, O]) => ({
4186
4186
  id: t("key-value-"),
4187
4187
  key: E,
4188
4188
  value: O
@@ -4211,7 +4211,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4211
4211
  C.key && C.value !== void 0 && (E[C.key] = C.value);
4212
4212
  });
4213
4213
  const O = {};
4214
- u.length && u.forEach((C) => {
4214
+ d.length && d.forEach((C) => {
4215
4215
  O[C] = n.parent ? s?.value?.[n.parent]?.[C] : void 0;
4216
4216
  }), s?.value && n.parent && (s.value[n.parent] = {
4217
4217
  ...O,
@@ -4219,9 +4219,9 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4219
4219
  }), a("update:modelValue", E);
4220
4220
  },
4221
4221
  { deep: !0 }
4222
- ), (A, E) => (i(), d("div", pi, [
4222
+ ), (A, E) => (i(), u("div", pi, [
4223
4223
  l("div", fi, [
4224
- (i(!0), d(re, null, fe(c.value, (O, C) => (i(), d("div", {
4224
+ (i(!0), u(re, null, fe(c.value, (O, C) => (i(), u("div", {
4225
4225
  key: O.id,
4226
4226
  class: T(["flex items-center gap-2 w-full", { "opacity-50": f.value === C }]),
4227
4227
  draggable: "true",
@@ -4256,7 +4256,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4256
4256
  ], 8, gi)
4257
4257
  ], 42, vi))), 128))
4258
4258
  ], 512),
4259
- c.value.length ? U("", !0) : (i(), d("span", bi, " Дані для відображення відсутні ")),
4259
+ c.value.length ? U("", !0) : (i(), u("span", bi, " Дані для відображення відсутні ")),
4260
4260
  l("div", yi, [
4261
4261
  l("button", {
4262
4262
  type: "button",
@@ -4290,10 +4290,10 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4290
4290
  get: () => t.modelValue || "#000000",
4291
4291
  set: (r) => n("update:modelValue", r)
4292
4292
  });
4293
- return (r, u) => (i(), d("div", _i, [
4293
+ return (r, d) => (i(), u("div", _i, [
4294
4294
  ne(l("input", {
4295
4295
  type: "color",
4296
- "onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
4296
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => a.value = c),
4297
4297
  disabled: r.disabled,
4298
4298
  ref: "color",
4299
4299
  class: T(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [r.modelValue ? "" : "text-opacity-50", te(s)].join(" ")]),
@@ -4303,7 +4303,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4303
4303
  ]),
4304
4304
  ne(l("input", {
4305
4305
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
4306
- "onUpdate:modelValue": u[1] || (u[1] = (c) => a.value = c)
4306
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => a.value = c)
4307
4307
  }, null, 512), [
4308
4308
  [he, a.value]
4309
4309
  ])
@@ -4329,10 +4329,10 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4329
4329
  get: () => Number(t.modelValue ?? t.min),
4330
4330
  set: (r) => n("update:modelValue", Number(r))
4331
4331
  });
4332
- return (r, u) => (i(), d("div", Vi, [
4332
+ return (r, d) => (i(), u("div", Vi, [
4333
4333
  ne(l("input", {
4334
4334
  type: "range",
4335
- "onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
4335
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => a.value = c),
4336
4336
  min: r.min,
4337
4337
  max: r.max,
4338
4338
  step: r.step,
@@ -4345,7 +4345,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4345
4345
  ne(l("input", {
4346
4346
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2 max-w-[100px]",
4347
4347
  type: "number",
4348
- "onUpdate:modelValue": u[1] || (u[1] = (c) => a.value = c)
4348
+ "onUpdate:modelValue": d[1] || (d[1] = (c) => a.value = c)
4349
4349
  }, null, 512), [
4350
4350
  [he, a.value]
4351
4351
  ])
@@ -4379,16 +4379,16 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4379
4379
  ]);
4380
4380
  });
4381
4381
  function n(a, r) {
4382
- const u = a.target.value, c = [...s.value];
4383
- c[r] = e.inputType === "text" ? u : Number(u), s.value = c;
4382
+ const d = a.target.value, c = [...s.value];
4383
+ c[r] = e.inputType === "text" ? d : Number(d), s.value = c;
4384
4384
  }
4385
- return (a, r) => (i(), d("div", {
4385
+ return (a, r) => (i(), u("div", {
4386
4386
  class: T(["grid gap-2", `grid-cols-${a.limit}`])
4387
4387
  }, [
4388
- (i(!0), d(re, null, fe(a.count, (u) => (i(), d("input", {
4388
+ (i(!0), u(re, null, fe(a.count, (d) => (i(), u("input", {
4389
4389
  type: a.inputType,
4390
- value: s.value?.[u - 1] ?? "",
4391
- onInput: (c) => n(c, u - 1),
4390
+ value: s.value?.[d - 1] ?? "",
4391
+ onInput: (c) => n(c, d - 1),
4392
4392
  placeholder: a.placeholder,
4393
4393
  disabled: a.disabled,
4394
4394
  class: T(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [te(t), { "!border-red-600": a.error }]]),
@@ -4448,13 +4448,13 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4448
4448
  }
4449
4449
  const r = await a.json();
4450
4450
  if (!e.set || !t) return;
4451
- for (const [u, c] of Object.entries(e.set))
4452
- t.value[u] = r.result[c];
4451
+ for (const [d, c] of Object.entries(e.set))
4452
+ t.value[d] = r.result[c];
4453
4453
  } catch (n) {
4454
4454
  console.error(e.error, n);
4455
4455
  }
4456
4456
  }
4457
- return (n, a) => (i(), d("button", {
4457
+ return (n, a) => (i(), u("button", {
4458
4458
  onClick: s,
4459
4459
  class: "vs-button relative inline-flex border-solid justify-center items-center gap-2 rounded-md font-semibold focus:outline-none text-sm transition-all border !border-gray-200 hover:text-white bg-white text-blue-500 hover:border-blue-500 hover:bg-blue-500 focus:ring-blue-500 py-1.5 px-5 focus:ring-1 focus:ring-offset-1 ml-0 md:ml-2 mt-2 md:mt-0 py-[8px] md:w-2/4 whitespace-nowrap w-full"
4460
4460
  }, W(n.button), 1));
@@ -4478,20 +4478,20 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4478
4478
  emits: ["update:modelValue"],
4479
4479
  setup(o) {
4480
4480
  const e = o, t = de(o, "modelValue"), s = S(() => yl[`${e.layout}`]), n = S(() => ji?.[`vs-input-${e.item.type}`]), a = S(() => {
4481
- const u = te(n);
4482
- if (!u) return /* @__PURE__ */ new Set();
4483
- const c = u.props ?? u.__vccOpts?.props;
4481
+ const d = te(n);
4482
+ if (!d) return /* @__PURE__ */ new Set();
4483
+ const c = d.props ?? d.__vccOpts?.props;
4484
4484
  if (!c) return /* @__PURE__ */ new Set();
4485
4485
  const f = Array.isArray(c) ? c : Object.keys(c);
4486
4486
  return new Set(f);
4487
4487
  }), r = S(() => {
4488
- const u = e.item ?? {}, c = a.value;
4489
- return c.size ? Object.fromEntries(Object.entries(u).filter(([f]) => c.has(f))) : {};
4488
+ const d = e.item ?? {}, c = a.value;
4489
+ return c.size ? Object.fromEntries(Object.entries(d).filter(([f]) => c.has(f))) : {};
4490
4490
  });
4491
- return (u, c) => ne((i(), me(Oe(s.value), {
4491
+ return (d, c) => (i(), me(Oe(s.value), {
4492
4492
  ua: e.item.ua,
4493
4493
  error: e.error || "",
4494
- item: u.item,
4494
+ item: d.item,
4495
4495
  columns: e.columns,
4496
4496
  label: e.item.label
4497
4497
  }, {
@@ -4504,15 +4504,13 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4504
4504
  modelValue: t.value,
4505
4505
  "onUpdate:modelValue": c[0] || (c[0] = (f) => t.value = f)
4506
4506
  }), null, 16, ["modelValue"])),
4507
- u.item.description && e.layout !== "settings" ? (i(), d("p", zi, W(u.item.description), 1)) : U("", !0)
4507
+ d.item.description && e.layout !== "settings" ? (i(), u("p", zi, W(d.item.description), 1)) : U("", !0)
4508
4508
  ]),
4509
- u.item.behavior?.api && u.item.behavior?.button ? (i(), me(Ei, Fe({ key: 0 }, u.item.behavior, { value: t.value }), null, 16, ["value"])) : U("", !0)
4509
+ d.item.behavior?.api && d.item.behavior?.button ? (i(), me(Ei, Fe({ key: 0 }, d.item.behavior, { value: t.value }), null, 16, ["value"])) : U("", !0)
4510
4510
  ], 2)
4511
4511
  ]),
4512
4512
  _: 1
4513
- }, 8, ["ua", "error", "item", "columns", "label"])), [
4514
- [et, !u.item.hidden]
4515
- ]);
4513
+ }, 8, ["ua", "error", "item", "columns", "label"]));
4516
4514
  }
4517
4515
  }), Ai = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, Ti = { class: "vs-compact-form-navigation__rail mt-[6px]" }, Fi = ["onClick"], Oi = /* @__PURE__ */ G({
4518
4516
  __name: "vs-compact-form-navigation",
@@ -4524,7 +4522,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4524
4522
  width: { default: 400 }
4525
4523
  },
4526
4524
  setup(o, { expose: e }) {
4527
- const t = o, s = w([]), n = w(""), a = w(""), r = S(() => !!t.enabled), u = S(() => [
4525
+ const t = o, s = w([]), n = w(""), a = w(""), r = S(() => !!t.enabled), d = S(() => [
4528
4526
  "vs-compact-form-navigation flex flex-col pl-[6px] pt-[8px] pr-[8px]",
4529
4527
  "sticky top-0 self-start shrink-0",
4530
4528
  "max-h-full min-h-0 overflow-y-auto"
@@ -4558,7 +4556,7 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4558
4556
  { immediate: !0 }
4559
4557
  ), ye(() => {
4560
4558
  t.scrollContainer || E(null), O();
4561
- }), it(() => {
4559
+ }), rt(() => {
4562
4560
  B(), E(null, !0), k = null, typeof window < "u" && (p && window.cancelAnimationFrame(p), v && window.cancelAnimationFrame(v));
4563
4561
  });
4564
4562
  function E(j, q = !1) {
@@ -4641,14 +4639,14 @@ const rr = /* @__PURE__ */ Y(nr, [["render", sr]]), ir = { class: "map-search-wi
4641
4639
  const X = m, Z = Math.max(0, V(q));
4642
4640
  X ? X.scrollTo({ top: Z, behavior: "smooth" }) : typeof window < "u" && window.scrollTo({ top: Z, behavior: "smooth" });
4643
4641
  }
4644
- return e({ refresh: O }), (j, q) => r.value && s.value.length ? (i(), d("div", {
4642
+ return e({ refresh: O }), (j, q) => r.value && s.value.length ? (i(), u("div", {
4645
4643
  key: 0,
4646
- class: T(u.value),
4644
+ class: T(d.value),
4647
4645
  style: be(c.value)
4648
4646
  }, [
4649
4647
  l("h2", Ai, W(j.title), 1),
4650
4648
  l("div", Ti, [
4651
- (i(!0), d(re, null, fe(s.value, (X) => (i(), d("div", {
4649
+ (i(!0), u(re, null, fe(s.value, (X) => (i(), u("div", {
4652
4650
  key: X.id,
4653
4651
  class: T([
4654
4652
  "vs-compact-form-navigation__item relative",
@@ -4710,12 +4708,12 @@ function St(o) {
4710
4708
  const e = o.toLowerCase();
4711
4709
  return Gi[e] || e;
4712
4710
  }
4713
- function at(o, e = !1) {
4711
+ function nt(o, e = !1) {
4714
4712
  if (Array.isArray(o)) {
4715
4713
  const s = [];
4716
4714
  return o.forEach((n) => {
4717
4715
  const a = { ...n };
4718
- a.name = (n.name || n.id || n.key || "").toString(), a.type = St(n.type), a.label = n.label || n.ua, a.rules = n.rules || n.validators, a.type === "email" && !a.rules && (a.rules = ["email"]), n.data && (a.api = `/api/suggest/${n.data}`), a.disabled = e || a.disabled, Array.isArray(a.schema) && (a.schema = at(a.schema, a.disabled)), s.push(a);
4716
+ a.name = (n.name || n.id || n.key || "").toString(), a.type = St(n.type), a.label = n.label || n.ua, a.rules = n.rules || n.validators, a.type === "email" && !a.rules && (a.rules = ["email"]), n.data && (a.api = `/api/suggest/${n.data}`), a.disabled = e || a.disabled, Array.isArray(a.schema) && (a.schema = nt(a.schema, a.disabled)), s.push(a);
4719
4717
  }), s;
4720
4718
  }
4721
4719
  const t = [];
@@ -4728,11 +4726,11 @@ function at(o, e = !1) {
4728
4726
  rules: s[1].rules || s[1].validators,
4729
4727
  disabled: e
4730
4728
  };
4731
- n.type === "email" && !n.rules && (n.rules = ["email"]), s[1].type.includes("list") && (n.multiple = !0), !n.api && s[1].data && (n.api = `/api/suggest/${s[1].data}`), Array.isArray(n.schema) && (n.schema = at(n.schema, n.disabled)), t.push(n);
4729
+ n.type === "email" && !n.rules && (n.rules = ["email"]), s[1].type.includes("list") && (n.multiple = !0), !n.api && s[1].data && (n.api = `/api/suggest/${s[1].data}`), Array.isArray(n.schema) && (n.schema = nt(n.schema, n.disabled)), t.push(n);
4732
4730
  }), t;
4733
4731
  }
4734
4732
  function qi(o, e, t = !1) {
4735
- const s = S(() => at(
4733
+ const s = S(() => nt(
4736
4734
  (Array.isArray(e), e),
4737
4735
  typeof t == "boolean" ? t : t.value
4738
4736
  )), n = w({});
@@ -4755,14 +4753,14 @@ function qi(o, e, t = !1) {
4755
4753
  }), k && m ? n.value[v.name] = m : delete n.value[v.name];
4756
4754
  }
4757
4755
  v.schema && r(v.schema, !1);
4758
- }), p && Object.values(n.value).some(Boolean) ? n.value : null), u = S(() => s.value?.filter((f) => a(f)));
4756
+ }), p && Object.values(n.value).some(Boolean) ? n.value : null), d = S(() => s.value?.filter((f) => f.hidden !== !0 && a(f)));
4759
4757
  return {
4760
4758
  errors: n,
4761
4759
  validate: r,
4762
4760
  reset: () => {
4763
4761
  o.value = {}, n.value = {};
4764
4762
  },
4765
- visibleSchema: u
4763
+ visibleSchema: d
4766
4764
  };
4767
4765
  }
4768
4766
  const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
@@ -4791,7 +4789,7 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4791
4789
  emits: /* @__PURE__ */ ie(["handle-submit", "update:modelValue"], ["update:form", "update:values"]),
4792
4790
  setup(o, { expose: e, emit: t }) {
4793
4791
  const s = t, n = o, a = de(o, "form"), r = de(o, "values"), {
4794
- errors: u,
4792
+ errors: d,
4795
4793
  validate: c,
4796
4794
  reset: f,
4797
4795
  visibleSchema: p
@@ -4801,11 +4799,11 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4801
4799
  e({
4802
4800
  validate: c,
4803
4801
  reset: f,
4804
- errors: u
4802
+ errors: d
4805
4803
  }), ye(() => {
4806
4804
  n.modelValue && (r.value = n.modelValue), a.value = {
4807
4805
  value: r.value,
4808
- errors: u.value,
4806
+ errors: d.value,
4809
4807
  reset: f,
4810
4808
  validate: c,
4811
4809
  formId: n.formId
@@ -4817,7 +4815,7 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4817
4815
  const Q = Object.keys(P), j = Object.keys(ee);
4818
4816
  return Q.length !== j.length ? !1 : Q.every((q) => P[q] === ee[q]);
4819
4817
  }
4820
- return wt("form", a), wt("values", r), (P, ee) => (i(), d("div", Ki, [
4818
+ return wt("form", a), wt("values", r), (P, ee) => (i(), u("div", Ki, [
4821
4819
  l("div", {
4822
4820
  class: "flex-1 min-h-0 overflow-y-auto overflow-x-visible",
4823
4821
  ref_key: "formScrollContainer",
@@ -4829,7 +4827,7 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4829
4827
  onSubmit: $e(B, ["prevent"]),
4830
4828
  class: T(["grid grid-cols-12 p-1", C.value === "default" ? "gap-6" : "gap-4"])
4831
4829
  }, [
4832
- (i(!0), d(re, null, fe(te(p), (Q, j) => (i(), d("div", {
4830
+ (i(!0), u(re, null, fe(te(p), (Q, j) => (i(), u("div", {
4833
4831
  key: Q.name,
4834
4832
  class: T(h(Q) === "horizontal" ? "col-span-12" : `col-span-${Q.col || 12}`)
4835
4833
  }, [
@@ -4843,9 +4841,9 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4843
4841
  const X = r.value[Q.name];
4844
4842
  V(X, q) || (r.value[Q.name] = q);
4845
4843
  },
4846
- error: te(u)[Q.name]
4844
+ error: te(d)[Q.name]
4847
4845
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
4848
- h(Q) === "settings" && j + 1 !== te(p).length ? (i(), d("div", Wi)) : U("", !0)
4846
+ h(Q) === "settings" && j + 1 !== te(p).length ? (i(), u("div", Wi)) : U("", !0)
4849
4847
  ], 2))), 128))
4850
4848
  ], 34)
4851
4849
  ], 512),
@@ -4868,7 +4866,7 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4868
4866
  },
4869
4867
  emits: ["close", "save", "edit"],
4870
4868
  setup(o, { emit: e }) {
4871
- const t = o, s = e, n = w(t.schema), a = w(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), r = w({}), u = w(), c = w(t.mode);
4869
+ const t = o, s = e, n = w(t.schema), a = w(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), r = w({}), d = w(), c = w(t.mode);
4872
4870
  async function f() {
4873
4871
  const v = r.value.validate();
4874
4872
  if (v) {
@@ -4876,9 +4874,9 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4876
4874
  `) });
4877
4875
  return;
4878
4876
  }
4879
- if (u.value)
4877
+ if (d.value)
4880
4878
  try {
4881
- const k = await fetch(`/api/table/${u.value}`, {
4879
+ const k = await fetch(`/api/table/${d.value}`, {
4882
4880
  method: c.value === "add" ? "POST" : "PUT",
4883
4881
  headers: {
4884
4882
  "Content-Type": "application/json"
@@ -4931,10 +4929,10 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4931
4929
  return;
4932
4930
  }
4933
4931
  const k = await v.json();
4934
- n.value = k.schema, u.value = k.token;
4932
+ n.value = k.schema, d.value = k.token;
4935
4933
  } else if (t.token) {
4936
- u.value = t.token;
4937
- const v = await fetch(`/api/form/${u.value}`);
4934
+ d.value = t.token;
4935
+ const v = await fetch(`/api/form/${d.value}`);
4938
4936
  if (!v.ok) {
4939
4937
  ce({
4940
4938
  type: v.status >= 400 && v.status < 500 ? "warning" : "error",
@@ -4953,7 +4951,7 @@ const Ki = { class: "flex w-full h-full min-h-0 gap-6" }, Wi = {
4953
4951
  message: v.message || "Unexpected error"
4954
4952
  }), console.error(v);
4955
4953
  }
4956
- }), (v, k) => (i(), d("div", Zi, [
4954
+ }), (v, k) => (i(), u("div", Zi, [
4957
4955
  l("div", Ji, [
4958
4956
  l("div", Yi, [
4959
4957
  l("div", Xi, [