@opengis/form 0.0.163 → 0.0.164

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as fe, ref as M, createElementBlock as m, openBlock as i, Fragment as $e, createElementVNode as c, createBlock as be, renderSlot as at, createVNode as Q, unref as B, Teleport as tn, createCommentVNode as W, normalizeStyle as Ve, toDisplayString as ce, computed as w, mergeProps as Kt, createTextVNode as je, normalizeProps as dl, guardReactiveProps as cl, onMounted as Xe, onUnmounted as sn, normalizeClass as re, mergeModels as Ee, useModel as Be, withDirectives as Le, vModelText as We, useAttrs as Wl, vModelCheckbox as Kl, resolveDynamicComponent as ct, withCtx as rt, withModifiers as Fe, onBeforeUnmount as Ut, watch as me, vModelRadio as Gl, inject as nt, renderList as Ie, reactive as fl, vModelDynamic as Ta, vShow as Rt, resolveComponent as wt, Transition as pl, isRef as Rn, nextTick as Je, defineAsyncComponent as Fa, createStaticVNode as ml, useSlots as Ea, getCurrentInstance as Yl, watchEffect as vn, withKeys as Pa, toRef as Oa, provide as nl } from "vue";
1
+ import { defineComponent as fe, ref as M, createElementBlock as m, openBlock as i, Fragment as $e, createElementVNode as c, createBlock as be, renderSlot as at, createVNode as Q, unref as B, Teleport as tn, createCommentVNode as K, normalizeStyle as Ve, toDisplayString as ce, computed as w, mergeProps as Kt, createTextVNode as je, normalizeProps as dl, guardReactiveProps as cl, onMounted as Xe, onUnmounted as sn, normalizeClass as oe, mergeModels as Ee, useModel as Be, withDirectives as Le, vModelText as We, useAttrs as Wl, vModelCheckbox as Kl, resolveDynamicComponent as ct, withCtx as rt, withModifiers as Fe, onBeforeUnmount as Ut, watch as me, vModelRadio as Gl, inject as nt, renderList as Ie, reactive as fl, vModelDynamic as Ta, vShow as Rt, resolveComponent as wt, Transition as pl, isRef as Rn, nextTick as Je, defineAsyncComponent as Fa, createStaticVNode as ml, useSlots as Ea, getCurrentInstance as Yl, watchEffect as vn, withKeys as Pa, toRef as Oa, provide as nl } from "vue";
2
2
  import { Info as Qt, Check as Zl, Mail as Ba, Phone as Ra, Table as Na, FileCode as ja, FileText as Nn, FileArchive as Ua, Trash2 as nn, Eye as Jl, Download as vl, Plus as xt, Upload as Xl, Search as Un, ChevronDown as bn, X as Mt, GripVertical as rn, Pencil as za, Circle as Ha, MapPin as Ql, Ruler as ea, Maximize as qa, ZoomIn as Wa, LoaderCircle as ta, Copy as Ka, ChevronRight as Ga, ChevronLeft as Ya } from "lucide-vue-next";
3
3
  import { notify as Ce, VsModal as zn, modal as Za } from "@opengis/core";
4
4
  const na = /* @__PURE__ */ fe({
@@ -34,7 +34,7 @@ const na = /* @__PURE__ */ fe({
34
34
  key: 0,
35
35
  style: Ve(o.value),
36
36
  class: "fixed z-[9999] max-w-xs p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none"
37
- }, ce(r.text), 5)) : W("", !0)
37
+ }, ce(r.text), 5)) : K("", !0)
38
38
  ]))
39
39
  ], 64));
40
40
  }
@@ -66,16 +66,16 @@ const na = /* @__PURE__ */ fe({
66
66
  return (r, s) => (i(), m("div", Ja, [
67
67
  o.value ? (i(), m("div", Xa, [
68
68
  c("span", Qa, ce(n.value), 1),
69
- l.value ? (i(), m("span", eo, "*")) : W("", !0),
69
+ l.value ? (i(), m("span", eo, "*")) : K("", !0),
70
70
  a.value ? (i(), be(na, {
71
71
  key: 1,
72
72
  text: a.value
73
- }, null, 8, ["text"])) : W("", !0)
74
- ])) : W("", !0),
73
+ }, null, 8, ["text"])) : K("", !0)
74
+ ])) : K("", !0),
75
75
  at(r.$slots, "default", Kt(r.$attrs, {
76
76
  class: { "opacity-60": r.item.disabled }
77
77
  })),
78
- r.error ? (i(), m("span", to, ce(r.error), 1)) : W("", !0)
78
+ r.error ? (i(), m("span", to, ce(r.error), 1)) : K("", !0)
79
79
  ]));
80
80
  }
81
81
  }), lo = { class: "w-full relative flex flex-row items-center gap-2" }, ao = {
@@ -123,19 +123,19 @@ const na = /* @__PURE__ */ fe({
123
123
  style: Ve(s.value)
124
124
  }, [
125
125
  je(ce(n.value) + " ", 1),
126
- f.item?.rules?.includes("required") && n.value ? (i(), m("span", ao, "*")) : W("", !0),
126
+ f.item?.rules?.includes("required") && n.value ? (i(), m("span", ao, "*")) : K("", !0),
127
127
  o.value ? (i(), be(na, {
128
128
  key: 1,
129
129
  text: o.value
130
- }, null, 8, ["text"])) : W("", !0)
131
- ], 4)) : W("", !0),
130
+ }, null, 8, ["text"])) : K("", !0)
131
+ ], 4)) : K("", !0),
132
132
  c("div", {
133
133
  class: "flex-1 min-w-0",
134
134
  style: Ve(u.value)
135
135
  }, [
136
136
  at(f.$slots, "default", dl(cl(f.$attrs)))
137
137
  ], 4),
138
- f.error ? (i(), m("span", oo, ce(f.error), 1)) : W("", !0)
138
+ f.error ? (i(), m("span", oo, ce(f.error), 1)) : K("", !0)
139
139
  ]));
140
140
  }
141
141
  }), so = { class: "w-full relative" }, io = {
@@ -158,7 +158,7 @@ const na = /* @__PURE__ */ fe({
158
158
  setup(e) {
159
159
  return (t, n) => (i(), m("div", so, [
160
160
  at(t.$slots, "default", dl(cl(t.$attrs))),
161
- t.error ? (i(), m("span", io, ce(t.error), 1)) : W("", !0)
161
+ t.error ? (i(), m("span", io, ce(t.error), 1)) : K("", !0)
162
162
  ]));
163
163
  }
164
164
  }), co = { class: "flex-1 min-w-0" }, fo = {
@@ -200,29 +200,29 @@ const na = /* @__PURE__ */ fe({
200
200
  }), sn(() => {
201
201
  window.removeEventListener("storage", r);
202
202
  }), (s, u) => (i(), m("div", {
203
- class: re(["w-full relative", { "opacity-60": s.item?.disabled }])
203
+ class: oe(["w-full relative", { "opacity-60": s.item?.disabled }])
204
204
  }, [
205
205
  c("div", {
206
- class: re(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(s.item.type) ? "flex flex-col" : ""]])
206
+ class: oe(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(s.item.type) ? "flex flex-col" : ""]])
207
207
  }, [
208
208
  c("div", co, [
209
209
  s.ua || s.label ? (i(), m("p", fo, [
210
210
  c("span", po, ce(s.item[n.value] || s.ua || s.label), 1),
211
- l.value ? (i(), m("span", mo, "*")) : W("", !0)
212
- ])) : W("", !0),
211
+ l.value ? (i(), m("span", mo, "*")) : K("", !0)
212
+ ])) : K("", !0),
213
213
  o.value ? (i(), m("p", {
214
214
  key: 1,
215
215
  class: "text-xs text-slate-500 dark:text-slate-400",
216
216
  innerHTML: o.value
217
- }, null, 8, vo)) : W("", !0)
217
+ }, null, 8, vo)) : K("", !0)
218
218
  ]),
219
219
  c("div", {
220
- class: re(["w-full", ["select", "native-select"].includes(s.item.type) ? "md:w-[30%]" : "md:w-auto"])
220
+ class: oe(["w-full", ["select", "native-select"].includes(s.item.type) ? "md:w-[30%]" : "md:w-auto"])
221
221
  }, [
222
222
  at(s.$slots, "default", dl(cl(s.$attrs)))
223
223
  ], 2)
224
224
  ], 2),
225
- a.value ? (i(), m("p", go, ce(a.value), 1)) : W("", !0)
225
+ a.value ? (i(), m("p", go, ce(a.value), 1)) : K("", !0)
226
226
  ], 2));
227
227
  }
228
228
  }), ho = {
@@ -263,7 +263,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
263
263
  "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
264
264
  placeholder: a.value,
265
265
  disabled: l.value,
266
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n), { "!border-red-600": r.error }]]),
266
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n), { "!border-red-600": r.error }]]),
267
267
  style: {
268
268
  border: "1px solid #CFD9E0"
269
269
  }
@@ -301,7 +301,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
301
301
  maxlength: r.value,
302
302
  minlength: s.value,
303
303
  onBlur: u,
304
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [f.customClass, B(n), { "!border-red-600": f.error }]]),
304
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [f.customClass, B(n), { "!border-red-600": f.error }]]),
305
305
  style: { border: "1px solid #CFD9E0" }
306
306
  }, null, 42, xo)), [
307
307
  [We, o.value]
@@ -355,7 +355,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
355
355
  "onUpdate:modelValue": x[0] || (x[0] = (_) => l.value = _),
356
356
  placeholder: e.placeholder,
357
357
  disabled: a.value,
358
- class: re(["py-1.5 px-3 block w-full bg-white", [B(n)]]),
358
+ class: oe(["py-1.5 px-3 block w-full bg-white", [B(n)]]),
359
359
  style: {
360
360
  border: "1px solid #CFD9E0"
361
361
  },
@@ -413,7 +413,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
413
413
  type: "checkbox",
414
414
  value: $.value,
415
415
  "onUpdate:modelValue": g[0] || (g[0] = (h) => l.value = h),
416
- class: re(["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.value }]),
416
+ class: oe(["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.value }]),
417
417
  id: $.id,
418
418
  disabled: a.value
419
419
  }, null, 10, Co), [
@@ -421,10 +421,10 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
421
421
  ]),
422
422
  c("label", {
423
423
  for: $.id,
424
- class: re(["flex flex-1 checkbox-label items-center gap-x-2 cursor-pointer text-sm text-gray-800 dark:text-neutral-300", { "!cursor-not-allowed": a.value }])
424
+ class: oe(["flex flex-1 checkbox-label items-center gap-x-2 cursor-pointer text-sm text-gray-800 dark:text-neutral-300", { "!cursor-not-allowed": a.value }])
425
425
  }, [
426
426
  c("div", {
427
- class: re(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [l.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", $.error ? "border-red-600" : ""]])
427
+ class: oe(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [l.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", $.error ? "border-red-600" : ""]])
428
428
  }, [
429
429
  Q(B(Zl), { class: "h-4 w-4" })
430
430
  ], 2),
@@ -437,7 +437,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
437
437
  key: 0,
438
438
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
439
439
  style: Ve({ background: u.value })
440
- }, null, 4)) : W("", !0),
440
+ }, null, 4)) : K("", !0),
441
441
  p.value ? (i(), m("span", {
442
442
  key: 1,
443
443
  class: "inline-block h-4 w-4",
@@ -453,7 +453,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
453
453
  key: 3,
454
454
  class: "h-4 w-4",
455
455
  style: Ve(x.value)
456
- }, null, 8, ["style"])) : W("", !0),
456
+ }, null, 8, ["style"])) : K("", !0),
457
457
  at($.$slots, "default", {}, () => [
458
458
  je(ce($.label), 1)
459
459
  ])
@@ -508,7 +508,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
508
508
  };
509
509
  });
510
510
  return (h, y) => (i(), m("label", {
511
- class: re(["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"]])
511
+ class: oe(["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"]])
512
512
  }, [
513
513
  Le(c("input", {
514
514
  type: "checkbox",
@@ -529,7 +529,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
529
529
  key: 0,
530
530
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
531
531
  style: Ve({ background: p.value })
532
- }, null, 4)) : W("", !0),
532
+ }, null, 4)) : K("", !0),
533
533
  _.value ? (i(), m("span", {
534
534
  key: 1,
535
535
  class: "inline-block h-4 w-4",
@@ -545,8 +545,8 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
545
545
  key: 1,
546
546
  class: "h-4 w-4",
547
547
  style: Ve($.value)
548
- }, null, 8, ["style"])) : W("", !0)
549
- ])) : W("", !0),
548
+ }, null, 8, ["style"])) : K("", !0)
549
+ ])) : K("", !0),
550
550
  at(h.$slots, "default", {}, () => [
551
551
  je(ce(h.label), 1)
552
552
  ])
@@ -640,7 +640,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
640
640
  "onUpdate:modelValue": l[0] || (l[0] = (a) => n.value = a),
641
641
  error: o.error || ""
642
642
  }, null, 8, ["modelValue", "error"]),
643
- o.rules?.includes("required") ? (i(), m("span", Ro, "*")) : W("", !0),
643
+ o.rules?.includes("required") ? (i(), m("span", Ro, "*")) : K("", !0),
644
644
  o.i ? (i(), m("button", {
645
645
  key: 1,
646
646
  class: "cursor-pointer",
@@ -649,17 +649,17 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
649
649
  }, ["prevent"]))
650
650
  }, [
651
651
  Q(B(Qt), { class: "h-4 w-4 text-gray-500" })
652
- ], 8, No)) : W("", !0)
652
+ ], 8, No)) : K("", !0)
653
653
  ])) : (i(), m("button", {
654
654
  key: 1,
655
655
  type: "button",
656
- class: re(["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", [n.value ? `bg-${o.style?.primaryColor || "blue"}-500` : "bg-stone-200", o.customClass]]),
656
+ class: oe(["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", [n.value ? `bg-${o.style?.primaryColor || "blue"}-500` : "bg-stone-200", o.customClass]]),
657
657
  disabled: o.disabled,
658
658
  onClick: l[2] || (l[2] = (a) => n.value = !n.value)
659
659
  }, [
660
660
  c("span", {
661
661
  "data-state": "checked",
662
- class: re(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [n.value ? "translate-x-4" : "translate-x-0"]])
662
+ class: oe(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [n.value ? "translate-x-4" : "translate-x-0"]])
663
663
  }, null, 2)
664
664
  ], 10, jo));
665
665
  }
@@ -681,7 +681,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
681
681
  setup(e) {
682
682
  return (t, n) => (i(), m("div", {
683
683
  id: t.name,
684
- class: re(["text-gray-900", t.customClass]),
684
+ class: oe(["text-gray-900", t.customClass]),
685
685
  innerHTML: t.html ? t.html : t.text
686
686
  }, null, 10, Uo));
687
687
  }
@@ -752,7 +752,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
752
752
  placeholder: s.placeholder,
753
753
  disabled: s.disabled,
754
754
  name: s.name,
755
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n)]]),
755
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n)]]),
756
756
  style: {
757
757
  border: "1px solid #CFD9E0"
758
758
  }
@@ -786,7 +786,7 @@ const bo = ["placeholder", "disabled"], wo = /* @__PURE__ */ fe({
786
786
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
787
787
  placeholder: l.placeholder,
788
788
  disabled: l.disabled,
789
- class: re(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n), { "!border-red-600": l.error }]]),
789
+ class: oe(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(n), { "!border-red-600": l.error }]]),
790
790
  style: {
791
791
  border: "1px solid #CFD9E0"
792
792
  }
@@ -896,7 +896,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
896
896
  pattern: n.value,
897
897
  title: "Міжнародний номер (E.164), наприклад +380XXXXXXXXX",
898
898
  autocomplete: "tel",
899
- class: re(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(o), { "!border-red-600": p.error }]]),
899
+ class: oe(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(o), { "!border-red-600": p.error }]]),
900
900
  style: {
901
901
  border: "1px solid #CFD9E0"
902
902
  }
@@ -943,7 +943,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
943
943
  };
944
944
  });
945
945
  return (x, _) => (i(), m("label", {
946
- class: re(["flex items-center gap-0", [t.customClass, o.value ? "cursor-not-allowed opacity-60" : ""]])
946
+ class: oe(["flex items-center gap-0", [t.customClass, o.value ? "cursor-not-allowed opacity-60" : ""]])
947
947
  }, [
948
948
  Le(c("input", {
949
949
  "onUpdate:modelValue": _[0] || (_[0] = ($) => n.value = $),
@@ -955,15 +955,15 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
955
955
  [Gl, n.value]
956
956
  ]),
957
957
  c("span", {
958
- class: re(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
958
+ class: oe(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
959
959
  `border-${t.style?.primaryColor || "blue"}-500`,
960
960
  o.value ? "opacity-50 cursor-not-allowed" : ""
961
961
  ]])
962
962
  }, [
963
963
  n.value == t.value ? (i(), m("span", {
964
964
  key: 0,
965
- class: re(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
966
- }, null, 2)) : W("", !0)
965
+ class: oe(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
966
+ }, null, 2)) : K("", !0)
967
967
  ], 2),
968
968
  t.html ? (i(), m("div", {
969
969
  key: 0,
@@ -974,7 +974,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
974
974
  key: 0,
975
975
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
976
976
  style: Ve({ background: r.value })
977
- }, null, 4)) : W("", !0),
977
+ }, null, 4)) : K("", !0),
978
978
  u.value ? (i(), m("span", {
979
979
  key: 1,
980
980
  class: "inline-block h-4 w-4",
@@ -990,7 +990,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
990
990
  key: 3,
991
991
  class: "h-4 w-4",
992
992
  style: Ve(f.value)
993
- }, null, 8, ["style"])) : W("", !0),
993
+ }, null, 8, ["style"])) : K("", !0),
994
994
  c("span", er, ce(t.text), 1)
995
995
  ]))
996
996
  ], 2));
@@ -1035,7 +1035,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1035
1035
  };
1036
1036
  });
1037
1037
  return (x, _) => (i(), m("label", {
1038
- class: re(["flex h-full w-full items-center border rounded-lg px-2 py-1", [
1038
+ class: oe(["flex h-full w-full items-center border rounded-lg px-2 py-1", [
1039
1039
  n.value == t.value ? `ring-2 ring-ring ring-${t.style?.primaryColor || "blue"}-500` : "",
1040
1040
  t.customClass,
1041
1041
  o.value ? "cursor-not-allowed opacity-60" : ""
@@ -1059,7 +1059,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1059
1059
  key: 0,
1060
1060
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
1061
1061
  style: Ve({ background: r.value })
1062
- }, null, 4)) : W("", !0),
1062
+ }, null, 4)) : K("", !0),
1063
1063
  u.value ? (i(), m("span", {
1064
1064
  key: 1,
1065
1065
  class: "inline-block h-4 w-4",
@@ -1075,7 +1075,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1075
1075
  key: 3,
1076
1076
  class: "h-4 w-4",
1077
1077
  style: Ve(f.value)
1078
- }, null, 8, ["style"])) : W("", !0),
1078
+ }, null, 8, ["style"])) : K("", !0),
1079
1079
  c("span", rr, ce(t.text), 1)
1080
1080
  ]))
1081
1081
  ], 2));
@@ -1197,11 +1197,11 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1197
1197
  return Xe(async () => {
1198
1198
  await _();
1199
1199
  }), ($, g) => (i(), m("div", {
1200
- class: re(u.value)
1200
+ class: oe(u.value)
1201
1201
  }, [
1202
1202
  (i(!0), m($e, null, Ie(B(x), (h) => (i(), m("div", {
1203
1203
  key: h?.id,
1204
- class: re(["flex items-stretch", $.position === "horizontal" ? t.customClass : ""]),
1204
+ class: oe(["flex items-stretch", $.position === "horizontal" ? t.customClass : ""]),
1205
1205
  style: Ve(f.value)
1206
1206
  }, [
1207
1207
  (i(), be(ct(o.value), Kt({
@@ -1341,15 +1341,15 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1341
1341
  key: L.key,
1342
1342
  class: "flex flex-col gap-2"
1343
1343
  }, [
1344
- L.label ? (i(), m("span", mr, ce(L.label), 1)) : W("", !0),
1344
+ L.label ? (i(), m("span", mr, ce(L.label), 1)) : K("", !0),
1345
1345
  c("div", {
1346
- class: re(["p-0 w-full gap-[12px]", h.value])
1346
+ class: oe(["p-0 w-full gap-[12px]", h.value])
1347
1347
  }, [
1348
1348
  (i(!0), m($e, null, Ie(L.options, (U) => (i(), be(rl, {
1349
1349
  modelValue: l[f(U)],
1350
1350
  "onUpdate:modelValue": (te) => l[f(U)] = te,
1351
1351
  value: f(U),
1352
- class: re(g(b.colSpan)),
1352
+ class: oe(g(b.colSpan)),
1353
1353
  disabled: n.disabled || U.disabled,
1354
1354
  label: $(U),
1355
1355
  labelHtml: x.value ? _(U) : "",
@@ -1363,13 +1363,13 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1363
1363
  ]))), 128))
1364
1364
  ])) : (i(), m("div", {
1365
1365
  key: 0,
1366
- class: re(["p-0 w-full gap-[10px]", h.value])
1366
+ class: oe(["p-0 w-full gap-[10px]", h.value])
1367
1367
  }, [
1368
1368
  (i(!0), m($e, null, Ie(u.value, (L) => (i(), be(rl, {
1369
1369
  modelValue: l[f(L)],
1370
1370
  "onUpdate:modelValue": (U) => l[f(L)] = U,
1371
1371
  value: f(L),
1372
- class: re(g(b.colSpan)),
1372
+ class: oe(g(b.colSpan)),
1373
1373
  disabled: n.disabled || L.disabled,
1374
1374
  label: $(L),
1375
1375
  labelHtml: x.value ? _(L) : "",
@@ -1416,7 +1416,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1416
1416
  placeholder: f.value,
1417
1417
  disabled: u.value,
1418
1418
  ref: "date",
1419
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [p.modelValue ? "" : "text-opacity-50", B(l)].join(" ")]),
1419
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [p.modelValue ? "" : "text-opacity-50", B(l)].join(" ")]),
1420
1420
  style: {
1421
1421
  border: "1px solid #CFD9E0"
1422
1422
  }
@@ -1720,7 +1720,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1720
1720
  }, null, 8, ["multiple", "value", "item"]))), 128)),
1721
1721
  c("div", {
1722
1722
  onClick: y,
1723
- class: re([
1723
+ class: oe([
1724
1724
  "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-[#CFD9E0] rounded-lg flex items-center justify-center transition-all duration-300",
1725
1725
  b.disabled || s.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50"
1726
1726
  ])
@@ -1730,11 +1730,11 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1730
1730
  class: "h-4 w-4"
1731
1731
  }))
1732
1732
  ], 2)
1733
- ])) : W("", !0),
1734
- b.multiple ? W("", !0) : (i(), m("div", {
1733
+ ])) : K("", !0),
1734
+ b.multiple ? K("", !0) : (i(), m("div", {
1735
1735
  key: 2,
1736
1736
  onClick: y,
1737
- class: re([b.disabled || s.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"])
1737
+ class: oe([b.disabled || s.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"])
1738
1738
  }, [
1739
1739
  s.value ? (i(), m("div", Ar)) : (i(), be(B(xt), {
1740
1740
  key: 0,
@@ -1928,7 +1928,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1928
1928
  }, null, 8, ["item", "value"])) : (i(), m("div", {
1929
1929
  key: 1,
1930
1930
  onClick: h,
1931
- class: re(["relative h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg flex items-center justify-center transition-all duration-300", g.value])
1931
+ class: oe(["relative h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg flex items-center justify-center transition-all duration-300", g.value])
1932
1932
  }, [
1933
1933
  s.value ? (i(), m("div", Or, [
1934
1934
  X[2] || (X[2] = c("div", { class: "loader" }, null, -1)),
@@ -1959,27 +1959,27 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
1959
1959
  type: "button",
1960
1960
  class: "rounded border border-slate-300 px-3 py-1",
1961
1961
  onClick: G
1962
- }, " Resume ")) : W("", !0),
1962
+ }, " Resume ")) : K("", !0),
1963
1963
  s.value ? (i(), m("button", {
1964
1964
  key: 1,
1965
1965
  type: "button",
1966
1966
  class: "rounded border border-slate-300 px-3 py-1",
1967
1967
  onClick: J
1968
- }, " Pause ")) : W("", !0),
1968
+ }, " Pause ")) : K("", !0),
1969
1969
  !s.value && r.value === 0 ? (i(), m("button", {
1970
1970
  key: 2,
1971
1971
  type: "button",
1972
1972
  class: "rounded border border-slate-300 px-3 py-1",
1973
1973
  onClick: te
1974
- }, " Upload ")) : W("", !0),
1974
+ }, " Upload ")) : K("", !0),
1975
1975
  c("button", {
1976
1976
  type: "button",
1977
1977
  class: "rounded border border-rose-200 px-3 py-1 text-rose-600",
1978
1978
  onClick: ae
1979
1979
  }, " Cancel ")
1980
1980
  ]),
1981
- u.value ? (i(), m("p", Wr, ce(u.value), 1)) : W("", !0)
1982
- ])) : W("", !0)
1981
+ u.value ? (i(), m("p", Wr, ce(u.value), 1)) : K("", !0)
1982
+ ])) : K("", !0)
1983
1983
  ]));
1984
1984
  }
1985
1985
  }), ll = /* @__PURE__ */ Ne(Kr, [["__scopeId", "data-v-19ea2129"]]), Gr = { class: "flex items-center justify-center h-[30px] w-[30px]" }, Yr = { class: "max-w-[55vw]" }, Zr = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, Jr = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, Xr = { class: "px-[5px]" }, Qr = { class: "" }, Sn = /* @__PURE__ */ fe({
@@ -2240,7 +2240,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2240
2240
  ])
2241
2241
  ])
2242
2242
  ])
2243
- ])) : W("", !0),
2243
+ ])) : K("", !0),
2244
2244
  p.value?.length ? (i(), m("div", ws, [
2245
2245
  (i(!0), m($e, null, Ie($.value, (P, J) => (i(), be(cs, {
2246
2246
  key: J,
@@ -2251,10 +2251,10 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2251
2251
  onOpenModal: L[3] || (L[3] = (G) => b(G)),
2252
2252
  onOpenLightbox: L[4] || (L[4] = (G) => g(G))
2253
2253
  }, null, 8, ["prefix", "item", "index"]))), 128)),
2254
- $.value.length ? W("", !0) : (i(), m("div", xs, L[8] || (L[8] = [
2254
+ $.value.length ? K("", !0) : (i(), m("div", xs, L[8] || (L[8] = [
2255
2255
  c("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
2256
2256
  ])))
2257
- ])) : W("", !0),
2257
+ ])) : K("", !0),
2258
2258
  Q(U, {
2259
2259
  modelValue: a.value,
2260
2260
  "onUpdate:modelValue": L[5] || (L[5] = (P) => a.value = P),
@@ -2344,7 +2344,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2344
2344
  class: "flex items-center gap-2"
2345
2345
  }, [
2346
2346
  Q(B(bn), {
2347
- class: re(["h-4 w-4 duration-300", [n.value ? "-rotate-180" : ""]])
2347
+ class: oe(["h-4 w-4 duration-300", [n.value ? "-rotate-180" : ""]])
2348
2348
  }, null, 8, ["class"]),
2349
2349
  c("span", Ms, ce(e.title), 1)
2350
2350
  ]),
@@ -2484,7 +2484,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2484
2484
  }), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
2485
2485
  ]),
2486
2486
  _: 1
2487
- }, 8, ["title", "style"])) : W("", !0);
2487
+ }, 8, ["title", "style"])) : K("", !0);
2488
2488
  }
2489
2489
  }), sa = ({
2490
2490
  props: e,
@@ -2551,10 +2551,13 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2551
2551
  }, ri = {
2552
2552
  key: 2,
2553
2553
  class: "flex-1 min-w-[2px]"
2554
- }, si = ["placeholder"], ii = { class: "flex items-center shrink-0" }, ui = ["disabled"], di = {
2554
+ }, si = ["placeholder"], ii = {
2555
+ key: 3,
2556
+ class: "flex-1 flex items-center min-h-[30px] py-0.5 pl-2 text-sm truncate text-inherit"
2557
+ }, ui = { class: "flex items-center shrink-0" }, di = ["disabled"], ci = {
2555
2558
  key: 1,
2556
2559
  class: "self-stretch w-px bg-[#ccc] my-[1px]"
2557
- }, ci = ["disabled", "title"], fi = /* @__PURE__ */ fe({
2560
+ }, fi = ["disabled", "title"], pi = /* @__PURE__ */ fe({
2558
2561
  __name: "vs-select-control",
2559
2562
  props: {
2560
2563
  disabled: { type: Boolean },
@@ -2595,7 +2598,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2595
2598
  set: (a) => o("update:keyWord", a)
2596
2599
  });
2597
2600
  return (a, r) => (i(), m("div", {
2598
- class: re([
2601
+ class: oe([
2599
2602
  "vs-input-select__control flex min-h-[38px] items-center justify-between rounded transition-colors bg-white",
2600
2603
  a.disabled ? "bg-gray-100 text-gray-400 cursor-not-allowed" : ""
2601
2604
  ]),
@@ -2620,10 +2623,10 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2620
2623
  key: 0,
2621
2624
  class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
2622
2625
  style: Ve({ backgroundColor: s?.color })
2623
- }, null, 4)) : W("", !0),
2626
+ }, null, 4)) : K("", !0),
2624
2627
  !a.optionTemplate && a.optionHasIcon(s) ? (i(), m("span", {
2625
2628
  key: 1,
2626
- class: re(a.iconWrapperClass),
2629
+ class: oe(a.iconWrapperClass),
2627
2630
  style: Ve(a.getIconColorStyle(s)),
2628
2631
  "aria-hidden": "true"
2629
2632
  }, [
@@ -2631,7 +2634,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2631
2634
  class: "w-full h-full",
2632
2635
  focusable: "false"
2633
2636
  }))
2634
- ], 6)) : W("", !0),
2637
+ ], 6)) : K("", !0),
2635
2638
  c("div", {
2636
2639
  class: "truncate text-[#172b4d] overflow-hidden max-w-[200px] px-0.5 pl-1.5",
2637
2640
  title: a.getLabel(s)
@@ -2678,21 +2681,21 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2678
2681
  (...s) => a.onInputKeydown && a.onInputKeydown(...s))
2679
2682
  }, null, 40, ni)), [
2680
2683
  [We, l.value]
2681
- ]) : W("", !0)
2684
+ ]) : K("", !0)
2682
2685
  ])
2683
2686
  ])) : !a.isMulti && a.selectedOptionLabel && l.value === "" ? (i(), m("div", {
2684
2687
  key: 1,
2685
- class: "truncate text-gray-900 absolute inset-x-0 pl-2 flex items-center gap-1 min-w-0",
2688
+ class: oe(["truncate flex items-center gap-1 min-w-0 pl-2", a.disabled || !a.search ? "relative z-0 flex-1 min-h-[30px] py-0.5 text-inherit" : "absolute inset-x-0 top-0 bottom-0 z-[1] text-gray-900"]),
2686
2689
  title: a.selectedOptionLabel
2687
2690
  }, [
2688
2691
  a.shouldShowColorDot(a.selectedOption) ? (i(), m("span", {
2689
2692
  key: 0,
2690
2693
  class: "w-[14px] h-[14px] rounded-md block flex-shrink-0",
2691
2694
  style: Ve({ backgroundColor: a.selectedOption?.color })
2692
- }, null, 4)) : W("", !0),
2695
+ }, null, 4)) : K("", !0),
2693
2696
  !a.optionTemplate && a.optionHasIcon(a.selectedOption) ? (i(), m("span", {
2694
2697
  key: 1,
2695
- class: re(a.iconWrapperClass),
2698
+ class: oe(a.iconWrapperClass),
2696
2699
  style: Ve(a.getIconColorStyle(a.selectedOption)),
2697
2700
  "aria-hidden": "true"
2698
2701
  }, [
@@ -2700,16 +2703,15 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2700
2703
  class: "w-full h-full",
2701
2704
  focusable: "false"
2702
2705
  }))
2703
- ], 6)) : W("", !0),
2706
+ ], 6)) : K("", !0),
2704
2707
  a.optionTemplate ? (i(), m("div", {
2705
2708
  key: 2,
2706
2709
  class: "truncate flex-1 min-w-0",
2707
2710
  innerHTML: a.renderTemplate(a.selectedOption)
2708
2711
  }, null, 8, ai)) : (i(), m("span", oi, ce(a.selectedOption?.text), 1))
2709
- ], 8, li)) : W("", !0),
2710
- a.isMulti ? W("", !0) : (i(), m("div", ri, [
2711
- !a.disabled && a.search ? Le((i(), m("input", {
2712
- key: 0,
2712
+ ], 10, li)) : K("", !0),
2713
+ !a.isMulti && !a.disabled && a.search ? (i(), m("div", ri, [
2714
+ Le(c("input", {
2713
2715
  ref: a.setInputRef,
2714
2716
  class: "w-full bg-transparent outline-none border-0 m-0 p-0 text-gray-900 hover:cursor-pointer",
2715
2717
  autocapitalize: "none",
@@ -2727,12 +2729,12 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2727
2729
  (...s) => a.onInputBlur && a.onInputBlur(...s)),
2728
2730
  onKeydown: r[7] || (r[7] = //@ts-ignore
2729
2731
  (...s) => a.onInputKeydown && a.onInputKeydown(...s))
2730
- }, null, 40, si)), [
2732
+ }, null, 40, si), [
2731
2733
  [We, l.value]
2732
- ]) : W("", !0)
2733
- ]))
2734
+ ])
2735
+ ])) : !a.isMulti && a.disabled && (!a.selectedOptionLabel || l.value !== "") ? (i(), m("div", ii, ce(a.placeholder), 1)) : K("", !0)
2734
2736
  ]),
2735
- c("div", ii, [
2737
+ c("div", ui, [
2736
2738
  a.showClear ? (i(), m("button", {
2737
2739
  key: 0,
2738
2740
  type: "button",
@@ -2746,8 +2748,8 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2746
2748
  ))
2747
2749
  }, [
2748
2750
  Q(B(Mt), { class: "h-4 w-4" })
2749
- ], 8, ui)) : W("", !0),
2750
- a.showClear ? (i(), m("div", di)) : W("", !0),
2751
+ ], 8, di)) : K("", !0),
2752
+ a.showClear ? (i(), m("div", ci)) : K("", !0),
2751
2753
  c("button", {
2752
2754
  type: "button",
2753
2755
  class: "px-2 text-gray-400 hover:text-gray-500 transition-colors disabled:opacity-50",
@@ -2761,14 +2763,14 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2761
2763
  title: a.isOpen ? "Закрити список" : "Відкрити список"
2762
2764
  }, [
2763
2765
  Q(B(bn), { class: "h-4 w-4" })
2764
- ], 8, ci)
2766
+ ], 8, fi)
2765
2767
  ])
