@opengis/form 0.1.5 → 0.1.7

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,6 +1,6 @@
1
- import { defineComponent as be, ref as A, createElementBlock as v, openBlock as u, Fragment as Le, createElementVNode as d, createBlock as xe, renderSlot as dt, createVNode as Z, unref as U, Teleport as Xt, createCommentVNode as K, normalizeStyle as Oe, toDisplayString as de, computed as y, inject as ot, mergeProps as nn, createTextVNode as tt, normalizeProps as Il, guardReactiveProps as Tl, onMounted as rt, onUnmounted as hn, normalizeClass as se, mergeModels as ze, useModel as Ke, withDirectives as Ne, vModelText as st, useAttrs as Aa, vModelCheckbox as Va, resolveDynamicComponent as xt, withCtx as it, withModifiers as Fe, onBeforeUnmount as It, watch as ge, vModelRadio as Da, renderList as Be, reactive as Fl, getCurrentInstance as nl, resolveComponent as yt, createSlots as Ia, nextTick as Qe, watchEffect as El, vShow as Bt, Transition as ll, isRef as Jn, defineAsyncComponent as Oo, createStaticVNode as Pl, useSlots as Bo, provide as $n, withKeys as Ro, toRef as No } from "vue";
2
- import { Info as un, Check as Ta, Mail as jo, Phone as zo, ChevronRight as Uo, ChevronLeft as Ho, ChevronDown as bn, ChevronUp as Wo, X as $t, Clock3 as qo, CalendarDays as Ko, Table as Yo, FileCode as Go, FileText as Qn, FileArchive as Xo, Plus as Nt, Trash2 as cn, Eye as Fa, Download as Ol, Upload as Ea, Search as al, GripVertical as yn, Pencil as Zo, Circle as Jo, MapPin as Pa, Ruler as Oa, LoaderCircle as el, Minimize as Qo, Maximize as er, ZoomIn as tr, Copy as nr } from "lucide-vue-next";
3
- import { notify as Ie, VsModal as Mn, modal as lr } from "@opengis/core";
1
+ import { defineComponent as be, ref as A, createElementBlock as v, openBlock as u, Fragment as Le, createElementVNode as d, createBlock as xe, renderSlot as dt, createVNode as Z, unref as z, Teleport as Xt, createCommentVNode as K, normalizeStyle as Oe, toDisplayString as de, computed as y, inject as ot, mergeProps as nn, createTextVNode as tt, normalizeProps as Il, guardReactiveProps as Tl, onMounted as rt, onUnmounted as hn, normalizeClass as se, mergeModels as ze, useModel as Ke, withDirectives as Ne, vModelText as st, useAttrs as Va, vModelCheckbox as Da, resolveDynamicComponent as xt, withCtx as it, withModifiers as Fe, onBeforeUnmount as It, watch as ge, vModelRadio as Ia, renderList as Be, reactive as Fl, getCurrentInstance as nl, resolveComponent as yt, createSlots as Ta, nextTick as Qe, watchEffect as El, vShow as Bt, Transition as ll, isRef as Jn, defineAsyncComponent as Bo, createStaticVNode as Pl, useSlots as Ro, provide as $n, withKeys as No, toRef as jo } from "vue";
2
+ import { Info as un, Check as Fa, Mail as zo, Phone as Uo, ChevronRight as Ho, ChevronLeft as Wo, ChevronDown as bn, ChevronUp as qo, X as $t, Clock3 as Ko, CalendarDays as Yo, Table as Go, FileCode as Xo, FileText as Qn, FileArchive as Zo, Plus as Nt, Trash2 as cn, Eye as Ea, Download as Ol, Upload as Pa, Search as al, GripVertical as yn, Pencil as Jo, Circle as Qo, MapPin as Oa, Ruler as Ba, LoaderCircle as el, Minimize as er, Maximize as tr, ZoomIn as nr, Copy as lr } from "lucide-vue-next";
3
+ import { notify as Ie, VsModal as Mn, modal as ar } from "@opengis/core";
4
4
  function Ml(e, t, n) {
5
5
  if (!Array.isArray(n) || !n.length) return null;
6
6
  const l = String(e?.preset ?? e?.renderer ?? "").trim().toLowerCase();
@@ -10,10 +10,10 @@ function Ml(e, t, n) {
10
10
  }
11
11
  return n.find((o) => typeof o.match == "function" && o.match(e, t)) ?? null;
12
12
  }
13
- function ar(e, t, n) {
13
+ function or(e, t, n) {
14
14
  return !!Ml(e, t, n);
15
15
  }
16
- const Ba = /* @__PURE__ */ be({
16
+ const Ra = /* @__PURE__ */ be({
17
17
  __name: "vs-info-tooltip",
18
18
  props: {
19
19
  text: {}
@@ -38,7 +38,7 @@ const Ba = /* @__PURE__ */ be({
38
38
  onMouseleave: a
39
39
  }, [
40
40
  dt(i.$slots, "default", {}, () => [
41
- Z(U(un), { class: "h-4 w-4 text-gray-400 cursor-help" })
41
+ Z(z(un), { class: "h-4 w-4 text-gray-400 cursor-help" })
42
42
  ])
43
43
  ], 32),
44
44
  (u(), xe(Xt, { to: "body" }, [
@@ -50,23 +50,23 @@ const Ba = /* @__PURE__ */ be({
50
50
  ]))
51
51
  ], 64));
52
52
  }
53
- }), or = { autofillFrom: "Filled from", 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" } }, Bl = {
54
- form: or
55
- }, rr = { autofillFrom: "Підставлено з", 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: "Скасувати" } }, Rl = {
53
+ }), rr = { autofillFrom: "Filled from", 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" } }, Bl = {
56
54
  form: rr
57
- }, sr = { class: "w-full relative" }, ir = {
55
+ }, sr = { autofillFrom: "Підставлено з", 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: "Скасувати" } }, Rl = {
56
+ form: sr
57
+ }, ir = { class: "w-full relative" }, ur = {
58
58
  key: 0,
59
59
  class: "text-[14px] font-medium text-gray-900 mb-2 flex items-center gap-1"
60
- }, ur = { class: "opacity-100" }, dr = {
60
+ }, dr = { class: "opacity-100" }, cr = {
61
61
  key: 0,
62
62
  class: "text-red-500 text-[14px]"
63
- }, cr = {
63
+ }, pr = {
64
64
  key: 2,
65
65
  class: "text-[11px] text-slate-500 font-normal"
66
- }, pr = {
66
+ }, fr = {
67
67
  key: 1,
68
68
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
69
- }, fr = /* @__PURE__ */ be({
69
+ }, mr = /* @__PURE__ */ be({
70
70
  __name: "vs-layout-default",
71
71
  props: {
72
72
  ua: { default: "" },
@@ -90,32 +90,32 @@ const Ba = /* @__PURE__ */ be({
90
90
  const _ = String(t.item?.__locale || "uk"), $ = String(p.parentField), b = i?.value?.[$], w = b?.[`label:${_}`] || (_ !== "uk" ? b?.[_] : void 0) || b?.label || b?.ua || b?.en || $;
91
91
  return `${s[_] || s.uk}: ${w}`;
92
92
  });
93
- return (p, _) => (u(), v("div", sr, [
94
- l.value ? (u(), v("div", ir, [
95
- d("span", ur, de(n.value), 1),
96
- o.value ? (u(), v("span", dr, "*")) : K("", !0),
97
- a.value ? (u(), xe(Ba, {
93
+ return (p, _) => (u(), v("div", ir, [
94
+ l.value ? (u(), v("div", ur, [
95
+ d("span", dr, de(n.value), 1),
96
+ o.value ? (u(), v("span", cr, "*")) : K("", !0),
97
+ a.value ? (u(), xe(Ra, {
98
98
  key: 1,
99
99
  text: a.value
100
100
  }, null, 8, ["text"])) : K("", !0),
101
- c.value ? (u(), v("span", cr, " (" + de(c.value) + ") ", 1)) : K("", !0)
101
+ c.value ? (u(), v("span", pr, " (" + de(c.value) + ") ", 1)) : K("", !0)
102
102
  ])) : K("", !0),
103
103
  dt(p.$slots, "default", nn(p.$attrs, {
104
104
  class: { "opacity-60": p.item.disabled }
105
105
  })),
106
- p.error ? (u(), v("span", pr, de(p.error), 1)) : K("", !0)
106
+ p.error ? (u(), v("span", fr, de(p.error), 1)) : K("", !0)
107
107
  ]));
108
108
  }
109
- }), mr = { class: "w-full relative flex flex-row items-center gap-2" }, vr = {
109
+ }), vr = { class: "w-full relative flex flex-row items-center gap-2" }, gr = {
110
110
  key: 0,
111
111
  class: "text-red-500 text-[14px]"
112
- }, gr = {
112
+ }, yr = {
113
113
  key: 2,
114
114
  class: "text-[11px] text-slate-500 font-normal"
115
- }, yr = {
115
+ }, hr = {
116
116
  key: 1,
117
117
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
118
- }, hr = /* @__PURE__ */ be({
118
+ }, br = /* @__PURE__ */ be({
119
119
  __name: "vs-layout-horizontal",
120
120
  props: {
121
121
  ua: { default: "" },
@@ -155,19 +155,19 @@ const Ba = /* @__PURE__ */ be({
155
155
  const x = `${m * 100}%`;
156
156
  return { flexBasis: x, maxWidth: x };
157
157
  });
158
- return (b, w) => (u(), v("div", mr, [
158
+ return (b, w) => (u(), v("div", vr, [
159
159
  p.value ? (u(), v("span", {
160
160
  key: 0,
161
161
  class: "text-sm text-gray-900 font-medium flex shrink-0 items-center gap-1",
162
162
  style: Oe(_.value)
163
163
  }, [
164
164
  tt(de(n.value) + " ", 1),
165
- b.item?.rules?.includes("required") && n.value ? (u(), v("span", vr, "*")) : K("", !0),
166
- l.value ? (u(), xe(Ba, {
165
+ b.item?.rules?.includes("required") && n.value ? (u(), v("span", gr, "*")) : K("", !0),
166
+ l.value ? (u(), xe(Ra, {
167
167
  key: 1,
168
168
  text: l.value
169
169
  }, null, 8, ["text"])) : K("", !0),
170
- i.value ? (u(), v("span", gr, " (" + de(i.value) + ") ", 1)) : K("", !0)
170
+ i.value ? (u(), v("span", yr, " (" + de(i.value) + ") ", 1)) : K("", !0)
171
171
  ], 4)) : K("", !0),
172
172
  d("div", {
173
173
  class: "flex-1 min-w-0",
@@ -175,13 +175,13 @@ const Ba = /* @__PURE__ */ be({
175
175
  }, [
176
176
  dt(b.$slots, "default", Il(Tl(b.$attrs)))
177
177
  ], 4),
178
- b.error ? (u(), v("span", yr, de(b.error), 1)) : K("", !0)
178
+ b.error ? (u(), v("span", hr, de(b.error), 1)) : K("", !0)
179
179
  ]));
180
180
  }
181
- }), br = { class: "w-full relative" }, wr = {
181
+ }), wr = { class: "w-full relative" }, xr = {
182
182
  key: 0,
183
183
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
184
- }, xr = /* @__PURE__ */ be({
184
+ }, kr = /* @__PURE__ */ be({
185
185
  __name: "vs-layout-inline",
186
186
  props: {
187
187
  ua: { default: "" },
@@ -196,21 +196,21 @@ const Ba = /* @__PURE__ */ be({
196
196
  columns: {}
197
197
  },
198
198
  setup(e) {
199
- return (t, n) => (u(), v("div", br, [
199
+ return (t, n) => (u(), v("div", wr, [
200
200
  dt(t.$slots, "default", Il(Tl(t.$attrs))),
201
- t.error ? (u(), v("span", wr, de(t.error), 1)) : K("", !0)
201
+ t.error ? (u(), v("span", xr, de(t.error), 1)) : K("", !0)
202
202
  ]));
203
203
  }
204
- }), kr = { class: "flex-1 min-w-0" }, _r = {
204
+ }), _r = { class: "flex-1 min-w-0" }, $r = {
205
205
  key: 0,
206
206
  class: "text-sm font-medium text-slate-700 dark:text-slate-200 flex items-center gap-1"
207
- }, $r = { class: "truncate" }, Sr = {
207
+ }, Sr = { class: "truncate" }, Cr = {
208
208
  key: 0,
209
209
  class: "text-red-500 text-[14px]"
210
- }, Cr = ["innerHTML"], Mr = {
210
+ }, Mr = ["innerHTML"], Lr = {
211
211
  key: 0,
212
212
  class: "mt-1 text-xs text-red-500"
213
- }, Lr = /* @__PURE__ */ be({
213
+ }, Ar = /* @__PURE__ */ be({
214
214
  __name: "vs-layout-settings",
215
215
  props: {
216
216
  ua: { default: "" },
@@ -245,16 +245,16 @@ const Ba = /* @__PURE__ */ be({
245
245
  d("div", {
246
246
  class: se(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(s.item.type) ? "flex flex-col" : ""]])
247
247
  }, [
248
- d("div", kr, [
249
- s.ua || s.label ? (u(), v("p", _r, [
250
- d("span", $r, de(s.item[n.value] || s.ua || s.label), 1),
251
- o.value ? (u(), v("span", Sr, "*")) : K("", !0)
248
+ d("div", _r, [
249
+ s.ua || s.label ? (u(), v("p", $r, [
250
+ d("span", Sr, de(s.item[n.value] || s.ua || s.label), 1),
251
+ o.value ? (u(), v("span", Cr, "*")) : K("", !0)
252
252
  ])) : K("", !0),
253
253
  l.value ? (u(), v("p", {
254
254
  key: 1,
255
255
  class: "text-xs text-slate-500 dark:text-slate-400",
256
256
  innerHTML: l.value
257
- }, null, 8, Cr)) : K("", !0)
257
+ }, null, 8, Mr)) : K("", !0)
258
258
  ]),
259
259
  d("div", {
260
260
  class: se(["w-full", ["select", "native-select"].includes(s.item.type) ? "md:w-[30%]" : "md:w-auto"])
@@ -262,14 +262,14 @@ const Ba = /* @__PURE__ */ be({
262
262
  dt(s.$slots, "default", Il(Tl(s.$attrs)))
263
263
  ], 2)
264
264
  ], 2),
265
- a.value ? (u(), v("p", Mr, de(a.value), 1)) : K("", !0)
265
+ a.value ? (u(), v("p", Lr, de(a.value), 1)) : K("", !0)
266
266
  ], 2));
267
267
  }
268
- }), Ar = {
269
- default: fr,
270
- horizontal: hr,
271
- inline: xr,
272
- settings: Lr
268
+ }), Vr = {
269
+ default: mr,
270
+ horizontal: br,
271
+ inline: kr,
272
+ settings: Ar
273
273
  };
274
274
  function bt(e) {
275
275
  return {
@@ -279,7 +279,7 @@ function bt(e) {
279
279
  })
280
280
  };
281
281
  }
282
- const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
282
+ const Dr = ["placeholder", "disabled"], Ir = /* @__PURE__ */ be({
283
283
  __name: "vs-input-password",
284
284
  props: /* @__PURE__ */ ze({
285
285
  style: { default: () => ({}) },
@@ -303,15 +303,15 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
303
303
  "onUpdate:modelValue": s[0] || (s[0] = (c) => l.value = c),
304
304
  placeholder: a.value,
305
305
  disabled: o.value,
306
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(n), { "!border-red-600": i.error }]]),
306
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(n), { "!border-red-600": i.error }]]),
307
307
  style: {
308
308
  border: "1px solid #CFD9E0"
309
309
  }
310
- }, null, 10, Vr)), [
310
+ }, null, 10, Dr)), [
311
311
  [st, l.value]
312
312
  ]);
313
313
  }
314
- }), Ir = ["placeholder", "disabled", "maxlength", "minlength"], Ln = /* @__PURE__ */ be({
314
+ }), Tr = ["placeholder", "disabled", "maxlength", "minlength"], Ln = /* @__PURE__ */ be({
315
315
  __name: "vs-input-text",
316
316
  props: /* @__PURE__ */ ze({
317
317
  style: { default: () => ({}) },
@@ -341,13 +341,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
341
341
  maxlength: i.value,
342
342
  minlength: s.value,
343
343
  onBlur: c,
344
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [p.customClass, U(n), { "!border-red-600": p.error }]]),
344
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [p.customClass, z(n), { "!border-red-600": p.error }]]),
345
345
  style: { border: "1px solid #CFD9E0" }
346
- }, null, 42, Ir)), [
346
+ }, null, 42, Tr)), [
347
347
  [st, l.value]
348
348
  ]);
349
349
  }
350
- }), Tr = ["step", "placeholder", "disabled", "min", "max"], Fr = /* @__PURE__ */ be({
350
+ }), Fr = ["step", "placeholder", "disabled", "min", "max"], Er = /* @__PURE__ */ be({
351
351
  __name: "vs-input-number",
352
352
  props: /* @__PURE__ */ ze({
353
353
  style: {
@@ -380,7 +380,7 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
380
380
  }),
381
381
  emits: ["update:modelValue"],
382
382
  setup(e) {
383
- const t = e, { inputClass: n } = bt(t.style), l = Aa(), o = Ke(e, "modelValue"), a = y(() => !!t.disabled), i = (_) => {
383
+ const t = e, { inputClass: n } = bt(t.style), l = Va(), o = Ke(e, "modelValue"), a = y(() => !!t.disabled), i = (_) => {
384
384
  if (_ == null || _ === "") return;
385
385
  const $ = typeof _ == "string" ? _.trim().replace(",", ".") : _, b = Number($);
386
386
  return Number.isFinite(b) ? b : void 0;
@@ -395,13 +395,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
395
395
  "onUpdate:modelValue": $[0] || ($[0] = (b) => o.value = b),
396
396
  placeholder: e.placeholder,
397
397
  disabled: a.value,
398
- class: se(["py-1.5 px-3 block w-full bg-white", [U(n)]]),
398
+ class: se(["py-1.5 px-3 block w-full bg-white", [z(n)]]),
399
399
  style: {
400
400
  border: "1px solid #CFD9E0"
401
401
  },
402
402
  min: s.value,
403
403
  max: c.value
404
- }, null, 10, Tr)), [
404
+ }, null, 10, Fr)), [
405
405
  [st, o.value]
406
406
  ]);
407
407
  }
@@ -413,10 +413,10 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
413
413
  }, In = (e) => {
414
414
  const t = e?.icon;
415
415
  return t && typeof t != "string" ? t : null;
416
- }, Er = { class: "flex items-center gap-[4px]" }, Pr = ["value", "id", "disabled"], Or = ["for"], Br = ["innerHTML"], Rr = {
416
+ }, Pr = { class: "flex items-center gap-[4px]" }, Or = ["value", "id", "disabled"], Br = ["for"], Rr = ["innerHTML"], Nr = {
417
417
  key: 1,
418
418
  class: "text-[14px] text-gray-700 flex items-center gap-2 dark:text-neutral-400"
419
- }, Nr = ["src"], jr = /* @__PURE__ */ be({
419
+ }, jr = ["src"], zr = /* @__PURE__ */ be({
420
420
  __name: "vs-checkbox-default",
421
421
  props: {
422
422
  value: { default: "" },
@@ -448,7 +448,7 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
448
448
  maskPosition: "center"
449
449
  };
450
450
  });
451
- return (w, m) => (u(), v("div", Er, [
451
+ return (w, m) => (u(), v("div", Pr, [
452
452
  Ne(d("input", {
453
453
  type: "checkbox",
454
454
  value: w.value,
@@ -456,8 +456,8 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
456
456
  class: se(["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 }]),
457
457
  id: w.id,
458
458
  disabled: a.value
459
- }, null, 10, Pr), [
460
- [Va, o.value]
459
+ }, null, 10, Or), [
460
+ [Da, o.value]
461
461
  ]),
462
462
  d("label", {
463
463
  for: w.id,
@@ -466,13 +466,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
466
466
  d("div", {
467
467
  class: se(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [o.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", w.error ? "border-red-600" : ""]])
468
468
  }, [
469
- Z(U(Ta), { class: "h-4 w-4" })
469
+ Z(z(Fa), { class: "h-4 w-4" })
470
470
  ], 2),
471
471
  w.html ? (u(), v("div", {
472
472
  key: 0,
473
473
  class: "w-full",
474
474
  innerHTML: w.html
475
- }, null, 8, Br)) : (u(), v("span", Rr, [
475
+ }, null, 8, Rr)) : (u(), v("span", Nr, [
476
476
  p.value ? (u(), v("span", {
477
477
  key: 0,
478
478
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
@@ -489,7 +489,7 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
489
489
  width: "16",
490
490
  src: i.value,
491
491
  alt: "icon"
492
- }, null, 8, Nr)) : s.value ? (u(), xe(xt(s.value), {
492
+ }, null, 8, jr)) : s.value ? (u(), xe(xt(s.value), {
493
493
  key: 3,
494
494
  class: "h-4 w-4",
495
495
  style: Oe($.value)
@@ -498,16 +498,16 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
498
498
  tt(de(w.label), 1)
499
499
  ])
500
500
  ]))
501
- ], 10, Or)
501
+ ], 10, Br)
502
502
  ]));
503
503
  }
504
- }), zr = ["name", "value", "disabled"], Ur = ["innerHTML"], Hr = {
504
+ }), Ur = ["name", "value", "disabled"], Hr = ["innerHTML"], Wr = {
505
505
  key: 1,
506
506
  class: "flex items-center gap-[6px] text-[14px]"
507
- }, Wr = {
507
+ }, qr = {
508
508
  key: 2,
509
509
  class: "text-[16px] inline-flex items-center justify-center"
510
- }, qr = ["src"], Kr = /* @__PURE__ */ be({
510
+ }, Kr = ["src"], Yr = /* @__PURE__ */ be({
511
511
  __name: "vs-checkbox-buttons",
512
512
  props: {
513
513
  value: { type: [String, Number, Boolean], default: "" },
@@ -557,14 +557,14 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
557
557
  value: x.value,
558
558
  "onUpdate:modelValue": h[0] || (h[0] = (S) => o.value = S),
559
559
  disabled: x.disabled
560
- }, null, 8, zr), [
561
- [Va, o.value]
560
+ }, null, 8, Ur), [
561
+ [Da, o.value]
562
562
  ]),
563
563
  x.html ? (u(), v("span", {
564
564
  key: 0,
565
565
  class: "w-full",
566
566
  innerHTML: x.html
567
- }, null, 8, Ur)) : (u(), v("span", Hr, [
567
+ }, null, 8, Hr)) : (u(), v("span", Wr, [
568
568
  $.value ? (u(), v("span", {
569
569
  key: 0,
570
570
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
@@ -574,14 +574,14 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
574
574
  key: 1,
575
575
  class: "inline-block h-4 w-4",
576
576
  style: Oe(m.value)
577
- }, null, 4)) : c.value || p.value ? (u(), v("span", Wr, [
577
+ }, null, 4)) : c.value || p.value ? (u(), v("span", qr, [
578
578
  c.value ? (u(), v("img", {
579
579
  key: 0,
580
580
  src: c.value,
581
581
  width: "16",
582
582
  height: "16",
583
583
  alt: "icon"
584
- }, null, 8, qr)) : p.value ? (u(), xe(xt(p.value), {
584
+ }, null, 8, Kr)) : p.value ? (u(), xe(xt(p.value), {
585
585
  key: 1,
586
586
  class: "h-4 w-4",
587
587
  style: Oe(w.value)
@@ -593,7 +593,7 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
593
593
  ]))
594
594
  ], 2));
595
595
  }
596
- }), Yr = { class: "flex items-center" }, Ll = /* @__PURE__ */ be({
596
+ }), Gr = { class: "flex items-center" }, Ll = /* @__PURE__ */ be({
597
597
  __name: "vs-input-checkbox-item",
598
598
  props: {
599
599
  value: { default: "" },
@@ -621,8 +621,8 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
621
621
  l("update:modelValue", s);
622
622
  }
623
623
  }), i = A(`vs-checkbox-${n.view || "default"}`);
624
- return (s, c) => (u(), v("div", Yr, [
625
- (u(), xe(xt(i.value === "vs-checkbox-buttons" ? U(Kr) : U(jr)), {
624
+ return (s, c) => (u(), v("div", Gr, [
625
+ (u(), xe(xt(i.value === "vs-checkbox-buttons" ? z(Yr) : z(zr)), {
626
626
  value: s.value,
627
627
  label: s.label,
628
628
  html: s.labelHtml,
@@ -644,13 +644,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
644
644
  }, 8, ["value", "label", "html", "info", "disabled", "modelValue", "icon", "imgUrl", "option", "style", "error"]))
645
645
  ]));
646
646
  }
647
- }), Gr = {
647
+ }), Xr = {
648
648
  key: 0,
649
649
  class: "flex items-start gap-x-1"
650
- }, Xr = {
650
+ }, Zr = {
651
651
  key: 0,
652
652
  class: "text-red-500 text-[14px]"
653
- }, Zr = ["title"], Jr = ["disabled"], Ra = /* @__PURE__ */ be({
653
+ }, Jr = ["title"], Qr = ["disabled"], Na = /* @__PURE__ */ be({
654
654
  __name: "vs-input-switcher",
655
655
  props: /* @__PURE__ */ ze({
656
656
  rules: { default: () => [] },
@@ -674,13 +674,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
674
674
  emits: ["update:modelValue"],
675
675
  setup(e) {
676
676
  const t = e, n = Ke(e, "modelValue");
677
- return (l, o) => t.view === "checkbox" ? (u(), v("div", Gr, [
677
+ return (l, o) => t.view === "checkbox" ? (u(), v("div", Xr, [
678
678
  Z(Ll, {
679
679
  modelValue: n.value,
680
680
  "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
681
681
  error: l.error || ""
682
682
  }, null, 8, ["modelValue", "error"]),
683
- l.rules?.includes("required") ? (u(), v("span", Xr, "*")) : K("", !0),
683
+ l.rules?.includes("required") ? (u(), v("span", Zr, "*")) : K("", !0),
684
684
  l.i ? (u(), v("button", {
685
685
  key: 1,
686
686
  class: "cursor-pointer",
@@ -688,8 +688,8 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
688
688
  onClick: o[1] || (o[1] = Fe(() => {
689
689
  }, ["prevent"]))
690
690
  }, [
691
- Z(U(un), { class: "h-4 w-4 text-gray-500" })
692
- ], 8, Zr)) : K("", !0)
691
+ Z(z(un), { class: "h-4 w-4 text-gray-500" })
692
+ ], 8, Jr)) : K("", !0)
693
693
  ])) : (u(), v("button", {
694
694
  key: 1,
695
695
  type: "button",
@@ -701,9 +701,9 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
701
701
  "data-state": "checked",
702
702
  class: se(["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"]])
703
703
  }, null, 2)
704
- ], 10, Jr));
704
+ ], 10, Qr));
705
705
  }
706
- }), Qr = ["id", "innerHTML"], da = /* @__PURE__ */ be({
706
+ }), es = ["id", "innerHTML"], da = /* @__PURE__ */ be({
707
707
  __name: "vs-input-static",
708
708
  props: {
709
709
  text: { default: "" },
@@ -723,9 +723,9 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
723
723
  id: t.name,
724
724
  class: se(["text-gray-900", t.customClass]),
725
725
  innerHTML: t.html ? t.html : t.text
726
- }, null, 10, Qr));
726
+ }, null, 10, es));
727
727
  }
728
- }), es = ["placeholder", "disabled", "name"], Nl = /* @__PURE__ */ be({
728
+ }), ts = ["placeholder", "disabled", "name"], Nl = /* @__PURE__ */ be({
729
729
  __name: "vs-input-mask",
730
730
  props: /* @__PURE__ */ ze({
731
731
  name: {},
@@ -792,13 +792,13 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
792
792
  placeholder: s.placeholder,
793
793
  disabled: s.disabled,
794
794
  name: s.name,
795
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(n)]]),
795
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(n)]]),
796
796
  style: {
797
797
  border: "1px solid #CFD9E0"
798
798
  }
