@opengis/form 0.0.53 → 0.0.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as U, ref as k, onMounted as _e, onUnmounted as Xe, createElementBlock as d, openBlock as i, createCommentVNode as D, renderSlot as Se, createElementVNode as l, toDisplayString as G, mergeProps as Te, computed as B, normalizeStyle as be, createTextVNode as ge, normalizeProps as ot, guardReactiveProps as nt, normalizeClass as E, mergeModels as ie, useModel as de, withDirectives as ae, unref as ee, vModelText as ve, vModelCheckbox as Ct, createVNode as A, createBlock as me, resolveDynamicComponent as Fe, withCtx as Ee, withModifiers as ke, onBeforeUnmount as at, watch as ue, createStaticVNode as ye, vModelRadio as Vt, Fragment as re, renderList as fe, reactive as Nt, vModelDynamic as qt, vShow as Qe, inject as Ae, resolveComponent as mt, Transition as st, nextTick as je, Teleport as Mt, getCurrentInstance as Wt, watchEffect as Gt, toRef as Zt, provide as vt } from "vue";
2
- import { notify as ce, VsModal as Lt, modal as Kt } from "@opengis/core";
3
- const Jt = { class: "w-full relative" }, Yt = {
1
+ import { defineComponent as U, ref as w, onMounted as _e, onUnmounted as Xe, createElementBlock as d, openBlock as i, createCommentVNode as D, renderSlot as Se, createElementVNode as l, toDisplayString as G, mergeProps as Te, computed as B, normalizeStyle as be, createTextVNode as ge, normalizeProps as ot, guardReactiveProps as nt, normalizeClass as E, mergeModels as ie, useModel as de, withDirectives as ae, unref as ee, vModelText as ve, vModelCheckbox as Vt, createVNode as A, createBlock as me, resolveDynamicComponent as Fe, withCtx as Ee, withModifiers as ke, onBeforeUnmount as at, watch as ue, createStaticVNode as ye, vModelRadio as Mt, Fragment as re, renderList as fe, reactive as qt, vModelDynamic as Wt, vShow as Qe, inject as Ae, resolveComponent as vt, Transition as st, nextTick as je, Teleport as Lt, getCurrentInstance as Gt, watchEffect as Zt, toRef as Kt, provide as ht } from "vue";
2
+ import { notify as ce, VsModal as St, modal as Jt } from "@opengis/core";
3
+ const Yt = { class: "w-full relative" }, Xt = {
4
4
  key: 0,
5
5
  class: "text-[14px] font-medium text-gray-900 mb-2"
6
- }, Xt = { class: "opacity-100" }, Qt = {
6
+ }, Qt = { class: "opacity-100" }, el = {
7
7
  key: 0,
8
8
  class: "text-red-500 text-[14px]"
9
- }, el = {
9
+ }, tl = {
10
10
  key: 1,
11
11
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
12
- }, tl = /* @__PURE__ */ U({
12
+ }, ll = /* @__PURE__ */ U({
13
13
  __name: "vs-layout-default",
14
14
  props: {
15
15
  ua: { default: "" },
@@ -24,31 +24,31 @@ const Jt = { class: "w-full relative" }, Yt = {
24
24
  columns: {}
25
25
  },
26
26
  setup(o) {
27
- const e = k("uk"), t = (a) => {
27
+ const e = w("uk"), t = (a) => {
28
28
  a.detail.key === "locale" && (e.value = a.detail.newValue);
29
29
  };
30
30
  return _e(() => {
31
31
  e.value = localStorage.locale, window.addEventListener("storage", t);
32
32
  }), Xe(() => {
33
33
  window.removeEventListener("resize", t);
34
- }), (a, n) => (i(), d("div", Jt, [
35
- a.ua || a.label ? (i(), d("div", Yt, [
36
- l("span", Xt, G(a.item[e.value] || a.ua || a.label), 1),
37
- a.item?.rules?.includes("required") ? (i(), d("span", Qt, "*")) : D("", !0)
34
+ }), (a, n) => (i(), d("div", Yt, [
35
+ a.ua || a.label ? (i(), d("div", Xt, [
36
+ l("span", Qt, G(a.item[e.value] || a.ua || a.label), 1),
37
+ a.item?.rules?.includes("required") ? (i(), d("span", el, "*")) : D("", !0)
38
38
  ])) : D("", !0),
39
39
  Se(a.$slots, "default", Te(a.$attrs, {
40
40
  class: { "opacity-60": a.item.disabled }
41
41
  })),
42
- a.error ? (i(), d("span", el, G(a.error), 1)) : D("", !0)
42
+ a.error ? (i(), d("span", tl, G(a.error), 1)) : D("", !0)
43
43
  ]));
44
44
  }
45
- }), ll = { class: "w-full relative flex flex-row items-center gap-2" }, ol = {
45
+ }), ol = { class: "w-full relative flex flex-row items-center gap-2" }, nl = {
46
46
  key: 0,
47
47
  class: "text-red-500 text-[14px]"
48
- }, nl = {
48
+ }, al = {
49
49
  key: 1,
50
50
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
51
- }, al = /* @__PURE__ */ U({
51
+ }, sl = /* @__PURE__ */ U({
52
52
  __name: "vs-layout-horizontal",
53
53
  props: {
54
54
  ua: { default: "" },
@@ -80,14 +80,14 @@ const Jt = { class: "w-full relative" }, Yt = {
80
80
  const f = `${p * 100}%`;
81
81
  return { flexBasis: f, maxWidth: f };
82
82
  });
83
- return (u, c) => (i(), d("div", ll, [
83
+ return (u, c) => (i(), d("div", ol, [
84
84
  n.value ? (i(), d("span", {
85
85
  key: 0,
86
86
  class: "text-sm text-gray-900 font-medium flex shrink-0",
87
87
  style: be(s.value)
88
88
  }, [
89
89
  ge(G(u.ua || u.label) + " ", 1),
90
- u.item?.rules?.includes("required") && (u.ua || u.label) ? (i(), d("span", ol, "*")) : D("", !0)
90
+ u.item?.rules?.includes("required") && (u.ua || u.label) ? (i(), d("span", nl, "*")) : D("", !0)
91
91
  ], 4)) : D("", !0),
92
92
  l("div", {
93
93
  class: "flex-1 min-w-0",
@@ -95,13 +95,13 @@ const Jt = { class: "w-full relative" }, Yt = {
95
95
  }, [
96
96
  Se(u.$slots, "default", ot(nt(u.$attrs)))
97
97
  ], 4),
98
- u.error ? (i(), d("span", nl, G(u.error), 1)) : D("", !0)
98
+ u.error ? (i(), d("span", al, G(u.error), 1)) : D("", !0)
99
99
  ]));
100
100
  }
101
- }), sl = { class: "w-full relative" }, rl = {
101
+ }), rl = { class: "w-full relative" }, il = {
102
102
  key: 0,
103
103
  class: "text-red-500 text-[10px] absolute bottom-[-14px]"
104
- }, il = /* @__PURE__ */ U({
104
+ }, ul = /* @__PURE__ */ U({
105
105
  __name: "vs-layout-inline",
106
106
  props: {
107
107
  ua: { default: "" },
@@ -116,24 +116,24 @@ const Jt = { class: "w-full relative" }, Yt = {
116
116
  columns: {}
117
117
  },
118
118
  setup(o) {
119
- return (e, t) => (i(), d("div", sl, [
119
+ return (e, t) => (i(), d("div", rl, [
120
120
  Se(e.$slots, "default", ot(nt(e.$attrs))),
121
- e.error ? (i(), d("span", rl, G(e.error), 1)) : D("", !0)
121
+ e.error ? (i(), d("span", il, G(e.error), 1)) : D("", !0)
122
122
  ]));
123
123
  }
124
- }), ul = { class: "flex-1 min-w-0" }, dl = {
124
+ }), dl = { class: "flex-1 min-w-0" }, cl = {
125
125
  key: 0,
126
126
  class: "text-sm font-medium text-slate-700 dark:text-slate-200 flex items-center gap-1"
127
- }, cl = { class: "truncate" }, pl = {
127
+ }, pl = { class: "truncate" }, fl = {
128
128
  key: 0,
129
129
  class: "text-red-500 text-[14px]"
130
- }, fl = {
130
+ }, ml = {
131
131
  key: 1,
132
132
  class: "text-xs text-slate-500 dark:text-slate-400"
133
- }, ml = { class: "w-full md:w-auto" }, vl = {
133
+ }, vl = { class: "w-full md:w-auto" }, hl = {
134
134
  key: 0,
135
135
  class: "mt-1 text-xs text-red-500"
136
- }, hl = /* @__PURE__ */ U({
136
+ }, gl = /* @__PURE__ */ U({
137
137
  __name: "vs-layout-settings",
138
138
  props: {
139
139
  ua: { default: "" },
@@ -148,7 +148,7 @@ const Jt = { class: "w-full relative" }, Yt = {
148
148
  columns: {}
149
149
  },
150
150
  setup(o) {
151
- const e = o, t = k("uk");
151
+ const e = o, t = w("uk");
152
152
  B(() => (e.item ?? {})?.[t.value] ?? e.ua ?? e.label ?? "");
153
153
  const a = B(() => e.item?.description ?? ""), n = B(() => Array.isArray(e.item?.rules) && e.item.rules.includes("required")), s = B(() => (typeof e.error == "string" ? e.error : "") ?? ""), r = (u) => {
154
154
  u.key === "locale" && (t.value = u.newValue ?? "uk");
@@ -167,25 +167,25 @@ const Jt = { class: "w-full relative" }, Yt = {
167
167
  l("div", {
168
168
  class: E(["gap-2 md:flex-row md:items-center md:justify-between", [["switcher", "native-select"].includes(u.item.type) ? "flex flex-col" : ""]])
169
169
  }, [
170
- l("div", ul, [
171
- u.ua || u.label ? (i(), d("p", dl, [
172
- l("span", cl, G(u.item[t.value] || u.ua || u.label), 1),
173
- n.value ? (i(), d("span", pl, "*")) : D("", !0)
170
+ l("div", dl, [
171
+ u.ua || u.label ? (i(), d("p", cl, [
172
+ l("span", pl, G(u.item[t.value] || u.ua || u.label), 1),
173
+ n.value ? (i(), d("span", fl, "*")) : D("", !0)
174
174
  ])) : D("", !0),
175
- a.value ? (i(), d("p", fl, G(a.value), 1)) : D("", !0)
175
+ a.value ? (i(), d("p", ml, G(a.value), 1)) : D("", !0)
176
176
  ]),
177
- l("div", ml, [
177
+ l("div", vl, [
178
178
  Se(u.$slots, "default", ot(nt(u.$attrs)))
179
179
  ])
180
180
  ], 2),
181
- s.value ? (i(), d("p", vl, G(s.value), 1)) : D("", !0)
181
+ s.value ? (i(), d("p", hl, G(s.value), 1)) : D("", !0)
182
182
  ], 2));
183
183
  }
184
- }), gl = {
185
- default: tl,
186
- horizontal: al,
187
- inline: il,
188
- settings: hl
184
+ }), bl = {
185
+ default: ll,
186
+ horizontal: sl,
187
+ inline: ul,
188
+ settings: gl
189
189
  };
190
190
  function $e(o) {
191
191
  return {
@@ -195,7 +195,7 @@ function $e(o) {
195
195
  })
196
196
  };
197
197
  }
198
- const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
198
+ const yl = ["placeholder", "disabled"], xl = /* @__PURE__ */ U({
199
199
  __name: "vs-input-password",
200
200
  props: /* @__PURE__ */ ie({
201
201
  style: { default: () => ({}) },
@@ -221,11 +221,11 @@ const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
221
221
  style: {
222
222
  border: "1px solid #CFD9E0"
223
223
  }
224
- }, null, 10, bl)), [
224
+ }, null, 10, yl)), [
225
225
  [ve, a.value]
226
226
  ]);
227
227
  }
228
- }), xl = ["placeholder", "disabled"], Ye = /* @__PURE__ */ U({
228
+ }), wl = ["placeholder", "disabled"], Ye = /* @__PURE__ */ U({
229
229
  __name: "vs-input-text",
230
230
  props: /* @__PURE__ */ ie({
231
231
  style: { default: () => ({}) },
@@ -251,11 +251,11 @@ const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
251
251
  style: {
252
252
  border: "1px solid #CFD9E0"
253
253
  }
254
- }, null, 10, xl)), [
254
+ }, null, 10, wl)), [
255
255
  [ve, a.value]
256
256
  ]);
257
257
  }
258
- }), wl = ["placeholder", "min", "max"], kl = /* @__PURE__ */ U({
258
+ }), kl = ["placeholder", "min", "max"], _l = /* @__PURE__ */ U({
259
259
  __name: "vs-input-number",
260
260
  props: /* @__PURE__ */ ie({
261
261
  min: {},
@@ -285,7 +285,7 @@ const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
285
285
  },
286
286
  min: n.min,
287
287
  max: n.max
288
- }, null, 10, wl)), [
288
+ }, null, 10, kl)), [
289
289
  [ve, a.value]
290
290
  ]);
291
291
  }
@@ -294,7 +294,7 @@ const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
294
294
  for (const [a, n] of e)
295
295
  t[a] = n;
296
296
  return t;
297
- }, _l = {}, $l = {
297
+ }, $l = {}, Cl = {
298
298
  xmlns: "http://www.w3.org/2000/svg",
299
299
  viewBox: "0 0 24 24",
300
300
  fill: "none",
@@ -304,8 +304,8 @@ const bl = ["placeholder", "disabled"], yl = /* @__PURE__ */ U({
304
304
  "stroke-linejoin": "round",
305
305
  class: "icon icon-tabler icons-tabler-outline icon-tabler-check"
306
306
  };
307
- function Cl(o, e) {
308
- return i(), d("svg", $l, e[0] || (e[0] = [
307
+ function Vl(o, e) {
308
+ return i(), d("svg", Cl, e[0] || (e[0] = [
309
309
  l("path", {
310
310
  stroke: "none",
311
311
  d: "M0 0h24v24H0z",
@@ -314,7 +314,7 @@ function Cl(o, e) {
314
314
  l("path", { d: "M5 12l5 5l10 -10" }, null, -1)
315
315
  ]));
316
316
  }
317
- const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-center gap-[4px]" }, Ll = ["value", "id", "disabled"], Sl = ["for"], Bl = { class: "text-[14px] text-gray-700 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, jl = /* @__PURE__ */ U({
317
+ const Ml = /* @__PURE__ */ X($l, [["render", Vl]]), Ll = { class: "flex items-center gap-[4px]" }, Sl = ["value", "id", "disabled"], Bl = ["for"], jl = { class: "text-[14px] text-gray-700 flex items-center gap-x-1 ml-1 dark:text-neutral-400" }, El = /* @__PURE__ */ U({
318
318
  __name: "vs-checkbox-default",
319
319
  props: {
320
320
  value: { default: "" },
@@ -331,7 +331,7 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
331
331
  get: () => a.modelValue,
332
332
  set: (s) => t("update:modelValue", s)
333
333
  });
334
- return (s, r) => (i(), d("div", Ml, [
334
+ return (s, r) => (i(), d("div", Ll, [
335
335
  ae(l("input", {
336
336
  type: "checkbox",
337
337
  value: s.value,
@@ -339,8 +339,8 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
339
339
  class: E(["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": s.disabled }]),
340
340
  id: s.id,
341
341
  disabled: s.disabled
342
- }, null, 10, Ll), [
343
- [Ct, n.value]
342
+ }, null, 10, Sl), [
343
+ [Vt, n.value]
344
344
  ]),
345
345
  l("label", {
346
346
  for: s.id,
@@ -349,23 +349,23 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
349
349
  l("div", {
350
350
  class: E(["h-[16px] text-white w-[16px] flex items-center justify-center shrink-0 border rounded", [n.value ? "bg-blue-600 border-blue-600" : "bg-white border-gray-600", s.error ? "border-red-600" : ""]])
351
351
  }, [
352
- A(Vl, {
352
+ A(Ml, {
353
353
  height: "12",
354
354
  width: "12"
355
355
  })
356
356
  ], 2),
357
- l("span", Bl, [
357
+ l("span", jl, [
358
358
  Se(s.$slots, "default", {}, () => [
359
359
  ge(G(s.label), 1)
360
360
  ])
361
361
  ])
362
- ], 10, Sl)
362
+ ], 10, Bl)
363
363
  ]));
364
364
  }
365
- }), El = ["name", "value", "disabled"], Il = { class: "flex items-center gap-[6px] text-[14px]" }, zl = {
365
+ }), Il = ["name", "value", "disabled"], zl = { class: "flex items-center gap-[6px] text-[14px]" }, Al = {
366
366
  key: 0,
367
367
  class: "text-[16px]"
368
- }, Al = ["src"], Tl = /* @__PURE__ */ U({
368
+ }, Tl = ["src"], Fl = /* @__PURE__ */ U({
369
369
  __name: "vs-checkbox-buttons",
370
370
  props: {
371
371
  value: { type: [String, Number, Boolean], default: "" },
@@ -395,11 +395,11 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
395
395
  value: u.value,
396
396
  "onUpdate:modelValue": c[0] || (c[0] = (p) => n.value = p),
397
397
  disabled: u.disabled
398
- }, null, 8, El), [
399
- [Ct, n.value]
398
+ }, null, 8, Il), [
399
+ [Vt, n.value]
400
400
  ]),
401
- l("span", Il, [
402
- u.icon || u.imgUrl ? (i(), d("span", zl, [
401
+ l("span", zl, [
402
+ u.icon || u.imgUrl ? (i(), d("span", Al, [
403
403
  u.icon ? (i(), d("i", {
404
404
  key: 0,
405
405
  class: E(u.icon)
@@ -410,7 +410,7 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
410
410
  width: "16",
411
411
  height: "16",
412
412
  alt: "icon"
413
- }, null, 8, Al)) : D("", !0)
413
+ }, null, 8, Tl)) : D("", !0)
414
414
  ])) : D("", !0),
415
415
  Se(u.$slots, "default", {}, () => [
416
416
  ge(G(u.label), 1)
@@ -418,7 +418,7 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
418
418
  ])
419
419
  ], 2));
420
420
  }
421
- }), Fl = { class: "flex items-center" }, St = /* @__PURE__ */ U({
421
+ }), Ol = { class: "flex items-center" }, Bt = /* @__PURE__ */ U({
422
422
  __name: "vs-input-checkbox-item",
423
423
  props: {
424
424
  value: { default: "" },
@@ -444,9 +444,9 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
444
444
  } else
445
445
  a("update:modelValue", u);
446
446
  }
447
- }), r = k(`vs-checkbox-${t.view || "default"}`);
448
- return (u, c) => (i(), d("div", Fl, [
449
- (i(), me(Fe(r.value === "vs-checkbox-buttons" ? ee(Tl) : ee(jl)), {
447
+ }), r = w(`vs-checkbox-${t.view || "default"}`);
448
+ return (u, c) => (i(), d("div", Ol, [
449
+ (i(), me(Fe(r.value === "vs-checkbox-buttons" ? ee(Fl) : ee(El)), {
450
450
  value: u.value,
451
451
  label: u.label,
452
452
  info: u.option?.info,
@@ -466,7 +466,7 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
466
466
  }, 8, ["value", "label", "info", "disabled", "modelValue", "icon", "imgUrl", "style", "error"]))
467
467
  ]));
468
468
  }
469
- }), Ol = {}, Dl = {
469
+ }), Dl = {}, Ul = {
470
470
  xmlns: "http://www.w3.org/2000/svg",
471
471
  viewBox: "0 0 24 24",
472
472
  fill: "none",
@@ -476,8 +476,8 @@ const Vl = /* @__PURE__ */ X(_l, [["render", Cl]]), Ml = { class: "flex items-ce
476
476
  "stroke-linejoin": "round",
477
477
  class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
478
478
  };
479
- function Ul(o, e) {
480
- return i(), d("svg", Dl, e[0] || (e[0] = [
479
+ function Pl(o, e) {
480
+ return i(), d("svg", Ul, e[0] || (e[0] = [
481
481
  l("path", {
482
482
  stroke: "none",
483
483
  d: "M0 0h24v24H0z",
@@ -486,7 +486,7 @@ function Ul(o, e) {
486
486
  l("path", { d: "M6 9l6 6l6 -6" }, null, -1)
487
487
  ]));
488
488
  }
489
- const Pl = /* @__PURE__ */ X(Ol, [["render", Ul]]), Rl = {}, Hl = {
489
+ const Rl = /* @__PURE__ */ X(Dl, [["render", Pl]]), Hl = {}, Nl = {
490
490
  xmlns: "http://www.w3.org/2000/svg",
491
491
  viewBox: "0 0 24 24",
492
492
  fill: "none",
@@ -496,8 +496,8 @@ const Pl = /* @__PURE__ */ X(Ol, [["render", Ul]]), Rl = {}, Hl = {
496
496
  "stroke-linejoin": "round",
497
497
  class: "icon icon-tabler icons-tabler-outline icon-tabler-x"
498
498
  };
499
- function Nl(o, e) {
500
- return i(), d("svg", Hl, e[0] || (e[0] = [
499
+ function ql(o, e) {
500
+ return i(), d("svg", Nl, e[0] || (e[0] = [
501
501
  l("path", {
502
502
  stroke: "none",
503
503
  d: "M0 0h24v24H0z",
@@ -507,7 +507,7 @@ function Nl(o, e) {
507
507
  l("path", { d: "M6 6l12 12" }, null, -1)
508
508
  ]));
509
509
  }
510
- const ql = /* @__PURE__ */ X(Rl, [["render", Nl]]), Wl = {}, Gl = {
510
+ const Wl = /* @__PURE__ */ X(Hl, [["render", ql]]), Gl = {}, Zl = {
511
511
  xmlns: "http://www.w3.org/2000/svg",
512
512
  width: "24",
513
513
  height: "24",
@@ -518,8 +518,8 @@ const ql = /* @__PURE__ */ X(Rl, [["render", Nl]]), Wl = {}, Gl = {
518
518
  "stroke-linecap": "round",
519
519
  "stroke-linejoin": "round"
520
520
  };
521
- function Zl(o, e) {
522
- return i(), d("svg", Gl, e[0] || (e[0] = [
521
+ function Kl(o, e) {
522
+ return i(), d("svg", Zl, e[0] || (e[0] = [
523
523
  l("path", {
524
524
  stroke: "none",
525
525
  d: "M0 0h24v24H0z",
@@ -530,13 +530,13 @@ function Zl(o, e) {
530
530
  l("path", { d: "M12 3c7.2 0 9 1.8 9 9s-1.8 9 -9 9s-9 -1.8 -9 -9s1.8 -9 9 -9z" }, null, -1)
531
531
  ]));
532
532
  }
533
- const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
533
+ const Jl = /* @__PURE__ */ X(Gl, [["render", Kl]]), Yl = {
534
534
  key: 0,
535
535
  class: "flex items-start gap-x-1"
536
- }, Yl = {
536
+ }, Xl = {
537
537
  key: 0,
538
538
  class: "text-red-500 text-[14px]"
539
- }, Xl = ["title"], Ql = ["disabled"], Bt = /* @__PURE__ */ U({
539
+ }, Ql = ["title"], eo = ["disabled"], jt = /* @__PURE__ */ U({
540
540
  __name: "vs-input-switcher",
541
541
  props: /* @__PURE__ */ ie({
542
542
  rules: { default: () => [] },
@@ -558,14 +558,14 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
558
558
  emits: ["update:modelValue"],
559
559
  setup(o) {
560
560
  const e = o, t = de(o, "modelValue");
561
- return (a, n) => e.view === "checkbox" ? (i(), d("div", Jl, [
562
- A(St, {
561
+ return (a, n) => e.view === "checkbox" ? (i(), d("div", Yl, [
562
+ A(Bt, {
563
563
  modelValue: t.value,
564
564
  "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
565
565
  label: a.text,
566
566
  error: a.error || ""
567
567
  }, null, 8, ["modelValue", "label", "error"]),
568
- a.rules?.includes("required") ? (i(), d("span", Yl, "*")) : D("", !0),
568
+ a.rules?.includes("required") ? (i(), d("span", Xl, "*")) : D("", !0),
569
569
  a.i ? (i(), d("button", {
570
570
  key: 1,
571
571
  class: "cursor-pointer",
@@ -573,8 +573,8 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
573
573
  onClick: n[1] || (n[1] = ke(() => {
574
574
  }, ["prevent"]))
575
575
  }, [
576
- A(ee(Kl), { class: "text-gray-500 w-[14px] h-[14px]" })
577
- ], 8, Xl)) : D("", !0)
576
+ A(ee(Jl), { class: "text-gray-500 w-[14px] h-[14px]" })
577
+ ], 8, Ql)) : D("", !0)
578
578
  ])) : (i(), d("button", {
579
579
  key: 1,
580
580
  type: "button",
@@ -586,9 +586,9 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
586
586
  "data-state": "checked",
587
587
  class: E(["pointer-events-none block h-4 w-4 rounded-full bg-white shadow-lg ring-0 transition-transform", [t.value ? "translate-x-4" : "translate-x-0"]])
588
588
  }, null, 2)
589
- ], 10, Ql));
589
+ ], 10, eo));
590
590
  }
591
- }), eo = ["id", "innerHTML"], ht = /* @__PURE__ */ U({
591
+ }), to = ["id", "innerHTML"], gt = /* @__PURE__ */ U({
592
592
  __name: "vs-input-static",
593
593
  props: {
594
594
  text: { default: "" },
@@ -606,9 +606,9 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
606
606
  id: e.name,
607
607
  class: E(["text-gray-900", e.customClass]),
608
608
  innerHTML: e.html ? e.html : e.text
609
- }, null, 10, eo));
609
+ }, null, 10, to));
610
610
  }
611
- }), to = ["placeholder", "disabled", "name"], lo = /* @__PURE__ */ U({
611
+ }), lo = ["placeholder", "disabled", "name"], oo = /* @__PURE__ */ U({
612
612
  __name: "vs-input-mask",
613
613
  props: /* @__PURE__ */ ie({
614
614
  name: {},
@@ -626,7 +626,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
626
626
  }),
627
627
  emits: ["update:modelValue"],
628
628
  setup(o) {
629
- const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue"), n = k(null);
629
+ const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue"), n = w(null);
630
630
  let s = null;
631
631
  return _e(async () => {
632
632
  if (n.value) {
@@ -669,9 +669,9 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
669
669
  style: {
670
670
  border: "1px solid #CFD9E0"
671
671
  }
672
- }, null, 10, to));
672
+ }, null, 10, lo));
673
673
  }
674
- }), oo = { class: "relative w-full bg-white rounded-lg" }, no = ["placeholder", "disabled"], ao = /* @__PURE__ */ U({
674
+ }), no = { class: "relative w-full bg-white rounded-lg" }, ao = ["placeholder", "disabled"], so = /* @__PURE__ */ U({
675
675
  __name: "vs-input-email",
676
676
  props: /* @__PURE__ */ ie({
677
677
  style: { default: () => ({}) },
@@ -688,7 +688,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
688
688
  emits: ["update:modelValue"],
689
689
  setup(o) {
690
690
  const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue");
691
- return (n, s) => (i(), d("div", oo, [
691
+ return (n, s) => (i(), d("div", no, [
692
692
  s[1] || (s[1] = ye('<div class="absolute bottom-2/4 translate-y-2/4 left-[10px] cursor-pointer"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="stroke-gray-500 transition-all"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M3 7a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v10a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-10z"></path><path d="M3 7l9 6l9 -6"></path></svg></div>', 1)),
693
693
  ae(l("input", {
694
694
  type: "email",
@@ -699,12 +699,12 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
699
699
  style: {
700
700
  border: "1px solid #CFD9E0"
701
701
  }
702
- }, null, 10, no), [
702
+ }, null, 10, ao), [
703
703
  [ve, a.value]
704
704
  ])
705
705
  ]));
706
706
  }
707
- }), so = ["value", "disabled"], ro = { class: "text-[13px] text-gray-700" }, io = /* @__PURE__ */ U({
707
+ }), ro = ["value", "disabled"], io = { class: "text-[13px] text-gray-700" }, uo = /* @__PURE__ */ U({
708
708
  __name: "vs-input-radio-default",
709
709
  props: /* @__PURE__ */ ie({
710
710
  style: {},
@@ -732,8 +732,8 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
732
732
  value: t.value,
733
733
  disabled: t.disabled,
734
734
  class: "hidden"
735
- }, null, 8, so), [
736
- [Vt, e.value]
735
+ }, null, 8, ro), [
736
+ [Mt, e.value]
737
737
  ]),
738
738
  l("span", {
739
739
  class: E(["w-[16px] shrink-0 h-[16px] border rounded-full flex items-center justify-center mr-[10px]", [
@@ -746,10 +746,10 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
746
746
  class: E(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
747
747
  }, null, 2)) : D("", !0)
748
748
  ], 2),
749
- l("span", ro, G(t.text), 1)
749
+ l("span", io, G(t.text), 1)
750
750
  ], 2));
751
751
  }
752
- }), uo = ["value", "disabled"], co = { class: "text-[13px] text-gray-700" }, po = /* @__PURE__ */ U({
752
+ }), co = ["value", "disabled"], po = { class: "text-[13px] text-gray-700" }, fo = /* @__PURE__ */ U({
753
753
  __name: "vs-input-radio-buttons",
754
754
  props: /* @__PURE__ */ ie({
755
755
  style: {},
@@ -780,16 +780,16 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
780
780
  value: t.value,
781
781
  disabled: t.disabled,
782
782
  class: "hidden"
783
- }, null, 8, uo), [
784
- [Vt, e.value]
783
+ }, null, 8, co), [
784
+ [Mt, e.value]
785
785
  ]),
786
- l("span", co, G(t.text), 1)
786
+ l("span", po, G(t.text), 1)
787
787
  ], 2));
788
788
  }
789
- }), fo = {
790
- "vs-input-radio-default": io,
791
- "vs-input-radio-buttons": po
792
- }, gt = /* @__PURE__ */ U({
789
+ }), mo = {
790
+ "vs-input-radio-default": uo,
791
+ "vs-input-radio-buttons": fo
792
+ }, bt = /* @__PURE__ */ U({
793
793
  __name: "vs-input-radio",
794
794
  props: /* @__PURE__ */ ie({
795
795
  options: {},
@@ -808,7 +808,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
808
808
  }),
809
809
  emits: ["update:modelValue"],
810
810
  setup(o) {
811
- const e = o, t = de(o, "modelValue"), a = B(() => fo[`vs-input-radio-${e.view}`]);
811
+ const e = o, t = de(o, "modelValue"), a = B(() => mo[`vs-input-radio-${e.view}`]);
812
812
  return (n, s) => (i(), d("div", {
813
813
  class: E([n.position === "horizontal" ? "flex items-center flex-wrap gap-2" : ""])
814
814
  }, [
@@ -822,7 +822,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
822
822
  }, { ref_for: !0 }, n.$attrs), null, 16, ["text", "value", "checked", "modelValue"]))), 128))
823
823
  ], 2));
824
824
  }
825
- }), mo = /* @__PURE__ */ U({
825
+ }), vo = /* @__PURE__ */ U({
826
826
  __name: "vs-input-checkbox",
827
827
  props: {
828
828
  options: { default: () => [] },
@@ -841,7 +841,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
841
841
  },
842
842
  emits: ["update:modelValue"],
843
843
  setup(o, { emit: e }) {
844
- const t = o, a = e, n = k([]), s = Nt({}), r = (f) => f?.value || f?.id || f?.text || f, u = (f) => f.text || String(f), c = (f) => `lg:col-span-${f || 12}`, p = async () => {
844
+ const t = o, a = e, n = w([]), s = qt({}), r = (f) => f?.value || f?.id || f?.text || f, u = (f) => f.text || String(f), c = (f) => `lg:col-span-${f || 12}`, p = async () => {
845
845
  try {
846
846
  const f = await fetch(`/api/suggest/${t.data}`).then((m) => m.json());
847
847
  n.value = f?.data || f;
@@ -908,7 +908,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
908
908
  }), (f, m) => (i(), d("div", {
909
909
  class: E(["p-0 w-full gap-[6px]", [f.position === "vertical" ? "flex-col" : "", f.colSpan ? "grid" : "flex justify-start"]])
910
910
  }, [
911
- (i(!0), d(re, null, fe(n.value, (y) => (i(), me(St, {
911
+ (i(!0), d(re, null, fe(n.value, (y) => (i(), me(Bt, {
912
912
  modelValue: s[r(y)],
913
913
  "onUpdate:modelValue": (S) => s[r(y)] = S,
914
914
  value: r(y),
@@ -923,7 +923,7 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
923
923
  }, null, 8, ["modelValue", "onUpdate:modelValue", "value", "class", "disabled", "label", "icon", "imgUrl", "option", "view"]))), 128))
924
924
  ], 2));
925
925
  }
926
- }), vo = /* @__PURE__ */ X(mo, [["__scopeId", "data-v-91f3584a"]]), ho = ["type", "placeholder", "disabled"], go = /* @__PURE__ */ U({
926
+ }), ho = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-91f3584a"]]), go = ["type", "placeholder", "disabled"], bo = /* @__PURE__ */ U({
927
927
  __name: "vs-input-date1",
928
928
  props: {
929
929
  style: { default: () => ({}) },
@@ -955,11 +955,11 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
955
955
  style: {
956
956
  border: "1px solid #CFD9E0"
957
957
  }
958
- }, null, 10, ho)), [
959
- [qt, r.value]
958
+ }, null, 10, go)), [
959
+ [Wt, r.value]
960
960
  ]);
961
961
  }
962
- }), bt = async (o, e, t, a) => {
962
+ }), yt = async (o, e, t, a) => {
963
963
  try {
964
964
  const n = new FormData();
965
965
  return n.append("unique", "true"), n.append("file", o), (await fetch(
@@ -977,20 +977,20 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
977
977
  position: "right-bottom"
978
978
  }), console.error("Сталась помилка завантаження файлу", n), null;
979
979
  }
980
- }, bo = async (o) => {
980
+ }, yo = async (o) => {
981
981
  try {
982
982
  return await fetch(`file/delete${o}`), !0;
983
983
  } catch (e) {
984
984
  return console.error(e), !1;
985
985
  }
986
- }, yt = async (o) => {
986
+ }, xt = async (o) => {
987
987
  try {
988
988
  const e = await fetch(`file/download/files/uploads${o}`), t = await e.arrayBuffer(), a = e.headers["content-type"], n = new TextDecoder("utf-8").decode(t), s = new Blob([n], { type: a }), r = document.createElement("a");
989
989
  r.setAttribute("download", o), r.href = window.URL.createObjectURL(s), r.click();
990
990
  } catch (e) {
991
991
  console.error(e.message);
992
992
  }
993
- }, yo = {}, xo = {
993
+ }, xo = {}, wo = {
994
994
  xmlns: "http://www.w3.org/2000/svg",
995
995
  width: "24",
996
996
  height: "24",
@@ -1001,13 +1001,13 @@ const Kl = /* @__PURE__ */ X(Wl, [["render", Zl]]), Jl = {
1001
1001
  "stroke-linecap": "round",
1002
1002
  "stroke-linejoin": "round"
1003
1003
  };
1004
- function wo(o, e) {
1005
- return i(), d("svg", xo, e[0] || (e[0] = [
1004
+ function ko(o, e) {
1005
+ return i(), d("svg", wo, e[0] || (e[0] = [
1006
1006
  l("path", { d: "M5 12h14" }, null, -1),
1007
1007
  l("path", { d: "M12 5v14" }, null, -1)
1008
1008
  ]));
1009
1009
  }
1010
- const qe = /* @__PURE__ */ X(yo, [["render", wo]]), ko = {}, _o = {
1010
+ const qe = /* @__PURE__ */ X(xo, [["render", ko]]), _o = {}, $o = {
1011
1011
  xmlns: "http://www.w3.org/2000/svg",
1012
1012
  class: "icon icon-tabler icon-tabler-file-text",
1013
1013
  width: "44",
@@ -1019,12 +1019,12 @@ const qe = /* @__PURE__ */ X(yo, [["render", wo]]), ko = {}, _o = {
1019
1019
  "stroke-linecap": "round",
1020
1020
  "stroke-linejoin": "round"
1021
1021
  };
1022
- function $o(o, e, t, a, n, s) {
1023
- return i(), d("svg", _o, e[0] || (e[0] = [
1022
+ function Co(o, e, t, a, n, s) {
1023
+ return i(), d("svg", $o, e[0] || (e[0] = [
1024
1024
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><line x1="9" y1="9" x2="10" y2="9"></line><line x1="9" y1="13" x2="15" y2="13"></line><line x1="9" y1="17" x2="15" y2="17"></line>', 6)
1025
1025
  ]));
1026
1026
  }
1027
- const Co = /* @__PURE__ */ X(ko, [["render", $o]]), Vo = {}, Mo = {
1027
+ const Vo = /* @__PURE__ */ X(_o, [["render", Co]]), Mo = {}, Lo = {
1028
1028
  xmlns: "http://www.w3.org/2000/svg",
1029
1029
  class: "icon icon-tabler icon-tabler-table",
1030
1030
  width: "44",
@@ -1036,8 +1036,8 @@ const Co = /* @__PURE__ */ X(ko, [["render", $o]]), Vo = {}, Mo = {
1036
1036
  "stroke-linecap": "round",
1037
1037
  "stroke-linejoin": "round"
1038
1038
  };
1039
- function Lo(o, e, t, a, n, s) {
1040
- return i(), d("svg", Mo, e[0] || (e[0] = [
1039
+ function So(o, e, t, a, n, s) {
1040
+ return i(), d("svg", Lo, e[0] || (e[0] = [
1041
1041
  l("path", {
1042
1042
  stroke: "none",
1043
1043
  d: "M0 0h24v24H0z",
@@ -1064,7 +1064,7 @@ function Lo(o, e, t, a, n, s) {
1064
1064
  }, null, -1)
1065
1065
  ]));
1066
1066
  }
1067
- const So = /* @__PURE__ */ X(Vo, [["render", Lo]]), Bo = {}, jo = {
1067
+ const Bo = /* @__PURE__ */ X(Mo, [["render", So]]), jo = {}, Eo = {
1068
1068
  xmlns: "http://www.w3.org/2000/svg",
1069
1069
  width: "24",
1070
1070
  height: "24",
@@ -1075,12 +1075,12 @@ const So = /* @__PURE__ */ X(Vo, [["render", Lo]]), Bo = {}, jo = {
1075
1075
  "stroke-linecap": "round",
1076
1076
  "stroke-linejoin": "round"
1077
1077
  };
1078
- function Eo(o, e) {
1079
- return i(), d("svg", jo, e[0] || (e[0] = [
1078
+ function Io(o, e) {
1079
+ return i(), d("svg", Eo, e[0] || (e[0] = [
1080
1080
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M9 9l1 0"></path><path d="M9 13l6 0"></path><path d="M9 17l6 0"></path>', 6)
1081
1081
  ]));
1082
1082
  }
1083
- const jt = /* @__PURE__ */ X(Bo, [["render", Eo]]), Io = {}, zo = {
1083
+ const Et = /* @__PURE__ */ X(jo, [["render", Io]]), zo = {}, Ao = {
1084
1084
  xmlns: "http://www.w3.org/2000/svg",
1085
1085
  class: "icon icon-tabler icon-tabler-file-zip",
1086
1086
  width: "44",
@@ -1092,12 +1092,12 @@ const jt = /* @__PURE__ */ X(Bo, [["render", Eo]]), Io = {}, zo = {
1092
1092
  "stroke-linecap": "round",
1093
1093
  "stroke-linejoin": "round"
1094
1094
  };
1095
- function Ao(o, e, t, a, n, s) {
1096
- return i(), d("svg", zo, e[0] || (e[0] = [
1095
+ function To(o, e, t, a, n, s) {
1096
+ return i(), d("svg", Ao, e[0] || (e[0] = [
1097
1097
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M6 20.735a2 2 0 0 1 -1 -1.735v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-1"></path><path d="M11 17a2 2 0 0 1 2 2v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1v-2a2 2 0 0 1 2 -2z"></path><line x1="11" y1="5" x2="10" y2="5"></line><line x1="13" y1="7" x2="12" y2="7"></line><line x1="11" y1="9" x2="10" y2="9"></line><line x1="13" y1="11" x2="12" y2="11"></line><line x1="11" y1="13" x2="10" y2="13"></line><line x1="13" y1="15" x2="12" y2="15"></line>', 9)
1098
1098
  ]));
1099
1099
  }
1100
- const To = /* @__PURE__ */ X(Io, [["render", Ao]]), Fo = {}, Oo = {
1100
+ const Fo = /* @__PURE__ */ X(zo, [["render", To]]), Oo = {}, Do = {
1101
1101
  xmlns: "http://www.w3.org/2000/svg",
1102
1102
  class: "icon icon-tabler icon-tabler-file-code",
1103
1103
  width: "44",
@@ -1109,25 +1109,25 @@ const To = /* @__PURE__ */ X(Io, [["render", Ao]]), Fo = {}, Oo = {
1109
1109
  "stroke-linecap": "round",
1110
1110
  "stroke-linejoin": "round"
1111
1111
  };
1112
- function Do(o, e, t, a, n, s) {
1113
- return i(), d("svg", Oo, e[0] || (e[0] = [
1112
+ function Uo(o, e, t, a, n, s) {
1113
+ return i(), d("svg", Do, e[0] || (e[0] = [
1114
1114
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path><path d="M10 13l-1 2l1 2"></path><path d="M14 13l1 2l-1 2"></path>', 5)
1115
1115
  ]));
1116
1116
  }
1117
- const Uo = /* @__PURE__ */ X(Fo, [["render", Do]]), Po = (o) => {
1117
+ const Po = /* @__PURE__ */ X(Oo, [["render", Uo]]), Ro = (o) => {
1118
1118
  if (!o) return "";
1119
1119
  const e = o?.split(".");
1120
1120
  return e[e.length - 1];
1121
- }, Ro = (o) => {
1122
- const e = Po(o), t = {
1121
+ }, Ho = (o) => {
1122
+ const e = Ro(o), t = {
1123
1123
  imageFormat: ["tiff", "jpg", "jpeg", "png", "svg", "ico", "webp"],
1124
1124
  sheetsFormat: ["xls", "csv", "xlsx"],
1125
1125
  archivesFormat: ["zip", "rar"],
1126
1126
  textsFormat: ["json", "geojson", "txt", "yml", "yaml", "shp"],
1127
1127
  documentsFormat: ["pdf"]
1128
1128
  };
1129
- return t.imageFormat.includes(e) ? "img" : t.sheetsFormat.includes(e) ? So : t.textsFormat.includes(e) ? Uo : t.documentsFormat.includes(e) ? Co : t.archivesFormat.includes(e) ? To : jt;
1130
- }, Ho = {}, No = {
1129
+ return t.imageFormat.includes(e) ? "img" : t.sheetsFormat.includes(e) ? Bo : t.textsFormat.includes(e) ? Po : t.documentsFormat.includes(e) ? Vo : t.archivesFormat.includes(e) ? Fo : Et;
1130
+ }, No = {}, qo = {
1131
1131
  xmlns: "http://www.w3.org/2000/svg",
1132
1132
  width: "24",
1133
1133
  height: "24",
@@ -1139,12 +1139,12 @@ const Uo = /* @__PURE__ */ X(Fo, [["render", Do]]), Po = (o) => {
1139
1139
  "stroke-linejoin": "round",
1140
1140
  class: "icon icon-tabler icons-tabler-outline icon-tabler-trash"
1141
1141
  };
1142
- function qo(o, e) {
1143
- return i(), d("svg", No, e[0] || (e[0] = [
1142
+ function Wo(o, e) {
1143
+ return i(), d("svg", qo, e[0] || (e[0] = [
1144
1144
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M4 7l16 0"></path><path d="M10 11l0 6"></path><path d="M14 11l0 6"></path><path d="M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12"></path><path d="M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3"></path>', 6)
1145
1145
  ]));
1146
1146
  }
1147
- const et = /* @__PURE__ */ X(Ho, [["render", qo]]), Wo = {}, Go = {
1147
+ const et = /* @__PURE__ */ X(No, [["render", Wo]]), Go = {}, Zo = {
1148
1148
  xmlns: "http://www.w3.org/2000/svg",
1149
1149
  width: "24",
1150
1150
  height: "24",
@@ -1156,8 +1156,8 @@ const et = /* @__PURE__ */ X(Ho, [["render", qo]]), Wo = {}, Go = {
1156
1156
  "stroke-linejoin": "round",
1157
1157
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
1158
1158
  };
1159
- function Zo(o, e) {
1160
- return i(), d("svg", Go, e[0] || (e[0] = [
1159
+ function Ko(o, e) {
1160
+ return i(), d("svg", Zo, e[0] || (e[0] = [
1161
1161
  l("path", {
1162
1162
  stroke: "none",
1163
1163
  d: "M0 0h24v24H0z",
@@ -1168,7 +1168,7 @@ function Zo(o, e) {
1168
1168
  l("path", { d: "M12 4l0 12" }, null, -1)
1169
1169
  ]));
1170
1170
  }
1171
- const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file" }, Jo = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, Yo = /* @__PURE__ */ U({
1171
+ const It = /* @__PURE__ */ X(Go, [["render", Ko]]), Jo = { class: "h-[120px] w-[120px] border text-gray-300 border-dashed border-[#CFD9E0] rounded-lg overflow-hidden relative item-file" }, Yo = { class: "absolute hidden top-0 right-0 flex items-center gap-x-2 w-full h-full justify-center" }, Xo = /* @__PURE__ */ U({
1172
1172
  __name: "vs-input-file-list-item",
1173
1173
  props: /* @__PURE__ */ ie({
1174
1174
  format: {},
@@ -1189,18 +1189,18 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1189
1189
  emits: ["update:value", "update:item"],
1190
1190
  setup(o) {
1191
1191
  const e = de(o, "value"), t = de(o, "item"), a = o;
1192
- return (n, s) => (i(), d("div", Ko, [
1193
- (i(), me(Fe(ee(Ro)(t.value)), {
1192
+ return (n, s) => (i(), d("div", Jo, [
1193
+ (i(), me(Fe(ee(Ho)(t.value)), {
1194
1194
  src: t.value,
1195
1195
  alt: "file",
1196
1196
  class: "w-full h-full object-cover cursor-pointer",
1197
- onClick: s[0] || (s[0] = (r) => ee(yt)(t.value))
1197
+ onClick: s[0] || (s[0] = (r) => ee(xt)(t.value))
1198
1198
  }, null, 8, ["src"])),
1199
- l("div", Jo, [
1199
+ l("div", Yo, [
1200
1200
  l("button", {
1201
1201
  type: "button",
1202
1202
  onClick: s[1] || (s[1] = (r) => {
1203
- ee(bo)(t.value), e.value = a.multiple ? e.value?.filter((u) => u !== t.value) : "";
1203
+ ee(yo)(t.value), e.value = a.multiple ? e.value?.filter((u) => u !== t.value) : "";
1204
1204
  }),
1205
1205
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-red-500"
1206
1206
  }, [
@@ -1208,18 +1208,18 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1208
1208
  ]),
1209
1209
  l("button", {
1210
1210
  type: "button",
1211
- onClick: s[2] || (s[2] = (r) => ee(yt)(t.value)),
1211
+ onClick: s[2] || (s[2] = (r) => ee(xt)(t.value)),
1212
1212
  class: "w-6 h-6 flex items-center justify-center text-gray-500 bg-gray-200 rounded-lg hover:text-blue-500"
1213
1213
  }, [
1214
- A(Et, { class: "w-4 h-4" })
1214
+ A(It, { class: "w-4 h-4" })
1215
1215
  ])
1216
1216
  ])
1217
1217
  ]));
1218
1218
  }
1219
- }), xt = /* @__PURE__ */ X(Yo, [["__scopeId", "data-v-0ca886b3"]]), Xo = { class: "flex items-center gap-x-2" }, Qo = ["multiple"], en = {
1219
+ }), wt = /* @__PURE__ */ X(Xo, [["__scopeId", "data-v-0ca886b3"]]), Qo = { class: "flex items-center gap-x-2" }, en = ["multiple"], tn = {
1220
1220
  key: 1,
1221
1221
  class: "flex items-center flex-wrap gap-2"
1222
- }, tn = /* @__PURE__ */ U({
1222
+ }, ln = /* @__PURE__ */ U({
1223
1223
  __name: "vs-input-file",
1224
1224
  props: /* @__PURE__ */ ie({
1225
1225
  format: {},
@@ -1237,21 +1237,21 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1237
1237
  }),
1238
1238
  emits: /* @__PURE__ */ ie(["change"], ["update:modelValue"]),
1239
1239
  setup(o, { emit: e }) {
1240
- const t = o, a = de(o, "modelValue"), n = e, s = k(null), r = (c) => Array.isArray(a.value) && a.value[c] || "", u = async (c) => {
1240
+ const t = o, a = de(o, "modelValue"), n = e, s = w(null), r = (c) => Array.isArray(a.value) && a.value[c] || "", u = async (c) => {
1241
1241
  const { files: p } = c.target;
1242
1242
  if (!(!p || p.length === 0))
1243
1243
  if (t.multiple) {
1244
- const f = Array.from(p).map(async (q) => t.format && !q.name.endsWith(t.format) ? null : await bt(q, "1", "form", "table")), S = (await Promise.all(f)).filter((q) => q !== null).map((q) => q?.file_path).filter(Boolean);
1244
+ const f = Array.from(p).map(async (q) => t.format && !q.name.endsWith(t.format) ? null : await yt(q, "1", "form", "table")), S = (await Promise.all(f)).filter((q) => q !== null).map((q) => q?.file_path).filter(Boolean);
1245
1245
  a.value = [...a.value || [], ...S], n("change", a.value);
1246
1246
  } else {
1247
1247
  const f = p[0];
1248
1248
  if (t.format && !f.name.endsWith(t.format))
1249
1249
  return;
1250
- const m = await bt(f, "1", "form", "table");
1250
+ const m = await yt(f, "1", "form", "table");
1251
1251
  a.value = m?.file_path, n("change", a.value || "");
1252
1252
  }
1253
1253
  };
1254
- return (c, p) => (i(), d("div", Xo, [
1254
+ return (c, p) => (i(), d("div", Qo, [
1255
1255
  l("input", {
1256
1256
  class: "hidden",
1257
1257
  ref_key: "fileInput",
@@ -1259,15 +1259,15 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1259
1259
  type: "file",
1260
1260
  multiple: c.multiple,
1261
1261
  onChange: u
1262
- }, null, 40, Qo),
1263
- !c.multiple && a.value ? (i(), me(xt, {
1262
+ }, null, 40, en),
1263
+ !c.multiple && a.value ? (i(), me(wt, {
1264
1264
  key: 0,
1265
1265
  item: a.value,
1266
1266
  "onUpdate:item": p[0] || (p[0] = (f) => a.value = f),
1267
1267
  value: a.value,
1268
1268
  "onUpdate:value": p[1] || (p[1] = (f) => a.value = f)
1269
- }, null, 8, ["item", "value"])) : c.multiple ? (i(), d("div", en, [
1270
- (i(!0), d(re, null, fe(a.value, (f, m) => (i(), me(xt, {
1269
+ }, null, 8, ["item", "value"])) : c.multiple ? (i(), d("div", tn, [
1270
+ (i(!0), d(re, null, fe(a.value, (f, m) => (i(), me(wt, {
1271
1271
  multiple: c.multiple,
1272
1272
  key: m,
1273
1273
  value: a.value,
@@ -1293,7 +1293,7 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1293
1293
  ], 2))
1294
1294
  ]));
1295
1295
  }
1296
- }), ln = { class: "max-w-[55vw]" }, on = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, nn = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, an = { class: "px-[5px]" }, sn = { class: "" }, Je = /* @__PURE__ */ U({
1296
+ }), on = { class: "max-w-[55vw]" }, nn = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, an = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, sn = { class: "px-[5px]" }, rn = { class: "" }, Je = /* @__PURE__ */ U({
1297
1297
  __name: "vs-widget-file-info",
1298
1298
  props: {
1299
1299
  item: { default: null }
@@ -1318,33 +1318,33 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1318
1318
  }
1319
1319
  return (n, s) => (i(), d(re, null, [
1320
1320
  s[1] || (s[1] = ye('<div class="flex items-center justify-center h-[30px] w-[30px]"><svg xmlns="http://www.w3.org/2000/svg" height="24" width="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icons-tabler-outline icon-tabler-file"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M14 3v4a1 1 0 0 0 1 1h4"></path><path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z"></path></svg></div>', 1)),
1321
- l("div", ln, [
1322
- l("p", on, G(n.item?.uploaded_name), 1),
1323
- l("p", nn, [
1321
+ l("div", on, [
1322
+ l("p", nn, G(n.item?.uploaded_name), 1),
1323
+ l("p", an, [
1324
1324
  l("span", null, G(n.item?.username), 1),
1325
- ae(l("span", an, "|", 512), [
1325
+ ae(l("span", sn, "|", 512), [
1326
1326
  [Qe, n.item?.username]
1327
1327
  ]),
1328
1328
  l("span", null, G(t.value), 1),
1329
1329
  s[0] || (s[0] = l("span", { class: "px-[5px]" }, "|", -1)),
1330
- l("span", sn, G(a(n.item?.size)), 1)
1330
+ l("span", rn, G(a(n.item?.size)), 1)
1331
1331
  ])
1332
1332
  ])
1333
1333
  ], 64));
1334
1334
  }
1335
- }), rn = { class: "p-3 relative group flex items-center gap-x-3 border border-gray-200 bg-white rounded-md w-full" }, un = {
1335
+ }), un = { class: "p-3 relative group flex items-center gap-x-3 border border-gray-200 bg-white rounded-md w-full" }, dn = {
1336
1336
  key: 0,
1337
1337
  class: "flex w-full gap-x-3 items-center"
1338
- }, dn = {
1338
+ }, cn = {
1339
1339
  key: 1,
1340
1340
  class: "flex gap-x-3 w-full items-center"
1341
- }, cn = {
1341
+ }, pn = {
1342
1342
  key: 2,
1343
1343
  class: "flex gap-x-3 w-full items-center"
1344
- }, pn = ["href"], fn = {
1344
+ }, fn = ["href"], mn = {
1345
1345
  key: 3,
1346
1346
  class: "flex gap-x-3 w-full items-center"
1347
- }, mn = { class: "lg:absolute lg:top-3 lg:end-1 opacity-100" }, vn = { class: "p-0.5 sm:p-1 inline-flex items-center gap-0.5 bg-white rounded-lg dark:bg-neutral-800 dark:border-neutral-700" }, hn = { class: "inline-block" }, gn = { class: "inline-block" }, bn = /* @__PURE__ */ U({
1347
+ }, vn = { class: "lg:absolute lg:top-3 lg:end-1 opacity-100" }, hn = { class: "p-0.5 sm:p-1 inline-flex items-center gap-0.5 bg-white rounded-lg dark:bg-neutral-800 dark:border-neutral-700" }, gn = { class: "inline-block" }, bn = { class: "inline-block" }, yn = /* @__PURE__ */ U({
1348
1348
  __name: "vs-widget-file-item",
1349
1349
  props: {
1350
1350
  item: { default: null },
@@ -1386,42 +1386,42 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1386
1386
  function p(f) {
1387
1387
  (t.item.ext === "jpg" || t.item.ext === "png") && a("openLightbox", { item: t.item, index: f });
1388
1388
  }
1389
- return (f, m) => (i(), d("div", rn, [
1390
- f.item.ext === "jpg" || f.item.ext === "png" ? (i(), d("div", un, [
1389
+ return (f, m) => (i(), d("div", un, [
1390
+ f.item.ext === "jpg" || f.item.ext === "png" ? (i(), d("div", dn, [
1391
1391
  l("div", {
1392
1392
  class: "max-w-[55vw] cursor-pointer flex gap-x-3 w-full items-center",
1393
1393
  onClick: m[0] || (m[0] = (y) => p(f.index))
1394
1394
  }, [
1395
1395
  A(Je, { item: f.item }, null, 8, ["item"])
1396
1396
  ])
1397
- ])) : n(f.item) ? (i(), d("div", dn, [
1397
+ ])) : n(f.item) ? (i(), d("div", cn, [
1398
1398
  A(Je, { item: f.item }, null, 8, ["item"])
1399
- ])) : s(f.item) ? (i(), d("div", cn, [
1399
+ ])) : s(f.item) ? (i(), d("div", pn, [
1400
1400
  l("a", {
1401
1401
  href: `/api/file-preview?id=${f.item.file_id}`,
1402
1402
  target: "_blank",
1403
1403
  class: "flex gap-x-3 w-full items-center"
1404
1404
  }, [
1405
1405
  A(Je, { item: f.item }, null, 8, ["item"])
1406
- ], 8, pn)
1407
- ])) : (i(), d("div", fn, [
1406
+ ], 8, fn)
1407
+ ])) : (i(), d("div", mn, [
1408
1408
  A(Je, { item: f.item }, null, 8, ["item"])
1409
1409
  ])),
1410
- l("div", mn, [
1411
- l("div", vn, [
1412
- l("div", hn, [
1410
+ l("div", vn, [
1411
+ l("div", hn, [
1412
+ l("div", gn, [
1413
1413
  l("button", {
1414
1414
  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",
1415
1415
  onClick: m[1] || (m[1] = (y) => r(f.item))
1416
1416
  }, [
1417
- A(Et, {
1417
+ A(It, {
1418
1418
  height: "14",
1419
1419
  width: "14"
1420
1420
  })
1421
1421
  ])
1422
1422
  ]),
1423
1423
  m[3] || (m[3] = l("div", { class: "w-px h-5 mx-1 bg-gray-200 dark:bg-neutral-700" }, null, -1)),
1424
- l("div", gn, [
1424
+ l("div", bn, [
1425
1425
  l("button", {
1426
1426
  type: "button",
1427
1427
  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",
@@ -1437,7 +1437,7 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1437
1437
  ])
1438
1438
  ]));
1439
1439
  }
1440
- }), yn = {}, xn = {
1440
+ }), xn = {}, wn = {
1441
1441
  xmlns: "http://www.w3.org/2000/svg",
1442
1442
  width: "24",
1443
1443
  height: "24",
@@ -1449,8 +1449,8 @@ const Et = /* @__PURE__ */ X(Wo, [["render", Zo]]), Ko = { class: "h-[120px] w-[
1449
1449
  "stroke-linejoin": "round",
1450
1450
  class: "icon icon-tabler icons-tabler-outline icon-tabler-download"
1451
1451
  };
1452
- function wn(o, e) {
1453
- return i(), d("svg", xn, e[0] || (e[0] = [
1452
+ function kn(o, e) {
1453
+ return i(), d("svg", wn, e[0] || (e[0] = [
1454
1454
  l("path", {
1455
1455
  stroke: "none",
1456
1456
  d: "M0 0h24v24H0z",
@@ -1461,13 +1461,13 @@ function wn(o, e) {
1461
1461
  l("path", { d: "M12 4l0 12" }, null, -1)
1462
1462
  ]));
1463
1463
  }
1464
- const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col widget-file xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700 w-full" }, $n = { class: "flex w-full mb-[12px] items-center gap-x-2" }, Cn = { class: "font-semibold text-gray-800 dark:text-neutral-200 text-[14px]" }, Vn = { class1: "ml-auto" }, Mn = { class: "py-1.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 cursor-pointer hover:bg-gray-200 text-gray-800 shadow-2xs hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Ln = {
1464
+ const _n = /* @__PURE__ */ X(xn, [["render", kn]]), $n = { class: "flex flex-col widget-file xl:bg-white xl:rounded-xl dark:xl:bg-neutral-800 dark:xl:border-neutral-700 w-full" }, Cn = { class: "flex w-full mb-[12px] items-center gap-x-2" }, Vn = { class: "font-semibold text-gray-800 dark:text-neutral-200 text-[14px]" }, Mn = { class1: "ml-auto" }, Ln = { class: "py-1.5 px-4 inline-flex items-center gap-x-2 text-sm font-medium rounded-lg bg-gray-100 cursor-pointer hover:bg-gray-200 text-gray-800 shadow-2xs hover:bg-gray-50 focus:outline-hidden focus:bg-gray-50 disabled:opacity-50 disabled:pointer-events-none dark:bg-neutral-800 dark:border-neutral-700 dark:text-white dark:hover:bg-neutral-700 dark:focus:bg-neutral-700" }, Sn = {
1465
1465
  key: 0,
1466
1466
  class: "py-4 mb-4 space-y-4 border-gray-200 border-y dark:border-neutral-700"
1467
- }, Sn = { class: "relative" }, Bn = {
1467
+ }, Bn = { class: "relative" }, jn = {
1468
1468
  key: 1,
1469
1469
  class: "space-y-3 max-h-[300px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500"
1470
- }, jn = { key: 0 }, En = /* @__PURE__ */ U({
1470
+ }, En = { key: 0 }, In = /* @__PURE__ */ U({
1471
1471
  __name: "vs-input-file-list",
1472
1472
  props: {
1473
1473
  id: { default: "" },
@@ -1482,7 +1482,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1482
1482
  },
1483
1483
  emits: ["update"],
1484
1484
  setup(o, { emit: e }) {
1485
- const t = o, a = Ae("form"), n = B(() => a.value.formId), s = k(!1), r = k(0), u = e, c = k(!1), p = k({}), f = k([]), m = k(""), y = B(() => Array.isArray(f.value) ? f.value.filter((I) => I.ext === "jpg" || I.ext === "png").map((I) => I?.file_path) : []), S = B(() => m.value === "" ? f.value : f.value.filter((I) => I?.uploaded_name?.includes(m.value))), q = (I) => {
1485
+ const t = o, a = Ae("form"), n = B(() => a.value.formId), s = w(!1), r = w(0), u = e, c = w(!1), p = w({}), f = w([]), m = w(""), y = B(() => Array.isArray(f.value) ? f.value.filter((I) => I.ext === "jpg" || I.ext === "png").map((I) => I?.file_path) : []), S = B(() => m.value === "" ? f.value : f.value.filter((I) => I?.uploaded_name?.includes(m.value))), q = (I) => {
1486
1486
  const v = y.value.findIndex((x) => x === I.item.file_path);
1487
1487
  v !== -1 && (s.value = !0, r.value = v);
1488
1488
  }, R = async () => {
@@ -1528,19 +1528,19 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1528
1528
  }), _e(() => {
1529
1529
  n.value && R();
1530
1530
  }), (I, v) => {
1531
- const x = mt("Lightbox"), V = mt("MessageBox");
1532
- return i(), d("div", _n, [
1533
- l("div", $n, [
1534
- l("h2", Cn, " Файлів: " + G(f.value?.length), 1),
1535
- l("div", Vn, [
1531
+ const x = vt("Lightbox"), V = vt("MessageBox");
1532
+ return i(), d("div", $n, [
1533
+ l("div", Cn, [
1534
+ l("h2", Vn, " Файлів: " + G(f.value?.length), 1),
1535
+ l("div", Mn, [
1536
1536
  l("label", null, [
1537
1537
  l("input", {
1538
1538
  type: "file",
1539
1539
  class: "hidden",
1540
1540
  onChange: v[0] || (v[0] = ($) => K($))
1541
1541
  }, null, 32),
1542
- l("div", Mn, [
1543
- A(kn, {
1542
+ l("div", Ln, [
1543
+ A(_n, {
1544
1544
  height: "16",
1545
1545
  width: "16"
1546
1546
  })
@@ -1548,9 +1548,9 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1548
1548
  ])
1549
1549
  ])
1550
1550
  ]),
1551
- f.value?.length > 4 ? (i(), d("div", Ln, [
1551
+ f.value?.length > 4 ? (i(), d("div", Sn, [
1552
1552
  l("div", null, [
1553
- l("div", Sn, [
1553
+ l("div", Bn, [
1554
1554
  v[8] || (v[8] = l("div", { class: "absolute inset-y-0 start-0 flex items-center pointer-events-none z-[1] ps-3.5" }, [
1555
1555
  l("svg", {
1556
1556
  class: "flex-shrink-0 text-gray-500 size-4 dark:text-neutral-400",
@@ -1588,8 +1588,8 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1588
1588
  ])
1589
1589
  ])
1590
1590
  ])) : D("", !0),
1591
- f.value?.length ? (i(), d("div", Bn, [
1592
- (i(!0), d(re, null, fe(S.value, ($, F) => (i(), me(bn, {
1591
+ f.value?.length ? (i(), d("div", jn, [
1592
+ (i(!0), d(re, null, fe(S.value, ($, F) => (i(), me(yn, {
1593
1593
  key: F,
1594
1594
  prefix: I.prefix,
1595
1595
  item: $,
@@ -1598,7 +1598,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1598
1598
  onOpenModal: v[3] || (v[3] = (te) => H(te)),
1599
1599
  onOpenLightbox: v[4] || (v[4] = (te) => q(te))
1600
1600
  }, null, 8, ["prefix", "item", "index"]))), 128)),
1601
- S.value.length ? D("", !0) : (i(), d("div", jn, v[9] || (v[9] = [
1601
+ S.value.length ? D("", !0) : (i(), d("div", En, v[9] || (v[9] = [
1602
1602
  l("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
1603
1603
  ])))
1604
1604
  ])) : D("", !0),
@@ -1617,7 +1617,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1617
1617
  ]);
1618
1618
  };
1619
1619
  }
1620
- }), In = { class: "flex items-center justify-between" }, zn = { class: "text-[16px] text-gray-900 font-medium" }, An = { class: "grid gap-3" }, Tn = /* @__PURE__ */ U({
1620
+ }), zn = { class: "flex items-center justify-between" }, An = { class: "text-[16px] text-gray-900 font-medium" }, Tn = { class: "grid gap-3" }, Fn = /* @__PURE__ */ U({
1621
1621
  __name: "vs-container-switcher",
1622
1622
  props: {
1623
1623
  title: {
@@ -1634,16 +1634,16 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1634
1634
  }
1635
1635
  },
1636
1636
  setup(o) {
1637
- const e = o, t = k(e.isOpen);
1637
+ const e = o, t = w(e.isOpen);
1638
1638
  return ue(
1639
1639
  () => e.isOpen,
1640
1640
  (a) => {
1641
1641
  t.value = a;
1642
1642
  }
1643
1643
  ), (a, n) => (i(), d("div", null, [
1644
- l("div", In, [
1645
- l("p", zn, G(o.title), 1),
1646
- A(Bt, {
1644
+ l("div", zn, [
1645
+ l("p", An, G(o.title), 1),
1646
+ A(jt, {
1647
1647
  modelValue: t.value,
1648
1648
  "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
1649
1649
  style: be(o.style)
@@ -1651,7 +1651,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1651
1651
  ]),
1652
1652
  A(st, { name: "slide-fade" }, {
1653
1653
  default: Ee(() => [
1654
- ae(l("div", An, [
1654
+ ae(l("div", Tn, [
1655
1655
  Se(a.$slots, "default", {}, void 0, !0)
1656
1656
  ], 512), [
1657
1657
  [Qe, t.value]
@@ -1661,7 +1661,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1661
1661
  })
1662
1662
  ]));
1663
1663
  }
1664
- }), Fn = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-90320b87"]]), On = { class: "text-[16px] text-gray-900 font-medium" }, Dn = { class: "grid gap-3" }, Un = /* @__PURE__ */ U({
1664
+ }), On = /* @__PURE__ */ X(Fn, [["__scopeId", "data-v-90320b87"]]), Dn = { class: "text-[16px] text-gray-900 font-medium" }, Un = { class: "grid gap-3" }, Pn = /* @__PURE__ */ U({
1665
1665
  __name: "vs-container-accordion",
1666
1666
  props: {
1667
1667
  title: {
@@ -1678,7 +1678,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1678
1678
  }
1679
1679
  },
1680
1680
  setup(o) {
1681
- const e = o, t = k(e.isOpen);
1681
+ const e = o, t = w(e.isOpen);
1682
1682
  return ue(
1683
1683
  () => e.isOpen,
1684
1684
  (a) => {
@@ -1690,14 +1690,14 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1690
1690
  onClick: n[0] || (n[0] = (s) => t.value = !t.value),
1691
1691
  class: "flex items-center gap-2"
1692
1692
  }, [
1693
- A(ee(Pl), {
1693
+ A(ee(Rl), {
1694
1694
  class: E(["h-4 w-4 duration-300", [t.value ? "-rotate-180" : ""]])
1695
1695
  }, null, 8, ["class"]),
1696
- l("span", On, G(o.title), 1)
1696
+ l("span", Dn, G(o.title), 1)
1697
1697
  ]),
1698
1698
  A(st, { name: "slide-fade" }, {
1699
1699
  default: Ee(() => [
1700
- ae(l("div", Dn, [
1700
+ ae(l("div", Un, [
1701
1701
  Se(a.$slots, "default", {}, void 0, !0)
1702
1702
  ], 512), [
1703
1703
  [Qe, t.value]
@@ -1707,7 +1707,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1707
1707
  })
1708
1708
  ]));
1709
1709
  }
1710
- }), Pn = /* @__PURE__ */ X(Un, [["__scopeId", "data-v-590eff11"]]), Rn = { class: "flex items-center justify-between" }, Hn = /* @__PURE__ */ U({
1710
+ }), Rn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-590eff11"]]), Hn = { class: "flex items-center justify-between" }, Nn = /* @__PURE__ */ U({
1711
1711
  __name: "vs-container-default",
1712
1712
  props: {
1713
1713
  title: {
@@ -1721,16 +1721,16 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1721
1721
  },
1722
1722
  setup(o) {
1723
1723
  return (e, t) => (i(), d("div", null, [
1724
- l("div", Rn, [
1724
+ l("div", Hn, [
1725
1725
  l("p", null, G(o.title), 1)
1726
1726
  ]),
1727
1727
  Se(e.$slots, "default")
1728
1728
  ]));
1729
1729
  }
1730
- }), Nn = {
1731
- switcher: Fn,
1732
- accordion: Pn,
1733
- default: Hn
1730
+ }), qn = {
1731
+ switcher: On,
1732
+ accordion: Rn,
1733
+ default: Nn
1734
1734
  }, we = {
1735
1735
  Equal: "==",
1736
1736
  Inequal: "!=",
@@ -1744,37 +1744,37 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1744
1744
  Contain: "*",
1745
1745
  In: "in",
1746
1746
  NotIn: "not_in"
1747
- }, qn = (o, e) => String(o) === String(e), Wn = (o, e) => String(o) !== String(e), Gn = (o, e) => o > e, Zn = (o, e) => o >= e, Kn = (o, e) => o < e, Jn = (o, e) => o <= e, Yn = (o, e) => Array.isArray(e) && e.length === 2 ? o >= e[0] && o <= e[1] : !1, Xn = (o, e) => String(o).startsWith(String(e)), Qn = (o, e) => String(o).endsWith(String(e)), ea = (o, e) => String(o).includes(String(e)), ta = (o, e) => Array.isArray(e) ? e.includes(o) : !1, la = (o, e) => Array.isArray(e) ? !e.includes(o) : !0, It = (o, e) => {
1747
+ }, Wn = (o, e) => String(o) === String(e), Gn = (o, e) => String(o) !== String(e), Zn = (o, e) => o > e, Kn = (o, e) => o >= e, Jn = (o, e) => o < e, Yn = (o, e) => o <= e, Xn = (o, e) => Array.isArray(e) && e.length === 2 ? o >= e[0] && o <= e[1] : !1, Qn = (o, e) => String(o).startsWith(String(e)), ea = (o, e) => String(o).endsWith(String(e)), ta = (o, e) => String(o).includes(String(e)), la = (o, e) => Array.isArray(e) ? e.includes(o) : !1, oa = (o, e) => Array.isArray(e) ? !e.includes(o) : !0, zt = (o, e) => {
1748
1748
  if (!e) return !0;
1749
1749
  switch (e?.[1]) {
1750
1750
  case we.Equal:
1751
- return qn(o, e?.[2]);
1752
- case we.Inequal:
1753
1751
  return Wn(o, e?.[2]);
1754
- case we.Higer:
1752
+ case we.Inequal:
1755
1753
  return Gn(o, e?.[2]);
1756
- case we.HigerOrEqual:
1754
+ case we.Higer:
1757
1755
  return Zn(o, e?.[2]);
1758
- case we.Lower:
1756
+ case we.HigerOrEqual:
1759
1757
  return Kn(o, e?.[2]);
1760
- case we.LowerOrEqual:
1758
+ case we.Lower:
1761
1759
  return Jn(o, e?.[2]);
1762
- case we.Between:
1760
+ case we.LowerOrEqual:
1763
1761
  return Yn(o, e?.[2]);
1764
- case we.StartWith:
1762
+ case we.Between:
1765
1763
  return Xn(o, e?.[2]);
1766
- case we.EndWith:
1764
+ case we.StartWith:
1767
1765
  return Qn(o, e?.[2]);
1768
- case we.Contain:
1766
+ case we.EndWith:
1769
1767
  return ea(o, e?.[2]);
1770
- case we.In:
1768
+ case we.Contain:
1771
1769
  return ta(o, e?.[2]);
1772
- case we.NotIn:
1770
+ case we.In:
1773
1771
  return la(o, e?.[2]);
1772
+ case we.NotIn:
1773
+ return oa(o, e?.[2]);
1774
1774
  default:
1775
1775
  return !0;
1776
1776
  }
1777
- }, oa = /* @__PURE__ */ U({
1777
+ }, na = /* @__PURE__ */ U({
1778
1778
  __name: "vs-input-container",
1779
1779
  props: {
1780
1780
  style: {
@@ -1799,15 +1799,15 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1799
1799
  const u = r?.conditions;
1800
1800
  if (!u) return !0;
1801
1801
  const c = Array.isArray(u) ? u[0] : u, p = t?.value?.[c];
1802
- return It(p, u);
1803
- })), s = B(() => Nn[e.view]);
1802
+ return zt(p, u);
1803
+ })), s = B(() => qn[e.view]);
1804
1804
  return (r, u) => o.schema?.length ? (i(), me(Fe(s.value), {
1805
1805
  key: 0,
1806
1806
  title: o.title,
1807
1807
  style: be(o.style)
1808
1808
  }, {
1809
1809
  default: Ee(() => [
1810
- (i(!0), d(re, null, fe(n.value, (c) => (i(), me(zt, Te({
1810
+ (i(!0), d(re, null, fe(n.value, (c) => (i(), me(At, Te({
1811
1811
  key: c.name
1812
1812
  }, { ref_for: !0 }, c, {
1813
1813
  item: c,
@@ -1820,13 +1820,13 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1820
1820
  _: 1
1821
1821
  }, 8, ["title", "style"])) : D("", !0);
1822
1822
  }
1823
- }), na = ["aria-expanded", "data-focus"], aa = { class: "flex items-center" }, sa = ["title"], ra = ["innerHTML"], ia = ["onClick"], ua = ["title"], da = ["innerHTML"], ca = {
1823
+ }), aa = ["aria-expanded", "data-focus"], sa = { class: "flex items-center" }, ra = ["title"], ia = ["innerHTML"], ua = ["onClick"], da = ["title"], ca = ["innerHTML"], pa = {
1824
1824
  key: 2,
1825
1825
  class: "text-gray-500 truncate"
1826
- }, pa = { class: "flex-1 min-w-[2px]" }, fa = ["placeholder"], ma = { class: "flex items-center shrink-0" }, va = ["disabled"], ha = ["disabled", "title"], ga = ["aria-disabled", "onClick"], ba = ["innerHTML"], ya = {
1826
+ }, fa = { class: "flex-1 min-w-[2px]" }, ma = ["placeholder"], va = { class: "flex items-center shrink-0" }, ha = ["disabled"], ga = ["disabled", "title"], ba = ["aria-disabled", "onClick"], ya = ["innerHTML"], xa = {
1827
1827
  key: 1,
1828
1828
  class: "px-3 py-2 text-center text-gray-500"
1829
- }, xa = ["disabled"], wt = /* @__PURE__ */ U({
1829
+ }, wa = ["disabled"], kt = /* @__PURE__ */ U({
1830
1830
  __name: "vs-input-select",
1831
1831
  props: {
1832
1832
  multiple: { type: Boolean, default: !1 },
@@ -1861,56 +1861,56 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1861
1861
  set: (h) => a("update:modelValue", h)
1862
1862
  });
1863
1863
  !r.value && t.defaultValue && (r.value = t.defaultValue);
1864
- const u = k(null), c = k(null), p = k(null), f = k(null), m = k(!1), y = k(!1), S = k(null), q = k([]), R = k(-1), K = k([]), T = k(""), H = k(null), I = k("bottom"), v = k({}), x = k([]), V = B(() => {
1864
+ const u = w(null), c = w(null), p = w(null), f = w(null), m = w(!1), y = w(!1), S = w(null), q = w([]), R = w(-1), K = w([]), T = w(""), H = w(null), I = w("bottom"), v = w({}), x = w([]), V = B(() => {
1865
1865
  if (!x.value.length) return [];
1866
- const h = q.value, b = new Map(h.map((w) => [w.id?.toString(), w]));
1867
- return x.value.map((w) => b.get(w?.toString())).filter((w) => !!w);
1866
+ const h = q.value, b = new Map(h.map((k) => [k.id?.toString(), k]));
1867
+ return x.value.map((k) => b.get(k?.toString())).filter((k) => !!k);
1868
1868
  }), $ = B(() => t.placeholder || "Select..."), F = B(() => W(S.value)), te = B(() => n.value ? !x.value.length && T.value === "" : !F.value && T.value === ""), J = B(() => s.value ? !1 : n.value ? x.value.length > 0 : !!r.value), M = (h) => n.value ? x.value.some((b) => b?.toString() === h?.toString()) : r.value?.toString() === h?.toString(), Z = B(() => {
1869
1869
  let h = q.value ?? [];
1870
1870
  if (!t.data && T.value.trim() !== "") {
1871
1871
  const b = T.value.toLowerCase();
1872
- h = h.filter((w) => {
1873
- const P = W(w).toLowerCase(), ne = w.text?.toLowerCase?.() || "";
1872
+ h = h.filter((k) => {
1873
+ const P = W(k).toLowerCase(), ne = k.text?.toLowerCase?.() || "";
1874
1874
  return P.includes(b) || ne.includes(b);
1875
1875
  });
1876
1876
  }
1877
1877
  if (n.value && x.value.length) {
1878
- const b = new Set(x.value.map((w) => w?.toString()));
1879
- h = h.filter((w) => !b.has(w.id?.toString()));
1878
+ const b = new Set(x.value.map((k) => k?.toString()));
1879
+ h = h.filter((k) => !b.has(k.id?.toString()));
1880
1880
  }
1881
1881
  return h;
1882
1882
  }), N = Ae("values"), le = /\{\{\s*([^}]+?)\s*\}\}/g, z = (h) => (h ? String(h) : "").replace(/<[^>]*>/g, "").trim(), j = B(() => t.slot ?? t?.optionTemplate ?? ""), C = (h) => {
1883
1883
  if (!h) return "";
1884
1884
  const b = j.value;
1885
- return b ? b.replace(le, (w, P) => {
1885
+ return b ? b.replace(le, (k, P) => {
1886
1886
  const ne = P.trim(), pe = h[ne];
1887
1887
  return pe != null ? String(pe) : "";
1888
1888
  }) : h.text ?? "";
1889
1889
  }, W = (h) => {
1890
1890
  if (!h) return "";
1891
1891
  if (!j.value) return h.text ?? "";
1892
- const w = C(h);
1893
- return z(w) || h.text || "";
1892
+ const k = C(h);
1893
+ return z(k) || h.text || "";
1894
1894
  }, oe = (h) => {
1895
- t.set && N?.value && Object.entries(t.set).forEach(([b, w]) => {
1895
+ t.set && N?.value && Object.entries(t.set).forEach(([b, k]) => {
1896
1896
  if (!b) return;
1897
- const P = h ? h[w] : null;
1897
+ const P = h ? h[k] : null;
1898
1898
  N.value[b] = P ?? null;
1899
1899
  });
1900
1900
  }, se = B(() => t.parent ? N?.value?.[t.parent]?.toString() ?? null : null), Le = async (h) => {
1901
1901
  if (!t.data) {
1902
1902
  let b = t.options ?? [];
1903
1903
  if (h?.trim()) {
1904
- const w = h.toLowerCase();
1904
+ const k = h.toLowerCase();
1905
1905
  b = b.filter((P) => {
1906
1906
  const ne = W(P).toLowerCase(), pe = P.text?.toLowerCase?.() || "";
1907
- return ne.includes(w) || pe.includes(w);
1907
+ return ne.includes(k) || pe.includes(k);
1908
1908
  });
1909
1909
  }
1910
1910
  return b;
1911
1911
  }
1912
1912
  try {
1913
- const b = t.host ?? "", w = t.prefix ?? "api", P = t.api ?? `/${w}/suggest/${t.data}`, ne = `${b}${P}`, pe = new URLSearchParams();
1913
+ const b = t.host ?? "", k = t.prefix ?? "api", P = t.api ?? `/${k}/suggest/${t.data}`, ne = `${b}${P}`, pe = new URLSearchParams();
1914
1914
  return pe.set("json", "1"), h && pe.set("key", h), se.value !== void 0 && se.value !== null && se.value !== "" && pe.set("parent", se.value), (await fetch(`${ne}?${pe.toString()}`).then((ze) => ze.json()))?.data ?? [];
1915
1915
  } catch {
1916
1916
  return [];
@@ -1919,19 +1919,19 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1919
1919
  t.data ? q.value = await Le(T.value) : q.value = t.options ? [...t.options] : [];
1920
1920
  }, Ge = async (h) => {
1921
1921
  if (h == null) return null;
1922
- const b = q.value?.find((w) => w?.id?.toString() === String(h));
1922
+ const b = q.value?.find((k) => k?.id?.toString() === String(h));
1923
1923
  if (b) return b;
1924
1924
  if (t.data)
1925
1925
  try {
1926
- const w = t.host ?? "", P = t.prefix ?? "api", ne = t.api ?? `/${P}/suggest/${t.data}`, pe = `${w}${ne}`, xe = new URLSearchParams();
1926
+ const k = t.host ?? "", P = t.prefix ?? "api", ne = t.api ?? `/${P}/suggest/${t.data}`, pe = `${k}${ne}`, xe = new URLSearchParams();
1927
1927
  return xe.set("json", "1"), xe.set("val", String(h)), se.value !== void 0 && se.value !== null && se.value !== "" && xe.set("parent", se.value), ((await fetch(`${pe}?${xe.toString()}`).then((Pe) => Pe.json()))?.data ?? [])?.[0] ?? null;
1928
1928
  } catch {
1929
1929
  return null;
1930
1930
  }
1931
1931
  return null;
1932
1932
  }, tt = async (h) => {
1933
- const b = new Set(q.value.map((P) => P.id?.toString())), w = h.filter((P) => !b.has(P?.toString()));
1934
- w.length && await w.reduce(async (P, ne) => {
1933
+ const b = new Set(q.value.map((P) => P.id?.toString())), k = h.filter((P) => !b.has(P?.toString()));
1934
+ k.length && await k.reduce(async (P, ne) => {
1935
1935
  await P;
1936
1936
  const pe = await Ge(ne);
1937
1937
  pe && q.value.push(pe);
@@ -1959,9 +1959,9 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1959
1959
  M(h.id) || Q(h);
1960
1960
  }, Ve = (h, b) => {
1961
1961
  if (!h || !b) return;
1962
- const w = h.offsetTop, P = w + h.offsetHeight, ne = b.scrollTop, pe = ne + b.clientHeight;
1962
+ const k = h.offsetTop, P = k + h.offsetHeight, ne = b.scrollTop, pe = ne + b.clientHeight;
1963
1963
  let xe = b.scrollTop;
1964
- w < ne ? xe = w - 80 : P > pe && (xe = P - b.clientHeight + 4);
1964
+ k < ne ? xe = k - 80 : P > pe && (xe = P - b.clientHeight + 4);
1965
1965
  const ze = b;
1966
1966
  ze.scrollTop = xe;
1967
1967
  }, Be = (h) => {
@@ -1969,7 +1969,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1969
1969
  for (; b; ) {
1970
1970
  if (b.classList.contains("ui-dialog__content"))
1971
1971
  return b;
1972
- const w = window.getComputedStyle(b), P = w.overflow + w.overflowY + w.overflowX;
1972
+ const k = window.getComputedStyle(b), P = k.overflow + k.overflowY + k.overflowX;
1973
1973
  if (P.includes("auto") || P.includes("scroll") || b === document.body || b === document.documentElement)
1974
1974
  return b;
1975
1975
  b = b.parentElement;
@@ -1977,12 +1977,12 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1977
1977
  return document.body;
1978
1978
  }, Me = () => {
1979
1979
  if (!c.value) return;
1980
- const h = c.value.getBoundingClientRect(), b = window.innerHeight || document.documentElement.clientHeight, w = window.innerWidth || document.documentElement.clientWidth, P = 8, ne = 8, pe = t.maxHeight || 300, xe = b - h.bottom - ne - P, ze = h.top - ne - P, Ue = xe >= ze, Pe = Math.max(w - P * 2, 0);
1980
+ const h = c.value.getBoundingClientRect(), b = window.innerHeight || document.documentElement.clientHeight, k = window.innerWidth || document.documentElement.clientWidth, P = 8, ne = 8, pe = t.maxHeight || 300, xe = b - h.bottom - ne - P, ze = h.top - ne - P, Ue = xe >= ze, Pe = Math.max(k - P * 2, 0);
1981
1981
  let { width: Re } = h;
1982
1982
  Pe > 0 && Re > Pe && (Re = Pe);
1983
1983
  let { left: He } = h;
1984
- He + Re + P > w && (He = w - Re - P), He = Math.max(He, P);
1985
- const Ht = Math.min(
1984
+ He + Re + P > k && (He = k - Re - P), He = Math.max(He, P);
1985
+ const Nt = Math.min(
1986
1986
  pe,
1987
1987
  Math.max(Ue ? xe : ze, 50)
1988
1988
  );
@@ -1991,13 +1991,13 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
1991
1991
  left: `${He}px`,
1992
1992
  width: `${Re}px`,
1993
1993
  minWidth: "300px",
1994
- maxHeight: `${Ht}px`,
1994
+ maxHeight: `${Nt}px`,
1995
1995
  transform: Ue ? "none" : "translateY(-100%)",
1996
1996
  top: Ue ? `${h.bottom + ne}px` : `${h.top - ne}px`
1997
1997
  };
1998
1998
  }, Ie = async (h) => {
1999
1999
  s.value || !m.value && (h.key === "ArrowDown" || h.key === "ArrowUp") && (h.preventDefault(), await De());
2000
- }, Tt = (h) => {
2000
+ }, Ft = (h) => {
2001
2001
  if (!m.value) return;
2002
2002
  const { key: b } = h;
2003
2003
  if (b === "ArrowDown")
@@ -2006,12 +2006,12 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2006
2006
  h.preventDefault(), R.value > 0 && (R.value -= 1, Ve(K.value[R.value], p.value));
2007
2007
  else if (b === "Enter") {
2008
2008
  h.preventDefault();
2009
- const w = Z.value[R.value];
2010
- w && Q(w), H.value?.blur();
2009
+ const k = Z.value[R.value];
2010
+ k && Q(k), H.value?.blur();
2011
2011
  } else b === "Escape" ? (h.preventDefault(), Ce()) : b === "Backspace" ? n.value && T.value === "" && x.value.length && (x.value = x.value.slice(0, -1), r.value = [...x.value], a("change", r.value)) : b === "Home" ? (R.value = 0, Ve(K.value[0], p.value)) : b === "End" ? (R.value = Z.value.length - 1, Ve(K.value[R.value], p.value)) : b === "Tab" && Ce();
2012
- }, Ft = () => {
2013
- s.value || (y.value = !0);
2014
2012
  }, Ot = () => {
2013
+ s.value || (y.value = !0);
2014
+ }, Dt = () => {
2015
2015
  y.value = !1, T.value = "";
2016
2016
  }, rt = (h) => {
2017
2017
  h.key === "Escape" && m.value && Ce();
@@ -2042,61 +2042,63 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2042
2042
  ue(r, () => {
2043
2043
  Ze();
2044
2044
  }), _e(async () => {
2045
- addEventListener("keydown", rt), addEventListener("scroll", ut, !0), addEventListener("resize", dt), document.addEventListener("click", it, !0), c.value && Be(c.value).addEventListener("scroll", ct, !0), t.options?.length && !t.data ? q.value = [...t.options] : t.data && (q.value = await Le("")), await Ze();
2045
+ addEventListener("keydown", rt), addEventListener("scroll", ut, !0), addEventListener("resize", dt), document.addEventListener("click", it, !0), c.value && Be(c.value).addEventListener("scroll", ct, !0), t.options?.length && !t.data ? q.value = [...t.options] : t.data && (q.value = await Le("")), await Ze(), mt.value = !1;
2046
2046
  }), Xe(() => {
2047
2047
  removeEventListener("keydown", rt), removeEventListener("scroll", ut, !0), removeEventListener("resize", dt), document.removeEventListener("click", it, !0), c.value && Be(c.value).removeEventListener("scroll", ct, !0);
2048
2048
  });
2049
- const Ke = k(!1), lt = k({}), pt = k([]), ft = k(null);
2050
- async function Dt() {
2049
+ const Ke = w(!1), lt = w({}), pt = w([]), ft = w(null);
2050
+ async function Ut() {
2051
2051
  if (!t.add?.token || ft?.value.validate())
2052
2052
  return;
2053
- const b = t.add.api ?? `/api/table/${t.add.token}`, { id: w } = await fetch(b, {
2053
+ const b = t.add.api ?? `/api/table/${t.add.token}`, { id: k } = await fetch(b, {
2054
2054
  method: "POST",
2055
2055
  headers: { "Content-Type": "application/json" },
2056
2056
  body: JSON.stringify(lt.value)
2057
2057
  }).then((P) => P.json());
2058
2058
  if (!t.options?.length && t.data) {
2059
- const { data: P } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${w}`).then((ne) => ne.json());
2060
- S.value = P[0], q.value.push(P[0]), r.value = w;
2059
+ const { data: P } = await fetch(`${t.api ?? `/api/suggest/${t.data}`}?val=${k}`).then((ne) => ne.json());
2060
+ S.value = P[0], q.value.push(P[0]), r.value = k;
2061
2061
  }
2062
2062
  Ke.value = !1, ce({ title: "Success!", message: "Object created." });
2063
2063
  }
2064
- async function Ut() {
2064
+ async function Pt() {
2065
2065
  if (!t.add) return null;
2066
2066
  const h = await fetch(`/api/template/form/${t.add.form}`).then((b) => b.json());
2067
2067
  return pt.value = h.schema, Ke.value = !0, null;
2068
2068
  }
2069
- function Pt(h, b = 200) {
2070
- let w;
2069
+ function Rt(h, b = 200) {
2070
+ let k;
2071
2071
  return (...P) => {
2072
- w && clearTimeout(w), w = window.setTimeout(() => h(...P), b);
2072
+ k && clearTimeout(k), k = window.setTimeout(() => h(...P), b);
2073
2073
  };
2074
2074
  }
2075
- const Rt = Pt(async (h) => {
2075
+ const Ht = Rt(async (h) => {
2076
2076
  q.value = await Le(h);
2077
2077
  }, 200);
2078
- return ue(T, (h) => {
2079
- t.data && Rt(h.trim());
2078
+ ue(T, (h) => {
2079
+ t.data && Ht(h.trim());
2080
2080
  }), ue(() => t.options, (h) => {
2081
2081
  !t.data && h?.length && (q.value = [...h], Ze());
2082
2082
  }, { immediate: !0 }), ue(() => t.parent ?? t.parentValue, () => {
2083
2083
  t.data && Oe();
2084
- }), ue(se, async () => {
2085
- t.data && (n.value ? (x.value = [], r.value = [], a("change", [])) : (S.value = null, r.value = null, a("change", null)), await Oe());
2084
+ });
2085
+ const mt = w(!0);
2086
+ return ue(se, async () => {
2087
+ t.data && (mt.value || (n.value ? (x.value = [], r.value = [], a("change", [])) : (S.value = null, r.value = null, a("change", null))), await Oe());
2086
2088
  }), (h, b) => (i(), d(re, null, [
2087
- A(ee(Lt), {
2089
+ A(ee(St), {
2088
2090
  visible: Ke.value,
2089
- "onUpdate:visible": b[1] || (b[1] = (w) => Ke.value = w),
2091
+ "onUpdate:visible": b[1] || (b[1] = (k) => Ke.value = k),
2090
2092
  title: "Додати",
2091
2093
  buttonText: "Додати",
2092
- onDone: Dt,
2094
+ onDone: Ut,
2093
2095
  teleport: h.teleport
2094
2096
  }, {
2095
2097
  default: Ee(() => [
2096
2098
  A(We, {
2097
2099
  schema: pt.value,
2098
2100
  modelValue: lt.value,
2099
- "onUpdate:modelValue": b[0] || (b[0] = (w) => lt.value = w),
2101
+ "onUpdate:modelValue": b[0] || (b[0] = (k) => lt.value = k),
2100
2102
  ref_key: "addForm",
2101
2103
  ref: ft
2102
2104
  }, null, 8, ["schema", "modelValue"])
@@ -2143,32 +2145,32 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2143
2145
  ref_key: "triggerRef",
2144
2146
  ref: c
2145
2147
  }, [
2146
- n.value && x.value.length ? (i(!0), d(re, { key: 0 }, fe(V.value, (w) => (i(), d("div", {
2148
+ n.value && x.value.length ? (i(!0), d(re, { key: 0 }, fe(V.value, (k) => (i(), d("div", {
2147
2149
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border",
2148
- key: w.id
2150
+ key: k.id
2149
2151
  }, [
2150
- l("div", aa, [
2151
- w?.color ? (i(), d("span", {
2152
+ l("div", sa, [
2153
+ k?.color ? (i(), d("span", {
2152
2154
  key: 0,
2153
2155
  class: "w-[16px] h-[16px] rounded-md block ml-1.5",
2154
- style: be({ backgroundColor: w?.color })
2156
+ style: be({ backgroundColor: k?.color })
2155
2157
  }, null, 4)) : D("", !0),
2156
2158
  l("div", {
2157
2159
  class: "truncate text-gray-900 overflow-hidden",
2158
- title: W(w)
2160
+ title: W(k)
2159
2161
  }, [
2160
2162
  j.value ? (i(), d("span", {
2161
2163
  key: 0,
2162
- innerHTML: C(w)
2163
- }, null, 8, ra)) : (i(), d(re, { key: 1 }, [
2164
- ge(G(w.text), 1)
2164
+ innerHTML: C(k)
2165
+ }, null, 8, ia)) : (i(), d(re, { key: 1 }, [
2166
+ ge(G(k.text), 1)
2165
2167
  ], 64))
2166
- ], 8, sa)
2168
+ ], 8, ra)
2167
2169
  ]),
2168
2170
  l("div", {
2169
2171
  role: "button",
2170
2172
  class: "flex items-center rounded-sm px-1 box-border hover:bg-[#ffbdad] hover:text-[#de350b]",
2171
- onClick: ke((P) => O(w.id), ["stop"])
2173
+ onClick: ke((P) => O(k.id), ["stop"])
2172
2174
  }, b[5] || (b[5] = [
2173
2175
  l("svg", {
2174
2176
  height: "14",
@@ -2180,7 +2182,7 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2180
2182
  }, [
2181
2183
  l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
2182
2184
  ], -1)
2183
- ]), 8, ia)
2185
+ ]), 8, ua)
2184
2186
  ]))), 128)) : !n.value && !y.value && F.value && T.value === "" ? (i(), d("div", {
2185
2187
  key: 1,
2186
2188
  class: E(["truncate text-gray-900"]),
@@ -2195,13 +2197,13 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2195
2197
  key: 1,
2196
2198
  class: E({ "pl-5": S.value?.color }),
2197
2199
  innerHTML: C(S.value)
2198
- }, null, 10, da)) : (i(), d("span", {
2200
+ }, null, 10, ca)) : (i(), d("span", {
2199
2201
  key: 2,
2200
2202
  class: E({ "pl-5": S.value?.color })
2201
2203
  }, G(S.value?.text), 3))
2202
- ], 8, ua)) : D("", !0),
2203
- te.value ? (i(), d("div", ca, G($.value), 1)) : D("", !0),
2204
- l("div", pa, [
2204
+ ], 8, da)) : D("", !0),
2205
+ te.value ? (i(), d("div", pa, G($.value), 1)) : D("", !0),
2206
+ l("div", fa, [
2205
2207
  !s.value && h.search ? ae((i(), d("input", {
2206
2208
  key: 0,
2207
2209
  ref_key: "inputRef",
@@ -2215,16 +2217,16 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2215
2217
  tabindex: "0",
2216
2218
  "aria-autocomplete": "list",
2217
2219
  placeholder: (n.value && x.value.length ? " " : null) || y.value && !T.value?.length && F.value || " ",
2218
- "onUpdate:modelValue": b[2] || (b[2] = (w) => T.value = w),
2219
- onFocus: Ft,
2220
- onBlur: Ot,
2221
- onKeydown: Tt
2222
- }, null, 40, fa)), [
2220
+ "onUpdate:modelValue": b[2] || (b[2] = (k) => T.value = k),
2221
+ onFocus: Ot,
2222
+ onBlur: Dt,
2223
+ onKeydown: Ft
2224
+ }, null, 40, ma)), [
2223
2225
  [ve, T.value]
2224
2226
  ]) : D("", !0)
2225
2227
  ])
2226
2228
  ], 512),
2227
- l("div", ma, [
2229
+ l("div", va, [
2228
2230
  J.value ? (i(), d("button", {
2229
2231
  key: 0,
2230
2232
  type: "button",
@@ -2241,14 +2243,14 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2241
2243
  }, [
2242
2244
  l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
2243
2245
  ], -1)
2244
- ]), 8, va)) : D("", !0),
2246
+ ]), 8, ha)) : D("", !0),
2245
2247
  b[8] || (b[8] = l("div", { class: "self-stretch w-px bg-[#ccc] my-[1px]" }, null, -1)),
2246
2248
  l("button", {
2247
2249
  type: "button",
2248
2250
  class: "px-2 text-gray-400 hover:text-gray-500 transition-colors disabled:opacity-50",
2249
2251
  "aria-hidden": "true",
2250
2252
  disabled: s.value,
2251
- onClick: b[3] || (b[3] = ke((w) => g(), ["stop"])),
2253
+ onClick: b[3] || (b[3] = ke((k) => g(), ["stop"])),
2252
2254
  title: m.value ? "Закрити список" : "Відкрити список"
2253
2255
  }, b[7] || (b[7] = [
2254
2256
  l("svg", {
@@ -2259,10 +2261,10 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2259
2261
  }, [
2260
2262
  l("path", { d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z" })
2261
2263
  ], -1)
2262
- ]), 8, ha)
2264
+ ]), 8, ga)
2263
2265
  ])
2264
- ], 42, na),
2265
- (i(), me(Mt, { to: "body" }, [
2266
+ ], 42, aa),
2267
+ (i(), me(Lt, { to: "body" }, [
2266
2268
  m.value ? (i(), d("div", {
2267
2269
  key: 0,
2268
2270
  ref_key: "dropdownRef",
@@ -2279,48 +2281,48 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2279
2281
  ref_key: "listRef",
2280
2282
  ref: p
2281
2283
  }, [
2282
- Z.value.length ? (i(!0), d(re, { key: 0 }, fe(Z.value, (w, P) => (i(), d("div", {
2283
- key: w.id,
2284
+ Z.value.length ? (i(!0), d(re, { key: 0 }, fe(Z.value, (k, P) => (i(), d("div", {
2285
+ key: k.id,
2284
2286
  ref_for: !0,
2285
2287
  ref: (ne) => K.value[P] = ne,
2286
2288
  class: E([
2287
2289
  "flex px-3 py-2 cursor-default select-none text-gray-900 ",
2288
- M(w.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
2289
- R.value === P && !M(w.id) ? "bg-blue-100" : ""
2290
+ M(k.id) ? "bg-blue-500 text-white" : "bg-white hover:bg-blue-100",
2291
+ R.value === P && !M(k.id) ? "bg-blue-100" : ""
2290
2292
  ]),
2291
- "aria-disabled": M(w.id) ? "true" : "false",
2293
+ "aria-disabled": M(k.id) ? "true" : "false",
2292
2294
  role: "option",
2293
2295
  tabindex: "-1",
2294
- onClick: (ne) => he(w)
2296
+ onClick: (ne) => he(k)
2295
2297
  }, [
2296
- w?.color ? (i(), d("span", {
2298
+ k?.color ? (i(), d("span", {
2297
2299
  key: 0,
2298
2300
  class: "w-[11px] h-[11px] rounded-full block mr-1 mt-1.5",
2299
- style: be({ backgroundColor: w?.color })
2301
+ style: be({ backgroundColor: k?.color })
2300
2302
  }, null, 4)) : D("", !0),
2301
2303
  l("div", {
2302
2304
  class: E([
2303
2305
  "leading-[19px]",
2304
- R.value === w.id ? "text-white" : "",
2306
+ R.value === k.id ? "text-white" : "",
2305
2307
  // active style like react-select
2306
2308
  (R.value === P, "")
2307
2309
  ])
2308
2310
  }, [
2309
2311
  j.value ? (i(), d("span", {
2310
2312
  key: 0,
2311
- innerHTML: C(w)
2312
- }, null, 8, ba)) : (i(), d(re, { key: 1 }, [
2313
- ge(G(w.text), 1)
2313
+ innerHTML: C(k)
2314
+ }, null, 8, ya)) : (i(), d(re, { key: 1 }, [
2315
+ ge(G(k.text), 1)
2314
2316
  ], 64))
2315
2317
  ], 2)
2316
- ], 10, ga))), 128)) : (i(), d("div", ya, " No options "))
2318
+ ], 10, ba))), 128)) : (i(), d("div", xa, " No options "))
2317
2319
  ], 4)
2318
2320
  ], 4)) : D("", !0)
2319
2321
  ]))
2320
2322
  ], 2),
2321
2323
  t.add ? (i(), d("button", {
2322
2324
  key: 0,
2323
- onClick: Ut,
2325
+ onClick: Pt,
2324
2326
  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",
2325
2327
  disabled: s.value,
2326
2328
  type: "button"
@@ -2330,11 +2332,11 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2330
2332
  height: "16"
2331
2333
  }),
2332
2334
  b[11] || (b[11] = l("span", null, "Додати", -1))
2333
- ], 8, xa)) : D("", !0)
2335
+ ], 8, wa)) : D("", !0)
2334
2336
  ], 512)
2335
2337
  ], 64));
2336
2338
  }
2337
- }), wa = ["placeholder", "disabled"], ka = /* @__PURE__ */ U({
2339
+ }), ka = ["placeholder", "disabled"], _a = /* @__PURE__ */ U({
2338
2340
  __name: "vs-input-textarea",
2339
2341
  props: /* @__PURE__ */ ie({
2340
2342
  style: { default: () => ({}) },
@@ -2360,11 +2362,11 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2360
2362
  style: {
2361
2363
  border: "1px solid #CFD9E0"
2362
2364
  }
2363
- }, null, 10, wa)), [
2365
+ }, null, 10, ka)), [
2364
2366
  [ve, a.value]
2365
2367
  ]);
2366
2368
  }
2367
- }), _a = {}, $a = {
2369
+ }), $a = {}, Ca = {
2368
2370
  xmlns: "http://www.w3.org/2000/svg",
2369
2371
  viewBox: "0 0 24 24",
2370
2372
  fill: "none",
@@ -2374,8 +2376,8 @@ const kn = /* @__PURE__ */ X(yn, [["render", wn]]), _n = { class: "flex flex-col
2374
2376
  "stroke-linejoin": "round",
2375
2377
  class: "icon icon-tabler icons-tabler-outline icon-tabler-search stroke-gray-500 transition-all"
2376
2378
  };
2377
- function Ca(o, e) {
2378
- return i(), d("svg", $a, e[0] || (e[0] = [
2379
+ function Va(o, e) {
2380
+ return i(), d("svg", Ca, e[0] || (e[0] = [
2379
2381
  l("path", {
2380
2382
  stroke: "none",
2381
2383
  d: "M0 0h24v24H0z",
@@ -2385,7 +2387,7 @@ function Ca(o, e) {
2385
2387
  l("path", { d: "M21 21l-6 -6" }, null, -1)
2386
2388
  ]));
2387
2389
  }
2388
- const Va = /* @__PURE__ */ X(_a, [["render", Ca]]), Ma = {}, La = {
2390
+ const Ma = /* @__PURE__ */ X($a, [["render", Va]]), La = {}, Sa = {
2389
2391
  class: "flex-shrink-0 mt-0.5 size-3.5",
2390
2392
  xmlns: "http://www.w3.org/2000/svg",
2391
2393
  viewBox: "0 0 24 24",
@@ -2395,15 +2397,15 @@ const Va = /* @__PURE__ */ X(_a, [["render", Ca]]), Ma = {}, La = {
2395
2397
  "stroke-linecap": "round",
2396
2398
  "stroke-linejoin": "round"
2397
2399
  };
2398
- function Sa(o, e) {
2399
- return i(), d("svg", La, e[0] || (e[0] = [
2400
+ function Ba(o, e) {
2401
+ return i(), d("svg", Sa, e[0] || (e[0] = [
2400
2402
  l("path", { d: "m3 16 4 4 4-4" }, null, -1),
2401
2403
  l("path", { d: "M7 20V4" }, null, -1),
2402
2404
  l("path", { d: "m21 8-4-4-4 4" }, null, -1),
2403
2405
  l("path", { d: "M17 4v16" }, null, -1)
2404
2406
  ]));
2405
2407
  }
2406
- const Ba = /* @__PURE__ */ X(Ma, [["render", Sa]]), ja = {}, Ea = {
2408
+ const ja = /* @__PURE__ */ X(La, [["render", Ba]]), Ea = {}, Ia = {
2407
2409
  xmlns: "http://www.w3.org/2000/svg",
2408
2410
  width: "14",
2409
2411
  height: "14",
@@ -2414,8 +2416,8 @@ const Ba = /* @__PURE__ */ X(Ma, [["render", Sa]]), ja = {}, Ea = {
2414
2416
  "stroke-linecap": "round",
2415
2417
  "stroke-linejoin": "round"
2416
2418
  };
2417
- function Ia(o, e) {
2418
- return i(), d("svg", Ea, e[0] || (e[0] = [
2419
+ function za(o, e) {
2420
+ return i(), d("svg", Ia, e[0] || (e[0] = [
2419
2421
  l("path", {
2420
2422
  stroke: "none",
2421
2423
  d: "M0 0h24v24H0z",
@@ -2426,7 +2428,7 @@ function Ia(o, e) {
2426
2428
  l("path", { d: "M12 4l0 12" }, null, -1)
2427
2429
  ]));
2428
2430
  }
2429
- const za = /* @__PURE__ */ X(ja, [["render", Ia]]), Aa = {}, Ta = {
2431
+ const Aa = /* @__PURE__ */ X(Ea, [["render", za]]), Ta = {}, Fa = {
2430
2432
  xmlns: "http://www.w3.org/2000/svg",
2431
2433
  viewBox: "0 0 24 24",
2432
2434
  fill: "none",
@@ -2435,8 +2437,8 @@ const za = /* @__PURE__ */ X(ja, [["render", Ia]]), Aa = {}, Ta = {
2435
2437
  "stroke-linecap": "round",
2436
2438
  "stroke-linejoin": "round"
2437
2439
  };
2438
- function Fa(o, e) {
2439
- return i(), d("svg", Ta, e[0] || (e[0] = [
2440
+ function Oa(o, e) {
2441
+ return i(), d("svg", Fa, e[0] || (e[0] = [
2440
2442
  l("path", {
2441
2443
  stroke: "none",
2442
2444
  d: "M0 0h24v24H0z",
@@ -2447,7 +2449,7 @@ function Fa(o, e) {
2447
2449
  l("path", { d: "M12 4l0 12" }, null, -1)
2448
2450
  ]));
2449
2451
  }
2450
- const Oa = /* @__PURE__ */ X(Aa, [["render", Fa]]), Da = {}, Ua = {
2452
+ const Da = /* @__PURE__ */ X(Ta, [["render", Oa]]), Ua = {}, Pa = {
2451
2453
  xmlns: "http://www.w3.org/2000/svg",
2452
2454
  viewBox: "0 0 24 24",
2453
2455
  fill: "none",
@@ -2456,22 +2458,22 @@ const Oa = /* @__PURE__ */ X(Aa, [["render", Fa]]), Da = {}, Ua = {
2456
2458
  "stroke-linecap": "round",
2457
2459
  "stroke-linejoin": "round"
2458
2460
  };
2459
- function Pa(o, e) {
2460
- return i(), d("svg", Ua, e[0] || (e[0] = [
2461
+ function Ra(o, e) {
2462
+ return i(), d("svg", Pa, e[0] || (e[0] = [
2461
2463
  ye('<circle cx="9" cy="12" r="1"></circle><circle cx="9" cy="5" r="1"></circle><circle cx="9" cy="19" r="1"></circle><circle cx="15" cy="12" r="1"></circle><circle cx="15" cy="5" r="1"></circle><circle cx="15" cy="19" r="1"></circle>', 6)
2462
2464
  ]));
2463
2465
  }
2464
- const kt = /* @__PURE__ */ X(Da, [["render", Pa]]), Ra = {}, Ha = {
2466
+ const _t = /* @__PURE__ */ X(Ua, [["render", Ra]]), Ha = {}, Na = {
2465
2467
  viewBox: "0 0 178 90",
2466
2468
  fill: "none",
2467
2469
  xmlns: "http://www.w3.org/2000/svg"
2468
2470
  };
2469
- function Na(o, e) {
2470
- return i(), d("svg", Ha, e[0] || (e[0] = [
2471
+ function qa(o, e) {
2472
+ return i(), d("svg", Na, e[0] || (e[0] = [
2471
2473
  ye('<rect x="27" y="50.5" width="124" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="27" y="50.5" width="124" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-50 dark:stroke-neutral-700/10"></rect><rect x="34.5" y="58" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="61" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="66.5" y="73" width="77" height="6" rx="3" fill="currentColor" class="fill-gray-50 dark:fill-neutral-700/30"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" fill="currentColor" class="fill-white dark:fill-neutral-800"></rect><rect x="19.5" y="28.5" width="139" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/30"></rect><rect x="27" y="36" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="39" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><rect x="59" y="51" width="92" height="6" rx="3" fill="currentColor" class="fill-gray-100 dark:fill-neutral-700/70"></rect><g filter="url(#filter1)"><rect x="12" y="6" width="154" height="40" rx="8" fill="currentColor" class="fill-white dark:fill-neutral-800" shape-rendering="crispEdges"></rect><rect x="12.5" y="6.5" width="153" height="39" rx="7.5" stroke="currentColor" class="stroke-gray-100 dark:stroke-neutral-700/60" shape-rendering="crispEdges"></rect><rect x="20" y="14" width="24" height="24" rx="4" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="17" width="60" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect><rect x="52" y="29" width="106" height="6" rx="3" fill="currentColor" class="fill-gray-200 dark:fill-neutral-700"></rect></g><defs><filter id="filter1" x="0" y="0" width="178" height="64" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"></feColorMatrix><feOffset dy="6"></feOffset><feGaussianBlur stdDeviation="6"></feGaussianBlur><feComposite in2="hardAlpha" operator="out"></feComposite><feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.03 0"></feColorMatrix><feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_1187_14810"></feBlend><feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_1187_14810" result="shape"></feBlend></filter></defs>', 12)
2472
2474
  ]));
2473
2475
  }
2474
- const qa = /* @__PURE__ */ X(Ra, [["render", Na]]), Wa = {}, Ga = {
2476
+ const Wa = /* @__PURE__ */ X(Ha, [["render", qa]]), Ga = {}, Za = {
2475
2477
  xmlns: "http://www.w3.org/2000/svg",
2476
2478
  viewBox: "0 0 24 24",
2477
2479
  fill: "none",
@@ -2480,25 +2482,25 @@ const qa = /* @__PURE__ */ X(Ra, [["render", Na]]), Wa = {}, Ga = {
2480
2482
  "stroke-linecap": "round",
2481
2483
  "stroke-linejoin": "round"
2482
2484
  };
2483
- function Za(o, e) {
2484
- return i(), d("svg", Ga, e[0] || (e[0] = [
2485
+ function Ka(o, e) {
2486
+ return i(), d("svg", Za, e[0] || (e[0] = [
2485
2487
  l("path", { d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z" }, null, -1)
2486
2488
  ]));
2487
2489
  }
2488
- const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable border rounded-xl w-full flex-grow" }, Ya = { class: "flex items-center npm gap-[16px] justify-between p-[20px] pb-[16px]" }, Xa = { class: "relative w-full" }, Qa = { class: "table-wrapper flex gap-2" }, es = { class: "vs-popover inline-block text-slate-700" }, ts = { class: "text-center" }, ls = { class: "" }, os = { class: "py-1 px-0 w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:text-neutral-200 dark:focus:bg-neutral-800 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, ns = { class: "flex flex-col p-[1px] gap-[2px] w-[140px]" }, as = { class: "text-sm items-center text-gray-800 flex gap-1" }, ss = { class: "w-full overflow-x-auto" }, rs = { class: "w-full table-auto caption-bottom text-sm" }, is = { class: "[&_tr]:border-b" }, us = { class: "border-b data-[state=selected]:bg-muted bg-slate-50/50 dark:bg-slate-700/50 hover:bg-slate-50/80 dark:hover:bg-slate-700/80 transition-colors" }, ds = { class: "h-10 px-2 align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-12 text-center" }, cs = {
2490
+ const Ja = /* @__PURE__ */ X(Ga, [["render", Ka]]), Ya = { class: "vs-datatable border rounded-xl w-full flex-grow" }, Xa = { class: "flex items-center npm gap-[16px] justify-between p-[20px] pb-[16px]" }, Qa = { class: "relative w-full" }, es = { class: "table-wrapper flex gap-2" }, ts = { class: "vs-popover inline-block text-slate-700" }, ls = { class: "text-center" }, os = { class: "" }, ns = { class: "py-1 px-0 w-full text-sm text-stone-800 bg-white shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-lg focus:outline-none focus:bg-stone-100 dark:bg-neutral-900 dark:text-neutral-200 dark:focus:bg-neutral-800 after:h-4 after:absolute after:-bottom-4 after:start-0 after:w-full before:h-4 before:absolute before:-top-4 before:start-0 before:w-full" }, as = { class: "flex flex-col p-[1px] gap-[2px] w-[140px]" }, ss = { class: "text-sm items-center text-gray-800 flex gap-1" }, rs = { class: "w-full overflow-x-auto" }, is = { class: "w-full table-auto caption-bottom text-sm" }, us = { class: "[&_tr]:border-b" }, ds = { class: "border-b data-[state=selected]:bg-muted bg-slate-50/50 dark:bg-slate-700/50 hover:bg-slate-50/80 dark:hover:bg-slate-700/80 transition-colors" }, cs = { class: "h-10 px-2 align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] w-12 text-center" }, ps = {
2489
2491
  key: 0,
2490
2492
  colspan: "100%",
2491
2493
  class: "text-center"
2492
- }, ps = { class: "w-full" }, fs = { class: "p-5 min-h-[200px] flex flex-col justify-center items-center text-center" }, ms = ["onDragstart", "onDragover", "onDrop"], vs = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] text-center" }, hs = { class: "flex items-center justify-center" }, gs = {
2494
+ }, fs = { class: "w-full" }, ms = { class: "p-5 min-h-[200px] flex flex-col justify-center items-center text-center" }, vs = ["onDragstart", "onDragover", "onDrop"], hs = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] text-center" }, gs = { class: "flex items-center justify-center" }, bs = {
2493
2495
  key: 0,
2494
2496
  class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors"
2495
- }, bs = { key: 0 }, ys = ["src"], xs = {
2497
+ }, ys = { key: 0 }, xs = ["src"], ws = {
2496
2498
  key: 1,
2497
2499
  class: "rounded-md max-w-[45px] w-[45px] max-h-[45px] h-[45px] bg-gray-200 flex items-center justify-center"
2498
- }, ws = ["innerHTML"], ks = {
2500
+ }, ks = ["innerHTML"], _s = {
2499
2501
  key: 2,
2500
2502
  class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors"
2501
- }, _s = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]" }, $s = { class: "flex items-center justify-center gap-2" }, Cs = ["onClick"], Vs = ["onClick"], Ms = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, Ls = /* @__PURE__ */ U({
2503
+ }, $s = { class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]" }, Cs = { class: "flex items-center justify-center gap-2" }, Vs = ["onClick"], Ms = ["onClick"], Ls = { class: "vs-form__head mr-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, Ss = /* @__PURE__ */ U({
2502
2504
  __name: "vs-input-datatable",
2503
2505
  props: /* @__PURE__ */ ie({
2504
2506
  colModel: {},
@@ -2515,14 +2517,14 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2515
2517
  }),
2516
2518
  emits: ["update:modelValue"],
2517
2519
  setup(o) {
2518
- const e = o, t = de(o, "modelValue"), a = k({}), n = k(""), s = B(() => {
2520
+ const e = o, t = de(o, "modelValue"), a = w({}), n = w(""), s = B(() => {
2519
2521
  if (!n.value) return t.value ?? [];
2520
2522
  const z = n.value.toLowerCase();
2521
2523
  return t.value.filter((j) => e.colModel?.some((C) => {
2522
2524
  const W = j[C.key];
2523
2525
  return W ? Array.isArray(W) ? W.join(", ").toLowerCase().includes(z) : String(W).toLowerCase().includes(z) : !1;
2524
2526
  }));
2525
- }), r = k(null), u = k(null), c = k(!1), p = k(null), f = k({ top: 0, left: 0 }), m = (z) => {
2527
+ }), r = w(null), u = w(null), c = w(!1), p = w(null), f = w({ top: 0, left: 0 }), m = (z) => {
2526
2528
  r.value = z;
2527
2529
  }, y = (z) => {
2528
2530
  u.value = z;
@@ -2567,9 +2569,9 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2567
2569
  a.value[j.key] = W.data;
2568
2570
  }));
2569
2571
  });
2570
- const I = k(""), v = k(!1);
2572
+ const I = w(""), v = w(!1);
2571
2573
  let x = "edit", V = 0;
2572
- const $ = k({}), F = k({});
2574
+ const $ = w({}), F = w({});
2573
2575
  async function te() {
2574
2576
  I.value = "Додати", v.value = !0, x = "add", $.value = {};
2575
2577
  }
@@ -2595,10 +2597,10 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2595
2597
  function le() {
2596
2598
  v.value = !1;
2597
2599
  }
2598
- return (z, j) => (i(), d("div", Ja, [
2599
- l("div", Ya, [
2600
- l("div", Xa, [
2601
- A(Va, {
2600
+ return (z, j) => (i(), d("div", Ya, [
2601
+ l("div", Xa, [
2602
+ l("div", Qa, [
2603
+ A(Ma, {
2602
2604
  width: "14",
2603
2605
  height: "14",
2604
2606
  class: "absolute left-3 top-1/2 transform -translate-y-1/2 text-stone-500"
@@ -2612,7 +2614,7 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2612
2614
  [ve, n.value]
2613
2615
  ])
2614
2616
  ]),
2615
- l("div", Qa, [
2617
+ l("div", es, [
2616
2618
  l("input", {
2617
2619
  ref_key: "fileInput",
2618
2620
  ref: p,
@@ -2621,14 +2623,14 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2621
2623
  accept: ".json",
2622
2624
  type: "file"
2623
2625
  }, null, 544),
2624
- l("div", es, [
2625
- l("div", ts, [
2626
- l("div", ls, [
2626
+ l("div", ts, [
2627
+ l("div", ls, [
2628
+ l("div", os, [
2627
2629
  l("button", {
2628
2630
  onClick: q,
2629
2631
  class: "bg-white hover:bg-gray-100 font-semibold text-[15px] leadig-[18.5px] py-[10px] px-[12px] border border-[#E5E7EB] rounded-[8px] h-[38px] max-h-[38px] gap-[8px] flex items-center"
2630
2632
  }, [
2631
- A(Ba, {
2633
+ A(ja, {
2632
2634
  height: "16",
2633
2635
  width: "16"
2634
2636
  })
@@ -2637,19 +2639,19 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2637
2639
  ])
2638
2640
  ])
2639
2641
  ]),
2640
- (i(), me(Mt, { to: "body" }, [
2642
+ (i(), me(Lt, { to: "body" }, [
2641
2643
  c.value ? (i(), d("div", {
2642
2644
  key: 0,
2643
2645
  class: "text-slate-700 vsTailwind vs-popover__content bottom",
2644
2646
  style: be([{ width: "fit-content", "z-index": "10002", position: "fixed" }, { position: "absolute", top: f.value.top + "px", left: f.value.left + "px" }])
2645
2647
  }, [
2646
- l("div", os, [
2647
- l("div", ns, [
2648
+ l("div", ns, [
2649
+ l("div", as, [
2648
2650
  l("button", {
2649
2651
  onClick: R,
2650
2652
  class: "text-slate-700 flex items-center gap-1 px-3 py-2 rounded-md cursor-pointer group hover:bg-gray-100"
2651
2653
  }, [
2652
- A(za, {
2654
+ A(Aa, {
2653
2655
  class: "text-black",
2654
2656
  width: "14",
2655
2657
  height: "14"
@@ -2660,8 +2662,8 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2660
2662
  onClick: H,
2661
2663
  class: "text-slate-700 flex items-center px-3 py-2 rounded-md cursor-pointer group hover:bg-gray-100"
2662
2664
  }, [
2663
- l("span", as, [
2664
- A(Oa, {
2665
+ l("span", ss, [
2666
+ A(Da, {
2665
2667
  class: "text-black",
2666
2668
  width: "14",
2667
2669
  height: "14"
@@ -2681,12 +2683,12 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2681
2683
  j[6] || (j[6] = ge(" Додати ", -1))
2682
2684
  ])
2683
2685
  ]),
2684
- l("div", ss, [
2685
- l("table", rs, [
2686
- l("thead", is, [
2687
- l("tr", us, [
2688
- l("th", ds, [
2689
- A(kt, {
2686
+ l("div", rs, [
2687
+ l("table", is, [
2688
+ l("thead", us, [
2689
+ l("tr", ds, [
2690
+ l("th", cs, [
2691
+ A(_t, {
2690
2692
  width: "24",
2691
2693
  height: "24",
2692
2694
  class: "w-4 h-4 mx-auto text-slate-400 dark:text-slate-500"
@@ -2702,10 +2704,10 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2702
2704
  l("tbody", {
2703
2705
  class: E({ "[&_tr:last-child]:border-0": !u.value })
2704
2706
  }, [
2705
- s.value.length === 0 ? (i(), d("td", cs, [
2706
- l("div", ps, [
2707
- l("div", fs, [
2708
- A(qa, { class: "w-48 mx-auto" }),
2707
+ s.value.length === 0 ? (i(), d("td", ps, [
2708
+ l("div", fs, [
2709
+ l("div", ms, [
2710
+ A(Wa, { class: "w-48 mx-auto" }),
2709
2711
  j[8] || (j[8] = l("div", { class: "max-w-sm mx-auto mt-6" }, [
2710
2712
  l("p", { class: "font-medium text-gray-800 dark:text-neutral-200" }, "Нічого не знайдено"),
2711
2713
  l("p", { class: "mt-2 text-sm text-gray-500 dark:text-neutral-500" })
@@ -2724,9 +2726,9 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2724
2726
  onDragover: ke((oe) => y(W), ["prevent"]),
2725
2727
  onDrop: (oe) => S(W)
2726
2728
  }, [
2727
- l("td", vs, [
2728
- l("div", hs, [
2729
- A(kt, {
2729
+ l("td", hs, [
2730
+ l("div", gs, [
2731
+ A(_t, {
2730
2732
  width: "24",
2731
2733
  height: "24",
2732
2734
  class: "w-4 h-4 mx-auto text-slate-400 dark:text-slate-500"
@@ -2737,35 +2739,35 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2737
2739
  key: oe.key,
2738
2740
  class: "p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]"
2739
2741
  }, [
2740
- oe.type === "file" ? (i(), d("div", gs, [
2741
- K(J(C, oe)) ? (i(), d("div", bs, [
2742
+ oe.type === "file" ? (i(), d("div", bs, [
2743
+ K(J(C, oe)) ? (i(), d("div", ys, [
2742
2744
  l("img", {
2743
2745
  src: J(C, oe),
2744
2746
  alt: "alt",
2745
2747
  width: "45",
2746
2748
  class: "rounded-md max-w-[45px] h-[45px] object-cover"
2747
- }, null, 8, ys)
2748
- ])) : (i(), d("div", xs, [
2749
- A(jt, { class: "w-[25px] min-w-[25px] h-[25px]" })
2749
+ }, null, 8, xs)
2750
+ ])) : (i(), d("div", ws, [
2751
+ A(Et, { class: "w-[25px] min-w-[25px] h-[25px]" })
2750
2752
  ]))
2751
2753
  ])) : oe.type === "tiptap-editor" ? (i(), d("div", {
2752
2754
  key: 1,
2753
2755
  class: "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-slate-100 dark:bg-slate-700 text-slate-700 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 transition-colors",
2754
2756
  innerHTML: J(C, oe)
2755
- }, null, 8, ws)) : (i(), d("div", ks, G(J(C, oe)), 1))
2757
+ }, null, 8, ks)) : (i(), d("div", _s, G(J(C, oe)), 1))
2756
2758
  ]))), 128)),
2757
- l("td", _s, [
2758
- l("div", $s, [
2759
+ l("td", $s, [
2760
+ l("div", Cs, [
2759
2761
  l("button", {
2760
2762
  onClick: (oe) => M(C, W),
2761
2763
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-blue-50 dark:hover:bg-slate-600 hover:border-blue-300 dark:hover:border-slate-500 hover:text-blue-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
2762
2764
  }, [
2763
- A(Ka, {
2765
+ A(Ja, {
2764
2766
  width: "24",
2765
2767
  height: "24",
2766
2768
  class: "w-3 h-3"
2767
2769
  })
2768
- ], 8, Cs),
2770
+ ], 8, Vs),
2769
2771
  l("button", {
2770
2772
  onClick: (oe) => N(W),
2771
2773
  class: "text-slate-700 inline-flex items-center justify-center whitespace-nowrap font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 border rounded-md text-xs h-7 w-7 p-0 border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-700 hover:bg-red-50 dark:hover:bg-slate-600 hover:border-red-300 dark:hover:border-slate-500 hover:text-red-600 dark:hover:text-slate-200 transition-all duration-200 shadow-sm"
@@ -2775,14 +2777,14 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2775
2777
  height: "24",
2776
2778
  class: "w-3 h-3"
2777
2779
  })
2778
- ], 8, Vs)
2780
+ ], 8, Ms)
2779
2781
  ])
2780
2782
  ])
2781
- ], 42, ms))), 128))
2783
+ ], 42, vs))), 128))
2782
2784
  ], 2)
2783
2785
  ])
2784
2786
  ]),
2785
- A(ee(Lt), {
2787
+ A(ee(St), {
2786
2788
  visible: v.value,
2787
2789
  title: I.value,
2788
2790
  size: "lg",
@@ -2796,7 +2798,7 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2796
2798
  form: F.value,
2797
2799
  "onUpdate:form": j[2] || (j[2] = (C) => F.value = C)
2798
2800
  }, null, 8, ["schema", "values", "form"]),
2799
- l("div", Ms, [
2801
+ l("div", Ls, [
2800
2802
  l("button", {
2801
2803
  type: "button",
2802
2804
  onClick: j[3] || (j[3] = (C) => v.value = !1),
@@ -2813,7 +2815,7 @@ const Ka = /* @__PURE__ */ X(Wa, [["render", Za]]), Ja = { class: "vs-datatable
2813
2815
  }, 8, ["visible", "title"])
2814
2816
  ]));
2815
2817
  }
2816
- }), Ss = {
2818
+ }), Bs = {
2817
2819
  draw: {
2818
2820
  toolbar: {
2819
2821
  actions: {
@@ -2933,7 +2935,7 @@ function Ne(o) {
2933
2935
  features: (o.features || []).map((e) => Ne(e)).filter(Boolean)
2934
2936
  } : o : null;
2935
2937
  }
2936
- function Bs(o) {
2938
+ function js(o) {
2937
2939
  return o ? o.type === "FeatureCollection" || o.type === "Feature" ? Ne(o) : o.geom ? {
2938
2940
  type: "Feature",
2939
2941
  geometry: Ne({
@@ -2947,7 +2949,7 @@ function Bs(o) {
2947
2949
  properties: {}
2948
2950
  } : null : null;
2949
2951
  }
2950
- const js = {}, Es = {
2952
+ const Es = {}, Is = {
2951
2953
  xmlns: "http://www.w3.org/2000/svg",
2952
2954
  viewBox: "0 0 24 24",
2953
2955
  stroke: "currentColor",
@@ -2957,8 +2959,8 @@ const js = {}, Es = {
2957
2959
  "stroke-linejoin": "round",
2958
2960
  class: "icon icon-tabler icons-tabler-outline icon-tabler-map-pin"
2959
2961
  };
2960
- function Is(o, e) {
2961
- return i(), d("svg", Es, e[0] || (e[0] = [
2962
+ function zs(o, e) {
2963
+ return i(), d("svg", Is, e[0] || (e[0] = [
2962
2964
  l("path", {
2963
2965
  stroke: "none",
2964
2966
  d: "M0 0h24v24H0z",
@@ -2968,7 +2970,7 @@ function Is(o, e) {
2968
2970
  l("path", { d: "M17.657 16.657l-4.243 4.243a2 2 0 0 1 -2.827 0l-4.244 -4.243a8 8 0 1 1 11.314 0z" }, null, -1)
2969
2971
  ]));
2970
2972
  }
2971
- const zs = /* @__PURE__ */ X(js, [["render", Is]]), As = {}, Ts = {
2973
+ const As = /* @__PURE__ */ X(Es, [["render", zs]]), Ts = {}, Fs = {
2972
2974
  xmlns: "http://www.w3.org/2000/svg",
2973
2975
  viewBox: "0 0 24 24",
2974
2976
  fill: "none",
@@ -2978,8 +2980,8 @@ const zs = /* @__PURE__ */ X(js, [["render", Is]]), As = {}, Ts = {
2978
2980
  "stroke-linejoin": "round",
2979
2981
  class: "icon icon-tabler icons-tabler-outline icon-tabler-line"
2980
2982
  };
2981
- function Fs(o, e) {
2982
- return i(), d("svg", Ts, e[0] || (e[0] = [
2983
+ function Os(o, e) {
2984
+ return i(), d("svg", Fs, e[0] || (e[0] = [
2983
2985
  l("path", {
2984
2986
  stroke: "none",
2985
2987
  d: "M0 0h24v24H0z",
@@ -2990,7 +2992,7 @@ function Fs(o, e) {
2990
2992
  l("path", { d: "M7.5 16.5l9 -9" }, null, -1)
2991
2993
  ]));
2992
2994
  }
2993
- const Os = /* @__PURE__ */ X(As, [["render", Fs]]), Ds = {}, Us = {
2995
+ const Ds = /* @__PURE__ */ X(Ts, [["render", Os]]), Us = {}, Ps = {
2994
2996
  xmlns: "http://www.w3.org/2000/svg",
2995
2997
  viewBox: "0 0 24 24",
2996
2998
  fill: "none",
@@ -3000,12 +3002,12 @@ const Os = /* @__PURE__ */ X(As, [["render", Fs]]), Ds = {}, Us = {
3000
3002
  "stroke-linejoin": "round",
3001
3003
  class: "icon icon-tabler icons-tabler-outline icon-tabler-polygon"
3002
3004
  };
3003
- function Ps(o, e) {
3004
- return i(), d("svg", Us, e[0] || (e[0] = [
3005
+ function Rs(o, e) {
3006
+ return i(), d("svg", Ps, e[0] || (e[0] = [
3005
3007
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M19 8m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M5 11m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M15 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"></path><path d="M6.5 9.5l3.5 -3"></path><path d="M14 5.5l3 1.5"></path><path d="M18.5 10l-2.5 7"></path><path d="M13.5 17.5l-7 -5"></path>', 9)
3006
3008
  ]));
3007
3009
  }
3008
- const Rs = /* @__PURE__ */ X(Ds, [["render", Ps]]), Hs = {}, Ns = {
3010
+ const Hs = /* @__PURE__ */ X(Us, [["render", Rs]]), Ns = {}, qs = {
3009
3011
  xmlns: "http://www.w3.org/2000/svg",
3010
3012
  viewBox: "0 0 24 24",
3011
3013
  fill: "none",
@@ -3015,12 +3017,12 @@ const Rs = /* @__PURE__ */ X(Ds, [["render", Ps]]), Hs = {}, Ns = {
3015
3017
  "stroke-linejoin": "round",
3016
3018
  class: "icon icon-tabler icons-tabler-outline icon-tabler-topology-ring-3"
3017
3019
  };
3018
- function qs(o, e) {
3019
- return i(), d("svg", Ns, e[0] || (e[0] = [
3020
+ function Ws(o, e) {
3021
+ return i(), d("svg", qs, e[0] || (e[0] = [
3020
3022
  ye('<path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M8 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 18a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M20 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M8 6a2 2 0 1 0 -4 0a2 2 0 0 0 4 0z"></path><path d="M6 8v8"></path><path d="M18 16v-8"></path><path d="M8 6h8"></path><path d="M16 18h-8"></path>', 9)
3021
3023
  ]));
3022
3024
  }
3023
- const Ws = /* @__PURE__ */ X(Hs, [["render", qs]]), Gs = {}, Zs = {
3025
+ const Gs = /* @__PURE__ */ X(Ns, [["render", Ws]]), Zs = {}, Ks = {
3024
3026
  version: "1.1",
3025
3027
  viewBox: "0 0 14 14",
3026
3028
  xmlns: "http://www.w3.org/2000/svg",
@@ -3028,8 +3030,8 @@ const Ws = /* @__PURE__ */ X(Hs, [["render", qs]]), Gs = {}, Zs = {
3028
3030
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
3029
3031
  class: "fullscreen-icon"
3030
3032
  };
3031
- function Ks(o, e) {
3032
- return i(), d("svg", Zs, e[0] || (e[0] = [
3033
+ function Js(o, e) {
3034
+ return i(), d("svg", Ks, e[0] || (e[0] = [
3033
3035
  l("title", null, null, -1),
3034
3036
  l("desc", null, null, -1),
3035
3037
  l("defs", null, null, -1),
@@ -3058,10 +3060,10 @@ function Ks(o, e) {
3058
3060
  ], -1)
3059
3061
  ]));
3060
3062
  }
3061
- const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-widget flex flex-col gap-2 rounded-xl widget min-w-[200px]" }, Xs = {
3063
+ const Ys = /* @__PURE__ */ X(Zs, [["render", Js]]), Xs = { class: "map-search-widget flex flex-col gap-2 rounded-xl widget min-w-[200px]" }, Qs = {
3062
3064
  key: 0,
3063
3065
  class: "vs-select__options absolute z-50 mt-1 w-full bg-white border border-gray-300 shadow-lg rounded-lg text-sm"
3064
- }, Qs = ["onClick"], er = { class: "relative flex-1 min-w-[140px]" }, tr = ["placeholder"], lr = "https://data.softpro.ua/api-user/gis-url-proxy", or = "https://geo.rv.ua/api-user/dzk.api", nr = /* @__PURE__ */ U({
3066
+ }, er = ["onClick"], tr = { class: "relative flex-1 min-w-[140px]" }, lr = ["placeholder"], or = "https://data.softpro.ua/api-user/gis-url-proxy", nr = "https://geo.rv.ua/api-user/dzk.api", ar = /* @__PURE__ */ U({
3065
3067
  __name: "map-search",
3066
3068
  props: {
3067
3069
  config: {}
@@ -3071,11 +3073,11 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3071
3073
  const t = o, a = e, n = ["here", "xy", "parcel"], s = B(() => {
3072
3074
  const v = t.config?.tools?.filter((x) => n.includes(x));
3073
3075
  return v && v.length ? v : n;
3074
- }), r = B(() => t.config?.placeholder?.trim() || "Пошук…"), u = k(s.value[0] ?? n[0]);
3076
+ }), r = B(() => t.config?.placeholder?.trim() || "Пошук…"), u = w(s.value[0] ?? n[0]);
3075
3077
  ue(s, (v) => {
3076
3078
  v.includes(u.value) || (u.value = v[0]);
3077
3079
  });
3078
- const c = k(""), p = k(!1), f = k(null);
3080
+ const c = w(""), p = w(!1), f = w(null);
3079
3081
  ue(u, () => {
3080
3082
  c.value = "", p.value = !1;
3081
3083
  });
@@ -3156,7 +3158,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3156
3158
  return;
3157
3159
  }
3158
3160
  try {
3159
- const x = new URL(u.value === "here" ? lr : or);
3161
+ const x = new URL(u.value === "here" ? or : nr);
3160
3162
  if (u.value === "here")
3161
3163
  x.searchParams.set("searchtext", v);
3162
3164
  else {
@@ -3181,7 +3183,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3181
3183
  }
3182
3184
  }
3183
3185
  }
3184
- return (v, x) => (i(), d("div", Ys, [
3186
+ return (v, x) => (i(), d("div", Xs, [
3185
3187
  l("form", {
3186
3188
  class: "flex gap-2",
3187
3189
  onSubmit: ke(I, ["prevent"])
@@ -3213,23 +3215,23 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3213
3215
  }, null, -1)
3214
3216
  ]), 2))
3215
3217
  ]),
3216
- p.value ? (i(), d("div", Xs, [
3218
+ p.value ? (i(), d("div", Qs, [
3217
3219
  l("ul", null, [
3218
3220
  (i(!0), d(re, null, fe(s.value, (V) => (i(), d("li", {
3219
3221
  key: V,
3220
3222
  class: "px-3 py-2 cursor-pointer hover:bg-gray-100",
3221
3223
  onClick: ($) => m(V)
3222
- }, G(S(V)), 9, Qs))), 128))
3224
+ }, G(S(V)), 9, er))), 128))
3223
3225
  ])
3224
3226
  ])) : D("", !0)
3225
3227
  ], 512)) : D("", !0),
3226
- l("div", er, [
3228
+ l("div", tr, [
3227
3229
  ae(l("input", {
3228
3230
  "onUpdate:modelValue": x[1] || (x[1] = (V) => c.value = V),
3229
3231
  placeholder: r.value,
3230
3232
  type: "text",
3231
3233
  class: "vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid !pr-8 py-1.5 pl-3 text-sm"
3232
- }, null, 8, tr), [
3234
+ }, null, 8, lr), [
3233
3235
  [
3234
3236
  ve,
3235
3237
  c.value,
@@ -3261,19 +3263,19 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3261
3263
  ], 32)
3262
3264
  ]));
3263
3265
  }
3264
- }), ar = /* @__PURE__ */ X(nr, [["__scopeId", "data-v-3048520a"]]), sr = { class: "bg-white/30 p-1 rounded-md shadow" }, rr = { class: "flex gap-2" }, ir = ["onClick", "title"], ur = ["src"], dr = /* @__PURE__ */ U({
3266
+ }), sr = /* @__PURE__ */ X(ar, [["__scopeId", "data-v-3048520a"]]), rr = { class: "bg-white/30 p-1 rounded-md shadow" }, ir = { class: "flex gap-2" }, ur = ["onClick", "title"], dr = ["src"], cr = /* @__PURE__ */ U({
3265
3267
  __name: "map-layers",
3266
3268
  props: {
3267
3269
  basemaps: {}
3268
3270
  },
3269
3271
  emits: ["onLayerChange"],
3270
3272
  setup(o, { emit: e }) {
3271
- const a = k(Object.keys(o.basemaps)[0]), n = e;
3273
+ const a = w(Object.keys(o.basemaps)[0]), n = e;
3272
3274
  function s(r) {
3273
3275
  n("onLayerChange", r), a.value = r;
3274
3276
  }
3275
- return (r, u) => (i(), d("div", sr, [
3276
- l("div", rr, [
3277
+ return (r, u) => (i(), d("div", rr, [
3278
+ l("div", ir, [
3277
3279
  (i(!0), d(re, null, fe(r.basemaps, (c, p) => (i(), d("div", {
3278
3280
  key: p,
3279
3281
  class: E(["cursor-pointer border rounded-lg overflow-hidden hover:shadow-sm", { "ring-2 ring-blue-500 border-blue-300": a.value === p }]),
@@ -3286,24 +3288,24 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3286
3288
  src: c.preview,
3287
3289
  alt: "",
3288
3290
  class: "w-10 h-10 object-cover"
3289
- }, null, 8, ur)
3290
- ], 10, ir))), 128))
3291
+ }, null, 8, dr)
3292
+ ], 10, ur))), 128))
3291
3293
  ])
3292
3294
  ]));
3293
3295
  }
3294
- }), cr = {
3296
+ }), pr = {
3295
3297
  key: 0,
3296
3298
  class: "absolute inset-0 z-[2000] flex items-center justify-center pointer-events-none bg-black/20"
3297
- }, pr = { class: "bg-black/50 text-white px-6 py-2 rounded-lg text-center max-w-sm mx-4 backdrop-blur-sm" }, fr = { class: "text-sm font-medium" }, mr = { class: "absolute top-4 left-4 z-[1000] w-[calc(100%-20px)] sm:w-[350px]" }, vr = { class: "form-geom__panel flex gap-1 items-start mt-2" }, hr = { class: "flex items-center gap-1" }, gr = ["disabled"], br = { class: "absolute top-4 right-4 z-[1000]" }, yr = { class: "flex flex-col gap-[2px]" }, xr = ["aria-pressed"], wr = ["aria-pressed"], kr = ["aria-pressed"], _r = ["aria-pressed"], $r = { class: "absolute bottom-0 left-0 right-0 z-[1000] bg-white/95 border-t border-gray-200 text-xs text-gray-700 flex items-center gap-4 pt-1" }, Cr = {
3299
+ }, fr = { class: "bg-black/50 text-white px-6 py-2 rounded-lg text-center max-w-sm mx-4 backdrop-blur-sm" }, mr = { class: "text-sm font-medium" }, vr = { class: "absolute top-4 left-4 z-[1000] w-[calc(100%-20px)] sm:w-[350px]" }, hr = { class: "form-geom__panel flex gap-1 items-start mt-2" }, gr = { class: "flex items-center gap-1" }, br = ["disabled"], yr = { class: "absolute top-4 right-4 z-[1000]" }, xr = { class: "flex flex-col gap-[2px]" }, wr = ["aria-pressed"], kr = ["aria-pressed"], _r = ["aria-pressed"], $r = ["aria-pressed"], Cr = { class: "absolute bottom-0 left-0 right-0 z-[1000] bg-white/95 border-t border-gray-200 text-xs text-gray-700 flex items-center gap-4 pt-1" }, Vr = {
3298
3300
  key: 0,
3299
3301
  class: "form-geom__feature flex items-center text-xs transition-all gap-2 w-full"
3300
- }, Vr = { class: "mr-auto" }, Mr = { class: "font-bold" }, Lr = { class: "flex items-center" }, Sr = { class: "text-xs mr-2" }, Br = {
3302
+ }, Mr = { class: "mr-auto" }, Lr = { class: "font-bold" }, Sr = { class: "flex items-center" }, Br = { class: "text-xs mr-2" }, jr = {
3301
3303
  key: 0,
3302
3304
  class: "text-xs"
3303
- }, jr = {
3305
+ }, Er = {
3304
3306
  key: 1,
3305
3307
  class: "text-xs"
3306
- }, Er = /* @__PURE__ */ U({
3308
+ }, Ir = /* @__PURE__ */ U({
3307
3309
  __name: "vs-input-map",
3308
3310
  props: {
3309
3311
  tools: {},
@@ -3318,14 +3320,14 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3318
3320
  },
3319
3321
  emits: ["update:modelValue"],
3320
3322
  setup(o, { emit: e }) {
3321
- const t = Wt(), a = o, n = e, s = k(!1), r = k("");
3323
+ const t = Gt(), a = o, n = e, s = w(!1), r = w("");
3322
3324
  function u() {
3323
3325
  const g = navigator.platform.toUpperCase().indexOf("MAC") >= 0;
3324
3326
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? "Використовуйте два пальці для зуму карти." : "Використовуйте Ctrl + прокрутка для зуму карти.";
3325
3327
  }
3326
- const c = k(null);
3328
+ const c = w(null);
3327
3329
  let p, f, m, y = null;
3328
- const S = k(null), q = (g) => {
3330
+ const S = w(null), q = (g) => {
3329
3331
  g.ctrlKey && g.preventDefault();
3330
3332
  };
3331
3333
  function R() {
@@ -3358,9 +3360,9 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3358
3360
  c.value && (c.value.removeEventListener("wheel", _), c.value.removeEventListener("touchstart", Y)), p && p.off("wheel"), clearTimeout(g);
3359
3361
  };
3360
3362
  }
3361
- const K = k(null), T = k(6), H = k(0), I = k(t?.appContext.config.globalProperties.$settings?.center || [50, 30]), v = k(null), x = De();
3363
+ const K = w(null), T = w(6), H = w(0), I = w(t?.appContext.config.globalProperties.$settings?.center || [50, 30]), v = w(null), x = De();
3362
3364
  let V;
3363
- const $ = k("topo100");
3365
+ const $ = w("topo100");
3364
3366
  function F(g) {
3365
3367
  return g ? g.type === "Polygon" ? {
3366
3368
  type: "MultiPolygon",
@@ -3414,7 +3416,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3414
3416
  function Z() {
3415
3417
  S.value?.click();
3416
3418
  }
3417
- const N = k("");
3419
+ const N = w("");
3418
3420
  function le(g) {
3419
3421
  return g instanceof L.Circle ? "Circle" : g instanceof L.Rectangle ? "Rectangle" : g instanceof L.Polygon && !(g instanceof L.Rectangle) ? "Polygon" : g instanceof L.Polyline && !(g instanceof L.Polygon) ? "Polyline" : g instanceof L.Marker ? "Point" : "Feature";
3420
3422
  }
@@ -3458,7 +3460,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3458
3460
  g && (f.removeLayer(g), J(), C());
3459
3461
  }
3460
3462
  _e(async () => {
3461
- document.addEventListener("wheel", q, { passive: !1 }), await te(), L.drawLocal = Ss;
3463
+ document.addEventListener("wheel", q, { passive: !1 }), await te(), L.drawLocal = Bs;
3462
3464
  const g = a.handleZoom;
3463
3465
  p = L.map(c.value, {
3464
3466
  zoomControl: !1,
@@ -3479,7 +3481,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3479
3481
  }), p.on("zoomend", () => {
3480
3482
  T.value = p.getZoom();
3481
3483
  });
3482
- const Y = Bs(a.modelValue);
3484
+ const Y = js(a.modelValue);
3483
3485
  if (Y) {
3484
3486
  const O = [];
3485
3487
  L.geoJSON(Y).eachLayer((Q) => O.push(Q)), O.length && f.addLayer(O[0]), J(), C(), M();
@@ -3568,7 +3570,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3568
3570
  }
3569
3571
  };
3570
3572
  }
3571
- const Ce = k(!1);
3573
+ const Ce = w(!1);
3572
3574
  return ue(Ce, () => {
3573
3575
  setTimeout(() => {
3574
3576
  p.invalidateSize();
@@ -3591,18 +3593,18 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3591
3593
  "leave-to-class": "opacity-0"
3592
3594
  }, {
3593
3595
  default: Ee(() => [
3594
- s.value && a.handleZoom ? (i(), d("div", cr, [
3595
- l("div", pr, [
3596
- l("p", fr, G(r.value), 1)
3596
+ s.value && a.handleZoom ? (i(), d("div", pr, [
3597
+ l("div", fr, [
3598
+ l("p", mr, G(r.value), 1)
3597
3599
  ])
3598
3600
  ])) : D("", !0)
3599
3601
  ]),
3600
3602
  _: 1
3601
3603
  }),
3602
- l("div", mr, [
3603
- A(ar, { onGoToCoordinates: tt }),
3604
- l("div", vr, [
3605
- l("div", hr, [
3604
+ l("div", vr, [
3605
+ A(sr, { onGoToCoordinates: tt }),
3606
+ l("div", hr, [
3607
+ l("div", gr, [
3606
3608
  l("button", {
3607
3609
  type: "button",
3608
3610
  class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white hover:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-1 transition",
@@ -3613,7 +3615,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3613
3615
  class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white hover:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:ring-offset-1 transition disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-gray-100 disabled:text-gray-400 disabled:border-gray-200 disabled:hover:bg-gray-100 disabled:hover:text-gray-400",
3614
3616
  onClick: Le,
3615
3617
  disabled: H.value === 0
3616
- }, "Export", 8, gr)
3618
+ }, "Export", 8, br)
3617
3619
  ]),
3618
3620
  l("input", {
3619
3621
  ref_key: "importRef",
@@ -3625,8 +3627,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3625
3627
  }, null, 544)
3626
3628
  ])
3627
3629
  ]),
3628
- l("div", br, [
3629
- l("div", yr, [
3630
+ l("div", yr, [
3631
+ l("div", xr, [
3630
3632
  l("button", {
3631
3633
  class: E(["vs-btn", { "vs-active": N.value === "marker" }]),
3632
3634
  "aria-pressed": N.value === "marker",
@@ -3634,8 +3636,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3634
3636
  "aria-label": "Draw point",
3635
3637
  onClick: _[0] || (_[0] = (Y) => se("marker"))
3636
3638
  }, [
3637
- A(zs)
3638
- ], 10, xr),
3639
+ A(As)
3640
+ ], 10, wr),
3639
3641
  l("button", {
3640
3642
  class: E(["vs-btn", { "vs-active": N.value === "polyline" }]),
3641
3643
  "aria-pressed": N.value === "polyline",
@@ -3643,8 +3645,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3643
3645
  "aria-label": "Draw polyline",
3644
3646
  onClick: _[1] || (_[1] = (Y) => se("polyline"))
3645
3647
  }, [
3646
- A(Os)
3647
- ], 10, wr),
3648
+ A(Ds)
3649
+ ], 10, kr),
3648
3650
  l("button", {
3649
3651
  class: E(["vs-btn", { "vs-active": N.value === "polygon" }]),
3650
3652
  "aria-pressed": N.value === "polygon",
@@ -3652,8 +3654,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3652
3654
  "aria-label": "Draw polygon",
3653
3655
  onClick: _[2] || (_[2] = (Y) => se("polygon"))
3654
3656
  }, [
3655
- A(Rs)
3656
- ], 10, kr),
3657
+ A(Hs)
3658
+ ], 10, _r),
3657
3659
  l("button", {
3658
3660
  class: E(["vs-btn", { "vs-active": N.value === "rectangle" }]),
3659
3661
  "aria-pressed": N.value === "rectangle",
@@ -3661,8 +3663,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3661
3663
  "aria-label": "Draw rectangle",
3662
3664
  onClick: _[3] || (_[3] = (Y) => se("rectangle"))
3663
3665
  }, [
3664
- A(Ws)
3665
- ], 10, _r),
3666
+ A(Gs)
3667
+ ], 10, $r),
3666
3668
  l("button", {
3667
3669
  class: "vs-btn mt-5",
3668
3670
  onClick: _[4] || (_[4] = (Y) => {
@@ -3671,33 +3673,33 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3671
3673
  title: "Full Screen",
3672
3674
  "aria-label": "Full Screen"
3673
3675
  }, [
3674
- A(Js, { style: { width: "12px", height: "12px" } })
3676
+ A(Ys, { style: { width: "12px", height: "12px" } })
3675
3677
  ])
3676
3678
  ])
3677
3679
  ]),
3678
3680
  l("div", {
3679
3681
  class: E(["absolute left-4 z-[1000]", v.value ? "bottom-8" : "bottom-4"])
3680
3682
  }, [
3681
- A(dr, {
3683
+ A(cr, {
3682
3684
  basemaps: ee(x),
3683
3685
  onOnLayerChange: Ge
3684
3686
  }, null, 8, ["basemaps"])
3685
3687
  ], 2),
3686
- l("div", $r, [
3687
- v.value ? (i(), d("div", Cr, [
3688
- l("div", Vr, [
3688
+ l("div", Cr, [
3689
+ v.value ? (i(), d("div", Vr, [
3690
+ l("div", Mr, [
3689
3691
  _[7] || (_[7] = ge(" Тип: ", -1)),
3690
- l("span", Mr, G(v.value.type), 1)
3692
+ l("span", Lr, G(v.value.type), 1)
3691
3693
  ]),
3692
- l("div", Lr, [
3693
- l("div", Sr, [
3694
+ l("div", Sr, [
3695
+ l("div", Br, [
3694
3696
  _[8] || (_[8] = ge(" Центр: ", -1)),
3695
3697
  l("b", null, G(v.value.center.lat.toFixed(5)) + ", " + G(v.value.center.lng.toFixed(5)), 1)
3696
3698
  ]),
3697
- v.value.areaKm2 !== null ? (i(), d("div", Br, [
3699
+ v.value.areaKm2 !== null ? (i(), d("div", jr, [
3698
3700
  _[9] || (_[9] = ge(" Площа: ", -1)),
3699
3701
  l("b", null, G(v.value.areaKm2.toFixed(1)) + "км²", 1)
3700
- ])) : (i(), d("div", jr, _[10] || (_[10] = [
3702
+ ])) : (i(), d("div", Er, _[10] || (_[10] = [
3701
3703
  ge(" Площа: ", -1),
3702
3704
  l("b", null, "—", -1)
3703
3705
  ]))),
@@ -3720,10 +3722,10 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3720
3722
  ])
3721
3723
  ], 2));
3722
3724
  }
3723
- }), Ir = /* @__PURE__ */ X(Er, [["__scopeId", "data-v-66e4a27d"]]), zr = ["data-focus"], Ar = { class: "flex items-center" }, Tr = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Fr = ["onClick", "aria-label"], Or = {
3725
+ }), zr = /* @__PURE__ */ X(Ir, [["__scopeId", "data-v-66e4a27d"]]), Ar = ["data-focus"], Tr = { class: "flex items-center" }, Fr = { class: "overflow-hidden text-ellipsis whitespace-nowrap rounded-sm text-[#333] text-[85%] px-0.5 py-[3px] pl-1.5 box-border" }, Or = ["onClick", "aria-label"], Dr = {
3724
3726
  key: 0,
3725
3727
  class: "absolute text-gray-500 truncate pl-2"
3726
- }, Dr = { class: "flex-1 min-w-[2px]" }, Ur = ["placeholder"], Pr = { class: "flex items-center shrink-0" }, Rr = ["disabled"], Hr = /* @__PURE__ */ U({
3728
+ }, Ur = { class: "flex-1 min-w-[2px]" }, Pr = ["placeholder"], Rr = { class: "flex items-center shrink-0" }, Hr = ["disabled"], Nr = /* @__PURE__ */ U({
3727
3729
  __name: "vs-input-tag",
3728
3730
  props: /* @__PURE__ */ ie({
3729
3731
  unique: { type: Boolean, default: !0 },
@@ -3742,7 +3744,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3742
3744
  setup(o, { emit: e }) {
3743
3745
  const t = o, a = e;
3744
3746
  $e(t.style);
3745
- const n = k(null), s = k(null), r = k(null), u = k(!1), c = k(""), p = de(o, "modelValue"), f = B(() => t.placeholder || "Add tag…"), m = B(() => p.value?.length === 0 && c.value === ""), y = B(() => !t.disabled && p.value?.length > 0), S = B(() => t.disabled), q = async () => {
3747
+ const n = w(null), s = w(null), r = w(null), u = w(!1), c = w(""), p = de(o, "modelValue"), f = B(() => t.placeholder || "Add tag…"), m = B(() => p.value?.length === 0 && c.value === ""), y = B(() => !t.disabled && p.value?.length > 0), S = B(() => t.disabled), q = async () => {
3746
3748
  S.value || await je(() => r.value?.focus());
3747
3749
  }, R = (V) => {
3748
3750
  const $ = V.trim();
@@ -3794,8 +3796,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3794
3796
  key: te,
3795
3797
  class: "flex min-w-0 bg-[#e6e6e6] rounded-sm m-0.5 box-border"
3796
3798
  }, [
3797
- l("div", Ar, [
3798
- l("div", Tr, G(F), 1)
3799
+ l("div", Tr, [
3800
+ l("div", Fr, G(F), 1)
3799
3801
  ]),
3800
3802
  l("div", {
3801
3803
  role: "button",
@@ -3813,10 +3815,10 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3813
3815
  }, [
3814
3816
  l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
3815
3817
  ], -1)
3816
- ]), 8, Fr)
3818
+ ]), 8, Or)
3817
3819
  ]))), 128)),
3818
- m.value ? (i(), d("div", Or, G(f.value), 1)) : D("", !0),
3819
- l("div", Dr, [
3820
+ m.value ? (i(), d("div", Dr, G(f.value), 1)) : D("", !0),
3821
+ l("div", Ur, [
3820
3822
  S.value ? D("", !0) : ae((i(), d("input", {
3821
3823
  key: 0,
3822
3824
  ref_key: "inputRef",
@@ -3834,12 +3836,12 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3834
3836
  onBlur: v,
3835
3837
  onKeydown: x,
3836
3838
  placeholder: p.value && p.value.length ? "" : void 0
3837
- }, null, 40, Ur)), [
3839
+ }, null, 40, Pr)), [
3838
3840
  [ve, c.value]
3839
3841
  ])
3840
3842
  ])
3841
3843
  ], 512),
3842
- l("div", Pr, [
3844
+ l("div", Rr, [
3843
3845
  y.value ? (i(), d("button", {
3844
3846
  key: 0,
3845
3847
  type: "button",
@@ -3856,13 +3858,13 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3856
3858
  }, [
3857
3859
  l("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })
3858
3860
  ], -1)
3859
- ]), 8, Rr)) : D("", !0)
3861
+ ]), 8, Hr)) : D("", !0)
3860
3862
  ])
3861
- ], 10, zr)
3863
+ ], 10, Ar)
3862
3864
  ], 2)
3863
3865
  ], 512));
3864
3866
  }
3865
- }), Nr = { class: "relative flex gap-1 bg-white w-full" }, qr = ["disabled", "placeholder"], Wr = /* @__PURE__ */ U({
3867
+ }), qr = { class: "relative flex gap-1 bg-white w-full" }, Wr = ["disabled", "placeholder"], Gr = /* @__PURE__ */ U({
3866
3868
  __name: "vs-input-slug",
3867
3869
  props: /* @__PURE__ */ ie({
3868
3870
  disabled: { type: Boolean },
@@ -3921,14 +3923,14 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3921
3923
  const r = e?.value?.[t.parent || ""]?.toString(), u = n(r);
3922
3924
  a.value = u.toString();
3923
3925
  };
3924
- return (r, u) => (i(), d("div", Nr, [
3926
+ return (r, u) => (i(), d("div", qr, [
3925
3927
  ae(l("input", {
3926
3928
  ref: "vsText",
3927
3929
  disabled: r.disabled,
3928
3930
  placeholder: r.placeholder,
3929
3931
  "onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
3930
3932
  class: "block w-full px-3 py-2 text-sm border border-solid rounded-lg placeholder:text-nowrap border-stone-200 text-stone-800 placeholder:text-stone-400 focus:outline focus:z-10 focus:border-blue-500 focus:ring-blue-500 focus:outline-blue-500"
3931
- }, null, 8, qr), [
3933
+ }, null, 8, Wr), [
3932
3934
  [ve, a.value]
3933
3935
  ]),
3934
3936
  l("button", {
@@ -3937,13 +3939,13 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3937
3939
  }, " Gen ")
3938
3940
  ]));
3939
3941
  }
3940
- }), Gr = /* @__PURE__ */ X(Wr, [["__scopeId", "data-v-b0eba370"]]), Zr = { class: "w-full" }, Kr = {
3942
+ }), Zr = /* @__PURE__ */ X(Gr, [["__scopeId", "data-v-b0eba370"]]), Kr = { class: "w-full" }, Jr = {
3941
3943
  ref: "sortableContainer",
3942
3944
  class: "flex flex-col gap-1"
3943
- }, Jr = ["onDragstart", "onDrop"], Yr = { class: "w-1/3" }, Xr = { class: "w-2/3" }, Qr = ["onClick"], ei = {
3945
+ }, Yr = ["onDragstart", "onDrop"], Xr = { class: "w-1/3" }, Qr = { class: "w-2/3" }, ei = ["onClick"], ti = {
3944
3946
  key: 0,
3945
3947
  class: "text-[14px] text-gray-700"
3946
- }, ti = { class: "mt-2 w-full flex items-center" }, li = ["disabled"], oi = /* @__PURE__ */ U({
3948
+ }, li = { class: "mt-2 w-full flex items-center" }, oi = ["disabled"], ni = /* @__PURE__ */ U({
3947
3949
  __name: "vs-input-key-value",
3948
3950
  props: {
3949
3951
  parent: {},
@@ -3953,7 +3955,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3953
3955
  },
3954
3956
  emits: ["update:modelValue"],
3955
3957
  setup(o, { emit: e }) {
3956
- const t = (K) => `${K}-${Math.random().toString(36).substring(2, 15)}`, a = Ae("values"), n = o, s = e, r = n.addButtonText ?? "Додати", u = n.ignore ?? [], c = k([]), p = k(null);
3958
+ const t = (K) => `${K}-${Math.random().toString(36).substring(2, 15)}`, a = Ae("values"), n = o, s = e, r = n.addButtonText ?? "Додати", u = n.ignore ?? [], c = w([]), p = w(null);
3957
3959
  (() => {
3958
3960
  const K = n.parent && a?.value?.[n.parent] || n.modelValue || {};
3959
3961
  c.value = Object.entries(K).filter(([T]) => !u.includes(T)).map(([T, H]) => ({
@@ -3993,8 +3995,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
3993
3995
  }), s("update:modelValue", T);
3994
3996
  },
3995
3997
  { deep: !0 }
3996
- ), (K, T) => (i(), d("div", Zr, [
3997
- l("div", Kr, [
3998
+ ), (K, T) => (i(), d("div", Kr, [
3999
+ l("div", Jr, [
3998
4000
  (i(!0), d(re, null, fe(c.value, (H, I) => (i(), d("div", {
3999
4001
  key: H.id,
4000
4002
  class: E(["flex items-center gap-2 w-full", { "opacity-50": p.value === I }]),
@@ -4005,14 +4007,14 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4005
4007
  onDrop: (v) => y(I)
4006
4008
  }, [
4007
4009
  T[1] || (T[1] = ye('<button class="cursor-move" data-v-a0f7fbfc><svg fill="#000000" width="20" height="20" viewBox="0 0 36 36" data-v-a0f7fbfc><circle cx="15" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="12" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="24" r="1.5" data-v-a0f7fbfc></circle><circle cx="21" cy="18" r="1.5" data-v-a0f7fbfc></circle><circle cx="15" cy="18" r="1.5" data-v-a0f7fbfc></circle></svg></button>', 1)),
4008
- l("div", Yr, [
4010
+ l("div", Xr, [
4009
4011
  A(Ye, {
4010
4012
  modelValue: H.key,
4011
4013
  "onUpdate:modelValue": (v) => H.key = v,
4012
4014
  placeholder: "Ключ"
4013
4015
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
4014
4016
  ]),
4015
- l("div", Xr, [
4017
+ l("div", Qr, [
4016
4018
  A(Ye, {
4017
4019
  modelValue: H.value,
4018
4020
  "onUpdate:modelValue": (v) => H.value = v,
@@ -4023,15 +4025,15 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4023
4025
  onClick: (v) => R(H.id),
4024
4026
  class: "shrink-0 w-[30px] text-gray-600 h-[30px] rounded-full flex items-center justify-center bg-gray-100 hover:bg-gray-200"
4025
4027
  }, [
4026
- A(ee(ql), {
4028
+ A(ee(Wl), {
4027
4029
  height: "16",
4028
4030
  width: "16"
4029
4031
  })
4030
- ], 8, Qr)
4031
- ], 42, Jr))), 128))
4032
+ ], 8, ei)
4033
+ ], 42, Yr))), 128))
4032
4034
  ], 512),
4033
- c.value.length ? D("", !0) : (i(), d("span", ei, " Дані для відображення відсутні ")),
4034
- l("div", ti, [
4035
+ c.value.length ? D("", !0) : (i(), d("span", ti, " Дані для відображення відсутні ")),
4036
+ l("div", li, [
4035
4037
  l("button", {
4036
4038
  type: "button",
4037
4039
  onClick: q,
@@ -4043,11 +4045,11 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4043
4045
  width: "14"
4044
4046
  }),
4045
4047
  ge(" " + G(ee(r)), 1)
4046
- ], 8, li)
4048
+ ], 8, oi)
4047
4049
  ])
4048
4050
  ]));
4049
4051
  }
4050
- }), ni = /* @__PURE__ */ X(oi, [["__scopeId", "data-v-a0f7fbfc"]]), ai = { class: "flex items-center gap-2 w-full" }, si = ["disabled"], ri = /* @__PURE__ */ U({
4052
+ }), ai = /* @__PURE__ */ X(ni, [["__scopeId", "data-v-a0f7fbfc"]]), si = { class: "flex items-center gap-2 w-full" }, ri = ["disabled"], ii = /* @__PURE__ */ U({
4051
4053
  __name: "vs-input-color",
4052
4054
  props: {
4053
4055
  style: { default: () => ({}) },
@@ -4064,7 +4066,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4064
4066
  get: () => t.modelValue || "#000000",
4065
4067
  set: (r) => n("update:modelValue", r)
4066
4068
  });
4067
- return (r, u) => (i(), d("div", ai, [
4069
+ return (r, u) => (i(), d("div", si, [
4068
4070
  ae(l("input", {
4069
4071
  type: "color",
4070
4072
  "onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c),
@@ -4072,7 +4074,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4072
4074
  ref: "color",
4073
4075
  class: E(["py-1.5 px-1 block w-full bg-white cursor-pointer max-w-[50px]", [r.modelValue ? "" : "text-opacity-50", ee(a)].join(" ")]),
4074
4076
  style: { border: "1px solid #CFD9E0" }
4075
- }, null, 10, si), [
4077
+ }, null, 10, ri), [
4076
4078
  [ve, s.value]
4077
4079
  ]),
4078
4080
  ae(l("input", {
@@ -4083,7 +4085,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4083
4085
  ])
4084
4086
  ]));
4085
4087
  }
4086
- }), ii = { class: "flex items-center gap-2 w-full" }, ui = ["min", "max", "step", "disabled"], di = /* @__PURE__ */ U({
4088
+ }), ui = { class: "flex items-center gap-2 w-full" }, di = ["min", "max", "step", "disabled"], ci = /* @__PURE__ */ U({
4087
4089
  __name: "vs-input-range",
4088
4090
  props: {
4089
4091
  style: { default: () => ({}) },
@@ -4103,7 +4105,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4103
4105
  get: () => Number(t.modelValue ?? t.min),
4104
4106
  set: (r) => n("update:modelValue", Number(r))
4105
4107
  });
4106
- return (r, u) => (i(), d("div", ii, [
4108
+ return (r, u) => (i(), d("div", ui, [
4107
4109
  ae(l("input", {
4108
4110
  type: "range",
4109
4111
  "onUpdate:modelValue": u[0] || (u[0] = (c) => s.value = c),
@@ -4113,7 +4115,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4113
4115
  disabled: r.disabled,
4114
4116
  ref: "range",
4115
4117
  class: E(["w-full cursor-pointer accent-blue-500", [r.modelValue ? "" : "text-opacity-50", ee(a)].join(" ")])
4116
- }, null, 10, ui), [
4118
+ }, null, 10, di), [
4117
4119
  [ve, s.value]
4118
4120
  ]),
4119
4121
  ae(l("input", {
@@ -4125,7 +4127,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4125
4127
  ])
4126
4128
  ]));
4127
4129
  }
4128
- }), ci = ["type", "value", "onInput", "placeholder", "disabled"], pi = /* @__PURE__ */ U({
4130
+ }), pi = ["type", "value", "onInput", "placeholder", "disabled"], fi = /* @__PURE__ */ U({
4129
4131
  __name: "vs-input-array",
4130
4132
  props: /* @__PURE__ */ ie({
4131
4133
  count: { default: 1 },
@@ -4145,7 +4147,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4145
4147
  emits: ["update:modelValue"],
4146
4148
  setup(o) {
4147
4149
  const e = o, { inputClass: t } = $e(e.style), a = de(o, "modelValue");
4148
- Gt(() => {
4150
+ Zt(() => {
4149
4151
  const s = a.value?.length ?? 0;
4150
4152
  s < e.count && (a.value = [
4151
4153
  ...a.value ?? [],
@@ -4169,38 +4171,38 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4169
4171
  style: {
4170
4172
  border: "1px solid #CFD9E0"
4171
4173
  }
4172
- }, null, 42, ci))), 256))
4174
+ }, null, 42, pi))), 256))
4173
4175
  ], 2));
4174
4176
  }
4175
- }), fi = {
4177
+ }), mi = {
4176
4178
  VsInputText: Ye,
4177
- VsInputRadio: gt,
4179
+ VsInputRadio: bt,
4178
4180
  "vs-input-text": Ye,
4179
- "vs-input-password": yl,
4180
- "vs-input-textarea": ka,
4181
- "vs-input-mask": lo,
4182
- "vs-input-number": kl,
4183
- "vs-input-radio": gt,
4184
- "vs-input-select": wt,
4185
- "vs-input-switcher": Bt,
4186
- "vs-input-static": ht,
4187
- "vs-input-container": oa,
4188
- "vs-input-date": go,
4189
- "vs-input-checkbox": vo,
4190
- "vs-input-file": tn,
4191
- "vs-input-html": ht,
4192
- "vs-input-email": ao,
4193
- "vs-input-datatable": Ls,
4194
- "vs-input-map": Ir,
4195
- "vs-input-file-list": En,
4196
- "vs-input-tags": Hr,
4197
- "vs-input-slug": Gr,
4198
- "vs-input-key-value": ni,
4199
- "vs-input-range": di,
4200
- "vs-input-color": ri,
4201
- "vs-input-native-select": wt,
4202
- "vs-input-array": pi
4203
- }, mi = /* @__PURE__ */ U({
4181
+ "vs-input-password": xl,
4182
+ "vs-input-textarea": _a,
4183
+ "vs-input-mask": oo,
4184
+ "vs-input-number": _l,
4185
+ "vs-input-radio": bt,
4186
+ "vs-input-select": kt,
4187
+ "vs-input-switcher": jt,
4188
+ "vs-input-static": gt,
4189
+ "vs-input-container": na,
4190
+ "vs-input-date": bo,
4191
+ "vs-input-checkbox": ho,
4192
+ "vs-input-file": ln,
4193
+ "vs-input-html": gt,
4194
+ "vs-input-email": so,
4195
+ "vs-input-datatable": Ss,
4196
+ "vs-input-map": zr,
4197
+ "vs-input-file-list": In,
4198
+ "vs-input-tags": Nr,
4199
+ "vs-input-slug": Zr,
4200
+ "vs-input-key-value": ai,
4201
+ "vs-input-range": ci,
4202
+ "vs-input-color": ii,
4203
+ "vs-input-native-select": kt,
4204
+ "vs-input-array": fi
4205
+ }, vi = /* @__PURE__ */ U({
4204
4206
  __name: "behavior",
4205
4207
  props: {
4206
4208
  api: {},
@@ -4232,10 +4234,10 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4232
4234
  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"
4233
4235
  }, G(n.button), 1));
4234
4236
  }
4235
- }), vi = { class: "flex flex-col gap-1 w-full" }, hi = {
4237
+ }), hi = { class: "flex flex-col gap-1 w-full" }, gi = {
4236
4238
  key: 0,
4237
4239
  class: "text-sm text-gray-500"
4238
- }, zt = /* @__PURE__ */ U({
4240
+ }, At = /* @__PURE__ */ U({
4239
4241
  __name: "vs-compact-form-layout",
4240
4242
  props: /* @__PURE__ */ ie({
4241
4243
  item: { default: {} },
@@ -4250,7 +4252,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4250
4252
  }),
4251
4253
  emits: ["update:modelValue"],
4252
4254
  setup(o) {
4253
- const e = o, t = de(o, "modelValue"), a = B(() => gl[`${e.layout}`]), n = B(() => fi?.[`vs-input-${e.item.type}`]), s = B(() => {
4255
+ const e = o, t = de(o, "modelValue"), a = B(() => bl[`${e.layout}`]), n = B(() => mi?.[`vs-input-${e.item.type}`]), s = B(() => {
4254
4256
  const u = ee(n);
4255
4257
  if (!u) return /* @__PURE__ */ new Set();
4256
4258
  const c = u.props ?? u.__vccOpts?.props;
@@ -4272,14 +4274,14 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4272
4274
  l("div", {
4273
4275
  class: E(["flex w-full", `${e.item.type}-component`])
4274
4276
  }, [
4275
- l("div", vi, [
4277
+ l("div", hi, [
4276
4278
  (i(), me(Fe(n.value), Te(r.value, {
4277
4279
  modelValue: t.value,
4278
4280
  "onUpdate:modelValue": c[0] || (c[0] = (p) => t.value = p)
4279
4281
  }), null, 16, ["modelValue"])),
4280
- u.item.description && e.layout !== "settings" ? (i(), d("p", hi, G(u.item.description), 1)) : D("", !0)
4282
+ u.item.description && e.layout !== "settings" ? (i(), d("p", gi, G(u.item.description), 1)) : D("", !0)
4281
4283
  ]),
4282
- u.item.behavior?.api && u.item.behavior?.button ? (i(), me(mi, Te({ key: 0 }, u.item.behavior, { value: t.value }), null, 16, ["value"])) : D("", !0)
4284
+ u.item.behavior?.api && u.item.behavior?.button ? (i(), me(vi, Te({ key: 0 }, u.item.behavior, { value: t.value }), null, 16, ["value"])) : D("", !0)
4283
4285
  ], 2)
4284
4286
  ]),
4285
4287
  _: 1
@@ -4287,7 +4289,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4287
4289
  [Qe, !u.item.hidden]
4288
4290
  ]);
4289
4291
  }
4290
- }), gi = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, bi = { class: "vs-compact-form-navigation__rail mt-[6px]" }, yi = ["onClick"], xi = /* @__PURE__ */ U({
4292
+ }), bi = { class: "text-sm text-gray-800 mb-[4px] font-medium dark:text-neutral-300" }, yi = { class: "vs-compact-form-navigation__rail mt-[6px]" }, xi = ["onClick"], wi = /* @__PURE__ */ U({
4291
4293
  __name: "vs-compact-form-navigation",
4292
4294
  props: {
4293
4295
  target: {},
@@ -4297,7 +4299,7 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4297
4299
  width: { default: 400 }
4298
4300
  },
4299
4301
  setup(o, { expose: e }) {
4300
- const t = o, a = k([]), n = k(""), s = k(""), r = B(() => !!t.enabled), u = B(() => [
4302
+ const t = o, a = w([]), n = w(""), s = w(""), r = B(() => !!t.enabled), u = B(() => [
4301
4303
  "vs-compact-form-navigation flex flex-col pl-[6px] pt-[8px] pr-[8px]",
4302
4304
  "sticky top-0 self-start shrink-0",
4303
4305
  "max-h-full min-h-0 overflow-y-auto"
@@ -4419,8 +4421,8 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4419
4421
  class: E(u.value),
4420
4422
  style: be(c.value)
4421
4423
  }, [
4422
- l("h2", gi, G(M.title), 1),
4423
- l("div", bi, [
4424
+ l("h2", bi, G(M.title), 1),
4425
+ l("div", yi, [
4424
4426
  (i(!0), d(re, null, fe(a.value, (N) => (i(), d("div", {
4425
4427
  key: N.id,
4426
4428
  class: E([
@@ -4439,34 +4441,34 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4439
4441
  ])
4440
4442
  }, [
4441
4443
  l("span", null, G(N.text), 1)
4442
- ], 10, yi)
4444
+ ], 10, xi)
4443
4445
  ], 2))), 128))
4444
4446
  ])
4445
4447
  ], 6)) : D("", !0);
4446
4448
  }
4447
- }), wi = /* @__PURE__ */ X(xi, [["__scopeId", "data-v-1584a562"]]), At = {
4449
+ }), ki = /* @__PURE__ */ X(wi, [["__scopeId", "data-v-1584a562"]]), Tt = {
4448
4450
  required: "Це поле є обов’язковим",
4449
4451
  email: "Неправильний email"
4450
- }, ki = (o) => o ? !1 : At.required, _i = (o) => {
4452
+ }, _i = (o) => o ? !1 : Tt.required, $i = (o) => {
4451
4453
  const e = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
4452
- return o ? e.test(o) ? !1 : At.email : !1;
4453
- }, $i = (o, e) => {
4454
+ return o ? e.test(o) ? !1 : Tt.email : !1;
4455
+ }, Ci = (o, e) => {
4454
4456
  const t = e.pattern ?? e.regexp;
4455
4457
  return !(typeof t == "string" ? new RegExp(t) : t).test(o) && o ? e.message : !1;
4456
- }, Ci = (o, e) => !1, Vi = (o, e) => {
4458
+ }, Vi = (o, e) => !1, Mi = (o, e) => {
4457
4459
  switch (typeof e == "string" ? e : e.type) {
4458
4460
  case "required":
4459
- return ki(o);
4460
- case "email":
4461
4461
  return _i(o);
4462
+ case "email":
4463
+ return $i(o);
4462
4464
  case "regexp":
4463
- return $i(o, e);
4465
+ return Ci(o, e);
4464
4466
  case "custom":
4465
- return Ci();
4467
+ return Vi();
4466
4468
  default:
4467
4469
  return !1;
4468
4470
  }
4469
- }, Mi = {
4471
+ }, Li = {
4470
4472
  autocomplete: "select",
4471
4473
  combobox: "select",
4472
4474
  datepicker: "date",
@@ -4479,16 +4481,16 @@ const Js = /* @__PURE__ */ X(Gs, [["render", Ks]]), Ys = { class: "map-search-wi
4479
4481
  dropzone: "file"
4480
4482
  // mask: 'text',
4481
4483
  };
4482
- function _t(o) {
4484
+ function $t(o) {
4483
4485
  const e = o.toLowerCase();
4484
- return Mi[e] || e;
4486
+ return Li[e] || e;
4485
4487
  }
4486
- function Li(o, e = !1) {
4488
+ function Si(o, e = !1) {
4487
4489
  if (Array.isArray(o)) {
4488
4490
  const a = [];
4489
4491
  return o.forEach((n) => {
4490
4492
  const s = { ...n };
4491
- s.name = (n.name || n.id || n.key || "").toString(), s.type = _t(n.type), s.label = n.label || n.ua, s.rules = n.rules || n.validators, s.type === "email" && !s.rules && (s.rules = ["email"]), n.data && (s.api = `/api/suggest/${n.data}`), s.disabled = e || s.disabled, a.push(s);
4493
+ s.name = (n.name || n.id || n.key || "").toString(), s.type = $t(n.type), s.label = n.label || n.ua, s.rules = n.rules || n.validators, s.type === "email" && !s.rules && (s.rules = ["email"]), n.data && (s.api = `/api/suggest/${n.data}`), s.disabled = e || s.disabled, a.push(s);
4492
4494
  }), a;
4493
4495
  }
4494
4496
  const t = [];
@@ -4496,7 +4498,7 @@ function Li(o, e = !1) {
4496
4498
  const n = {
4497
4499
  name: a[0],
4498
4500
  ...a[1],
4499
- type: _t(a[1].type),
4501
+ type: $t(a[1].type),
4500
4502
  label: a[1].label || a[1].ua,
4501
4503
  rules: a[1].rules || a[1].validators,
4502
4504
  disabled: e
@@ -4504,16 +4506,16 @@ function Li(o, e = !1) {
4504
4506
  n.type === "email" && !n.rules && (n.rules = ["email"]), a[1].type.includes("list") && (n.multiple = !0), !n.api && a[1].data && (n.api = `/api/suggest/${a[1].data}`), t.push(n);
4505
4507
  }), t;
4506
4508
  }
4507
- function Si(o, e, t = !1) {
4508
- const a = B(() => Li(
4509
+ function Bi(o, e, t = !1) {
4510
+ const a = B(() => Si(
4509
4511
  (Array.isArray(e), e),
4510
4512
  typeof t == "boolean" ? t : t.value
4511
- )), n = k({});
4513
+ )), n = w({});
4512
4514
  function s(p) {
4513
4515
  const f = p?.conditions;
4514
4516
  if (!f) return !0;
4515
4517
  const m = Array.isArray(f) ? f[0] : f, y = o?.value?.[m];
4516
- return It(y, f);
4518
+ return zt(y, f);
4517
4519
  }
4518
4520
  const r = (p = a.value, f = !0) => (p.forEach((m) => {
4519
4521
  if (m.rules) {
@@ -4523,7 +4525,7 @@ function Si(o, e, t = !1) {
4523
4525
  }
4524
4526
  let y = !1, S = null;
4525
4527
  m.rules.forEach((q) => {
4526
- const R = Vi(o.value[m.name], q);
4528
+ const R = Mi(o.value[m.name], q);
4527
4529
  R && (y = !0, !S && typeof R == "string" && (S = R));
4528
4530
  }), y && S ? n.value[m.name] = S : delete n.value[m.name];
4529
4531
  }
@@ -4538,7 +4540,7 @@ function Si(o, e, t = !1) {
4538
4540
  visibleSchema: u
4539
4541
  };
4540
4542
  }
4541
- const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4543
+ const ji = { class: "flex w-full h-full min-h-0 gap-6" }, Ei = {
4542
4544
  key: 0,
4543
4545
  "data-orientation": "horizontal",
4544
4546
  role: "none",
@@ -4568,7 +4570,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4568
4570
  validate: c,
4569
4571
  reset: p,
4570
4572
  visibleSchema: f
4571
- } = Si(r, n.schema, Zt(n, "disabled")), m = k(null), y = k(null), S = B(() => n.navigation), q = B(() => n.navWidth), R = B(() => n.style?.columns), K = Object.freeze({ container: 12, label: 3 }), T = B(() => n.columns ?? R.value ?? K), H = B(() => n.columns != null || R.value != null), I = B(() => H.value ? "horizontal" : n.layout), v = (F) => F?.columns ? "horizontal" : I.value, x = (F) => F?.columns ?? T.value, V = () => {
4573
+ } = Bi(r, n.schema, Kt(n, "disabled")), m = w(null), y = w(null), S = B(() => n.navigation), q = B(() => n.navWidth), R = B(() => n.style?.columns), K = Object.freeze({ container: 12, label: 3 }), T = B(() => n.columns ?? R.value ?? K), H = B(() => n.columns != null || R.value != null), I = B(() => H.value ? "horizontal" : n.layout), v = (F) => F?.columns ? "horizontal" : I.value, x = (F) => F?.columns ?? T.value, V = () => {
4572
4574
  a("update:modelValue", r.value), c(), a("handle-submit", r.value);
4573
4575
  };
4574
4576
  e({
@@ -4590,7 +4592,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4590
4592
  const J = Object.keys(F), M = Object.keys(te);
4591
4593
  return J.length !== M.length ? !1 : J.every((Z) => F[Z] === te[Z]);
4592
4594
  }
4593
- return vt("form", s), vt("values", r), (F, te) => (i(), d("div", Bi, [
4595
+ return ht("form", s), ht("values", r), (F, te) => (i(), d("div", ji, [
4594
4596
  l("div", {
4595
4597
  class: "flex-1 min-h-0 overflow-y-auto",
4596
4598
  ref_key: "formScrollContainer",
@@ -4606,7 +4608,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4606
4608
  key: J.name,
4607
4609
  class: E(v(J) === "horizontal" ? "col-span-12" : `col-span-${J.col || 12}`)
4608
4610
  }, [
4609
- A(zt, {
4611
+ A(At, {
4610
4612
  style: be(F.style),
4611
4613
  item: J,
4612
4614
  layout: v(J),
@@ -4618,11 +4620,11 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4618
4620
  },
4619
4621
  error: ee(u)[J.name]
4620
4622
  }, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
4621
- v(J) === "settings" && M + 1 !== ee(f).length ? (i(), d("div", ji)) : D("", !0)
4623
+ v(J) === "settings" && M + 1 !== ee(f).length ? (i(), d("div", Ei)) : D("", !0)
4622
4624
  ], 2))), 128))
4623
4625
  ], 34)
4624
4626
  ], 512),
4625
- A(wi, {
4627
+ A(ki, {
4626
4628
  target: m.value,
4627
4629
  "scroll-container": y.value,
4628
4630
  enabled: S.value,
@@ -4630,7 +4632,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4630
4632
  }, null, 8, ["target", "scroll-container", "enabled", "width"])
4631
4633
  ]));
4632
4634
  }
4633
- }), Ei = { class: "relative" }, Ii = { class: "w-full h-full fixed top-0 start-0 z-[1000] bg-black bg-opacity-50" }, zi = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, Ai = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, Ti = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Fi = { class: "p-4 mim-h-0 h-full overflow-auto" }, Oi = /* @__PURE__ */ U({
4635
+ }), Ii = { class: "relative" }, zi = { class: "w-full h-full fixed top-0 start-0 z-[1000] bg-black bg-opacity-50" }, Ai = { class: "m-[10px] fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 min-h-0 h-fit max-h-[80vh] overflow-hidden opacity-1 flex flex-col bg-white dark:bg-[#1A1A1A] border dark:border-[#454545] pointer-events-auto shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)] rounded-xl lg:w-7/12 w-11/12" }, Ti = { class: "py-2.5 px-4 flex justify-between items-center border-0 border-b border-solid border-gray-200 dark:border-b-[#454545]" }, Fi = { class: "font-medium text-gray-800 dark:text-[#ffffff]" }, Oi = { class: "p-4 mim-h-0 h-full overflow-auto" }, Di = /* @__PURE__ */ U({
4634
4636
  __name: "modal-edit",
4635
4637
  props: {
4636
4638
  schema: {},
@@ -4641,7 +4643,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4641
4643
  },
4642
4644
  emits: ["close", "save", "edit"],
4643
4645
  setup(o, { emit: e }) {
4644
- const t = o, a = e, n = k(t.schema), s = k(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), r = k({}), u = k(), c = k(t.mode);
4646
+ const t = o, a = e, n = w(t.schema), s = w(t.defaultValue ? JSON.parse(JSON.stringify(t.defaultValue)) : {}), r = w({}), u = w(), c = w(t.mode);
4645
4647
  async function p() {
4646
4648
  const m = r.value.validate();
4647
4649
  if (m) {
@@ -4726,11 +4728,11 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4726
4728
  message: m.message || "Unexpected error"
4727
4729
  }), console.error(m);
4728
4730
  }
4729
- }), (m, y) => (i(), d("div", Ei, [
4730
- l("div", Ii, [
4731
- l("div", zi, [
4732
- l("div", Ai, [
4733
- l("h3", Ti, G(c.value === "add" ? "Додати" : "Змінити"), 1),
4731
+ }), (m, y) => (i(), d("div", Ii, [
4732
+ l("div", zi, [
4733
+ l("div", Ai, [
4734
+ l("div", Ti, [
4735
+ l("h3", Fi, G(c.value === "add" ? "Додати" : "Змінити"), 1),
4734
4736
  l("button", {
4735
4737
  onClick: f,
4736
4738
  type: "button",
@@ -4754,7 +4756,7 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4754
4756
  ], -1)
4755
4757
  ]))
4756
4758
  ]),
4757
- l("div", Fi, [
4759
+ l("div", Oi, [
4758
4760
  n.value ? (i(), me(We, {
4759
4761
  key: 0,
4760
4762
  schema: n.value,
@@ -4780,14 +4782,14 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4780
4782
  ])
4781
4783
  ]));
4782
4784
  }
4783
- }), $t = (o = { mode: "edit", schema: null }) => new Promise((e) => {
4784
- const { close: t } = Kt({
4785
+ }), Ct = (o = { mode: "edit", schema: null }) => new Promise((e) => {
4786
+ const { close: t } = Jt({
4785
4787
  title: o.mode === "add" ? "Додати" : "Редагувати",
4786
4788
  template: "",
4787
4789
  visible: !0,
4788
4790
  size: "medium",
4789
4791
  closeClickBack: !0,
4790
- content: Oi,
4792
+ content: Di,
4791
4793
  contentProps: {
4792
4794
  ...o,
4793
4795
  onClose: () => {
@@ -4801,34 +4803,34 @@ const Bi = { class: "flex w-full h-full min-h-0 gap-6" }, ji = {
4801
4803
  });
4802
4804
  We.install = function(e) {
4803
4805
  e.component("VForm", We), Object.assign(e.config.globalProperties, {
4804
- $form: $t
4805
- }), e.provide("form", $t), window.v3plugin || (window.v3plugin = {});
4806
+ $form: Ct
4807
+ }), e.provide("form", Ct), window.v3plugin || (window.v3plugin = {});
4806
4808
  };
4807
4809
  export {
4808
- Oi as ModalEdit,
4810
+ Di as ModalEdit,
4809
4811
  We as VForm,
4810
- pi as VsInputArray,
4811
- vo as VsInputCheckbox,
4812
- ri as VsInputColor,
4813
- oa as VsInputContainer,
4814
- go as VsInputDate,
4815
- ao as VsInputEmail,
4816
- tn as VsInputFile,
4817
- En as VsInputFileList,
4818
- ni as VsInputKeyValue,
4819
- lo as VsInputMask,
4820
- kl as VsInputNumber,
4821
- gt as VsInputRadio,
4822
- di as VsInputRange,
4823
- wt as VsInputSelect,
4824
- Gr as VsInputSlug,
4825
- ht as VsInputStatic,
4826
- Bt as VsInputSwitcher,
4827
- Hr as VsInputTag,
4812
+ fi as VsInputArray,
4813
+ ho as VsInputCheckbox,
4814
+ ii as VsInputColor,
4815
+ na as VsInputContainer,
4816
+ bo as VsInputDate,
4817
+ so as VsInputEmail,
4818
+ ln as VsInputFile,
4819
+ In as VsInputFileList,
4820
+ ai as VsInputKeyValue,
4821
+ oo as VsInputMask,
4822
+ _l as VsInputNumber,
4823
+ bt as VsInputRadio,
4824
+ ci as VsInputRange,
4825
+ kt as VsInputSelect,
4826
+ Zr as VsInputSlug,
4827
+ gt as VsInputStatic,
4828
+ jt as VsInputSwitcher,
4829
+ Nr as VsInputTag,
4828
4830
  Ye as VsInputText,
4829
- ka as VsInputTextarea,
4831
+ _a as VsInputTextarea,
4830
4832
  We as default,
4831
- fi as inputs,
4832
- Ls as vsInputDatatable,
4833
- Ir as vsInputMap
4833
+ mi as inputs,
4834
+ Ss as vsInputDatatable,
4835
+ zr as vsInputMap
4834
4836
  };