2766
2768
  ], 42, Gs));
2767
2769
  }
2768
- }), pi = ["aria-disabled", "onMousedown"], mi = { class: "leading-[19px]" }, vi = ["innerHTML"], gi = {
2770
+ }), mi = ["aria-disabled", "onMousedown"], vi = { class: "leading-[19px]" }, gi = ["innerHTML"], yi = {
2769
2771
  key: 1,
2770
2772
  class: "px-3 py-2 text-center text-gray-500"
2771
- }, yi = /* @__PURE__ */ fe({
2773
+ }, hi = /* @__PURE__ */ fe({
2772
2774
  __name: "vs-select-dropdown",
2773
2775
  props: {
2774
2776
  isOpen: { type: Boolean },
@@ -2806,7 +2808,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2806
2808
  key: o.id,
2807
2809
  ref_for: !0,
2808
2810
  ref: (a) => t.setItemRef(a, l),
2809
- class: re([
2811
+ class: oe([
2810
2812
  "flex px-3 py-2 gap-2 cursor-pointer select-none text-gray-900",
2811
2813
  t.isSelected(o.id) ? "bg-[#2684ff] text-white" : "bg-white hover:bg-[#deebff] hover:text-[#172b4d]",
2812
2814
  t.selectedNavIndex === l && !t.isSelected(o.id) ? "bg-[#deebff] text-[#172b4d]" : ""
@@ -2820,10 +2822,10 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2820
2822
  key: 0,
2821
2823
  class: "w-[11px] h-[11px] rounded-full block flex-shrink-0",
2822
2824
  style: Ve({ backgroundColor: o?.color })
2823
- }, null, 4)) : W("", !0),
2825
+ }, null, 4)) : K("", !0),
2824
2826
  !t.optionTemplate && t.optionHasIcon(o) ? (i(), m("span", {
2825
2827
  key: 1,
2826
- class: re(t.iconWrapperClass),
2828
+ class: oe(t.iconWrapperClass),
2827
2829
  style: Ve(t.getIconColorStyle(o)),
2828
2830
  "aria-hidden": "true"
2829
2831
  }, [
@@ -2831,21 +2833,21 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2831
2833
  class: "w-full h-full",
2832
2834
  focusable: "false"
2833
2835
  }))
2834
- ], 6)) : W("", !0),
2835
- c("div", mi, [
2836
+ ], 6)) : K("", !0),
2837
+ c("div", vi, [
2836
2838
  t.optionTemplate ? (i(), m("div", {
2837
2839
  key: 0,
2838
2840
  innerHTML: t.renderTemplate(o)
2839
- }, null, 8, vi)) : (i(), m($e, { key: 1 }, [
2841
+ }, null, 8, gi)) : (i(), m($e, { key: 1 }, [
2840
2842
  je(ce(o.text), 1)
2841
2843
  ], 64))
2842
2844
  ])
2843
- ], 42, pi))), 128)) : (i(), m("div", gi, " No options "))
2845
+ ], 42, mi))), 128)) : (i(), m("div", yi, " No options "))
2844
2846
  ], 4)
2845
- ], 4)) : W("", !0)
2847
+ ], 4)) : K("", !0)
2846
2848
  ]));
2847
2849
  }
2848
- }), hi = ["disabled"], Fl = "w-[16px] h-[16px] flex items-center justify-center flex-shrink-0 text-current", bi = /* @__PURE__ */ fe({
2850
+ }), bi = ["disabled"], Fl = "w-[16px] h-[16px] flex items-center justify-center flex-shrink-0 text-current", wi = /* @__PURE__ */ fe({
2849
2851
  __name: "vs-input-select",
2850
2852
  props: {
2851
2853
  multiple: { type: Boolean, default: !1 },
@@ -2892,30 +2894,30 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2892
2894
  x.value = E;
2893
2895
  }, te = (E) => {
2894
2896
  p.value = E;
2895
- }, P = (E, oe) => {
2896
- y.value[oe] = E;
2897
+ }, P = (E, re) => {
2898
+ y.value[re] = E;
2897
2899
  }, J = M({}), G = M([]), ae = w(() => {
2898
2900
  if (!G.value.length) return [];
2899
- const E = _e.value, oe = new Map(E.map((ge) => [ge.id?.toString(), ge]));
2900
- return G.value.map((ge) => oe.get(ge?.toString())).filter((ge) => !!ge);
2901
- }), I = w(() => n.placeholder || "Select..."), H = w(() => ke(g.value)), X = w(() => a.value ? !1 : l.value ? G.value.length > 0 : !!s.value), j = (E) => l.value ? G.value.some((oe) => oe?.toString() === E?.toString()) : s.value?.toString() === E?.toString(), z = w(() => {
2901
+ const E = _e.value, re = new Map(E.map((ge) => [ge.id?.toString(), ge]));
2902
+ return G.value.map((ge) => re.get(ge?.toString())).filter((ge) => !!ge);
2903
+ }), I = w(() => n.placeholder || "Select..."), H = w(() => ke(g.value)), X = w(() => a.value ? !1 : l.value ? G.value.length > 0 : !!s.value), j = (E) => l.value ? G.value.some((re) => re?.toString() === E?.toString()) : s.value?.toString() === E?.toString(), z = w(() => {
2902
2904
  let E = _e.value ?? [];
2903
2905
  if (!n.data && C.value.trim() !== "") {
2904
- const oe = C.value.toLowerCase();
2906
+ const re = C.value.toLowerCase();
2905
2907
  E = E.filter((ge) => {
2906
2908
  const Te = ke(ge).toLowerCase(), Ge = ge.text?.toLowerCase?.() || "";
2907
- return Te.includes(oe) || Ge.includes(oe);
2909
+ return Te.includes(re) || Ge.includes(re);
2908
2910
  });
2909
2911
  }
2910
2912
  if (l.value && G.value.length) {
2911
- const oe = new Set(G.value.map((ge) => ge?.toString()));
2912
- E = E.filter((ge) => !oe.has(ge.id?.toString()));
2913
+ const re = new Set(G.value.map((ge) => ge?.toString()));
2914
+ E = E.filter((ge) => !re.has(ge.id?.toString()));
2913
2915
  }
2914
2916
  return E;
2915
2917
  }), N = nt("values"), ue = nt("field-props"), de = w(() => n.slot ?? n?.optionTemplate ?? ""), we = (E) => Wn(E, de.value), ke = (E) => Kn(E, de.value), Ue = w(() => Hn(de.value)), Pe = (E) => xn(E), ie = (E) => !!(!Ue.value && Gt(E) && !Pe(E)), ye = (E) => {
2916
- const oe = Gt(E);
2917
- return oe ? { color: oe } : void 0;
2918
- }, Se = (E) => !!(!Ue.value && (wn(E) || Pe(E))), ne = (E, oe, ge) => {
2918
+ const re = Gt(E);
2919
+ return re ? { color: re } : void 0;
2920
+ }, Se = (E) => !!(!Ue.value && (wn(E) || Pe(E))), ne = (E, re, ge) => {
2919
2921
  if (!ue) return !1;
2920
2922
  const Te = ue.value?.[E] ?? {}, Ge = (Ye, mt, _t) => {
2921
2923
  if (!mt.length) return Ye;
@@ -2924,20 +2926,20 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2924
2926
  return ht[$t] = _t, ht;
2925
2927
  const fn = typeof Ye[$t] == "object" && Ye[$t] !== null ? Ye[$t] : {};
2926
2928
  return ht[$t] = Ge(fn, At, _t), ht;
2927
- }, lt = Ge(Te, oe, ge);
2929
+ }, lt = Ge(Te, re, ge);
2928
2930
  return ue.value = {
2929
2931
  ...ue.value || {},
2930
2932
  [E]: lt
2931
2933
  }, !0;
2932
2934
  }, he = (E) => {
2933
2935
  if (!n.set) return;
2934
- const oe = N?.value;
2935
- !oe && !ue || Object.entries(n.set).forEach(([ge, Te]) => {
2936
+ const re = N?.value;
2937
+ !re && !ue || Object.entries(n.set).forEach(([ge, Te]) => {
2936
2938
  if (!ge) return;
2937
2939
  const Ge = E ? E[Te] : null, lt = ge.split(".").map((_t) => _t.trim()).filter(Boolean);
2938
2940
  if (!lt.length) return;
2939
2941
  const [Ye, ...mt] = lt;
2940
- mt.length && ne(Ye, mt, Ge ?? null) || oe && (oe[Ye] = Ge ?? null);
2942
+ mt.length && ne(Ye, mt, Ge ?? null) || re && (re[Ye] = Ge ?? null);
2941
2943
  });
2942
2944
  }, {
2943
2945
  optionsList: _e,
@@ -2959,24 +2961,24 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2959
2961
  _e.value = E;
2960
2962
  return;
2961
2963
  }
2962
- const oe = new Set(E.map((Te) => De(Te.id)).filter(Boolean));
2964
+ const re = new Set(E.map((Te) => De(Te.id)).filter(Boolean));
2963
2965
  if (l.value) {
2964
2966
  const Te = new Set(G.value.map((lt) => De(lt)).filter(Boolean)), Ge = (_e.value ?? []).filter((lt) => {
2965
2967
  const Ye = De(lt.id);
2966
- return !Ye || !Te.has(Ye) ? !1 : !oe.has(Ye);
2968
+ return !Ye || !Te.has(Ye) ? !1 : !re.has(Ye);
2967
2969
  });
2968
2970
  _e.value = [...Ge, ...E];
2969
2971
  return;
2970
2972
  }
2971
2973
  const ge = De(g.value?.id);
2972
- if (ge && !oe.has(ge)) {
2974
+ if (ge && !re.has(ge)) {
2973
2975
  _e.value = [g.value, ...E];
2974
2976
  return;
2975
2977
  }
2976
2978
  _e.value = E;
2977
2979
  }, ze = M(0), qe = async (E) => {
2978
- const oe = ++ze.value, ge = await He(E);
2979
- return oe !== ze.value ? null : ge;
2980
+ const re = ++ze.value, ge = await He(E);
2981
+ return re !== ze.value ? null : ge;
2980
2982
  }, Qe = async () => {
2981
2983
  if (n.data) {
2982
2984
  const E = await qe(C.value);
@@ -2985,10 +2987,10 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
2985
2987
  return Ke();
2986
2988
  }, et = async (E) => {
2987
2989
  if (E == null || E === "") return null;
2988
- const oe = _e.value?.find((ge) => ge?.id?.toString() === String(E));
2989
- return oe || tt(E);
2990
+ const re = _e.value?.find((ge) => ge?.id?.toString() === String(E));
2991
+ return re || tt(E);
2990
2992
  }, ft = async (E) => {
2991
- const oe = new Set(_e.value.map((Te) => Te.id?.toString())), ge = E.filter((Te) => !oe.has(Te?.toString()));
2993
+ const re = new Set(_e.value.map((Te) => Te.id?.toString())), ge = E.filter((Te) => !re.has(Te?.toString()));
2992
2994
  ge.length && await ge.reduce(async (Te, Ge) => {
2993
2995
  await Te;
2994
2996
  const lt = await et(Ge);
@@ -3001,11 +3003,11 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3001
3003
  }
3002
3004
  let E = 0;
3003
3005
  if (!l.value && g.value) {
3004
- const oe = g.value.id?.toString(), ge = z.value.findIndex((Te) => Te.id?.toString() === oe);
3006
+ const re = g.value.id?.toString(), ge = z.value.findIndex((Te) => Te.id?.toString() === re);
3005
3007
  ge >= 0 && (E = ge);
3006
3008
  }
3007
3009
  h.value = E, Je(() => {
3008
- K(y.value[E], p.value);
3010
+ W(y.value[E], p.value);
3009
3011
  });
3010
3012
  }, ee = async () => {
3011
3013
  a.value || (_.value = !0, await Je(() => {
@@ -3033,9 +3035,9 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3033
3035
  b.value?.focus(), _.value || ee();
3034
3036
  });
3035
3037
  }, F = (E) => {
3036
- l.value && (G.value = G.value.filter((oe) => oe?.toString() !== E?.toString()), s.value = [...G.value], o("change", s.value), O(null), Je(() => b.value?.focus()));
3037
- }, O = (E, oe) => {
3038
- const ge = oe ?? (l.value ? [...G.value] : E?.id ?? null);
3038
+ l.value && (G.value = G.value.filter((re) => re?.toString() !== E?.toString()), s.value = [...G.value], o("change", s.value), O(null), Je(() => b.value?.focus()));
3039
+ }, O = (E, re) => {
3040
+ const ge = re ?? (l.value ? [...G.value] : E?.id ?? null);
3039
3041
  o("value-selected", {
3040
3042
  name: n.name,
3041
3043
  value: ge,
@@ -3051,27 +3053,27 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3051
3053
  return;
3052
3054
  }
3053
3055
  q(E);
3054
- }, K = (E, oe) => {
3055
- if (!E || !oe) return;
3056
- const ge = E.offsetTop, Te = ge + E.offsetHeight, Ge = oe.scrollTop, lt = Ge + oe.clientHeight;
3057
- let Ye = oe.scrollTop;
3058
- ge < Ge ? Ye = ge - 80 : Te > lt && (Ye = Te - oe.clientHeight + 4);
3059
- const mt = oe;
3056
+ }, W = (E, re) => {
3057
+ if (!E || !re) return;
3058
+ const ge = E.offsetTop, Te = ge + E.offsetHeight, Ge = re.scrollTop, lt = Ge + re.clientHeight;
3059
+ let Ye = re.scrollTop;
3060
+ ge < Ge ? Ye = ge - 80 : Te > lt && (Ye = Te - re.clientHeight + 4);
3061
+ const mt = re;
3060
3062
  mt.scrollTop = Ye;
3061
3063
  }, le = (E) => {
3062
- let oe = E.parentElement;
3063
- for (; oe; ) {
3064
- if (oe.classList.contains("ui-dialog__content"))
3065
- return oe;
3066
- const ge = window.getComputedStyle(oe), Te = ge.overflow + ge.overflowY + ge.overflowX;
3067
- if (Te.includes("auto") || Te.includes("scroll") || oe === document.body || oe === document.documentElement)
3068
- return oe;
3069
- oe = oe.parentElement;
3064
+ let re = E.parentElement;
3065
+ for (; re; ) {
3066
+ if (re.classList.contains("ui-dialog__content"))
3067
+ return re;
3068
+ const ge = window.getComputedStyle(re), Te = ge.overflow + ge.overflowY + ge.overflowX;
3069
+ if (Te.includes("auto") || Te.includes("scroll") || re === document.body || re === document.documentElement)
3070
+ return re;
3071
+ re = re.parentElement;
3070
3072
  }
3071
3073
  return document.body;
3072
3074
  }, ve = () => {
3073
3075
  if (!f.value) return;
3074
- const E = f.value.getBoundingClientRect(), oe = window.innerHeight || document.documentElement.clientHeight, ge = window.innerWidth || document.documentElement.clientWidth, Te = 8, Ge = 8, lt = n.maxHeight || 300, Ye = oe - E.bottom - Ge - Te, mt = E.top - Ge - Te, _t = Ye >= mt, $t = Math.max(ge - Te * 2, 0);
3076
+ const E = f.value.getBoundingClientRect(), re = window.innerHeight || document.documentElement.clientHeight, ge = window.innerWidth || document.documentElement.clientWidth, Te = 8, Ge = 8, lt = n.maxHeight || 300, Ye = re - E.bottom - Ge - Te, mt = E.top - Ge - Te, _t = Ye >= mt, $t = Math.max(ge - Te * 2, 0);
3075
3077
  let { width: At } = E;
3076
3078
  $t > 0 && At > $t && (At = $t);
3077
3079
  let { left: ht } = E;
@@ -3092,16 +3094,16 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3092
3094
  a.value || !_.value && (E.key === "ArrowDown" || E.key === "ArrowUp") && (E.preventDefault(), await ee());
3093
3095
  }, pt = (E) => {
3094
3096
  if (!_.value) return;
3095
- const { key: oe } = E;
3096
- if (oe === "ArrowDown")
3097
- E.preventDefault(), h.value + 1 < z.value.length && (h.value += 1, K(y.value[h.value], p.value));
3098
- else if (oe === "ArrowUp")
3099
- E.preventDefault(), h.value > 0 && (h.value -= 1, K(y.value[h.value], p.value));
3100
- else if (oe === "Enter") {
3097
+ const { key: re } = E;
3098
+ if (re === "ArrowDown")
3099
+ E.preventDefault(), h.value + 1 < z.value.length && (h.value += 1, W(y.value[h.value], p.value));
3100
+ else if (re === "ArrowUp")
3101
+ E.preventDefault(), h.value > 0 && (h.value -= 1, W(y.value[h.value], p.value));
3102
+ else if (re === "Enter") {
3101
3103
  E.preventDefault();
3102
3104
  const ge = z.value[h.value];
3103
3105
  ge && q(ge), b.value?.blur();
3104
- } else oe === "Escape" ? (E.preventDefault(), se()) : oe === "Backspace" ? l.value && C.value === "" && G.value.length && (G.value = G.value.slice(0, -1), s.value = [...G.value], o("change", s.value)) : oe === "Home" ? (h.value = 0, K(y.value[0], p.value)) : oe === "End" ? (h.value = z.value.length - 1, K(y.value[h.value], p.value)) : oe === "Tab" && se();
3106
+ } else re === "Escape" ? (E.preventDefault(), se()) : re === "Backspace" ? l.value && C.value === "" && G.value.length && (G.value = G.value.slice(0, -1), s.value = [...G.value], o("change", s.value)) : re === "Home" ? (h.value = 0, W(y.value[0], p.value)) : re === "End" ? (h.value = z.value.length - 1, W(y.value[h.value], p.value)) : re === "Tab" && se();
3105
3107
  }, dt = () => {
3106
3108
  a.value || ($.value = !0);
3107
3109
  }, Tt = () => {
@@ -3109,8 +3111,8 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3109
3111
  }, it = (E) => {
3110
3112
  E.key === "Escape" && _.value && se();
3111
3113
  }, ut = (E) => {
3112
- const oe = E.target;
3113
- u.value?.contains(oe) || x.value?.contains(oe) || se();
3114
+ const re = E.target;
3115
+ u.value?.contains(re) || x.value?.contains(re) || se();
3114
3116
  }, Lt = (E) => {
3115
3117
  _.value && p.value && !p.value.contains(E.target) && ve();
3116
3118
  }, kt = () => {
@@ -3157,15 +3159,15 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3157
3159
  selectedOption: g,
3158
3160
  modelValue: s
3159
3161
  });
3160
- function yt(E, oe = 200) {
3162
+ function yt(E, re = 200) {
3161
3163
  let ge;
3162
3164
  return (...Te) => {
3163
- ge && clearTimeout(ge), ge = window.setTimeout(() => E(...Te), oe);
3165
+ ge && clearTimeout(ge), ge = window.setTimeout(() => E(...Te), re);
3164
3166
  };
3165
3167
  }
3166
3168
  const cn = yt(async (E) => {
3167
- const oe = await qe(E);
3168
- oe && Re(oe);
3169
+ const re = await qe(E);
3170
+ re && Re(re);
3169
3171
  }, 200);
3170
3172
  me(C, (E) => {
3171
3173
  n.data && cn(E.trim());
@@ -3178,10 +3180,10 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3178
3180
  const E = _e.value[0];
3179
3181
  E && q(E);
3180
3182
  }
3181
- }), (E, oe) => (i(), m($e, null, [
3183
+ }), (E, re) => (i(), m($e, null, [
3182
3184
  Q(B(zn), {
3183
3185
  visible: B(dn),
3184
- "onUpdate:visible": oe[1] || (oe[1] = (ge) => Rn(dn) ? dn.value = ge : null),
3186
+ "onUpdate:visible": re[1] || (re[1] = (ge) => Rn(dn) ? dn.value = ge : null),
3185
3187
  class: "z-[1000]",
3186
3188
  title: B(Ft),
3187
3189
  buttonText: "Додати",
@@ -3192,7 +3194,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3192
3194
  Q(jt, {
3193
3195
  schema: B(Yt),
3194
3196
  modelValue: B(Dt),
3195
- "onUpdate:modelValue": oe[0] || (oe[0] = (ge) => Rn(Dt) ? Dt.value = ge : null),
3197
+ "onUpdate:modelValue": re[0] || (re[0] = (ge) => Rn(Dt) ? Dt.value = ge : null),
3196
3198
  ref_key: "addForm",
3197
3199
  ref: Zn
3198
3200
  }, null, 8, ["schema", "modelValue"])
@@ -3203,26 +3205,26 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3203
3205
  class: "flex gap-1 w-full",
3204
3206
  ref_key: "selectRoot",
3205
3207
  ref: u,
3206
- onClick: oe[4] || (oe[4] = Fe(() => {
3208
+ onClick: re[4] || (re[4] = Fe(() => {
3207
3209
  }, ["stop"]))
3208
3210
  }, [
3209
3211
  c("div", {
3210
- class: re(["relative w-full font-sans", n.customClass])
3212
+ class: oe(["relative w-full font-sans", n.customClass])
3211
3213
  }, [
3212
- oe[5] || (oe[5] = c("span", {
3214
+ re[5] || (re[5] = c("span", {
3213
3215
  id: "react-select-live-region",
3214
3216
  class: "sr-only"
3215
3217
  }, null, -1)),
3216
- oe[6] || (oe[6] = c("span", {
3218
+ re[6] || (re[6] = c("span", {
3217
3219
  "aria-live": "polite",
3218
3220
  "aria-atomic": "false",
3219
3221
  "aria-relevant": "additions text",
3220
3222
  role: "log",
3221
3223
  class: "sr-only"
3222
3224
  }, null, -1)),
3223
- Q(fi, {
3225
+ Q(pi, {
3224
3226
  keyWord: C.value,
3225
- "onUpdate:keyWord": oe[2] || (oe[2] = (ge) => C.value = ge),
3227
+ "onUpdate:keyWord": re[2] || (re[2] = (ge) => C.value = ge),
3226
3228
  disabled: a.value,
3227
3229
  "is-open": _.value,
3228
3230
  "input-focus": $.value,
@@ -3253,7 +3255,7 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3253
3255
  "on-clear-selected": Me,
3254
3256
  "on-toggle-select": T
3255
3257
  }, null, 8, ["keyWord", "disabled", "is-open", "input-focus", "is-multi", "selected-options", "selected-ids", "placeholder", "search", "option-template", "selected-option-label", "selected-option", "show-clear"]),
3256
- Q(yi, {
3258
+ Q(hi, {
3257
3259
  "is-open": _.value,
3258
3260
  "dropdown-style": J.value,
3259
3261
  "filtered-options-list": z.value,
@@ -3274,22 +3276,22 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3274
3276
  ], 2),
3275
3277
  n.add ? (i(), m("button", {
3276
3278
  key: 0,
3277
- onClick: oe[3] || (oe[3] = //@ts-ignore
3279
+ onClick: re[3] || (re[3] = //@ts-ignore
3278
3280
  (...ge) => B(an) && B(an)(...ge)),
3279
3281
  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",
3280
3282
  disabled: a.value,
3281
3283
  type: "button"
3282
3284
  }, [
3283
3285
  Q(B(xt), { class: "h-4 w-4" }),
3284
- oe[7] || (oe[7] = c("span", null, "Додати", -1))
3285
- ], 8, hi)) : W("", !0)
3286
+ re[7] || (re[7] = c("span", null, "Додати", -1))
3287
+ ], 8, bi)) : K("", !0)
3286
3288
  ], 512)
3287
3289
  ], 64));
3288
3290
  }
3289
- }), El = /* @__PURE__ */ Ne(bi, [["__scopeId", "data-v-47aa1c50"]]), yl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, wi = ["disabled", "aria-expanded"], xi = { class: "truncate" }, ki = { class: "py-2 px-4" }, _i = { class: "block font-medium text-[13px] text-foreground" }, $i = { class: "truncate" }, Ci = { class: "p-1 border-t border-gray-200" }, Si = { class: "space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-none [&::-webkit-scrollbar-track]:bg-scrollbar-track [&::-webkit-scrollbar-thumb]:bg-scrollbar-thumb" }, Vi = ["onClick"], Mi = ["checked"], Li = { class: "shrink-0 size-3.5 flex justify-center items-center" }, Di = {
3291
+ }), El = /* @__PURE__ */ Ne(wi, [["__scopeId", "data-v-47aa1c50"]]), yl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, xi = ["disabled", "aria-expanded"], ki = { class: "truncate" }, _i = { class: "py-2 px-4" }, $i = { class: "block font-medium text-[13px] text-foreground" }, Ci = { class: "truncate" }, Si = { class: "p-1 border-t border-gray-200" }, Vi = { class: "space-y-0.5 max-h-48 overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-none [&::-webkit-scrollbar-track]:bg-scrollbar-track [&::-webkit-scrollbar-thumb]:bg-scrollbar-thumb" }, Mi = ["onClick"], Li = ["checked"], Di = { class: "shrink-0 size-3.5 flex justify-center items-center" }, Ai = {
3290
3292
  key: 1,
3291
3293
  class: "shrink-0 size-2 block mx-auto rounded-full bg-secondary/60"
3292
- }, Ai = { class: "truncate" }, Ii = {
3294
+ }, Ii = { class: "truncate" }, Ti = {
3293
3295
  key: 0,
3294
3296
  class: "px-3 py-2 text-xs text-stone-500"
3295
3297
  }, al = /* @__PURE__ */ fe({
@@ -3447,14 +3449,14 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3447
3449
  disabled: s.value,
3448
3450
  "aria-expanded": f.value ? "true" : "false",
3449
3451
  "aria-haspopup": "menu",
3450
- class: re([
3452
+ class: oe([
3451
3453
  "py-1.5 px-2.5 inline-flex items-center gap-2 text-nowrap text-xs sm:text-[13px] rounded-lg focus:outline-hidden disabled:opacity-50 disabled:pointer-events-none max-w-full border",
3452
3454
  P.value ? `${P.value} text-white` : "bg-secondary text-secondary-foreground hover:bg-secondary-hover focus:bg-secondary-focus border-gray-300 hover:border-gray-400"
3453
3455
  ]),
3454
3456
  onClick: Ue
3455
3457
  }, [
3456
- c("span", xi, ce(y.value), 1)
3457
- ], 10, wi),
3458
+ c("span", ki, ce(y.value), 1)
3459
+ ], 10, xi),
3458
3460
  (i(), be(tn, { to: S.value }, [
3459
3461
  f.value ? (i(), m("div", {
3460
3462
  key: 0,
@@ -3465,13 +3467,13 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3465
3467
  role: "menu",
3466
3468
  "aria-orientation": "vertical"
3467
3469
  }, [
3468
- c("div", ki, [
3469
- c("span", _i, [
3470
- c("span", $i, ce(h.value), 1)
3470
+ c("div", _i, [
3471
+ c("span", $i, [
3472
+ c("span", Ci, ce(h.value), 1)
3471
3473
  ])
3472
3474
  ]),
3473
- c("div", Ci, [
3474
- c("div", Si, [
3475
+ c("div", Si, [
3476
+ c("div", Vi, [
3475
3477
  (i(!0), m($e, null, Ie(B(J), (_e) => (i(), m("label", {
3476
3478
  key: _e.id,
3477
3479
  class: "py-1.5 px-3 group flex items-center gap-x-3 rounded-lg cursor-pointer text-[13px] text-gray-800 hover:bg-gray-100",
@@ -3483,27 +3485,27 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3483
3485
  name: g,
3484
3486
  checked: z(_e.id),
3485
3487
  tabindex: "-1"
3486
- }, null, 8, Mi),
3487
- c("span", Li, [
3488
+ }, null, 8, Li),
3489
+ c("span", Di, [
3488
3490
  te(_e) ? (i(), m("span", {
3489
3491
  key: 0,
3490
3492
  class: "shrink-0 size-2 block mx-auto rounded-full",
3491
3493
  style: Ve({ backgroundColor: _e.color })
3492
- }, null, 4)) : (i(), m("span", Di))
3494
+ }, null, 4)) : (i(), m("span", Ai))
3493
3495
  ]),
3494
- c("span", Ai, ce(U(_e)), 1),
3496
+ c("span", Ii, ce(U(_e)), 1),
3495
3497
  Q(B(Zl), {
3496
- class: re(["shrink-0 size-3.5 ms-auto transition-opacity", z(_e.id) ? "opacity-100" : "opacity-0"])
3498
+ class: oe(["shrink-0 size-3.5 ms-auto transition-opacity", z(_e.id) ? "opacity-100" : "opacity-0"])
3497
3499
  }, null, 8, ["class"])
3498
- ], 8, Vi))), 128))
3500
+ ], 8, Mi))), 128))
3499
3501
  ]),
3500
- B(J).length ? W("", !0) : (i(), m("p", Ii, "Немає варіантів"))
3502
+ B(J).length ? K("", !0) : (i(), m("p", Ti, "Немає варіантів"))
3501
3503
  ])
3502
- ], 4)) : W("", !0)
3504
+ ], 4)) : K("", !0)
3503
3505
  ], 8, ["to"]))
3504
3506
  ], 512));
3505
3507
  }
3506
- }), Ti = ["placeholder", "disabled"], Fi = /* @__PURE__ */ fe({
3508
+ }), Fi = ["placeholder", "disabled"], Ei = /* @__PURE__ */ fe({
3507
3509
  __name: "vs-input-textarea",
3508
3510
  props: /* @__PURE__ */ Ee({
3509
3511
  style: { default: () => ({}) },
@@ -3531,15 +3533,15 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3531
3533
  disabled: l.value,
3532
3534
  row: "2",
3533
3535
  onBlur: r,
3534
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [B(n)]]),
3536
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [B(n)]]),
3535
3537
  style: {
3536
3538
  border: "1px solid #CFD9E0"
3537
3539
  }
3538
- }, null, 42, Ti)), [
3540
+ }, null, 42, Fi)), [
3539
3541
  [We, o.value]
3540
3542
  ]);
3541
3543
  }