799
- }, null, 10, es));
799
+ }, null, 10, ts));
800
800
  }
801
- }), ts = { class: "relative w-full bg-white rounded-lg" }, ns = { class: "absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer" }, ls = ["placeholder", "disabled"], Na = /* @__PURE__ */ be({
801
+ }), ns = { class: "relative w-full bg-white rounded-lg" }, ls = { class: "absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer" }, as = ["placeholder", "disabled"], ja = /* @__PURE__ */ be({
802
802
  __name: "vs-input-email",
803
803
  props: /* @__PURE__ */ ze({
804
804
  style: { default: () => ({}) },
@@ -817,20 +817,20 @@ const Vr = ["placeholder", "disabled"], Dr = /* @__PURE__ */ be({
817
817
  emits: ["update:modelValue"],
818
818
  setup(e) {
819
819
  const t = e, { inputClass: n } = bt(t.style), l = Ke(e, "modelValue");
820
- return (o, a) => (u(), v("div", ts, [
821
- d("div", ns, [
822
- Z(U(jo), { class: "h-4 w-4 stroke-gray-500 transition-all" })
820
+ return (o, a) => (u(), v("div", ns, [
821
+ d("div", ls, [
822
+ Z(z(zo), { class: "h-4 w-4 stroke-gray-500 transition-all" })
823
823
  ]),
824
824
  Ne(d("input", {
825
825
  type: "email",
826
826
  "onUpdate:modelValue": a[0] || (a[0] = (i) => l.value = i),
827
827
  placeholder: o.placeholder,
828
828
  disabled: o.disabled,
829
- class: se(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(n), { "!border-red-600": o.error }]]),
829
+ class: se(["!pl-8 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(n), { "!border-red-600": o.error }]]),
830
830
  style: {
831
831
  border: "1px solid #CFD9E0"
832
832
  }
833
- }, null, 10, ls), [
833
+ }, null, 10, as), [
834
834
  [st, l.value]
835
835
  ])
836
836
  ]));
@@ -854,7 +854,7 @@ function tn(e) {
854
854
  }
855
855
  return l;
856
856
  }
857
- const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "absolute bottom-2/4 translate-y-2/4 left-[10px] pointer-events-none" }, rs = ["name", "placeholder", "disabled", "pattern"], ja = /* @__PURE__ */ be({
857
+ const os = { class: "relative w-full bg-white rounded-lg" }, rs = { class: "absolute bottom-2/4 translate-y-2/4 left-[10px] pointer-events-none" }, ss = ["name", "placeholder", "disabled", "pattern"], za = /* @__PURE__ */ be({
858
858
  __name: "vs-input-tel",
859
859
  props: /* @__PURE__ */ ze({
860
860
  style: { default: () => ({}) },
@@ -922,9 +922,9 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
922
922
  if (!i) return;
923
923
  const $ = c(_);
924
924
  i.unmaskedValue !== $ && (i.unmaskedValue = $);
925
- }), (_, $) => (u(), v("div", as, [
926
- d("div", os, [
927
- Z(U(zo), { class: "h-4 w-4 stroke-gray-500 transition-all" })
925
+ }), (_, $) => (u(), v("div", os, [
926
+ d("div", rs, [
927
+ Z(z(Uo), { class: "h-4 w-4 stroke-gray-500 transition-all" })
928
928
  ]),
929
929
  d("input", {
930
930
  ref_key: "inputEl",
@@ -936,17 +936,17 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
936
936
  pattern: n.value,
937
937
  title: "Міжнародний номер (E.164), наприклад +380XXXXXXXXX",
938
938
  autocomplete: "tel",
939
- class: se(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(l), { "!border-red-600": _.error }]]),
939
+ class: se(["!pl-10 py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(l), { "!border-red-600": _.error }]]),
940
940
  style: {
941
941
  border: "1px solid #CFD9E0"
942
942
  }
943
- }, null, 10, rs)
943
+ }, null, 10, ss)
944
944
  ]));
945
945
  }
946
- }), ss = ["value", "disabled"], is = ["innerHTML"], us = {
946
+ }), is = ["value", "disabled"], us = ["innerHTML"], ds = {
947
947
  key: 1,
948
948
  class: "flex items-center gap-2"
949
- }, ds = ["src"], cs = { class: "text-[13px] text-gray-700" }, ps = /* @__PURE__ */ be({
949
+ }, cs = ["src"], ps = { class: "text-[13px] text-gray-700" }, fs = /* @__PURE__ */ be({
950
950
  __name: "vs-input-radio-default",
951
951
  props: /* @__PURE__ */ ze({
952
952
  style: {},
@@ -991,8 +991,8 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
991
991
  value: t.value,
992
992
  disabled: l.value,
993
993
  class: "hidden"
994
- }, null, 8, ss), [
995
- [Da, n.value]
994
+ }, null, 8, is), [
995
+ [Ia, n.value]
996
996
  ]),
997
997
  d("span", {
998
998
  class: se(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
@@ -1009,7 +1009,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1009
1009
  key: 0,
1010
1010
  class: "w-full",
1011
1011
  innerHTML: t.html
1012
- }, null, 8, is)) : (u(), v("div", us, [
1012
+ }, null, 8, us)) : (u(), v("div", ds, [
1013
1013
  s.value ? (u(), v("span", {
1014
1014
  key: 0,
1015
1015
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
@@ -1026,19 +1026,19 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1026
1026
  width: "16",
1027
1027
  src: o.value,
1028
1028
  alt: "icon"
1029
- }, null, 8, ds)) : a.value ? (u(), xe(xt(a.value), {
1029
+ }, null, 8, cs)) : a.value ? (u(), xe(xt(a.value), {
1030
1030
  key: 3,
1031
1031
  class: "h-4 w-4",
1032
1032
  style: Oe(p.value)
1033
1033
  }, null, 8, ["style"])) : K("", !0),
1034
- d("span", cs, de(t.text), 1)
1034
+ d("span", ps, de(t.text), 1)
1035
1035
  ]))
1036
1036
  ], 2));
1037
1037
  }
1038
- }), fs = ["value", "disabled"], ms = ["innerHTML"], vs = {
1038
+ }), ms = ["value", "disabled"], vs = ["innerHTML"], gs = {
1039
1039
  key: 1,
1040
1040
  class: "flex items-center gap-2"
1041
- }, gs = ["src"], ys = { class: "text-[13px] text-gray-700" }, hs = /* @__PURE__ */ be({
1041
+ }, ys = ["src"], hs = { class: "text-[13px] text-gray-700" }, bs = /* @__PURE__ */ be({
1042
1042
  __name: "vs-input-radio-buttons",
1043
1043
  props: /* @__PURE__ */ ze({
1044
1044
  style: {},
@@ -1087,14 +1087,14 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1087
1087
  value: t.value,
1088
1088
  disabled: l.value,
1089
1089
  class: "hidden"
1090
- }, null, 8, fs), [
1091
- [Da, n.value]
1090
+ }, null, 8, ms), [
1091
+ [Ia, n.value]
1092
1092
  ]),
1093
1093
  t.html ? (u(), v("div", {
1094
1094
  key: 0,
1095
1095
  class: "w-full",
1096
1096
  innerHTML: t.html
1097
- }, null, 8, ms)) : (u(), v("div", vs, [
1097
+ }, null, 8, vs)) : (u(), v("div", gs, [
1098
1098
  s.value ? (u(), v("span", {
1099
1099
  key: 0,
1100
1100
  class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
@@ -1111,22 +1111,22 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1111
1111
  width: "16",
1112
1112
  src: o.value,
1113
1113
  alt: "icon"
1114
- }, null, 8, gs)) : a.value ? (u(), xe(xt(a.value), {
1114
+ }, null, 8, ys)) : a.value ? (u(), xe(xt(a.value), {
1115
1115
  key: 3,
1116
1116
  class: "h-4 w-4",
1117
1117
  style: Oe(p.value)
1118
1118
  }, null, 8, ["style"])) : K("", !0),
1119
- d("span", ys, de(t.text), 1)
1119
+ d("span", hs, de(t.text), 1)
1120
1120
  ]))
1121
1121
  ], 2));
1122
1122
  }
1123
- }), bs = {
1124
- "vs-input-radio-default": ps,
1125
- "vs-input-radio-buttons": hs
1123
+ }), ws = {
1124
+ "vs-input-radio-default": fs,
1125
+ "vs-input-radio-buttons": bs
1126
1126
  }, ca = (e) => Array.isArray(e) ? e : Array.isArray(e?.data) ? e.data : [], pa = (e) => {
1127
1127
  const t = e.host ?? "", n = e.prefix ?? "api", l = e.api ?? `/${n}/suggest/${e.data}`;
1128
1128
  return `${t}${l}`;
1129
- }, ws = (e) => ({
1129
+ }, xs = (e) => ({
1130
1130
  fetchOptions: async (l = "") => {
1131
1131
  const o = e();
1132
1132
  if (!o.data)
@@ -1163,7 +1163,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1163
1163
  const l = A([]), o = y(() => e.parent ? t?.value?.[e.parent]?.toString?.() ?? null : null), {
1164
1164
  fetchOptions: a,
1165
1165
  fetchOptionByValue: i
1166
- } = ws(() => ({
1166
+ } = xs(() => ({
1167
1167
  data: e.data,
1168
1168
  options: e.options,
1169
1169
  api: e.api,
@@ -1186,17 +1186,17 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1186
1186
  fetchOptionByValue: i,
1187
1187
  loadOptions: s
1188
1188
  };
1189
- }, xs = /\{\{\s*([^}]+?)\s*\}\}/g, ks = (e) => (e ? String(e) : "").replace(/<[^>]*>/g, "").trim(), _s = (e, t) => t.split(".").reduce((n, l) => n == null ? n : n[l.trim()], e), sl = (e, t) => {
1189
+ }, ks = /\{\{\s*([^}]+?)\s*\}\}/g, _s = (e) => (e ? String(e) : "").replace(/<[^>]*>/g, "").trim(), $s = (e, t) => t.split(".").reduce((n, l) => n == null ? n : n[l.trim()], e), sl = (e, t) => {
1190
1190
  if (!e) return "";
1191
1191
  const n = (t ?? "").trim();
1192
- return n ? n.replace(xs, (l, o) => {
1193
- const a = String(o).trim(), i = e, c = (a.includes(".") ? _s(i, a) : void 0) ?? i[a];
1192
+ return n ? n.replace(ks, (l, o) => {
1193
+ const a = String(o).trim(), i = e, c = (a.includes(".") ? $s(i, a) : void 0) ?? i[a];
1194
1194
  return c != null ? String(c) : "";
1195
1195
  }) : e.text ?? "";
1196
1196
  }, il = (e, t) => {
1197
1197
  if (!e) return "";
1198
1198
  const n = sl(e, t);
1199
- return ks(n) || e.text || "";
1199
+ return _s(n) || e.text || "";
1200
1200
  }, fa = /* @__PURE__ */ be({
1201
1201
  __name: "vs-input-radio",
1202
1202
  props: /* @__PURE__ */ ze({
@@ -1225,7 +1225,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1225
1225
  }),
1226
1226
  emits: ["update:modelValue"],
1227
1227
  setup(e) {
1228
- const t = e, n = Ke(e, "modelValue"), l = y(() => bs[`vs-input-radio-${t.view}`]), o = y(() => t.slot ?? t?.optionTemplate ?? ""), a = y(() => ol(o.value)), i = (w) => sl(w, o.value), s = (w) => il(w, o.value), c = y(() => t.position === "horizontal" ? "flex w-full flex-row flex-wrap gap-[10px]" : "flex w-full flex-col gap-2"), p = y(() => {
1228
+ const t = e, n = Ke(e, "modelValue"), l = y(() => ws[`vs-input-radio-${t.view}`]), o = y(() => t.slot ?? t?.optionTemplate ?? ""), a = y(() => ol(o.value)), i = (w) => sl(w, o.value), s = (w) => il(w, o.value), c = y(() => t.position === "horizontal" ? "flex w-full flex-row flex-wrap gap-[10px]" : "flex w-full flex-col gap-2"), p = y(() => {
1229
1229
  if (t.position === "horizontal" && t.customClass?.includes("50%"))
1230
1230
  return {
1231
1231
  flex: "0 0 calc(50% - 5px)"
@@ -1239,7 +1239,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1239
1239
  }), (w, m) => (u(), v("div", {
1240
1240
  class: se(c.value)
1241
1241
  }, [
1242
- (u(!0), v(Le, null, Be(U($), (x) => (u(), v("div", {
1242
+ (u(!0), v(Le, null, Be(z($), (x) => (u(), v("div", {
1243
1243
  key: x?.id,
1244
1244
  class: se(["flex items-stretch", w.position === "horizontal" ? t.customClass : ""]),
1245
1245
  style: Oe(p.value)
@@ -1257,13 +1257,13 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1257
1257
  ], 6))), 128))
1258
1258
  ], 2));
1259
1259
  }
1260
- }), $s = {
1260
+ }), Ss = {
1261
1261
  key: 1,
1262
1262
  class: "w-full flex flex-col gap-4"
1263
- }, Ss = {
1263
+ }, Cs = {
1264
1264
  key: 0,
1265
1265
  class: "text-sm font-medium text-muted-foreground my-2"
1266
- }, Cs = "Без категорії", Ms = /* @__PURE__ */ be({
1266
+ }, Ms = "Без категорії", Ls = /* @__PURE__ */ be({
1267
1267
  __name: "vs-input-checkbox",
1268
1268
  props: {
1269
1269
  options: { default: () => [] },
@@ -1318,7 +1318,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1318
1318
  const T = C.get(R) || [];
1319
1319
  if (!T.length)
1320
1320
  return null;
1321
- const N = R === null ? "group-null" : `group-${String(R)}`, F = R === null ? Cs : String(R);
1321
+ const N = R === null ? "group-null" : `group-${String(R)}`, F = R === null ? Ms : String(R);
1322
1322
  return D.add(R), {
1323
1323
  key: N,
1324
1324
  label: F,
@@ -1376,12 +1376,12 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1376
1376
  }
1377
1377
  });
1378
1378
  }
1379
- }), (C, I) => n.group ? (u(), v("div", $s, [
1379
+ }), (C, I) => n.group ? (u(), v("div", Ss, [
1380
1380
  (u(!0), v(Le, null, Be(S.value, (D) => (u(), v("div", {
1381
1381
  key: D.key,
1382
1382
  class: "flex flex-col gap-2"
1383
1383
  }, [
1384
- D.label ? (u(), v("span", Ss, de(D.label), 1)) : K("", !0),
1384
+ D.label ? (u(), v("span", Cs, de(D.label), 1)) : K("", !0),
1385
1385
  d("div", {
1386
1386
  class: se(["p-0 w-full gap-[12px]", x.value])
1387
1387
  }, [
@@ -1426,7 +1426,7 @@ const as = { class: "relative w-full bg-white rounded-lg" }, os = { class: "abso
1426
1426
  for (const [l, o] of t)
1427
1427
  n[l] = o;
1428
1428
  return n;
1429
- }, Ls = /* @__PURE__ */ Ze(Ms, [["__scopeId", "data-v-9056e0ec"]]), As = 1440 * 60 * 1e3, Vs = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], Ds = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], Is = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
1429
+ }, As = /* @__PURE__ */ Ze(Ls, [["__scopeId", "data-v-9056e0ec"]]), Vs = 1440 * 60 * 1e3, Ds = ["січень", "лютий", "березень", "квітень", "травень", "червень", "липень", "серпень", "вересень", "жовтень", "листопад", "грудень"], Is = ["січ", "лют", "бер", "квіт", "трав", "черв", "лип", "серп", "вер", "жовт", "лист", "груд"], Ts = ["нд", "пн", "вт", "ср", "чт", "пт", "сб"];
1430
1430
  function ht(e) {
1431
1431
  return e instanceof Date && !Number.isNaN(e.getTime());
1432
1432
  }
@@ -1451,40 +1451,40 @@ function Ul(e, t) {
1451
1451
  const o = new Date(n.getFullYear(), n.getMonth() + 1, 0).getDate();
1452
1452
  return n.setDate(Math.min(l, o)), n;
1453
1453
  }
1454
- function Ts(e, t) {
1454
+ function Fs(e, t) {
1455
1455
  return Ul(e, -1);
1456
1456
  }
1457
1457
  function ul(e, t) {
1458
1458
  const n = new Date(e);
1459
1459
  return n.setFullYear(n.getFullYear() + t), n;
1460
1460
  }
1461
- function za(e, t) {
1461
+ function Ua(e, t) {
1462
1462
  return ul(e, -t);
1463
1463
  }
1464
- function Ua(e) {
1464
+ function Ha(e) {
1465
1465
  return dn(new Date(e.getFullYear(), 0, 1));
1466
1466
  }
1467
- function Ha(e) {
1467
+ function Wa(e) {
1468
1468
  return Tn(new Date(e.getFullYear(), 11, 31));
1469
1469
  }
1470
- function Fs(e) {
1470
+ function Es(e) {
1471
1471
  const t = Math.floor(e.getFullYear() / 10) * 10;
1472
1472
  return dn(new Date(t, 0, 1));
1473
1473
  }
1474
- function Es(e) {
1474
+ function Ps(e) {
1475
1475
  const t = Math.floor(e.getFullYear() / 10) * 10 + 9;
1476
1476
  return Tn(new Date(t, 11, 31));
1477
1477
  }
1478
1478
  const At = (e) => e.getFullYear(), Rn = (e) => Math.floor(e.getFullYear() / 10) * 10;
1479
- function Ps(e) {
1479
+ function Os(e) {
1480
1480
  const t = [];
1481
1481
  let n = dn(e.start);
1482
1482
  const l = dn(e.end);
1483
1483
  for (; n <= l; )
1484
- t.push(wn(n)), n = new Date(n.getTime() + As);
1484
+ t.push(wn(n)), n = new Date(n.getTime() + Vs);
1485
1485
  return t;
1486
1486
  }
1487
- function Os(e) {
1487
+ function Bs(e) {
1488
1488
  const t = [];
1489
1489
  let n = jl(e.start);
1490
1490
  const l = zl(e.end);
@@ -1492,10 +1492,10 @@ function Os(e) {
1492
1492
  t.push(wn(n)), n = Ul(n, 1);
1493
1493
  return t;
1494
1494
  }
1495
- function Bs(e) {
1495
+ function Rs(e) {
1496
1496
  const t = [];
1497
- let n = Ua(e.start);
1498
- const l = Ha(e.end);
1497
+ let n = Ha(e.start);
1498
+ const l = Wa(e.end);
1499
1499
  for (; n <= l; )
1500
1500
  t.push(wn(n)), n = ul(n, 1);
1501
1501
  return t;
@@ -1504,45 +1504,45 @@ function Hl(e, t = 1) {
1504
1504
  const n = dn(e), l = (n.getDay() - t + 7) % 7;
1505
1505
  return n.setDate(n.getDate() - l), n;
1506
1506
  }
1507
- function Rs(e, t = 1) {
1507
+ function Ns(e, t = 1) {
1508
1508
  const n = Hl(e, t);
1509
1509
  return n.setDate(n.getDate() + 6), Tn(n);
1510
1510
  }
1511
- function Ns(e, t, n = 0) {
1511
+ function js(e, t, n = 0) {
1512
1512
  const l = Hl(e, n), o = (t - n + 7) % 7;
1513
1513
  return l.setDate(l.getDate() + o), l;
1514
1514
  }
1515
- const Zn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Al = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), ma = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear(), Wa = (e, t) => !!e && !!t && Zn(e, t) && e.getHours() === t.getHours(), js = (e, t) => !!e && !!t && Wa(e, t) && e.getMinutes() === t.getMinutes();
1516
- function zs(e, t) {
1515
+ const Zn = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate(), Al = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth(), ma = (e, t) => !!e && !!t && e.getFullYear() === t.getFullYear(), qa = (e, t) => !!e && !!t && Zn(e, t) && e.getHours() === t.getHours(), zs = (e, t) => !!e && !!t && qa(e, t) && e.getMinutes() === t.getMinutes();
1516
+ function Us(e, t) {
1517
1517
  const n = e.getTime();
1518
1518
  return n >= t.start.getTime() && n <= t.end.getTime();
1519
1519
  }
1520
1520
  const An = (e, t) => !!e && !!t && e.getTime() < t.getTime(), Vn = (e, t) => !!e && !!t && e.getTime() > t.getTime();
1521
- function Us(e) {
1521
+ function Hs(e) {
1522
1522
  const t = e.filter((n) => ht(n));
1523
1523
  if (t.length)
1524
1524
  return t.reduce((n, l) => n.getTime() >= l.getTime() ? n : l);
1525
1525
  }
1526
- function Hs(e) {
1526
+ function Ws(e) {
1527
1527
  const t = e.filter((n) => ht(n));
1528
1528
  if (t.length)
1529
1529
  return t.reduce((n, l) => n.getTime() <= l.getTime() ? n : l);
1530
1530
  }
1531
- function Ws(e, t) {
1531
+ function qs(e, t) {
1532
1532
  const n = wn(e);
1533
1533
  return typeof t.year == "number" && n.setFullYear(t.year), typeof t.month == "number" && n.setMonth(t.month), typeof t.date == "number" && n.setDate(t.date), typeof t.hours == "number" && n.setHours(t.hours), typeof t.minutes == "number" && n.setMinutes(t.minutes), typeof t.seconds == "number" && n.setSeconds(t.seconds), typeof t.milliseconds == "number" && n.setMilliseconds(t.milliseconds), n;
1534
1534
  }
1535
1535
  const Nn = (e, t = 2) => String(e).padStart(t, "0");
1536
1536
  function va(e, t) {
1537
- return t === "wide" ? Vs[e] : Ds[e];
1537
+ return t === "wide" ? Ds[e] : Is[e];
1538
1538
  }
1539
- function qs(e) {
1540
- return Is[e];
1539
+ function Ks(e) {
1540
+ return Ts[e];
1541
1541
  }
1542
- const Ks = [
1542
+ const Ys = [
1543
1543
  { token: "LLLL", format: (e) => va(e.getMonth(), "wide") },
1544
1544
  { token: "LLL", format: (e) => va(e.getMonth(), "abbreviated") },
1545
- { token: "EE", format: (e) => qs(e.getDay()) },
1545
+ { token: "EE", format: (e) => Ks(e.getDay()) },
1546
1546
  { token: "yyyy", format: (e) => String(e.getFullYear()) },
1547
1547
  { token: "MM", format: (e) => Nn(e.getMonth() + 1) },
1548
1548
  { token: "dd", format: (e) => Nn(e.getDate()) },
@@ -1553,12 +1553,12 @@ function Sn(e, t) {
1553
1553
  if (!ht(e)) return "";
1554
1554
  let n = "", l = 0;
1555
1555
  for (; l < t.length; ) {
1556
- const o = Ks.find((a) => t.startsWith(a.token, l));
1556
+ const o = Ys.find((a) => t.startsWith(a.token, l));
1557
1557
  o ? (n += o.format(e), l += o.token.length) : (n += t[l], l += 1);
1558
1558
  }
1559
1559
  return n;
1560
1560
  }
1561
- const Ys = {
1561
+ const Gs = {
1562
1562
  "yyyy-MM-dd": /^(\d{4})-(\d{2})-(\d{2})$/,
1563
1563
  "dd.MM.yyyy": /^(\d{2})\.(\d{2})\.(\d{4})$/,
1564
1564
  "dd.MM.yyyy HH:mm": /^(\d{2})\.(\d{2})\.(\d{4}) (\d{1,2}):(\d{2})(?::(\d{2}))?$/,
@@ -1567,7 +1567,7 @@ const Ys = {
1567
1567
  yyyy: /^(\d{4})$/
1568
1568
  };
1569
1569
  function ga(e, t) {
1570
- const n = Ys[t];
1570
+ const n = Gs[t];
1571
1571
  if (!n) {
1572
1572
  const o = new Date(e);
1573
1573
  return ht(o) ? o : null;
@@ -1610,10 +1610,10 @@ function ga(e, t) {
1610
1610
  return null;
1611
1611
  }
1612
1612
  }
1613
- const Gs = ["year", "month", "day", "time", "custom"], Xs = be({
1613
+ const Xs = ["year", "month", "day", "time", "custom"], Zs = be({
1614
1614
  components: {
1615
- ChevronLeft: Ho,
1616
- ChevronRight: Uo
1615
+ ChevronLeft: Wo,
1616
+ ChevronRight: Ho
1617
1617
  },
1618
1618
  emits: {
1619
1619
  elementClick: (e) => ht(e),
@@ -1647,7 +1647,7 @@ const Gs = ["year", "month", "day", "time", "custom"], Xs = be({
1647
1647
  viewMode: {
1648
1648
  type: String,
1649
1649
  required: !0,
1650
- validate: (e) => typeof e == "string" && Gs.includes(e)
1650
+ validate: (e) => typeof e == "string" && Xs.includes(e)
1651
1651
  },
1652
1652
  showButtonBar: {
1653
1653
  type: Boolean,
@@ -1671,17 +1671,17 @@ const Gs = ["year", "month", "day", "time", "custom"], Xs = be({
1671
1671
  clearLabel: l
1672
1672
  };
1673
1673
  }
1674
- }), Zs = {
1674
+ }), Js = {
1675
1675
  key: 0,
1676
1676
  class: "p-datepicker-header flex items-center justify-between mb-1.5"
1677
- }, Js = ["disabled"], Qs = ["disabled"], ei = {
1677
+ }, Qs = ["disabled"], ei = ["disabled"], ti = {
1678
1678
  key: 0,
1679
1679
  class: "p-datepicker-weekheader grid [grid-template-columns:var(--popout-column-definition)] text-[12px] text-slate-400 font-medium mb-1.5"
1680
- }, ti = ["disabled", "onClick"], ni = {
1680
+ }, ni = ["disabled", "onClick"], li = {
1681
1681
  key: 1,
1682
1682
  class: "p-datepicker-buttonbar mt-2 pt-2 border-t border-slate-200 flex items-center justify-between"
1683
1683
  };
1684
- function li(e, t, n, l, o, a) {
1684
+ function ai(e, t, n, l, o, a) {
1685
1685
  const i = yt("ChevronLeft"), s = yt("ChevronRight");
1686
1686
  return u(), v("div", {
1687
1687
  class: se([
@@ -1692,7 +1692,7 @@ function li(e, t, n, l, o, a) {
1692
1692
  onMousedown: t[5] || (t[5] = Fe(() => {
1693
1693
  }, ["prevent"]))
1694
1694
  }, [
1695
- e.hideHeader ? K("", !0) : (u(), v("div", Zs, [
1695
+ e.hideHeader ? K("", !0) : (u(), v("div", Js, [
1696
1696
  d("button", {
1697
1697
  class: "p-datepicker-prev-button inline-flex items-center justify-center size-8 rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300 disabled:hover:bg-transparent",
1698
1698
  disabled: e.leftDisabled,
@@ -1701,7 +1701,7 @@ function li(e, t, n, l, o, a) {
1701
1701
  dt(e.$slots, "arrow-left", {}, () => [
1702
1702
  Z(i, { class: "h-3.5 w-3.5" })
1703
1703
  ])
1704
- ], 8, Js),
1704
+ ], 8, Qs),
1705
1705
  (u(), xe(xt(e.headingClickable ? "button" : "span"), {
1706
1706
  class: se([
1707
1707
  "p-datepicker-title min-w-0 rounded-md px-2 py-1 text-sm font-semibold leading-snug text-slate-700",
@@ -1724,10 +1724,10 @@ function li(e, t, n, l, o, a) {
1724
1724
  dt(e.$slots, "arrow-right", {}, () => [
1725
1725
  Z(s, { class: "h-3.5 w-3.5" })
1726
1726
  ])
1727
- ], 8, Qs)
1727
+ ], 8, ei)
1728
1728
  ])),
1729
1729
  d("div", null, [
1730
- "subheading" in e.$slots ? (u(), v("div", ei, [
1730
+ "subheading" in e.$slots ? (u(), v("div", ti, [
1731
1731
  dt(e.$slots, "subheading")
1732
1732
  ])) : K("", !0),
1733
1733
  d("div", {
@@ -1759,11 +1759,11 @@ function li(e, t, n, l, o, a) {
1759
1759
  !c.current && !c.selected && c.disabled ? "text-slate-300" : ""
1760
1760
  ])
1761
1761
  }, de(c.display), 3)
1762
- ], 8, ti))), 128))
1762
+ ], 8, ni))), 128))
1763
1763
  ])
1764
1764
  ], 2),
1765
1765
  dt(e.$slots, "after-calendar"),
1766
- e.showButtonBar ? (u(), v("div", ni, [
1766
+ e.showButtonBar ? (u(), v("div", li, [
1767
1767
  d("button", {
1768
1768
  type: "button",
1769
1769
  class: "p-datepicker-today-button text-xs font-medium text-slate-500 hover:text-slate-700 transition-colors px-1.5 py-1 rounded-md hover:bg-slate-100",
@@ -1778,7 +1778,7 @@ function li(e, t, n, l, o, a) {
1778
1778
  ])
1779
1779
  ], 38);
1780
1780
  }
1781
- const dl = /* @__PURE__ */ Ze(Xs, [["render", li]]), ai = be({
1781
+ const dl = /* @__PURE__ */ Ze(Zs, [["render", ai]]), oi = be({
1782
1782
  components: {
1783
1783
  PickerPopup: dl
1784
1784
  },
@@ -1805,7 +1805,7 @@ const dl = /* @__PURE__ */ Ze(Xs, [["render", li]]), ai = be({
1805
1805
  }
1806
1806
  },
1807
1807
  setup(e, { emit: t }) {
1808
- const n = y(() => Fs(e.pageDate)), l = y(() => Es(e.pageDate)), o = ($, b, w) => !b && !w ? !0 : !(b && At($) < At(b) || w && At($) > At(w)), a = y(() => Bs({
1808
+ const n = y(() => Es(e.pageDate)), l = y(() => Ps(e.pageDate)), o = ($, b, w) => !b && !w ? !0 : !(b && At($) < At(b) || w && At($) > At(w)), a = y(() => Rs({
1809
1809
  start: n.value,
1810
1810
  end: l.value
1811
1811
  }).map(
@@ -1829,12 +1829,12 @@ const dl = /* @__PURE__ */ Ze(Xs, [["render", li]]), ai = be({
1829
1829
  heading: i,
1830
1830
  leftDisabled: s,
1831
1831
  rightDisabled: c,
1832
- previousPage: () => t("update:pageDate", za(e.pageDate, 10)),
1832
+ previousPage: () => t("update:pageDate", Ua(e.pageDate, 10)),
1833
1833
  nextPage: () => t("update:pageDate", ul(e.pageDate, 10))
1834
1834
  };
1835
1835
  }
1836
1836
  });
1837
- function oi(e, t, n, l, o, a) {
1837
+ function ri(e, t, n, l, o, a) {
1838
1838
  const i = yt("picker-popup");
1839
1839
  return u(), xe(i, {
1840
1840
  columnCount: 2,
@@ -1852,7 +1852,7 @@ function oi(e, t, n, l, o, a) {
1852
1852
  _: 1
1853
1853
  }, 8, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
1854
1854
  }
1855
- const ri = /* @__PURE__ */ Ze(ai, [["render", oi]]), si = be({
1855
+ const si = /* @__PURE__ */ Ze(oi, [["render", ri]]), ii = be({
1856
1856
  components: {
1857
1857
  PickerPopup: dl
1858
1858
  },
@@ -1888,9 +1888,9 @@ const ri = /* @__PURE__ */ Ze(ai, [["render", oi]]), si = be({
1888
1888
  }
1889
1889
  },
1890
1890
  setup(e, { emit: t }) {
1891
- const n = y(() => Ua(e.pageDate)), l = y(() => Ha(e.pageDate)), o = y(
1891
+ const n = y(() => Ha(e.pageDate)), l = y(() => Wa(e.pageDate)), o = y(
1892
1892
  () => (b) => Sn(b, e.format)
1893
- ), a = (b, w, m) => !w && !m ? !0 : !(w && An(b, jl(w)) || m && Vn(b, zl(m))), i = y(() => Os({
1893
+ ), a = (b, w, m) => !w && !m ? !0 : !(w && An(b, jl(w)) || m && Vn(b, zl(m))), i = y(() => Bs({
1894
1894
  start: n.value,
1895
1895
  end: l.value
1896
1896
  }).map(
@@ -1911,12 +1911,12 @@ const ri = /* @__PURE__ */ Ze(ai, [["render", oi]]), si = be({
1911
1911
  heading: s,
1912
1912
  leftDisabled: c,
1913
1913
  rightDisabled: p,
1914
- previousPage: () => t("update:pageDate", za(e.pageDate, 1)),
1914
+ previousPage: () => t("update:pageDate", Ua(e.pageDate, 1)),
1915
1915
  nextPage: () => t("update:pageDate", ul(e.pageDate, 1))
1916
1916
  };
1917
1917
  }
1918
1918
  });
1919
- function ii(e, t, n, l, o, a) {
1919
+ function ui(e, t, n, l, o, a) {
1920
1920
  const i = yt("picker-popup");
1921
1921
  return u(), xe(i, {
1922
1922
  headingClickable: "",
@@ -1936,7 +1936,7 @@ function ii(e, t, n, l, o, a) {
1936
1936
  _: 1
1937
1937
  }, 8, ["items", "leftDisabled", "rightDisabled", "onLeft", "onRight"]);
1938
1938
  }
1939
- const ui = /* @__PURE__ */ Ze(si, [["render", ii]]), di = be({
1939
+ const di = /* @__PURE__ */ Ze(ii, [["render", ui]]), ci = be({
1940
1940
  components: {
1941
1941
  PickerPopup: dl
1942
1942
  },
@@ -2007,22 +2007,22 @@ const ui = /* @__PURE__ */ Ze(si, [["render", ii]]), di = be({
2007
2007
  end: o.value
2008
2008
  })), i = y(() => ({
2009
2009
  start: Hl(l.value, e.weekStartsOn),
2010
- end: Rs(o.value, e.weekStartsOn)
2010
+ end: Ns(o.value, e.weekStartsOn)
2011
2011
  })), s = y(() => e.customWeekdays?.length === 7 ? e.customWeekdays : null), c = y(() => {
2012
2012
  const h = e.weekStartsOn, S = s.value;
2013
2013
  if (S)
2014
2014
  return Array.from({ length: 7 }).map((I, D) => S[(h + D) % 7]);
2015
2015
  const C = n.value(e.weekdayFormat);
2016
- return Array.from(Array(7)).map((I, D) => (h + D) % 7).map((I) => Ns(/* @__PURE__ */ new Date(), I, e.weekStartsOn)).map(C);
2016
+ return Array.from(Array(7)).map((I, D) => (h + D) % 7).map((I) => js(/* @__PURE__ */ new Date(), I, e.weekStartsOn)).map(C);
2017
2017
  }), p = (h, S, C, I) => I?.dates?.some((D) => Zn(h, D)) || I?.predicate?.(h) ? !1 : !S && !C ? !0 : !(S && An(h, dn(S)) || C && Vn(h, Tn(C))), _ = y(() => {
2018
2018
  const h = /* @__PURE__ */ new Date(), S = n.value(e.format);
2019
- return Ps(i.value).map(
2019
+ return Os(i.value).map(
2020
2020
  (C) => ({
2021
2021
  value: C,
2022
2022
  display: S(C),
2023
2023
  selected: !!e.selected && Zn(e.selected, C),
2024
2024
  current: Zn(h, C),
2025
- disabled: !e.allowOutsideInterval && !zs(C, a.value) || !p(
2025
+ disabled: !e.allowOutsideInterval && !Us(C, a.value) || !p(
2026
2026
  C,
2027
2027
  e.lowerLimit,
2028
2028
  e.upperLimit,
@@ -2042,12 +2042,12 @@ const ui = /* @__PURE__ */ Ze(si, [["render", ii]]), di = be({
2042
2042
  heading: $,
2043
2043
  leftDisabled: b,
2044
2044
  rightDisabled: w,
2045
- previousPage: () => t("update:pageDate", Ts(e.pageDate)),
2045
+ previousPage: () => t("update:pageDate", Fs(e.pageDate)),
2046
2046
  nextPage: () => t("update:pageDate", Ul(e.pageDate, 1))
2047
2047
  };
2048
2048
  }
2049
2049
  });
2050
- function ci(e, t, n, l, o, a) {
2050
+ function pi(e, t, n, l, o, a) {
2051
2051
  const i = yt("picker-popup");
2052
2052
  return u(), xe(i, {
2053
2053
  headingClickable: "",
@@ -2062,7 +2062,7 @@ function ci(e, t, n, l, o, a) {
2062
2062
  onElementClick: t[1] || (t[1] = (s) => e.$emit("select", s)),
2063
2063
  onToday: t[2] || (t[2] = (s) => e.$emit("today")),
2064
2064
  onClear: t[3] || (t[3] = (s) => e.$emit("clear"))
2065
- }, Ia({
2065
+ }, Ta({
2066
2066
  heading: it(() => [
2067
2067
  tt(de(e.heading), 1)
2068
2068
  ]),
@@ -2083,10 +2083,10 @@ function ci(e, t, n, l, o, a) {
2083
2083
  } : void 0
2084
2084
  ]), 1032, ["leftDisabled", "rightDisabled", "items", "onLeft", "onRight"]);
2085
2085
  }
2086
- const pi = /* @__PURE__ */ Ze(di, [["render", ci]]), fi = be({
2086
+ const fi = /* @__PURE__ */ Ze(ci, [["render", pi]]), mi = be({
2087
2087
  components: {
2088
2088
  PickerPopup: dl,
2089
- ChevronUp: Wo,
2089
+ ChevronUp: qo,
2090
2090
  ChevronDown: bn
2091
2091
  },
2092
2092
  emits: {
@@ -2125,14 +2125,14 @@ const pi = /* @__PURE__ */ Ze(di, [["render", ci]]), fi = be({
2125
2125
  }
2126
2126
  );
2127
2127
  const a = (w, m) => {
2128
- const x = Ws(new Date(n.value.getTime()), {
2128
+ const x = qs(new Date(n.value.getTime()), {
2129
2129
  hours: w,
2130
2130
  minutes: m,
2131
2131
  seconds: 0
2132
2132
  });
2133
2133
  $(x) && (l.value = w, o.value = m, t("select", x));
2134
2134
  }, i = (w, m) => w < 0 ? m : w > m ? 0 : w, s = () => a(i(l.value + 1, 23), o.value), c = () => a(i(l.value - 1, 23), o.value), p = () => a(l.value, i(o.value + 1, 59)), _ = () => a(l.value, i(o.value - 1, 59)), $ = (w) => !(e.disabledTime?.dates?.some(
2135
- (m) => Wa(w, m) && js(w, m)
2135
+ (m) => qa(w, m) && zs(w, m)
2136
2136
  ) || e.disabledTime?.predicate?.(w));
2137
2137
  return {
2138
2138
  hours: l,
@@ -2145,14 +2145,14 @@ const pi = /* @__PURE__ */ Ze(di, [["render", ci]]), fi = be({
2145
2145
  decrementMinutes: _
2146
2146
  };
2147
2147
  }
2148
- }), mi = {
2148
+ }), vi = {
2149
2149
  key: 0,
2150
2150
  class: "p-datepicker-time-picker mt-2 pt-2 border-t border-slate-200 flex items-center justify-center gap-2 py-1"
2151
- }, vi = { class: "p-datepicker-hour-picker flex flex-col items-center gap-1" }, gi = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, yi = { class: "p-datepicker-minute-picker flex flex-col items-center gap-1" }, hi = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, bi = { class: "col-span-2" }, wi = { class: "p-datepicker-time-picker flex items-center justify-center gap-2 py-1" }, xi = { class: "p-datepicker-hour-picker flex flex-col items-center gap-1" }, ki = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, _i = { class: "p-datepicker-minute-picker flex flex-col items-center gap-1" }, $i = { class: "min-w-8 text-center text-sm font-medium text-slate-700" };
2152
- function Si(e, t, n, l, o, a) {
2151
+ }, gi = { class: "p-datepicker-hour-picker flex flex-col items-center gap-1" }, yi = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, hi = { class: "p-datepicker-minute-picker flex flex-col items-center gap-1" }, bi = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, wi = { class: "col-span-2" }, xi = { class: "p-datepicker-time-picker flex items-center justify-center gap-2 py-1" }, ki = { class: "p-datepicker-hour-picker flex flex-col items-center gap-1" }, _i = { class: "min-w-8 text-center text-sm font-medium text-slate-700" }, $i = { class: "p-datepicker-minute-picker flex flex-col items-center gap-1" }, Si = { class: "min-w-8 text-center text-sm font-medium text-slate-700" };
2152
+ function Ci(e, t, n, l, o, a) {
2153
2153
  const i = yt("ChevronUp"), s = yt("ChevronDown"), c = yt("picker-popup");
2154
- return e.embedded ? (u(), v("div", mi, [
2155
- d("div", vi, [
2154
+ return e.embedded ? (u(), v("div", vi, [
2155
+ d("div", gi, [
2156
2156
  d("button", {
2157
2157
  type: "button",
2158
2158
  class: "p-datepicker-increment-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2160,7 +2160,7 @@ function Si(e, t, n, l, o, a) {
2160
2160
  }, [
2161
2161
  Z(i, { class: "h-3.5 w-3.5" })
2162
2162
  ]),
2163
- d("span", gi, de(e.padStartZero(e.hours)), 1),
2163
+ d("span", yi, de(e.padStartZero(e.hours)), 1),
2164
2164
  d("button", {
2165
2165
  type: "button",
2166
2166
  class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2170,7 +2170,7 @@ function Si(e, t, n, l, o, a) {
2170
2170
  ])
2171
2171
  ]),
2172
2172
  t[8] || (t[8] = d("div", { class: "text-base font-medium text-slate-500" }, ":", -1)),
2173
- d("div", yi, [
2173
+ d("div", hi, [
2174
2174
  d("button", {
2175
2175
  type: "button",
2176
2176
  class: "p-datepicker-increment-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2178,7 +2178,7 @@ function Si(e, t, n, l, o, a) {
2178
2178
  }, [
2179
2179
  Z(i, { class: "h-3.5 w-3.5" })
2180
2180
  ]),
2181
- d("span", hi, de(e.padStartZero(e.minutes)), 1),
2181
+ d("span", bi, de(e.padStartZero(e.minutes)), 1),
2182
2182
  d("button", {
2183
2183
  type: "button",
2184
2184
  class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2194,9 +2194,9 @@ function Si(e, t, n, l, o, a) {
2194
2194
  viewMode: "time"
2195
2195
  }, {
2196
2196
  body: it(() => [
2197
- d("div", bi, [
2198
- d("div", wi, [
2199
- d("div", xi, [
2197
+ d("div", wi, [
2198
+ d("div", xi, [
2199
+ d("div", ki, [
2200
2200
  d("button", {
2201
2201
  type: "button",
2202
2202
  class: "p-datepicker-increment-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2204,7 +2204,7 @@ function Si(e, t, n, l, o, a) {
2204
2204
  }, [
2205
2205
  Z(i, { class: "h-3.5 w-3.5" })
2206
2206
  ]),
2207
- d("span", ki, de(e.padStartZero(e.hours)), 1),
2207
+ d("span", _i, de(e.padStartZero(e.hours)), 1),
2208
2208
  d("button", {
2209
2209
  type: "button",
2210
2210
  class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2214,7 +2214,7 @@ function Si(e, t, n, l, o, a) {
2214
2214
  ])
2215
2215
  ]),
2216
2216
  t[9] || (t[9] = d("div", { class: "text-base font-medium text-slate-500" }, ":", -1)),
2217
- d("div", _i, [
2217
+ d("div", $i, [
2218
2218
  d("button", {
2219
2219
  type: "button",
2220
2220
  class: "p-datepicker-increment-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2222,7 +2222,7 @@ function Si(e, t, n, l, o, a) {
2222
2222
  }, [
2223
2223
  Z(i, { class: "h-3.5 w-3.5" })
2224
2224
  ]),
2225
- d("span", $i, de(e.padStartZero(e.minutes)), 1),
2225
+ d("span", Si, de(e.padStartZero(e.minutes)), 1),
2226
2226
  d("button", {
2227
2227
  type: "button",
2228
2228
  class: "p-datepicker-decrement-button inline-flex size-8 items-center justify-center rounded-full text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-700 disabled:text-slate-300",
@@ -2237,20 +2237,20 @@ function Si(e, t, n, l, o, a) {
2237
2237
  _: 1
2238
2238
  }));
2239
2239
  }
2240
- const Ci = /* @__PURE__ */ Ze(fi, [["render", Si]]), jn = ["time", "day", "month", "year"], Mi = (e, t, n = void 0) => {
2240
+ const Mi = /* @__PURE__ */ Ze(mi, [["render", Ci]]), jn = ["time", "day", "month", "year"], Li = (e, t, n = void 0) => {
2241
2241
  let l = n || /* @__PURE__ */ new Date();
2242
- const o = Us([e, l]);
2242
+ const o = Hs([e, l]);
2243
2243
  o && (l = o);
2244
- const a = Hs([t, l]);
2244
+ const a = Ws([t, l]);
2245
2245
  return a && (l = a), l;
2246
- }, Li = be({
2246
+ }, Ai = be({
2247
2247
  components: {
2248
- YearPicker: ri,
2249
- MonthPicker: ui,
2250
- DayPicker: pi,
2251
- TimePicker: Ci,
2252
- CalendarDays: Ko,
2253
- Clock3: qo,
2248
+ YearPicker: si,
2249
+ MonthPicker: di,
2250
+ DayPicker: fi,
2251
+ TimePicker: Mi,
2252
+ CalendarDays: Yo,
2253
+ Clock3: Ko,
2254
2254
  X: $t
2255
2255
  },
2256
2256
  inheritAttrs: !1,
@@ -2472,7 +2472,7 @@ const Ci = /* @__PURE__ */ Ze(fi, [["render", Si]]), jn = ["time", "day", "month
2472
2472
  }) : h();
2473
2473
  });
2474
2474
  const q = y(() => n.value !== "none"), G = y(() => e.startingView === "time" && e.minimumView === "time"), R = y(() => e.startingView === "day" && e.minimumView === "time"), T = (ie) => {
2475
- e.disabled || (q.value || (l.value = e.modelValue || Mi(e.lowerLimit, e.upperLimit, l.value), t("opened")), n.value = ie, Qe(() => We()));
2475
+ e.disabled || (q.value || (l.value = e.modelValue || Li(e.lowerLimit, e.upperLimit, l.value), t("opened")), n.value = ie, Qe(() => We()));
2476
2476
  }, N = () => {
2477
2477
  q.value && (_ !== null && (cancelAnimationFrame(_), _ = null), n.value = "none", t("closed"));
2478
2478
  }, F = (ie = "none") => {
@@ -2528,13 +2528,13 @@ const Ci = /* @__PURE__ */ Ze(fi, [["render", Si]]), jn = ["time", "day", "month
2528
2528
  return ie < ue ? e.minimumView : e.startingView;
2529
2529
  }), we = y(() => e.weekDayNames?.length === 7 ? e.weekDayNames : void 0), re = () => e.startingView === "time" && e.minimumView === "time" ? null : T("day"), Me = () => {
2530
2530
  if (!a.value || !i.value) return;
2531
- const ie = 4, ue = 8, Ve = a.value.getBoundingClientRect(), Pe = i.value.getBoundingClientRect(), ct = i.value.firstElementChild?.getBoundingClientRect(), B = window.innerWidth, te = window.innerHeight, oe = window.scrollX || window.pageXOffset, he = window.scrollY || window.pageYOffset, Ce = Math.max(160, te - ue * 2), Re = Math.min(Pe.height || 0, Ce), qe = te - Ve.bottom - ie - ue, Ye = Ve.top - ie - ue, z = qe < Re && Ye > qe;
2532
- let k = z ? Ve.top - ie - Re : Ve.bottom + ie;
2531
+ const ie = 4, ue = 8, Ve = a.value.getBoundingClientRect(), Pe = i.value.getBoundingClientRect(), ct = i.value.firstElementChild?.getBoundingClientRect(), B = window.innerWidth, te = window.innerHeight, oe = window.scrollX || window.pageXOffset, he = window.scrollY || window.pageYOffset, Ce = Math.max(160, te - ue * 2), Re = Math.min(Pe.height || 0, Ce), qe = te - Ve.bottom - ie - ue, Ye = Ve.top - ie - ue, U = qe < Re && Ye > qe;
2532
+ let k = U ? Ve.top - ie - Re : Ve.bottom + ie;
2533
2533
  k = Math.max(ue, Math.min(k, te - ue - Re));
2534
2534
  const V = ct?.width || Pe.width || 268;
2535
2535
  let P = Ve.left;
2536
2536
  P + V > B - ue && (P = B - ue - V), P < ue && (P = ue);
2537
- const fe = z ? Math.max(120, Ve.top - ie - ue) : Math.max(120, te - Ve.bottom - ie - ue);
2537
+ const fe = U ? Math.max(120, Ve.top - ie - ue) : Math.max(120, te - Ve.bottom - ie - ue);
2538
2538
  s.value = {
2539
2539
  position: "absolute",
2540
2540
  top: `${Math.round(k + he)}px`,
@@ -2616,14 +2616,14 @@ const Ci = /* @__PURE__ */ Ze(fi, [["render", Si]]), jn = ["time", "day", "month
2616
2616
  popupRef: i
2617
2617
  };
2618
2618
  }
2619
- }), Ai = {
2619
+ }), Vi = {
2620
2620
  ref: "rootRef",
2621
2621
  class: "relative"
2622
- }, Vi = { class: "p-datepicker p-component p-inputwrapper relative" }, Di = ["readonly", "value", "placeholder", "disabled", "tabindex"], Ii = { class: "p-datepicker-input-icon-container absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400" }, Ti = { class: "absolute right-8 top-1/2 -translate-y-1/2" };
2623
- function Fi(e, t, n, l, o, a) {
2622
+ }, Di = { class: "p-datepicker p-component p-inputwrapper relative" }, Ii = ["readonly", "value", "placeholder", "disabled", "tabindex"], Ti = { class: "p-datepicker-input-icon-container absolute right-2 top-1/2 -translate-y-1/2 pointer-events-none text-slate-400" }, Fi = { class: "absolute right-8 top-1/2 -translate-y-1/2" };
2623
+ function Ei(e, t, n, l, o, a) {
2624
2624
  const i = yt("Clock3"), s = yt("CalendarDays"), c = yt("X"), p = yt("year-picker"), _ = yt("month-picker"), $ = yt("time-picker"), b = yt("day-picker");
2625
- return u(), v("div", Ai, [
2626
- d("div", Vi, [
2625
+ return u(), v("div", Vi, [
2626
+ d("div", Di, [
2627
2627
  d("input", nn({
2628
2628
  type: "text",
2629
2629
  ref: "inputRef",
@@ -2639,8 +2639,8 @@ function Fi(e, t, n, l, o, a) {
2639
2639
  onBlur: t[2] || (t[2] = (...w) => e.blur && e.blur(...w)),
2640
2640
  onFocus: t[3] || (t[3] = (...w) => e.focus && e.focus(...w)),
2641
2641
  onClick: t[4] || (t[4] = (...w) => e.click && e.click(...w))
2642
- }), null, 16, Di),
2643
- d("span", Ii, [
2642
+ }), null, 16, Ii),
2643
+ d("span", Ti, [
2644
2644
  e.isTimeOnlyMode ? (u(), xe(i, {
2645
2645
  key: 0,
2646
2646
  class: "h-4 w-4"
@@ -2649,7 +2649,7 @@ function Fi(e, t, n, l, o, a) {
2649
2649
  class: "h-4 w-4"
2650
2650
  }))
2651
2651
  ]),
2652
- Ne(d("div", Ti, [
2652
+ Ne(d("div", Fi, [
2653
2653
  dt(e.$slots, "clear", { onClear: e.clearModelValue }, () => [
2654
2654
  d("button", {
2655
2655
  type: "button",
@@ -2708,7 +2708,7 @@ function Fi(e, t, n, l, o, a) {
2708
2708
  onToday: e.selectToday,
2709
2709
  onClear: e.clearModelValue,
2710
2710
  onBack: t[10] || (t[10] = (w) => e.viewShown = "month")
2711
- }, Ia({ _: 2 }, [
2711
+ }, Ta({ _: 2 }, [
2712
2712
  e.isDateTimeMode ? {
2713
2713
  name: "after-calendar",
2714
2714
  fn: it(() => [
@@ -2743,7 +2743,7 @@ function Fi(e, t, n, l, o, a) {
2743
2743
  ]))
2744
2744
  ], 512);
2745
2745
  }
2746
- const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
2746
+ const Pi = /* @__PURE__ */ Ze(Ai, [["render", Ei]]), Oi = /* @__PURE__ */ be({
2747
2747
  __name: "vs-input-date2",
2748
2748
  props: {
2749
2749
  clearable: { type: Boolean, default: !0 },
@@ -2968,7 +2968,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
2968
2968
  return (E, ee) => (u(), v("div", {
2969
2969
  class: se(["vs-date-picker", n.customClass])
2970
2970
  }, [
2971
- Z(Ei, {
2971
+ Z(Pi, {
2972
2972
  modelValue: p.value,
2973
2973
  "onUpdate:modelValue": ee[0] || (ee[0] = (O) => p.value = O),
2974
2974
  placeholder: G.value,
@@ -2986,7 +2986,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
2986
2986
  }, null, 8, ["modelValue", "placeholder", "disabled", "clearable", "typeable", "week-day-names", "week-starts-on", "starting-view", "minimum-view", "input-format", "upper-limit", "name", "class"])
2987
2987
  ], 2));
2988
2988
  }
2989
- }), Oi = /* @__PURE__ */ Ze(Pi, [["__scopeId", "data-v-fb3e8176"]]), Bi = (e, t) => {
2989
+ }), Bi = /* @__PURE__ */ Ze(Oi, [["__scopeId", "data-v-fb3e8176"]]), Ri = (e, t) => {
2990
2990
  if (!t || !Object.keys(t).length)
2991
2991
  return e;
2992
2992
  const [n, l = ""] = e.split("?"), o = new URLSearchParams(l);
@@ -2995,7 +2995,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
2995
2995
  });
2996
2996
  const a = o.toString();
2997
2997
  return a ? `${n}?${a}` : n;
2998
- }, Ri = (e, t, n) => new Promise((l, o) => {
2998
+ }, Ni = (e, t, n) => new Promise((l, o) => {
2999
2999
  const a = new FormData();
3000
3000
  a.append("unique", "true"), a.append("file", e);
3001
3001
  const i = new XMLHttpRequest();
@@ -3019,7 +3019,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3019
3019
  o(s);
3020
3020
  }
3021
3021
  }), i.addEventListener("error", () => o(new Error("Помилка мережі під час завантаження файлу"))), i.addEventListener("abort", () => o(new Error("Завантаження файлу скасовано"))), i.send(a);
3022
- }), Ni = async (e, t = {}) => {
3022
+ }), ji = async (e, t = {}) => {
3023
3023
  try {
3024
3024
  const {
3025
3025
  api: n,
@@ -3028,9 +3028,9 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3028
3028
  table: a = "table",
3029
3029
  customParams: i,
3030
3030
  onProgress: s
3031
- } = t, c = n || `/file/upload/uploads?id=${l || ""}&form=${o || ""}&table=${a || ""}`, p = Bi(c, i);
3031
+ } = t, c = n || `/file/upload/uploads?id=${l || ""}&form=${o || ""}&table=${a || ""}`, p = Ri(c, i);
3032
3032
  if (e instanceof File)
3033
- return await Ri(e, p, s);
3033
+ return await Ni(e, p, s);
3034
3034
  const _ = new FormData();
3035
3035
  return _.append("unique", "true"), _.append("file", e), (await fetch(p, {
3036
3036
  method: "POST",
@@ -3044,7 +3044,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3044
3044
  position: "right-bottom"
3045
3045
  }), console.error("Сталась помилка завантаження файлу", n), null;
3046
3046
  }
3047
- }, ji = async (e) => {
3047
+ }, zi = async (e) => {
3048
3048
  try {
3049
3049
  return await fetch(`file/delete/${e}`), !0;
3050
3050
  } catch (t) {
@@ -3060,19 +3060,19 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3060
3060
  } catch (t) {
3061
3061
  console.error(t.message);
3062
3062
  }
3063
- }, zi = (e) => {
3063
+ }, Ui = (e) => {
3064
3064
  if (!e) return "";
3065
3065
  const t = e?.split(".");
3066
3066
  return t[t.length - 1];
3067
- }, Ui = (e) => {
3068
- const t = zi(e), n = {
3067
+ }, ha = (e) => {
3068
+ const t = Ui(e), n = {
3069
3069
  imageFormat: ["tiff", "jpg", "jpeg", "png", "svg", "ico", "webp"],
3070
3070
  sheetsFormat: ["xls", "csv", "xlsx"],
3071
3071
  archivesFormat: ["zip", "rar"],
3072
3072
  textsFormat: ["json", "geojson", "txt", "yml", "yaml", "shp"],
3073
3073
  documentsFormat: ["pdf"]
3074
3074
  };
3075
- return n.imageFormat.includes(t) ? "img" : n.sheetsFormat.includes(t) ? Yo : n.textsFormat.includes(t) ? Go : n.documentsFormat.includes(t) ? Qn : n.archivesFormat.includes(t) ? Xo : Qn;
3075
+ return n.imageFormat.includes(t) ? "img" : n.sheetsFormat.includes(t) ? Go : n.textsFormat.includes(t) ? Xo : n.documentsFormat.includes(t) ? Qn : n.archivesFormat.includes(t) ? Zo : Qn;
3076
3076
  }, Hi = ["title"], Wi = {
3077
3077
  key: 0,
3078
3078
  class: "absolute inset-0 flex flex-col items-center justify-center gap-1 rounded-lg bg-white/90 px-2 text-center text-xs font-medium text-slate-600"
@@ -3107,7 +3107,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3107
3107
  setup(e, { emit: t }) {
3108
3108
  const n = Ke(e, "value"), l = Ke(e, "item"), o = t, a = e, i = y(() => a.action), s = y(() => l.value ? typeof l.value == "string" ? l.value : l.value.file_path : ""), c = y(() => a.disabled ? "opacity-50 cursor-not-allowed" : a.isUploading ? "cursor-default text-blue-500" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50 hover:text-blue-500"), p = y(() => a.progressPercent > 0 ? `${a.progressPercent}%` : "Завантаження..."), _ = (m) => typeof m == "string" ? m : m?.file_path || "", $ = () => {
3109
3109
  const m = s.value;
3110
- ji(m), a.multiple && Array.isArray(n.value) ? n.value = n.value.filter((x) => _(x) !== m) : n.value = "";
3110
+ zi(m), a.multiple && Array.isArray(n.value) ? n.value = n.value.filter((x) => _(x) !== m) : n.value = "";
3111
3111
  }, b = () => {
3112
3112
  s.value && window.open(s.value, "_blank");
3113
3113
  }, w = () => {
@@ -3122,7 +3122,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3122
3122
  m.isUploading ? (u(), v("div", Wi, [
3123
3123
  x[2] || (x[2] = d("div", { class: "loader" }, null, -1)),
3124
3124
  d("span", null, de(p.value), 1)
3125
- ])) : (u(), xe(U(Nt), {
3125
+ ])) : (u(), xe(z(Nt), {
3126
3126
  key: 1,
3127
3127
  class: "h-4 w-4"
3128
3128
  }))
@@ -3131,11 +3131,11 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3131
3131
  title: s.value,
3132
3132
  class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file"
3133
3133
  }, [
3134
- (u(), xe(xt(U(Ui)(s.value)), {
3135
- src: s.value,
3134
+ (u(), xe(xt(z(ha)(s.value)), {
3135
+ src: `${z(ha)(s.value)} === 'img'` ? `/file/resize?filepath=${s.value}&format=webp` : s.value,
3136
3136
  alt: "file",
3137
3137
  class: "w-full h-full object-cover cursor-pointer",
3138
- onClick: x[0] || (x[0] = (h) => U(ya)(s.value))
3138
+ onClick: x[0] || (x[0] = (h) => z(ya)(s.value))
3139
3139
  }, null, 8, ["src"])),
3140
3140
  d("div", Ki, [
3141
3141
  d("button", {
@@ -3143,31 +3143,31 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3143
3143
  onClick: $,
3144
3144
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
3145
3145
  }, [
3146
- Z(U(cn), { class: "w-4 h-4" })
3146
+ Z(z(cn), { class: "w-4 h-4" })
3147
3147
  ]),
3148
3148
  d("button", {
3149
3149
  type: "button",
3150
3150
  onClick: b,
3151
3151
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-emerald-600"
3152
3152
  }, [
3153
- Z(U(Fa), { class: "w-4 h-4" })
3153
+ Z(z(Ea), { class: "w-4 h-4" })
3154
3154
  ]),
3155
3155
  d("button", {
3156
3156
  type: "button",
3157
- onClick: x[1] || (x[1] = (h) => U(ya)(s.value)),
3157
+ onClick: x[1] || (x[1] = (h) => z(ya)(s.value)),
3158
3158
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-blue-500"
3159
3159
  }, [
3160
- Z(U(Ol), { class: "w-4 h-4" })
3160
+ Z(z(Ol), { class: "w-4 h-4" })
3161
3161
  ])
3162
3162
  ])
3163
3163
  ], 8, qi));
3164
3164
  }
3165
- }), Vt = /* @__PURE__ */ Ze(Yi, [["__scopeId", "data-v-245df5b1"]]), qa = (e) => e ? e.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean).map((t) => t.startsWith(".") ? t.slice(1) : t) : [], Ka = (e, t) => !t || e.size <= t * 1024 * 1024 ? !0 : (Ie({
3165
+ }), Vt = /* @__PURE__ */ Ze(Yi, [["__scopeId", "data-v-b03cac5c"]]), Ka = (e) => e ? e.split(",").map((t) => t.trim().toLowerCase()).filter(Boolean).map((t) => t.startsWith(".") ? t.slice(1) : t) : [], Ya = (e, t) => !t || e.size <= t * 1024 * 1024 ? !0 : (Ie({
3166
3166
  type: "error",
3167
3167
  title: "Помилка!",
3168
3168
  message: `Файл "${e.name}" занадто великий. Максимальний розмір: ${t} МБ`,
3169
3169
  position: "right-bottom"
3170
- }), !1), Ya = (e, t) => {
3170
+ }), !1), Ga = (e, t) => {
3171
3171
  if (!t.length) return !0;
3172
3172
  const n = e.name.split(".").pop()?.toLowerCase() || "";
3173
3173
  return t.includes(n) ? !0 : (Ie({
@@ -3176,7 +3176,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3176
3176
  message: `Неприпустимий формат файлу "${e.name}". Дозволені формати: ${t.map((l) => `.${l}`).join(", ")}`,
3177
3177
  position: "right-bottom"
3178
3178
  }), !1);
3179
- }, Ga = (e, t) => {
3179
+ }, Xa = (e, t) => {
3180
3180
  const n = {}, l = [];
3181
3181
  if (!e?.length)
3182
3182
  return { ok: !0, params: n, missingSources: l };
@@ -3197,7 +3197,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3197
3197
  message: `Поля (${l.join(", ")}) необхідні для завантаження файлу`,
3198
3198
  position: "right-bottom"
3199
3199
  }), { ok: !1, params: n, missingSources: l }) : { ok: !0, params: n, missingSources: l };
3200
- }, Xa = (e, t) => !t || !Array.isArray(e) ? [] : e, Za = (e, t) => t || Array.isArray(e) ? null : e, ha = (e) => {
3200
+ }, Za = (e, t) => !t || !Array.isArray(e) ? [] : e, Ja = (e, t) => t || Array.isArray(e) ? null : e, ba = (e) => {
3201
3201
  if (!e) return "";
3202
3202
  const t = e.split(/[/\\]/).pop() || "", n = t.lastIndexOf(".");
3203
3203
  return n <= 0 || n === t.length - 1 ? "" : t.slice(n + 1).toLowerCase();
@@ -3224,7 +3224,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3224
3224
  }),
3225
3225
  emits: /* @__PURE__ */ ze(["change"], ["update:modelValue"]),
3226
3226
  setup(e, { emit: t }) {
3227
- const n = e, l = Ke(e, "modelValue"), o = t, a = A(null), i = A(!1), s = A([]), c = ot("values"), p = ot("map-file-import-uploading", null), _ = y(() => Xa(l.value, !!n.multiple)), $ = y(() => Za(l.value, !!n.multiple)), b = y(() => qa(n.format)), w = y(() => Ga(n.customParams, c)), m = (G) => {
3227
+ const n = e, l = Ke(e, "modelValue"), o = t, a = A(null), i = A(!1), s = A([]), c = ot("values"), p = ot("map-file-import-uploading", null), _ = y(() => Za(l.value, !!n.multiple)), $ = y(() => Ja(l.value, !!n.multiple)), b = y(() => Ka(n.format)), w = y(() => Xa(n.customParams, c)), m = (G) => {
3228
3228
  Ie({
3229
3229
  type: "error",
3230
3230
  title: "Помилка завантаження",
@@ -3240,7 +3240,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3240
3240
  onProgress: (F) => {
3241
3241
  R && (R.status = "uploading", R.progressPercent = F);
3242
3242
  }
3243
- }, N = await Ni(G, T);
3243
+ }, N = await ji(G, T);
3244
3244
  return N?.file_path ? N.file_path : null;
3245
3245
  };
3246
3246
  ge(i, (G) => {
@@ -3263,11 +3263,11 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3263
3263
  return;
3264
3264
  }
3265
3265
  const T = Array.from(R);
3266
- if (n.max_size && T.filter((X) => !Ka(X, n.max_size)).length > 0) {
3266
+ if (n.max_size && T.filter((X) => !Ya(X, n.max_size)).length > 0) {
3267
3267
  a.value && (a.value.value = "");
3268
3268
  return;
3269
3269
  }
3270
- if (T.filter((F) => !Ya(F, b.value)).length > 0) {
3270
+ if (T.filter((F) => !Ga(F, b.value)).length > 0) {
3271
3271
  a.value && (a.value.value = "");
3272
3272
  return;
3273
3273
  }
@@ -3390,10 +3390,10 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3390
3390
  }),
3391
3391
  emits: ["update:modelValue"],
3392
3392
  setup(e) {
3393
- const t = e, n = Ke(e, "modelValue"), l = A(null), o = A(!1), a = A(""), i = A([]), s = ot("values"), c = y(() => !!t.multiple), p = y(() => qa(t.format)), _ = y(() => {
3393
+ const t = e, n = Ke(e, "modelValue"), l = A(null), o = A(!1), a = A(""), i = A([]), s = ot("values"), c = y(() => !!t.multiple), p = y(() => Ka(t.format)), _ = y(() => {
3394
3394
  if (p.value.length)
3395
3395
  return p.value.map((T) => `.${T}`).join(",");
3396
- }), $ = y(() => Xa(n.value, c.value)), b = y(() => Za(n.value, c.value)), w = y(() => Ga(t.customParams, s)), m = y(() => i.value.filter((T) => T.status !== "done")), x = y(() => c.value ? null : m.value[0] || null), h = y(() => {
3396
+ }), $ = y(() => Za(n.value, c.value)), b = y(() => Ja(n.value, c.value)), w = y(() => Xa(t.customParams, s)), m = y(() => i.value.filter((T) => T.status !== "done")), x = y(() => c.value ? null : m.value[0] || null), h = y(() => {
3397
3397
  const T = m.value, N = T.reduce((X, me) => X + me.size, 0);
3398
3398
  if (!N) return 0;
3399
3399
  const F = T.reduce((X, me) => X + Math.min(me.uploaded, me.size), 0);
@@ -3431,11 +3431,11 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3431
3431
  if (!E.ok) throw new Error("Помилка завантаження частини");
3432
3432
  const ee = await E.json().catch(() => ({})), O = ee.uploaded != null ? Number(ee.uploaded) : Y;
3433
3433
  if (F.uploaded = O, F.progressPercent = F.size ? Math.min(100, Math.round(F.uploaded / F.size * 100)) : 0, ee.finished || O >= F.size) {
3434
- const ve = ha(F.file.name), we = ee.file_path || ee.filepath || ee.url || (ve ? `/files/uploads/${F.uploadId}.${ve}` : `/files/uploads/${F.uploadId}`);
3434
+ const ve = ba(F.file.name), we = ee.file_path || ee.filepath || ee.url || (ve ? `/files/uploads/${F.uploadId}.${ve}` : `/files/uploads/${F.uploadId}`);
3435
3435
  return F.path = we, F.status = "done", q(we), we;
3436
3436
  }
3437
3437
  }
3438
- const ne = ha(F.file.name), le = `/files/uploads/${F.uploadId}${ne ? `.${ne}` : ""}`;
3438
+ const ne = ba(F.file.name), le = `/files/uploads/${F.uploadId}${ne ? `.${ne}` : ""}`;
3439
3439
  return F.path = le, F.status = "done", q(le), le;
3440
3440
  } catch (X) {
3441
3441
  return F.status = "error", F.error = X?.message || "Помилка при завантаженні", a.value = X?.message || "Помилка при завантаженні", null;
@@ -3464,7 +3464,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3464
3464
  N.value = "";
3465
3465
  return;
3466
3466
  }
3467
- const X = F.filter((me) => Ka(me, t.max_size) && Ya(me, p.value));
3467
+ const X = F.filter((me) => Ya(me, t.max_size) && Ga(me, p.value));
3468
3468
  if (!X.length) {
3469
3469
  N.value = "";
3470
3470
  return;
@@ -3569,7 +3569,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3569
3569
  }
3570
3570
  return (o, a) => (u(), v(Le, null, [
3571
3571
  d("div", nu, [
3572
- Z(U(Qn), { class: "icon icon-tabler icons-tabler-outline icon-tabler-file h-4 w-4" })
3572
+ Z(z(Qn), { class: "icon icon-tabler icons-tabler-outline icon-tabler-file h-4 w-4" })
3573
3573
  ]),
3574
3574
  d("div", lu, [
3575
3575
  d("p", au, de(o.item?.uploaded_name), 1),
@@ -3623,7 +3623,8 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3623
3623
  async function c() {
3624
3624
  try {
3625
3625
  await fetch(
3626
- `${n.prefix}/widget/file/${n.item.entity_id}/${n.item.file_id}`
3626
+ `${n.prefix}/widget/file/${n.item.entity_id}/${n.item.file_id}`,
3627
+ { method: "DELETE" }
3627
3628
  ), l("update");
3628
3629
  } catch ($) {
3629
3630
  console.error($);
@@ -3670,7 +3671,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3670
3671
  class: "inline-flex p-[6px] justify-center items-center gap-x-2 rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 focus:outline-none focus:bg-gray-100 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
3671
3672
  onClick: b[1] || (b[1] = (w) => s($.item))
3672
3673
  }, [
3673
- Z(U(Fa), { class: "h-4 w-4" })
3674
+ Z(z(Ea), { class: "h-4 w-4" })
3674
3675
  ])
3675
3676
  ]),
3676
3677
  d("div", yu, [
@@ -3678,7 +3679,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3678
3679
  class: "inline-flex p-[6px] justify-center items-center gap-x-2 rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none dark:text-neutral-400 focus:outline-none focus:bg-gray-100 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
3679
3680
  onClick: b[2] || (b[2] = (w) => i($.item))
3680
3681
  }, [
3681
- Z(U(Ol), { class: "h-4 w-4" })
3682
+ Z(z(Ol), { class: "h-4 w-4" })
3682
3683
  ])
3683
3684
  ]),
3684
3685
  b[4] || (b[4] = d("div", { class: "w-px h-5 mx-1 bg-gray-200 dark:bg-neutral-700" }, null, -1)),
@@ -3688,7 +3689,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3688
3689
  class: "size-[30px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-red-600 hover:bg-red-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-red-100 dark:text-red-500 dark:hover:bg-red-500/20 dark:focus:bg-red-500/20",
3689
3690
  onClick: b[3] || (b[3] = (w) => p())
3690
3691
  }, [
3691
- Z(U(cn), { class: "h-4 w-4" })
3692
+ Z(z(cn), { class: "h-4 w-4" })
3692
3693
  ])
3693
3694
  ])
3694
3695
  ])
@@ -3776,7 +3777,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3776
3777
  onChange: D[0] || (D[0] = (R) => h(R))
3777
3778
  }, null, 32),
3778
3779
  d("div", $u, [
3779
- Z(U(Ea), { class: "h-4 w-4" })
3780
+ Z(z(Pa), { class: "h-4 w-4" })
3780
3781
  ])
3781
3782
  ])
3782
3783
  ])
@@ -3785,7 +3786,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3785
3786
  d("div", null, [
3786
3787
  d("div", Cu, [
3787
3788
  d("div", Mu, [
3788
- Z(U(al), { class: "flex-shrink-0 text-gray-500 size-4 dark:text-neutral-400" })
3789
+ Z(z(al), { class: "flex-shrink-0 text-gray-500 size-4 dark:text-neutral-400" })
3789
3790
  ]),
3790
3791
  Ne(d("input", {
3791
3792
  type: "text",
@@ -3858,7 +3859,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3858
3859
  ), (l, o) => (u(), v("div", null, [
3859
3860
  d("div", Du, [
3860
3861
  d("p", Iu, de(e.title), 1),
3861
- Z(Ra, {
3862
+ Z(Na, {
3862
3863
  modelValue: n.value,
3863
3864
  "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
3864
3865
  style: Oe(e.style)
@@ -3905,7 +3906,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3905
3906
  onClick: o[0] || (o[0] = (a) => n.value = !n.value),
3906
3907
  class: "flex items-center gap-2"
3907
3908
  }, [
3908
- Z(U(bn), {
3909
+ Z(z(bn), {
3909
3910
  class: se(["h-4 w-4 duration-300", [n.value ? "-rotate-180" : ""]])
3910
3911
  }, null, 8, ["class"]),
3911
3912
  d("span", Pu, de(e.title), 1)
@@ -3990,7 +3991,7 @@ const Ei = /* @__PURE__ */ Ze(Li, [["render", Fi]]), Pi = /* @__PURE__ */ be({
3990
3991
  return !0;
3991
3992
  }
3992
3993
  };
3993
- function Ja(e, t, n) {
3994
+ function Qa(e, t, n) {
3994
3995
  return t == null || !Array.isArray(t) || t.length === 0 ? !0 : (Array.isArray(t[0]) ? t : [t]).every((o) => {
3995
3996
  if (!Array.isArray(o) || o.length < 2) return !0;
3996
3997
  const a = o[0], i = n ? e?.[n]?.[a] ?? e?.[a] : e?.[a];
@@ -4022,7 +4023,7 @@ const nd = /* @__PURE__ */ be({
4022
4023
  }
4023
4024
  },
4024
4025
  setup(e) {
4025
- const t = e, n = ot("values", A({})), l = ot("form"), o = y(() => t.schema?.filter((s) => Ja(
4026
+ const t = e, n = ot("values", A({})), l = ot("form"), o = y(() => t.schema?.filter((s) => Qa(
4026
4027
  n.value,
4027
4028
  s?.conditions,
4028
4029
  t.name || void 0
@@ -4042,20 +4043,20 @@ const nd = /* @__PURE__ */ be({
4042
4043
  style: Oe(e.style)
4043
4044
  }, {
4044
4045
  default: it(() => [
4045
- (u(!0), v(Le, null, Be(o.value, (p) => (u(), xe(lo, nn({
4046
+ (u(!0), v(Le, null, Be(o.value, (p) => (u(), xe(ao, nn({
4046
4047
  key: p.name
4047
4048
  }, { ref_for: !0 }, p, {
4048
4049
  item: p,
4049
4050
  modelValue: i.value[p.name],
4050
4051
  "onUpdate:modelValue": (_) => i.value[p.name] = _,
4051
4052
  style: e.style,
4052
- error: U(l)?.errors?.[p.name]
4053
+ error: z(l)?.errors?.[p.name]
4053
4054
  }), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
4054
4055
  ]),
4055
4056
  _: 1
4056
4057
  }, 8, ["title", "style"])) : K("", !0);
4057
4058
  }
4058
- }), Qa = ({
4059
+ }), eo = ({
4059
4060
  props: e,
4060
4061
  fetchOptionByValue: t,
4061
4062
  optionsList: n,
@@ -4221,7 +4222,7 @@ const nd = /* @__PURE__ */ be({
4221
4222
  class: "flex items-center rounded-sm px-1 box-border text-[#172b4d] hover:bg-[rgb(255,189,173)] hover:text-[rgb(222,53,11)] flex-shrink-0",
4222
4223
  onClick: Fe((c) => a.onRemoveSelected(s.id), ["stop"])
4223
4224
  }, [
4224
- Z(U($t), {
4225
+ Z(z($t), {
4225
4226
  "aria-hidden": "true",
4226
4227
  focusable: "false",
4227
4228
  class: "inline-block h-4 w-4"
@@ -4316,7 +4317,7 @@ const nd = /* @__PURE__ */ be({
4316
4317
  ["stop"]
4317
4318
  ))
4318
4319
  }, [
4319
- Z(U($t), { class: "h-4 w-4" })
4320
+ Z(z($t), { class: "h-4 w-4" })
4320
4321
  ], 8, bd)) : K("", !0),
4321
4322
  a.showClear ? (u(), v("div", wd)) : K("", !0),
4322
4323
  d("button", {
@@ -4331,7 +4332,7 @@ const nd = /* @__PURE__ */ be({
4331
4332
  )),
4332
4333
  title: a.isOpen ? "Закрити список" : "Відкрити список"
4333
4334
  }, [
4334
- Z(U(bn), { class: "h-4 w-4" })
4335
+ Z(z(bn), { class: "h-4 w-4" })
4335
4336
  ], 8, xd)
4336
4337
  ])
4337
4338
  ], 42, ld));
@@ -4416,7 +4417,7 @@ const nd = /* @__PURE__ */ be({
4416
4417
  ], 4)) : K("", !0)
4417
4418
  ]));
4418
4419
  }
4419
- }), Ld = { class: "flex justify-end items-center gap-x-2 py-3 px-4 border-t border-gray-200 w-full" }, Ad = ["onClick"], Vd = ["disabled"], Dd = "__autoMeta", ba = "w-[16px] h-[16px] flex items-center justify-center flex-shrink-0 text-current", Id = /* @__PURE__ */ be({
4420
+ }), Ld = { class: "flex justify-end items-center gap-x-2 py-3 px-4 border-t border-gray-200 w-full" }, Ad = ["onClick"], Vd = ["disabled"], Dd = "__autoMeta", wa = "w-[16px] h-[16px] flex items-center justify-center flex-shrink-0 text-current", Id = /* @__PURE__ */ be({
4420
4421
  __name: "vs-input-select",
4421
4422
  props: {
4422
4423
  multiple: { type: Boolean, default: !1 },
@@ -4610,12 +4611,12 @@ const nd = /* @__PURE__ */ be({
4610
4611
  await oe();
4611
4612
  }
4612
4613
  }, qe = () => {
4613
- o.value ? (N.value = [], s.value = [], l("change", []), z(null, [])) : (m.value = null, s.value = null, l("change", null), z(null, null)), Te(null), Me(null), S.value = "", he(), Qe(() => {
4614
+ o.value ? (N.value = [], s.value = [], l("change", []), U(null, [])) : (m.value = null, s.value = null, l("change", null), U(null, null)), Te(null), Me(null), S.value = "", he(), Qe(() => {
4614
4615
  C.value?.focus();
4615
4616
  });
4616
4617
  }, Ye = (j) => {
4617
- o.value && (N.value = N.value.filter((ae) => ae?.toString() !== j?.toString()), s.value = [...N.value], l("change", s.value), z(null), Qe(() => C.value?.focus()));
4618
- }, z = (j, ae) => {
4618
+ o.value && (N.value = N.value.filter((ae) => ae?.toString() !== j?.toString()), s.value = [...N.value], l("change", s.value), U(null), Qe(() => C.value?.focus()));
4619
+ }, U = (j, ae) => {
4619
4620
  const $e = ae ?? (o.value ? [...N.value] : j?.id ?? null);
4620
4621
  l("value-selected", {
4621
4622
  name: n.name,
@@ -4623,9 +4624,9 @@ const nd = /* @__PURE__ */ be({
4623
4624
  option: j
4624
4625
  });
4625
4626
  }, k = (j, ae = "manual") => {
4626
- o.value ? (J(j.id) || (N.value = [...N.value, j.id], s.value = [...N.value], l("change", s.value), z(j)), S.value = "", Qe(() => {
4627
+ o.value ? (J(j.id) || (N.value = [...N.value, j.id], s.value = [...N.value], l("change", s.value), U(j)), S.value = "", Qe(() => {
4627
4628
  C.value?.focus(), x.value = Math.min(x.value, ne.value.length - 1);
4628
- }), Te(null)) : (m.value = j, s.value = j.id, l("change", s.value), z(j), S.value = "", he(), Te(j), ae === "parent-auto" && Me({
4629
+ }), Te(null)) : (m.value = j, s.value = j.id, l("change", s.value), U(j), S.value = "", he(), Te(j), ae === "parent-auto" && Me({
4629
4630
  source: ae,
4630
4631
  parentField: n.parent ?? null,
4631
4632
  parentValue: Ue.value ?? null
@@ -4735,7 +4736,7 @@ const nd = /* @__PURE__ */ be({
4735
4736
  addTitle: wt,
4736
4737
  addOption: zt,
4737
4738
  onAddValue: Tt
4738
- } = Qa({
4739
+ } = eo({
4739
4740
  props: n,
4740
4741
  fetchOptionByValue: We,
4741
4742
  optionsList: Ae,
@@ -4764,11 +4765,11 @@ const nd = /* @__PURE__ */ be({
4764
4765
  j && k(j, "parent-auto");
4765
4766
  }
4766
4767
  }), (j, ae) => (u(), v(Le, null, [
4767
- Z(U(Mn), {
4768
- visible: U(jt),
4768
+ Z(z(Mn), {
4769
+ visible: z(jt),
4769
4770
  "onUpdate:visible": ae[2] || (ae[2] = ($e) => Jn(jt) ? jt.value = $e : null),
4770
4771
  class: "z-[1000]",
4771
- title: U(wt),
4772
+ title: z(wt),
4772
4773
  teleport: j.teleport
4773
4774
  }, {
4774
4775
  footer: it(({ handleClose: $e }) => [
@@ -4782,14 +4783,14 @@ const nd = /* @__PURE__ */ be({
4782
4783
  type: "button",
4783
4784
  class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700",
4784
4785
  onClick: ae[1] || (ae[1] = //@ts-ignore
4785
- (...je) => U(zt) && U(zt)(...je))
4786
+ (...je) => z(zt) && z(zt)(...je))
4786
4787
  }, " Додати ")
4787
4788
  ])
4788
4789
  ]),
4789
4790
  default: it(() => [
4790
4791
  Z(Rt, {
4791
- schema: U(H),
4792
- modelValue: U(Jt),
4792
+ schema: z(H),
4793
+ modelValue: z(Jt),
4793
4794
  "onUpdate:modelValue": ae[0] || (ae[0] = ($e) => Jn(Jt) ? Jt.value = $e : null),
4794
4795
  ref_key: "addForm",
4795
4796
  ref: Se
@@ -4830,7 +4831,7 @@ const nd = /* @__PURE__ */ be({
4830
4831
  placeholder: X.value,
4831
4832
  search: i.value,
4832
4833
  "option-template": Y.value,
4833
- "icon-wrapper-class": ba,
4834
+ "icon-wrapper-class": wa,
4834
4835
  "selected-option-label": me.value,
4835
4836
  "selected-option": m.value,
4836
4837
  "show-clear": _e.value,
@@ -4857,7 +4858,7 @@ const nd = /* @__PURE__ */ be({
4857
4858
  "filtered-options-list": ne.value,
4858
4859
  "selected-nav-index": x.value,
4859
4860
  "option-template": Y.value,
4860
- "icon-wrapper-class": ba,
4861
+ "icon-wrapper-class": wa,
4861
4862
  "set-dropdown-ref": q,
4862
4863
  "set-list-ref": G,
4863
4864
  "set-item-ref": R,
@@ -4873,18 +4874,18 @@ const nd = /* @__PURE__ */ be({
4873
4874
  n.add ? (u(), v("button", {
4874
4875
  key: 0,
4875
4876
  onClick: ae[4] || (ae[4] = //@ts-ignore
4876
- (...$e) => U(Tt) && U(Tt)(...$e)),
4877
+ (...$e) => z(Tt) && z(Tt)(...$e)),
4877
4878
  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",
4878
4879
  disabled: a.value,
4879
4880
  type: "button"
4880
4881
  }, [
4881
- Z(U(Nt), { class: "h-4 w-4" }),
4882
+ Z(z(Nt), { class: "h-4 w-4" }),
4882
4883
  ae[8] || (ae[8] = d("span", null, "Додати", -1))
4883
4884
  ], 8, Vd)) : K("", !0)
4884
4885
  ], 512)
4885
4886
  ], 64));
4886
4887
  }
4887
- }), wa = /* @__PURE__ */ Ze(Id, [["__scopeId", "data-v-49a64961"]]), Wl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, Td = ["disabled", "aria-expanded"], Fd = { class: "truncate" }, Ed = { class: "py-2 px-4" }, Pd = { class: "block font-medium text-[13px] text-foreground" }, Od = { class: "truncate" }, Bd = { class: "p-1 border-t border-gray-200" }, Rd = { 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" }, Nd = ["onClick"], jd = ["checked"], zd = { class: "shrink-0 size-3.5 flex justify-center items-center" }, Ud = {
4888
+ }), xa = /* @__PURE__ */ Ze(Id, [["__scopeId", "data-v-49a64961"]]), Wl = (e = "") => `${e}${Math.floor(Math.random() * 1e4)}`, Td = ["disabled", "aria-expanded"], Fd = { class: "truncate" }, Ed = { class: "py-2 px-4" }, Pd = { class: "block font-medium text-[13px] text-foreground" }, Od = { class: "truncate" }, Bd = { class: "p-1 border-t border-gray-200" }, Rd = { 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" }, Nd = ["onClick"], jd = ["checked"], zd = { class: "shrink-0 size-3.5 flex justify-center items-center" }, Ud = {
4888
4889
  key: 1,
4889
4890
  class: "shrink-0 size-2 block mx-auto rounded-full bg-secondary/60"
4890
4891
  }, Hd = { class: "truncate" }, Wd = {
@@ -5070,7 +5071,7 @@ const nd = /* @__PURE__ */ be({
5070
5071
  ]),
5071
5072
  d("div", Bd, [
5072
5073
  d("div", Rd, [
5073
- (u(!0), v(Le, null, Be(U(T), (Te) => (u(), v("label", {
5074
+ (u(!0), v(Le, null, Be(z(T), (Te) => (u(), v("label", {
5074
5075
  key: Te.id,
5075
5076
  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",
5076
5077
  onClick: Fe((Ae) => O(Te), ["prevent"])
@@ -5090,12 +5091,12 @@ const nd = /* @__PURE__ */ be({
5090
5091
  }, null, 4)) : (u(), v("span", Ud))
5091
5092
  ]),
5092
5093
  d("span", Hd, de(q(Te)), 1),
5093
- Z(U(Ta), {
5094
+ Z(z(Fa), {
5094
5095
  class: se(["shrink-0 size-3.5 ms-auto transition-opacity", ne(Te.id) ? "opacity-100" : "opacity-0"])
5095
5096
  }, null, 8, ["class"])
5096
5097
  ], 8, Nd))), 128))
5097
5098
  ]),
5098
- U(T).length ? K("", !0) : (u(), v("p", Wd, "Немає варіантів"))
5099
+ z(T).length ? K("", !0) : (u(), v("p", Wd, "Немає варіантів"))
5099
5100
  ])
5100
5101
  ], 4)) : K("", !0)
5101
5102
  ], 8, ["to"]))
@@ -5129,7 +5130,7 @@ const nd = /* @__PURE__ */ be({
5129
5130
  disabled: o.value,
5130
5131
  row: "2",
5131
5132
  onBlur: i,
5132
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [U(n)]]),
5133
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] h-auto bg-white", [z(n)]]),
5133
5134
  style: {
5134
5135
  border: "1px solid #CFD9E0"
5135
5136
  }
@@ -5157,7 +5158,7 @@ const nd = /* @__PURE__ */ be({
5157
5158
  }),
5158
5159
  emits: ["update:modelValue"],
5159
5160
  setup(e) {
5160
- const t = Oo(() => import("./vs-richtext-BEkrhE3S.js")), n = e, l = Ke(e, "modelValue"), o = y(() => !!n.disabled), a = y(() => n.placeholder ?? ""), i = y(() => ({
5161
+ const t = Bo(() => import("./vs-richtext-BtYg01z2.js")), n = e, l = Ke(e, "modelValue"), o = y(() => !!n.disabled), a = y(() => n.placeholder ?? ""), i = y(() => ({
5161
5162
  height: n.richtextProps.height || "300px",
5162
5163
  format: n.format,
5163
5164
  ...n.richtextProps
@@ -5166,7 +5167,7 @@ const nd = /* @__PURE__ */ be({
5166
5167
  class: se(["!h-full overflow-hidden rounded-md border border-solid border-stone-200 disabled:opacity-50 disabled:cursor-not-allowed", s.customClass]),
5167
5168
  style: Oe(o.value ? { pointerEvents: "none", opacity: 0.6 } : {})
5168
5169
  }, [
5169
- Z(U(t), nn({
5170
+ Z(z(t), nn({
5170
5171
  modelValue: l.value,
5171
5172
  "onUpdate:modelValue": c[0] || (c[0] = (p) => l.value = p),
5172
5173
  placeholder: a.value
@@ -5228,7 +5229,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5228
5229
  }),
5229
5230
  emits: ["update:modelValue"],
5230
5231
  setup(e) {
5231
- const t = e, n = Bo(), l = (B) => t.actions === void 0 ? !0 : t.actions.includes(B), o = ["search", "import", "export", "add"], a = y(() => o.some((B) => l(B))), i = Ke(e, "modelValue"), s = A({}), c = A(""), p = A(null), _ = A("asc"), $ = y(() => {
5232
+ const t = e, n = Ro(), l = (B) => t.actions === void 0 ? !0 : t.actions.includes(B), o = ["search", "import", "export", "add"], a = y(() => o.some((B) => l(B))), i = Ke(e, "modelValue"), s = A({}), c = A(""), p = A(null), _ = A("asc"), $ = y(() => {
5232
5233
  const B = i.value ?? [], te = c.value ? B.filter((Ce) => b.value?.some((Re) => {
5233
5234
  const qe = Re.key || Re.name;
5234
5235
  if (!qe) return !1;
@@ -5350,8 +5351,8 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5350
5351
  J.set(oe, Re);
5351
5352
  const qe = Ce.map(encodeURIComponent).join(",");
5352
5353
  try {
5353
- const z = await (await fetch(ne(te.data, qe))).json();
5354
- s.value[oe] = z?.data ?? z;
5354
+ const U = await (await fetch(ne(te.data, qe))).json();
5355
+ s.value[oe] = U?.data ?? U;
5355
5356
  } catch (Ye) {
5356
5357
  console.error("Failed to fetch column values", Ye);
5357
5358
  }
@@ -5437,7 +5438,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5437
5438
  return (B, te) => (u(), v("div", Qd, [
5438
5439
  a.value ? (u(), v("div", ec, [
5439
5440
  l("search") ? (u(), v("div", tc, [
5440
- Z(U(al), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400" }),
5441
+ Z(z(al), { class: "absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400" }),
5441
5442
  Ne(d("input", {
5442
5443
  type: "text",
5443
5444
  "onUpdate:modelValue": te[0] || (te[0] = (oe) => c.value = oe),
@@ -5463,7 +5464,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5463
5464
  onClick: N,
5464
5465
  class: "inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:border-gray-300 hover:bg-gray-50 transition-colors"
5465
5466
  }, [
5466
- Z(U(Ea), { class: "h-4 w-4 text-gray-700" }),
5467
+ Z(z(Pa), { class: "h-4 w-4 text-gray-700" }),
5467
5468
  te[4] || (te[4] = tt(" Імпорт ", -1))
5468
5469
  ])) : K("", !0),
5469
5470
  l("export") ? (u(), v("button", {
@@ -5472,7 +5473,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5472
5473
  onClick: me,
5473
5474
  class: "inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-2 text-sm font-medium text-gray-700 hover:border-gray-300 hover:bg-gray-50 transition-colors"
5474
5475
  }, [
5475
- Z(U(Ol), { class: "h-4 w-4 text-gray-700" }),
5476
+ Z(z(Ol), { class: "h-4 w-4 text-gray-700" }),
5476
5477
  te[5] || (te[5] = tt(" Експорт ", -1))
5477
5478
  ])) : K("", !0),
5478
5479
  l("add") ? (u(), v("button", {
@@ -5481,7 +5482,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5481
5482
  type: "button",
5482
5483
  class: "inline-flex items-center gap-2 rounded-md bg-blue-500 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-600 transition-colors"
5483
5484
  }, [
5484
- Z(U(Nt), { class: "h-4 w-4 text-white" }),
5485
+ Z(z(Nt), { class: "h-4 w-4 text-white" }),
5485
5486
  te[6] || (te[6] = tt(" Додати ", -1))
5486
5487
  ])) : K("", !0)
5487
5488
  ])
@@ -5491,7 +5492,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5491
5492
  d("thead", oc, [
5492
5493
  d("tr", rc, [
5493
5494
  d("th", sc, [
5494
- Z(U(yn), { class: "mx-auto h-4 w-4 text-gray-400" })
5495
+ Z(z(yn), { class: "mx-auto h-4 w-4 text-gray-400" })
5495
5496
  ]),
5496
5497
  (u(!0), v(Le, null, Be(b.value, (oe) => (u(), v("th", {
5497
5498
  key: oe.key,
@@ -5543,7 +5544,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5543
5544
  onPointercancel: q
5544
5545
  }, [
5545
5546
  d("div", vc, [
5546
- Z(U(yn), { class: "mx-auto h-4 w-4 text-slate-400 dark:text-slate-500" })
5547
+ Z(z(yn), { class: "mx-auto h-4 w-4 text-slate-400 dark:text-slate-500" })
5547
5548
  ])
5548
5549
  ], 40, mc),
5549
5550
  (u(!0), v(Le, null, Be(b.value, (Ce) => (u(), v("td", {
@@ -5571,7 +5572,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5571
5572
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
5572
5573
  }, null, 8, bc)
5573
5574
  ])) : (u(), v("div", wc, [
5574
- Z(U(Qn), { class: "h-4 w-4 min-w-4" })
5575
+ Z(z(Qn), { class: "h-4 w-4 min-w-4" })
5575
5576
  ]))
5576
5577
  ])) : O(Ce) === "color" ? (u(), v("div", xc, [
5577
5578
  d("span", {
@@ -5587,13 +5588,13 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5587
5588
  onClick: (Ce) => Ve(oe, he),
5588
5589
  class: "p-1.5 text-gray-600 hover:text-blue-600 hover:bg-blue-50 rounded transition-colors"
5589
5590
  }, [
5590
- Z(U(Zo), { class: "h-4 w-4" })
5591
+ Z(z(Jo), { class: "h-4 w-4" })
5591
5592
  ], 8, Sc),
5592
5593
  d("button", {
5593
5594
  onClick: (Ce) => Ge(he),
5594
5595
  class: "p-1.5 text-gray-600 hover:text-red-600 hover:bg-red-50 rounded transition-colors"
5595
5596
  }, [
5596
- Z(U(cn), { class: "h-4 w-4" })
5597
+ Z(z(cn), { class: "h-4 w-4" })
5597
5598
  ], 8, Cc)
5598
5599
  ])
5599
5600
  ])
@@ -5601,7 +5602,7 @@ const Jd = /* @__PURE__ */ Ze(Gd, [["render", Zd]]), Qd = { class: "bg-white rou
5601
5602
  ], 2)
5602
5603
  ])
5603
5604
  ]),
5604
- Z(U(Mn), {
5605
+ Z(z(Mn), {
5605
5606
  visible: pe.value,
5606
5607
  title: ye.value,
5607
5608
  size: "lg",
@@ -5707,11 +5708,11 @@ function zc(e, t) {
5707
5708
  l = l.replace(new RegExp(o.replace(/[{}-]/g, "\\$&"), "gi"), String(a));
5708
5709
  }), l;
5709
5710
  }
5710
- const xa = /\/(\d+)\/(\d+)\/(\d+)(\.(?:png|jpe?g|webp))(?:\?.*)?$/i;
5711
- function ka(e, t) {
5712
- if (typeof e != "string" || !e.trim() || !xa.test(e)) return;
5711
+ const ka = /\/(\d+)\/(\d+)\/(\d+)(\.(?:png|jpe?g|webp))(?:\?.*)?$/i;
5712
+ function _a(e, t) {
5713
+ if (typeof e != "string" || !e.trim() || !ka.test(e)) return;
5713
5714
  const n = e.replace(
5714
- xa,
5715
+ ka,
5715
5716
  `/${t.z}/${t.x}/${t.y}$4`
5716
5717
  );
5717
5718
  return n !== e ? n : void 0;
@@ -5720,11 +5721,11 @@ function Uc(e, t) {
5720
5721
  if (e?.url) {
5721
5722
  const n = zc(e.url, t);
5722
5723
  if (n) return n;
5723
- const l = ka(e.url, t);
5724
+ const l = _a(e.url, t);
5724
5725
  if (l) return l;
5725
5726
  }
5726
5727
  if (e?.preview) {
5727
- const n = ka(e.preview, t);
5728
+ const n = _a(e.preview, t);
5728
5729
  return n || e.preview;
5729
5730
  }
5730
5731
  }
@@ -5861,7 +5862,7 @@ const Hc = ["title", "aria-expanded"], Wc = ["src"], qc = { class: "map-layers__
5861
5862
  "aria-label": "Закрити",
5862
5863
  onClick: me
5863
5864
  }, [
5864
- Z(U($t), { class: "map-layers__close-icon" })
5865
+ Z(z($t), { class: "map-layers__close-icon" })
5865
5866
  ])
5866
5867
  ]),
5867
5868
  d("div", Kc, [
@@ -5957,13 +5958,13 @@ function pp(e, t, n) {
5957
5958
  };
5958
5959
  const o = [], a = [];
5959
5960
  if (l.forEach((p, _) => {
5960
- const $ = _ + 1, b = t === "decimal" ? fp(p, $, n) : to(p, $, n);
5961
+ const $ = _ + 1, b = t === "decimal" ? fp(p, $, n) : no(p, $, n);
5961
5962
  if (!b.ok) {
5962
5963
  o.push(...b.errors);
5963
5964
  return;
5964
5965
  }
5965
5966
  const w = a[a.length - 1];
5966
- if (w && $a(w, b.point)) {
5967
+ if (w && Sa(w, b.point)) {
5967
5968
  o.push({ line: $, message: "Послідовні точки не повинні дублюватися." });
5968
5969
  return;
5969
5970
  }
@@ -5982,7 +5983,7 @@ function pp(e, t, n) {
5982
5983
  };
5983
5984
  const s = [...a];
5984
5985
  let c = !1;
5985
- return $a(s[0], s[s.length - 1]) || (s.push(s[0]), c = !0), gp(s) ? {
5986
+ return Sa(s[0], s[s.length - 1]) || (s.push(s[0]), c = !0), gp(s) ? {
5986
5987
  ok: !1,
5987
5988
  errors: [
5988
5989
  {
@@ -5997,10 +5998,10 @@ function pp(e, t, n) {
5997
5998
  };
5998
5999
  }
5999
6000
  function fp(e, t, n) {
6000
- return eo(e, "decimal", n, t);
6001
+ return to(e, "decimal", n, t);
6001
6002
  }
6002
- function eo(e, t, n, l = 1) {
6003
- return t === "decimal" ? mp(e, l, n) : to(e, l, n);
6003
+ function to(e, t, n, l = 1) {
6004
+ return t === "decimal" ? mp(e, l, n) : no(e, l, n);
6004
6005
  }
6005
6006
  function mp(e, t, n) {
6006
6007
  const l = [];
@@ -6034,7 +6035,7 @@ function mp(e, t, n) {
6034
6035
  const s = n === "lat-lon" ? a : i, c = n === "lat-lon" ? i : a;
6035
6036
  return (s < -90 || s > 90) && l.push({ line: t, message: "Широта поза діапазоном (-90..90)." }), (c < -180 || c > 180) && l.push({ line: t, message: "Довгота поза діапазоном (-180..180)." }), l.length ? { ok: !1, errors: l } : { ok: !0, point: [c, s] };
6036
6037
  }
6037
- function to(e, t, n) {
6038
+ function no(e, t, n) {
6038
6039
  Hn.lastIndex = 0;
6039
6040
  const l = [...e.matchAll(Hn)];
6040
6041
  if (l.length < 2)
@@ -6052,12 +6053,12 @@ function to(e, t, n) {
6052
6053
  ok: !1,
6053
6054
  errors: [{ line: t, message: "У рядку виявлено зайві символи або значення." }]
6054
6055
  };
6055
- const a = _a(l[0], t, n === "lat-lon" ? "lat" : "lon"), i = _a(l[1], t, n === "lat-lon" ? "lon" : "lat"), s = [];
6056
+ const a = $a(l[0], t, n === "lat-lon" ? "lat" : "lon"), i = $a(l[1], t, n === "lat-lon" ? "lon" : "lat"), s = [];
6056
6057
  if (a.ok || s.push(a.error), i.ok || s.push(i.error), s.length) return { ok: !1, errors: s };
6057
6058
  const c = n === "lat-lon" ? a.value : i.value;
6058
6059
  return { ok: !0, point: [n === "lat-lon" ? i.value : a.value, c] };
6059
6060
  }
6060
- function _a(e, t, n) {
6061
+ function $a(e, t, n) {
6061
6062
  const l = Number(e[1]), o = Number(e[2]), a = Number(e[3]), i = String(e[4]).toUpperCase();
6062
6063
  if (!Number.isFinite(l) || !Number.isFinite(o) || !Number.isFinite(a))
6063
6064
  return { ok: !1, error: { line: t, message: "Невірні значення DMS-координат." } };
@@ -6096,7 +6097,7 @@ function _a(e, t, n) {
6096
6097
  function vp(e) {
6097
6098
  return `${e[0].toFixed(12)}:${e[1].toFixed(12)}`;
6098
6099
  }
6099
- function $a(e, t) {
6100
+ function Sa(e, t) {
6100
6101
  return Math.abs(e[0] - t[0]) < sn && Math.abs(e[1] - t[1]) < sn;
6101
6102
  }
6102
6103
  function gp(e) {
@@ -6131,7 +6132,7 @@ const hp = ["title"], bp = {
6131
6132
  }, Mp = ["onClick"], Lp = {
6132
6133
  key: 1,
6133
6134
  class: "px-3 py-3 text-xs text-gray-500"
6134
- }, Sa = "formMapSearchAddressHistory", Ap = 12, Vp = "https://geo.rv.ua/api-user/dzk.api", Dp = "https://nominatim.openstreetmap.org/search", Ip = /* @__PURE__ */ be({
6135
+ }, Ca = "formMapSearchAddressHistory", Ap = 12, Vp = "https://geo.rv.ua/api-user/dzk.api", Dp = "https://nominatim.openstreetmap.org/search", Ip = /* @__PURE__ */ be({
6135
6136
  __name: "map-search",
6136
6137
  props: {
6137
6138
  config: {}
@@ -6139,7 +6140,7 @@ const hp = ["title"], bp = {
6139
6140
  emits: ["goToCoordinates"],
6140
6141
  setup(e, { emit: t }) {
6141
6142
  const n = {
6142
- mounted(z, k) {
6143
+ mounted(U, k) {
6143
6144
  if (typeof document > "u") return;
6144
6145
  let V = null;
6145
6146
  const P = 8, fe = () => {
@@ -6156,17 +6157,17 @@ const hp = ["title"], bp = {
6156
6157
  pointerEvents: "none",
6157
6158
  zIndex: "9999"
6158
6159
  }), document.body.appendChild(V);
6159
- const Xe = z.getBoundingClientRect();
6160
+ const Xe = U.getBoundingClientRect();
6160
6161
  V.style.left = `${Xe.right + window.scrollX + P}px`, V.style.top = `${Xe.top + window.scrollY + (Xe.height - V.offsetHeight) / 2}px`;
6161
6162
  }, De = () => {
6162
6163
  V?.parentNode && V.parentNode.removeChild(V), V = null;
6163
6164
  };
6164
- z.addEventListener("mouseenter", fe), z.addEventListener("mouseleave", De), Object.assign(z, { tooltipRightHandlers: { show: fe, hide: De } });
6165
+ U.addEventListener("mouseenter", fe), U.addEventListener("mouseleave", De), Object.assign(U, { tooltipRightHandlers: { show: fe, hide: De } });
6165
6166
  },
6166
- unmounted(z) {
6167
+ unmounted(U) {
6167
6168
  if (typeof document > "u") return;
6168
- const k = z.tooltipRightHandlers;
6169
- k && (z.removeEventListener("mouseenter", k.show), z.removeEventListener("mouseleave", k.hide));
6169
+ const k = U.tooltipRightHandlers;
6170
+ k && (U.removeEventListener("mouseenter", k.show), U.removeEventListener("mouseleave", k.hide));
6170
6171
  }
6171
6172
  }, l = e, o = t, a = nl();
6172
6173
  function i() {
@@ -6189,20 +6190,20 @@ const hp = ["title"], bp = {
6189
6190
  function p() {
6190
6191
  if (typeof l.config?.cadastreSuggest == "string" && l.config.cadastreSuggest.trim())
6191
6192
  return l.config.cadastreSuggest.trim();
6192
- const z = a?.appContext.config.globalProperties?.$settings, k = z?.map?.cadastreSuggest ?? z?.map?.parcelSuggest ?? z?.map?.parcelSearch;
6193
+ const U = a?.appContext.config.globalProperties?.$settings, k = U?.map?.cadastreSuggest ?? U?.map?.parcelSuggest ?? U?.map?.parcelSearch;
6193
6194
  if (typeof k == "string" && k.trim()) return k.trim();
6194
6195
  const V = i(), P = V?.map?.cadastreSuggest ?? V?.map?.parcelSuggest ?? V?.map?.parcelSearch;
6195
6196
  if (typeof P == "string" && P.trim()) return P.trim();
6196
6197
  }
6197
6198
  const _ = !!c(), $ = !!s(), b = y(() => {
6198
- const z = ["nominatim", "xy", "parcel"];
6199
- return _ && z.unshift("address"), $ ? z : z.filter((k) => k !== "nominatim");
6199
+ const U = ["nominatim", "xy", "parcel"];
6200
+ return _ && U.unshift("address"), $ ? U : U.filter((k) => k !== "nominatim");
6200
6201
  }), w = y(() => {
6201
- const z = b.value, k = l.config?.tools?.filter((V) => z.includes(V));
6202
- return k && k.length ? k : z;
6202
+ const U = b.value, k = l.config?.tools?.filter((V) => U.includes(V));
6203
+ return k && k.length ? k : U;
6203
6204
  }), m = y(() => l.config?.placeholder?.trim() || "Пошук…"), x = A(w.value[0]);
6204
- ge(w, (z) => {
6205
- z.includes(x.value) || (x.value = z[0]);
6205
+ ge(w, (U) => {
6206
+ U.includes(x.value) || (x.value = U[0]);
6206
6207
  });
6207
6208
  const h = A(""), S = A(!1), C = A(null), I = A(null), D = A(null), q = A(null), G = A([]), R = A(null), T = A(!1), N = A([]), F = y(
6208
6209
  () => (x.value === "address" || x.value === "nominatim") && T.value
@@ -6214,19 +6215,19 @@ const hp = ["title"], bp = {
6214
6215
  function Q() {
6215
6216
  if (typeof window > "u") return [];
6216
6217
  try {
6217
- const z = window.localStorage?.getItem?.(Sa);
6218
- if (!z) return [];
6219
- const k = JSON.parse(z);
6218
+ const U = window.localStorage?.getItem?.(Ca);
6219
+ if (!U) return [];
6220
+ const k = JSON.parse(U);
6220
6221
  return Array.isArray(k) ? k : [];
6221
6222
  } catch {
6222
6223
  return [];
6223
6224
  }
6224
6225
  }
6225
- function Y(z) {
6226
- typeof window > "u" || window.localStorage?.setItem?.(Sa, JSON.stringify(z));
6226
+ function Y(U) {
6227
+ typeof window > "u" || window.localStorage?.setItem?.(Ca, JSON.stringify(U));
6227
6228
  }
6228
- function ye(z) {
6229
- const V = [z, ...N.value.filter((P) => P.id !== z.id)].slice(0, 10);
6229
+ function ye(U) {
6230
+ const V = [U, ...N.value.filter((P) => P.id !== U.id)].slice(0, 10);
6230
6231
  N.value = V, Y(V);
6231
6232
  }
6232
6233
  const pe = Fl({
@@ -6238,7 +6239,7 @@ const hp = ["title"], bp = {
6238
6239
  });
6239
6240
  function E() {
6240
6241
  if (!q.value) return;
6241
- const z = q.value.getBoundingClientRect(), k = D.value?.getBoundingClientRect(), V = k?.width ?? z.width, P = (k?.left ?? z.left) + window.scrollX, fe = z.bottom + window.scrollY + Ap;
6242
+ const U = q.value.getBoundingClientRect(), k = D.value?.getBoundingClientRect(), V = k?.width ?? U.width, P = (k?.left ?? U.left) + window.scrollX, fe = U.bottom + window.scrollY + Ap;
6242
6243
  pe.left = `${P}px`, pe.top = `${fe}px`, pe.width = `${V}px`, pe.display = "block";
6243
6244
  }
6244
6245
  const ee = () => {
@@ -6249,45 +6250,45 @@ const hp = ["title"], bp = {
6249
6250
  }
6250
6251
  ge(x, () => {
6251
6252
  h.value = "", S.value = !1, G.value = [], T.value = !1, O(), _e.value = !1;
6252
- }), ge(F, (z) => {
6253
- z ? Qe(() => {
6253
+ }), ge(F, (U) => {
6254
+ U ? Qe(() => {
6254
6255
  E();
6255
6256
  }) : pe.display = "none";
6256
- }), ge(h, (z) => {
6257
+ }), ge(h, (U) => {
6257
6258
  if (x.value !== "address" && x.value !== "nominatim") {
6258
6259
  G.value = [], O();
6259
6260
  return;
6260
6261
  }
6261
- if (!z.trim()) {
6262
+ if (!U.trim()) {
6262
6263
  G.value = [], T.value = N.value.length > 0, O();
6263
6264
  return;
6264
6265
  }
6265
6266
  O(), T.value = !0, me = window.setTimeout(() => {
6266
- oe(z).catch((k) => {
6267
+ oe(U).catch((k) => {
6267
6268
  const V = k?.message || "Помилка пошуку адреси";
6268
6269
  Ie({ type: "error", title: "Пошук адреси", message: V });
6269
6270
  });
6270
6271
  }, X.value);
6271
6272
  });
6272
- function ve(z) {
6273
+ function ve(U) {
6273
6274
  const k = [];
6274
- I.value && k.push(I.value), z instanceof HTMLElement && k.push(z), C.value?.querySelectorAll("li")?.forEach((P) => {
6275
+ I.value && k.push(I.value), U instanceof HTMLElement && k.push(U), C.value?.querySelectorAll("li")?.forEach((P) => {
6275
6276
  k.push(P);
6276
6277
  }), k.forEach((P) => {
6277
6278
  P.dispatchEvent(new MouseEvent("mouseleave", { bubbles: !0 }));
6278
6279
  });
6279
6280
  }
6280
- function we(z) {
6281
- S.value && ve(z.target), S.value = !S.value;
6281
+ function we(U) {
6282
+ S.value && ve(U.target), S.value = !S.value;
6282
6283
  }
6283
- function re(z, k) {
6284
- ve(k?.target), x.value = z;
6284
+ function re(U, k) {
6285
+ ve(k?.target), x.value = U;
6285
6286
  }
6286
6287
  function Me() {
6287
6288
  h.value = "", G.value = [], T.value = !1, _e.value = !1;
6288
6289
  }
6289
- function Te(z) {
6290
- const k = z.target;
6290
+ function Te(U) {
6291
+ const k = U.target;
6291
6292
  if (S.value) {
6292
6293
  const V = C.value;
6293
6294
  V && !V.contains(k) && (ve(k), S.value = !1);
@@ -6302,11 +6303,11 @@ const hp = ["title"], bp = {
6302
6303
  }), It(() => {
6303
6304
  window.removeEventListener("click", Te, !0), window.removeEventListener("scroll", ee, !0), window.removeEventListener("resize", ee), O();
6304
6305
  });
6305
- function Ae(z) {
6306
- return z === "xy" ? "Координати" : z === "parcel" ? "Кадастр" : z === "nominatim" ? "Адреса" : "Адресний";
6306
+ function Ae(U) {
6307
+ return U === "xy" ? "Координати" : U === "parcel" ? "Кадастр" : U === "nominatim" ? "Адреса" : "Адресний";
6307
6308
  }
6308
- function Ue(z) {
6309
- switch (z) {
6309
+ function Ue(U) {
6310
+ switch (U) {
6310
6311
  case "xy":
6311
6312
  return "Пошук за географічними координатами. Введіть широту і довготу через пробіл або кому (lat lng або lng lat).";
6312
6313
  case "parcel":
@@ -6319,13 +6320,13 @@ const hp = ["title"], bp = {
6319
6320
  return "";
6320
6321
  }
6321
6322
  }
6322
- function He(z) {
6323
- const k = eo(z.trim(), "dms", "lat-lon");
6323
+ function He(U) {
6324
+ const k = to(U.trim(), "dms", "lat-lon");
6324
6325
  if (k.ok) {
6325
6326
  const [ft, kt] = k.point;
6326
6327
  return { lat: kt, lng: ft };
6327
6328
  }
6328
- const V = z.replace(/[,]+/g, " ").trim();
6329
+ const V = U.replace(/[,]+/g, " ").trim();
6329
6330
  if (!V) return null;
6330
6331
  const P = V.split(/\s+/).filter(Boolean);
6331
6332
  if (P.length < 2) return null;
@@ -6340,8 +6341,8 @@ const hp = ["title"], bp = {
6340
6341
  return null;
6341
6342
  return { lat: Xe, lng: ut };
6342
6343
  }
6343
- function We(z) {
6344
- const k = z?.result || z?.data || z;
6344
+ function We(U) {
6345
+ const k = U?.result || U?.data || U;
6345
6346
  return (Array.isArray(k) ? k : k ? [k] : []).map((P, fe) => {
6346
6347
  const De = P?.geom_centroid, Je = Array.isArray(De?.coordinates) ? De.coordinates : null;
6347
6348
  if (!Je || Je.length < 2) return null;
@@ -6354,77 +6355,77 @@ const hp = ["title"], bp = {
6354
6355
  };
6355
6356
  }).filter((P) => !!P);
6356
6357
  }
6357
- function nt(z) {
6358
- return (Array.isArray(z?.features) ? z.features : []).map((V, P) => {
6358
+ function nt(U) {
6359
+ return (Array.isArray(U?.features) ? U.features : []).map((V, P) => {
6359
6360
  const fe = V?.geometry?.coordinates, De = Number(fe?.[0]), Je = Number(fe?.[1]);
6360
6361
  if (!Number.isFinite(Je) || !Number.isFinite(De)) return null;
6361
6362
  const Xe = V?.properties || {}, ut = Xe?.geocoding?.label || Xe?.display_name || Xe?.label || "Адреса";
6362
6363
  return { id: String(Xe?.geocoding?.place_id || Xe?.place_id || P), title: ut, lat: Je, lng: De };
6363
6364
  }).filter((V) => !!V);
6364
6365
  }
6365
- function ie(z) {
6366
- return Number.isFinite(z.lat) && Number.isFinite(z.lng);
6366
+ function ie(U) {
6367
+ return Number.isFinite(U.lat) && Number.isFinite(U.lng);
6367
6368
  }
6368
- function ue(z) {
6369
- if (z == null || typeof z == "string" && !z.trim()) return null;
6370
- const k = Number(z);
6369
+ function ue(U) {
6370
+ if (U == null || typeof U == "string" && !U.trim()) return null;
6371
+ const k = Number(U);
6371
6372
  return Number.isFinite(k) ? k : null;
6372
6373
  }
6373
- function Ve(z) {
6374
- const k = ue(z.lng) ?? ue(z.lon) ?? ue(z.longitude) ?? ue(z.x), V = ue(z.lat) ?? ue(z.latitude) ?? ue(z.y);
6374
+ function Ve(U) {
6375
+ const k = ue(U.lng) ?? ue(U.lon) ?? ue(U.longitude) ?? ue(U.x), V = ue(U.lat) ?? ue(U.latitude) ?? ue(U.y);
6375
6376
  if (k != null && V != null)
6376
6377
  return { lat: V, lng: k };
6377
- const P = z?.geometry?.coordinates ?? z?.geom_centroid?.coordinates ?? z?.centroid?.coordinates ?? z?.geojson?.geometry?.coordinates ?? z?.geom?.coordinates;
6378
+ const P = U?.geometry?.coordinates ?? U?.geom_centroid?.coordinates ?? U?.centroid?.coordinates ?? U?.geojson?.geometry?.coordinates ?? U?.geom?.coordinates;
6378
6379
  if (Array.isArray(P) && P.length >= 2) {
6379
6380
  const fe = ue(P[0]), De = ue(P[1]);
6380
6381
  if (fe != null && De != null) return { lat: De, lng: fe };
6381
6382
  }
6382
6383
  return null;
6383
6384
  }
6384
- function Pe(z) {
6385
- return (Array.isArray(z?.data) ? z.data : []).map((V, P) => {
6385
+ function Pe(U) {
6386
+ return (Array.isArray(U?.data) ? U.data : []).map((V, P) => {
6386
6387
  const fe = Ve(V), De = String(
6387
6388
  V.text ?? V.title ?? V.label ?? V.name ?? V.address ?? V.display_name ?? V.id ?? "Адреса"
6388
6389
  ), Je = String(V.id ?? V.code ?? V.value ?? P);
6389
6390
  return fe ? { id: Je, title: De, ...fe } : { id: Je, title: De };
6390
6391
  }).filter((V) => !!V?.title);
6391
6392
  }
6392
- function Ge(z) {
6393
+ function Ge(U) {
6393
6394
  const k = p() || Vp;
6394
6395
  if (k.includes(":id"))
6395
- return k.replace(":id", encodeURIComponent(z));
6396
+ return k.replace(":id", encodeURIComponent(U));
6396
6397
  if (k.includes(":name"))
6397
- return k.replace(":name", encodeURIComponent(z));
6398
+ return k.replace(":name", encodeURIComponent(U));
6398
6399
  try {
6399
6400
  const V = new URL(k, window.location.origin), P = l.config?.parcelQueryParam?.trim() || "cad_num";
6400
- return V.searchParams.set(P, z), V.toString();
6401
+ return V.searchParams.set(P, U), V.toString();
6401
6402
  } catch {
6402
6403
  return k;
6403
6404
  }
6404
6405
  }
6405
- function ct(z) {
6406
+ function ct(U) {
6406
6407
  const k = c();
6407
6408
  if (!k) return null;
6408
6409
  if (k.includes(":name"))
6409
- return k.replace(":name", encodeURIComponent(z));
6410
+ return k.replace(":name", encodeURIComponent(U));
6410
6411
  try {
6411
6412
  const V = new URL(k, window.location.origin);
6412
- return z.trim() && V.searchParams.set("q", z), V.toString();
6413
+ return U.trim() && V.searchParams.set("q", U), V.toString();
6413
6414
  } catch {
6414
6415
  return k;
6415
6416
  }
6416
6417
  }
6417
- async function B(z) {
6418
- const k = ct(z);
6418
+ async function B(U) {
6419
+ const k = ct(U);
6419
6420
  if (!k) return [];
6420
6421
  const V = await fetch(k);
6421
6422
  if (!V.ok) throw new Error(`HTTP ${V.status}`);
6422
6423
  const P = await V.json();
6423
6424
  return Pe(P);
6424
6425
  }
6425
- async function te(z) {
6426
+ async function te(U) {
6426
6427
  const k = new URL(Dp);
6427
- k.searchParams.set("format", "geojson"), k.searchParams.set("q", z), k.searchParams.set("addressdetails", "1"), k.searchParams.set("bounded", "1");
6428
+ k.searchParams.set("format", "geojson"), k.searchParams.set("q", U), k.searchParams.set("addressdetails", "1"), k.searchParams.set("bounded", "1");
6428
6429
  const V = s();
6429
6430
  V && k.searchParams.set("viewbox", V);
6430
6431
  const P = await fetch(k.toString());
@@ -6432,7 +6433,7 @@ const hp = ["title"], bp = {
6432
6433
  const fe = await P.json();
6433
6434
  return nt(fe);
6434
6435
  }
6435
- async function oe(z) {
6436
+ async function oe(U) {
6436
6437
  if (G.value = [], O(), x.value === "address") {
6437
6438
  if (!c()) {
6438
6439
  Ie({
@@ -6442,7 +6443,7 @@ const hp = ["title"], bp = {
6442
6443
  });
6443
6444
  return;
6444
6445
  }
6445
- const P = await B(z);
6446
+ const P = await B(U);
6446
6447
  if (!P.length) {
6447
6448
  Ie({ type: "warning", title: "Пошук адреси", message: "Не знайдено результатів" });
6448
6449
  return;
@@ -6450,16 +6451,16 @@ const hp = ["title"], bp = {
6450
6451
  G.value = P;
6451
6452
  return;
6452
6453
  }
6453
- const k = await te(z);
6454
+ const k = await te(U);
6454
6455
  if (!k.length) {
6455
6456
  Ie({ type: "warning", title: "Пошук адреси", message: "Не знайдено результатів" });
6456
6457
  return;
6457
6458
  }
6458
6459
  G.value = k;
6459
6460
  }
6460
- async function he(z) {
6461
- if (ie(z)) {
6462
- qe(z), ye(z);
6461
+ async function he(U) {
6462
+ if (ie(U)) {
6463
+ qe(U), ye(U);
6463
6464
  return;
6464
6465
  }
6465
6466
  Ie({
@@ -6473,22 +6474,22 @@ const hp = ["title"], bp = {
6473
6474
  E();
6474
6475
  }));
6475
6476
  }
6476
- function Re(z) {
6477
- const V = z.replace(/\s+/g, "").split(":");
6477
+ function Re(U) {
6478
+ const V = U.replace(/\s+/g, "").split(":");
6478
6479
  if (V.length !== 4) return !1;
6479
6480
  const P = [10, 2, 3, 4];
6480
6481
  return V.every(
6481
6482
  (fe, De) => fe.length === P[De] && /^\d+$/.test(fe)
6482
6483
  );
6483
6484
  }
6484
- function qe(z) {
6485
- o("goToCoordinates", [z.lat, z.lng]), _e.value = !0;
6485
+ function qe(U) {
6486
+ o("goToCoordinates", [U.lat, U.lng]), _e.value = !0;
6486
6487
  }
6487
6488
  async function Ye() {
6488
- const z = h.value.trim();
6489
- if (z) {
6489
+ const U = h.value.trim();
6490
+ if (U) {
6490
6491
  if (x.value === "xy") {
6491
- const k = He(z);
6492
+ const k = He(U);
6492
6493
  if (!k) {
6493
6494
  Ie({
6494
6495
  type: "warning",
@@ -6502,7 +6503,7 @@ const hp = ["title"], bp = {
6502
6503
  }
6503
6504
  if (x.value === "address" || x.value === "nominatim") {
6504
6505
  try {
6505
- await oe(z);
6506
+ await oe(U);
6506
6507
  } catch (k) {
6507
6508
  const V = k?.message || "Помилка пошуку адреси";
6508
6509
  Ie({ type: "error", title: "Пошук адреси", message: V });
@@ -6510,7 +6511,7 @@ const hp = ["title"], bp = {
6510
6511
  return;
6511
6512
  }
6512
6513
  try {
6513
- if (!Re(z)) {
6514
+ if (!Re(U)) {
6514
6515
  Ie({
6515
6516
  type: "warning",
6516
6517
  title: "Пошук кадастру",
@@ -6518,7 +6519,7 @@ const hp = ["title"], bp = {
6518
6519
  });
6519
6520
  return;
6520
6521
  }
6521
- const k = await fetch(Ge(z));
6522
+ const k = await fetch(Ge(U));
6522
6523
  if (!k.ok) throw new Error(`HTTP ${k.status}`);
6523
6524
  const V = await k.json(), P = We(V);
6524
6525
  if (!P.length)
@@ -6537,7 +6538,7 @@ const hp = ["title"], bp = {
6537
6538
  }
6538
6539
  }
6539
6540
  }
6540
- return (z, k) => (u(), v("div", {
6541
+ return (U, k) => (u(), v("div", {
6541
6542
  ref_key: "widgetRef",
6542
6543
  ref: D,
6543
6544
  class: "map-search-widget flex flex-col gap-2 rounded-xl widget min-w-[200px]"
@@ -6766,7 +6767,7 @@ const hp = ["title"], bp = {
6766
6767
  class: "flex-1 px-2 py-1.5 bg-blue-500 hover:bg-blue-600 text-white text-xs font-medium rounded transition-colors duration-150 flex items-center justify-center gap-1",
6767
6768
  onClick: n[0] || (n[0] = (l) => t.$emit("click"))
6768
6769
  }, [
6769
- Z(U(Nt), {
6770
+ Z(z(Nt), {
6770
6771
  size: 12,
6771
6772
  "stroke-width": 2
6772
6773
  }),
@@ -6781,7 +6782,7 @@ const hp = ["title"], bp = {
6781
6782
  class: "w-full px-2 py-1.5 bg-rose-500 hover:bg-rose-600 text-white text-xs font-medium rounded transition-colors duration-150 flex items-center justify-center gap-1",
6782
6783
  onClick: n[0] || (n[0] = (l) => t.$emit("click"))
6783
6784
  }, [
6784
- Z(U(cn), {
6785
+ Z(z(cn), {
6785
6786
  size: 12,
6786
6787
  "stroke-width": 2
6787
6788
  }),
@@ -6796,7 +6797,7 @@ const hp = ["title"], bp = {
6796
6797
  class: "flex-1 px-2 py-1.5 bg-emerald-500 hover:bg-emerald-600 text-white text-xs font-medium rounded transition-colors duration-150 flex items-center justify-center gap-1",
6797
6798
  onClick: n[0] || (n[0] = (l) => t.$emit("click"))
6798
6799
  }, [
6799
- Z(U(Jo), {
6800
+ Z(z(Qo), {
6800
6801
  size: 12,
6801
6802
  "stroke-width": 2
6802
6803
  }),
@@ -6810,7 +6811,7 @@ const hp = ["title"], bp = {
6810
6811
  function rn(e) {
6811
6812
  return Np.format(e);
6812
6813
  }
6813
- function no(e) {
6814
+ function lo(e) {
6814
6815
  return e >= 1e3 ? `${rn(e / 1e3)} км` : `${rn(e)} м`;
6815
6816
  }
6816
6817
  const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5" }, zp = {
@@ -6849,7 +6850,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
6849
6850
  l("delete", n.id);
6850
6851
  };
6851
6852
  return (b, w) => (u(), v("div", jp, [
6852
- Z(U(Pa), {
6853
+ Z(z(Oa), {
6853
6854
  size: 12,
6854
6855
  "stroke-width": 2,
6855
6856
  class: "text-gray-400 flex-shrink-0"
@@ -7012,7 +7013,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7012
7013
  ), (m, x) => (u(), v("div", Wp, [
7013
7014
  d("button", qp, [
7014
7015
  d("span", Kp, [
7015
- Z(U(un), {
7016
+ Z(z(un), {
7016
7017
  size: 12,
7017
7018
  "stroke-width": 2.5
7018
7019
  })
@@ -7023,7 +7024,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7023
7024
  d("div", Gp, [
7024
7025
  d("button", Xp, [
7025
7026
  d("span", Zp, [
7026
- Z(U(un), {
7027
+ Z(z(un), {
7027
7028
  size: 12,
7028
7029
  "stroke-width": 2.5
7029
7030
  })
@@ -7049,7 +7050,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7049
7050
  ]),
7050
7051
  d("div", lf, [
7051
7052
  d("span", af, [
7052
- Z(U(un), {
7053
+ Z(z(un), {
7053
7054
  size: 12,
7054
7055
  "stroke-width": 2.5
7055
7056
  })
@@ -7078,7 +7079,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7078
7079
  setup(e) {
7079
7080
  return (t, n) => (u(), v("div", uf, [
7080
7081
  d("div", df, [
7081
- Z(U(un), {
7082
+ Z(z(un), {
7082
7083
  size: 16,
7083
7084
  "stroke-width": 2,
7084
7085
  class: "text-blue-600 flex-shrink-0 mt-0.5"
@@ -7107,7 +7108,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7107
7108
  ));
7108
7109
  }
7109
7110
  function l(a) {
7110
- return no(a);
7111
+ return lo(a);
7111
7112
  }
7112
7113
  const o = y(() => {
7113
7114
  const a = [], i = t.points;
@@ -7211,7 +7212,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7211
7212
  d("div", bf, [
7212
7213
  d("div", wf, [
7213
7214
  d("div", xf, [
7214
- Z(U(Oa), {
7215
+ Z(z(Ba), {
7215
7216
  size: 14,
7216
7217
  "stroke-width": 2,
7217
7218
  class: "text-white"
@@ -7224,7 +7225,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7224
7225
  "aria-label": "Закрити",
7225
7226
  onClick: N
7226
7227
  }, [
7227
- Z(U($t), {
7228
+ Z(z($t), {
7228
7229
  size: 14,
7229
7230
  "stroke-width": 2,
7230
7231
  class: "text-white"
@@ -7306,7 +7307,7 @@ const jp = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
7306
7307
  ));
7307
7308
  }
7308
7309
  function n(m) {
7309
- return no(m);
7310
+ return lo(m);
7310
7311
  }
7311
7312
  const l = e;
7312
7313
  function o() {
@@ -7619,7 +7620,7 @@ const Of = { class: "vs-map-body" }, Bf = {
7619
7620
  }, xm = {
7620
7621
  key: 0,
7621
7622
  class: "vs-map-status__area"
7622
- }, km = { class: "vs-map-status__value" }, _m = { class: "vs-map-status__actions" }, $m = ["disabled"], Sm = ["disabled"], Cm = 11, Mm = 15, Lm = 0.7, Am = "vs-tile-ov-src-", Vm = "vs-tile-ov-raster-", Kn = "__vs_form_maplibre_loader__", Dm = "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf", Yn = "vs-global-bounds-src", gn = "vs-global-bounds-line", Ca = "rasterLayer", Im = /* @__PURE__ */ be({
7623
+ }, km = { class: "vs-map-status__value" }, _m = { class: "vs-map-status__actions" }, $m = ["disabled"], Sm = ["disabled"], Cm = 11, Mm = 15, Lm = 0.7, Am = "vs-tile-ov-src-", Vm = "vs-tile-ov-raster-", Kn = "__vs_form_maplibre_loader__", Dm = "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf", Yn = "vs-global-bounds-src", gn = "vs-global-bounds-line", Ma = "rasterLayer", Im = /* @__PURE__ */ be({
7623
7624
  __name: "vs-input-map",
7624
7625
  props: {
7625
7626
  tools: {},
@@ -7647,7 +7648,7 @@ const Of = { class: "vs-map-body" }, Bf = {
7647
7648
  },
7648
7649
  emits: ["update:modelValue", "valueSelected"],
7649
7650
  setup(e, { emit: t }) {
7650
- const n = e, l = t, o = Aa(), a = ot("values", A({})), i = typeof document < "u" && document.querySelector("#modal") ? "#modal" : "body", s = y(() => {
7651
+ const n = e, l = t, o = Va(), a = ot("values", A({})), i = typeof document < "u" && document.querySelector("#modal") ? "#modal" : "body", s = y(() => {
7651
7652
  const r = o?.multiple, f = o?.multi, g = (M) => M === "" || M === !0 || M === "true" || M === 1 || M === "1";
7652
7653
  return !!n.multi || !!n.multiple || g(f) || g(r);
7653
7654
  }), c = y(() => !!n.disabled), p = A(!1), _ = A(null), $ = A(0), b = A(""), w = A(null), m = A([]), x = A(null), h = A(null), S = Af({
@@ -7823,7 +7824,7 @@ const Of = { class: "vs-map-body" }, Bf = {
7823
7824
  left: `${Re.value.point.x + 12}px`,
7824
7825
  top: `${Re.value.point.y + 12}px`
7825
7826
  };
7826
- }), z = y(() => {
7827
+ }), U = y(() => {
7827
7828
  if (Array.isArray(n.tools) && n.tools.length) return n.tools;
7828
7829
  const r = o?.tools;
7829
7830
  return Array.isArray(r) ? r.map((f) => String(f)) : typeof r == "string" ? r.split(",").map((f) => f.trim()).filter(Boolean) : [];
@@ -7838,7 +7839,7 @@ const Of = { class: "vs-map-body" }, Bf = {
7838
7839
  rectangle: !1,
7839
7840
  ruler: !1
7840
7841
  };
7841
- if (!z.value.length)
7842
+ if (!U.value.length)
7842
7843
  return {
7843
7844
  ...r,
7844
7845
  import: !0,
@@ -7848,7 +7849,7 @@ const Of = { class: "vs-map-body" }, Bf = {
7848
7849
  polygon: !0,
7849
7850
  rectangle: !0
7850
7851
  };
7851
- const f = new Set(z.value.map((g) => g.toLowerCase()));
7852
+ const f = new Set(U.value.map((g) => g.toLowerCase()));
7852
7853
  return {
7853
7854
  search: f.has("search"),
7854
7855
  import: f.has("import"),
@@ -8257,7 +8258,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8257
8258
  const f = `vs-ov-bounds-src-${r.id}`, g = `vs-ov-bounds-line-${r.id}`;
8258
8259
  H.getLayer(g) && H.removeLayer(g), H.getSource(f) && H.removeSource(f), gt(r.id);
8259
8260
  }
8260
- function oo(r, f) {
8261
+ function ro(r, f) {
8261
8262
  if (!H) return [];
8262
8263
  const g = `vs-ov-bounds-src-${f}`, M = `vs-ov-bounds-line-${f}`, L = r.bounds ?? le.value ?? Me.value, W = Ct(L);
8263
8264
  if (!W.length) return [];
@@ -8284,7 +8285,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8284
8285
  function cl() {
8285
8286
  return j || b.value === "marker" || b.value === "polyline" || b.value === "polygon" || b.value === "rectangle";
8286
8287
  }
8287
- function ro(r, f) {
8288
+ function so(r, f) {
8288
8289
  if (!H) return;
8289
8290
  r.handlers.forEach((M) => {
8290
8291
  try {
@@ -8319,7 +8320,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8319
8320
  }
8320
8321
  function pl(r, f) {
8321
8322
  if (!H) return;
8322
- r.layerIds = f, r.boundsIds = oo(r.config, r.id), ro(r, f);
8323
+ r.layerIds = f, r.boundsIds = ro(r.config, r.id), so(r, f);
8323
8324
  const g = r.visible ? "visible" : "none";
8324
8325
  [...r.layerIds, ...r.boundsIds].forEach((M) => {
8325
8326
  H.getLayer(M) && H.setLayoutProperty(M, "visibility", g);
@@ -8465,7 +8466,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8465
8466
  }
8466
8467
  });
8467
8468
  }
8468
- function so(r) {
8469
+ function io(r) {
8469
8470
  if (!H || c.value) return;
8470
8471
  const f = oe[r];
8471
8472
  if (!f) return;
@@ -8494,7 +8495,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8494
8495
  }
8495
8496
  });
8496
8497
  }
8497
- function io(r) {
8498
+ function uo(r) {
8498
8499
  if (!H) return;
8499
8500
  const f = kt(r), g = Zt(r);
8500
8501
  H.getLayer(g) && H.removeLayer(g), H.getSource(f) && H.removeSource(f);
@@ -8502,9 +8503,9 @@ const Of = { class: "vs-map-body" }, Bf = {
8502
8503
  function Yl() {
8503
8504
  H && pt.value.forEach((r) => Kl(r));
8504
8505
  }
8505
- function uo(r) {
8506
+ function co(r) {
8506
8507
  if (!H || c.value || !ut[r]) return;
8507
- pt.value.includes(r) ? (pt.value = pt.value.filter((g) => g !== r), io(r)) : (pt.value = [...pt.value, r], Kl(r)), Pt();
8508
+ pt.value.includes(r) ? (pt.value = pt.value.filter((g) => g !== r), uo(r)) : (pt.value = [...pt.value, r], Kl(r)), Pt();
8508
8509
  }
8509
8510
  function Pt() {
8510
8511
  if (!H) return;
@@ -8512,7 +8513,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8512
8513
  he.value.forEach((Ee) => {
8513
8514
  const et = oe[Ee];
8514
8515
  if (!et) return;
8515
- const Ht = String(et.config?.url ?? ""), kl = /\.v(?:m)?t(?:\?|$|\/)/i.test(Ht) || /\/vtile(?:\/|\?|$)/i.test(Ht) || ar(et.config, Ht, G.value), Wt = /\.png(?:\?|$)/i.test(Ht);
8516
+ const Ht = String(et.config?.url ?? ""), kl = /\.v(?:m)?t(?:\?|$|\/)/i.test(Ht) || /\/vtile(?:\/|\?|$)/i.test(Ht) || or(et.config, Ht, G.value), Wt = /\.png(?:\?|$)/i.test(Ht);
8516
8517
  kl ? M.push(...et.layerIds) : Wt ? f.push(...et.layerIds) : g.push(...et.layerIds), L.push(...et.boundsIds);
8517
8518
  });
8518
8519
  const W = [
@@ -8528,12 +8529,12 @@ const Of = { class: "vs-map-body" }, Bf = {
8528
8529
  const ke = (H.getStyle?.()?.layers ?? []).map((Ee) => String(Ee?.id ?? "")).filter((Ee) => Ee.startsWith("gl-draw-"));
8529
8530
  if (ke.forEach((Ee) => {
8530
8531
  H.getLayer(Ee) && H.moveLayer(Ee);
8531
- }), H.getLayer(Ca)) {
8532
+ }), H.getLayer(Ma)) {
8532
8533
  const Ee = W.find((et) => H.getLayer(et)) ?? (H.getLayer(gn) ? gn : null) ?? ke.find((et) => H.getLayer(et));
8533
- Ee && H.moveLayer(Ca, Ee);
8534
+ Ee && H.moveLayer(Ma, Ee);
8534
8535
  }
8535
8536
  }
8536
- function co(r) {
8537
+ function po(r) {
8537
8538
  if (!fe[r] || (Je.value = r, !H)) return;
8538
8539
  const f = lt();
8539
8540
  if (!f) return;
@@ -8627,14 +8628,14 @@ const Of = { class: "vs-map-body" }, Bf = {
8627
8628
  return "__invalid__";
8628
8629
  }
8629
8630
  }
8630
- function po(r, f) {
8631
+ function fo(r, f) {
8631
8632
  if (!Array.isArray(r) || !Array.isArray(f) || r.length < 2 || f.length < 2) return !1;
8632
8633
  const g = 1e-12;
8633
8634
  return Math.abs(Number(r[0]) - Number(f[0])) < g && Math.abs(Number(r[1]) - Number(f[1])) < g;
8634
8635
  }
8635
8636
  function Zl(r, f) {
8636
8637
  if (!Array.isArray(r) || r.length < 4) return null;
8637
- const M = po(r[0], r[r.length - 1]) ? r.slice(0, -1) : r.slice();
8638
+ const M = fo(r[0], r[r.length - 1]) ? r.slice(0, -1) : r.slice();
8638
8639
  return !Number.isInteger(f) || f < 0 || f >= M.length || M.length <= 3 || (M.splice(f, 1), M.length < 3) ? null : [...M, [...M[0]]];
8639
8640
  }
8640
8641
  function Jl(r, f) {
@@ -8642,7 +8643,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8642
8643
  const g = r.slice();
8643
8644
  return g.splice(f, 1), g.length < 2 ? null : g;
8644
8645
  }
8645
- function fo(r, f) {
8646
+ function mo(r, f) {
8646
8647
  const g = Ot(r);
8647
8648
  if (!g || !Array.isArray(f)) return null;
8648
8649
  if (g.type === "LineString") {
@@ -8663,7 +8664,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8663
8664
  }
8664
8665
  return null;
8665
8666
  }
8666
- function mo(r) {
8667
+ function vo(r) {
8667
8668
  return r ? r.split(".").map((f) => Number(f)).filter((f) => Number.isInteger(f) && f >= 0) : [];
8668
8669
  }
8669
8670
  function Ql(r) {
@@ -8673,7 +8674,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8673
8674
  const f = r?.properties?.id ?? r?.id;
8674
8675
  return f == null || f === "" ? null : String(f);
8675
8676
  }
8676
- function vo(r) {
8677
+ function go(r) {
8677
8678
  if (!H || !r) return null;
8678
8679
  const f = [
8679
8680
  [r.x - 8, r.y - 8],
@@ -8684,11 +8685,11 @@ const Of = { class: "vs-map-body" }, Bf = {
8684
8685
  });
8685
8686
  return ea(M);
8686
8687
  }
8687
- function go(r, f) {
8688
+ function yo(r, f) {
8688
8689
  if (!Se || !r || !f.length) return;
8689
8690
  const g = Ql(r);
8690
8691
  if (!g?.geometry) return;
8691
- const M = fo(g.geometry, f);
8692
+ const M = mo(g.geometry, f);
8692
8693
  if (!M) return;
8693
8694
  const L = {
8694
8695
  ...g,
@@ -8703,7 +8704,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8703
8704
  }
8704
8705
  en(), Ut();
8705
8706
  }
8706
- function yo(r) {
8707
+ function ho(r) {
8707
8708
  if (!H || !Se || c.value || S.isRulerActive.value || b.value !== "edit") return;
8708
8709
  const f = r?.point;
8709
8710
  if (!f) return;
@@ -8715,10 +8716,10 @@ const Of = { class: "vs-map-body" }, Bf = {
8715
8716
  );
8716
8717
  if (!L) return;
8717
8718
  r?.originalEvent?.preventDefault?.(), r?.originalEvent?.stopPropagation?.();
8718
- const W = mo(String(L.properties.coord_path));
8719
- W.length && go(String(L.properties.parent), W);
8719
+ const W = vo(String(L.properties.coord_path));
8720
+ W.length && yo(String(L.properties.parent), W);
8720
8721
  }
8721
- function ho(r) {
8722
+ function bo(r) {
8722
8723
  const f = la(r);
8723
8724
  if (!f) return null;
8724
8725
  const [[g, M], [L, W]] = f;
@@ -8737,7 +8738,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8737
8738
  }
8738
8739
  return Math.abs(g / 2) / 1e6;
8739
8740
  }
8740
- function bo(r) {
8741
+ function wo(r) {
8741
8742
  if (!r?.type || !r?.coordinates) return null;
8742
8743
  if (r.type === "Polygon") {
8743
8744
  const f = r.coordinates?.[0];
@@ -8753,7 +8754,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8753
8754
  w.value = null;
8754
8755
  return;
8755
8756
  }
8756
- const f = ho(r);
8757
+ const f = bo(r);
8757
8758
  if (!f) {
8758
8759
  w.value = null;
8759
8760
  return;
@@ -8761,7 +8762,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8761
8762
  w.value = {
8762
8763
  type: String(r.type ?? "Feature"),
8763
8764
  center: f,
8764
- areaKm2: bo(r)
8765
+ areaKm2: wo(r)
8765
8766
  };
8766
8767
  }
8767
8768
  function gl(r) {
@@ -8885,7 +8886,7 @@ const Of = { class: "vs-map-body" }, Bf = {
8885
8886
  const L = Ot(wt[wt.length - 1]?.geometry ?? null);
8886
8887
  zt = Ot(L), bl(), vl(L), L && (aa(L), c.value || Ut());
8887
8888
  }
8888
- function wo() {
8889
+ function xo() {
8889
8890
  Se && (B = !0, Pn(), wt.forEach((r) => {
8890
8891
  try {
8891
8892
  Se.add(r);
@@ -8927,10 +8928,10 @@ const Of = { class: "vs-map-body" }, Bf = {
8927
8928
  b.value = "";
8928
8929
  }
8929
8930
  }
8930
- function xo(r) {
8931
+ function ko(r) {
8931
8932
  c.value || !Se || !r || Ut(r);
8932
8933
  }
8933
- function ko() {
8934
+ function _o() {
8934
8935
  if (!(c.value || !Se)) {
8935
8936
  if (s.value) {
8936
8937
  const r = kn();
@@ -8947,15 +8948,15 @@ const Of = { class: "vs-map-body" }, Bf = {
8947
8948
  vn(), Pn(), wt = [], m.value = [], mt = null, Tt = "__null__", w.value = null, l("update:modelValue", null);
8948
8949
  }
8949
8950
  }
8950
- function _o() {
8951
+ function $o() {
8951
8952
  c.value || !zt || aa(zt);
8952
8953
  }
8953
- function $o(r) {
8954
+ function So(r) {
8954
8955
  if (!H || !jt) return;
8955
8956
  const f = [r[1], r[0]];
8956
8957
  ae || (ae = new jt.Marker({ color: "#2563eb" })), ae.setLngLat(f).addTo(H), H.easeTo({ center: f, zoom: 13, duration: 250 });
8957
8958
  }
8958
- function So() {
8959
+ function Co() {
8959
8960
  c.value || (Te.value = !Te.value);
8960
8961
  }
8961
8962
  function oa(r) {
@@ -8963,29 +8964,29 @@ const Of = { class: "vs-map-body" }, Bf = {
8963
8964
  const f = re.value;
8964
8965
  f && !f.contains(r.target) && (Te.value = !1);
8965
8966
  }
8966
- function Co() {
8967
- Mo();
8968
- }
8969
8967
  function Mo() {
8968
+ Lo();
8969
+ }
8970
+ function Lo() {
8970
8971
  c.value || (Te.value = !1, ue.value = {
8971
8972
  srid: "",
8972
8973
  encoding: "UTF-8",
8973
8974
  file: ""
8974
8975
  }, Ue.value = !0);
8975
8976
  }
8976
- function Lo() {
8977
+ function Ao() {
8977
8978
  Ue.value = !1, He.value = !1, We.value = !1;
8978
8979
  }
8979
- function Ao(r) {
8980
+ function Vo(r) {
8980
8981
  return r ? typeof r == "string" ? r : typeof r == "object" && r && "file_path" in r ? String(r.file_path ?? "") : "" : "";
8981
8982
  }
8982
- function Vo(r) {
8983
+ function Do(r) {
8983
8984
  const M = ((Array.isArray(r) ? r[0] : r)?.features ?? []).map((L) => Array.isArray(L) ? L[0] : L).filter(Boolean).map((L) => L?.type === "Feature" ? L : { type: "Feature", properties: {}, geometry: L });
8984
8985
  return M.length ? { type: "FeatureCollection", features: M } : null;
8985
8986
  }
8986
- async function Do() {
8987
+ async function Io() {
8987
8988
  if (c.value || !Se || He.value) return;
8988
- const r = Ao(ue.value.file);
8989
+ const r = Vo(ue.value.file);
8989
8990
  if (!r) {
8990
8991
  Ie({
8991
8992
  type: "warning",
@@ -9008,7 +9009,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9008
9009
  }), g = await f.json().catch(() => null);
9009
9010
  if (!f.ok)
9010
9011
  throw new Error(g?.message || g?.error || `Код помилки: ${f.status}`);
9011
- const M = Vo(g);
9012
+ const M = Do(g);
9012
9013
  if (!M) {
9013
9014
  Ie({
9014
9015
  type: "warning",
@@ -9032,13 +9033,13 @@ const Of = { class: "vs-map-body" }, Bf = {
9032
9033
  He.value = !1;
9033
9034
  }
9034
9035
  }
9035
- function Io() {
9036
+ function To() {
9036
9037
  c.value || (ie.value = [], Te.value = !1, Ae.value = !0);
9037
9038
  }
9038
- function To() {
9039
+ function Fo() {
9039
9040
  Ae.value = !1, ie.value = [];
9040
9041
  }
9041
- function Fo() {
9042
+ function Eo() {
9042
9043
  if (c.value || !Se) return;
9043
9044
  const r = pp(
9044
9045
  Ge.value.coordinates ?? "",
@@ -9046,7 +9047,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9046
9047
  Ge.value.order || "lat-lon"
9047
9048
  );
9048
9049
  if (!r.ok) {
9049
- ie.value = r.errors, Eo(r.errors);
9050
+ ie.value = r.errors, Po(r.errors);
9050
9051
  return;
9051
9052
  }
9052
9053
  ie.value = [], On({
@@ -9058,7 +9059,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9058
9059
  message: "Полігон був автоматично замкнений (перша і остання точки різнилися)."
9059
9060
  });
9060
9061
  }
9061
- function Eo(r) {
9062
+ function Po(r) {
9062
9063
  if (!r.length) return;
9063
9064
  const f = 5;
9064
9065
  r.slice(0, f).forEach((g) => {
@@ -9074,7 +9075,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9074
9075
  message: `Ще помилок: ${r.length - f}`
9075
9076
  });
9076
9077
  }
9077
- function Po() {
9078
+ function Oo() {
9078
9079
  if (c.value || !Se) return;
9079
9080
  const r = Se.getAll(), f = new Blob([JSON.stringify(r, null, 2)], { type: "application/json" }), g = URL.createObjectURL(f), M = document.createElement("a");
9080
9081
  M.href = g, M.download = "data.geojson", M.click(), URL.revokeObjectURL(g);
@@ -9116,7 +9117,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9116
9117
  return;
9117
9118
  }
9118
9119
  if (!Se || c.value || b.value !== "edit") return;
9119
- const M = vo(g?.point);
9120
+ const M = go(g?.point);
9120
9121
  !M || M === mt || requestAnimationFrame(() => {
9121
9122
  !Se || c.value || Ut(M);
9122
9123
  });
@@ -9139,7 +9140,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9139
9140
  en();
9140
9141
  return;
9141
9142
  }
9142
- if (an = !0, wo(), an = !1, b.value === "edit") {
9143
+ if (an = !0, xo(), an = !1, b.value === "edit") {
9143
9144
  const W = kn(), ce = W ? Ql(W) : Se?.getAll?.()?.features?.[0];
9144
9145
  if (ce?.id)
9145
9146
  try {
@@ -9187,7 +9188,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9187
9188
  M && mn(M);
9188
9189
  }), Pt(), O();
9189
9190
  }
9190
- }), H.on("contextmenu", yo), H.on("moveend", ve), H.on("zoomend", () => {
9191
+ }), H.on("contextmenu", ho), H.on("moveend", ve), H.on("zoomend", () => {
9191
9192
  H && (Y.value = H.getZoom());
9192
9193
  }));
9193
9194
  }), hn(() => {
@@ -9348,7 +9349,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9348
9349
  k.value.search || k.value.import || k.value.export ? (u(), v("div", Bf, [
9349
9350
  k.value.search ? (u(), xe(Tp, {
9350
9351
  key: 0,
9351
- onGoToCoordinates: $o
9352
+ onGoToCoordinates: So
9352
9353
  })) : K("", !0),
9353
9354
  k.value.import || k.value.export ? (u(), v("div", Rf, [
9354
9355
  d("div", Nf, [
@@ -9361,11 +9362,11 @@ const Of = { class: "vs-map-body" }, Bf = {
9361
9362
  d("button", {
9362
9363
  type: "button",
9363
9364
  class: "vs-map-action-btn",
9364
- onClick: So,
9365
+ onClick: Co,
9365
9366
  disabled: c.value
9366
9367
  }, [
9367
9368
  f[10] || (f[10] = tt(" Імпорт ", -1)),
9368
- Z(U(bn), {
9369
+ Z(z(bn), {
9369
9370
  class: se(["h-3.5 w-3.5 shrink-0 transition-transform", { "rotate-180": Te.value }])
9370
9371
  }, null, 8, ["class"])
9371
9372
  ], 8, jf),
@@ -9374,12 +9375,12 @@ const Of = { class: "vs-map-body" }, Bf = {
9374
9375
  key: 0,
9375
9376
  type: "button",
9376
9377
  class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
9377
- onClick: Co
9378
+ onClick: Mo
9378
9379
  }, " З файлу ")) : K("", !0),
9379
9380
  d("button", {
9380
9381
  type: "button",
9381
9382
  class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
9382
- onClick: Io
9383
+ onClick: To
9383
9384
  }, " З координат ")
9384
9385
  ])) : K("", !0)
9385
9386
  ], 512)) : K("", !0),
@@ -9387,22 +9388,22 @@ const Of = { class: "vs-map-body" }, Bf = {
9387
9388
  key: 1,
9388
9389
  type: "button",
9389
9390
  class: "vs-map-action-btn",
9390
- onClick: Po,
9391
+ onClick: Oo,
9391
9392
  disabled: c.value || $.value === 0
9392
9393
  }, " Експорт ", 8, Uf)) : K("", !0)
9393
9394
  ])
9394
9395
  ])) : K("", !0)
9395
9396
  ])) : K("", !0),
9396
- Z(U(Mn), {
9397
+ Z(z(Mn), {
9397
9398
  visible: Ue.value,
9398
9399
  "onUpdate:visible": f[1] || (f[1] = (g) => Ue.value = g),
9399
9400
  title: "Імпорт геометрії",
9400
9401
  size: "lg",
9401
- teleport: U(i)
9402
+ teleport: z(i)
9402
9403
  }, {
9403
9404
  default: it(() => [
9404
9405
  We.value || He.value ? (u(), v("div", Hf, [
9405
- Z(U(el), { class: "h-4 w-4 shrink-0 animate-spin" }),
9406
+ Z(z(el), { class: "h-4 w-4 shrink-0 animate-spin" }),
9406
9407
  d("span", null, de(nt.value), 1)
9407
9408
  ])) : K("", !0),
9408
9409
  Z(Rt, {
@@ -9414,16 +9415,16 @@ const Of = { class: "vs-map-body" }, Bf = {
9414
9415
  d("button", {
9415
9416
  type: "button",
9416
9417
  class: "px-3 py-2 rounded-md border border-gray-300 text-gray-700 text-sm hover:bg-gray-100",
9417
- onClick: Lo,
9418
+ onClick: Ao,
9418
9419
  disabled: We.value || He.value
9419
9420
  }, " Скасувати ", 8, qf),
9420
9421
  d("button", {
9421
9422
  type: "button",
9422
9423
  class: "px-3 py-2 rounded-md bg-blue-600 text-white text-sm hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center gap-2",
9423
- onClick: Do,
9424
+ onClick: Io,
9424
9425
  disabled: c.value || We.value || He.value || !ue.value.file
9425
9426
  }, [
9426
- He.value ? (u(), xe(U(el), {
9427
+ He.value ? (u(), xe(z(el), {
9427
9428
  key: 0,
9428
9429
  class: "h-4 w-4 animate-spin"
9429
9430
  })) : K("", !0),
@@ -9433,12 +9434,12 @@ const Of = { class: "vs-map-body" }, Bf = {
9433
9434
  ]),
9434
9435
  _: 1
9435
9436
  }, 8, ["visible", "teleport"]),
9436
- Z(U(Mn), {
9437
+ Z(z(Mn), {
9437
9438
  visible: Ae.value,
9438
9439
  "onUpdate:visible": f[3] || (f[3] = (g) => Ae.value = g),
9439
9440
  title: "Імпорт координат полігону",
9440
9441
  size: "lg",
9441
- teleport: U(i)
9442
+ teleport: z(i)
9442
9443
  }, {
9443
9444
  default: it(() => [
9444
9445
  Z(Rt, {
@@ -9450,12 +9451,12 @@ const Of = { class: "vs-map-body" }, Bf = {
9450
9451
  d("button", {
9451
9452
  type: "button",
9452
9453
  class: "px-3 py-2 rounded-md border border-gray-300 text-gray-700 text-sm hover:bg-gray-100",
9453
- onClick: To
9454
+ onClick: Fo
9454
9455
  }, " Скасувати "),
9455
9456
  d("button", {
9456
9457
  type: "button",
9457
9458
  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",
9458
- onClick: Fo,
9459
+ onClick: Eo,
9459
9460
  disabled: c.value
9460
9461
  }, " Побудувати ", 8, Gf)
9461
9462
  ])
@@ -9472,7 +9473,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9472
9473
  onClick: f[4] || (f[4] = (g) => Bn("marker")),
9473
9474
  disabled: c.value
9474
9475
  }, [
9475
- Z(U(Pa), { class: "vs-btn-icon" })
9476
+ Z(z(Oa), { class: "vs-btn-icon" })
9476
9477
  ], 10, Jf)) : K("", !0),
9477
9478
  k.value.line ? (u(), v("button", {
9478
9479
  key: 1,
@@ -9505,42 +9506,42 @@ const Of = { class: "vs-map-body" }, Bf = {
9505
9506
  St.value ? (u(), v("div", nm)) : K("", !0),
9506
9507
  k.value.ruler ? (u(), v("button", {
9507
9508
  key: 2,
9508
- class: se(["vs-btn", { "vs-active": U(S).isRulerActive.value }]),
9509
+ class: se(["vs-btn", { "vs-active": z(S).isRulerActive.value }]),
9509
9510
  title: "Лінійка",
9510
9511
  onClick: C
9511
9512
  }, [
9512
- Z(U(Oa), { class: "vs-btn-icon" })
9513
+ Z(z(Ba), { class: "vs-btn-icon" })
9513
9514
  ], 2)) : K("", !0),
9514
9515
  d("button", {
9515
9516
  class: "vs-btn",
9516
9517
  onClick: f[8] || (f[8] = (g) => p.value = !p.value),
9517
9518
  title: p.value ? "Згорнути" : "На весь екран"
9518
9519
  }, [
9519
- p.value ? (u(), xe(U(Qo), {
9520
+ p.value ? (u(), xe(z(er), {
9520
9521
  key: 0,
9521
9522
  class: "vs-btn-icon"
9522
- })) : (u(), xe(U(er), {
9523
+ })) : (u(), xe(z(tr), {
9523
9524
  key: 1,
9524
9525
  class: "vs-btn-icon"
9525
9526
  }))
9526
9527
  ], 8, lm)
9527
9528
  ])
9528
9529
  ]),
9529
- k.value.ruler && U(S).isRulerActive.value ? (u(), xe(Mf, {
9530
+ k.value.ruler && z(S).isRulerActive.value ? (u(), xe(Mf, {
9530
9531
  key: 1,
9531
9532
  ref_key: "rulerPanelRefEl",
9532
9533
  ref: h,
9533
- onClose: f[9] || (f[9] = (g) => U(S).closeRuler()),
9534
- onTabChange: U(S).onRulerTabChange,
9535
- onPointsChange: U(S).onRulerPointsChange,
9536
- onShapeClosedChange: U(S).onRulerShapeClosedChange
9534
+ onClose: f[9] || (f[9] = (g) => z(S).closeRuler()),
9535
+ onTabChange: z(S).onRulerTabChange,
9536
+ onPointsChange: z(S).onRulerPointsChange,
9537
+ onShapeClosedChange: z(S).onRulerShapeClosedChange
9537
9538
  }, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) : K("", !0),
9538
- k.value.ruler && U(S).isRulerActive.value && U(S).hasRulerPoints.value ? (u(), xe(Lf, {
9539
+ k.value.ruler && z(S).isRulerActive.value && z(S).hasRulerPoints.value ? (u(), xe(Lf, {
9539
9540
  key: 2,
9540
9541
  map: x.value,
9541
- points: U(S).rulerPoints.value,
9542
- "is-shape-closed": U(S).rulerShapeClosed.value,
9543
- "label-mode": U(S).rulerActiveTab.value
9542
+ points: z(S).rulerPoints.value,
9543
+ "is-shape-closed": z(S).rulerShapeClosed.value,
9544
+ "label-mode": z(S).rulerActiveTab.value
9544
9545
  }, null, 8, ["map", "points", "is-shape-closed", "label-mode"])) : K("", !0),
9545
9546
  qe.value.length ? (u(), v("div", {
9546
9547
  key: 3,
@@ -9562,16 +9563,16 @@ const Of = { class: "vs-map-body" }, Bf = {
9562
9563
  d("div", im, [
9563
9564
  Z(dp, {
9564
9565
  compact: "",
9565
- basemaps: U(fe),
9566
+ basemaps: z(fe),
9566
9567
  "active-base-key": Je.value,
9567
- "tile-overlays": U(ut),
9568
+ "tile-overlays": z(ut),
9568
9569
  "active-tile-overlay-keys": pt.value,
9569
9570
  "vector-overlays": ft.value,
9570
9571
  "preview-tile": ye.value,
9571
9572
  disabled: c.value,
9572
- onOnLayerChange: co,
9573
- onOnOverlayToggle: uo,
9574
- onOnVectorOverlayToggle: so
9573
+ onOnLayerChange: po,
9574
+ onOnOverlayToggle: co,
9575
+ onOnVectorOverlayToggle: io
9575
9576
  }, null, 8, ["basemaps", "active-base-key", "tile-overlays", "active-tile-overlay-keys", "vector-overlays", "preview-tile", "disabled"])
9576
9577
  ])
9577
9578
  ]),
@@ -9586,8 +9587,8 @@ const Of = { class: "vs-map-body" }, Bf = {
9586
9587
  g.interactive ? (u(), v("button", {
9587
9588
  key: 0,
9588
9589
  type: "button",
9589
- class: se(["vs-map-status__chip", { "vs-map-status__chip--active": g.id === U(mt) }]),
9590
- onClick: (L) => xo(g.id),
9590
+ class: se(["vs-map-status__chip", { "vs-map-status__chip--active": g.id === z(mt) }]),
9591
+ onClick: (L) => ko(g.id),
9591
9592
  disabled: c.value
9592
9593
  }, de(g.label), 11, fm)) : (u(), v("span", mm, de(g.label), 1)),
9593
9594
  M < wl.value.length - 1 ? (u(), v("span", vm, ", ")) : K("", !0)
@@ -9608,19 +9609,19 @@ const Of = { class: "vs-map-body" }, Bf = {
9608
9609
  type: "button",
9609
9610
  class: "vs-status-btn vs-status-btn--zoom",
9610
9611
  title: "Масштаб до об'єкта",
9611
- onClick: _o,
9612
+ onClick: $o,
9612
9613
  disabled: c.value
9613
9614
  }, [
9614
- Z(U(tr), { class: "vs-status-btn__icon" })
9615
+ Z(z(nr), { class: "vs-status-btn__icon" })
9615
9616
  ], 8, $m),
9616
9617
  d("button", {
9617
9618
  type: "button",
9618
9619
  class: "vs-status-btn vs-status-btn--delete",
9619
9620
  title: "Видалити об'єкт",
9620
- onClick: ko,
9621
+ onClick: _o,
9621
9622
  disabled: c.value
9622
9623
  }, [
9623
- Z(U(cn), { class: "vs-status-btn__icon" })
9624
+ Z(z(cn), { class: "vs-status-btn__icon" })
9624
9625
  ], 8, Sm)
9625
9626
  ])
9626
9627
  ])
@@ -9714,7 +9715,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9714
9715
  onClick: Fe((F) => S(N), ["stop"]),
9715
9716
  "aria-label": `Remove ${T}`
9716
9717
  }, [
9717
- Z(U($t), {
9718
+ Z(z($t), {
9718
9719
  "aria-hidden": "true",
9719
9720
  focusable: "false",
9720
9721
  class: "inline-block h-4 w-4"
@@ -9754,7 +9755,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9754
9755
  disabled: w.value,
9755
9756
  onClick: Fe(C, ["stop"])
9756
9757
  }, [
9757
- Z(U($t), { class: "h-4 w-4" })
9758
+ Z(z($t), { class: "h-4 w-4" })
9758
9759
  ], 8, zm)) : K("", !0)
9759
9760
  ])
9760
9761
  ], 10, Fm)
@@ -9972,7 +9973,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9972
9973
  onDrop: (D) => b(I)
9973
9974
  }, [
9974
9975
  d("button", av, [
9975
- Z(U(yn), { class: "h-4 w-4" })
9976
+ Z(z(yn), { class: "h-4 w-4" })
9976
9977
  ]),
9977
9978
  d("div", ov, [
9978
9979
  Z(Ln, {
@@ -9992,7 +9993,7 @@ const Of = { class: "vs-map-body" }, Bf = {
9992
9993
  onClick: (D) => x(C.id),
9993
9994
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200"
9994
9995
  }, [
9995
- Z(U($t), { class: "h-4 w-4" })
9996
+ Z(z($t), { class: "h-4 w-4" })
9996
9997
  ], 8, sv)
9997
9998
  ], 42, lv))), 128))
9998
9999
  ], 512),
@@ -10004,8 +10005,8 @@ const Of = { class: "vs-map-body" }, Bf = {
10004
10005
  disabled: w.value,
10005
10006
  class: "py-1.5 px-2 flex items-center gap-x-1 text-xs font-medium rounded-full border border-dashed border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
10006
10007
  }, [
10007
- Z(U(Nt), { class: "h-4 w-4" }),
10008
- tt(" " + de(U(i)), 1)
10008
+ Z(z(Nt), { class: "h-4 w-4" }),
10009
+ tt(" " + de(z(i)), 1)
10009
10010
  ], 8, dv)
10010
10011
  ])
10011
10012
  ]));
@@ -10087,7 +10088,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10087
10088
  type: "button",
10088
10089
  disabled: a.value
10089
10090
  }, [
10090
- Z(U(yn), { class: "h-4 w-4" })
10091
+ Z(z(yn), { class: "h-4 w-4" })
10091
10092
  ], 8, gv),
10092
10093
  d("div", yv, [
10093
10094
  h.inputType === "text" ? (u(), xe(Ln, {
@@ -10097,14 +10098,14 @@ const Of = { class: "vs-map-body" }, Bf = {
10097
10098
  disabled: a.value,
10098
10099
  placeholder: i.value
10099
10100
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : K("", !0),
10100
- h.inputType === "tel" ? (u(), xe(ja, {
10101
+ h.inputType === "tel" ? (u(), xe(za, {
10101
10102
  key: 1,
10102
10103
  modelValue: C.value,
10103
10104
  "onUpdate:modelValue": (D) => C.value = D,
10104
10105
  disabled: a.value,
10105
10106
  placeholder: i.value
10106
10107
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : K("", !0),
10107
- h.inputType === "email" ? (u(), xe(Na, {
10108
+ h.inputType === "email" ? (u(), xe(ja, {
10108
10109
  key: 2,
10109
10110
  modelValue: C.value,
10110
10111
  "onUpdate:modelValue": (D) => C.value = D,
@@ -10126,7 +10127,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10126
10127
  disabled: a.value,
10127
10128
  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"
10128
10129
  }, [
10129
- Z(U($t), { class: "h-4 w-4" })
10130
+ Z(z($t), { class: "h-4 w-4" })
10130
10131
  ], 8, hv)
10131
10132
  ], 42, vv))), 128))
10132
10133
  ], 512),
@@ -10138,7 +10139,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10138
10139
  disabled: $.value,
10139
10140
  class: "py-1.5 px-2 flex items-center gap-x-1 text-xs font-medium rounded-full border border-dashed border-gray-200 bg-white text-gray-800 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed"
10140
10141
  }, [
10141
- Z(U(Nt), { class: "h-4 w-4" }),
10142
+ Z(z(Nt), { class: "h-4 w-4" }),
10142
10143
  tt(" " + de(s.value), 1)
10143
10144
  ], 8, xv)
10144
10145
  ])
@@ -10169,7 +10170,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10169
10170
  "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
10170
10171
  disabled: i.value,
10171
10172
  ref: "color",
10172
- class: se(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [s.modelValue ? "" : "text-opacity-50", U(l)].join(" ")]),
10173
+ class: se(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [s.modelValue ? "" : "text-opacity-50", z(l)].join(" ")]),
10173
10174
  style: { border: "1px solid #CFD9E0" }
10174
10175
  }, null, 10, Sv), [
10175
10176
  [st, a.value]
@@ -10222,7 +10223,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10222
10223
  step: _.step,
10223
10224
  disabled: p.value,
10224
10225
  ref: "range",
10225
- class: se(["w-full cursor-pointer accent-blue-500", [_.modelValue ? "" : "text-opacity-50", U(l)].join(" ")])
10226
+ class: se(["w-full cursor-pointer accent-blue-500", [_.modelValue ? "" : "text-opacity-50", z(l)].join(" ")])
10226
10227
  }, null, 10, Av), [
10227
10228
  [st, i.value]
10228
10229
  ]),
@@ -10355,7 +10356,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10355
10356
  placeholder: x.placeholder,
10356
10357
  disabled: x.disabled,
10357
10358
  name: `${x.name}[${S - 1}]`,
10358
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(o), { "!border-red-600": x.error }]]),
10359
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(o), { "!border-red-600": x.error }]]),
10359
10360
  style: {
10360
10361
  border: "1px solid #CFD9E0"
10361
10362
  }
@@ -10366,7 +10367,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10366
10367
  onInput: (C) => b(C, S - 1),
10367
10368
  placeholder: s.value,
10368
10369
  disabled: i.value,
10369
- class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [U(o), { "!border-red-600": x.error }]]),
10370
+ class: se(["py-1.5 px-3 block w-full placeholder:text[#767f8f] bg-white", [z(o), { "!border-red-600": x.error }]]),
10370
10371
  style: {
10371
10372
  border: "1px solid #CFD9E0"
10372
10373
  }
@@ -10377,7 +10378,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10377
10378
  onClick: Fe(w, ["stop"]),
10378
10379
  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"
10379
10380
  }, [
10380
- Z(U(Nt), { class: "h-4 w-4" })
10381
+ Z(z(Nt), { class: "h-4 w-4" })
10381
10382
  ])) : K("", !0),
10382
10383
  !x.disabled && n.value > 1 && x.isAdded ? (u(), v("button", {
10383
10384
  key: 3,
@@ -10385,7 +10386,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10385
10386
  onClick: Fe((C) => m(S - 1), ["stop"]),
10386
10387
  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"
10387
10388
  }, [
10388
- Z(U($t), { class: "h-4 w-4" })
10389
+ Z(z($t), { class: "h-4 w-4" })
10389
10390
  ], 8, Fv)) : K("", !0)
10390
10391
  ]))), 128))
10391
10392
  ], 2));
@@ -10597,7 +10598,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10597
10598
  addTitle: oe,
10598
10599
  addOption: he,
10599
10600
  onAddValue: Ce
10600
- } = Qa({
10601
+ } = eo({
10601
10602
  props: n,
10602
10603
  fetchOptionByValue: ee,
10603
10604
  optionsList: i,
@@ -10655,11 +10656,11 @@ const Of = { class: "vs-map-body" }, Bf = {
10655
10656
  }, { immediate: !0, deep: !0 }), ge(() => n.data, async (k) => {
10656
10657
  k && (await O(_.value.trim()), await Ye());
10657
10658
  }, { immediate: !0 });
10658
- const z = A(!1);
10659
+ const U = A(!1);
10659
10660
  return ge(N, async () => {
10660
10661
  if (n.data) {
10661
- if (!z.value) {
10662
- z.value = !0;
10662
+ if (!U.value) {
10663
+ U.value = !0;
10663
10664
  return;
10664
10665
  }
10665
10666
  a.value = [], await O(_.value.trim()), await Ye();
@@ -10669,18 +10670,18 @@ const Of = { class: "vs-map-body" }, Bf = {
10669
10670
  }), hn(() => {
10670
10671
  document.removeEventListener("click", nt, !0), window.removeEventListener("keydown", He), window.removeEventListener("scroll", We, !0);
10671
10672
  }), (k, V) => (u(), v(Le, null, [
10672
- Z(U(Mn), {
10673
- visible: U(Ge),
10673
+ Z(z(Mn), {
10674
+ visible: z(Ge),
10674
10675
  "onUpdate:visible": V[1] || (V[1] = (P) => Jn(Ge) ? Ge.value = P : null),
10675
10676
  class: "z-[1000]",
10676
- title: U(oe),
10677
+ title: z(oe),
10677
10678
  buttonText: "Додати",
10678
- onDone: U(he)
10679
+ onDone: z(he)
10679
10680
  }, {
10680
10681
  default: it(() => [
10681
10682
  Z(Rt, {
10682
- schema: U(B),
10683
- modelValue: U(ct),
10683
+ schema: z(B),
10684
+ modelValue: z(ct),
10684
10685
  "onUpdate:modelValue": V[0] || (V[0] = (P) => Jn(ct) ? ct.value = P : null),
10685
10686
  ref_key: "addForm",
10686
10687
  ref: te
@@ -10731,7 +10732,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10731
10732
  class: se(["text-stone-400 transition-transform duration-150", $.value ? "rotate-180" : ""]),
10732
10733
  "aria-hidden": "true"
10733
10734
  }, [
10734
- Z(U(bn), { class: "h-4 w-4" })
10735
+ Z(z(bn), { class: "h-4 w-4" })
10735
10736
  ], 2)
10736
10737
  ], 10, Ov),
10737
10738
  (u(), xe(Xt, { to: "body" }, [
@@ -10763,12 +10764,12 @@ const Of = { class: "vs-map-body" }, Bf = {
10763
10764
  n.add ? (u(), v("button", {
10764
10765
  key: 0,
10765
10766
  onClick: V[5] || (V[5] = //@ts-ignore
10766
- (...P) => U(Ce) && U(Ce)(...P)),
10767
+ (...P) => z(Ce) && z(Ce)(...P)),
10767
10768
  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",
10768
10769
  disabled: q.value,
10769
10770
  type: "button"
10770
10771
  }, [
10771
- Z(U(Nt), { class: "h-4 w-4" }),
10772
+ Z(z(Nt), { class: "h-4 w-4" }),
10772
10773
  V[8] || (V[8] = d("span", null, "Додати", -1))
10773
10774
  ], 8, zv)) : K("", !0)
10774
10775
  ]),
@@ -10789,7 +10790,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10789
10790
  disabled: q.value,
10790
10791
  "aria-label": "Перетягнути"
10791
10792
  }, [
10792
- Z(U(yn), { class: "h-4 w-4" })
10793
+ Z(z(yn), { class: "h-4 w-4" })
10793
10794
  ], 8, Wv),
10794
10795
  d("div", {
10795
10796
  class: "flex-1 text-sm text-stone-900",
@@ -10802,7 +10803,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10802
10803
  onClick: Fe((De) => Pe(P.id), ["stop"]),
10803
10804
  "aria-label": `Видалити ${P.text}`
10804
10805
  }, [
10805
- Z(U($t), { class: "h-4 w-4" })
10806
+ Z(z($t), { class: "h-4 w-4" })
10806
10807
  ], 8, Kv)
10807
10808
  ], 42, Hv))), 128)),
10808
10809
  a.value.length === 0 ? (u(), v("p", Yv, "Немає вибраних значень")) : K("", !0)
@@ -10921,9 +10922,9 @@ const Of = { class: "vs-map-body" }, Bf = {
10921
10922
  "onUpdate:modelValue": T[0] || (T[0] = (N) => s.value = N),
10922
10923
  placeholder: b.value,
10923
10924
  disabled: w.value,
10924
- class: se(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [U(a), { "!border-red-600": l.error }]]),
10925
+ class: se(["py-1.5 px-3 block w-full bg-white border rounded-md placeholder:text-gray-400 focus:ring-2 focus:ring-blue-500", [z(a), { "!border-red-600": l.error }]]),
10925
10926
  style: { border: "1px solid #CFD9E0" },
10926
- onKeydown: Ro(Fe(C, ["prevent"]), ["enter"])
10927
+ onKeydown: No(Fe(C, ["prevent"]), ["enter"])
10927
10928
  }, null, 42, Jv), [
10928
10929
  [st, s.value]
10929
10930
  ]),
@@ -10934,7 +10935,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10934
10935
  onClick: D,
10935
10936
  title: "Show search results"
10936
10937
  }, [
10937
- Z(U(un), { class: "h-4 w-4" })
10938
+ Z(z(un), { class: "h-4 w-4" })
10938
10939
  ])) : K("", !0)
10939
10940
  ]),
10940
10941
  d("button", {
@@ -10943,10 +10944,10 @@ const Of = { class: "vs-map-body" }, Bf = {
10943
10944
  class: "flex items-center justify-center px-2 py-2 border rounded-md bg-white hover:bg-gray-50 text-gray-600 hover:text-blue-600 disabled:opacity-50 h-[38px]",
10944
10945
  disabled: c.value || !s.value?.trim()
10945
10946
  }, [
10946
- c.value ? (u(), xe(U(el), {
10947
+ c.value ? (u(), xe(z(el), {
10947
10948
  key: 1,
10948
10949
  class: "h-5 w-5 animate-spin text-gray-400"
10949
- })) : (u(), xe(U(al), {
10950
+ })) : (u(), xe(z(al), {
10950
10951
  key: 0,
10951
10952
  class: "h-4 w-4"
10952
10953
  }))
@@ -10961,7 +10962,7 @@ const Of = { class: "vs-map-body" }, Bf = {
10961
10962
  onClick: T[1] || (T[1] = (N) => _.value = !1),
10962
10963
  title: "Close"
10963
10964
  }, [
10964
- Z(U($t), { class: "h-4 w-4" })
10965
+ Z(z($t), { class: "h-4 w-4" })
10965
10966
  ])
10966
10967
  ]),
10967
10968
  d("ul", null, [
@@ -11061,7 +11062,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11061
11062
  onClick: (D) => m(I),
11062
11063
  disabled: p.value
11063
11064
  }, [
11064
- Z(U(cn), { class: "h-4 w-4" })
11065
+ Z(z(cn), { class: "h-4 w-4" })
11065
11066
  ], 8, ig)
11066
11067
  ], 2))), 128)),
11067
11068
  l.value.length === 0 ? (u(), v("div", ug, de(t.emptyLabel), 1)) : K("", !0)
@@ -11072,7 +11073,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11072
11073
  onClick: w,
11073
11074
  disabled: !c.value
11074
11075
  }, [
11075
- Z(U(Nt), { class: "h-4 w-4" }),
11076
+ Z(z(Nt), { class: "h-4 w-4" }),
11076
11077
  tt(" " + de(t.addButtonText), 1)
11077
11078
  ], 8, dg)
11078
11079
  ]));
@@ -11247,7 +11248,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11247
11248
  ]])
11248
11249
  }, [
11249
11250
  d("div", vg, [
11250
- x.value ? (u(), xe(U(yn), {
11251
+ x.value ? (u(), xe(z(yn), {
11251
11252
  key: 0,
11252
11253
  class: "h-4 w-4 text-gray-400",
11253
11254
  "aria-hidden": "true"
@@ -11258,7 +11259,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11258
11259
  class: "rounded-full p-1 text-gray-500 transition hover:bg-gray-100",
11259
11260
  onClick: (Me) => X(re)
11260
11261
  }, [
11261
- Z(U(bn), {
11262
+ Z(z(bn), {
11262
11263
  class: se(["h-4 w-4 transition", F(re) ? "-rotate-90" : "rotate-0"])
11263
11264
  }, null, 8, ["class"])
11264
11265
  ], 8, gg)) : K("", !0),
@@ -11273,7 +11274,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11273
11274
  disabled: t.disabled,
11274
11275
  draggable: "false"
11275
11276
  }, [
11276
- Z(U(nr), { class: "h-4 w-4" })
11277
+ Z(z(lr), { class: "h-4 w-4" })
11277
11278
  ], 8, bg),
11278
11279
  d("button", {
11279
11280
  type: "button",
@@ -11283,7 +11284,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11283
11284
  disabled: S.value,
11284
11285
  draggable: "false"
11285
11286
  }, [
11286
- Z(U(cn), { class: "h-4 w-4" })
11287
+ Z(z(cn), { class: "h-4 w-4" })
11287
11288
  ], 8, wg)
11288
11289
  ])
11289
11290
  ], 2),
@@ -11311,7 +11312,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11311
11312
  onClick: G,
11312
11313
  disabled: !h.value
11313
11314
  }, [
11314
- Z(U(Nt), { class: "h-4 w-4" }),
11315
+ Z(z(Nt), { class: "h-4 w-4" }),
11315
11316
  tt(" " + de(t.addButtonText), 1)
11316
11317
  ], 8, kg)
11317
11318
  ]));
@@ -11460,27 +11461,27 @@ const Of = { class: "vs-map-body" }, Bf = {
11460
11461
  VsInputRadio: fa,
11461
11462
  VsInputInlineSelect: $l,
11462
11463
  "vs-input-text": Ln,
11463
- "vs-input-password": Dr,
11464
+ "vs-input-password": Ir,
11464
11465
  "vs-input-textarea": Kd,
11465
11466
  "vs-input-richtext": Yd,
11466
11467
  "vs-input-mask": Nl,
11467
- "vs-input-number": Fr,
11468
+ "vs-input-number": Er,
11468
11469
  "vs-input-radio": fa,
11469
- "vs-input-select": wa,
11470
+ "vs-input-select": xa,
11470
11471
  "vs-input-inline-select": $l,
11471
11472
  "inline-select": $l,
11472
- "vs-input-switcher": Ra,
11473
+ "vs-input-switcher": Na,
11473
11474
  "vs-input-static": da,
11474
11475
  "vs-input-container": nd,
11475
- "vs-input-date": Oi,
11476
- "vs-input-checkbox": Ls,
11476
+ "vs-input-date": Bi,
11477
+ "vs-input-checkbox": As,
11477
11478
  "vs-input-file": Zi,
11478
11479
  "vs-input-file2": _l,
11479
11480
  file2: _l,
11480
11481
  File2: _l,
11481
11482
  "vs-input-html": da,
11482
- "vs-input-email": Na,
11483
- "vs-input-tel": ja,
11483
+ "vs-input-email": ja,
11484
+ "vs-input-tel": za,
11484
11485
  "vs-input-datatable": Lc,
11485
11486
  // 20kb
11486
11487
  "vs-input-map": Tm,
@@ -11493,7 +11494,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11493
11494
  "vs-input-text[]": _v,
11494
11495
  "vs-input-range": Dv,
11495
11496
  "vs-input-color": Mv,
11496
- "vs-input-native-select": wa,
11497
+ "vs-input-native-select": xa,
11497
11498
  VsInputArraySelect: Cl,
11498
11499
  "vs-input-array": Ev,
11499
11500
  "vs-input-array-select": Cl,
@@ -11551,7 +11552,7 @@ const Of = { class: "vs-map-body" }, Bf = {
11551
11552
  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"
11552
11553
  }, de(a.button), 1));
11553
11554
  }
11554
- }), Lg = { class: "flex flex-col gap-1 w-full" }, Ag = { class: "w-full" }, Vg = ["disabled"], Dg = ["innerHTML"], Ig = 2e3, Tg = 10, lo = /* @__PURE__ */ be({
11555
+ }), Lg = { class: "flex flex-col gap-1 w-full" }, Ag = { class: "w-full" }, Vg = ["disabled"], Dg = ["innerHTML"], Ig = 2e3, Tg = 10, ao = /* @__PURE__ */ be({
11555
11556
  __name: "vs-compact-form-layout",
11556
11557
  props: /* @__PURE__ */ ze({
11557
11558
  item: { default: {} },
@@ -11566,11 +11567,11 @@ const Of = { class: "vs-map-body" }, Bf = {
11566
11567
  }),
11567
11568
  emits: /* @__PURE__ */ ze(["value-selected"], ["update:modelValue"]),
11568
11569
  setup(e, { emit: t }) {
11569
- const n = e, l = Ke(e, "modelValue"), o = t, a = y(() => Ar[`${n.layout}`]), i = ["label", "placeholder", "info", "description", "text", "html"], s = A(me()), c = y(() => N(n.item, s.value)), p = y(() => {
11570
+ const n = e, l = Ke(e, "modelValue"), o = t, a = y(() => Vr[`${n.layout}`]), i = ["label", "placeholder", "info", "description", "text", "html"], s = A(me()), c = y(() => N(n.item, s.value)), p = y(() => {
11570
11571
  const J = { ...c.value ?? {} }, ne = n.item?.name;
11571
11572
  return ne && $?.value?.[ne] && Object.assign(J, $.value[ne]), J.__locale = s.value, J;
11572
11573
  }), _ = y(() => Cg?.[`vs-input-${n.item.type}`]), $ = ot("field-props"), b = y(() => {
11573
- const J = U(_);
11574
+ const J = z(_);
11574
11575
  if (!J) return /* @__PURE__ */ new Set();
11575
11576
  const ne = J.props ?? J.__vccOpts?.props;
11576
11577
  if (!ne) return /* @__PURE__ */ new Set();
@@ -11751,10 +11752,10 @@ const Of = { class: "vs-map-body" }, Bf = {
11751
11752
  disabled: q.value || !l.value?.toString().trim(),
11752
11753
  onClick: T
11753
11754
  }, [
11754
- q.value ? (u(), xe(U(el), {
11755
+ q.value ? (u(), xe(z(el), {
11755
11756
  key: 1,
11756
11757
  class: "h-5 w-5 animate-spin text-gray-400"
11757
- })) : (u(), xe(U(al), {
11758
+ })) : (u(), xe(z(al), {
11758
11759
  key: 0,
11759
11760
  class: "h-4 w-4"
11760
11761
  }))
@@ -11946,14 +11947,14 @@ const Of = { class: "vs-map-body" }, Bf = {
11946
11947
  if (!/^\+[1-9]\d{1,14}$/.test(n)) return Dt.tel;
11947
11948
  const a = (typeof t?.digits == "number" && Number.isFinite(t.digits) && t.digits > 0 ? t.digits : tn(Gt)) || tn(Gt);
11948
11949
  return n.length - 1 !== a ? Dt.tel : !1;
11949
- }, ao = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, zg = (e, t) => {
11950
+ }, oo = (e) => e == null ? 0 : typeof e == "string" ? e.trim().length : Array.isArray(e) ? e.length : typeof e == "number" ? e.toString().length : String(e).length, zg = (e, t) => {
11950
11951
  if (e == null) return !1;
11951
11952
  const n = Number(t?.value ?? t?.length);
11952
- return Number.isFinite(n) && ao(e) < n ? t?.message || Dt.minlength(n) : !1;
11953
+ return Number.isFinite(n) && oo(e) < n ? t?.message || Dt.minlength(n) : !1;
11953
11954
  }, Ug = (e, t) => {
11954
11955
  if (e == null || e === "") return !1;
11955
11956
  const n = Number(t?.value ?? t?.length);
11956
- return Number.isFinite(n) && ao(e) > n ? t?.message || Dt.maxlength(n) : !1;
11957
+ return Number.isFinite(n) && oo(e) > n ? t?.message || Dt.maxlength(n) : !1;
11957
11958
  }, tl = (e) => {
11958
11959
  if (typeof e == "number") return e;
11959
11960
  if (typeof e == "string") {
@@ -12026,7 +12027,7 @@ const Of = { class: "vs-map-body" }, Bf = {
12026
12027
  inlineselect: "inline-select"
12027
12028
  // mask: 'text',
12028
12029
  };
12029
- function Ma(e) {
12030
+ function La(e) {
12030
12031
  const t = e?.toLowerCase();
12031
12032
  return Xg[t] || t;
12032
12033
  }
@@ -12035,7 +12036,7 @@ function Dl(e, t = !1) {
12035
12036
  const l = [];
12036
12037
  return e.forEach((o) => {
12037
12038
  const a = { ...o };
12038
- if (a.name = (o.name || o.id || o.key || "").toString(), a.type = Ma(o.type), a.label = o.label || o.ua, a.rules = o.rules || o.validators, a.type === "email" && !a.rules && (a.rules = ["email"]), a.type === "tel" && !a.rules) {
12039
+ if (a.name = (o.name || o.id || o.key || "").toString(), a.type = La(o.type), a.label = o.label || o.ua, a.rules = o.rules || o.validators, a.type === "email" && !a.rules && (a.rules = ["email"]), a.type === "tel" && !a.rules) {
12039
12040
  const i = a.mask || Gt, s = tn(i) || tn(Gt);
12040
12041
  a.rules = [{ type: "tel", digits: s }];
12041
12042
  }
@@ -12047,7 +12048,7 @@ function Dl(e, t = !1) {
12047
12048
  const o = {
12048
12049
  name: l[0],
12049
12050
  ...l[1],
12050
- type: Ma(l[1].type),
12051
+ type: La(l[1].type),
12051
12052
  label: l[1].label || l[1].ua,
12052
12053
  rules: l[1].rules || l[1].validators,
12053
12054
  disabled: l[1].disabled ?? t
@@ -12065,7 +12066,7 @@ function Zg(e, t, n = !1) {
12065
12066
  typeof n == "boolean" ? n : n.value
12066
12067
  )), o = A({});
12067
12068
  function a(b) {
12068
- return Ja(e?.value, b?.conditions);
12069
+ return Qa(e?.value, b?.conditions);
12069
12070
  }
12070
12071
  const i = /* @__PURE__ */ new Set(["maxField"]);
12071
12072
  function s(b) {
@@ -12156,7 +12157,7 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12156
12157
  validate: $,
12157
12158
  reset: b,
12158
12159
  visibleSchema: w
12159
- } = Zg(p, o.schema, No(o, "disabled")), m = A(null), x = A(null), h = A({}), S = y(() => o.navigation), C = y(() => o.navWidth), I = y(() => o.style?.columns), D = Object.freeze({ container: 12, label: 3 }), q = y(() => o.columns ?? I.value ?? D), G = y(() => o.columns != null || I.value != null), R = y(() => G.value ? "horizontal" : o.layout), T = (le) => le?.columns ? "horizontal" : R.value, N = (le) => le?.columns ?? q.value, F = y(() => {
12160
+ } = Zg(p, o.schema, jo(o, "disabled")), m = A(null), x = A(null), h = A({}), S = y(() => o.navigation), C = y(() => o.navWidth), I = y(() => o.style?.columns), D = Object.freeze({ container: 12, label: 3 }), q = y(() => o.columns ?? I.value ?? D), G = y(() => o.columns != null || I.value != null), R = y(() => G.value ? "horizontal" : o.layout), T = (le) => le?.columns ? "horizontal" : R.value, N = (le) => le?.columns ?? q.value, F = y(() => {
12160
12161
  const le = {}, Q = (Y) => {
12161
12162
  if (!Y) return;
12162
12163
  (Array.isArray(Y) ? Y.map((pe, E) => ({ key: String(E), entry: pe })) : typeof Y == "object" ? Object.entries(Y).map(([pe, E]) => ({ key: pe, entry: E })) : []).forEach(({ key: pe, entry: E }) => {
@@ -12221,11 +12222,11 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12221
12222
  onSubmit: Fe(X, ["prevent"]),
12222
12223
  class: se(["grid grid-cols-12 p-1", R.value === "default" ? "gap-6" : "gap-4"])
12223
12224
  }, [
12224
- (u(!0), v(Le, null, Be(U(w), (Y, ye) => (u(), v("div", {
12225
+ (u(!0), v(Le, null, Be(z(w), (Y, ye) => (u(), v("div", {
12225
12226
  key: Y.name,
12226
12227
  class: se(T(Y) === "horizontal" ? "col-span-12" : `col-span-12 md:col-span-${Y.col || 12}`)
12227
12228
  }, [
12228
- Z(lo, {
12229
+ Z(ao, {
12229
12230
  style: Oe(le.style),
12230
12231
  item: Y,
12231
12232
  layout: T(Y),
@@ -12236,10 +12237,10 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12236
12237
  const E = p.value[Y.name];
12237
12238
  _e(E, pe) || (p.value[Y.name] = pe);
12238
12239
  },
12239
- error: U(_)[Y.name],
12240
+ error: z(_)[Y.name],
12240
12241
  onValueSelected: me
12241
12242
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
12242
- T(Y) === "settings" && ye + 1 !== U(w).length ? (u(), v("div", Qg)) : K("", !0)
12243
+ T(Y) === "settings" && ye + 1 !== z(w).length ? (u(), v("div", Qg)) : K("", !0)
12243
12244
  ], 2))), 128))
12244
12245
  ], 34)
12245
12246
  ], 512),
@@ -12420,7 +12421,7 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12420
12421
  class: "size-8 inline-flex justify-center items-center gap-x-2 rounded-full border border-transparent bg-gray-100 text-gray-800 hover:bg-gray-200 focus:outline-none focus:bg-gray-200 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-700 dark:hover:bg-neutral-600 dark:text-neutral-400 dark:focus:bg-neutral-600"
12421
12422
  }, [
12422
12423
  S[2] || (S[2] = d("span", { class: "sr-only" }, "Close", -1)),
12423
- Z(U($t), { class: "h-4 w-4 flex-shrink-0" })
12424
+ Z(z($t), { class: "h-4 w-4 flex-shrink-0" })
12424
12425
  ])
12425
12426
  ]),
12426
12427
  d("div", oy, [
@@ -12461,8 +12462,8 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12461
12462
  richtext: iy
12462
12463
  }
12463
12464
  }
12464
- }, La = (e = { mode: "edit", schema: null }) => new Promise((t) => {
12465
- const { close: n } = lr({
12465
+ }, Aa = (e = { mode: "edit", schema: null }) => new Promise((t) => {
12466
+ const { close: n } = ar({
12466
12467
  title: e.mode === "add" ? "Додати" : "Редагувати",
12467
12468
  template: "",
12468
12469
  visible: !0,
@@ -12482,8 +12483,8 @@ const Jg = { class: "flex w-full h-full min-h-0 gap-6" }, Qg = {
12482
12483
  });
12483
12484
  Rt.install = function(t) {
12484
12485
  t.component("VForm", Rt), Object.assign(t.config.globalProperties, {
12485
- $form: La
12486
- }), t.provide("form", La), window.v3plugin || (window.v3plugin = {});
12486
+ $form: Aa
12487
+ }), t.provide("form", Aa), window.v3plugin || (window.v3plugin = {});
12487
12488
  };
12488
12489
  export {
12489
12490
  sy as A,
@@ -12498,31 +12499,31 @@ export {
12498
12499
  Ev as J,
12499
12500
  og as K,
12500
12501
  Cl as L,
12501
- Ls as V,
12502
+ As as V,
12502
12503
  Ze as _,
12503
12504
  Rt as a,
12504
12505
  Sg as b,
12505
12506
  Ml as c,
12506
12507
  ry as d,
12507
12508
  Ln as e,
12508
- Fr as f,
12509
- Ra as g,
12510
- ar as h,
12509
+ Er as f,
12510
+ Na as g,
12511
+ or as h,
12511
12512
  Cg as i,
12512
12513
  da as j,
12513
12514
  Nl as k,
12514
- Na as l,
12515
- ja as m,
12515
+ ja as l,
12516
+ za as m,
12516
12517
  Dv as n,
12517
12518
  Mv as o,
12518
12519
  fa as p,
12519
- Oi as q,
12520
+ Bi as q,
12520
12521
  py as r,
12521
12522
  Zi as s,
12522
12523
  _l as t,
12523
12524
  Vu as u,
12524
12525
  nd as v,
12525
- wa as w,
12526
+ xa as w,
12526
12527
  $l as x,
12527
12528
  Kd as y,
12528
12529
  Yd as z