3542
- }), Ei = /* @__PURE__ */ fe({
3544
+ }), Pi = /* @__PURE__ */ fe({
3543
3545
  __name: "vs-input-richtext",
3544
3546
  props: /* @__PURE__ */ Ee({
3545
3547
  style: { default: () => ({}) },
@@ -3559,13 +3561,13 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3559
3561
  }),
3560
3562
  emits: ["update:modelValue"],
3561
3563
  setup(e) {
3562
- const t = Fa(() => import("./vs-richtext-9bPmzXHt.js")), n = e, { inputClass: o } = st(n.style), l = Be(e, "modelValue"), a = w(() => !!n.disabled), r = w(() => n.placeholder ?? ""), s = w(() => ({
3564
+ const t = Fa(() => import("./vs-richtext-DueG40ns.js")), n = e, { inputClass: o } = st(n.style), l = Be(e, "modelValue"), a = w(() => !!n.disabled), r = w(() => n.placeholder ?? ""), s = w(() => ({
3563
3565
  height: n.richtextProps.height || "300px",
3564
3566
  format: n.format,
3565
3567
  ...n.richtextProps
3566
3568
  }));
3567
3569
  return (u, f) => (i(), m("div", {
3568
- class: re(["!h-full", [u.customClass, B(o)]]),
3570
+ class: oe(["!h-full", [u.customClass, B(o)]]),
3569
3571
  style: Ve(a.value ? { pointerEvents: "none", opacity: 0.6 } : {})
3570
3572
  }, [
3571
3573
  Q(B(t), Kt({
@@ -3575,42 +3577,42 @@ const Ko = { class: "relative w-full bg-white rounded-lg" }, Go = { class: "abso
3575
3577
  }, s.value), null, 16, ["modelValue", "placeholder"])
3576
3578
  ], 6));
3577
3579
  }
3578
- }), Pi = {}, Oi = {
3580
+ }), Oi = {}, Bi = {
3579
3581
  viewBox: "0 0 178 90",
3580
3582
  fill: "none",
3581
3583
  xmlns: "http://www.w3.org/2000/svg"
3582
3584
  };
3583
- function Bi(e, t) {
3584
- return i(), m("svg", Oi, t[0] || (t[0] = [
3585
+ function Ri(e, t) {
3586
+ return i(), m("svg", Bi, t[0] || (t[0] = [
3585
3587
  ml('<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)
3586
3588
  ]));
3587
3589
  }
3588
- const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, ji = {
3590
+ const Ni = /* @__PURE__ */ Ne(Oi, [["render", Ri]]), ji = { class: "bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden flex flex-col" }, Ui = {
3589
3591
  key: 0,
3590
3592
  class: "flex flex-col gap-2 !p-4 border-b border-gray-200 md:flex-row md:items-center md:justify-between bg-gray-50"
3591
- }, Ui = {
3593
+ }, zi = {
3592
3594
  key: 0,
3593
3595
  class: "relative flex-1 min-w-0"
3594
- }, zi = { class: "flex flex-nowrap items-center justify-end gap-2 shrink-0" }, Hi = { class: "w-full overflow-x-auto" }, qi = { class: "w-full min-w-[640px] table-auto divide-y divide-gray-200" }, Wi = { class: "bg-gray-50" }, Ki = { class: "border-b border-gray-200" }, Gi = { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 w-12 text-center" }, Yi = ["onClick"], Zi = {
3596
+ }, Hi = { class: "flex flex-nowrap items-center justify-end gap-2 shrink-0" }, qi = { class: "w-full overflow-x-auto" }, Wi = { class: "w-full min-w-[640px] table-auto divide-y divide-gray-200" }, Ki = { class: "bg-gray-50" }, Gi = { class: "border-b border-gray-200" }, Yi = { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 w-12 text-center" }, Zi = ["onClick"], Ji = {
3595
3597
  key: 0,
3596
3598
  class: "text-gray-400"
3597
- }, Ji = {
3599
+ }, Xi = {
3598
3600
  key: 0,
3599
3601
  colspan: "100%",
3600
3602
  class: "text-center"
3601
- }, Xi = { class: "w-full" }, Qi = { class: "p-5 min-h-[200px] flex flex-col justify-center items-center text-center" }, eu = ["data-row-index", "onDragstart", "onDragover", "onDrop"], tu = ["onPointerdown"], nu = { class: "flex items-center justify-center" }, lu = ["innerHTML"], au = {
3603
+ }, Qi = { class: "w-full" }, eu = { class: "p-5 min-h-[200px] flex flex-col justify-center items-center text-center" }, tu = ["data-row-index", "onDragstart", "onDragover", "onDrop"], nu = ["onPointerdown"], lu = { class: "flex items-center justify-center" }, au = ["innerHTML"], ou = {
3602
3604
  key: 0,
3603
3605
  class: "flex items-center gap-3 text-sm text-gray-700"
3604
- }, ou = { key: 0 }, ru = ["src"], su = {
3606
+ }, ru = { key: 0 }, su = ["src"], iu = {
3605
3607
  key: 1,
3606
3608
  class: "rounded-md max-w-[45px] w-[45px] max-h-[45px] h-[45px] bg-gray-200 flex items-center justify-center"
3607
- }, iu = {
3609
+ }, uu = {
3608
3610
  key: 1,
3609
3611
  class: "flex items-center justify-center"
3610
- }, uu = {
3612
+ }, du = {
3611
3613
  key: 2,
3612
3614
  class: "text-sm font-medium text-gray-900"
3613
- }, du = { class: "px-4 py-3 text-right whitespace-nowrap" }, cu = { class: "flex items-center justify-end gap-2" }, fu = ["onClick"], pu = ["onClick"], mu = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, vu = /* @__PURE__ */ fe({
3615
+ }, cu = { class: "px-4 py-3 text-right whitespace-nowrap" }, fu = { class: "flex items-center justify-end gap-2" }, pu = ["onClick"], mu = ["onClick"], vu = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, gu = /* @__PURE__ */ fe({
3614
3616
  __name: "vs-input-datatable",
3615
3617
  props: /* @__PURE__ */ Ee({
3616
3618
  actions: {},
@@ -3836,9 +3838,9 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3836
3838
  function ft() {
3837
3839
  ke.value = !1;
3838
3840
  }
3839
- return (R, ee) => (i(), m("div", Ni, [
3840
- a.value ? (i(), m("div", ji, [
3841
- o("search") ? (i(), m("div", Ui, [
3841
+ return (R, ee) => (i(), m("div", ji, [
3842
+ a.value ? (i(), m("div", Ui, [
3843
+ o("search") ? (i(), m("div", zi, [
3842
3844
  Q(B(Un), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400" }),
3843
3845
  Le(c("input", {
3844
3846
  type: "text",
@@ -3848,8 +3850,8 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3848
3850
  }, null, 512), [
3849
3851
  [We, u.value]
3850
3852
  ])
3851
- ])) : W("", !0),
3852
- c("div", zi, [
3853
+ ])) : K("", !0),
3854
+ c("div", Hi, [
3853
3855
  o("import") ? (i(), m("input", {
3854
3856
  key: 0,
3855
3857
  ref_key: "fileInput",
@@ -3858,7 +3860,7 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3858
3860
  class: "hidden",
3859
3861
  accept: ".json",
3860
3862
  type: "file"
3861
- }, null, 544)) : W("", !0),
3863
+ }, null, 544)) : K("", !0),
3862
3864
  o("import") ? (i(), m("button", {
3863
3865
  key: 1,
3864
3866
  type: "button",
@@ -3867,7 +3869,7 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3867
3869
  }, [
3868
3870
  Q(B(Xl), { class: "h-4 w-4 text-gray-700" }),
3869
3871
  ee[4] || (ee[4] = je(" Імпорт ", -1))
3870
- ])) : W("", !0),
3872
+ ])) : K("", !0),
3871
3873
  o("export") ? (i(), m("button", {
3872
3874
  key: 2,
3873
3875
  type: "button",
@@ -3876,7 +3878,7 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3876
3878
  }, [
3877
3879
  Q(B(vl), { class: "h-4 w-4 text-gray-700" }),
3878
3880
  ee[5] || (ee[5] = je(" Експорт ", -1))
3879
- ])) : W("", !0),
3881
+ ])) : K("", !0),
3880
3882
  o("add") ? (i(), m("button", {
3881
3883
  key: 3,
3882
3884
  onClick: Ke,
@@ -3885,14 +3887,14 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3885
3887
  }, [
3886
3888
  Q(B(xt), { class: "h-4 w-4 text-white" }),
3887
3889
  ee[6] || (ee[6] = je(" Додати ", -1))
3888
- ])) : W("", !0)
3890
+ ])) : K("", !0)
3889
3891
  ])
3890
- ])) : W("", !0),
3891
- c("div", Hi, [
3892
- c("table", qi, [
3893
- c("thead", Wi, [
3894
- c("tr", Ki, [
3895
- c("th", Gi, [
3892
+ ])) : K("", !0),
3893
+ c("div", qi, [
3894
+ c("table", Wi, [
3895
+ c("thead", Ki, [
3896
+ c("tr", Gi, [
3897
+ c("th", Yi, [
3896
3898
  Q(B(rn), { class: "mx-auto h-4 w-4 text-gray-400" })
3897
3899
  ]),
3898
3900
  (i(!0), m($e, null, Ie(_.value, (se) => (i(), m("th", {
@@ -3905,30 +3907,30 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3905
3907
  class: "flex items-center gap-1 text-xs font-semibold text-gray-700 hover:text-gray-900 transition-colors"
3906
3908
  }, [
3907
3909
  c("span", null, ce(se.ua || se.label), 1),
3908
- f.value === (se.key || se.name) ? (i(), m("span", Zi, ce(p.value === "asc" ? "▲" : "▼"), 1)) : W("", !0)
3909
- ], 8, Yi)
3910
+ f.value === (se.key || se.name) ? (i(), m("span", Ji, ce(p.value === "asc" ? "▲" : "▼"), 1)) : K("", !0)
3911
+ ], 8, Zi)
3910
3912
  ]))), 128)),
3911
3913
  ee[7] || (ee[7] = c("th", { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 text-center w-[1%] whitespace-nowrap" }, " Дії ", -1))
3912
3914
  ])
3913
3915
  ]),
3914
3916
  c("tbody", {
3915
- class: re(["divide-y divide-gray-200", { "[&_tr:last-child]:border-0": !g.value }])
3917
+ class: oe(["divide-y divide-gray-200", { "[&_tr:last-child]:border-0": !g.value }])
3916
3918
  }, [
3917
- x.value.length === 0 ? (i(), m("td", Ji, [
3918
- c("div", Xi, [
3919
- c("div", Qi, [
3920
- Q(Ri, { class: "w-48 mx-auto" }),
3919
+ x.value.length === 0 ? (i(), m("td", Xi, [
3920
+ c("div", Qi, [
3921
+ c("div", eu, [
3922
+ Q(Ni, { class: "w-48 mx-auto" }),
3921
3923
  ee[8] || (ee[8] = c("div", { class: "max-w-sm mx-auto mt-6" }, [
3922
3924
  c("p", { class: "font-medium text-gray-800 dark:text-neutral-200" }, "Нічого не знайдено"),
3923
3925
  c("p", { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" })
3924
3926
  ], -1))
3925
3927
  ])
3926
3928
  ])
3927
- ])) : W("", !0),
3929
+ ])) : K("", !0),
3928
3930
  (i(!0), m($e, null, Ie(x.value, (se, T) => (i(), m("tr", {
3929
3931
  key: se.id,
3930
3932
  "data-row-index": T,
3931
- class: re(["border-b transition-colors hover:bg-gray-50 cursor-move text-sm text-gray-700", {
3933
+ class: oe(["border-b transition-colors hover:bg-gray-50 cursor-move text-sm text-gray-700", {
3932
3934
  "opacity-50": $.value === T,
3933
3935
  "border-t-2 border-b-2 border-blue-500 bg-blue-50 dark:bg-blue-900/20": g.value === T
3934
3936
  }]),
@@ -3944,10 +3946,10 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3944
3946
  onPointerup: L,
3945
3947
  onPointercancel: U
3946
3948
  }, [
3947
- c("div", nu, [
3949
+ c("div", lu, [
3948
3950
  Q(B(rn), { class: "mx-auto h-4 w-4 text-slate-400 dark:text-slate-500" })
3949
3951
  ])
3950
- ], 40, tu),
3952
+ ], 40, nu),
3951
3953
  (i(!0), m($e, null, Ie(_.value, (Y) => (i(), m("td", {
3952
3954
  key: Y.key,
3953
3955
  class: "px-4 py-3 align-middle"
@@ -3962,44 +3964,44 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
3962
3964
  key: 1,
3963
3965
  class: "text-sm text-gray-900",
3964
3966
  innerHTML: Oe(Y.slot, se)
3965
- }, null, 8, lu))
3967
+ }, null, 8, au))
3966
3968
  ], 64)) : (i(), m($e, { key: 1 }, [
3967
- ie(Y) === "file" ? (i(), m("div", au, [
3968
- ae(ze(se, Y)) ? (i(), m("div", ou, [
3969
+ ie(Y) === "file" ? (i(), m("div", ou, [
3970
+ ae(ze(se, Y)) ? (i(), m("div", ru, [
3969
3971
  c("img", {
3970
3972
  src: ze(se, Y),
3971
3973
  alt: "alt",
3972
3974
  width: "45",
3973
3975
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
3974
- }, null, 8, ru)
3975
- ])) : (i(), m("div", su, [
3976
+ }, null, 8, su)
3977
+ ])) : (i(), m("div", iu, [
3976
3978
  Q(B(Nn), { class: "h-4 w-4 min-w-4" })
3977
3979
  ]))
3978
- ])) : ie(Y) === "color" ? (i(), m("div", iu, [
3980
+ ])) : ie(Y) === "color" ? (i(), m("div", uu, [
3979
3981
  c("span", {
3980
3982
  class: "inline-flex h-6 w-6 rounded border border-gray-200",
3981
3983
  style: Ve({ backgroundColor: ze(se, Y) || "#ffffff" })
3982
3984
  }, null, 4)
3983
- ])) : (i(), m("div", uu, ce(ze(se, Y)), 1))
3985
+ ])) : (i(), m("div", du, ce(ze(se, Y)), 1))
3984
3986
  ], 64))
3985
3987
  ]))), 128)),
3986
- c("td", du, [
3987
- c("div", cu, [
3988
+ c("td", cu, [
3989
+ c("div", fu, [
3988
3990
  c("button", {
3989
3991
  onClick: (Y) => qe(se, T),
3990
3992
  class: "p-1.5 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded transition-colors"
3991
3993
  }, [
3992
3994
  Q(B(za), { class: "h-4 w-4" })
3993
- ], 8, fu),
3995
+ ], 8, pu),
3994
3996
  c("button", {
3995
3997
  onClick: (Y) => et(T),
3996
3998
  class: "p-1.5 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded transition-colors"
3997
3999
  }, [
3998
4000
  Q(B(nn), { class: "h-4 w-4" })
3999
- ], 8, pu)
4001
+ ], 8, mu)
4000
4002
  ])
4001
4003
  ])
4002
- ], 42, eu))), 128))
4004
+ ], 42, tu))), 128))
4003
4005
  ], 2)
4004
4006
  ])
4005
4007
  ]),
@@ -4019,7 +4021,7 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
4019
4021
  form: ne.value,
4020
4022
  "onUpdate:form": ee[2] || (ee[2] = (se) => ne.value = se)
4021
4023
  }, null, 8, ["schema", "values", "form"]),
4022
- c("div", mu, [
4024
+ c("div", vu, [
4023
4025
  c("button", {
4024
4026
  type: "button",
4025
4027
  onClick: ee[3] || (ee[3] = (se) => ke.value = !1),
@@ -4036,7 +4038,7 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
4036
4038
  }, 8, ["visible", "title"])
4037
4039
  ]));
4038
4040
  }
4039
- }), gu = {}, yu = {
4041
+ }), yu = {}, hu = {
4040
4042
  xmlns: "http://www.w3.org/2000/svg",
4041
4043
  viewBox: "0 0 24 24",
4042
4044
  fill: "none",
@@ -4046,8 +4048,8 @@ const Ri = /* @__PURE__ */ Ne(Pi, [["render", Bi]]), Ni = { class: "bg-white rou
4046
4048
  "stroke-linejoin": "round",
4047
4049
  class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
4048
4050
  };
4049
- function hu(e, t) {
4050
- return i(), m("svg", yu, t[0] || (t[0] = [
4051
+ function bu(e, t) {
4052
+ return i(), m("svg", hu, t[0] || (t[0] = [
4051
4053
  c("path", {
4052
4054
  stroke: "none",
4053
4055
  d: "M0 0h24v24H0z",
@@ -4058,7 +4060,7 @@ function hu(e, t) {
4058
4060
  c("path", { d: "M7.5 16.5l9 -9" }, null, -1)
4059
4061
  ]));
4060
4062
  }
4061
- const bu = /* @__PURE__ */ Ne(gu, [["render", hu]]), wu = {}, xu = {
4063
+ const wu = /* @__PURE__ */ Ne(yu, [["render", bu]]), xu = {}, ku = {
4062
4064
  xmlns: "http://www.w3.org/2000/svg",
4063
4065
  viewBox: "0 0 24 24",
4064
4066
  fill: "none",
@@ -4068,12 +4070,12 @@ const bu = /* @__PURE__ */ Ne(gu, [["render", hu]]), wu = {}, xu = {
4068
4070
  "stroke-linejoin": "round",
4069
4071
  class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
4070
4072
  };
4071
- function ku(e, t) {
4072
- return i(), m("svg", xu, t[0] || (t[0] = [
4073
+ function _u(e, t) {
4074
+ return i(), m("svg", ku, t[0] || (t[0] = [
4073
4075
  ml('<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)
4074
4076
  ]));
4075
4077
  }
4076
- const _u = /* @__PURE__ */ Ne(wu, [["render", ku]]), $u = {}, Cu = {
4078
+ const $u = /* @__PURE__ */ Ne(xu, [["render", _u]]), Cu = {}, Su = {
4077
4079
  xmlns: "http://www.w3.org/2000/svg",
4078
4080
  viewBox: "0 0 24 24",
4079
4081
  fill: "none",
@@ -4083,12 +4085,12 @@ const _u = /* @__PURE__ */ Ne(wu, [["render", ku]]), $u = {}, Cu = {
4083
4085
  "stroke-linejoin": "round",
4084
4086
  class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
4085
4087
  };
4086
- function Su(e, t) {
4087
- return i(), m("svg", Cu, t[0] || (t[0] = [
4088
+ function Vu(e, t) {
4089
+ return i(), m("svg", Su, t[0] || (t[0] = [
4088
4090
  ml('<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)
4089
4091
  ]));
4090
4092
  }
4091
- const Vu = /* @__PURE__ */ Ne($u, [["render", Su]]), Mu = { class: "bg-white/30 p-1 rounded-md shadow w-fit" }, Lu = { class: "flex gap-2" }, Du = ["onClick", "title"], Au = ["src"], Iu = /* @__PURE__ */ fe({
4093
+ const Mu = /* @__PURE__ */ Ne(Cu, [["render", Vu]]), Lu = { class: "bg-white/30 p-1 rounded-md shadow w-fit" }, Du = { class: "flex gap-2" }, Au = ["onClick", "title"], Iu = ["src"], Tu = /* @__PURE__ */ fe({
4092
4094
  __name: "map-layers",
4093
4095
  props: {
4094
4096
  basemaps: {}
@@ -4113,11 +4115,11 @@ const Vu = /* @__PURE__ */ Ne($u, [["render", Su]]), Mu = { class: "bg-white/30
4113
4115
  p = p.replace(new RegExp(x, "gi"), String(_));
4114
4116
  }), p;
4115
4117
  }
4116
- return (u, f) => (i(), m("div", Mu, [
4117
- c("div", Lu, [
4118
+ return (u, f) => (i(), m("div", Lu, [
4119
+ c("div", Du, [
4118
4120
  (i(!0), m($e, null, Ie(u.basemaps, (p, x) => (i(), m("div", {
4119
4121
  key: x,
4120
- class: re(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": o.value === x }]),
4122
+ class: oe(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": o.value === x }]),
4121
4123
  onClick: (_) => a(x),
4122
4124
  title: p.name || x,
4123
4125
  role: "button",
@@ -4127,13 +4129,13 @@ const Vu = /* @__PURE__ */ Ne($u, [["render", Su]]), Mu = { class: "bg-white/30
4127
4129
  src: s(p),
4128
4130
  alt: "",
4129
4131
  class: "w-10 h-10 object-cover"
4130
- }, null, 8, Au)
4131
- ], 10, Du))), 128))
4132
+ }, null, 8, Iu)
4133
+ ], 10, Au))), 128))
4132
4134
  ])
4133
4135
  ]));
4134
4136
  }
4135
- }), Xt = 1e-10, Vn = /([+-]?\d{1,3})\s*[°º˚]\s*(\d{1,2})\s*['’′`]\s*(\d{1,2}(?:\.\d+)?)\s*["”″]\s*([NSEW])/gi, Tu = /^[+-]?\d+(?:\.\d+)?$/;
4136
- function Fu(e, t, n) {
4137
+ }), Xt = 1e-10, Vn = /([+-]?\d{1,3})\s*[°º˚]\s*(\d{1,2})\s*['’′`]\s*(\d{1,2}(?:\.\d+)?)\s*["”″]\s*([NSEW])/gi, Fu = /^[+-]?\d+(?:\.\d+)?$/;
4138
+ function Eu(e, t, n) {
4137
4139
  const o = e.split(/\r?\n/).map((f) => f.trim()).filter(Boolean);
4138
4140
  if (o.length < 3)
4139
4141
  return {
@@ -4157,7 +4159,7 @@ function Fu(e, t, n) {
4157
4159
  };
4158
4160
  const l = [], a = [];
4159
4161
  if (o.forEach((f, p) => {
4160
- const x = p + 1, _ = t === "decimal" ? Eu(f, x, n) : ua(f, x, n);
4162
+ const x = p + 1, _ = t === "decimal" ? Pu(f, x, n) : ua(f, x, n);
4161
4163
  if (!_.ok) {
4162
4164
  l.push(..._.errors);
4163
4165
  return;
@@ -4170,7 +4172,7 @@ function Fu(e, t, n) {
4170
4172
  a.push(_.point);
4171
4173
  }), l.length)
4172
4174
  return { ok: !1, errors: l };
4173
- if (new Set(a.map(Ou)).size < 3)
4175
+ if (new Set(a.map(Bu)).size < 3)
4174
4176
  return {
4175
4177
  ok: !1,
4176
4178
  errors: [
@@ -4182,7 +4184,7 @@ function Fu(e, t, n) {
4182
4184
  };
4183
4185
  const s = [...a];
4184
4186
  let u = !1;
4185
- return Ol(s[0], s[s.length - 1]) || (s.push(s[0]), u = !0), Bu(s) ? {
4187
+ return Ol(s[0], s[s.length - 1]) || (s.push(s[0]), u = !0), Ru(s) ? {
4186
4188
  ok: !1,
4187
4189
  errors: [
4188
4190
  {
@@ -4196,13 +4198,13 @@ function Fu(e, t, n) {
4196
4198
  wasClosedAutomatically: u
4197
4199
  };
4198
4200
  }
4199
- function Eu(e, t, n) {
4201
+ function Pu(e, t, n) {
4200
4202
  return ia(e, "decimal", n, t);
4201
4203
  }
4202
4204
  function ia(e, t, n, o = 1) {
4203
- return t === "decimal" ? Pu(e, o, n) : ua(e, o, n);
4205
+ return t === "decimal" ? Ou(e, o, n) : ua(e, o, n);
4204
4206
  }
4205
- function Pu(e, t, n) {
4207
+ function Ou(e, t, n) {
4206
4208
  const o = [];
4207
4209
  if (/[A-Za-zА-Яа-яІіЇїЄєҐґ]/.test(e))
4208
4210
  return {
@@ -4220,7 +4222,7 @@ function Pu(e, t, n) {
4220
4222
  ok: !1,
4221
4223
  errors: [{ line: t, message: "У рядку дозволено лише одну пару координат." }]
4222
4224
  };
4223
- if (!l.every((f) => Tu.test(f)))
4225
+ if (!l.every((f) => Fu.test(f)))
4224
4226
  return {
4225
4227
  ok: !1,
4226
4228
  errors: [{ line: t, message: "Не вдалося розпізнати десяткові координати." }]
@@ -4293,25 +4295,25 @@ function Pl(e, t, n) {
4293
4295
  const x = f + l / 60 + a / 3600;
4294
4296
  return { ok: !0, value: r === "S" || r === "W" ? -x : x };
4295
4297
  }
4296
- function Ou(e) {
4298
+ function Bu(e) {
4297
4299
  return `${e[0].toFixed(12)}:${e[1].toFixed(12)}`;
4298
4300
  }
4299
4301
  function Ol(e, t) {
4300
4302
  return Math.abs(e[0] - t[0]) < Xt && Math.abs(e[1] - t[1]) < Xt;
4301
4303
  }
4302
- function Bu(e) {
4304
+ function Ru(e) {
4303
4305
  if (e.length < 4) return !1;
4304
4306
  for (let t = 0; t < e.length - 1; t += 1) {
4305
4307
  const n = e[t], o = e[t + 1];
4306
4308
  for (let l = t + 1; l < e.length - 1; l += 1) {
4307
4309
  if (Math.abs(t - l) <= 1 || t === 0 && l === e.length - 2) continue;
4308
4310
  const a = e[l], r = e[l + 1];
4309
- if (Ru(n, o, a, r)) return !0;
4311
+ if (Nu(n, o, a, r)) return !0;
4310
4312
  }
4311
4313
  }
4312
4314
  return !1;
4313
4315
  }
4314
- function Ru(e, t, n, o) {
4316
+ function Nu(e, t, n, o) {
4315
4317
  const l = Mn(e, t, n), a = Mn(e, t, o), r = Mn(n, o, e), s = Mn(n, o, t);
4316
4318
  return !!(l !== a && r !== s || l === 0 && Ln(e, n, t) || a === 0 && Ln(e, o, t) || r === 0 && Ln(n, e, o) || s === 0 && Ln(n, t, o));
4317
4319
  }
@@ -4322,16 +4324,16 @@ function Mn(e, t, n) {
4322
4324
  function Ln(e, t, n) {
4323
4325
  return t[0] <= Math.max(e[0], n[0]) + Xt && t[0] + Xt >= Math.min(e[0], n[0]) && t[1] <= Math.max(e[1], n[1]) + Xt && t[1] + Xt >= Math.min(e[1], n[1]);
4324
4326
  }
4325
- const Nu = ["title"], ju = {
4327
+ const ju = ["title"], Uu = {
4326
4328
  key: 0,
4327
4329
  class: "vs-select__options absolute z-50 mt-1 w-auto min-w-full bg-white border border-gray-300 shadow-lg rounded-lg text-sm text-gray-900"
4328
- }, Uu = ["onClick"], zu = ["placeholder"], Hu = { class: "absolute inset-y-0 right-2 flex items-center gap-1" }, qu = { class: "flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-100" }, Wu = { class: "text-xs font-semibold uppercase tracking-wide text-gray-500" }, Ku = { class: "max-h-[260px] overflow-auto" }, Gu = {
4330
+ }, zu = ["onClick"], Hu = ["placeholder"], qu = { class: "absolute inset-y-0 right-2 flex items-center gap-1" }, Wu = { class: "flex items-center justify-between gap-2 px-3 py-2 border-b border-gray-100" }, Ku = { class: "text-xs font-semibold uppercase tracking-wide text-gray-500" }, Gu = { class: "max-h-[260px] overflow-auto" }, Yu = {
4329
4331
  key: 0,
4330
4332
  class: "divide-y divide-gray-100"
4331
- }, Yu = ["onClick"], Zu = {
4333
+ }, Zu = ["onClick"], Ju = {
4332
4334
  key: 1,
4333
4335
  class: "px-3 py-3 text-xs text-gray-500"
4334
- }, Bl = "formMapSearchAddressHistory", Ju = 12, Xu = "https://geo.rv.ua/api-user/dzk.api", Qu = "https://nominatim.openstreetmap.org/search", ed = /* @__PURE__ */ fe({
4336
+ }, Bl = "formMapSearchAddressHistory", Xu = 12, Qu = "https://geo.rv.ua/api-user/dzk.api", ed = "https://nominatim.openstreetmap.org/search", td = /* @__PURE__ */ fe({
4335
4337
  __name: "map-search",
4336
4338
  props: {
4337
4339
  config: {}
@@ -4342,7 +4344,7 @@ const Nu = ["title"], ju = {
4342
4344
  mounted(F, O) {
4343
4345
  if (typeof document > "u") return;
4344
4346
  let q = null;
4345
- const D = 8, K = () => {
4347
+ const D = 8, W = () => {
4346
4348
  const ve = String(O?.value ?? "");
4347
4349
  if (!ve) return;
4348
4350
  q = document.createElement("div"), q.textContent = ve, Object.assign(q.style, {
@@ -4361,7 +4363,7 @@ const Nu = ["title"], ju = {
4361
4363
  }, le = () => {
4362
4364
  q?.parentNode && q.parentNode.removeChild(q), q = null;
4363
4365
  };
4364
- F.addEventListener("mouseenter", K), F.addEventListener("mouseleave", le), Object.assign(F, { tooltipRightHandlers: { show: K, hide: le } });
4366
+ F.addEventListener("mouseenter", W), F.addEventListener("mouseleave", le), Object.assign(F, { tooltipRightHandlers: { show: W, hide: le } });
4365
4367
  },
4366
4368
  unmounted(F) {
4367
4369
  if (typeof document > "u") return;
@@ -4430,8 +4432,8 @@ const Nu = ["title"], ju = {
4430
4432
  });
4431
4433
  function ke() {
4432
4434
  if (!L.value) return;
4433
- const F = L.value.getBoundingClientRect(), O = S.value?.getBoundingClientRect(), q = O?.width ?? F.width, D = (O?.left ?? F.left) + window.scrollX, K = F.bottom + window.scrollY + Ju;
4434
- we.left = `${D}px`, we.top = `${K}px`, we.width = `${q}px`, we.display = "block";
4435
+ const F = L.value.getBoundingClientRect(), O = S.value?.getBoundingClientRect(), q = O?.width ?? F.width, D = (O?.left ?? F.left) + window.scrollX, W = F.bottom + window.scrollY + Xu;
4436
+ we.left = `${D}px`, we.top = `${W}px`, we.width = `${q}px`, we.display = "block";
4435
4437
  }
4436
4438
  const Ue = () => {
4437
4439
  G.value && ke();
@@ -4521,9 +4523,9 @@ const Nu = ["title"], ju = {
4521
4523
  if (!q) return null;
4522
4524
  const D = q.split(/\s+/).filter(Boolean);
4523
4525
  if (D.length < 2) return null;
4524
- const K = D.slice(0, 2).map(Number);
4525
- if (!K.every((it) => Number.isFinite(it))) return null;
4526
- let [le, ve] = K, Ae = le, pt = ve;
4526
+ const W = D.slice(0, 2).map(Number);
4527
+ if (!W.every((it) => Number.isFinite(it))) return null;
4528
+ let [le, ve] = W, Ae = le, pt = ve;
4527
4529
  const dt = (it) => Math.abs(it) <= 90, Tt = (it) => Math.abs(it) <= 180;
4528
4530
  if (!dt(Ae) || !Tt(pt))
4529
4531
  if (dt(pt) && Tt(Ae))
@@ -4537,19 +4539,19 @@ const Nu = ["title"], ju = {
4537
4539
  if (!O) return [];
4538
4540
  const q = O.geom_centroid;
4539
4541
  if (!q || !Array.isArray(q.coordinates)) return [];
4540
- const [D, K] = q.coordinates;
4541
- return !Number.isFinite(K) || !Number.isFinite(D) ? [] : [
4542
+ const [D, W] = q.coordinates;
4543
+ return !Number.isFinite(W) || !Number.isFinite(D) ? [] : [
4542
4544
  {
4543
4545
  id: "parcel",
4544
4546
  title: O.cadnum || O.cad_num || "Земельна ділянка",
4545
- lat: K,
4547
+ lat: W,
4546
4548
  lng: D
4547
4549
  }
4548
4550
  ];
4549
4551
  }
4550
4552
  function Ke(F) {
4551
4553
  return (Array.isArray(F?.features) ? F.features : []).map((q, D) => {
4552
- const K = q?.geometry?.coordinates, le = Number(K?.[0]), ve = Number(K?.[1]);
4554
+ const W = q?.geometry?.coordinates, le = Number(W?.[0]), ve = Number(W?.[1]);
4553
4555
  if (!Number.isFinite(ve) || !Number.isFinite(le)) return null;
4554
4556
  const Ae = q?.properties || {}, pt = Ae?.geocoding?.label || Ae?.display_name || Ae?.label || "Адреса";
4555
4557
  return { id: String(Ae?.geocoding?.place_id || Ae?.place_id || D), title: pt, lat: ve, lng: le };
@@ -4569,17 +4571,17 @@ const Nu = ["title"], ju = {
4569
4571
  return { lat: q, lng: O };
4570
4572
  const D = F?.geometry?.coordinates ?? F?.geom_centroid?.coordinates ?? F?.centroid?.coordinates ?? F?.geojson?.geometry?.coordinates ?? F?.geom?.coordinates;
4571
4573
  if (Array.isArray(D) && D.length >= 2) {
4572
- const K = Re(D[0]), le = Re(D[1]);
4573
- if (K != null && le != null) return { lat: le, lng: K };
4574
+ const W = Re(D[0]), le = Re(D[1]);
4575
+ if (W != null && le != null) return { lat: le, lng: W };
4574
4576
  }
4575
4577
  return null;
4576
4578
  }
4577
4579
  function qe(F) {
4578
4580
  return (Array.isArray(F?.data) ? F.data : []).map((q, D) => {
4579
- const K = ze(q), le = String(
4581
+ const W = ze(q), le = String(
4580
4582
  q.text ?? q.title ?? q.label ?? q.name ?? q.address ?? q.display_name ?? q.id ?? "Адреса"
4581
4583
  ), ve = String(q.id ?? q.code ?? q.value ?? D);
4582
- return K ? { id: ve, title: le, ...K } : { id: ve, title: le };
4584
+ return W ? { id: ve, title: le, ...W } : { id: ve, title: le };
4583
4585
  }).filter((q) => !!q?.title);
4584
4586
  }
4585
4587
  function Qe(F) {
@@ -4603,14 +4605,14 @@ const Nu = ["title"], ju = {
4603
4605
  return qe(D);
4604
4606
  }
4605
4607
  async function ft(F) {
4606
- const O = new URL(Qu);
4608
+ const O = new URL(ed);
4607
4609
  O.searchParams.set("format", "geojson"), O.searchParams.set("q", F), O.searchParams.set("addressdetails", "1"), O.searchParams.set("bounded", "1");
4608
4610
  const q = s();
4609
4611
  q && O.searchParams.set("viewbox", q);
4610
4612
  const D = await fetch(O.toString());
4611
4613
  if (!D.ok) throw new Error(`HTTP ${D.status}`);
4612
- const K = await D.json();
4613
- return Ke(K);
4614
+ const W = await D.json();
4615
+ return Ke(W);
4614
4616
  }
4615
4617
  async function R(F) {
4616
4618
  if (U.value = [], Pe(), g.value === "address") {
@@ -4658,7 +4660,7 @@ const Nu = ["title"], ju = {
4658
4660
  if (q.length !== 4) return !1;
4659
4661
  const D = [10, 2, 3, 4];
4660
4662
  return q.every(
4661
- (K, le) => K.length === D[le] && /^\d+$/.test(K)
4663
+ (W, le) => W.length === D[le] && /^\d+$/.test(W)
4662
4664
  );
4663
4665
  }
4664
4666
  function Y(F) {
@@ -4698,15 +4700,15 @@ const Nu = ["title"], ju = {
4698
4700
  });
4699
4701
  return;
4700
4702
  }
4701
- const O = new URL(Xu);
4703
+ const O = new URL(Qu);
4702
4704
  O.searchParams.set("cad_num", F);
4703
4705
  const q = await fetch(O.toString());
4704
4706
  if (!q.ok) throw new Error(`HTTP ${q.status}`);
4705
- const D = await q.json(), K = tt(D);
4706
- if (!K.length)
4707
+ const D = await q.json(), W = tt(D);
4708
+ if (!W.length)
4707
4709
  Ce({ type: "warning", title: "Пошук", message: "Не знайдено результатів" });
4708
4710
  else {
4709
- const le = K[0];
4711
+ const le = W[0];
4710
4712
  Y(le);
4711
4713
  }
4712
4714
  } catch (O) {
@@ -4742,11 +4744,11 @@ const Nu = ["title"], ju = {
4742
4744
  title: _e(g.value)
4743
4745
  }, [
4744
4746
  je(ce(_e(g.value)), 1)
4745
- ], 8, Nu)), [
4747
+ ], 8, ju)), [
4746
4748
  [n, Oe(g.value)]
4747
4749
  ]),
4748
4750
  (i(), m("svg", {
4749
- class: re(["w-4 h-4 text-gray-500 transition-transform", { "rotate-180": y.value }]),
4751
+ class: oe(["w-4 h-4 text-gray-500 transition-transform", { "rotate-180": y.value }]),
4750
4752
  viewBox: "0 0 24 24",
4751
4753
  fill: "none",
4752
4754
  xmlns: "http://www.w3.org/2000/svg"
@@ -4760,7 +4762,7 @@ const Nu = ["title"], ju = {
4760
4762
  }, null, -1)
4761
4763
  ]), 2))
4762
4764
  ]),
4763
- y.value ? (i(), m("div", ju, [
4765
+ y.value ? (i(), m("div", Uu, [
4764
4766
  c("ul", null, [
4765
4767
  (i(!0), m($e, null, Ie(_.value, (q) => Le((i(), m("li", {
4766
4768
  key: q,
@@ -4768,12 +4770,12 @@ const Nu = ["title"], ju = {
4768
4770
  onClick: (D) => Se(q, D)
4769
4771
  }, [
4770
4772
  je(ce(_e(q)), 1)
4771
- ], 8, Uu)), [
4773
+ ], 8, zu)), [
4772
4774
  [n, Oe(q)]
4773
4775
  ])), 128))
4774
4776
  ])
4775
- ])) : W("", !0)
4776
- ], 512)) : W("", !0),
4777
+ ])) : K("", !0)
4778
+ ], 512)) : K("", !0),
4777
4779
  c("div", {
4778
4780
  ref_key: "searchWrapperRef",
4779
4781
  ref: L,
@@ -4784,15 +4786,15 @@ const Nu = ["title"], ju = {
4784
4786
  modelValue: h.value,
4785
4787
  "onUpdate:modelValue": O[0] || (O[0] = (q) => h.value = q),
4786
4788
  mask: "0000000000:00:000:0000",
4787
- class: re(["vs-input !h-[34px] transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", H.value ? "!pr-14" : "!pr-8"])
4789
+ class: oe(["vs-input !h-[34px] transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", H.value ? "!pr-14" : "!pr-8"])
4788
4790
  }, null, 8, ["modelValue", "class"])) : Le((i(), m("input", {
4789
4791
  key: 1,
4790
4792
  "onUpdate:modelValue": O[1] || (O[1] = (q) => h.value = q),
4791
4793
  placeholder: $.value,
4792
4794
  type: "text",
4793
- class: re(["vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", H.value ? "!pr-14" : "!pr-8"]),
4795
+ class: oe(["vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", H.value ? "!pr-14" : "!pr-8"]),
4794
4796
  onFocus: se
4795
- }, null, 42, zu)), [
4797
+ }, null, 42, Hu)), [
4796
4798
  [
4797
4799
  We,
4798
4800
  h.value,
@@ -4800,7 +4802,7 @@ const Nu = ["title"], ju = {
4800
4802
  { trim: !0 }
4801
4803
  ]
4802
4804
  ]),
4803
- c("div", Hu, [
4805
+ c("div", qu, [
4804
4806
  H.value ? (i(), m("button", {
4805
4807
  key: 0,
4806
4808
  type: "button",
@@ -4822,7 +4824,7 @@ const Nu = ["title"], ju = {
4822
4824
  d: "M6 18L18 6M6 6l12 12"
4823
4825
  })
4824
4826
  ], -1)
4825
- ]))) : W("", !0),
4827
+ ]))) : K("", !0),
4826
4828
  O[5] || (O[5] = c("button", {
4827
4829
  type: "submit",
4828
4830
  class: "flex items-center text-gray-400 hover:text-gray-600",
@@ -4854,8 +4856,8 @@ const Nu = ["title"], ju = {
4854
4856
  class: "vs-select__options mt-1 bg-white border border-gray-300 rounded-lg shadow-lg text-sm text-gray-900 z-50",
4855
4857
  style: Ve(we)
4856
4858
  }, [
4857
- c("div", qu, [
4858
- c("span", Wu, ce(j.value), 1),
4859
+ c("div", Wu, [
4860
+ c("span", Ku, ce(j.value), 1),
4859
4861
  c("button", {
4860
4862
  type: "button",
4861
4863
  class: "text-gray-400 hover:text-gray-600",
@@ -4863,22 +4865,22 @@ const Nu = ["title"], ju = {
4863
4865
  onClick: O[2] || (O[2] = (q) => P.value = !1)
4864
4866
  }, " ✕ ")
4865
4867
  ]),
4866
- c("div", Ku, [
4867
- X.value.length ? (i(), m("ul", Gu, [
4868
+ c("div", Gu, [
4869
+ X.value.length ? (i(), m("ul", Yu, [
4868
4870
  (i(!0), m($e, null, Ie(X.value, (q) => (i(), m("li", {
4869
4871
  key: q.id,
4870
4872
  class: "px-3 py-2 cursor-pointer hover:bg-gray-50",
4871
4873
  onClick: (D) => ee(q)
4872
- }, ce(q.title), 9, Yu))), 128))
4873
- ])) : (i(), m("div", Zu, ce(z.value), 1))
4874
+ }, ce(q.title), 9, Zu))), 128))
4875
+ ])) : (i(), m("div", Ju, ce(z.value), 1))
4874
4876
  ])
4875
4877
  ], 4)
4876
- ])) : W("", !0)
4878
+ ])) : K("", !0)
4877
4879
  ], 512)
4878
4880
  ], 32)
4879
4881
  ], 512));
4880
4882
  }
4881
- }), td = /* @__PURE__ */ Ne(ed, [["__scopeId", "data-v-64b5dcb8"]]), nd = { class: "pt-1 border-t border-gray-100" }, ld = { class: "space-y-1" }, ad = /* @__PURE__ */ fe({
4883
+ }), nd = /* @__PURE__ */ Ne(td, [["__scopeId", "data-v-64b5dcb8"]]), ld = { class: "pt-1 border-t border-gray-100" }, ad = { class: "space-y-1" }, od = /* @__PURE__ */ fe({
4882
4884
  __name: "AddCoordinates",
4883
4885
  emits: ["submit", "cancel"],
4884
4886
  setup(e, { emit: t }) {
@@ -4890,9 +4892,9 @@ const Nu = ["title"], ju = {
4890
4892
  }, s = () => {
4891
4893
  o.value = null, l.value = null, n("cancel");
4892
4894
  };
4893
- return (u, f) => (i(), m("div", nd, [
4895
+ return (u, f) => (i(), m("div", ld, [
4894
4896
  f[2] || (f[2] = c("p", { class: "text-xs text-gray-600 mb-1" }, "Додати точку за координатами:", -1)),
4895
- c("div", ld, [
4897
+ c("div", ad, [
4896
4898
  Le(c("input", {
4897
4899
  "onUpdate:modelValue": f[0] || (f[0] = (p) => o.value = p),
4898
4900
  type: "number",
@@ -4936,7 +4938,7 @@ const Nu = ["title"], ju = {
4936
4938
  ])
4937
4939
  ]));
4938
4940
  }
4939
- }), od = /* @__PURE__ */ fe({
4941
+ }), rd = /* @__PURE__ */ fe({
4940
4942
  __name: "BtnAdd",
4941
4943
  emits: ["click"],
4942
4944
  setup(e) {
@@ -4951,7 +4953,7 @@ const Nu = ["title"], ju = {
4951
4953
  n[1] || (n[1] = je(" Додати ", -1))
4952
4954
  ]));
4953
4955
  }
4954
- }), rd = /* @__PURE__ */ fe({
4956
+ }), sd = /* @__PURE__ */ fe({
4955
4957
  __name: "BtnClear",
4956
4958
  emits: ["click"],
4957
4959
  setup(e) {
@@ -4966,7 +4968,7 @@ const Nu = ["title"], ju = {
4966
4968
  n[1] || (n[1] = je(" Очистити ", -1))
4967
4969
  ]));
4968
4970
  }
4969
- }), sd = /* @__PURE__ */ fe({
4971
+ }), id = /* @__PURE__ */ fe({
4970
4972
  __name: "BtnComplete",
4971
4973
  emits: ["click"],
4972
4974
  setup(e) {
@@ -4981,23 +4983,23 @@ const Nu = ["title"], ju = {
4981
4983
  n[1] || (n[1] = je("Замкнути ", -1))
4982
4984
  ]));
4983
4985
  }
4984
- }), id = new Intl.NumberFormat("uk-UA", {
4986
+ }), ud = new Intl.NumberFormat("uk-UA", {
4985
4987
  minimumFractionDigits: 2,
4986
4988
  maximumFractionDigits: 2
4987
4989
  });
4988
4990
  function Jt(e) {
4989
- return id.format(e);
4991
+ return ud.format(e);
4990
4992
  }
4991
4993
  function da(e) {
4992
4994
  return e >= 1e3 ? `${Jt(e / 1e3)} км` : `${Jt(e)} м`;
4993
4995
  }
4994
- const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5" }, dd = {
4996
+ const dd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5" }, cd = {
4995
4997
  key: 0,
4996
4998
  class: "flex-1 flex gap-1"
4997
- }, cd = {
4999
+ }, fd = {
4998
5000
  key: 1,
4999
5001
  class: "flex-1 font-mono text-gray-700"
5000
- }, fd = /* @__PURE__ */ fe({
5002
+ }, pd = /* @__PURE__ */ fe({
5001
5003
  __name: "DotListItem",
5002
5004
  props: {
5003
5005
  id: {},
@@ -5026,13 +5028,13 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5026
5028
  }, x = () => {
5027
5029
  o("delete", n.id);
5028
5030
  };
5029
- return (_, $) => (i(), m("div", ud, [
5031
+ return (_, $) => (i(), m("div", dd, [
5030
5032
  Q(B(Ql), {
5031
5033
  size: 12,
5032
5034
  "stroke-width": 2,
5033
5035
  class: "text-gray-400 flex-shrink-0"
5034
5036
  }),
5035
- a.value ? (i(), m("div", dd, [
5037
+ a.value ? (i(), m("div", cd, [
5036
5038
  Le(c("input", {
5037
5039
  "onUpdate:modelValue": $[0] || ($[0] = (g) => r.value = g),
5038
5040
  type: "number",
@@ -5070,8 +5072,8 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5070
5072
  type: "button",
5071
5073
  onClick: p
5072
5074
  }, " ✓ ")
5073
- ])) : (i(), m("span", cd, ce(l.value), 1)),
5074
- a.value ? W("", !0) : (i(), m("button", {
5075
+ ])) : (i(), m("span", fd, ce(l.value), 1)),
5076
+ a.value ? K("", !0) : (i(), m("button", {
5075
5077
  key: 2,
5076
5078
  class: "text-blue-500 hover:text-blue-600 px-0.5",
5077
5079
  type: "button",
@@ -5084,40 +5086,40 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5084
5086
  }, " ✕ ")
5085
5087
  ]));
5086
5088
  }
5087
- }), pd = { class: "ruler-control px-3 py-2.5 space-y-2" }, md = {
5089
+ }), md = { class: "ruler-control px-3 py-2.5 space-y-2" }, vd = {
5088
5090
  type: "button",
5089
5091
  class: "ruler-row w-full flex items-center gap-2 cursor-pointer group text-left"
5090
- }, vd = {
5091
- class: /* @__PURE__ */ re([
5092
+ }, gd = {
5093
+ class: /* @__PURE__ */ oe([
5092
5094
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
5093
5095
  ]),
5094
5096
  title: "Сумарна довжина всіх відрізків",
5095
5097
  "aria-hidden": "true"
5096
- }, gd = { class: "text-sm font-semibold text-slate-700" }, yd = { class: "ruler-row" }, hd = {
5098
+ }, yd = { class: "text-sm font-semibold text-slate-700" }, hd = { class: "ruler-row" }, bd = {
5097
5099
  type: "button",
5098
5100
  class: "w-full flex items-center gap-2 cursor-pointer group text-left"
5099
- }, bd = {
5100
- class: /* @__PURE__ */ re([
5101
+ }, wd = {
5102
+ class: /* @__PURE__ */ oe([
5101
5103
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
5102
5104
  ]),
5103
5105
  title: "Площа замкнутого контуру",
5104
5106
  "aria-hidden": "true"
5105
- }, wd = { class: "inline-flex rounded-md overflow-hidden border border-gray-200 bg-gray-100" }, xd = ["onClick"], kd = { class: "flex items-center gap-2 mt-0.5 pl-7" }, _d = {
5107
+ }, xd = { class: "inline-flex rounded-md overflow-hidden border border-gray-200 bg-gray-100" }, kd = ["onClick"], _d = { class: "flex items-center gap-2 mt-0.5 pl-7" }, $d = {
5106
5108
  key: 0,
5107
5109
  class: "text-base font-semibold text-green-600"
5108
- }, $d = {
5110
+ }, Cd = {
5109
5111
  key: 1,
5110
5112
  class: "text-xs text-gray-400"
5111
- }, Cd = { class: "ruler-row flex items-center gap-2 cursor-pointer" }, Sd = {
5112
- class: /* @__PURE__ */ re([
5113
+ }, Sd = { class: "ruler-row flex items-center gap-2 cursor-pointer" }, Vd = {
5114
+ class: /* @__PURE__ */ oe([
5113
5115
  "flex items-center justify-center w-5 h-5 rounded-full shrink-0 transition-colors pointer-events-none"
5114
5116
  ]),
5115
5117
  title: "Список точок",
5116
5118
  "aria-hidden": "true"
5117
- }, Vd = { class: "text-xs font-medium text-gray-600 flex-1" }, Md = {
5119
+ }, Md = { class: "text-xs font-medium text-gray-600 flex-1" }, Ld = {
5118
5120
  key: 0,
5119
5121
  class: "pt-1.5 border-t border-gray-100 max-h-32 overflow-y-auto space-y-1"
5120
- }, Ld = /* @__PURE__ */ fe({
5122
+ }, Dd = /* @__PURE__ */ fe({
5121
5123
  __name: "ControlPanel",
5122
5124
  props: {
5123
5125
  points: {},
@@ -5187,60 +5189,60 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5187
5189
  () => {
5188
5190
  t.points.length === 0 && (n.value = !1);
5189
5191
  }
5190
- ), (g, h) => (i(), m("div", pd, [
5191
- c("button", md, [
5192
- c("span", vd, [
5192
+ ), (g, h) => (i(), m("div", md, [
5193
+ c("button", vd, [
5194
+ c("span", gd, [
5193
5195
  Q(B(Qt), {
5194
5196
  size: 12,
5195
5197
  "stroke-width": 2.5
5196
5198
  })
5197
5199
  ]),
5198
5200
  h[1] || (h[1] = c("span", { class: "text-xs font-medium text-gray-600 flex-1" }, "Загальна відстань", -1)),
5199
- c("span", gd, ce(u.value), 1)
5201
+ c("span", yd, ce(u.value), 1)
5200
5202
  ]),
5201
- c("div", yd, [
5202
- c("button", hd, [
5203
- c("span", bd, [
5203
+ c("div", hd, [
5204
+ c("button", bd, [
5205
+ c("span", wd, [
5204
5206
  Q(B(Qt), {
5205
5207
  size: 12,
5206
5208
  "stroke-width": 2.5
5207
5209
  })
5208
5210
  ]),
5209
5211
  h[2] || (h[2] = c("span", { class: "text-xs font-medium text-gray-600 flex-1" }, "Площа", -1)),
5210
- c("div", wd, [
5212
+ c("div", xd, [
5211
5213
  (i(), m($e, null, Ie(l, (y, C) => c("button", {
5212
5214
  key: y.id,
5213
5215
  type: "button",
5214
- class: re([
5216
+ class: oe([
5215
5217
  "px-2.5 py-1 text-xs font-medium transition-colors border-r border-gray-200 last:border-r-0",
5216
5218
  C === 0 && "rounded-l-md",
5217
5219
  C === l.length - 1 && "rounded-r-md",
5218
5220
  o.value === y.id ? "bg-white text-green-600 font-semibold shadow-sm" : "text-gray-600 hover:bg-gray-50"
5219
5221
  ]),
5220
5222
  onClick: Fe((b) => o.value = y.id, ["stop"])
5221
- }, ce(y.label), 11, xd)), 64))
5223
+ }, ce(y.label), 11, kd)), 64))
5222
5224
  ])
5223
5225
  ]),
5224
- c("div", kd, [
5225
- x.value ? (i(), m("span", _d, ce(_.value), 1)) : (i(), m("span", $d, "—"))
5226
+ c("div", _d, [
5227
+ x.value ? (i(), m("span", $d, ce(_.value), 1)) : (i(), m("span", Cd, "—"))
5226
5228
  ])
5227
5229
  ]),
5228
- c("div", Cd, [
5229
- c("span", Sd, [
5230
+ c("div", Sd, [
5231
+ c("span", Vd, [
5230
5232
  Q(B(Qt), {
5231
5233
  size: 12,
5232
5234
  "stroke-width": 2.5
5233
5235
  })
5234
5236
  ]),
5235
- c("span", Vd, ce($.value), 1),
5237
+ c("span", Md, ce($.value), 1),
5236
5238
  c("button", {
5237
5239
  type: "button",
5238
5240
  class: "text-xs text-blue-500 hover:text-blue-600 font-medium transition-colors",
5239
5241
  onClick: Fe(a, ["stop"])
5240
5242
  }, " Координати ")
5241
5243
  ]),
5242
- n.value ? (i(), m("div", Md, [
5243
- (i(!0), m($e, null, Ie(g.points, (y, C) => (i(), be(fd, {
5244
+ n.value ? (i(), m("div", Ld, [
5245
+ (i(!0), m($e, null, Ie(g.points, (y, C) => (i(), be(pd, {
5244
5246
  key: y.id,
5245
5247
  id: y.id,
5246
5248
  index: C + 1,
@@ -5248,14 +5250,14 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5248
5250
  onUpdate: h[0] || (h[0] = (b) => g.$emit("update-point", b)),
5249
5251
  onDelete: (b) => g.$emit("delete-point", y.id)
5250
5252
  }, null, 8, ["id", "index", "coords", "onDelete"]))), 128))
5251
- ])) : W("", !0)
5253
+ ])) : K("", !0)
5252
5254
  ]));
5253
5255
  }
5254
- }), Dd = { class: "px-3 py-3 bg-blue-50/50 border-b border-blue-100" }, Ad = { class: "flex items-start gap-2" }, Id = /* @__PURE__ */ fe({
5256
+ }), Ad = { class: "px-3 py-3 bg-blue-50/50 border-b border-blue-100" }, Id = { class: "flex items-start gap-2" }, Td = /* @__PURE__ */ fe({
5255
5257
  __name: "InfoHint",
5256
5258
  setup(e) {
5257
- return (t, n) => (i(), m("div", Dd, [
5258
- c("div", Ad, [
5259
+ return (t, n) => (i(), m("div", Ad, [
5260
+ c("div", Id, [
5259
5261
  Q(B(Qt), {
5260
5262
  size: 16,
5261
5263
  "stroke-width": 2,
@@ -5268,7 +5270,7 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5268
5270
  ])
5269
5271
  ]));
5270
5272
  }
5271
- }), Td = { class: "space-y-1.5" }, Fd = { class: "space-y-1 max-h-40 overflow-y-auto" }, Ed = { class: "text-gray-700" }, Pd = { class: "font-semibold text-slate-800" }, Od = /* @__PURE__ */ fe({
5273
+ }), Fd = { class: "space-y-1.5" }, Ed = { class: "space-y-1 max-h-40 overflow-y-auto" }, Pd = { class: "text-gray-700" }, Od = { class: "font-semibold text-slate-800" }, Bd = /* @__PURE__ */ fe({
5272
5274
  __name: "ToPointList",
5273
5275
  props: {
5274
5276
  points: {},
@@ -5302,26 +5304,26 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5302
5304
  }
5303
5305
  return a;
5304
5306
  });
5305
- return (a, r) => (i(), m("div", Td, [
5307
+ return (a, r) => (i(), m("div", Fd, [
5306
5308
  r[0] || (r[0] = c("p", { class: "text-xs font-medium text-gray-600 mb-1.5" }, "Відстань між точками:", -1)),
5307
- c("div", Fd, [
5309
+ c("div", Ed, [
5308
5310
  (i(!0), m($e, null, Ie(l.value, (s, u) => (i(), m("div", {
5309
5311
  key: u,
5310
5312
  class: "flex items-center justify-between text-xs py-1 px-2 rounded bg-gray-50"
5311
5313
  }, [
5312
- c("span", Ed, "Точка " + ce(s.from) + " → Точка " + ce(s.to), 1),
5313
- c("span", Pd, ce(s.label), 1)
5314
+ c("span", Pd, "Точка " + ce(s.from) + " → Точка " + ce(s.to), 1),
5315
+ c("span", Od, ce(s.label), 1)
5314
5316
  ]))), 128))
5315
5317
  ])
5316
5318
  ]));
5317
5319
  }
5318
- }), Bd = { class: "ruler-panel-wrap absolute bottom-12 right-4 z-[1001] animate-slide-up" }, Rd = { class: "bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden w-72" }, Nd = { class: "bg-gradient-to-r from-blue-400 to-blue-500 px-3 py-2 flex items-center justify-between" }, jd = { class: "flex items-center gap-2" }, Ud = { class: "w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center" }, zd = { class: "flex border-b border-gray-200" }, Hd = {
5320
+ }), Rd = { class: "ruler-panel-wrap absolute bottom-12 right-4 z-[1001] animate-slide-up" }, Nd = { class: "bg-white rounded-xl shadow-2xl border border-gray-200 overflow-hidden w-72" }, jd = { class: "bg-gradient-to-r from-blue-400 to-blue-500 px-3 py-2 flex items-center justify-between" }, Ud = { class: "flex items-center gap-2" }, zd = { class: "w-6 h-6 bg-white/20 rounded-lg flex items-center justify-center" }, Hd = { class: "flex border-b border-gray-200" }, qd = {
5319
5321
  key: 1,
5320
5322
  class: "px-3 py-2.5"
5321
- }, qd = {
5323
+ }, Wd = {
5322
5324
  key: 1,
5323
5325
  class: "text-xs text-gray-500"
5324
- }, Wd = { class: "px-2.5 py-1.5 bg-gray-50 border-t border-gray-200 space-y-1.5" }, Kd = { class: "flex gap-1.5" }, Gd = /* @__PURE__ */ fe({
5326
+ }, Kd = { class: "px-2.5 py-1.5 bg-gray-50 border-t border-gray-200 space-y-1.5" }, Gd = { class: "flex gap-1.5" }, Yd = /* @__PURE__ */ fe({
5325
5327
  name: "RulerPanel",
5326
5328
  __name: "RulerPanel",
5327
5329
  emits: [
@@ -5384,11 +5386,11 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5384
5386
  return t({
5385
5387
  addPoint: h,
5386
5388
  clearPoints: b
5387
- }), (ae, I) => (i(), m("div", Bd, [
5388
- c("div", Rd, [
5389
- c("div", Nd, [
5390
- c("div", jd, [
5391
- c("div", Ud, [
5389
+ }), (ae, I) => (i(), m("div", Rd, [
5390
+ c("div", Nd, [
5391
+ c("div", jd, [
5392
+ c("div", Ud, [
5393
+ c("div", zd, [
5392
5394
  Q(B(ea), {
5393
5395
  size: 14,
5394
5396
  "stroke-width": 2,
@@ -5409,10 +5411,10 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5409
5411
  })
5410
5412
  ])
5411
5413
  ]),
5412
- c("div", zd, [
5414
+ c("div", Hd, [
5413
5415
  c("button", {
5414
5416
  type: "button",
5415
- class: re([
5417
+ class: oe([
5416
5418
  "flex-1 px-3 py-2 text-xs font-medium transition-colors",
5417
5419
  u.value === "general" ? "text-blue-600 border-b-2 border-blue-500 bg-blue-50/50" : "text-gray-500 hover:text-gray-700"
5418
5420
  ]),
@@ -5420,7 +5422,7 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5420
5422
  }, " Загальна ", 2),
5421
5423
  c("button", {
5422
5424
  type: "button",
5423
- class: re([
5425
+ class: oe([
5424
5426
  "flex-1 px-3 py-2 text-xs font-medium transition-colors",
5425
5427
  u.value === "topoint" ? "text-blue-600 border-b-2 border-blue-500 bg-blue-50/50" : "text-gray-500 hover:text-gray-700"
5426
5428
  ]),
@@ -5428,45 +5430,45 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5428
5430
  }, " До точки ", 2)
5429
5431
  ]),
5430
5432
  u.value === "general" ? (i(), m($e, { key: 0 }, [
5431
- a.value ? (i(), be(Ld, {
5433
+ a.value ? (i(), be(Dd, {
5432
5434
  key: 1,
5433
5435
  points: l.value,
5434
5436
  "is-shape-closed": s.value,
5435
5437
  onUpdatePoint: S,
5436
5438
  onDeletePoint: L
5437
- }, null, 8, ["points", "is-shape-closed"])) : (i(), be(Id, { key: 0 }))
5438
- ], 64)) : (i(), m("div", Hd, [
5439
- a.value ? (i(), be(Od, {
5439
+ }, null, 8, ["points", "is-shape-closed"])) : (i(), be(Td, { key: 0 }))
5440
+ ], 64)) : (i(), m("div", qd, [
5441
+ a.value ? (i(), be(Bd, {
5440
5442
  key: 0,
5441
5443
  points: l.value,
5442
5444
  "is-shape-closed": s.value
5443
- }, null, 8, ["points", "is-shape-closed"])) : (i(), m("p", qd, "Додайте точки на карті, щоб бачити відстані між ними."))
5445
+ }, null, 8, ["points", "is-shape-closed"])) : (i(), m("p", Wd, "Додайте точки на карті, щоб бачити відстані між ними."))
5444
5446
  ])),
5445
- c("div", Wd, [
5446
- c("div", Kd, [
5447
- r.value ? W("", !0) : (i(), be(od, {
5447
+ c("div", Kd, [
5448
+ c("div", Gd, [
5449
+ r.value ? K("", !0) : (i(), be(rd, {
5448
5450
  key: 0,
5449
5451
  onClick: U
5450
5452
  })),
5451
- p.value ? (i(), be(sd, {
5453
+ p.value ? (i(), be(id, {
5452
5454
  key: 1,
5453
5455
  onClick: J
5454
- })) : W("", !0)
5456
+ })) : K("", !0)
5455
5457
  ]),
5456
- r.value ? (i(), be(ad, {
5458
+ r.value ? (i(), be(od, {
5457
5459
  key: 0,
5458
5460
  onSubmit: te,
5459
5461
  onCancel: P
5460
- })) : W("", !0),
5461
- a.value ? (i(), be(rd, {
5462
+ })) : K("", !0),
5463
+ a.value ? (i(), be(sd, {
5462
5464
  key: 1,
5463
5465
  onClick: b
5464
- })) : W("", !0)
5466
+ })) : K("", !0)
5465
5467
  ])
5466
5468
  ])
5467
5469
  ]));
5468
5470
  }
5469
- }), gt = "ruler-points", Pt = "ruler-line", Ot = "ruler-polygon", Bt = "ruler-segments", Yd = /* @__PURE__ */ fe({
5471
+ }), gt = "ruler-points", Pt = "ruler-line", Ot = "ruler-polygon", Bt = "ruler-segments", Zd = /* @__PURE__ */ fe({
5470
5472
  __name: "RulerLayer",
5471
5473
  props: {
5472
5474
  map: {},
@@ -5669,7 +5671,7 @@ const ud = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
5669
5671
  }), (g, h) => null;
5670
5672
  }
5671
5673
  });
5672
- function Zd(e = {}) {
5674
+ function Jd(e = {}) {
5673
5675
  const t = M(!1), n = M([]), o = M(!1), l = M("general"), a = M(null);
5674
5676
  function r() {
5675
5677
  t.value ? s() : (t.value = !0, e.onActivate?.());
@@ -5705,31 +5707,31 @@ function Zd(e = {}) {
5705
5707
  handleRulerMapClick: x
5706
5708
  };
5707
5709
  }
5708
- const Jd = {
5710
+ const Xd = {
5709
5711
  key: 0,
5710
5712
  class: "absolute top-4 left-4 z-[1000] w-[calc(100%-20px)] sm:w-[350px]"
5711
- }, Xd = {
5713
+ }, Qd = {
5712
5714
  key: 1,
5713
5715
  class: "form-geom__panel flex gap-1 items-start mt-2"
5714
- }, Qd = { class: "flex items-center gap-1" }, ec = ["disabled"], tc = {
5716
+ }, ec = { class: "flex items-center gap-1" }, tc = ["disabled"], nc = {
5715
5717
  key: 0,
5716
5718
  class: "absolute z-[1600] mt-1 min-w-[120px] bg-white border border-gray-300 shadow-lg rounded-lg text-sm overflow-hidden"
5717
- }, nc = ["disabled"], lc = ["disabled"], ac = { class: "mt-4 flex justify-end gap-2" }, oc = ["disabled"], rc = { class: "absolute top-4 right-4 z-[1000]" }, sc = { class: "flex flex-col gap-[2px]" }, ic = ["disabled"], uc = ["disabled"], dc = ["disabled"], cc = ["disabled"], fc = { class: "bg-white/95 border border-gray-200 rounded-md shadow-xl px-3 py-2 max-w-[240px] text-[11px] sm:text-xs text-gray-900" }, pc = { class: "space-y-0.5" }, mc = { class: "text-gray-500" }, vc = { class: "text-gray-900 text-right break-all" }, gc = { class: "absolute left-4 bottom-[36px] z-[1000]" }, yc = { class: "flex flex-col gap-2" }, hc = {
5719
+ }, lc = ["disabled"], ac = ["disabled"], oc = { class: "mt-4 flex justify-end gap-2" }, rc = ["disabled"], sc = { class: "absolute top-4 right-4 z-[1000]" }, ic = { class: "flex flex-col gap-[2px]" }, uc = ["disabled"], dc = ["disabled"], cc = ["disabled"], fc = ["disabled"], pc = { class: "bg-white/95 border border-gray-200 rounded-md shadow-xl px-3 py-2 max-w-[240px] text-[11px] sm:text-xs text-gray-900" }, mc = { class: "space-y-0.5" }, vc = { class: "text-gray-500" }, gc = { class: "text-gray-900 text-right break-all" }, yc = { class: "absolute left-4 bottom-[36px] z-[1000]" }, hc = { class: "flex flex-col gap-2" }, bc = {
5718
5720
  key: 0,
5719
5721
  class: "bg-white/95 border border-gray-200 rounded-md shadow-sm px-3 py-2 text-xs text-gray-700 min-w-[200px]"
5720
- }, bc = { class: "flex flex-col gap-1" }, wc = ["checked", "disabled", "onChange"], xc = { class: "text-gray-700 text-xs font-medium" }, kc = { class: "absolute bottom-0 left-0 right-0 z-[1000] min-h-[28px] bg-white/95 border-t border-gray-200 text-xs text-gray-700 flex items-center gap-4 pt-1" }, _c = {
5722
+ }, wc = { class: "flex flex-col gap-1" }, xc = ["checked", "disabled", "onChange"], kc = { class: "text-gray-700 text-xs font-medium" }, _c = { class: "absolute bottom-0 left-0 right-0 z-[1000] min-h-[28px] bg-white/95 border-t border-gray-200 text-xs text-gray-700 flex items-center gap-4 pt-1" }, $c = {
5721
5723
  key: 0,
5722
5724
  class: "form-geom__feature flex items-center text-xs transition-all gap-2 w-full px-2 pb-1"
5723
- }, $c = { class: "mr-auto flex items-center gap-2 min-w-0 relative" }, Cc = { class: "shrink-0" }, Sc = {
5725
+ }, Cc = { class: "mr-auto flex items-center gap-2 min-w-0 relative" }, Sc = { class: "shrink-0" }, Vc = {
5724
5726
  key: 0,
5725
5727
  class: "font-bold"
5726
- }, Vc = ["onClick", "disabled"], Mc = { key: 0 }, Lc = { class: "flex items-center" }, Dc = { class: "text-xs mr-2" }, Ac = { key: 0 }, Ic = { key: 1 }, Tc = {
5728
+ }, Mc = ["onClick", "disabled"], Lc = { key: 0 }, Dc = { class: "flex items-center" }, Ac = { class: "text-xs mr-2" }, Ic = { key: 0 }, Tc = { key: 1 }, Fc = {
5727
5729
  key: 0,
5728
5730
  class: "text-xs mr-2"
5729
- }, Fc = {
5731
+ }, Ec = {
5730
5732
  key: 1,
5731
5733
  class: "text-xs mr-2"
5732
- }, Ec = ["disabled"], Pc = ["disabled"], Dn = "__vs_form_maplibre_loader__", An = "vs-global-bounds-src", In = "vs-global-bounds-line", Oc = /* @__PURE__ */ fe({
5734
+ }, Pc = ["disabled"], Oc = ["disabled"], Dn = "__vs_form_maplibre_loader__", An = "vs-global-bounds-src", In = "vs-global-bounds-line", Bc = /* @__PURE__ */ fe({
5733
5735
  __name: "vs-input-map",
5734
5736
  props: {
5735
5737
  tools: {},
@@ -5760,7 +5762,7 @@ const Jd = {
5760
5762
  const n = e, o = t, l = Wl(), a = w(() => {
5761
5763
  const d = l?.multiple, v = l?.multi, k = (V) => V === "" || V === !0 || V === "true" || V === 1 || V === "1";
5762
5764
  return !!n.multi || !!n.multiple || k(v) || k(d);
5763
- }), r = w(() => !!n.disabled), s = M(!1), u = M(null), f = M(0), p = M(""), x = M(null), _ = M([]), $ = M(null), g = M(null), h = Zd({
5765
+ }), r = w(() => !!n.disabled), s = M(!1), u = M(null), f = M(0), p = M(""), x = M(null), _ = M([]), $ = M(null), g = M(null), h = Jd({
5764
5766
  onActivate() {
5765
5767
  if (Y)
5766
5768
  try {
@@ -5953,7 +5955,7 @@ const Jd = {
5953
5955
  ]
5954
5956
  };
5955
5957
  }
5956
- let ee = null, se = null, T = null, Y = null, Me = [], F = null, O = null, q = null, D = !1, K = !1, le = !1, ve = null;
5958
+ let ee = null, se = null, T = null, Y = null, Me = [], F = null, O = null, q = null, D = !1, W = !1, le = !1, ve = null;
5957
5959
  function Ae() {
5958
5960
  return {
5959
5961
  onSetup() {
@@ -6480,7 +6482,7 @@ const Jd = {
6480
6482
  coordinates: v.map((Z) => Z.coordinates)
6481
6483
  } : v.every((Z) => Z?.type === "Polygon") ? { type: "MultiPolygon", coordinates: v.map((Z) => Z.coordinates) } : { type: "GeometryCollection", geometries: v };
6482
6484
  }
6483
- function oe(d) {
6485
+ function re(d) {
6484
6486
  if (!d) return "__null__";
6485
6487
  try {
6486
6488
  return JSON.stringify(d);
@@ -6727,7 +6729,7 @@ const Jd = {
6727
6729
  const v = (d.features ?? []).map(cn).filter(Boolean);
6728
6730
  if (Me = v, el(v), q = pn(), Qn(q), !ye) {
6729
6731
  const k = E(v);
6730
- O = oe(k), o("update:modelValue", k);
6732
+ O = re(k), o("update:modelValue", k);
6731
6733
  }
6732
6734
  }
6733
6735
  function _n() {
@@ -6838,7 +6840,7 @@ const Jd = {
6838
6840
  }
6839
6841
  function La() {
6840
6842
  if (r.value || !Y) return;
6841
- const d = Fu(
6843
+ const d = Eu(
6842
6844
  Pe.value.coordinates ?? "",
6843
6845
  Pe.value.format || "decimal",
6844
6846
  Pe.value.order || "lat-lon"
@@ -6962,14 +6964,14 @@ const Jd = {
6962
6964
  qt(), Et();
6963
6965
  }
6964
6966
  }), T.on("draw.update", (k) => {
6965
- if (K || h.isRulerActive.value) return;
6967
+ if (W || h.isRulerActive.value) return;
6966
6968
  const V = Array.isArray(k?.features) ? k.features : [], A = k?.action === "move" && V.length > 0 && V.every((Z) => Z?.geometry?.type === "Point");
6967
6969
  if (k?.action === "move") {
6968
6970
  if (A) {
6969
6971
  qt();
6970
6972
  return;
6971
6973
  }
6972
- if (K = !0, ba(), K = !1, p.value === "edit") {
6974
+ if (W = !0, ba(), W = !1, p.value === "edit") {
6973
6975
  const Z = pn(), pe = Z ? mt(Z) : Y?.getAll?.()?.features?.[0];
6974
6976
  if (pe?.id)
6975
6977
  try {
@@ -6984,7 +6986,7 @@ const Jd = {
6984
6986
  }), T.on("draw.delete", () => {
6985
6987
  Se || D || h.isRulerActive.value || p.value === "marker" || p.value === "polyline" || p.value === "polygon" || p.value === "rectangle" || (qt(), Y?.getAll?.()?.features?.length || (q = null), p.value = "", on());
6986
6988
  }), T.on("draw.selectionchange", (k) => {
6987
- if (!Y || K || h.isRulerActive.value || p.value === "marker" || p.value === "polyline" || p.value === "polygon" || p.value === "rectangle")
6989
+ if (!Y || W || h.isRulerActive.value || p.value === "marker" || p.value === "polyline" || p.value === "polygon" || p.value === "rectangle")
6988
6990
  return;
6989
6991
  const V = k?.features?.[0]?.id !== void 0 && k?.features?.[0]?.id !== null ? String(k.features[0].id) : null;
6990
6992
  if (!r.value && V) {
@@ -7033,7 +7035,7 @@ const Jd = {
7033
7035
  }
7034
7036
  const v = E(
7035
7037
  (a.value ? Ht(d) : Ht(d).slice(0, 1)) || []
7036
- ), k = oe(v);
7038
+ ), k = re(v);
7037
7039
  if (O && k === O) {
7038
7040
  O = null;
7039
7041
  return;
@@ -7136,20 +7138,20 @@ const Jd = {
7136
7138
  disabled: !s.value
7137
7139
  }, [
7138
7140
  c("div", {
7139
- class: re(["vs-map-wrapper relative w-full h-[400px]", { fullscreen: s.value }])
7141
+ class: oe(["vs-map-wrapper relative w-full h-[400px]", { fullscreen: s.value }])
7140
7142
  }, [
7141
7143
  c("div", {
7142
7144
  ref_key: "mapContainer",
7143
7145
  ref: u,
7144
7146
  class: "w-full h-[calc(100%-28px)]"
7145
7147
  }, null, 512),
7146
- De.value.search || De.value.import || De.value.export ? (i(), m("div", Jd, [
7147
- De.value.search ? (i(), be(td, {
7148
+ De.value.search || De.value.import || De.value.export ? (i(), m("div", Xd, [
7149
+ De.value.search ? (i(), be(nd, {
7148
7150
  key: 0,
7149
7151
  onGoToCoordinates: _a
7150
- })) : W("", !0),
7151
- De.value.import || De.value.export ? (i(), m("div", Xd, [
7152
- c("div", Qd, [
7152
+ })) : K("", !0),
7153
+ De.value.import || De.value.export ? (i(), m("div", Qd, [
7154
+ c("div", ec, [
7153
7155
  De.value.import ? (i(), m("div", {
7154
7156
  key: 0,
7155
7157
  ref_key: "importMenuRef",
@@ -7164,30 +7166,30 @@ const Jd = {
7164
7166
  }, [
7165
7167
  v[8] || (v[8] = je(" Імпорт ", -1)),
7166
7168
  Q(B(bn), {
7167
- class: re(["h-4 w-4 transition-transform", { "rotate-180": we.value }])
7169
+ class: oe(["h-4 w-4 transition-transform", { "rotate-180": we.value }])
7168
7170
  }, null, 8, ["class"])
7169
- ], 8, ec),
7170
- we.value ? (i(), m("div", tc, [
7171
+ ], 8, tc),
7172
+ we.value ? (i(), m("div", nc, [
7171
7173
  De.value.import ? (i(), m("button", {
7172
7174
  key: 0,
7173
7175
  type: "button",
7174
7176
  class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
7175
7177
  onClick: Sa
7176
- }, " З файлу ")) : W("", !0),
7178
+ }, " З файлу ")) : K("", !0),
7177
7179
  c("button", {
7178
7180
  type: "button",
7179
7181
  class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
7180
7182
  onClick: Va
7181
7183
  }, " З координат ")
7182
- ])) : W("", !0)
7183
- ], 512)) : W("", !0),
7184
+ ])) : K("", !0)
7185
+ ], 512)) : K("", !0),
7184
7186
  De.value.export ? (i(), m("button", {
7185
7187
  key: 1,
7186
7188
  type: "button",
7187
7189
  class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
7188
7190
  onClick: Ia,
7189
7191
  disabled: r.value || f.value === 0
7190
- }, " Експорт ", 8, nc)) : W("", !0)
7192
+ }, " Експорт ", 8, lc)) : K("", !0)
7191
7193
  ]),
7192
7194
  c("input", {
7193
7195
  ref_key: "importRef",
@@ -7197,9 +7199,9 @@ const Jd = {
7197
7199
  accept: ".json,.geojson",
7198
7200
  class: "hidden",
7199
7201
  disabled: r.value
7200
- }, null, 40, lc)
7201
- ])) : W("", !0)
7202
- ])) : W("", !0),
7202
+ }, null, 40, ac)
7203
+ ])) : K("", !0)
7204
+ ])) : K("", !0),
7203
7205
  Q(B(zn), {
7204
7206
  visible: ke.value,
7205
7207
  "onUpdate:visible": v[1] || (v[1] = (k) => ke.value = k),
@@ -7213,7 +7215,7 @@ const Jd = {
7213
7215
  values: Pe.value,
7214
7216
  "onUpdate:values": v[0] || (v[0] = (k) => Pe.value = k)
7215
7217
  }, null, 8, ["values"]),
7216
- c("div", ac, [
7218
+ c("div", oc, [
7217
7219
  c("button", {
7218
7220
  type: "button",
7219
7221
  class: "px-3 py-2 rounded-md border border-gray-300 text-gray-700 text-sm hover:bg-gray-100",
@@ -7224,57 +7226,57 @@ const Jd = {
7224
7226
  class: "px-3 py-2 rounded-md bg-blue-600 text-white text-sm hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed",
7225
7227
  onClick: La,
7226
7228
  disabled: r.value
7227
- }, " Побудувати ", 8, oc)
7229
+ }, " Побудувати ", 8, rc)
7228
7230
  ])
7229
7231
  ]),
7230
7232
  _: 1
7231
7233
  }, 8, ["visible"]),
7232
- c("div", rc, [
7233
- c("div", sc, [
7234
+ c("div", sc, [
7235
+ c("div", ic, [
7234
7236
  De.value.point ? (i(), m("button", {
7235
7237
  key: 0,
7236
- class: re(["vs-btn", { "vs-active": p.value === "marker" }]),
7238
+ class: oe(["vs-btn", { "vs-active": p.value === "marker" }]),
7237
7239
  title: "Point",
7238
7240
  onClick: v[2] || (v[2] = (k) => Cn("marker")),
7239
7241
  disabled: r.value
7240
7242
  }, [
7241
7243
  Q(B(Ql), { class: "h-4 w-4" })
7242
- ], 10, ic)) : W("", !0),
7244
+ ], 10, uc)) : K("", !0),
7243
7245
  De.value.line ? (i(), m("button", {
7244
7246
  key: 1,
7245
- class: re(["vs-btn", { "vs-active": p.value === "polyline" }]),
7247
+ class: oe(["vs-btn", { "vs-active": p.value === "polyline" }]),
7246
7248
  title: "Line",
7247
7249
  onClick: v[3] || (v[3] = (k) => Cn("polyline")),
7248
7250
  disabled: r.value
7249
7251
  }, [
7250
- Q(bu)
7251
- ], 10, uc)) : W("", !0),
7252
+ Q(wu)
7253
+ ], 10, dc)) : K("", !0),
7252
7254
  De.value.polygon ? (i(), m("button", {
7253
7255
  key: 2,
7254
- class: re(["vs-btn", { "vs-active": p.value === "polygon" }]),
7256
+ class: oe(["vs-btn", { "vs-active": p.value === "polygon" }]),
7255
7257
  title: "Polygon",
7256
7258
  onClick: v[4] || (v[4] = (k) => Cn("polygon")),
7257
7259
  disabled: r.value
7258
7260
  }, [
7259
- Q(_u)
7260
- ], 10, dc)) : W("", !0),
7261
+ Q($u)
7262
+ ], 10, cc)) : K("", !0),
7261
7263
  De.value.rectangle ? (i(), m("button", {
7262
7264
  key: 3,
7263
- class: re(["vs-btn", { "vs-active": p.value === "rectangle" }]),
7265
+ class: oe(["vs-btn", { "vs-active": p.value === "rectangle" }]),
7264
7266
  title: "Rectangle",
7265
7267
  onClick: v[5] || (v[5] = (k) => Cn("rectangle")),
7266
7268
  disabled: r.value
7267
7269
  }, [
7268
- Q(Vu)
7269
- ], 10, cc)) : W("", !0),
7270
+ Q(Mu)
7271
+ ], 10, fc)) : K("", !0),
7270
7272
  De.value.ruler ? (i(), m("button", {
7271
7273
  key: 4,
7272
- class: re(["vs-btn mt-3", { "vs-active": B(h).isRulerActive.value }]),
7274
+ class: oe(["vs-btn mt-3", { "vs-active": B(h).isRulerActive.value }]),
7273
7275
  title: "Ruler",
7274
7276
  onClick: y
7275
7277
  }, [
7276
7278
  Q(B(ea), { class: "h-4 w-4" })
7277
- ], 2)) : W("", !0),
7279
+ ], 2)) : K("", !0),
7278
7280
  c("button", {
7279
7281
  class: "vs-btn mt-5",
7280
7282
  onClick: v[6] || (v[6] = (k) => s.value = !s.value),
@@ -7284,7 +7286,7 @@ const Jd = {
7284
7286
  ])
7285
7287
  ])
7286
7288
  ]),
7287
- De.value.ruler && B(h).isRulerActive.value ? (i(), be(Gd, {
7289
+ De.value.ruler && B(h).isRulerActive.value ? (i(), be(Yd, {
7288
7290
  key: 1,
7289
7291
  ref_key: "rulerPanelRefEl",
7290
7292
  ref: g,
@@ -7292,40 +7294,40 @@ const Jd = {
7292
7294
  onTabChange: B(h).onRulerTabChange,
7293
7295
  onPointsChange: B(h).onRulerPointsChange,
7294
7296
  onShapeClosedChange: B(h).onRulerShapeClosedChange
7295
- }, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) : W("", !0),
7296
- De.value.ruler && B(h).isRulerActive.value && B(h).hasRulerPoints.value ? (i(), be(Yd, {
7297
+ }, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) : K("", !0),
7298
+ De.value.ruler && B(h).isRulerActive.value && B(h).hasRulerPoints.value ? (i(), be(Zd, {
7297
7299
  key: 2,
7298
7300
  map: $.value,
7299
7301
  points: B(h).rulerPoints.value,
7300
7302
  "is-shape-closed": B(h).rulerShapeClosed.value,
7301
7303
  "label-mode": B(h).rulerActiveTab.value
7302
- }, null, 8, ["map", "points", "is-shape-closed", "label-mode"])) : W("", !0),
7304
+ }, null, 8, ["map", "points", "is-shape-closed", "label-mode"])) : K("", !0),
7303
7305
  He.value.length ? (i(), m("div", {
7304
7306
  key: 3,
7305
7307
  class: "absolute z-[1500] pointer-events-none",
7306
7308
  style: Ve(tt.value)
7307
7309
  }, [
7308
- c("div", fc, [
7309
- c("dl", pc, [
7310
+ c("div", pc, [
7311
+ c("dl", mc, [
7310
7312
  (i(!0), m($e, null, Ie(He.value, (k) => (i(), m("div", {
7311
7313
  key: `${k.key}-${k.value}`,
7312
7314
  class: "flex justify-between gap-2"
7313
7315
  }, [
7314
- c("dt", mc, ce(k.key), 1),
7315
- c("dd", vc, ce(k.value), 1)
7316
+ c("dt", vc, ce(k.key), 1),
7317
+ c("dd", gc, ce(k.value), 1)
7316
7318
  ]))), 128))
7317
7319
  ])
7318
7320
  ])
7319
- ], 4)) : W("", !0),
7320
- c("div", gc, [
7321
- c("div", yc, [
7322
- Q(Iu, {
7321
+ ], 4)) : K("", !0),
7322
+ c("div", yc, [
7323
+ c("div", hc, [
7324
+ Q(Tu, {
7323
7325
  basemaps: B(qe),
7324
7326
  onOnLayerChange: Jn
7325
7327
  }, null, 8, ["basemaps"]),
7326
- _e.value.length ? (i(), m("div", hc, [
7328
+ _e.value.length ? (i(), m("div", bc, [
7327
7329
  v[9] || (v[9] = c("p", { class: "font-semibold text-[11px] uppercase tracking-wide text-gray-500 mb-2" }, "Шари", -1)),
7328
- c("div", bc, [
7330
+ c("div", wc, [
7329
7331
  (i(!0), m($e, null, Ie(_e.value, (k) => (i(), m("label", {
7330
7332
  key: k.id,
7331
7333
  class: "flex items-center gap-2 cursor-pointer select-none"
@@ -7336,43 +7338,43 @@ const Jd = {
7336
7338
  checked: k.visible,
7337
7339
  disabled: r.value,
7338
7340
  onChange: (V) => Zn(k.id)
7339
- }, null, 40, wc),
7340
- c("span", xc, ce(k.config.title || k.config.name || k.id), 1)
7341
+ }, null, 40, xc),
7342
+ c("span", kc, ce(k.config.title || k.config.name || k.id), 1)
7341
7343
  ]))), 128))
7342
7344
  ])
7343
- ])) : W("", !0)
7345
+ ])) : K("", !0)
7344
7346
  ])
7345
7347
  ]),
7346
- c("div", kc, [
7347
- _.value.length || x.value ? (i(), m("div", _c, [
7348
- c("div", $c, [
7349
- c("div", Cc, [
7348
+ c("div", _c, [
7349
+ _.value.length || x.value ? (i(), m("div", $c, [
7350
+ c("div", Cc, [
7351
+ c("div", Sc, [
7350
7352
  v[10] || (v[10] = je(" Тип: ", -1)),
7351
- _.value.length <= 1 ? (i(), m("span", Sc, ce(x.value ? _l(x.value.type) : _.value[0]?.label || "—"), 1)) : (i(!0), m($e, { key: 1 }, Ie(_.value, (k, V) => (i(), m($e, {
7353
+ _.value.length <= 1 ? (i(), m("span", Vc, ce(x.value ? _l(x.value.type) : _.value[0]?.label || "—"), 1)) : (i(!0), m($e, { key: 1 }, Ie(_.value, (k, V) => (i(), m($e, {
7352
7354
  key: k.id
7353
7355
  }, [
7354
7356
  c("button", {
7355
7357
  type: "button",
7356
- class: re([
7358
+ class: oe([
7357
7359
  "font-bold underline-offset-2",
7358
7360
  k.id === B(q) ? "text-blue-700 underline" : "text-gray-700 hover:text-blue-700 hover:underline"
7359
7361
  ]),
7360
7362
  onClick: (A) => wa(k.id),
7361
7363
  disabled: r.value
7362
- }, ce(k.label), 11, Vc),
7363
- V < _.value.length - 1 ? (i(), m("span", Mc, ", ")) : W("", !0)
7364
+ }, ce(k.label), 11, Mc),
7365
+ V < _.value.length - 1 ? (i(), m("span", Lc, ", ")) : K("", !0)
7364
7366
  ], 64))), 128))
7365
7367
  ])
7366
7368
  ]),
7367
- c("div", Lc, [
7368
- c("div", Dc, [
7369
+ c("div", Dc, [
7370
+ c("div", Ac, [
7369
7371
  v[11] || (v[11] = je(" Центр: ", -1)),
7370
- x.value ? (i(), m("b", Ac, ce(x.value.center.lng.toFixed(5)) + ", " + ce(x.value.center.lat.toFixed(5)), 1)) : (i(), m("b", Ic, "—"))
7372
+ x.value ? (i(), m("b", Ic, ce(x.value.center.lng.toFixed(5)) + ", " + ce(x.value.center.lat.toFixed(5)), 1)) : (i(), m("b", Tc, "—"))
7371
7373
  ]),
7372
- x.value && x.value.areaKm2 !== null ? (i(), m("div", Tc, [
7374
+ x.value && x.value.areaKm2 !== null ? (i(), m("div", Fc, [
7373
7375
  v[12] || (v[12] = je(" Площа: ", -1)),
7374
7376
  c("b", null, ce(x.value.areaKm2.toFixed(1)) + " km²", 1)
7375
- ])) : (i(), m("div", Fc, v[13] || (v[13] = [
7377
+ ])) : (i(), m("div", Ec, v[13] || (v[13] = [
7376
7378
  je("Площа: ", -1),
7377
7379
  c("b", null, "—", -1)
7378
7380
  ]))),
@@ -7383,7 +7385,7 @@ const Jd = {
7383
7385
  disabled: r.value
7384
7386
  }, [
7385
7387
  Q(B(Wa), { class: "h-3 w-3" })
7386
- ], 8, Ec),
7388
+ ], 8, Pc),
7387
7389
  c("button", {
7388
7390
  class: "tool bg-gray-100 py-1.5 px-2 rounded-lg text-md cursor-pointer hover:bg-blue-500 hover:text-white transition-all",
7389
7391
  title: "Delete feature",
@@ -7391,17 +7393,17 @@ const Jd = {
7391
7393
  disabled: r.value
7392
7394
  }, [
7393
7395
  Q(B(nn), { class: "h-4 w-4" })
7394
- ], 8, Pc)
7396
+ ], 8, Oc)
7395
7397
  ])
7396
- ])) : W("", !0)
7398
+ ])) : K("", !0)
7397
7399
  ])
7398
7400
  ], 2)
7399
7401
  ], 8, ["disabled"]));
7400
7402
  }
7401
- }), Bc = /* @__PURE__ */ Ne(Oc, [["__scopeId", "data-v-33669cd5"]]), Rc = ["data-focus"], Nc = { class: "flex items-center" }, jc = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Uc = ["onClick", "aria-label"], zc = {
7403
+ }), Rc = /* @__PURE__ */ Ne(Bc, [["__scopeId", "data-v-33669cd5"]]), Nc = ["data-focus"], jc = { class: "flex items-center" }, Uc = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, zc = ["onClick", "aria-label"], Hc = {
7402
7404
  key: 0,
7403
7405
  class: "absolute text-gray-500 truncate pl-2"
7404
- }, Hc = { class: "flex-1 min-w-[2px]" }, qc = ["placeholder"], Wc = { class: "flex items-center shrink-0" }, Kc = ["disabled"], Gc = /* @__PURE__ */ fe({
7406
+ }, qc = { class: "flex-1 min-w-[2px]" }, Wc = ["placeholder"], Kc = { class: "flex items-center shrink-0" }, Gc = ["disabled"], Yc = /* @__PURE__ */ fe({
7405
7407
  __name: "vs-input-tag",
7406
7408
  props: /* @__PURE__ */ Ee({
7407
7409
  unique: { type: Boolean, default: !0 },
@@ -7451,12 +7453,12 @@ const Jd = {
7451
7453
  }, ["stop"]))
7452
7454
  }, [
7453
7455
  c("div", {
7454
- class: re(["relative w-full font-sans", n.customClass]),
7456
+ class: oe(["relative w-full font-sans", n.customClass]),
7455
7457
  role: "group",
7456
7458
  "aria-label": "Tag input"
7457
7459
  }, [
7458
7460
  c("div", {
7459
- class: re([
7461
+ class: oe([
7460
7462
  "flex min-h-[38px] items-center justify-between rounded border transition-colors bg-white",
7461
7463
  "border-gray-300 hover:border-gray-400",
7462
7464
  s.value ? "border-blue-500 ring-1 ring-blue-500" : "",
@@ -7474,8 +7476,8 @@ const Jd = {
7474
7476
  key: G,
7475
7477
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
7476
7478
  }, [
7477
- c("div", Nc, [
7478
- c("div", jc, ce(J), 1)
7479
+ c("div", jc, [
7480
+ c("div", Uc, ce(J), 1)
7479
7481
  ]),
7480
7482
  c("div", {
7481
7483
  role: "button",
@@ -7488,11 +7490,11 @@ const Jd = {
7488
7490
  focusable: "false",
7489
7491
  class: "inline-block h-4 w-4"
7490
7492
  })
7491
- ], 8, Uc)
7493
+ ], 8, zc)
7492
7494
  ]))), 128)),
7493
- x.value ? (i(), m("div", zc, ce(p.value), 1)) : W("", !0),
7494
- c("div", Hc, [
7495
- $.value ? W("", !0) : Le((i(), m("input", {
7495
+ x.value ? (i(), m("div", Hc, ce(p.value), 1)) : K("", !0),
7496
+ c("div", qc, [
7497
+ $.value ? K("", !0) : Le((i(), m("input", {
7496
7498
  key: 0,
7497
7499
  ref_key: "inputRef",
7498
7500
  ref: r,
@@ -7509,12 +7511,12 @@ const Jd = {
7509
7511
  onBlur: L,
7510
7512
  onKeydown: U,
7511
7513
  placeholder: f.value && f.value.length ? "" : void 0
7512
- }, null, 40, qc)), [
7514
+ }, null, 40, Wc)), [
7513
7515
  [We, u.value]
7514
7516
  ])
7515
7517
  ])
7516
7518
  ], 512),
7517
- c("div", Wc, [
7519
+ c("div", Kc, [
7518
7520
  _.value ? (i(), m("button", {
7519
7521
  key: 0,
7520
7522
  type: "button",
@@ -7524,13 +7526,13 @@ const Jd = {
7524
7526
  onClick: Fe(b, ["stop"])
7525
7527
  }, [
7526
7528
  Q(B(Mt), { class: "h-4 w-4" })
7527
- ], 8, Kc)) : W("", !0)
7529
+ ], 8, Gc)) : K("", !0)
7528
7530
  ])
7529
- ], 10, Rc)
7531
+ ], 10, Nc)
7530
7532
  ], 2)
7531
7533
  ], 512));
7532
7534
  }
7533
- }), Yc = { class: "relative flex gap-1 bg-white w-full" }, Zc = ["disabled", "placeholder"], Jc = /* @__PURE__ */ fe({
7535
+ }), Zc = { class: "relative flex gap-1 bg-white w-full" }, Jc = ["disabled", "placeholder"], Xc = /* @__PURE__ */ fe({
7534
7536
  __name: "vs-input-slug",
7535
7537
  props: /* @__PURE__ */ Ee({
7536
7538
  disabled: { type: Boolean },
@@ -7589,14 +7591,14 @@ const Jd = {
7589
7591
  const r = t?.value?.[n.parent || ""]?.toString(), s = l(r);
7590
7592
  o.value = s.toString();
7591
7593
  };
7592
- return (r, s) => (i(), m("div", Yc, [
7594
+ return (r, s) => (i(), m("div", Zc, [
7593
7595
  Le(c("input", {
7594
7596
  ref: "vsText",
7595
7597
  disabled: r.disabled,
7596
7598
  placeholder: r.placeholder,
7597
7599
  "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
7598
7600
  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"
7599
- }, null, 8, Zc), [
7601
+ }, null, 8, Jc), [
7600
7602
  [We, o.value]
7601
7603
  ]),
7602
7604
  c("button", {
@@ -7605,7 +7607,7 @@ const Jd = {
7605
7607
  }, " Gen ")
7606
7608
  ]));
7607
7609
  }
7608
- }), Xc = /* @__PURE__ */ Ne(Jc, [["__scopeId", "data-v-b0eba370"]]), Qc = { class: "relative flex gap-1 bg-white w-full" }, ef = ["disabled", "placeholder"], tf = ["disabled"], nf = { key: 0 }, lf = { key: 1 }, af = /* @__PURE__ */ fe({
7610
+ }), Qc = /* @__PURE__ */ Ne(Xc, [["__scopeId", "data-v-b0eba370"]]), ef = { class: "relative flex gap-1 bg-white w-full" }, tf = ["disabled", "placeholder"], nf = ["disabled"], lf = { key: 0 }, af = { key: 1 }, of = /* @__PURE__ */ fe({
7609
7611
  __name: "vs-input-codegen",
7610
7612
  props: /* @__PURE__ */ Ee({
7611
7613
  table: {},
@@ -7654,13 +7656,13 @@ const Jd = {
7654
7656
  () => {
7655
7657
  u();
7656
7658
  }
7657
- ), (f, p) => (i(), m("div", Qc, [
7659
+ ), (f, p) => (i(), m("div", ef, [
7658
7660
  Le(c("input", {
7659
7661
  disabled: f.disabled,
7660
7662
  placeholder: f.placeholder,
7661
7663
  "onUpdate:modelValue": p[0] || (p[0] = (x) => n.value = x),
7662
7664
  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"
7663
- }, null, 8, ef), [
7665
+ }, null, 8, tf), [
7664
7666
  [We, n.value]
7665
7667
  ]),
7666
7668
  c("button", {
@@ -7668,20 +7670,20 @@ const Jd = {
7668
7670
  disabled: o.value || f.disabled || !a.value,
7669
7671
  onClick: s
7670
7672
  }, [
7671
- o.value ? (i(), m("span", lf, "...")) : (i(), m("span", nf, "Gen"))
7672
- ], 8, tf)
7673
+ o.value ? (i(), m("span", af, "...")) : (i(), m("span", lf, "Gen"))
7674
+ ], 8, nf)
7673
7675
  ]));
7674
7676
  }
7675
- }), of = /* @__PURE__ */ Ne(af, [["__scopeId", "data-v-6ee5237d"]]), rf = { class: "w-full" }, sf = {
7677
+ }), rf = /* @__PURE__ */ Ne(of, [["__scopeId", "data-v-6ee5237d"]]), sf = { class: "w-full" }, uf = {
7676
7678
  ref: "sortableContainer",
7677
7679
  class: "flex flex-col gap-1"
7678
- }, uf = ["onDragstart", "onDrop"], df = {
7680
+ }, df = ["onDragstart", "onDrop"], cf = {
7679
7681
  class: "cursor-move",
7680
7682
  type: "button"
7681
- }, cf = { class: "w-1/3" }, ff = { class: "w-2/3" }, pf = ["onClick"], mf = {
7683
+ }, ff = { class: "w-1/3" }, pf = { class: "w-2/3" }, mf = ["onClick"], vf = {
7682
7684
  key: 0,
7683
7685
  class: "text-[14px] text-gray-700"
7684
- }, vf = { class: "mt-2 w-full flex items-center" }, gf = ["disabled"], yf = /* @__PURE__ */ fe({
7686
+ }, gf = { class: "mt-2 w-full flex items-center" }, yf = ["disabled"], hf = /* @__PURE__ */ fe({
7685
7687
  __name: "vs-input-key-value",
7686
7688
  props: {
7687
7689
  parent: {},
@@ -7729,28 +7731,28 @@ const Jd = {
7729
7731
  }), a("update:modelValue", C);
7730
7732
  },
7731
7733
  { deep: !0 }
7732
- ), (y, C) => (i(), m("div", rf, [
7733
- c("div", sf, [
7734
+ ), (y, C) => (i(), m("div", sf, [
7735
+ c("div", uf, [
7734
7736
  (i(!0), m($e, null, Ie(u.value, (b, S) => (i(), m("div", {
7735
7737
  key: b.id,
7736
- class: re(["flex items-center gap-2 w-full", { "opacity-50": f.value === S }]),
7738
+ class: oe(["flex items-center gap-2 w-full", { "opacity-50": f.value === S }]),
7737
7739
  draggable: "true",
7738
7740
  onDragstart: (L) => x(S),
7739
7741
  onDragover: C[0] || (C[0] = Fe(() => {
7740
7742
  }, ["prevent"])),
7741
7743
  onDrop: (L) => _(S)
7742
7744
  }, [
7743
- c("button", df, [
7745
+ c("button", cf, [
7744
7746
  Q(B(rn), { class: "h-4 w-4" })
7745
7747
  ]),
7746
- c("div", cf, [
7748
+ c("div", ff, [
7747
7749
  Q(gn, {
7748
7750
  modelValue: b.key,
7749
7751
  "onUpdate:modelValue": (L) => b.key = L,
7750
7752
  placeholder: "Ключ"
7751
7753
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7752
7754
  ]),
7753
- c("div", ff, [
7755
+ c("div", pf, [
7754
7756
  Q(gn, {
7755
7757
  modelValue: b.value,
7756
7758
  "onUpdate:modelValue": (L) => b.value = L,
@@ -7762,11 +7764,11 @@ const Jd = {
7762
7764
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200"
7763
7765
  }, [
7764
7766
  Q(B(Mt), { class: "h-4 w-4" })
7765
- ], 8, pf)
7766
- ], 42, uf))), 128))
7767
+ ], 8, mf)
7768
+ ], 42, df))), 128))
7767
7769
  ], 512),
7768
- u.value.length ? W("", !0) : (i(), m("span", mf, " Дані для відображення відсутні ")),
7769
- c("div", vf, [
7770
+ u.value.length ? K("", !0) : (i(), m("span", vf, " Дані для відображення відсутні ")),
7771
+ c("div", gf, [
7770
7772
  c("button", {
7771
7773
  type: "button",
7772
7774
  onClick: g,
@@ -7775,17 +7777,17 @@ const Jd = {
7775
7777
  }, [
7776
7778
  Q(B(xt), { class: "h-4 w-4" }),
7777
7779
  je(" " + ce(B(r)), 1)
7778
- ], 8, gf)
7780
+ ], 8, yf)
7779
7781
  ])
7780
7782
  ]));
7781
7783
  }
7782
- }), hf = /* @__PURE__ */ Ne(yf, [["__scopeId", "data-v-d8c3f9d6"]]), bf = { class: "w-full" }, wf = {
7784
+ }), bf = /* @__PURE__ */ Ne(hf, [["__scopeId", "data-v-d8c3f9d6"]]), wf = { class: "w-full" }, xf = {
7783
7785
  ref: "sortableContainer",
7784
7786
  class: "flex flex-col gap-1"
7785
- }, xf = ["onDragstart", "onDrop"], kf = ["disabled"], _f = { class: "flex-1" }, $f = ["onClick", "disabled"], Cf = {
7787
+ }, kf = ["onDragstart", "onDrop"], _f = ["disabled"], $f = { class: "flex-1" }, Cf = ["onClick", "disabled"], Sf = {
7786
7788
  key: 0,
7787
7789
  class: "text-[14px] text-gray-700"
7788
- }, Sf = { class: "mt-2 w-full flex items-center" }, Vf = ["disabled"], Mf = /* @__PURE__ */ fe({
7790
+ }, Vf = { class: "mt-2 w-full flex items-center" }, Mf = ["disabled"], Lf = /* @__PURE__ */ fe({
7789
7791
  __name: "vs-input-text-array",
7790
7792
  props: /* @__PURE__ */ Ee({
7791
7793
  addButtonText: { default: "Додати" },
@@ -7840,11 +7842,11 @@ const Jd = {
7840
7842
  const C = [...o.value], [b] = C.splice(l.value, 1);
7841
7843
  C.splice(y, 0, b), o.value = C, l.value = null;
7842
7844
  }
7843
- return (y, C) => (i(), m("div", bf, [
7844
- c("div", wf, [
7845
+ return (y, C) => (i(), m("div", wf, [
7846
+ c("div", xf, [
7845
7847
  (i(!0), m($e, null, Ie(o.value, (b, S) => (i(), m("div", {
7846
7848
  key: b.id,
7847
- class: re(["flex items-center gap-2 w-full", { "opacity-50": l.value === S }]),
7849
+ class: oe(["flex items-center gap-2 w-full", { "opacity-50": l.value === S }]),
7848
7850
  draggable: "true",
7849
7851
  onDragstart: (L) => g(S),
7850
7852
  onDragover: C[0] || (C[0] = Fe(() => {
@@ -7857,29 +7859,29 @@ const Jd = {
7857
7859
  disabled: a.value
7858
7860
  }, [
7859
7861
  Q(B(rn), { class: "h-4 w-4" })
7860
- ], 8, kf),
7861
- c("div", _f, [
7862
+ ], 8, _f),
7863
+ c("div", $f, [
7862
7864
  y.inputType === "text" ? (i(), be(gn, {
7863
7865
  key: 0,
7864
7866
  modelValue: b.value,
7865
7867
  "onUpdate:modelValue": (L) => b.value = L,
7866
7868
  disabled: a.value,
7867
7869
  placeholder: r.value
7868
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0),
7870
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : K("", !0),
7869
7871
  y.inputType === "tel" ? (i(), be(oa, {
7870
7872
  key: 1,
7871
7873
  modelValue: b.value,
7872
7874
  "onUpdate:modelValue": (L) => b.value = L,
7873
7875
  disabled: a.value,
7874
7876
  placeholder: r.value
7875
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0),
7877
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : K("", !0),
7876
7878
  y.inputType === "email" ? (i(), be(aa, {
7877
7879
  key: 2,
7878
7880
  modelValue: b.value,
7879
7881
  "onUpdate:modelValue": (L) => b.value = L,
7880
7882
  disabled: a.value,
7881
7883
  placeholder: r.value
7882
- }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : W("", !0),
7884
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : K("", !0),
7883
7885
  y.inputType === "mask" ? (i(), be(gl, {
7884
7886
  key: 3,
7885
7887
  modelValue: b.value,
@@ -7887,7 +7889,7 @@ const Jd = {
7887
7889
  mask: y.mask,
7888
7890
  disabled: a.value,
7889
7891
  placeholder: r.value
7890
- }, null, 8, ["modelValue", "onUpdate:modelValue", "mask", "disabled", "placeholder"])) : W("", !0)
7892
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "mask", "disabled", "placeholder"])) : K("", !0)
7891
7893
  ]),
7892
7894
  c("button", {
7893
7895
  type: "button",
@@ -7896,11 +7898,11 @@ const Jd = {
7896
7898
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200 disabled:opacity-50"
7897
7899
  }, [
7898
7900
  Q(B(Mt), { class: "h-4 w-4" })
7899
- ], 8, $f)
7900
- ], 42, xf))), 128))
7901
+ ], 8, Cf)
7902
+ ], 42, kf))), 128))
7901
7903
  ], 512),
7902
- o.value.length ? W("", !0) : (i(), m("span", Cf, " Дані для відображення відсутні ")),
7903
- c("div", Sf, [
7904
+ o.value.length ? K("", !0) : (i(), m("span", Sf, " Дані для відображення відсутні ")),
7905
+ c("div", Vf, [
7904
7906
  c("button", {
7905
7907
  type: "button",
7906
7908
  onClick: _,
@@ -7909,11 +7911,11 @@ const Jd = {
7909
7911
  }, [
7910
7912
  Q(B(xt), { class: "h-4 w-4" }),
7911
7913
  je(" " + ce(s.value), 1)
7912
- ], 8, Vf)
7914
+ ], 8, Mf)
7913
7915
  ])
7914
7916
  ]));
7915
7917
  }
7916
- }), Lf = /* @__PURE__ */ Ne(Mf, [["__scopeId", "data-v-2c229b1f"]]), Df = { class: "flex items-center gap-2 w-full" }, Af = ["disabled"], If = ["disabled"], Tf = /* @__PURE__ */ fe({
7918
+ }), Df = /* @__PURE__ */ Ne(Lf, [["__scopeId", "data-v-2c229b1f"]]), Af = { class: "flex items-center gap-2 w-full" }, If = ["disabled"], Tf = ["disabled"], Ff = /* @__PURE__ */ fe({
7917
7919
  __name: "vs-input-color",
7918
7920
  props: {
7919
7921
  style: { default: () => ({}) },
@@ -7932,27 +7934,27 @@ const Jd = {
7932
7934
  get: () => n.modelValue || "#000000",
7933
7935
  set: (s) => l("update:modelValue", s)
7934
7936
  }), r = w(() => !!n.disabled);
7935
- return (s, u) => (i(), m("div", Df, [
7937
+ return (s, u) => (i(), m("div", Af, [
7936
7938
  Le(c("input", {
7937
7939
  type: "color",
7938
7940
  "onUpdate:modelValue": u[0] || (u[0] = (f) => a.value = f),
7939
7941
  disabled: r.value,
7940
7942
  ref: "color",
7941
- class: re(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [s.modelValue ? "" : "text-opacity-50", B(o)].join(" ")]),
7943
+ class: oe(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [s.modelValue ? "" : "text-opacity-50", B(o)].join(" ")]),
7942
7944
  style: { border: "1px solid #CFD9E0" }
7943
- }, null, 10, Af), [
7945
+ }, null, 10, If), [
7944
7946
  [We, a.value]
7945
7947
  ]),
7946
7948
  Le(c("input", {
7947
7949
  class: "text-sm text-gray-600 border border-solid border-stone-200 rounded-md p-2",
7948
7950
  "onUpdate:modelValue": u[1] || (u[1] = (f) => a.value = f),
7949
7951
  disabled: r.value
7950
- }, null, 8, If), [
7952
+ }, null, 8, Tf), [
7951
7953
  [We, a.value]
7952
7954
  ])
7953
7955
  ]));
7954
7956
  }
7955
- }), Ff = { class: "flex items-center gap-2 w-full" }, Ef = ["min", "max", "step", "disabled"], Pf = ["value", "min", "max", "step", "disabled"], Of = /* @__PURE__ */ fe({
7957
+ }), Ef = { class: "flex items-center gap-2 w-full" }, Pf = ["min", "max", "step", "disabled"], Of = ["value", "min", "max", "step", "disabled"], Bf = /* @__PURE__ */ fe({
7956
7958
  __name: "vs-input-range",
7957
7959
  props: {
7958
7960
  style: { default: () => ({}) },
@@ -7982,7 +7984,7 @@ const Jd = {
7982
7984
  }, u = (p) => {
7983
7985
  Number(n.min) >= 0 && p.key === "-" && p.preventDefault();
7984
7986
  }, f = w(() => !!n.disabled);
7985
- return (p, x) => (i(), m("div", Ff, [
7987
+ return (p, x) => (i(), m("div", Ef, [
7986
7988
  Le(c("input", {
7987
7989
  type: "range",
7988
7990
  "onUpdate:modelValue": x[0] || (x[0] = (_) => r.value = _),
@@ -7991,8 +7993,8 @@ const Jd = {
7991
7993
  step: p.step,
7992
7994
  disabled: f.value,
7993
7995
  ref: "range",
7994
- class: re(["w-full cursor-pointer accent-blue-500", [p.modelValue ? "" : "text-opacity-50", B(o)].join(" ")])
7995
- }, null, 10, Ef), [
7996
+ class: oe(["w-full cursor-pointer accent-blue-500", [p.modelValue ? "" : "text-opacity-50", B(o)].join(" ")])
7997
+ }, null, 10, Pf), [
7996
7998
  [We, r.value]
7997
7999
  ]),
7998
8000
  c("input", {
@@ -8005,10 +8007,10 @@ const Jd = {
8005
8007
  onInput: s,
8006
8008
  onKeydown: u,
8007
8009
  disabled: f.value
8008
- }, null, 40, Pf)
8010
+ }, null, 40, Of)
8009
8011
  ]));
8010
8012
  }
8011
- }), Bf = ["placeholder", "disabled", "name"], Rf = ["type", "value", "onInput", "placeholder", "disabled"], Nf = ["onClick"], jf = /* @__PURE__ */ fe({
8013
+ }), Rf = ["placeholder", "disabled", "name"], Nf = ["type", "value", "onInput", "placeholder", "disabled"], jf = ["onClick"], Uf = /* @__PURE__ */ fe({
8012
8014
  __name: "vs-input-array",
8013
8015
  props: /* @__PURE__ */ Ee({
8014
8016
  count: { default: 1 },
@@ -8110,7 +8112,7 @@ const Jd = {
8110
8112
  f.value[C] && f.value[C].value !== y && (f.value[C].value = y || "");
8111
8113
  });
8112
8114
  }, { deep: !0 }), (h, y) => (i(), m("div", {
8113
- class: re(["grid gap-2", `grid-cols-${o.value}`])
8115
+ class: oe(["grid gap-2", `grid-cols-${o.value}`])
8114
8116
  }, [
8115
8117
  (i(!0), m($e, null, Ie(n.value, (C) => (i(), m("div", {
8116
8118
  key: C,
@@ -8124,22 +8126,22 @@ const Jd = {
8124
8126
  placeholder: h.placeholder,
8125
8127
  disabled: h.disabled,
8126
8128
  name: `${h.name}[${C - 1}]`,
8127
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(l), { "!border-red-600": h.error }]]),
8129
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(l), { "!border-red-600": h.error }]]),
8128
8130
  style: {
8129
8131
  border: "1px solid #CFD9E0"
8130
8132
  }
8131
- }, null, 10, Bf)) : (i(), m("input", {
8133
+ }, null, 10, Rf)) : (i(), m("input", {
8132
8134
  key: 1,
8133
8135
  type: h.inputType,
8134
8136
  value: a.value?.[C - 1],
8135
8137
  onInput: (b) => _(b, C - 1),
8136
8138
  placeholder: s.value,
8137
8139
  disabled: r.value,
8138
- class: re(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(l), { "!border-red-600": h.error }]]),
8140
+ class: oe(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [B(l), { "!border-red-600": h.error }]]),
8139
8141
  style: {
8140
8142
  border: "1px solid #CFD9E0"
8141
8143
  }
8142
- }, null, 42, Rf)),
8144
+ }, null, 42, Nf)),
8143
8145
  !h.disabled && C === n.value && h.isAdded ? (i(), m("button", {
8144
8146
  key: 2,
8145
8147
  type: "button",
@@ -8147,7 +8149,7 @@ const Jd = {
8147
8149
  class: "cursor-pointer shrink-0 w-[38px] text-green-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
8148
8150
  }, [
8149
8151
  Q(B(xt), { class: "h-4 w-4" })
8150
- ])) : W("", !0),
8152
+ ])) : K("", !0),
8151
8153
  !h.disabled && n.value > 1 && h.isAdded ? (i(), m("button", {
8152
8154
  key: 3,
8153
8155
  type: "button",
@@ -8155,17 +8157,17 @@ const Jd = {
8155
8157
  class: "cursor-pointer shrink-0 w-[38px] text-red-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
8156
8158
  }, [
8157
8159
  Q(B(Mt), { class: "h-4 w-4" })
8158
- ], 8, Nf)) : W("", !0)
8160
+ ], 8, jf)) : K("", !0)
8159
8161
  ]))), 128))
8160
8162
  ], 2));
8161
8163
  }
8162
- }), Uf = { class: "flex gap-1 w-full" }, zf = ["aria-expanded", "data-focus"], Hf = ["placeholder", "disabled", "readonly"], qf = { class: "max-h-full" }, Wf = ["onClick", "disabled"], Kf = {
8164
+ }), zf = { class: "flex gap-1 w-full" }, Hf = ["aria-expanded", "data-focus"], qf = ["placeholder", "disabled", "readonly"], Wf = { class: "max-h-full" }, Kf = ["onClick", "disabled"], Gf = {
8163
8165
  key: 0,
8164
8166
  class: "px-3 py-2 text-sm text-stone-500"
8165
- }, Gf = ["disabled"], Yf = { class: "flex flex-col gap-1" }, Zf = ["onDragstart", "onDrop"], Jf = ["disabled"], Xf = ["title"], Qf = ["disabled", "onClick", "aria-label"], ep = {
8167
+ }, Yf = ["disabled"], Zf = { class: "flex flex-col gap-1" }, Jf = ["onDragstart", "onDrop"], Xf = ["disabled"], Qf = ["title"], ep = ["disabled", "onClick", "aria-label"], tp = {
8166
8168
  key: 0,
8167
8169
  class: "text-xs text-stone-500"
8168
- }, tp = /* @__PURE__ */ fe({
8170
+ }, np = /* @__PURE__ */ fe({
8169
8171
  __name: "vs-input-array-select",
8170
8172
  props: /* @__PURE__ */ Ee({
8171
8173
  options: { default: () => [] },
@@ -8201,86 +8203,86 @@ const Jd = {
8201
8203
  return D ? String(D) : "";
8202
8204
  }), G = w(() => J.value ? L?.value?.[J.value] ?? null : null), ae = (D) => D == null ? "__null__" : String(D), I = (D) => {
8203
8205
  if (!D) return "";
8204
- const K = D.label ?? D.text ?? D.name ?? D.ua ?? D.en;
8205
- return K ? String(K) : D.id !== void 0 && D.id !== null ? String(D.id) : "";
8206
+ const W = D.label ?? D.text ?? D.name ?? D.ua ?? D.en;
8207
+ return W ? String(W) : D.id !== void 0 && D.id !== null ? String(D.id) : "";
8206
8208
  }, H = (D) => {
8207
- const K = ae(D);
8208
- return u.value[K] || (u.value[K] = `array-select-${K}-${Math.random().toString(36).slice(2, 8)}`), u.value[K];
8209
+ const W = ae(D);
8210
+ return u.value[W] || (u.value[W] = `array-select-${W}-${Math.random().toString(36).slice(2, 8)}`), u.value[W];
8209
8211
  }, X = w(() => new Set(a.value.map((D) => ae(D.id)))), j = w(() => {
8210
8212
  const D = X.value;
8211
- let K = [...r.value];
8213
+ let W = [...r.value];
8212
8214
  if (!n.data && p.value.trim()) {
8213
8215
  const le = p.value.toLowerCase();
8214
- K = K.filter((ve) => I(ve).toLowerCase().includes(le));
8216
+ W = W.filter((ve) => I(ve).toLowerCase().includes(le));
8215
8217
  }
8216
- return K.filter((le) => !D.has(ae(le.id)));
8218
+ return W.filter((le) => !D.has(ae(le.id)));
8217
8219
  }), z = () => {
8218
8220
  if (!n.data) return "";
8219
- const D = n.prefix ?? "api", K = n.api ?? `/${D}/suggest/${n.data}`;
8220
- return `${n.host ?? ""}${K}`;
8221
+ const D = n.prefix ?? "api", W = n.api ?? `/${D}/suggest/${n.data}`;
8222
+ return `${n.host ?? ""}${W}`;
8221
8223
  }, N = () => {
8222
8224
  a.value.length && (b = !0, a.value = a.value.map((D) => ({
8223
8225
  ...D,
8224
8226
  text: s.value[ae(D.id)] ?? D.text
8225
8227
  })));
8226
8228
  }, ue = (D) => {
8227
- const K = ae(D.id), le = I(D);
8228
- le && (s.value[K] = le);
8229
+ const W = ae(D.id), le = I(D);
8230
+ le && (s.value[W] = le);
8229
8231
  }, de = (D) => {
8230
8232
  r.value = D ? [...D] : [], D?.forEach(ue), N();
8231
8233
  }, we = (D) => {
8232
8234
  if (!D.length) return;
8233
- const K = new Map(r.value.map((le) => [ae(le.id), le]));
8235
+ const W = new Map(r.value.map((le) => [ae(le.id), le]));
8234
8236
  D.forEach((le) => {
8235
8237
  const ve = ae(le.id);
8236
- K.set(ve, le), ue(le);
8237
- }), r.value = Array.from(K.values()), N();
8238
+ W.set(ve, le), ue(le);
8239
+ }), r.value = Array.from(W.values()), N();
8238
8240
  }, ke = async (D = "") => {
8239
8241
  if (!n.data) return [];
8240
- const K = z();
8241
- if (!K) return [];
8242
+ const W = z();
8243
+ if (!W) return [];
8242
8244
  const le = new URLSearchParams();
8243
8245
  le.set("json", "1"), D && le.set("key", D), n.start === 1 && le.set("start", "1"), G.value !== null && G.value !== void 0 && G.value !== "" && le.set("parent", String(G.value));
8244
8246
  try {
8245
- return (await (await fetch(`${K}?${le.toString()}`)).json())?.data ?? [];
8247
+ return (await (await fetch(`${W}?${le.toString()}`)).json())?.data ?? [];
8246
8248
  } catch {
8247
8249
  return [];
8248
8250
  }
8249
8251
  }, Ue = async (D) => {
8250
8252
  if (!n.data || !D.length) return [];
8251
- const K = z();
8252
- if (!K) return [];
8253
+ const W = z();
8254
+ if (!W) return [];
8253
8255
  const le = Array.from(new Set(D.map((Ae) => ae(Ae)))), ve = new URLSearchParams();
8254
8256
  ve.set("json", "1"), ve.set("val", le.join(",")), n.start === 1 && ve.set("start", "1"), G.value !== null && G.value !== void 0 && G.value !== "" && ve.set("parent", String(G.value));
8255
8257
  try {
8256
- const dt = (await (await fetch(`${K}?${ve.toString()}`)).json())?.data ?? [];
8258
+ const dt = (await (await fetch(`${W}?${ve.toString()}`)).json())?.data ?? [];
8257
8259
  return we(dt), dt;
8258
8260
  } catch {
8259
8261
  return [];
8260
8262
  }
8261
8263
  }, Pe = async (D) => {
8262
8264
  if (D == null || D === "") return null;
8263
- const K = ae(D), le = r.value.find((Ae) => ae(Ae.id) === K);
8265
+ const W = ae(D), le = r.value.find((Ae) => ae(Ae.id) === W);
8264
8266
  if (le) return le;
8265
8267
  const [ve] = await Ue([D]);
8266
8268
  return ve ?? null;
8267
- }, ie = async (D = "", { force: K = !1 } = {}) => {
8269
+ }, ie = async (D = "", { force: W = !1 } = {}) => {
8268
8270
  if (!n.data) return;
8269
8271
  const le = G.value ?? null;
8270
- if (!K && f.value.keyword === D && f.value.parent === le && r.value.length > 0) return;
8272
+ if (!W && f.value.keyword === D && f.value.parent === le && r.value.length > 0) return;
8271
8273
  f.value = { keyword: D, parent: le };
8272
8274
  const Ae = await ke(D);
8273
8275
  de(Ae);
8274
- }, Se = ((D, K = 200) => {
8276
+ }, Se = ((D, W = 200) => {
8275
8277
  let le;
8276
8278
  return (...ve) => {
8277
- le && clearTimeout(le), le = setTimeout(() => D(...ve), K);
8279
+ le && clearTimeout(le), le = setTimeout(() => D(...ve), W);
8278
8280
  };
8279
8281
  })(async (D) => {
8280
8282
  n.data && await ie(D, { force: !0 });
8281
8283
  }, 250), ne = M(null), he = () => {
8282
8284
  if (!g.value) return;
8283
- const D = g.value.getBoundingClientRect(), K = window.innerHeight ?? document.documentElement.clientHeight, le = window.innerWidth ?? document.documentElement.clientWidth, ve = 8, Ae = 8, pt = n.maxHeight ?? 280, dt = K - D.bottom - Ae - ve, Tt = D.top - Ae - ve, it = dt >= Tt, ut = Math.max(le - ve * 2, 0);
8285
+ const D = g.value.getBoundingClientRect(), W = window.innerHeight ?? document.documentElement.clientHeight, le = window.innerWidth ?? document.documentElement.clientWidth, ve = 8, Ae = 8, pt = n.maxHeight ?? 280, dt = W - D.bottom - Ae - ve, Tt = D.top - Ae - ve, it = dt >= Tt, ut = Math.max(le - ve * 2, 0);
8284
8286
  let { width: Lt } = D;
8285
8287
  ut > 0 && Lt > ut && (Lt = ut);
8286
8288
  let { left: kt } = D;
@@ -8319,11 +8321,11 @@ const Jd = {
8319
8321
  D.key === "Escape" && Oe();
8320
8322
  }, Ke = (D) => {
8321
8323
  if (!x.value) return;
8322
- const K = D.target;
8323
- h.value?.contains(K) || Oe();
8324
+ const W = D.target;
8325
+ h.value?.contains(W) || Oe();
8324
8326
  }, De = (D) => {
8325
- const K = D.target;
8326
- $.value?.contains(K) || h.value?.contains(K) || Oe();
8327
+ const W = D.target;
8328
+ $.value?.contains(W) || h.value?.contains(W) || Oe();
8327
8329
  }, Re = (D) => {
8328
8330
  if (D.key === "Escape") {
8329
8331
  D.preventDefault(), Oe();
@@ -8331,13 +8333,13 @@ const Jd = {
8331
8333
  }
8332
8334
  if (D.key === "Enter") {
8333
8335
  D.preventDefault();
8334
- const K = j.value[0];
8335
- K && ze(K);
8336
+ const W = j.value[0];
8337
+ W && ze(W);
8336
8338
  }
8337
8339
  }, ze = (D) => {
8338
8340
  if (!D) return;
8339
- const K = ae(D.id);
8340
- if (X.value.has(K)) return;
8341
+ const W = ae(D.id);
8342
+ if (X.value.has(W)) return;
8341
8343
  ue(D);
8342
8344
  const le = {
8343
8345
  id: D.id,
@@ -8348,16 +8350,16 @@ const Jd = {
8348
8350
  y.value?.focus();
8349
8351
  });
8350
8352
  }, qe = (D) => {
8351
- const K = a.value.map((le) => le.id);
8353
+ const W = a.value.map((le) => le.id);
8352
8354
  o("value-selected", {
8353
8355
  name: n.name,
8354
- value: K,
8356
+ value: W,
8355
8357
  option: D
8356
8358
  });
8357
8359
  }, Qe = (D) => {
8358
8360
  if (U.value) return;
8359
- const K = a.value.filter((le) => ae(le.id) !== ae(D));
8360
- a.value = K;
8361
+ const W = a.value.filter((le) => ae(le.id) !== ae(D));
8362
+ a.value = W;
8361
8363
  }, {
8362
8364
  isOpenAdd: et,
8363
8365
  addData: ft,
@@ -8372,8 +8374,8 @@ const Jd = {
8372
8374
  optionsList: r,
8373
8375
  selectedOption: M(null),
8374
8376
  modelValue: l,
8375
- onCreated: async (D, K) => {
8376
- const le = D ?? await Pe(K), ve = le?.id ?? K;
8377
+ onCreated: async (D, W) => {
8378
+ const le = D ?? await Pe(W), ve = le?.id ?? W;
8377
8379
  X.value.has(ae(ve)) || (le && ue(le), a.value = [
8378
8380
  ...a.value,
8379
8381
  {
@@ -8387,15 +8389,15 @@ const Jd = {
8387
8389
  U.value || (_.value = D);
8388
8390
  }, F = (D) => {
8389
8391
  if (U.value || _.value === null || _.value === D) return;
8390
- const K = [...a.value], [le] = K.splice(_.value, 1);
8391
- K.splice(D, 0, le), _.value = null, a.value = K;
8392
+ const W = [...a.value], [le] = W.splice(_.value, 1);
8393
+ W.splice(D, 0, le), _.value = null, a.value = W;
8392
8394
  }, O = async () => {
8393
- const K = (Array.isArray(l.value) ? [...l.value] : []).filter((ve) => ve != null);
8394
- if (n.data && K.length) {
8395
- const ve = K.filter((Ae) => !s.value[ae(Ae)]);
8395
+ const W = (Array.isArray(l.value) ? [...l.value] : []).filter((ve) => ve != null);
8396
+ if (n.data && W.length) {
8397
+ const ve = W.filter((Ae) => !s.value[ae(Ae)]);
8396
8398
  ve.length && await Ue(ve);
8397
8399
  }
8398
- const le = K.map((ve) => ({
8400
+ const le = W.map((ve) => ({
8399
8401
  id: ve,
8400
8402
  text: s.value[ae(ve)] ?? String(ve),
8401
8403
  key: H(ve)
@@ -8407,8 +8409,8 @@ const Jd = {
8407
8409
  b = !1;
8408
8410
  return;
8409
8411
  }
8410
- const K = D.map((le) => le.id);
8411
- S = !0, l.value = K, o("change", K);
8412
+ const W = D.map((le) => le.id);
8413
+ S = !0, l.value = W, o("change", W);
8412
8414
  }, { deep: !0 }), me(l, () => {
8413
8415
  if (S) {
8414
8416
  S = !1;
@@ -8437,10 +8439,10 @@ const Jd = {
8437
8439
  document.addEventListener("click", De, !0), window.addEventListener("keydown", tt), window.addEventListener("scroll", Ke, !0), await O();
8438
8440
  }), sn(() => {
8439
8441
  document.removeEventListener("click", De, !0), window.removeEventListener("keydown", tt), window.removeEventListener("scroll", Ke, !0);
8440
- }), (D, K) => (i(), m($e, null, [
8442
+ }), (D, W) => (i(), m($e, null, [
8441
8443
  Q(B(zn), {
8442
8444
  visible: B(et),
8443
- "onUpdate:visible": K[1] || (K[1] = (le) => Rn(et) ? et.value = le : null),
8445
+ "onUpdate:visible": W[1] || (W[1] = (le) => Rn(et) ? et.value = le : null),
8444
8446
  class: "z-[1000]",
8445
8447
  title: B(se),
8446
8448
  buttonText: "Додати",
@@ -8450,7 +8452,7 @@ const Jd = {
8450
8452
  Q(jt, {
8451
8453
  schema: B(R),
8452
8454
  modelValue: B(ft),
8453
- "onUpdate:modelValue": K[0] || (K[0] = (le) => Rn(ft) ? ft.value = le : null),
8455
+ "onUpdate:modelValue": W[0] || (W[0] = (le) => Rn(ft) ? ft.value = le : null),
8454
8456
  ref_key: "addForm",
8455
8457
  ref: ee
8456
8458
  }, null, 8, ["schema", "modelValue"])
@@ -8462,16 +8464,16 @@ const Jd = {
8462
8464
  ref_key: "rootRef",
8463
8465
  ref: $
8464
8466
  }, [
8465
- c("div", Uf, [
8467
+ c("div", zf, [
8466
8468
  c("div", {
8467
8469
  class: "relative flex-1",
8468
- onClick: K[4] || (K[4] = Fe(() => {
8470
+ onClick: W[4] || (W[4] = Fe(() => {
8469
8471
  }, ["stop"]))
8470
8472
  }, [
8471
8473
  c("div", {
8472
8474
  ref_key: "triggerRef",
8473
8475
  ref: g,
8474
- class: re([
8476
+ class: oe([
8475
8477
  "flex min-h-[38px] items-center justify-between rounded border transition-colors bg-white px-3",
8476
8478
  "border-gray-300 hover:border-[#b3d4ff]",
8477
8479
  x.value ? "border-[#2684ff] ring-1 ring-[#2684ff] shadow-[0_0_0_1px_rgba(38,132,255,0.5)]" : "",
@@ -8486,23 +8488,23 @@ const Jd = {
8486
8488
  Le(c("input", {
8487
8489
  ref_key: "inputRef",
8488
8490
  ref: y,
8489
- "onUpdate:modelValue": K[2] || (K[2] = (le) => p.value = le),
8491
+ "onUpdate:modelValue": W[2] || (W[2] = (le) => p.value = le),
8490
8492
  placeholder: te.value,
8491
8493
  disabled: U.value,
8492
8494
  readonly: !P.value,
8493
- onFocus: K[3] || (K[3] = () => _e("focus")),
8495
+ onFocus: W[3] || (W[3] = () => _e("focus")),
8494
8496
  onKeydown: Re,
8495
8497
  class: "flex-1 bg-transparent border-0 outline-none px-0 py-1 text-sm text-stone-900 placeholder:text-stone-400"
8496
- }, null, 40, Hf), [
8498
+ }, null, 40, qf), [
8497
8499
  [We, p.value]
8498
8500
  ]),
8499
8501
  c("span", {
8500
- class: re(["text-stone-400 transition-transform duration-150", x.value ? "rotate-180" : ""]),
8502
+ class: oe(["text-stone-400 transition-transform duration-150", x.value ? "rotate-180" : ""]),
8501
8503
  "aria-hidden": "true"
8502
8504
  }, [
8503
8505
  Q(B(bn), { class: "h-4 w-4" })
8504
8506
  ], 2)
8505
- ], 10, zf),
8507
+ ], 10, Hf),
8506
8508
  (i(), be(tn, { to: "body" }, [
8507
8509
  Q(pl, { name: "fade" }, {
8508
8510
  default: rt(() => [
@@ -8513,17 +8515,17 @@ const Jd = {
8513
8515
  class: "fixed z-[3000] rounded-md border border-stone-200 bg-white shadow-lg overflow-auto",
8514
8516
  style: Ve(C.value)
8515
8517
  }, [
8516
- c("div", qf, [
8518
+ c("div", Wf, [
8517
8519
  (i(!0), m($e, null, Ie(j.value, (le) => (i(), m("button", {
8518
8520
  key: ae(le.id),
8519
8521
  type: "button",
8520
8522
  class: "w-full px-3 py-2 text-left text-sm text-stone-900 hover:bg-stone-100 disabled:opacity-50",
8521
8523
  onClick: Fe((ve) => ze(le), ["stop"]),
8522
8524
  disabled: U.value
8523
- }, ce(I(le)), 9, Wf))), 128)),
8524
- j.value.length === 0 ? (i(), m("p", Kf, " Немає варіантів ")) : W("", !0)
8525
+ }, ce(I(le)), 9, Kf))), 128)),
8526
+ j.value.length === 0 ? (i(), m("p", Gf, " Немає варіантів ")) : K("", !0)
8525
8527
  ])
8526
- ], 4)) : W("", !0)
8528
+ ], 4)) : K("", !0)
8527
8529
  ]),
8528
8530
  _: 1
8529
8531
  })
@@ -8531,26 +8533,26 @@ const Jd = {
8531
8533
  ]),
8532
8534
  n.add ? (i(), m("button", {
8533
8535
  key: 0,
8534
- onClick: K[5] || (K[5] = //@ts-ignore
8536
+ onClick: W[5] || (W[5] = //@ts-ignore
8535
8537
  (...le) => B(Y) && B(Y)(...le)),
8536
8538
  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",
8537
8539
  disabled: U.value,
8538
8540
  type: "button"
8539
8541
  }, [
8540
8542
  Q(B(xt), { class: "h-4 w-4" }),
8541
- K[8] || (K[8] = c("span", null, "Додати", -1))
8542
- ], 8, Gf)) : W("", !0)
8543
+ W[8] || (W[8] = c("span", null, "Додати", -1))
8544
+ ], 8, Yf)) : K("", !0)
8543
8545
  ]),
8544
- c("div", Yf, [
8546
+ c("div", Zf, [
8545
8547
  (i(!0), m($e, null, Ie(a.value, (le, ve) => (i(), m("div", {
8546
8548
  key: le.key,
8547
- class: re(["flex items-center gap-2 rounded-md border border-stone-200 bg-white px-2 py-2", { "opacity-60": _.value === ve }]),
8549
+ class: oe(["flex items-center gap-2 rounded-md border border-stone-200 bg-white px-2 py-2", { "opacity-60": _.value === ve }]),
8548
8550
  draggable: "true",
8549
8551
  onDragstart: (Ae) => Me(ve),
8550
- onDragover: K[6] || (K[6] = Fe(() => {
8552
+ onDragover: W[6] || (W[6] = Fe(() => {
8551
8553
  }, ["prevent"])),
8552
8554
  onDrop: (Ae) => F(ve),
8553
- onDragend: K[7] || (K[7] = (Ae) => _.value = null)
8555
+ onDragend: W[7] || (W[7] = (Ae) => _.value = null)
8554
8556
  }, [
8555
8557
  c("button", {
8556
8558
  type: "button",
@@ -8559,11 +8561,11 @@ const Jd = {
8559
8561
  "aria-label": "Перетягнути"
8560
8562
  }, [
8561
8563
  Q(B(rn), { class: "h-4 w-4" })
8562
- ], 8, Jf),
8564
+ ], 8, Xf),
8563
8565
  c("div", {
8564
8566
  class: "flex-1 text-sm text-stone-900",
8565
8567
  title: le.text
8566
- }, ce(le.text), 9, Xf),
8568
+ }, ce(le.text), 9, Qf),
8567
8569
  c("button", {
8568
8570
  type: "button",
8569
8571
  class: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-stone-400 hover:text-stone-900",
@@ -8572,20 +8574,20 @@ const Jd = {
8572
8574
  "aria-label": `Видалити ${le.text}`
8573
8575
  }, [
8574
8576
  Q(B(Mt), { class: "h-4 w-4" })
8575
- ], 8, Qf)
8576
- ], 42, Zf))), 128)),
8577
- a.value.length === 0 ? (i(), m("p", ep, "Немає вибраних значень")) : W("", !0)
8577
+ ], 8, ep)
8578
+ ], 42, Jf))), 128)),
8579
+ a.value.length === 0 ? (i(), m("p", tp, "Немає вибраних значень")) : K("", !0)
8578
8580
  ])
8579
8581
  ], 512)
8580
8582
  ], 64));
8581
8583
  }
8582
- }), ol = /* @__PURE__ */ Ne(tp, [["__scopeId", "data-v-da4b4da7"]]), np = { class: "flex items-center gap-2 w-full" }, lp = { class: "relative flex-1" }, ap = ["placeholder", "disabled", "onKeydown"], op = ["disabled"], rp = {
8584
+ }), ol = /* @__PURE__ */ Ne(np, [["__scopeId", "data-v-da4b4da7"]]), lp = { class: "flex items-center gap-2 w-full" }, ap = { class: "relative flex-1" }, op = ["placeholder", "disabled", "onKeydown"], rp = ["disabled"], sp = {
8583
8585
  key: 0,
8584
8586
  class: "fixed inset-0 z-[1000] flex items-center justify-center bg-black/50"
8585
- }, sp = { class: "bg-white text-gray-900 rounded-lg shadow-lg w-[480px] max-h-[80vh] overflow-y-auto" }, ip = { class: "p-3 border-b font-semibold text-gray-900 flex justify-between items-center" }, up = ["onClick"], dp = {
8587
+ }, ip = { class: "bg-white text-gray-900 rounded-lg shadow-lg w-[480px] max-h-[80vh] overflow-y-auto" }, up = { class: "p-3 border-b font-semibold text-gray-900 flex justify-between items-center" }, dp = ["onClick"], cp = {
8586
8588
  key: 0,
8587
8589
  class: "p-4 text-sm text-gray-500"
8588
- }, cp = /* @__PURE__ */ fe({
8590
+ }, fp = /* @__PURE__ */ fe({
8589
8591
  __name: "vs-input-address",
8590
8592
  props: /* @__PURE__ */ Ee({
8591
8593
  api: { default: "" },
@@ -8683,17 +8685,17 @@ const Jd = {
8683
8685
  };
8684
8686
  return o.api.replace(n, (G, ae) => J[ae.trim()] ?? "");
8685
8687
  }
8686
- return (P, J) => (i(), m("div", np, [
8687
- c("div", lp, [
8688
+ return (P, J) => (i(), m("div", lp, [
8689
+ c("div", ap, [
8688
8690
  Le(c("input", {
8689
8691
  type: "text",
8690
8692
  "onUpdate:modelValue": J[0] || (J[0] = (G) => s.value = G),
8691
8693
  placeholder: _.value,
8692
8694
  disabled: $.value,
8693
- class: re(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [B(a), { "!border-red-600": o.error }]]),
8695
+ class: oe(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [B(a), { "!border-red-600": o.error }]]),
8694
8696
  style: { border: "1px solid #CFD9E0" },
8695
8697
  onKeydown: Pa(Fe(b, ["prevent"]), ["enter"])
8696
- }, null, 42, ap), [
8698
+ }, null, 42, op), [
8697
8699
  [We, s.value]
8698
8700
  ]),
8699
8701
  f.value.length ? (i(), m("button", {
@@ -8704,7 +8706,7 @@ const Jd = {
8704
8706
  title: "Show search results"
8705
8707
  }, [
8706
8708
  Q(B(Qt), { class: "h-4 w-4" })
8707
- ])) : W("", !0)
8709
+ ])) : K("", !0)
8708
8710
  ]),
8709
8711
  c("button", {
8710
8712
  type: "button",
@@ -8719,11 +8721,11 @@ const Jd = {
8719
8721
  key: 0,
8720
8722
  class: "h-4 w-4"
8721
8723
  }))
8722
- ], 8, op),
8724
+ ], 8, rp),
8723
8725
  (i(), be(tn, { to: "body" }, [
8724
- p.value ? (i(), m("div", rp, [
8725
- c("div", sp, [
8726
- c("div", ip, [
8726
+ p.value ? (i(), m("div", sp, [
8727
+ c("div", ip, [
8728
+ c("div", up, [
8727
8729
  J[2] || (J[2] = c("span", null, "Результати пошуку", -1)),
8728
8730
  c("button", {
8729
8731
  class: "text-gray-500 hover:text-blue-600",
@@ -8738,18 +8740,18 @@ const Jd = {
8738
8740
  key: ae,
8739
8741
  onClick: (I) => U(G),
8740
8742
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
8741
- }, ce(G.display_name), 9, up))), 128))
8743
+ }, ce(G.display_name), 9, dp))), 128))
8742
8744
  ]),
8743
- f.value.length ? W("", !0) : (i(), m("div", dp, " Не знайдено результатів "))
8745
+ f.value.length ? K("", !0) : (i(), m("div", cp, " Не знайдено результатів "))
8744
8746
  ])
8745
- ])) : W("", !0)
8747
+ ])) : K("", !0)
8746
8748
  ]))
8747
8749
  ]));
8748
8750
  }
8749
- }), fp = { class: "vs-datalist space-y-3" }, pp = { class: "space-y-3" }, mp = ["onClick", "disabled"], vp = {
8751
+ }), pp = { class: "vs-datalist space-y-3" }, mp = { class: "space-y-3" }, vp = ["onClick", "disabled"], gp = {
8750
8752
  key: 0,
8751
8753
  class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
8752
- }, gp = ["disabled"], yp = /* @__PURE__ */ fe({
8754
+ }, yp = ["disabled"], hp = /* @__PURE__ */ fe({
8753
8755
  __name: "vs-input-datalist",
8754
8756
  props: /* @__PURE__ */ Ee({
8755
8757
  schema: { default: () => [] },
@@ -8805,8 +8807,8 @@ const Jd = {
8805
8807
  ...h
8806
8808
  };
8807
8809
  }
8808
- return (h, y) => (i(), m("div", fp, [
8809
- c("div", pp, [
8810
+ return (h, y) => (i(), m("div", pp, [
8811
+ c("div", mp, [
8810
8812
  (i(!0), m($e, null, Ie(o.value, (C, b) => (i(), m("div", {
8811
8813
  key: l.value[b],
8812
8814
  class: "flex items-center gap-3"
@@ -8826,9 +8828,9 @@ const Jd = {
8826
8828
  disabled: u.value
8827
8829
  }, [
8828
8830
  Q(B(nn), { class: "h-4 w-4" })
8829
- ], 8, mp)
8831
+ ], 8, vp)
8830
8832
  ]))), 128)),
8831
- o.value.length === 0 ? (i(), m("div", vp, ce(t.emptyLabel), 1)) : W("", !0)
8833
+ o.value.length === 0 ? (i(), m("div", gp, ce(t.emptyLabel), 1)) : K("", !0)
8832
8834
  ]),
8833
8835
  c("button", {
8834
8836
  type: "button",
@@ -8838,13 +8840,13 @@ const Jd = {
8838
8840
  }, [
8839
8841
  Q(B(xt), { class: "h-4 w-4" }),
8840
8842
  je(" " + ce(t.addButtonText), 1)
8841
- ], 8, gp)
8843
+ ], 8, yp)
8842
8844
  ]));
8843
8845
  }
8844
- }), hp = /* @__PURE__ */ Ne(yp, [["__scopeId", "data-v-260e3e66"]]), bp = { class: "vs-dataform space-y-4" }, wp = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], xp = { class: "flex items-center gap-2" }, kp = ["onClick"], _p = { class: "text-sm font-medium text-gray-700" }, $p = { class: "flex items-center gap-2" }, Cp = ["title", "onClick", "disabled"], Sp = ["title", "onClick", "disabled"], Vp = {
8846
+ }), bp = /* @__PURE__ */ Ne(hp, [["__scopeId", "data-v-260e3e66"]]), wp = { class: "vs-dataform space-y-4" }, xp = ["draggable", "onDragstart", "onDragover", "onDragenter", "onDrop"], kp = { class: "flex items-center gap-2" }, _p = ["onClick"], $p = { class: "text-sm font-medium text-gray-700" }, Cp = { class: "flex items-center gap-2" }, Sp = ["title", "onClick", "disabled"], Vp = ["title", "onClick", "disabled"], Mp = {
8845
8847
  key: 0,
8846
8848
  class: "rounded-lg border border-dashed border-gray-200 p-4 text-sm text-gray-500"
8847
- }, Mp = ["disabled"], Lp = /* @__PURE__ */ fe({
8849
+ }, Lp = ["disabled"], Dp = /* @__PURE__ */ fe({
8848
8850
  __name: "vs-input-dataform",
8849
8851
  props: /* @__PURE__ */ Ee({
8850
8852
  schema: { default: () => [] },
@@ -8991,10 +8993,10 @@ const Jd = {
8991
8993
  function Pe() {
8992
8994
  u.value = null, r.value = null, s.value = null;
8993
8995
  }
8994
- return (ie, ye) => (i(), m("div", bp, [
8996
+ return (ie, ye) => (i(), m("div", wp, [
8995
8997
  (i(!0), m($e, null, Ie(n.value, (Se, ne) => (i(), m("div", {
8996
8998
  key: o.value[ne],
8997
- class: re(["relative border border-gray-200 rounded-lg bg-white transition vs-dataform__group", [
8999
+ class: oe(["relative border border-gray-200 rounded-lg bg-white transition vs-dataform__group", [
8998
9000
  t.view === "accordion" ? "overflow-hidden" : ae(ne) ? "pt-6 px-6" : "p-6"
8999
9001
  ]]),
9000
9002
  draggable: h.value && !t.disabled,
@@ -9005,17 +9007,17 @@ const Jd = {
9005
9007
  onDrop: Fe((he) => z(), ["prevent"])
9006
9008
  }, [
9007
9009
  c("div", {
9008
- class: re(["flex items-center justify-between gap-2 border-b border-gray-100 px-4 py-3", [
9010
+ class: oe(["flex items-center justify-between gap-2 border-b border-gray-100 px-4 py-3", [
9009
9011
  t.view !== "accordion" ? "-mx-6 -mt-6 px-6" : "",
9010
9012
  t.view !== "accordion" && !ae(ne) ? "rounded-t-lg" : "rounded-lg"
9011
9013
  ]])
9012
9014
  }, [
9013
- c("div", xp, [
9015
+ c("div", kp, [
9014
9016
  h.value ? (i(), be(B(rn), {
9015
9017
  key: 0,
9016
9018
  class: "h-4 w-4 text-gray-400",
9017
9019
  "aria-hidden": "true"
9018
- })) : W("", !0),
9020
+ })) : K("", !0),
9019
9021
  g.value ? (i(), m("button", {
9020
9022
  key: 1,
9021
9023
  type: "button",
@@ -9023,12 +9025,12 @@ const Jd = {
9023
9025
  onClick: (he) => I(ne)
9024
9026
  }, [
9025
9027
  Q(B(bn), {
9026
- class: re(["h-4 w-4 transition", ae(ne) ? "-rotate-90" : "rotate-0"])
9028
+ class: oe(["h-4 w-4 transition", ae(ne) ? "-rotate-90" : "rotate-0"])
9027
9029
  }, null, 8, ["class"])
9028
- ], 8, kp)) : W("", !0),
9029
- c("div", _p, ce(`${f.value} (${ne + 1})`), 1)
9030
+ ], 8, _p)) : K("", !0),
9031
+ c("div", $p, ce(`${f.value} (${ne + 1})`), 1)
9030
9032
  ]),
9031
- c("div", $p, [
9033
+ c("div", Cp, [
9032
9034
  c("button", {
9033
9035
  type: "button",
9034
9036
  class: "p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-50 rounded-lg transition-all disabled:opacity-40",
@@ -9038,7 +9040,7 @@ const Jd = {
9038
9040
  draggable: "false"
9039
9041
  }, [
9040
9042
  Q(B(Ka), { class: "h-4 w-4" })
9041
- ], 8, Cp),
9043
+ ], 8, Sp),
9042
9044
  c("button", {
9043
9045
  type: "button",
9044
9046
  class: "p-2 text-gray-400 hover:text-gray-600 hover:bg-gray-50 rounded-lg transition-all disabled:opacity-40",
@@ -9048,11 +9050,11 @@ const Jd = {
9048
9050
  draggable: "false"
9049
9051
  }, [
9050
9052
  Q(B(nn), { class: "h-4 w-4" })
9051
- ], 8, Sp)
9053
+ ], 8, Vp)
9052
9054
  ])
9053
9055
  ], 2),
9054
9056
  Le(c("div", {
9055
- class: re(t.view === "accordion" ? "p-6" : "pt-6")
9057
+ class: oe(t.view === "accordion" ? "p-6" : "pt-6")
9056
9058
  }, [
9057
9059
  Q(jt, {
9058
9060
  class: "vs-dataform__form",
@@ -9067,8 +9069,8 @@ const Jd = {
9067
9069
  ], 2), [
9068
9070
  [Rt, !ae(ne)]
9069
9071
  ])
9070
- ], 42, wp))), 128)),
9071
- n.value.length === 0 ? (i(), m("div", Vp, ce(p.value), 1)) : W("", !0),
9072
+ ], 42, xp))), 128)),
9073
+ n.value.length === 0 ? (i(), m("div", Mp, ce(p.value), 1)) : K("", !0),
9072
9074
  c("button", {
9073
9075
  type: "button",
9074
9076
  class: "flex items-center gap-2 text-gray-600 hover:text-gray-900 font-medium transition-colors text-sm",
@@ -9077,10 +9079,10 @@ const Jd = {
9077
9079
  }, [
9078
9080
  Q(B(xt), { class: "h-4 w-4" }),
9079
9081
  je(" " + ce(t.addButtonText), 1)
9080
- ], 8, Mp)
9082
+ ], 8, Lp)
9081
9083
  ]));
9082
9084
  }
9083
- }), Dp = /* @__PURE__ */ Ne(Lp, [["__scopeId", "data-v-cfbcfed8"]]), Tn = "__vs_form_monaco_loader__", Zt = "__vs_form_monaco_script_loader__", Fn = "__vs_form_monaco_editor_loader__", Ap = /* @__PURE__ */ fe({
9085
+ }), Ap = /* @__PURE__ */ Ne(Dp, [["__scopeId", "data-v-cfbcfed8"]]), Tn = "__vs_form_monaco_loader__", Zt = "__vs_form_monaco_script_loader__", Fn = "__vs_form_monaco_editor_loader__", Ip = /* @__PURE__ */ fe({
9084
9086
  __name: "vs-input-monaco",
9085
9087
  props: /* @__PURE__ */ Ee({
9086
9088
  syntax: { default: "xml" },
@@ -9219,14 +9221,14 @@ const Jd = {
9219
9221
  }, null, 512)
9220
9222
  ], 4));
9221
9223
  }
9222
- }), Ip = {
9224
+ }), Tp = {
9223
9225
  VsInputText: gn,
9224
9226
  VsInputRadio: Al,
9225
9227
  VsInputInlineSelect: al,
9226
9228
  "vs-input-text": gn,
9227
9229
  "vs-input-password": wo,
9228
- "vs-input-textarea": Fi,
9229
- "vs-input-richtext": Ei,
9230
+ "vs-input-textarea": Ei,
9231
+ "vs-input-richtext": Pi,
9230
9232
  "vs-input-mask": gl,
9231
9233
  "vs-input-number": _o,
9232
9234
  "vs-input-radio": Al,
@@ -9245,31 +9247,31 @@ const Jd = {
9245
9247
  "vs-input-html": Ml,
9246
9248
  "vs-input-email": aa,
9247
9249
  "vs-input-tel": oa,
9248
- "vs-input-datatable": vu,
9250
+ "vs-input-datatable": gu,
9249
9251
  // 20kb
9250
- "vs-input-map": Bc,
9252
+ "vs-input-map": Rc,
9251
9253
  // 50kb
9252
9254
  "vs-input-file-list": ks,
9253
- "vs-input-tags": Gc,
9254
- "vs-input-slug": Xc,
9255
- "vs-input-codegen": of,
9256
- "vs-input-key-value": hf,
9257
- "vs-input-text[]": Lf,
9258
- "vs-input-range": Of,
9259
- "vs-input-color": Tf,
9255
+ "vs-input-tags": Yc,
9256
+ "vs-input-slug": Qc,
9257
+ "vs-input-codegen": rf,
9258
+ "vs-input-key-value": bf,
9259
+ "vs-input-text[]": Df,
9260
+ "vs-input-range": Bf,
9261
+ "vs-input-color": Ff,
9260
9262
  "vs-input-native-select": El,
9261
9263
  VsInputArraySelect: ol,
9262
- "vs-input-array": jf,
9264
+ "vs-input-array": Uf,
9263
9265
  "vs-input-array-select": ol,
9264
9266
  "array-select": ol,
9265
- "vs-input-address": cp,
9267
+ "vs-input-address": fp,
9266
9268
  // 7kb
9267
- "vs-input-datalist": hp,
9269
+ "vs-input-datalist": bp,
9268
9270
  // 3kb
9269
- "vs-input-dataform": Dp,
9271
+ "vs-input-dataform": Ap,
9270
9272
  // 5kb
9271
- "vs-input-monaco": Ap
9272
- }, Tp = /* @__PURE__ */ fe({
9273
+ "vs-input-monaco": Ip
9274
+ }, Fp = /* @__PURE__ */ fe({
9273
9275
  __name: "behavior",
9274
9276
  props: {
9275
9277
  api: {},
@@ -9301,7 +9303,7 @@ const Jd = {
9301
9303
  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"
9302
9304
  }, ce(l.button), 1));
9303
9305
  }
9304
- }), Fp = { class: "flex flex-col gap-1 w-full" }, Ep = { class: "w-full" }, Pp = ["disabled"], Op = ["innerHTML"], Bp = 2e3, Rp = 10, ca = /* @__PURE__ */ fe({
9306
+ }), Ep = { class: "flex flex-col gap-1 w-full" }, Pp = { class: "w-full" }, Op = ["disabled"], Bp = ["innerHTML"], Rp = 2e3, Np = 10, ca = /* @__PURE__ */ fe({
9305
9307
  __name: "vs-compact-form-layout",
9306
9308
  props: /* @__PURE__ */ Ee({
9307
9309
  item: { default: {} },
@@ -9316,7 +9318,7 @@ const Jd = {
9316
9318
  }),
9317
9319
  emits: /* @__PURE__ */ Ee(["value-selected"], ["update:modelValue"]),
9318
9320
  setup(e, { emit: t }) {
9319
- const n = e, o = Be(e, "modelValue"), l = t, a = w(() => ho[`${n.layout}`]), r = ["label", "placeholder", "info", "description", "text", "html"], s = M(G()), u = w(() => te(n.item, s.value)), f = w(() => Ip?.[`vs-input-${n.item.type}`]), p = nt("field-props"), x = w(() => {
9321
+ const n = e, o = Be(e, "modelValue"), l = t, a = w(() => ho[`${n.layout}`]), r = ["label", "placeholder", "info", "description", "text", "html"], s = M(G()), u = w(() => te(n.item, s.value)), f = w(() => Tp?.[`vs-input-${n.item.type}`]), p = nt("field-props"), x = w(() => {
9320
9322
  const I = B(f);
9321
9323
  if (!I) return /* @__PURE__ */ new Set();
9322
9324
  const H = I.props ?? I.__vccOpts?.props;
@@ -9358,9 +9360,9 @@ const Jd = {
9358
9360
  b.value = !0;
9359
9361
  try {
9360
9362
  let j = await fetch(X), z = 0;
9361
- for (; j.status === 202 && z < Rp; )
9363
+ for (; j.status === 202 && z < Np; )
9362
9364
  z += 1, await new Promise((ke) => {
9363
- setTimeout(ke, Bp);
9365
+ setTimeout(ke, Rp);
9364
9366
  }), j = await fetch(X);
9365
9367
  if (j.status === 202) {
9366
9368
  Ce({ type: "warning", title: "Validation", message: "Сервер ще обробляє запит. Спробуйте пізніше." });
@@ -9434,13 +9436,13 @@ const Jd = {
9434
9436
  }, {
9435
9437
  default: rt(() => [
9436
9438
  c("div", {
9437
- class: re(["flex w-full", `${n.item.type}-component`])
9439
+ class: oe(["flex w-full", `${n.item.type}-component`])
9438
9440
  }, [
9439
- c("div", Fp, [
9441
+ c("div", Ep, [
9440
9442
  c("div", {
9441
- class: re(["flex items-center gap-2 w-full", { "flex-1": S.value }])
9443
+ class: oe(["flex items-center gap-2 w-full", { "flex-1": S.value }])
9442
9444
  }, [
9443
- c("div", Ep, [
9445
+ c("div", Pp, [
9444
9446
  (i(), be(ct(f.value), Kt(g.value, {
9445
9447
  modelValue: o.value,
9446
9448
  "onUpdate:modelValue": H[0] || (H[0] = (X) => o.value = X),
@@ -9461,21 +9463,21 @@ const Jd = {
9461
9463
  key: 0,
9462
9464
  class: "h-4 w-4"
9463
9465
  }))
9464
- ], 8, Pp)) : W("", !0)
9466
+ ], 8, Op)) : K("", !0)
9465
9467
  ], 2),
9466
9468
  u.value.description && n.layout !== "settings" ? (i(), m("p", {
9467
9469
  key: 0,
9468
9470
  class: "text-sm text-gray-500",
9469
9471
  innerHTML: u.value.description
9470
- }, null, 8, Op)) : W("", !0)
9472
+ }, null, 8, Bp)) : K("", !0)
9471
9473
  ]),
9472
- u.value.behavior?.api && u.value.behavior?.button ? (i(), be(Tp, Kt({ key: 0 }, u.value.behavior, { value: o.value }), null, 16, ["value"])) : W("", !0)
9474
+ u.value.behavior?.api && u.value.behavior?.button ? (i(), be(Fp, Kt({ key: 0 }, u.value.behavior, { value: o.value }), null, 16, ["value"])) : K("", !0)
9473
9475
  ], 2)
9474
9476
  ]),
9475
9477
  _: 1
9476
9478
  }, 8, ["ua", "error", "item", "columns", "label"]));
9477
9479
  }
9478
- }), Np = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, jp = { class: "vs-compact-form-navigation__rail mt-[6px]" }, Up = ["onClick"], zp = /* @__PURE__ */ fe({
9480
+ }), jp = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, Up = { class: "vs-compact-form-navigation__rail mt-[6px]" }, zp = ["onClick"], Hp = /* @__PURE__ */ fe({
9479
9481
  __name: "vs-compact-form-navigation",
9480
9482
  props: {
9481
9483
  target: {},
@@ -9604,14 +9606,14 @@ const Jd = {
9604
9606
  }
9605
9607
  return t({ refresh: b }), (I, H) => r.value && o.value.length ? (i(), m("div", {
9606
9608
  key: 0,
9607
- class: re(s.value),
9609
+ class: oe(s.value),
9608
9610
  style: Ve(u.value)
9609
9611
  }, [
9610
- c("h2", Np, ce(I.title), 1),
9611
- c("div", jp, [
9612
+ c("h2", jp, ce(I.title), 1),
9613
+ c("div", Up, [
9612
9614
  (i(!0), m($e, null, Ie(o.value, (X) => (i(), m("div", {
9613
9615
  key: X.id,
9614
- class: re([
9616
+ class: oe([
9615
9617
  "vs-compact-form-navigation__item relative",
9616
9618
  X.level === 2 ? "vs-compact-form-navigation__item--nested" : "",
9617
9619
  X.id === l.value ? "vs-compact-form-navigation__item--active" : ""
@@ -9620,19 +9622,19 @@ const Jd = {
9620
9622
  c("button", {
9621
9623
  type: "button",
9622
9624
  onClick: (j) => ae(X.id),
9623
- class: re([
9625
+ class: oe([
9624
9626
  "vs-compact-form-navigation__button flex gap-x-3 py-[6px] pr-3 text-sm duration-200 hover:text-gray-800",
9625
9627
  X.level === 2 ? "pl-[15px]" : "pl-[18px]",
9626
9628
  X.id === l.value ? "text-gray-800" : "text-gray-500"
9627
9629
  ])
9628
9630
  }, [
9629
9631
  c("span", null, ce(X.text), 1)
9630
- ], 10, Up)
9632
+ ], 10, zp)
9631
9633
  ], 2))), 128))
9632
9634
  ])
9633
- ], 6)) : W("", !0);
9635
+ ], 6)) : K("", !0);
9634
9636
  }
9635
- }), Hp = /* @__PURE__ */ Ne(zp, [["__scopeId", "data-v-1584a562"]]), Vt = {
9637
+ }), qp = /* @__PURE__ */ Ne(Hp, [["__scopeId", "data-v-1584a562"]]), Vt = {
9636
9638
  required: "Це поле є обов’язковим",
9637
9639
  email: "Неправильний email",
9638
9640
  tel: "Неправильний телефон",
@@ -9640,20 +9642,20 @@ const Jd = {
9640
9642
  maxlength: (e) => `Максимальна довжина — ${e} символів`,
9641
9643
  min: (e) => `Значення має бути не менше ${e}`,
9642
9644
  max: (e) => `Значення має бути не більше ${e}`
9643
- }, qp = (e) => typeof e == "string" ? e.trim() ? !1 : Vt.required : Array.isArray(e) ? e.map((n) => typeof n == "string" ? n.trim() : n).filter((n) => n != null && n !== "").length ? !1 : Vt.required : typeof e == "number" ? Number?.isNaN(e) ? Vt?.required : !1 : e ? !1 : Vt.required, Wp = (e) => {
9645
+ }, Wp = (e) => typeof e == "string" ? e.trim() ? !1 : Vt.required : Array.isArray(e) ? e.map((n) => typeof n == "string" ? n.trim() : n).filter((n) => n != null && n !== "").length ? !1 : Vt.required : typeof e == "number" ? Number?.isNaN(e) ? Vt?.required : !1 : e ? !1 : Vt.required, Kp = (e) => {
9644
9646
  const t = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
9645
9647
  return e ? t.test(e) ? !1 : Vt.email : !1;
9646
- }, Kp = (e, t) => {
9648
+ }, Gp = (e, t) => {
9647
9649
  if (!e) return !1;
9648
9650
  const n = String(e).trim();
9649
9651
  if (!/^\+[1-9]\d{1,14}$/.test(n)) return Vt.tel;
9650
9652
  const a = (typeof t?.digits == "number" && Number.isFinite(t.digits) && t.digits > 0 ? t.digits : Wt(Nt)) || Wt(Nt);
9651
9653
  return n.length - 1 !== a ? Vt.tel : !1;
9652
- }, fa = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, Gp = (e, t) => {
9654
+ }, fa = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, Yp = (e, t) => {
9653
9655
  if (e == null) return !1;
9654
9656
  const n = Number(t?.value ?? t?.length);
9655
9657
  return Number.isFinite(n) && fa(e) < n ? t?.message || Vt.minlength(n) : !1;
9656
- }, Yp = (e, t) => {
9658
+ }, Zp = (e, t) => {
9657
9659
  if (e == null || e === "") return !1;
9658
9660
  const n = Number(t?.value ?? t?.length);
9659
9661
  return Number.isFinite(n) && fa(e) > n ? t?.message || Vt.maxlength(n) : !1;
@@ -9664,49 +9666,49 @@ const Jd = {
9664
9666
  return t ? Number(t) : Number.NaN;
9665
9667
  }
9666
9668
  return Number(e);
9667
- }, Zp = (e, t) => {
9669
+ }, Jp = (e, t) => {
9668
9670
  if (e == null || e === "") return !1;
9669
9671
  const n = Number(t?.value);
9670
9672
  if (!Number.isFinite(n)) return !1;
9671
9673
  const o = pa(e);
9672
9674
  return Number.isFinite(o) && o < n ? t?.message || Vt.min(n) : !1;
9673
- }, Jp = (e, t) => {
9675
+ }, Xp = (e, t) => {
9674
9676
  if (e == null || e === "") return !1;
9675
9677
  const n = Number(t?.value);
9676
9678
  if (!Number.isFinite(n)) return !1;
9677
9679
  const o = pa(e);
9678
9680
  return Number.isFinite(o) && o > n ? t?.message || Vt.max(n) : !1;
9679
- }, Xp = (e, t) => {
9681
+ }, Qp = (e, t) => {
9680
9682
  const n = t.pattern ?? t.regexp, o = typeof n == "string" ? new RegExp(n) : n;
9681
9683
  if (Array.isArray(e)) {
9682
9684
  const l = e.filter(Boolean);
9683
9685
  return l.length === 0 || l.every((a) => o.test(a)) ? !1 : t.message;
9684
9686
  }
9685
9687
  return !o.test(e) && e ? t.message : !1;
9686
- }, Qp = (e, t) => !1, em = (e, t) => {
9688
+ }, em = (e, t) => !1, tm = (e, t) => {
9687
9689
  switch (typeof t == "string" ? t : t.type) {
9688
9690
  case "required":
9689
- return qp(e);
9690
- case "email":
9691
9691
  return Wp(e);
9692
+ case "email":
9693
+ return Kp(e);
9692
9694
  case "tel":
9693
- return Kp(e, typeof t == "object" ? t : void 0);
9695
+ return Gp(e, typeof t == "object" ? t : void 0);
9694
9696
  case "regexp":
9695
- return Xp(e, t);
9697
+ return Qp(e, t);
9696
9698
  case "minlength":
9697
- return Gp(e, t);
9698
- case "maxlength":
9699
9699
  return Yp(e, t);
9700
- case "min":
9700
+ case "maxlength":
9701
9701
  return Zp(e, t);
9702
- case "max":
9702
+ case "min":
9703
9703
  return Jp(e, t);
9704
+ case "max":
9705
+ return Xp(e, t);
9704
9706
  case "custom":
9705
- return Qp();
9707
+ return em();
9706
9708
  default:
9707
9709
  return !1;
9708
9710
  }
9709
- }, tm = {
9711
+ }, nm = {
9710
9712
  autocomplete: "select",
9711
9713
  combobox: "select",
9712
9714
  datepicker: "date",
@@ -9721,7 +9723,7 @@ const Jd = {
9721
9723
  };
9722
9724
  function Rl(e) {
9723
9725
  const t = e?.toLowerCase();
9724
- return tm[t] || t;
9726
+ return nm[t] || t;
9725
9727
  }
9726
9728
  function il(e, t = !1) {
9727
9729
  if (Array.isArray(e)) {
@@ -9752,7 +9754,7 @@ function il(e, t = !1) {
9752
9754
  o[1].type?.includes("list") && (l.multiple = !0), !l.api && o[1].data && (l.api = `/api/suggest/${o[1].data}`), Array.isArray(l.schema) && (l.schema = il(l.schema, l.disabled)), n.push(l);
9753
9755
  }), n;
9754
9756
  }
9755
- function nm(e, t, n = !1) {
9757
+ function lm(e, t, n = !1) {
9756
9758
  const o = w(() => il(
9757
9759
  (Array.isArray(t), t),
9758
9760
  typeof n == "boolean" ? n : n.value
@@ -9774,7 +9776,7 @@ function nm(e, t, n = !1) {
9774
9776
  }
9775
9777
  let b = !1, S = null;
9776
9778
  C.forEach((L) => {
9777
- const U = em(e.value[x.name], L);
9779
+ const U = tm(e.value[x.name], L);
9778
9780
  U && (b = !0, !S && typeof U == "string" && (S = U));
9779
9781
  }), b && S ? l.value[x.name] = S : delete l.value[x.name];
9780
9782
  }
@@ -9789,7 +9791,7 @@ function nm(e, t, n = !1) {
9789
9791
  visibleSchema: s
9790
9792
  };
9791
9793
  }
9792
- const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9794
+ const am = { class: "flex w-full h-full min-h-0 gap-6" }, om = {
9793
9795
  key: 0,
9794
9796
  "data-orientation": "horizontal",
9795
9797
  role: "none",
@@ -9826,7 +9828,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9826
9828
  validate: p,
9827
9829
  reset: x,
9828
9830
  visibleSchema: _
9829
- } = nm(u, l.schema, Oa(l, "disabled")), $ = M(null), g = M(null), h = M({}), y = w(() => l.navigation), C = w(() => l.navWidth), b = w(() => l.style?.columns), S = Object.freeze({ container: 12, label: 3 }), L = w(() => l.columns ?? b.value ?? S), U = w(() => l.columns != null || b.value != null), te = w(() => U.value ? "horizontal" : l.layout), P = (j) => j?.columns ? "horizontal" : te.value, J = (j) => j?.columns ?? L.value, G = () => {
9831
+ } = lm(u, l.schema, Oa(l, "disabled")), $ = M(null), g = M(null), h = M({}), y = w(() => l.navigation), C = w(() => l.navWidth), b = w(() => l.style?.columns), S = Object.freeze({ container: 12, label: 3 }), L = w(() => l.columns ?? b.value ?? S), U = w(() => l.columns != null || b.value != null), te = w(() => U.value ? "horizontal" : l.layout), P = (j) => j?.columns ? "horizontal" : te.value, J = (j) => j?.columns ?? L.value, G = () => {
9830
9832
  !l.formId && u.value && delete u.value.id, o("update:modelValue", u.value), p(), o("handle-submit", u.value);
9831
9833
  }, ae = (j) => {
9832
9834
  o("value-selected", j);
@@ -9866,7 +9868,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9866
9868
  X(j);
9867
9869
  },
9868
9870
  { immediate: !0, deep: !0 }
9869
- ), nl("form", a), nl("values", u), nl("field-props", h), (j, z) => (i(), m("div", lm, [
9871
+ ), nl("form", a), nl("values", u), nl("field-props", h), (j, z) => (i(), m("div", am, [
9870
9872
  c("div", {
9871
9873
  class: "flex-1 min-h-0 overflow-y-auto overflow-x-visible",
9872
9874
  ref_key: "formScrollContainer",
@@ -9876,11 +9878,11 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9876
9878
  ref_key: "formRef",
9877
9879
  ref: $,
9878
9880
  onSubmit: Fe(G, ["prevent"]),
9879
- class: re(["grid grid-cols-12 p-1", te.value === "default" ? "gap-6" : "gap-4"])
9881
+ class: oe(["grid grid-cols-12 p-1", te.value === "default" ? "gap-6" : "gap-4"])
9880
9882
  }, [
9881
9883
  (i(!0), m($e, null, Ie(B(_), (N, ue) => (i(), m("div", {
9882
9884
  key: N.name,
9883
- class: re(P(N) === "horizontal" ? "col-span-12" : `col-span-${N.col || 12}`)
9885
+ class: oe(P(N) === "horizontal" ? "col-span-12" : `col-span-${N.col || 12}`)
9884
9886
  }, [
9885
9887
  Q(ca, {
9886
9888
  style: Ve(j.style),
@@ -9896,11 +9898,11 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9896
9898
  error: B(f)[N.name],
9897
9899
  onValueSelected: ae
9898
9900
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
9899
- P(N) === "settings" && ue + 1 !== B(_).length ? (i(), m("div", am)) : W("", !0)
9901
+ P(N) === "settings" && ue + 1 !== B(_).length ? (i(), m("div", om)) : K("", !0)
9900
9902
  ], 2))), 128))
9901
9903
  ], 34)
9902
9904
  ], 512),
9903
- Q(Hp, {
9905
+ Q(qp, {
9904
9906
  target: $.value,
9905
9907
  "scroll-container": g.value,
9906
9908
  enabled: y.value,
@@ -9908,7 +9910,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
9908
9910
  }, null, 8, ["target", "scroll-container", "enabled", "width"])
9909
9911
  ]));
9910
9912
  }
9911
- }), om = { class: "relative" }, rm = { class: "w-full h-full fixed top-0 start-0 bg-black bg-opacity-50" }, sm = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, im = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, um = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, dm = { class: "p-4 mim-h-0 h-full overflow-auto" }, cm = /* @__PURE__ */ fe({
9913
+ }), rm = { class: "relative" }, sm = { class: "w-full h-full fixed top-0 start-0 bg-black bg-opacity-50" }, im = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, um = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, dm = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, cm = { class: "p-4 mim-h-0 h-full overflow-auto" }, fm = /* @__PURE__ */ fe({
9912
9914
  __name: "modal-edit",
9913
9915
  props: {
9914
9916
  schema: {},
@@ -10058,11 +10060,11 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
10058
10060
  message: y.message || "Unexpected error"
10059
10061
  }), console.error(y);
10060
10062
  }
10061
- }), (y, C) => (i(), m("div", om, [
10062
- c("div", rm, [
10063
- c("div", sm, [
10064
- c("div", im, [
10065
- c("h3", um, ce(f.value === "add" ? "Додати" : "Змінити"), 1),
10063
+ }), (y, C) => (i(), m("div", rm, [
10064
+ c("div", sm, [
10065
+ c("div", im, [
10066
+ c("div", um, [
10067
+ c("h3", dm, ce(f.value === "add" ? "Додати" : "Змінити"), 1),
10066
10068
  c("button", {
10067
10069
  onClick: h,
10068
10070
  type: "button",
@@ -10072,7 +10074,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
10072
10074
  Q(B(Mt), { class: "h-4 w-4 flex-shrink-0" })
10073
10075
  ])
10074
10076
  ]),
10075
- c("div", dm, [
10077
+ c("div", cm, [
10076
10078
  l.value ? (i(), be(jt, {
10077
10079
  key: 0,
10078
10080
  schema: l.value,
@@ -10081,7 +10083,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
10081
10083
  form: r.value,
10082
10084
  "onUpdate:form": C[1] || (C[1] = (b) => r.value = b),
10083
10085
  formId: u.value
10084
- }, null, 8, ["schema", "values", "form", "formId"])) : W("", !0)
10086
+ }, null, 8, ["schema", "values", "form", "formId"])) : K("", !0)
10085
10087
  ]),
10086
10088
  c("div", { class: "vs-form__head mr-5 mb-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, [
10087
10089
  c("button", {
@@ -10099,7 +10101,7 @@ const lm = { class: "flex w-full h-full min-h-0 gap-6" }, am = {
10099
10101
  ])
10100
10102
  ]));
10101
10103
  }
10102
- }), fm = 1440 * 60 * 1e3, pm = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], mm = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], vm = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
10104
+ }), pm = 1440 * 60 * 1e3, mm = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], vm = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], gm = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
10103
10105
  function ot(e) {
10104
10106
  return e instanceof Date && !Number.isNaN(e.getTime());
10105
10107
  }
@@ -10124,7 +10126,7 @@ function wl(e, t) {
10124
10126
  const l = new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
10125
10127
  return n.setDate(Math.min(o, l)), n;
10126
10128
  }
10127
- function gm(e, t) {
10129
+ function ym(e, t) {
10128
10130
  return wl(e, -1);
10129
10131
  }
10130
10132
  function Gn(e, t) {
@@ -10140,24 +10142,24 @@ function va(e) {
10140
10142
  function ga(e) {
10141
10143
  return kn(new Date(e.getFullYear(), 11, 31));
10142
10144
  }
10143
- function ym(e) {
10145
+ function hm(e) {
10144
10146
  const t = Math.floor(e.getFullYear() / 10) * 10;
10145
10147
  return en(new Date(t, 0, 1));
10146
10148
  }
10147
- function hm(e) {
10149
+ function bm(e) {
10148
10150
  const t = Math.floor(e.getFullYear() / 10) * 10 + 9;
10149
10151
  return kn(new Date(t, 11, 31));
10150
10152
  }
10151
10153
  const St = (e) => e.getFullYear(), En = (e) => Math.floor(e.getFullYear() / 10) * 10;
10152
- function bm(e) {
10154
+ function wm(e) {
10153
10155
  const t = [];
10154
10156
  let n = en(e.start);
10155
10157
  const o = en(e.end);
10156
10158
  for (; n <= o; )
10157
- t.push(un(n)), n = new Date(n.getTime() + fm);
10159
+ t.push(un(n)), n = new Date(n.getTime() + pm);
10158
10160
  return t;
10159
10161
  }
10160
- function wm(e) {
10162
+ function xm(e) {
10161
10163
  const t = [];
10162
10164
  let n = hl(e.start);
10163
10165
  const o = bl(e.end);
@@ -10165,7 +10167,7 @@ function wm(e) {
10165
10167
  t.push(un(n)), n = wl(n, 1);
10166
10168
  return t;
10167
10169
  }
10168
- function xm(e) {
10170
+ function km(e) {
10169
10171
  const t = [];
10170
10172
  let n = va(e.start);
10171
10173
  const o = ga(e.end);
@@ -10177,26 +10179,26 @@ function xl(e, t = 1) {
10177
10179
  const n = en(e), o = (n.getDay() - t + 7) % 7;
10178
10180
  return n.setDate(n.getDate() - o), n;
10179
10181
  }
10180
- function km(e, t = 1) {
10182
+ function _m(e, t = 1) {
10181
10183
  const n = xl(e, t);
10182
10184
  return n.setDate(n.getDate() + 6), kn(n);
10183
10185
  }
10184
- function _m(e, t, n = 0) {
10186
+ function $m(e, t, n = 0) {
10185
10187
  const o = xl(e, n), l = (t - n + 7) % 7;
10186
10188
  return o.setDate(o.getDate() + l), o;
10187
10189
  }
10188
- const Bn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), ul = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), Nl = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear(), ya = (e, t) => !!e && !!t && Bn(e, t) && e.getHours() === t.getHours(), $m = (e, t) => !!e && !!t && ya(e, t) && e.getMinutes() === t.getMinutes();
10189
- function Cm(e, t) {
10190
+ const Bn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), ul = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), Nl = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear(), ya = (e, t) => !!e && !!t && Bn(e, t) && e.getHours() === t.getHours(), Cm = (e, t) => !!e && !!t && ya(e, t) && e.getMinutes() === t.getMinutes();
10191
+ function Sm(e, t) {
10190
10192
  const n = e.getTime();
10191
10193
  return n >= t.start.getTime() && n <= t.end.getTime();
10192
10194
  }
10193
10195
  const yn = (e, t) => !!e && !!t && e.getTime() < t.getTime(), hn = (e, t) => !!e && !!t && e.getTime() > t.getTime();
10194
- function Sm(e) {
10196
+ function Vm(e) {
10195
10197
  const t = e.filter((n) => ot(n));
10196
10198
  if (t.length)
10197
10199
  return t.reduce((n, o) => n.getTime() >= o.getTime() ? n : o);
10198
10200
  }
10199
- function Vm(e) {
10201
+ function Mm(e) {
10200
10202
  const t = e.filter((n) => ot(n));
10201
10203
  if (t.length)
10202
10204
  return t.reduce((n, o) => n.getTime() <= o.getTime() ? n : o);
@@ -10207,15 +10209,15 @@ function jl(e, t) {
10207
10209
  }
10208
10210
  const Pn = (e, t = 2) => String(e).padStart(t, "0");
10209
10211
  function Ul(e, t) {
10210
- return t === "wide" ? pm[e] : mm[e];
10212
+ return t === "wide" ? mm[e] : vm[e];
10211
10213
  }
10212
- function Mm(e) {
10213
- return vm[e];
10214
+ function Lm(e) {
10215
+ return gm[e];
10214
10216
  }
10215
- const Lm = [
10217
+ const Dm = [
10216
10218
  { token: "LLLL", format: (e) => Ul(e.getMonth(), "wide") },
10217
10219
  { token: "LLL", format: (e) => Ul(e.getMonth(), "abbreviated") },
10218
- { token: "EE", format: (e) => Mm(e.getDay()) },
10220
+ { token: "EE", format: (e) => Lm(e.getDay()) },
10219
10221
  { token: "yyyy", format: (e) => String(e.getFullYear()) },
10220
10222
  { token: "MM", format: (e) => Pn(e.getMonth() + 1) },
10221
10223
  { token: "dd", format: (e) => Pn(e.getDate()) },
@@ -10226,12 +10228,12 @@ function jn(e, t) {
10226
10228
  if (!ot(e)) return "";
10227
10229
  let n = "", o = 0;
10228
10230
  for (; o < t.length; ) {
10229
- const l = Lm.find((a) => t.startsWith(a.token, o));
10231
+ const l = Dm.find((a) => t.startsWith(a.token, o));
10230
10232
  l ? (n += l.format(e), o += l.token.length) : (n += t[o], o += 1);
10231
10233
  }
10232
10234
  return n;
10233
10235
  }
10234
- const Dm = {
10236
+ const Am = {
10235
10237
  "yyyy-MM-dd": /^(\d{4})-(\d{2})-(\d{2})$/,
10236
10238
  "dd.MM.yyyy": /^(\d{2})\.(\d{2})\.(\d{4})$/,
10237
10239
  "dd.MM.yyyy HH:mm": /^(\d{2})\.(\d{2})\.(\d{4}) (\d{2}):(\d{2})$/,
@@ -10240,7 +10242,7 @@ const Dm = {
10240
10242
  yyyy: /^(\d{4})$/
10241
10243
  };
10242
10244
  function zl(e, t) {
10243
- const n = Dm[t];
10245
+ const n = Am[t];
10244
10246
  if (!n) {
10245
10247
  const l = new Date(e);
10246
10248
  return ot(l) ? l : null;
@@ -10276,7 +10278,7 @@ function zl(e, t) {
10276
10278
  return null;
10277
10279
  }
10278
10280
  }
10279
- const Am = ["year", "month", "day", "time", "custom"], Im = fe({
10281
+ const Im = ["year", "month", "day", "time", "custom"], Tm = fe({
10280
10282
  components: {
10281
10283
  ChevronLeft: Ya,
10282
10284
  ChevronRight: Ga
@@ -10311,19 +10313,19 @@ const Am = ["year", "month", "day", "time", "custom"], Im = fe({
10311
10313
  viewMode: {
10312
10314
  type: String,
10313
10315
  required: !0,
10314
- validate: (e) => typeof e == "string" && Am.includes(e)
10316
+ validate: (e) => typeof e == "string" && Im.includes(e)
10315
10317
  }
10316
10318
  }
10317
- }), Tm = { class: "v3dp__heading" }, Fm = ["disabled"], Em = ["disabled"], Pm = { class: "v3dp__body" }, Om = { class: "v3dp__subheading" }, Bm = { class: "v3dp__elements" }, Rm = ["disabled", "onClick"];
10318
- function Nm(e, t, n, o, l, a) {
10319
+ }), Fm = { class: "v3dp__heading" }, Em = ["disabled"], Pm = ["disabled"], Om = { class: "v3dp__body" }, Bm = { class: "v3dp__subheading" }, Rm = { class: "v3dp__elements" }, Nm = ["disabled", "onClick"];
10320
+ function jm(e, t, n, o, l, a) {
10319
10321
  const r = wt("ChevronLeft"), s = wt("ChevronRight");
10320
10322
  return i(), m("div", {
10321
- class: re(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
10323
+ class: oe(["v3dp__popout", `v3dp__popout-${e.viewMode}`]),
10322
10324
  style: Ve({ "--popout-column-definition": `repeat(${e.columnCount}, 1fr)` }),
10323
10325
  onMousedown: t[3] || (t[3] = Fe(() => {
10324
10326
  }, ["prevent"]))
10325
10327
  }, [
10326
- c("div", Tm, [
10328
+ c("div", Fm, [
10327
10329
  c("button", {
10328
10330
  class: "v3dp__heading__button v3dp__heading__button__left",
10329
10331
  disabled: e.leftDisabled,
@@ -10332,7 +10334,7 @@ function Nm(e, t, n, o, l, a) {
10332
10334
  at(e.$slots, "arrow-left", {}, () => [
10333
10335
  Q(r, { class: "v3dp__heading__icon h-4 w-4" })
10334
10336
  ], !0)
10335
- ], 8, Fm),
10337
+ ], 8, Em),
10336
10338
  (i(), be(ct(e.headingClickable ? "button" : "span"), {
10337
10339
  class: "v3dp__heading__center",
10338
10340
  onClick: t[1] || (t[1] = Fe((u) => e.$emit("heading"), ["stop", "prevent"]))
@@ -10350,21 +10352,21 @@ function Nm(e, t, n, o, l, a) {
10350
10352
  at(e.$slots, "arrow-right", {}, () => [
10351
10353
  Q(s, { class: "v3dp__heading__icon h-4 w-4" })
10352
10354
  ], !0)
10353
- ], 8, Em)
10355
+ ], 8, Pm)
10354
10356
  ]),
10355
- c("div", Pm, [
10357
+ c("div", Om, [
10356
10358
  "subheading" in e.$slots ? (i(), m($e, { key: 0 }, [
10357
- c("div", Om, [
10359
+ c("div", Bm, [
10358
10360
  at(e.$slots, "subheading", {}, void 0, !0)
10359
10361
  ]),
10360
10362
  t[4] || (t[4] = c("hr", { class: "v3dp__divider" }, null, -1))
10361
- ], 64)) : W("", !0),
10362
- c("div", Bm, [
10363
+ ], 64)) : K("", !0),
10364
+ c("div", Rm, [
10363
10365
  at(e.$slots, "body", {}, () => [
10364
10366
  (i(!0), m($e, null, Ie(e.items, (u) => (i(), m("button", {
10365
10367
  key: u.key,
10366
10368
  disabled: u.disabled,
10367
- class: re([
10369
+ class: oe([
10368
10370
  {
10369
10371
  selected: u.selected,
10370
10372
  current: u.current
@@ -10374,13 +10376,13 @@ function Nm(e, t, n, o, l, a) {
10374
10376
  onClick: Fe((f) => e.$emit("elementClick", u.value), ["stop", "prevent"])
10375
10377
  }, [
10376
10378
  c("span", null, ce(u.display), 1)
10377
- ], 10, Rm))), 128))
10379
+ ], 10, Nm))), 128))
10378
10380
  ], !0)
10379
10381
  ])
10380
10382
  ])
10381
10383
  ], 38);
10382
10384
  }
10383
- const Yn = /* @__PURE__ */ Ne(Im, [["render", Nm], ["__scopeId", "data-v-9e083852"]]), jm = fe({
10385
+ const Yn = /* @__PURE__ */ Ne(Tm, [["render", jm], ["__scopeId", "data-v-9e083852"]]), Um = fe({
10384
10386
  components: {
10385
10387
  PickerPopup: Yn
10386
10388
  },
@@ -10407,7 +10409,7 @@ const Yn = /* @__PURE__ */ Ne(Im, [["render", Nm], ["__scopeId", "data-v-9e08385
10407
10409
  }
10408
10410
  },
10409
10411
  setup(e, { emit: t }) {
10410
- const n = w(() => ym(e.pageDate)), o = w(() => hm(e.pageDate)), l = (x, _, $) => !_ && !$ ? !0 : !(_ && St(x) < St(_) || $ && St(x) > St($)), a = w(() => xm({
10412
+ const n = w(() => hm(e.pageDate)), o = w(() => bm(e.pageDate)), l = (x, _, $) => !_ && !$ ? !0 : !(_ && St(x) < St(_) || $ && St(x) > St($)), a = w(() => km({
10411
10413
  start: n.value,
10412
10414
  end: o.value
10413
10415
  }).map(
@@ -10436,7 +10438,7 @@ const Yn = /* @__PURE__ */ Ne(Im, [["render", Nm], ["__scopeId", "data-v-9e08385
10436
10438
  };
10437
10439
  }
10438
10440
  });
10439
- function Um(e, t, n, o, l, a) {
10441
+ function zm(e, t, n, o, l, a) {
10440
10442
  const r = wt("picker-popup");
10441
10443
  return i(), be(r, {
10442
10444
  columnCount: 3,
@@ -10454,7 +10456,7 @@ function Um(e, t, n, o, l, a) {
10454
10456
  _: 1
10455
10457
  }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
10456
10458
  }
10457
- const zm = /* @__PURE__ */ Ne(jm, [["render", Um]]), Hm = fe({
10459
+ const Hm = /* @__PURE__ */ Ne(Um, [["render", zm]]), qm = fe({
10458
10460
  components: {
10459
10461
  PickerPopup: Yn
10460
10462
  },
@@ -10492,7 +10494,7 @@ const zm = /* @__PURE__ */ Ne(jm, [["render", Um]]), Hm = fe({
10492
10494
  setup(e, { emit: t }) {
10493
10495
  const n = w(() => va(e.pageDate)), o = w(() => ga(e.pageDate)), l = w(
10494
10496
  () => (_) => jn(_, e.format)
10495
- ), a = (_, $, g) => !$ && !g ? !0 : !($ && yn(_, hl($)) || g && hn(_, bl(g))), r = w(() => wm({
10497
+ ), a = (_, $, g) => !$ && !g ? !0 : !($ && yn(_, hl($)) || g && hn(_, bl(g))), r = w(() => xm({
10496
10498
  start: n.value,
10497
10499
  end: o.value
10498
10500
  }).map(
@@ -10518,7 +10520,7 @@ const zm = /* @__PURE__ */ Ne(jm, [["render", Um]]), Hm = fe({
10518
10520
  };
10519
10521
  }
10520
10522
  });
10521
- function qm(e, t, n, o, l, a) {
10523
+ function Wm(e, t, n, o, l, a) {
10522
10524
  const r = wt("picker-popup");
10523
10525
  return i(), be(r, {
10524
10526
  headingClickable: "",
@@ -10538,7 +10540,7 @@ function qm(e, t, n, o, l, a) {
10538
10540
  _: 1
10539
10541
  }, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
10540
10542
  }
10541
- const Wm = /* @__PURE__ */ Ne(Hm, [["render", qm]]), Km = fe({
10543
+ const Km = /* @__PURE__ */ Ne(qm, [["render", Wm]]), Gm = fe({
10542
10544
  components: {
10543
10545
  PickerPopup: Yn
10544
10546
  },
@@ -10607,22 +10609,22 @@ const Wm = /* @__PURE__ */ Ne(Hm, [["render", qm]]), Km = fe({
10607
10609
  end: l.value
10608
10610
  })), r = w(() => ({
10609
10611
  start: xl(o.value, e.weekStartsOn),
10610
- end: km(l.value, e.weekStartsOn)
10612
+ end: _m(l.value, e.weekStartsOn)
10611
10613
  })), s = w(() => e.customWeekdays?.length === 7 ? e.customWeekdays : null), u = w(() => {
10612
10614
  const y = e.weekStartsOn, C = s.value;
10613
10615
  if (C)
10614
10616
  return Array.from({ length: 7 }).map((S, L) => C[(y + L) % 7]);
10615
10617
  const b = n.value(e.weekdayFormat);
10616
- return Array.from(Array(7)).map((S, L) => (y + L) % 7).map((S) => _m(/* @__PURE__ */ new Date(), S, e.weekStartsOn)).map(b);
10618
+ return Array.from(Array(7)).map((S, L) => (y + L) % 7).map((S) => $m(/* @__PURE__ */ new Date(), S, e.weekStartsOn)).map(b);
10617
10619
  }), f = (y, C, b, S) => S?.dates?.some((L) => Bn(y, L)) || S?.predicate?.(y) ? !1 : !C && !b ? !0 : !(C && yn(y, en(C)) || b && hn(y, kn(b))), p = w(() => {
10618
10620
  const y = /* @__PURE__ */ new Date(), C = n.value(e.format);
10619
- return bm(r.value).map(
10621
+ return wm(r.value).map(
10620
10622
  (b) => ({
10621
10623
  value: b,
10622
10624
  display: C(b),
10623
10625
  selected: !!e.selected && Bn(e.selected, b),
10624
10626
  current: Bn(y, b),
10625
- disabled: !e.allowOutsideInterval && !Cm(b, a.value) || !f(
10627
+ disabled: !e.allowOutsideInterval && !Sm(b, a.value) || !f(
10626
10628
  b,
10627
10629
  e.lowerLimit,
10628
10630
  e.upperLimit,
@@ -10642,12 +10644,12 @@ const Wm = /* @__PURE__ */ Ne(Hm, [["render", qm]]), Km = fe({
10642
10644
  heading: x,
10643
10645
  leftDisabled: _,
10644
10646
  rightDisabled: $,
10645
- previousPage: () => t("update:pageDate", gm(e.pageDate)),
10647
+ previousPage: () => t("update:pageDate", ym(e.pageDate)),
10646
10648
  nextPage: () => t("update:pageDate", wl(e.pageDate, 1))
10647
10649
  };
10648
10650
  }
10649
10651
  });
10650
- function Gm(e, t, n, o, l, a) {
10652
+ function Ym(e, t, n, o, l, a) {
10651
10653
  const r = wt("picker-popup");
10652
10654
  return i(), be(r, {
10653
10655
  headingClickable: "",
@@ -10666,13 +10668,13 @@ function Gm(e, t, n, o, l, a) {
10666
10668
  subheading: rt(() => [
10667
10669
  (i(!0), m($e, null, Ie(e.weekDays, (s, u) => (i(), m("span", {
10668
10670
  key: s,
10669
- class: re(`v3dp__subheading__weekday__${u}`)
10671
+ class: oe(`v3dp__subheading__weekday__${u}`)
10670
10672
  }, ce(s), 3))), 128))
10671
10673
  ]),
10672
10674
  _: 1
10673
10675
  }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
10674
10676
  }
10675
- const Ym = /* @__PURE__ */ Ne(Km, [["render", Gm]]);
10677
+ const Zm = /* @__PURE__ */ Ne(Gm, [["render", Ym]]);
10676
10678
  function Hl(e, t) {
10677
10679
  const n = e.getBoundingClientRect(), o = {
10678
10680
  height: e.clientHeight,
@@ -10683,7 +10685,7 @@ function Hl(e, t) {
10683
10685
  Math.abs(r) < Math.abs(s) ? e.scrollTop += r : e.scrollTop += s;
10684
10686
  }
10685
10687
  }
10686
- const Zm = fe({
10688
+ const Jm = fe({
10687
10689
  components: {
10688
10690
  PickerPopup: Yn
10689
10691
  },
@@ -10761,19 +10763,19 @@ const Zm = fe({
10761
10763
  padStartZero: ($) => `0${$}`.substr(-2),
10762
10764
  selectMinutes: f,
10763
10765
  isEnabled: ($) => !(e.disabledTime?.dates?.some(
10764
- (g) => ya($, g) && $m($, g)
10766
+ (g) => ya($, g) && Cm($, g)
10765
10767
  ) || e.disabledTime?.predicate?.($)),
10766
10768
  scroll: p
10767
10769
  };
10768
10770
  }
10769
- }), Jm = {
10771
+ }), Xm = {
10770
10772
  ref: "hoursListRef",
10771
10773
  class: "v3dp__column"
10772
- }, Xm = ["disabled", "onClick"], Qm = {
10774
+ }, Qm = ["disabled", "onClick"], ev = {
10773
10775
  ref: "minutesListRef",
10774
10776
  class: "v3dp__column"
10775
- }, ev = ["disabled", "onClick"];
10776
- function tv(e, t, n, o, l, a) {
10777
+ }, tv = ["disabled", "onClick"];
10778
+ function nv(e, t, n, o, l, a) {
10777
10779
  const r = wt("picker-popup");
10778
10780
  return i(), be(r, {
10779
10781
  headingClickable: "",
@@ -10787,46 +10789,46 @@ function tv(e, t, n, o, l, a) {
10787
10789
  je(ce(e.padStartZero(e.hours)) + ":" + ce(e.padStartZero(e.minutes)), 1)
10788
10790
  ]),
10789
10791
  body: rt(() => [
10790
- c("div", Jm, [
10792
+ c("div", Xm, [
10791
10793
  (i(!0), m($e, null, Ie(e.hoursList, (s) => (i(), m("button", {
10792
10794
  key: s.value,
10793
10795
  ref_for: !0,
10794
10796
  ref: s.ref,
10795
- class: re([{ selected: s.selected }, "v3dp__element_button__hour"]),
10797
+ class: oe([{ selected: s.selected }, "v3dp__element_button__hour"]),
10796
10798
  disabled: !e.isEnabled(s.date),
10797
10799
  onClick: Fe((u) => e.hours = s.value, ["stop", "prevent"])
10798
10800
  }, [
10799
10801
  c("span", null, ce(e.padStartZero(s.value)), 1)
10800
- ], 10, Xm))), 128))
10802
+ ], 10, Qm))), 128))
10801
10803
  ], 512),
10802
- c("div", Qm, [
10804
+ c("div", ev, [
10803
10805
  (i(!0), m($e, null, Ie(e.minutesList, (s) => (i(), m("button", {
10804
10806
  key: s.value,
10805
10807
  ref_for: !0,
10806
10808
  ref: s.ref,
10807
- class: re([{ selected: s.selected }, "v3dp__element_button__minute"]),
10809
+ class: oe([{ selected: s.selected }, "v3dp__element_button__minute"]),
10808
10810
  disabled: !e.isEnabled(s.date),
10809
10811
  onClick: Fe((u) => e.selectMinutes(s), ["stop", "prevent"])
10810
10812
  }, [
10811
10813
  c("span", null, ce(e.padStartZero(s.value)), 1)
10812
- ], 10, ev))), 128))
10814
+ ], 10, tv))), 128))
10813
10815
  ], 512)
10814
10816
  ]),
10815
10817
  _: 1
10816
10818
  });
10817
10819
  }
10818
- const nv = /* @__PURE__ */ Ne(Zm, [["render", tv], ["__scopeId", "data-v-610b89e1"]]), On = ["time", "day", "month", "year"], lv = (e, t, n = void 0) => {
10820
+ const lv = /* @__PURE__ */ Ne(Jm, [["render", nv], ["__scopeId", "data-v-610b89e1"]]), On = ["time", "day", "month", "year"], av = (e, t, n = void 0) => {
10819
10821
  let o = n || /* @__PURE__ */ new Date();
10820
- const l = Sm([e, o]);
10822
+ const l = Vm([e, o]);
10821
10823
  l && (o = l);
10822
- const a = Vm([t, o]);
10824
+ const a = Mm([t, o]);
10823
10825
  return a && (o = a), o;
10824
- }, av = fe({
10826
+ }, ov = fe({
10825
10827
  components: {
10826
- YearPicker: zm,
10827
- MonthPicker: Wm,
10828
- DayPicker: Ym,
10829
- TimePicker: nv
10828
+ YearPicker: Hm,
10829
+ MonthPicker: Km,
10830
+ DayPicker: Zm,
10831
+ TimePicker: lv
10830
10832
  },
10831
10833
  inheritAttrs: !1,
10832
10834
  props: {
@@ -11039,7 +11041,7 @@ const nv = /* @__PURE__ */ Ne(Zm, [["render", tv], ["__scopeId", "data-v-610b89e
11039
11041
  g();
11040
11042
  });
11041
11043
  const y = (z = "none") => {
11042
- e.disabled || (z !== "none" && o.value === "none" && (l.value = e.modelValue || lv(e.lowerLimit, e.upperLimit, l.value)), o.value = z, t(z !== "none" ? "opened" : "closed"));
11044
+ e.disabled || (z !== "none" && o.value === "none" && (l.value = e.modelValue || av(e.lowerLimit, e.upperLimit, l.value)), o.value = z, t(z !== "none" ? "opened" : "closed"));
11043
11045
  };
11044
11046
  vn(() => {
11045
11047
  e.disabled && (o.value = "none");
@@ -11098,14 +11100,14 @@ const nv = /* @__PURE__ */ Ne(Zm, [["render", tv], ["__scopeId", "data-v-610b89e
11098
11100
  variables: H
11099
11101
  };
11100
11102
  }
11101
- }), ov = { class: "v3dp__input_wrapper" }, rv = ["readonly", "placeholder", "disabled", "tabindex"], sv = { class: "v3dp__clearable" };
11102
- function iv(e, t, n, o, l, a) {
11103
+ }), rv = { class: "v3dp__input_wrapper" }, sv = ["readonly", "placeholder", "disabled", "tabindex"], iv = { class: "v3dp__clearable" };
11104
+ function uv(e, t, n, o, l, a) {
11103
11105
  const r = wt("year-picker"), s = wt("month-picker"), u = wt("day-picker"), f = wt("time-picker");
11104
11106
  return i(), m("div", {
11105
11107
  class: "v3dp__datepicker",
11106
11108
  style: Ve(e.variables(e.$attrs.style))
11107
11109
  }, [
11108
- c("div", ov, [
11110
+ c("div", rv, [
11109
11111
  Le(c("input", Kt({
11110
11112
  type: "text",
11111
11113
  ref: "inputRef",
@@ -11119,10 +11121,10 @@ function iv(e, t, n, o, l, a) {
11119
11121
  onBlur: t[2] || (t[2] = (...p) => e.blur && e.blur(...p)),
11120
11122
  onFocus: t[3] || (t[3] = (...p) => e.focus && e.focus(...p)),
11121
11123
  onClick: t[4] || (t[4] = (...p) => e.click && e.click(...p))
11122
- }), null, 16, rv), [
11124
+ }), null, 16, sv), [
11123
11125
  [We, e.input]
11124
11126
  ]),
11125
- Le(c("div", sv, [
11127
+ Le(c("div", iv, [
11126
11128
  at(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
11127
11129
  c("i", {
11128
11130
  onClick: t[5] || (t[5] = (p) => e.clearModelValue())
@@ -11184,7 +11186,7 @@ function iv(e, t, n, o, l, a) {
11184
11186
  ])
11185
11187
  ], 4);
11186
11188
  }
11187
- const uv = /* @__PURE__ */ Ne(av, [["render", iv]]), dv = /* @__PURE__ */ fe({
11189
+ const dv = /* @__PURE__ */ Ne(ov, [["render", uv]]), cv = /* @__PURE__ */ fe({
11188
11190
  __name: "vs-input-date2",
11189
11191
  props: {
11190
11192
  clearable: { type: Boolean, default: !0 },
@@ -11362,10 +11364,10 @@ const uv = /* @__PURE__ */ Ne(av, [["render", iv]]), dv = /* @__PURE__ */ fe({
11362
11364
  return String(N).padStart(2, "0");
11363
11365
  }
11364
11366
  return (N, ue) => (i(), m("div", {
11365
- class: re(["vs-date-picker", n.customClass]),
11367
+ class: oe(["vs-date-picker", n.customClass]),
11366
11368
  style: Ve(C.value)
11367
11369
  }, [
11368
- Q(uv, {
11370
+ Q(dv, {
11369
11371
  modelValue: p.value,
11370
11372
  "onUpdate:modelValue": ue[0] || (ue[0] = (de) => p.value = de),
11371
11373
  placeholder: s.value,
@@ -11378,23 +11380,23 @@ const uv = /* @__PURE__ */ Ne(av, [["render", iv]]), dv = /* @__PURE__ */ fe({
11378
11380
  "minimum-view": g.value.minimumView,
11379
11381
  "input-format": y.value,
11380
11382
  name: n.name,
11381
- class: re(u.value)
11383
+ class: oe(u.value)
11382
11384
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "typeable", "week-day-names", "week-starts-on", "starting-view", "minimum-view", "input-format", "name", "class"])
11383
11385
  ], 6));
11384
11386
  }
11385
- }), wv = /* @__PURE__ */ Ne(dv, [["__scopeId", "data-v-a65a2ac3"]]), cv = { richtext: { paragraph: "Paragraph", heading1: "Heading 1", heading2: "Heading 2", heading3: "Heading 3", heading4: "Heading 4", heading5: "Heading 5", heading6: "Heading 6", createTable: "Create Table", addColumn: "Add Column", addRow: "Add Row", deleteColumn: "Delete Column", deleteRow: "Delete Row", deleteTable: "Delete Table", mergeCells: "Merge Cells", splitCells: "Split Cells", linkTitle: "Enter Link", link: "Link", linkUrl: "Enter URL", editLink: "Edit Link", openLink: "Open Link", removeLink: "Remove Link", openInNewTab: "Open in New Tab", editor: "Editor", html: "HTML", markdown: "Markdown", create: "Create", update: "Update", cancel: "Cancel" } }, fv = {
11386
- form: cv
11387
- }, pv = { richtext: { paragraph: "Звичайний текст", heading1: "Заголовок 1", heading2: "Заголовок 2", heading3: "Заголовок 3", heading4: "Заголовок 4", heading5: "Заголовок 5", heading6: "Заголовок 6", createTable: "Створити таблицю", addColumn: "Додати колонку", addRow: "Додати рядок", deleteColumn: "Видалити колонку", deleteRow: "Видалити рядок", deleteTable: "Видалити таблицю", mergeCells: "Об'єднати комірки", splitCells: "Розділити комірки", linkTitle: "Додати посилання", link: "Посилання", linkUrl: "Введіть URL", editLink: "Редагувати посилання", openLink: "Відкрити посилання", removeLink: "Видалити посилання", openInNewTab: "Відкривати в новій вкладці", editor: "Редактор", html: "HTML", markdown: "Markdown", create: "Створити", update: "Оновити", cancel: "Скасувати" } }, mv = {
11388
- form: pv
11389
- }, vv = fv.form.richtext, gv = mv.form.richtext, xv = {
11387
+ }), xv = /* @__PURE__ */ Ne(cv, [["__scopeId", "data-v-a65a2ac3"]]), fv = { richtext: { paragraph: "Paragraph", heading1: "Heading 1", heading2: "Heading 2", heading3: "Heading 3", heading4: "Heading 4", heading5: "Heading 5", heading6: "Heading 6", createTable: "Create Table", addColumn: "Add Column", addRow: "Add Row", deleteColumn: "Delete Column", deleteRow: "Delete Row", deleteTable: "Delete Table", mergeCells: "Merge Cells", splitCells: "Split Cells", linkTitle: "Enter Link", link: "Link", linkUrl: "Enter URL", editLink: "Edit Link", openLink: "Open Link", removeLink: "Remove Link", openInNewTab: "Open in New Tab", editor: "Editor", html: "HTML", markdown: "Markdown", create: "Create", update: "Update", cancel: "Cancel" } }, pv = {
11388
+ form: fv
11389
+ }, mv = { richtext: { paragraph: "Звичайний текст", heading1: "Заголовок 1", heading2: "Заголовок 2", heading3: "Заголовок 3", heading4: "Заголовок 4", heading5: "Заголовок 5", heading6: "Заголовок 6", createTable: "Створити таблицю", addColumn: "Додати колонку", addRow: "Додати рядок", deleteColumn: "Видалити колонку", deleteRow: "Видалити рядок", deleteTable: "Видалити таблицю", mergeCells: "Об'єднати комірки", splitCells: "Розділити комірки", linkTitle: "Додати посилання", link: "Посилання", linkUrl: "Введіть URL", editLink: "Редагувати посилання", openLink: "Відкрити посилання", removeLink: "Видалити посилання", openInNewTab: "Відкривати в новій вкладці", editor: "Редактор", html: "HTML", markdown: "Markdown", create: "Створити", update: "Оновити", cancel: "Скасувати" } }, vv = {
11390
+ form: mv
11391
+ }, gv = pv.form.richtext, yv = vv.form.richtext, kv = {
11390
11392
  en: {
11391
11393
  form: {
11392
- richtext: vv
11394
+ richtext: gv
11393
11395
  }
11394
11396
  },
11395
11397
  uk: {
11396
11398
  form: {
11397
- richtext: gv
11399
+ richtext: yv
11398
11400
  }
11399
11401
  }
11400
11402
  }, ql = (e = { mode: "edit", schema: null }) => new Promise((t) => {
@@ -11404,7 +11406,7 @@ const uv = /* @__PURE__ */ Ne(av, [["render", iv]]), dv = /* @__PURE__ */ fe({
11404
11406
  visible: !0,
11405
11407
  size: "medium",
11406
11408
  closeClickBack: !0,
11407
- content: cm,
11409
+ content: fm,
11408
11410
  contentProps: {
11409
11411
  ...e,
11410
11412
  onClose: () => {
@@ -11422,41 +11424,41 @@ jt.install = function(t) {
11422
11424
  }), t.provide("form", ql), window.v3plugin || (window.v3plugin = {});
11423
11425
  };
11424
11426
  export {
11425
- Bc as A,
11426
- Gc as B,
11427
- Xc as C,
11428
- of as D,
11429
- hf as E,
11430
- Lf as F,
11431
- jf as G,
11432
- cp as H,
11427
+ Rc as A,
11428
+ Yc as B,
11429
+ Qc as C,
11430
+ rf as D,
11431
+ bf as E,
11432
+ Df as F,
11433
+ Uf as G,
11434
+ fp as H,
11433
11435
  ol as I,
11434
11436
  yr as V,
11435
11437
  Ne as _,
11436
11438
  jt as a,
11437
- Ap as b,
11438
- cm as c,
11439
+ Ip as b,
11440
+ fm as c,
11439
11441
  gn as d,
11440
11442
  _o as e,
11441
11443
  la as f,
11442
11444
  Ml as g,
11443
11445
  gl as h,
11444
- Ip as i,
11446
+ Tp as i,
11445
11447
  aa as j,
11446
11448
  oa as k,
11447
- Of as l,
11448
- Tf as m,
11449
+ Bf as l,
11450
+ Ff as m,
11449
11451
  Al as n,
11450
11452
  Tr as o,
11451
11453
  ks as p,
11452
11454
  Ks as q,
11453
- xv as r,
11455
+ kv as r,
11454
11456
  El as s,
11455
11457
  al as t,
11456
- Fi as u,
11457
- wv as v,
11458
- Ei as w,
11459
- vv as x,
11460
- gv as y,
11461
- vu as z
11458
+ Ei as u,
11459
+ xv as v,
11460
+ Pi as w,
11461
+ gv as x,
11462
+ yv as y,
11463
+ gu as z
11462
11464
  };