@opengis/form 0.0.157 → 0.0.159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ce, ref as L, createElementBlock as p, openBlock as i, Fragment as Se, createElementVNode as c, createBlock as xe, renderSlot as at, createVNode as J, unref as E, Teleport as Qt, createCommentVNode as
|
|
1
|
+
import { defineComponent as ce, ref as L, createElementBlock as p, openBlock as i, Fragment as Se, createElementVNode as c, createBlock as xe, renderSlot as at, createVNode as J, unref as E, Teleport as Qt, createCommentVNode as H, normalizeStyle as Me, toDisplayString as de, computed as h, mergeProps as zt, createTextVNode as He, normalizeProps as on, guardReactiveProps as rn, onMounted as et, onUnmounted as nl, normalizeClass as ae, mergeModels as Pe, useModel as je, withDirectives as De, vModelText as Ke, useAttrs as Un, vModelCheckbox as zn, resolveDynamicComponent as ct, withCtx as rt, withModifiers as Oe, onBeforeUnmount as Wt, watch as me, vModelRadio as Hn, inject as nt, renderList as Ie, reactive as sn, vModelDynamic as Aa, vShow as Pt, resolveComponent as kt, Transition as un, isRef as Tl, nextTick as Qe, defineAsyncComponent as Ia, createStaticVNode as dn, useSlots as Ta, getCurrentInstance as Wn, watchEffect as ul, withKeys as Fa, toRef as Ea, provide as Jl } from "vue";
|
|
2
2
|
import { Info as Jt, Check as qn, Mail as Ba, Phone as Oa, Table as Pa, FileCode as Ra, FileText as Fl, FileArchive as Na, Trash2 as el, Eye as Kn, Download as cn, Plus as _t, Upload as Gn, Search as Bl, ChevronDown as pl, X as Vt, GripVertical as ll, Pencil as ja, Circle as Ua, MapPin as Yn, Ruler as Zn, Maximize as za, ZoomIn as Ha, LoaderCircle as Jn, Copy as Wa, ChevronRight as qa, ChevronLeft as Ka } from "lucide-vue-next";
|
|
3
3
|
import { notify as Ve, VsModal as Ol, modal as Ga } from "@opengis/core";
|
|
4
4
|
const Xn = /* @__PURE__ */ ce({
|
|
@@ -34,7 +34,7 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
34
34
|
key: 0,
|
|
35
35
|
style: Me(a.value),
|
|
36
36
|
class: "fixed z-[9999] max-w-xs p-2 bg-gray-900 text-white text-xs rounded-lg shadow-lg pointer-events-none"
|
|
37
|
-
}, de(s.text), 5)) :
|
|
37
|
+
}, de(s.text), 5)) : H("", !0)
|
|
38
38
|
]))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
@@ -66,16 +66,16 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
66
66
|
return (s, r) => (i(), p("div", Ya, [
|
|
67
67
|
a.value ? (i(), p("div", Za, [
|
|
68
68
|
c("span", Ja, de(l.value), 1),
|
|
69
|
-
n.value ? (i(), p("span", Xa, "*")) :
|
|
69
|
+
n.value ? (i(), p("span", Xa, "*")) : H("", !0),
|
|
70
70
|
o.value ? (i(), xe(Xn, {
|
|
71
71
|
key: 1,
|
|
72
72
|
text: o.value
|
|
73
|
-
}, null, 8, ["text"])) :
|
|
74
|
-
])) :
|
|
73
|
+
}, null, 8, ["text"])) : H("", !0)
|
|
74
|
+
])) : H("", !0),
|
|
75
75
|
at(s.$slots, "default", zt(s.$attrs, {
|
|
76
76
|
class: { "opacity-60": s.item.disabled }
|
|
77
77
|
})),
|
|
78
|
-
s.error ? (i(), p("span", Qa, de(s.error), 1)) :
|
|
78
|
+
s.error ? (i(), p("span", Qa, de(s.error), 1)) : H("", !0)
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
81
|
}), to = { class: "w-full relative flex flex-row items-center gap-2" }, lo = {
|
|
@@ -123,19 +123,19 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
123
123
|
style: Me(r.value)
|
|
124
124
|
}, [
|
|
125
125
|
He(de(l.value) + " ", 1),
|
|
126
|
-
f.item?.rules?.includes("required") && l.value ? (i(), p("span", lo, "*")) :
|
|
126
|
+
f.item?.rules?.includes("required") && l.value ? (i(), p("span", lo, "*")) : H("", !0),
|
|
127
127
|
a.value ? (i(), xe(Xn, {
|
|
128
128
|
key: 1,
|
|
129
129
|
text: a.value
|
|
130
|
-
}, null, 8, ["text"])) :
|
|
131
|
-
], 4)) :
|
|
130
|
+
}, null, 8, ["text"])) : H("", !0)
|
|
131
|
+
], 4)) : H("", !0),
|
|
132
132
|
c("div", {
|
|
133
133
|
class: "flex-1 min-w-0",
|
|
134
134
|
style: Me(u.value)
|
|
135
135
|
}, [
|
|
136
136
|
at(f.$slots, "default", on(rn(f.$attrs)))
|
|
137
137
|
], 4),
|
|
138
|
-
f.error ? (i(), p("span", no, de(f.error), 1)) :
|
|
138
|
+
f.error ? (i(), p("span", no, de(f.error), 1)) : H("", !0)
|
|
139
139
|
]));
|
|
140
140
|
}
|
|
141
141
|
}), oo = { class: "w-full relative" }, ro = {
|
|
@@ -158,7 +158,7 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
158
158
|
setup(e) {
|
|
159
159
|
return (t, l) => (i(), p("div", oo, [
|
|
160
160
|
at(t.$slots, "default", on(rn(t.$attrs))),
|
|
161
|
-
t.error ? (i(), p("span", ro, de(t.error), 1)) :
|
|
161
|
+
t.error ? (i(), p("span", ro, de(t.error), 1)) : H("", !0)
|
|
162
162
|
]));
|
|
163
163
|
}
|
|
164
164
|
}), io = { class: "flex-1 min-w-0" }, uo = {
|
|
@@ -208,13 +208,13 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
208
208
|
c("div", io, [
|
|
209
209
|
r.ua || r.label ? (i(), p("p", uo, [
|
|
210
210
|
c("span", co, de(r.item[l.value] || r.ua || r.label), 1),
|
|
211
|
-
n.value ? (i(), p("span", fo, "*")) :
|
|
212
|
-
])) :
|
|
211
|
+
n.value ? (i(), p("span", fo, "*")) : H("", !0)
|
|
212
|
+
])) : H("", !0),
|
|
213
213
|
a.value ? (i(), p("p", {
|
|
214
214
|
key: 1,
|
|
215
215
|
class: "text-xs text-slate-500 dark:text-slate-400",
|
|
216
216
|
innerHTML: a.value
|
|
217
|
-
}, null, 8, po)) :
|
|
217
|
+
}, null, 8, po)) : H("", !0)
|
|
218
218
|
]),
|
|
219
219
|
c("div", {
|
|
220
220
|
class: ae(["w-full", ["select", "native-select"].includes(r.item.type) ? "md:w-[30%]" : "md:w-auto"])
|
|
@@ -222,7 +222,7 @@ const Xn = /* @__PURE__ */ ce({
|
|
|
222
222
|
at(r.$slots, "default", on(rn(r.$attrs)))
|
|
223
223
|
], 2)
|
|
224
224
|
], 2),
|
|
225
|
-
o.value ? (i(), p("p", mo, de(o.value), 1)) :
|
|
225
|
+
o.value ? (i(), p("p", mo, de(o.value), 1)) : H("", !0)
|
|
226
226
|
], 2));
|
|
227
227
|
}
|
|
228
228
|
}), go = {
|
|
@@ -437,7 +437,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
437
437
|
key: 0,
|
|
438
438
|
class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
|
|
439
439
|
style: Me({ background: u.value })
|
|
440
|
-
}, null, 4)) :
|
|
440
|
+
}, null, 4)) : H("", !0),
|
|
441
441
|
v.value ? (i(), p("span", {
|
|
442
442
|
key: 1,
|
|
443
443
|
class: "inline-block h-4 w-4",
|
|
@@ -453,7 +453,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
453
453
|
key: 3,
|
|
454
454
|
class: "h-4 w-4",
|
|
455
455
|
style: Me(x.value)
|
|
456
|
-
}, null, 8, ["style"])) :
|
|
456
|
+
}, null, 8, ["style"])) : H("", !0),
|
|
457
457
|
at(C.$slots, "default", {}, () => [
|
|
458
458
|
He(de(C.label), 1)
|
|
459
459
|
])
|
|
@@ -529,7 +529,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
529
529
|
key: 0,
|
|
530
530
|
class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
|
|
531
531
|
style: Me({ background: v.value })
|
|
532
|
-
}, null, 4)) :
|
|
532
|
+
}, null, 4)) : H("", !0),
|
|
533
533
|
_.value ? (i(), p("span", {
|
|
534
534
|
key: 1,
|
|
535
535
|
class: "inline-block h-4 w-4",
|
|
@@ -545,8 +545,8 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
545
545
|
key: 1,
|
|
546
546
|
class: "h-4 w-4",
|
|
547
547
|
style: Me(C.value)
|
|
548
|
-
}, null, 8, ["style"])) :
|
|
549
|
-
])) :
|
|
548
|
+
}, null, 8, ["style"])) : H("", !0)
|
|
549
|
+
])) : H("", !0),
|
|
550
550
|
at(w.$slots, "default", {}, () => [
|
|
551
551
|
He(de(w.label), 1)
|
|
552
552
|
])
|
|
@@ -640,7 +640,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
640
640
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o),
|
|
641
641
|
error: a.error || ""
|
|
642
642
|
}, null, 8, ["modelValue", "error"]),
|
|
643
|
-
a.rules?.includes("required") ? (i(), p("span", Oo, "*")) :
|
|
643
|
+
a.rules?.includes("required") ? (i(), p("span", Oo, "*")) : H("", !0),
|
|
644
644
|
a.i ? (i(), p("button", {
|
|
645
645
|
key: 1,
|
|
646
646
|
class: "cursor-pointer",
|
|
@@ -649,7 +649,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
649
649
|
}, ["prevent"]))
|
|
650
650
|
}, [
|
|
651
651
|
J(E(Jt), { class: "h-4 w-4 text-gray-500" })
|
|
652
|
-
], 8, Po)) :
|
|
652
|
+
], 8, Po)) : H("", !0)
|
|
653
653
|
])) : (i(), p("button", {
|
|
654
654
|
key: 1,
|
|
655
655
|
type: "button",
|
|
@@ -903,7 +903,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
903
903
|
l.value == t.value ? (i(), p("span", {
|
|
904
904
|
key: 0,
|
|
905
905
|
class: ae(["w-[12px] h-[12px] shrink-0 rounded-full", [`bg-${t.style?.primaryColor || "blue"}-500`]])
|
|
906
|
-
}, null, 2)) :
|
|
906
|
+
}, null, 2)) : H("", !0)
|
|
907
907
|
], 2),
|
|
908
908
|
t.html ? (i(), p("div", {
|
|
909
909
|
key: 0,
|
|
@@ -914,7 +914,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
914
914
|
key: 0,
|
|
915
915
|
class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
|
|
916
916
|
style: Me({ background: s.value })
|
|
917
|
-
}, null, 4)) :
|
|
917
|
+
}, null, 4)) : H("", !0),
|
|
918
918
|
u.value ? (i(), p("span", {
|
|
919
919
|
key: 1,
|
|
920
920
|
class: "inline-block h-4 w-4",
|
|
@@ -930,7 +930,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
930
930
|
key: 3,
|
|
931
931
|
class: "h-4 w-4",
|
|
932
932
|
style: Me(f.value)
|
|
933
|
-
}, null, 8, ["style"])) :
|
|
933
|
+
}, null, 8, ["style"])) : H("", !0),
|
|
934
934
|
c("span", Xo, de(t.text), 1)
|
|
935
935
|
]))
|
|
936
936
|
], 2));
|
|
@@ -999,7 +999,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
999
999
|
key: 0,
|
|
1000
1000
|
class: "inline-flex h-3 w-3 rounded-full border border-gray-200",
|
|
1001
1001
|
style: Me({ background: s.value })
|
|
1002
|
-
}, null, 4)) :
|
|
1002
|
+
}, null, 4)) : H("", !0),
|
|
1003
1003
|
u.value ? (i(), p("span", {
|
|
1004
1004
|
key: 1,
|
|
1005
1005
|
class: "inline-block h-4 w-4",
|
|
@@ -1015,7 +1015,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1015
1015
|
key: 3,
|
|
1016
1016
|
class: "h-4 w-4",
|
|
1017
1017
|
style: Me(f.value)
|
|
1018
|
-
}, null, 8, ["style"])) :
|
|
1018
|
+
}, null, 8, ["style"])) : H("", !0),
|
|
1019
1019
|
c("span", ar, de(t.text), 1)
|
|
1020
1020
|
]))
|
|
1021
1021
|
], 2));
|
|
@@ -1281,7 +1281,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1281
1281
|
key: M.key,
|
|
1282
1282
|
class: "flex flex-col gap-2"
|
|
1283
1283
|
}, [
|
|
1284
|
-
M.label ? (i(), p("span", fr, de(M.label), 1)) :
|
|
1284
|
+
M.label ? (i(), p("span", fr, de(M.label), 1)) : H("", !0),
|
|
1285
1285
|
c("div", {
|
|
1286
1286
|
class: ae(["p-0 w-full gap-[12px]", w.value])
|
|
1287
1287
|
}, [
|
|
@@ -1670,8 +1670,8 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1670
1670
|
class: "h-4 w-4"
|
|
1671
1671
|
}))
|
|
1672
1672
|
], 2)
|
|
1673
|
-
])) :
|
|
1674
|
-
y.multiple ?
|
|
1673
|
+
])) : H("", !0),
|
|
1674
|
+
y.multiple ? H("", !0) : (i(), p("div", {
|
|
1675
1675
|
key: 2,
|
|
1676
1676
|
onClick: b,
|
|
1677
1677
|
class: ae([y.disabled || r.value ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:border-blue-500", "relative h-[120px] w-[120px] border text-gray-300 hover:text-blue-500 border-dashed border-gray-300 rounded-lg flex items-center justify-center cursor-pointer hover:border-blue-500 transition-all duration-300 hover:bg-blue-50"])
|
|
@@ -1716,27 +1716,27 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1716
1716
|
}),
|
|
1717
1717
|
emits: ["update:modelValue"],
|
|
1718
1718
|
setup(e) {
|
|
1719
|
-
const t = e, l = je(e, "modelValue"), a = L(null), n = L(null), o = L(""), s = L(0), r = L(!1), u = L(""), f = L(null), v = nt("values"), x = h(() => t.format ? t.format.split(",").map((
|
|
1719
|
+
const t = e, l = je(e, "modelValue"), a = L(null), n = L(null), o = L(""), s = L(0), r = L(!1), u = L(""), f = L(null), v = nt("values"), x = h(() => t.format ? t.format.split(",").map((U) => U.trim().toLowerCase()).filter(Boolean) : []), _ = h(() => !n.value || !n.value.size ? 0 : Math.min(100, Math.round(s.value / n.value.size * 100))), C = h(() => n.value ? `${b(s.value)} / ${b(n.value.size)}` : ""), g = h(() => t.disabled ? "opacity-50 cursor-not-allowed" : r.value ? "cursor-default text-blue-500" : "cursor-pointer hover:border-blue-500 hover:bg-blue-50 hover:text-blue-500"), w = () => {
|
|
1720
1720
|
t.disabled || r.value || M() && a.value?.click();
|
|
1721
|
-
}, b = (
|
|
1722
|
-
if (!Number.isFinite(
|
|
1721
|
+
}, b = (U) => {
|
|
1722
|
+
if (!Number.isFinite(U)) return "0 B";
|
|
1723
1723
|
const Z = ["B", "KB", "MB", "GB"];
|
|
1724
|
-
let B = 0, j =
|
|
1724
|
+
let B = 0, j = U;
|
|
1725
1725
|
for (; j >= 1024 && B < Z.length - 1; )
|
|
1726
1726
|
j /= 1024, B += 1;
|
|
1727
1727
|
return `${j.toFixed(B === 0 ? 0 : 1)} ${Z[B]}`;
|
|
1728
|
-
}, $ = (
|
|
1728
|
+
}, $ = (U) => {
|
|
1729
1729
|
if (!t.max_size) return !0;
|
|
1730
1730
|
const Z = t.max_size * 1024 * 1024;
|
|
1731
|
-
return
|
|
1731
|
+
return U.size > Z ? (Ve({
|
|
1732
1732
|
type: "error",
|
|
1733
1733
|
title: "Файл занадто великий",
|
|
1734
1734
|
message: `Максимальний розмір ${t.max_size} МБ`,
|
|
1735
1735
|
position: "right-bottom"
|
|
1736
1736
|
}), !1) : !0;
|
|
1737
|
-
}, y = (
|
|
1737
|
+
}, y = (U) => {
|
|
1738
1738
|
if (!x.value.length) return !0;
|
|
1739
|
-
const Z = `.${
|
|
1739
|
+
const Z = `.${U.name.split(".").pop()?.toLowerCase() || ""}`;
|
|
1740
1740
|
return x.value.includes(Z) ? !0 : (Ve({
|
|
1741
1741
|
type: "error",
|
|
1742
1742
|
title: "Непідтримуваний формат",
|
|
@@ -1744,23 +1744,23 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1744
1744
|
position: "right-bottom"
|
|
1745
1745
|
}), !1);
|
|
1746
1746
|
}, S = h(() => {
|
|
1747
|
-
const
|
|
1748
|
-
if (!t.customParams?.length) return { params:
|
|
1747
|
+
const U = {}, Z = [];
|
|
1748
|
+
if (!t.customParams?.length) return { params: U, missing: Z };
|
|
1749
1749
|
const B = v?.value ?? {};
|
|
1750
1750
|
return t.customParams.forEach((j) => {
|
|
1751
1751
|
if (!j) return;
|
|
1752
1752
|
const [O, se] = j.split("="), ue = O?.trim(), ge = se?.trim();
|
|
1753
1753
|
if (!ue || !ge) return;
|
|
1754
1754
|
const $e = B[ge];
|
|
1755
|
-
$e == null || $e === "" ? Z.push(ge) :
|
|
1756
|
-
}), { params:
|
|
1755
|
+
$e == null || $e === "" ? Z.push(ge) : U[ue] = $e;
|
|
1756
|
+
}), { params: U, missing: Z };
|
|
1757
1757
|
}), M = () => S.value.missing.length ? (Ve({
|
|
1758
1758
|
type: "warning",
|
|
1759
1759
|
title: "Заповніть поля",
|
|
1760
1760
|
message: `Потрібні значення: ${S.value.missing.join(", ")}`,
|
|
1761
1761
|
position: "right-bottom"
|
|
1762
|
-
}), !1) : !0, R = (
|
|
1763
|
-
const Z =
|
|
1762
|
+
}), !1) : !0, R = (U) => {
|
|
1763
|
+
const Z = U.target, B = Z.files?.[0];
|
|
1764
1764
|
if (B) {
|
|
1765
1765
|
if (!M()) {
|
|
1766
1766
|
Z.value = "";
|
|
@@ -1779,7 +1779,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1779
1779
|
}
|
|
1780
1780
|
try {
|
|
1781
1781
|
u.value = "";
|
|
1782
|
-
const
|
|
1782
|
+
const U = {
|
|
1783
1783
|
id: o.value || "",
|
|
1784
1784
|
fileName: n.value.name,
|
|
1785
1785
|
subdir: t.subdir,
|
|
@@ -1788,25 +1788,25 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1788
1788
|
}, Z = await fetch("/api/file/upload2/start", {
|
|
1789
1789
|
method: "POST",
|
|
1790
1790
|
headers: { "Content-Type": "application/json" },
|
|
1791
|
-
body: JSON.stringify(
|
|
1791
|
+
body: JSON.stringify(U)
|
|
1792
1792
|
});
|
|
1793
1793
|
if (!Z.ok) throw new Error("Не вдалося ініціалізувати завантаження");
|
|
1794
1794
|
const B = await Z.json();
|
|
1795
1795
|
o.value = B.id || o.value, s.value = B.uploaded || 0, await T();
|
|
1796
|
-
} catch (
|
|
1797
|
-
u.value =
|
|
1796
|
+
} catch (U) {
|
|
1797
|
+
u.value = U?.message || "Помилка при старті завантаження";
|
|
1798
1798
|
}
|
|
1799
1799
|
}, T = async () => {
|
|
1800
1800
|
if (!(!n.value || !o.value)) {
|
|
1801
1801
|
r.value = !0;
|
|
1802
1802
|
try {
|
|
1803
1803
|
for (; s.value < n.value.size; ) {
|
|
1804
|
-
const
|
|
1804
|
+
const U = s.value, Z = Math.min(U + t.chunkSize, n.value.size), B = n.value.slice(U, Z);
|
|
1805
1805
|
f.value = new AbortController();
|
|
1806
1806
|
const j = await fetch(`/api/file/upload2/${o.value}`, {
|
|
1807
1807
|
method: "PATCH",
|
|
1808
1808
|
headers: {
|
|
1809
|
-
"Content-Range": `bytes ${
|
|
1809
|
+
"Content-Range": `bytes ${U}-${Z - 1}/${n.value.size}`
|
|
1810
1810
|
},
|
|
1811
1811
|
body: B,
|
|
1812
1812
|
signal: f.value.signal
|
|
@@ -1825,9 +1825,9 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1825
1825
|
return;
|
|
1826
1826
|
}
|
|
1827
1827
|
}
|
|
1828
|
-
} catch (
|
|
1829
|
-
if (
|
|
1830
|
-
u.value =
|
|
1828
|
+
} catch (U) {
|
|
1829
|
+
if (U?.name === "AbortError") return;
|
|
1830
|
+
u.value = U?.message || "Помилка при завантаженні", r.value = !1;
|
|
1831
1831
|
} finally {
|
|
1832
1832
|
f.value = null, r.value = !1;
|
|
1833
1833
|
}
|
|
@@ -1845,10 +1845,10 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1845
1845
|
}, ne = () => {
|
|
1846
1846
|
f.value?.abort(), f.value = null, I();
|
|
1847
1847
|
}, I = () => {
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1848
|
+
const U = a.value;
|
|
1849
|
+
U && (U.value = ""), n.value = null, o.value = "", s.value = 0, u.value = "";
|
|
1850
1850
|
};
|
|
1851
|
-
return (
|
|
1851
|
+
return (U, Z) => (i(), p("div", Ir, [
|
|
1852
1852
|
c("div", Tr, [
|
|
1853
1853
|
c("input", {
|
|
1854
1854
|
ref_key: "fileInput",
|
|
@@ -1899,27 +1899,27 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
1899
1899
|
type: "button",
|
|
1900
1900
|
class: "rounded border border-slate-300 px-3 py-1",
|
|
1901
1901
|
onClick: q
|
|
1902
|
-
}, " Resume ")) :
|
|
1902
|
+
}, " Resume ")) : H("", !0),
|
|
1903
1903
|
r.value ? (i(), p("button", {
|
|
1904
1904
|
key: 1,
|
|
1905
1905
|
type: "button",
|
|
1906
1906
|
class: "rounded border border-slate-300 px-3 py-1",
|
|
1907
1907
|
onClick: Y
|
|
1908
|
-
}, " Pause ")) :
|
|
1908
|
+
}, " Pause ")) : H("", !0),
|
|
1909
1909
|
!r.value && s.value === 0 ? (i(), p("button", {
|
|
1910
1910
|
key: 2,
|
|
1911
1911
|
type: "button",
|
|
1912
1912
|
class: "rounded border border-slate-300 px-3 py-1",
|
|
1913
1913
|
onClick: Q
|
|
1914
|
-
}, " Upload ")) :
|
|
1914
|
+
}, " Upload ")) : H("", !0),
|
|
1915
1915
|
c("button", {
|
|
1916
1916
|
type: "button",
|
|
1917
1917
|
class: "rounded border border-rose-200 px-3 py-1 text-rose-600",
|
|
1918
1918
|
onClick: ne
|
|
1919
1919
|
}, " Cancel ")
|
|
1920
1920
|
]),
|
|
1921
|
-
u.value ? (i(), p("p", Hr, de(u.value), 1)) :
|
|
1922
|
-
])) :
|
|
1921
|
+
u.value ? (i(), p("p", Hr, de(u.value), 1)) : H("", !0)
|
|
1922
|
+
])) : H("", !0)
|
|
1923
1923
|
]));
|
|
1924
1924
|
}
|
|
1925
1925
|
}), Xl = /* @__PURE__ */ Ue(Wr, [["__scopeId", "data-v-19ea2129"]]), qr = { class: "flex items-center justify-center h-[30px] w-[30px]" }, Kr = { class: "max-w-[55vw]" }, Gr = { class: "text-sm font-semibold text-gray-800 truncate dark:text-neutral-200" }, Yr = { class: "flex items-center text-xs text-gray-500 truncate dark:text-neutral-500" }, Zr = { class: "px-[5px]" }, Jr = { class: "" }, wl = /* @__PURE__ */ ce({
|
|
@@ -2180,7 +2180,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2180
2180
|
])
|
|
2181
2181
|
])
|
|
2182
2182
|
])
|
|
2183
|
-
])) :
|
|
2183
|
+
])) : H("", !0),
|
|
2184
2184
|
v.value?.length ? (i(), p("div", hs, [
|
|
2185
2185
|
(i(!0), p(Se, null, Ie(C.value, (T, Y) => (i(), xe(us, {
|
|
2186
2186
|
key: Y,
|
|
@@ -2191,10 +2191,10 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2191
2191
|
onOpenModal: M[3] || (M[3] = (q) => y(q)),
|
|
2192
2192
|
onOpenLightbox: M[4] || (M[4] = (q) => g(q))
|
|
2193
2193
|
}, null, 8, ["prefix", "item", "index"]))), 128)),
|
|
2194
|
-
C.value.length ?
|
|
2194
|
+
C.value.length ? H("", !0) : (i(), p("div", bs, M[8] || (M[8] = [
|
|
2195
2195
|
c("p", { class: "text-sm text-gray-600 font-sm" }, " Файлів з такою назвою не існує, введіть інше пошукове слово ", -1)
|
|
2196
2196
|
])))
|
|
2197
|
-
])) :
|
|
2197
|
+
])) : H("", !0),
|
|
2198
2198
|
J(R, {
|
|
2199
2199
|
modelValue: o.value,
|
|
2200
2200
|
"onUpdate:modelValue": M[5] || (M[5] = (T) => o.value = T),
|
|
@@ -2424,7 +2424,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2424
2424
|
}), null, 16, ["item", "modelValue", "onUpdate:modelValue", "style", "error"]))), 128))
|
|
2425
2425
|
]),
|
|
2426
2426
|
_: 1
|
|
2427
|
-
}, 8, ["title", "style"])) :
|
|
2427
|
+
}, 8, ["title", "style"])) : H("", !0);
|
|
2428
2428
|
}
|
|
2429
2429
|
}), na = ({
|
|
2430
2430
|
props: e,
|
|
@@ -2560,7 +2560,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2560
2560
|
key: 0,
|
|
2561
2561
|
class: "w-[16px] h-[16px] rounded-md block ml-1.5 flex-shrink-0",
|
|
2562
2562
|
style: Me({ backgroundColor: r?.color })
|
|
2563
|
-
}, null, 4)) :
|
|
2563
|
+
}, null, 4)) : H("", !0),
|
|
2564
2564
|
!o.optionTemplate && o.optionHasIcon(r) ? (i(), p("span", {
|
|
2565
2565
|
key: 1,
|
|
2566
2566
|
class: ae(o.iconWrapperClass),
|
|
@@ -2571,7 +2571,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2571
2571
|
class: "w-full h-full",
|
|
2572
2572
|
focusable: "false"
|
|
2573
2573
|
}))
|
|
2574
|
-
], 6)) :
|
|
2574
|
+
], 6)) : H("", !0),
|
|
2575
2575
|
c("div", {
|
|
2576
2576
|
class: "truncate text-[#172b4d] overflow-hidden max-w-[200px] px-0.5 pl-1.5",
|
|
2577
2577
|
title: o.getLabel(r)
|
|
@@ -2618,7 +2618,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2618
2618
|
(...r) => o.onInputKeydown && o.onInputKeydown(...r))
|
|
2619
2619
|
}, null, 40, ei)), [
|
|
2620
2620
|
[Ke, n.value]
|
|
2621
|
-
]) :
|
|
2621
|
+
]) : H("", !0)
|
|
2622
2622
|
])
|
|
2623
2623
|
])) : !o.isMulti && o.selectedOptionLabel && n.value === "" ? (i(), p("div", {
|
|
2624
2624
|
key: 1,
|
|
@@ -2629,7 +2629,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2629
2629
|
key: 0,
|
|
2630
2630
|
class: "w-[14px] h-[14px] rounded-md block flex-shrink-0",
|
|
2631
2631
|
style: Me({ backgroundColor: o.selectedOption?.color })
|
|
2632
|
-
}, null, 4)) :
|
|
2632
|
+
}, null, 4)) : H("", !0),
|
|
2633
2633
|
!o.optionTemplate && o.optionHasIcon(o.selectedOption) ? (i(), p("span", {
|
|
2634
2634
|
key: 1,
|
|
2635
2635
|
class: ae(o.iconWrapperClass),
|
|
@@ -2640,14 +2640,14 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2640
2640
|
class: "w-full h-full",
|
|
2641
2641
|
focusable: "false"
|
|
2642
2642
|
}))
|
|
2643
|
-
], 6)) :
|
|
2643
|
+
], 6)) : H("", !0),
|
|
2644
2644
|
o.optionTemplate ? (i(), p("div", {
|
|
2645
2645
|
key: 2,
|
|
2646
2646
|
class: "truncate flex-1 min-w-0",
|
|
2647
2647
|
innerHTML: o.renderTemplate(o.selectedOption)
|
|
2648
2648
|
}, null, 8, li)) : (i(), p("span", ni, de(o.selectedOption?.text), 1))
|
|
2649
|
-
], 8, ti)) :
|
|
2650
|
-
o.isMulti ?
|
|
2649
|
+
], 8, ti)) : H("", !0),
|
|
2650
|
+
o.isMulti ? H("", !0) : (i(), p("div", ai, [
|
|
2651
2651
|
!o.disabled && o.search ? De((i(), p("input", {
|
|
2652
2652
|
key: 0,
|
|
2653
2653
|
ref: o.setInputRef,
|
|
@@ -2669,7 +2669,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2669
2669
|
(...r) => o.onInputKeydown && o.onInputKeydown(...r))
|
|
2670
2670
|
}, null, 40, oi)), [
|
|
2671
2671
|
[Ke, n.value]
|
|
2672
|
-
]) :
|
|
2672
|
+
]) : H("", !0)
|
|
2673
2673
|
]))
|
|
2674
2674
|
]),
|
|
2675
2675
|
c("div", ri, [
|
|
@@ -2686,8 +2686,8 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2686
2686
|
))
|
|
2687
2687
|
}, [
|
|
2688
2688
|
J(E(Vt), { class: "h-4 w-4" })
|
|
2689
|
-
], 8, si)) :
|
|
2690
|
-
o.showClear ? (i(), p("div", ii)) :
|
|
2689
|
+
], 8, si)) : H("", !0),
|
|
2690
|
+
o.showClear ? (i(), p("div", ii)) : H("", !0),
|
|
2691
2691
|
c("button", {
|
|
2692
2692
|
type: "button",
|
|
2693
2693
|
class: "px-2 text-gray-400 hover:text-gray-500 transition-colors disabled:opacity-50",
|
|
@@ -2760,7 +2760,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2760
2760
|
key: 0,
|
|
2761
2761
|
class: "w-[11px] h-[11px] rounded-full block flex-shrink-0",
|
|
2762
2762
|
style: Me({ backgroundColor: a?.color })
|
|
2763
|
-
}, null, 4)) :
|
|
2763
|
+
}, null, 4)) : H("", !0),
|
|
2764
2764
|
!t.optionTemplate && t.optionHasIcon(a) ? (i(), p("span", {
|
|
2765
2765
|
key: 1,
|
|
2766
2766
|
class: ae(t.iconWrapperClass),
|
|
@@ -2771,7 +2771,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2771
2771
|
class: "w-full h-full",
|
|
2772
2772
|
focusable: "false"
|
|
2773
2773
|
}))
|
|
2774
|
-
], 6)) :
|
|
2774
|
+
], 6)) : H("", !0),
|
|
2775
2775
|
c("div", fi, [
|
|
2776
2776
|
t.optionTemplate ? (i(), p("div", {
|
|
2777
2777
|
key: 0,
|
|
@@ -2782,7 +2782,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2782
2782
|
])
|
|
2783
2783
|
], 10, ci))), 128)) : (i(), p("div", mi, " No options "))
|
|
2784
2784
|
], 4)
|
|
2785
|
-
], 4)) :
|
|
2785
|
+
], 4)) : H("", !0)
|
|
2786
2786
|
]));
|
|
2787
2787
|
}
|
|
2788
2788
|
}), gi = ["disabled"], Dn = "w-[16px] h-[16px] flex items-center justify-center flex-shrink-0 text-current", yi = /* @__PURE__ */ ce({
|
|
@@ -2838,7 +2838,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2838
2838
|
if (!q.value.length) return [];
|
|
2839
2839
|
const F = Ce.value, re = new Map(F.map((we) => [we.id?.toString(), we]));
|
|
2840
2840
|
return q.value.map((we) => re.get(we?.toString())).filter((we) => !!we);
|
|
2841
|
-
}), I = h(() => l.placeholder || "Select..."),
|
|
2841
|
+
}), I = h(() => l.placeholder || "Select..."), U = h(() => $e(g.value)), Z = h(() => o.value ? !1 : n.value ? q.value.length > 0 : !!r.value), B = (F) => n.value ? q.value.some((re) => re?.toString() === F?.toString()) : r.value?.toString() === F?.toString(), j = h(() => {
|
|
2842
2842
|
let F = Ce.value ?? [];
|
|
2843
2843
|
if (!l.data && $.value.trim() !== "") {
|
|
2844
2844
|
const re = $.value.toLowerCase();
|
|
@@ -2942,7 +2942,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2942
2942
|
we >= 0 && (F = we);
|
|
2943
2943
|
}
|
|
2944
2944
|
w.value = F, Qe(() => {
|
|
2945
|
-
|
|
2945
|
+
z(b.value[F], v.value);
|
|
2946
2946
|
});
|
|
2947
2947
|
}, Ne = async () => {
|
|
2948
2948
|
o.value || (_.value = !0, await X(), await Qe(() => {
|
|
@@ -2986,7 +2986,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
2986
2986
|
return;
|
|
2987
2987
|
}
|
|
2988
2988
|
P(F);
|
|
2989
|
-
},
|
|
2989
|
+
}, z = (F, re) => {
|
|
2990
2990
|
if (!F || !re) return;
|
|
2991
2991
|
const we = F.offsetTop, Ee = we + F.offsetHeight, Je = re.scrollTop, lt = Je + re.clientHeight;
|
|
2992
2992
|
let Ze = re.scrollTop;
|
|
@@ -3029,14 +3029,14 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3029
3029
|
if (!_.value) return;
|
|
3030
3030
|
const { key: re } = F;
|
|
3031
3031
|
if (re === "ArrowDown")
|
|
3032
|
-
F.preventDefault(), w.value + 1 < j.value.length && (w.value += 1,
|
|
3032
|
+
F.preventDefault(), w.value + 1 < j.value.length && (w.value += 1, z(b.value[w.value], v.value));
|
|
3033
3033
|
else if (re === "ArrowUp")
|
|
3034
|
-
F.preventDefault(), w.value > 0 && (w.value -= 1,
|
|
3034
|
+
F.preventDefault(), w.value > 0 && (w.value -= 1, z(b.value[w.value], v.value));
|
|
3035
3035
|
else if (re === "Enter") {
|
|
3036
3036
|
F.preventDefault();
|
|
3037
3037
|
const we = j.value[w.value];
|
|
3038
3038
|
we && P(we), y.value?.blur();
|
|
3039
|
-
} else re === "Escape" ? (F.preventDefault(), Be()) : re === "Backspace" ? n.value && $.value === "" && q.value.length && (q.value = q.value.slice(0, -1), r.value = [...q.value], a("change", r.value)) : re === "Home" ? (w.value = 0,
|
|
3039
|
+
} else re === "Escape" ? (F.preventDefault(), Be()) : re === "Backspace" ? n.value && $.value === "" && q.value.length && (q.value = q.value.slice(0, -1), r.value = [...q.value], a("change", r.value)) : re === "Home" ? (w.value = 0, z(b.value[0], v.value)) : re === "End" ? (w.value = j.value.length - 1, z(b.value[w.value], v.value)) : re === "Tab" && Be();
|
|
3040
3040
|
}, Ae = () => {
|
|
3041
3041
|
o.value || (C.value = !0);
|
|
3042
3042
|
}, pt = () => {
|
|
@@ -3161,7 +3161,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3161
3161
|
search: s.value,
|
|
3162
3162
|
"option-template": ue.value,
|
|
3163
3163
|
"icon-wrapper-class": Dn,
|
|
3164
|
-
"selected-option-label":
|
|
3164
|
+
"selected-option-label": U.value,
|
|
3165
3165
|
"selected-option": g.value,
|
|
3166
3166
|
"show-clear": Z.value,
|
|
3167
3167
|
"set-trigger-ref": S,
|
|
@@ -3210,7 +3210,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3210
3210
|
}, [
|
|
3211
3211
|
J(E(_t), { class: "h-4 w-4" }),
|
|
3212
3212
|
re[7] || (re[7] = c("span", null, "Додати", -1))
|
|
3213
|
-
], 8, gi)) :
|
|
3213
|
+
], 8, gi)) : H("", !0)
|
|
3214
3214
|
], 512)
|
|
3215
3215
|
], 64));
|
|
3216
3216
|
}
|
|
@@ -3267,7 +3267,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3267
3267
|
parentValue: q,
|
|
3268
3268
|
fetchOptions: ne,
|
|
3269
3269
|
fetchOptionByValue: I,
|
|
3270
|
-
loadOptions:
|
|
3270
|
+
loadOptions: U
|
|
3271
3271
|
} = Rl({
|
|
3272
3272
|
props: l,
|
|
3273
3273
|
formValues: o,
|
|
@@ -3315,7 +3315,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3315
3315
|
Y.value = await ne("");
|
|
3316
3316
|
return;
|
|
3317
3317
|
}
|
|
3318
|
-
await
|
|
3318
|
+
await U();
|
|
3319
3319
|
}, ue = async () => {
|
|
3320
3320
|
if (n.value == null || n.value === "") {
|
|
3321
3321
|
u.value = null, B(null);
|
|
@@ -3425,9 +3425,9 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3425
3425
|
}, null, 8, ["class"])
|
|
3426
3426
|
], 8, Ci))), 128))
|
|
3427
3427
|
]),
|
|
3428
|
-
E(Y).length ?
|
|
3428
|
+
E(Y).length ? H("", !0) : (i(), p("p", Di, "Немає варіантів"))
|
|
3429
3429
|
])
|
|
3430
|
-
], 4)) :
|
|
3430
|
+
], 4)) : H("", !0)
|
|
3431
3431
|
], 8, ["to"]))
|
|
3432
3432
|
], 512));
|
|
3433
3433
|
}
|
|
@@ -3487,7 +3487,7 @@ const yo = ["placeholder", "disabled"], ho = /* @__PURE__ */ ce({
|
|
|
3487
3487
|
}),
|
|
3488
3488
|
emits: ["update:modelValue"],
|
|
3489
3489
|
setup(e) {
|
|
3490
|
-
const t = Ia(() => import("./vs-richtext-
|
|
3490
|
+
const t = Ia(() => import("./vs-richtext-BFQRMa4I.js")), l = e, { inputClass: a } = st(l.style), n = je(e, "modelValue"), o = h(() => !!l.disabled), s = h(() => l.placeholder ?? ""), r = h(() => ({
|
|
3491
3491
|
height: l.richtextProps.height || "300px",
|
|
3492
3492
|
format: l.format,
|
|
3493
3493
|
...l.richtextProps
|
|
@@ -3629,7 +3629,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3629
3629
|
const _e = ne(be);
|
|
3630
3630
|
_e !== null && X.add(_e);
|
|
3631
3631
|
}), X;
|
|
3632
|
-
},
|
|
3632
|
+
}, U = async () => {
|
|
3633
3633
|
if (!t.colModel?.length) return;
|
|
3634
3634
|
const N = t.colModel.filter((X) => X.data && T.has(X.type?.toLowerCase() || ""));
|
|
3635
3635
|
N.length && await Promise.all(N.map(async (X) => {
|
|
@@ -3650,7 +3650,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3650
3650
|
me(
|
|
3651
3651
|
[() => t.colModel, () => s.value],
|
|
3652
3652
|
() => {
|
|
3653
|
-
|
|
3653
|
+
U();
|
|
3654
3654
|
},
|
|
3655
3655
|
{ immediate: !0, deep: !0 }
|
|
3656
3656
|
);
|
|
@@ -3736,7 +3736,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3736
3736
|
}, null, 512), [
|
|
3737
3737
|
[Ke, u.value]
|
|
3738
3738
|
])
|
|
3739
|
-
])) :
|
|
3739
|
+
])) : H("", !0),
|
|
3740
3740
|
c("div", ji, [
|
|
3741
3741
|
a("import") ? (i(), p("input", {
|
|
3742
3742
|
key: 0,
|
|
@@ -3746,7 +3746,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3746
3746
|
class: "hidden",
|
|
3747
3747
|
accept: ".json",
|
|
3748
3748
|
type: "file"
|
|
3749
|
-
}, null, 544)) :
|
|
3749
|
+
}, null, 544)) : H("", !0),
|
|
3750
3750
|
a("import") ? (i(), p("button", {
|
|
3751
3751
|
key: 1,
|
|
3752
3752
|
type: "button",
|
|
@@ -3755,7 +3755,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3755
3755
|
}, [
|
|
3756
3756
|
J(E(Gn), { class: "h-4 w-4 text-gray-700" }),
|
|
3757
3757
|
X[4] || (X[4] = He(" Імпорт ", -1))
|
|
3758
|
-
])) :
|
|
3758
|
+
])) : H("", !0),
|
|
3759
3759
|
a("export") ? (i(), p("button", {
|
|
3760
3760
|
key: 2,
|
|
3761
3761
|
type: "button",
|
|
@@ -3764,7 +3764,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3764
3764
|
}, [
|
|
3765
3765
|
J(E(cn), { class: "h-4 w-4 text-gray-700" }),
|
|
3766
3766
|
X[5] || (X[5] = He(" Експорт ", -1))
|
|
3767
|
-
])) :
|
|
3767
|
+
])) : H("", !0),
|
|
3768
3768
|
a("add") ? (i(), p("button", {
|
|
3769
3769
|
key: 3,
|
|
3770
3770
|
onClick: ee,
|
|
@@ -3773,9 +3773,9 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3773
3773
|
}, [
|
|
3774
3774
|
J(E(_t), { class: "h-4 w-4 text-white" }),
|
|
3775
3775
|
X[6] || (X[6] = He(" Додати ", -1))
|
|
3776
|
-
])) :
|
|
3776
|
+
])) : H("", !0)
|
|
3777
3777
|
])
|
|
3778
|
-
])) :
|
|
3778
|
+
])) : H("", !0),
|
|
3779
3779
|
c("div", Ui, [
|
|
3780
3780
|
c("table", zi, [
|
|
3781
3781
|
c("thead", Hi, [
|
|
@@ -3793,7 +3793,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3793
3793
|
class: "flex items-center gap-1 text-xs font-semibold text-gray-700 hover:text-gray-900 transition-colors"
|
|
3794
3794
|
}, [
|
|
3795
3795
|
c("span", null, de(oe.ua || oe.label), 1),
|
|
3796
|
-
f.value === (oe.key || oe.name) ? (i(), p("span", Gi, de(v.value === "asc" ? "▲" : "▼"), 1)) :
|
|
3796
|
+
f.value === (oe.key || oe.name) ? (i(), p("span", Gi, de(v.value === "asc" ? "▲" : "▼"), 1)) : H("", !0)
|
|
3797
3797
|
], 8, Ki)
|
|
3798
3798
|
]))), 128)),
|
|
3799
3799
|
X[7] || (X[7] = c("th", { class: "px-4 py-3 text-left text-xs font-semibold text-gray-900 text-center w-[1%] whitespace-nowrap" }, " Дії ", -1))
|
|
@@ -3812,7 +3812,7 @@ const Oi = /* @__PURE__ */ Ue(Fi, [["render", Bi]]), Pi = { class: "bg-white rou
|
|
|
3812
3812
|
], -1))
|
|
3813
3813
|
])
|
|
3814
3814
|
])
|
|
3815
|
-
])) :
|
|
3815
|
+
])) : H("", !0),
|
|
3816
3816
|
(i(!0), p(Se, null, Ie(x.value, (oe, be) => (i(), p("tr", {
|
|
3817
3817
|
key: oe.id,
|
|
3818
3818
|
class: ae(["border-b transition-colors hover:bg-gray-50 cursor-move text-sm text-gray-700", {
|
|
@@ -4222,11 +4222,11 @@ const Pu = ["title"], Ru = {
|
|
|
4222
4222
|
const l = {
|
|
4223
4223
|
mounted(P, K) {
|
|
4224
4224
|
if (typeof document > "u") return;
|
|
4225
|
-
let
|
|
4225
|
+
let z = null;
|
|
4226
4226
|
const D = 8, W = () => {
|
|
4227
4227
|
const ve = String(K?.value ?? "");
|
|
4228
4228
|
if (!ve) return;
|
|
4229
|
-
|
|
4229
|
+
z = document.createElement("div"), z.textContent = ve, Object.assign(z.style, {
|
|
4230
4230
|
position: "absolute",
|
|
4231
4231
|
background: "#333",
|
|
4232
4232
|
color: "#fff",
|
|
@@ -4236,11 +4236,11 @@ const Pu = ["title"], Ru = {
|
|
|
4236
4236
|
whiteSpace: "nowrap",
|
|
4237
4237
|
pointerEvents: "none",
|
|
4238
4238
|
zIndex: "9999"
|
|
4239
|
-
}), document.body.appendChild(
|
|
4239
|
+
}), document.body.appendChild(z);
|
|
4240
4240
|
const Ae = P.getBoundingClientRect();
|
|
4241
|
-
|
|
4241
|
+
z.style.left = `${Ae.right + window.scrollX + D}px`, z.style.top = `${Ae.top + window.scrollY + (Ae.height - z.offsetHeight) / 2}px`;
|
|
4242
4242
|
}, le = () => {
|
|
4243
|
-
|
|
4243
|
+
z?.parentNode && z.parentNode.removeChild(z), z = null;
|
|
4244
4244
|
};
|
|
4245
4245
|
P.addEventListener("mouseenter", W), P.addEventListener("mouseleave", le), Object.assign(P, { tooltipRightHandlers: { show: W, hide: le } });
|
|
4246
4246
|
},
|
|
@@ -4271,7 +4271,7 @@ const Pu = ["title"], Ru = {
|
|
|
4271
4271
|
const P = ["nominatim", "xy", "parcel"];
|
|
4272
4272
|
return f && P.unshift("address"), v ? P : P.filter((K) => K !== "nominatim");
|
|
4273
4273
|
}), _ = h(() => {
|
|
4274
|
-
const P = x.value, K = a.config?.tools?.filter((
|
|
4274
|
+
const P = x.value, K = a.config?.tools?.filter((z) => P.includes(z));
|
|
4275
4275
|
return K && K.length ? K : P;
|
|
4276
4276
|
}), C = h(() => a.config?.placeholder?.trim() || "Пошук…"), g = L(_.value[0]);
|
|
4277
4277
|
me(_, (P) => {
|
|
@@ -4281,7 +4281,7 @@ const Pu = ["title"], Ru = {
|
|
|
4281
4281
|
() => (g.value === "address" || g.value === "nominatim") && T.value
|
|
4282
4282
|
), ne = h(() => a.config?.addressDebounceMs ?? 1e3);
|
|
4283
4283
|
let I = null;
|
|
4284
|
-
const
|
|
4284
|
+
const U = L(!1), Z = h(() => w.value.trim().length > 0 ? R.value : Y.value), B = h(() => w.value.trim().length ? `Знайдено ${R.value.length}` : "Історія пошуку"), j = h(
|
|
4285
4285
|
() => w.value.trim().length ? "Нічого не знайдено" : "Історія порожня"
|
|
4286
4286
|
);
|
|
4287
4287
|
function O() {
|
|
@@ -4299,8 +4299,8 @@ const Pu = ["title"], Ru = {
|
|
|
4299
4299
|
typeof window > "u" || window.localStorage?.setItem?.(Fn, JSON.stringify(P));
|
|
4300
4300
|
}
|
|
4301
4301
|
function ue(P) {
|
|
4302
|
-
const
|
|
4303
|
-
Y.value =
|
|
4302
|
+
const z = [P, ...Y.value.filter((D) => D.id !== P.id)].slice(0, 10);
|
|
4303
|
+
Y.value = z, se(z);
|
|
4304
4304
|
}
|
|
4305
4305
|
const ge = sn({
|
|
4306
4306
|
position: "absolute",
|
|
@@ -4311,8 +4311,8 @@ const Pu = ["title"], Ru = {
|
|
|
4311
4311
|
});
|
|
4312
4312
|
function $e() {
|
|
4313
4313
|
if (!M.value) return;
|
|
4314
|
-
const P = M.value.getBoundingClientRect(), K = S.value?.getBoundingClientRect(),
|
|
4315
|
-
ge.left = `${D}px`, ge.top = `${W}px`, ge.width = `${
|
|
4314
|
+
const P = M.value.getBoundingClientRect(), K = S.value?.getBoundingClientRect(), z = K?.width ?? P.width, D = (K?.left ?? P.left) + window.scrollX, W = P.bottom + window.scrollY + Yu;
|
|
4315
|
+
ge.left = `${D}px`, ge.top = `${W}px`, ge.width = `${z}px`, ge.display = "block";
|
|
4316
4316
|
}
|
|
4317
4317
|
const We = () => {
|
|
4318
4318
|
q.value && $e();
|
|
@@ -4321,7 +4321,7 @@ const Pu = ["title"], Ru = {
|
|
|
4321
4321
|
I && (clearTimeout(I), I = null);
|
|
4322
4322
|
}
|
|
4323
4323
|
me(g, () => {
|
|
4324
|
-
w.value = "", b.value = !1, R.value = [], T.value = !1, Re(),
|
|
4324
|
+
w.value = "", b.value = !1, R.value = [], T.value = !1, Re(), U.value = !1;
|
|
4325
4325
|
}), me(q, (P) => {
|
|
4326
4326
|
P ? Qe(() => {
|
|
4327
4327
|
$e();
|
|
@@ -4337,8 +4337,8 @@ const Pu = ["title"], Ru = {
|
|
|
4337
4337
|
}
|
|
4338
4338
|
Re(), T.value = !0, I = window.setTimeout(() => {
|
|
4339
4339
|
Be(P).catch((K) => {
|
|
4340
|
-
const
|
|
4341
|
-
Ve({ type: "error", title: "Пошук адреси", message:
|
|
4340
|
+
const z = K?.message || "Помилка пошуку адреси";
|
|
4341
|
+
Ve({ type: "error", title: "Пошук адреси", message: z });
|
|
4342
4342
|
});
|
|
4343
4343
|
}, ne.value);
|
|
4344
4344
|
});
|
|
@@ -4357,17 +4357,17 @@ const Pu = ["title"], Ru = {
|
|
|
4357
4357
|
ie(K?.target), g.value = P;
|
|
4358
4358
|
}
|
|
4359
4359
|
function ee() {
|
|
4360
|
-
w.value = "", R.value = [], T.value = !1,
|
|
4360
|
+
w.value = "", R.value = [], T.value = !1, U.value = !1;
|
|
4361
4361
|
}
|
|
4362
4362
|
function he(P) {
|
|
4363
4363
|
const K = P.target;
|
|
4364
4364
|
if (b.value) {
|
|
4365
|
-
const
|
|
4366
|
-
|
|
4365
|
+
const z = $.value;
|
|
4366
|
+
z && !z.contains(K) && (ie(K), b.value = !1);
|
|
4367
4367
|
}
|
|
4368
4368
|
if (q.value) {
|
|
4369
|
-
const
|
|
4370
|
-
|
|
4369
|
+
const z = Q.value, D = M.value;
|
|
4370
|
+
z && !z.contains(K) && (!D || !D.contains(K)) && (T.value = !1);
|
|
4371
4371
|
}
|
|
4372
4372
|
}
|
|
4373
4373
|
et(() => {
|
|
@@ -4398,9 +4398,9 @@ const Pu = ["title"], Ru = {
|
|
|
4398
4398
|
const [it, dt] = K.point;
|
|
4399
4399
|
return { lat: dt, lng: it };
|
|
4400
4400
|
}
|
|
4401
|
-
const
|
|
4402
|
-
if (!
|
|
4403
|
-
const D =
|
|
4401
|
+
const z = P.replace(/[,]+/g, " ").trim();
|
|
4402
|
+
if (!z) return null;
|
|
4403
|
+
const D = z.split(/\s+/).filter(Boolean);
|
|
4404
4404
|
if (D.length < 2) return null;
|
|
4405
4405
|
const W = D.slice(0, 2).map(Number);
|
|
4406
4406
|
if (!W.every((it) => Number.isFinite(it))) return null;
|
|
@@ -4416,9 +4416,9 @@ const Pu = ["title"], Ru = {
|
|
|
4416
4416
|
function tt(P) {
|
|
4417
4417
|
const K = P?.result || P?.data || P;
|
|
4418
4418
|
if (!K) return [];
|
|
4419
|
-
const
|
|
4420
|
-
if (!
|
|
4421
|
-
const [D, W] =
|
|
4419
|
+
const z = K.geom_centroid;
|
|
4420
|
+
if (!z || !Array.isArray(z.coordinates)) return [];
|
|
4421
|
+
const [D, W] = z.coordinates;
|
|
4422
4422
|
return !Number.isFinite(W) || !Number.isFinite(D) ? [] : [
|
|
4423
4423
|
{
|
|
4424
4424
|
id: "parcel",
|
|
@@ -4429,12 +4429,12 @@ const Pu = ["title"], Ru = {
|
|
|
4429
4429
|
];
|
|
4430
4430
|
}
|
|
4431
4431
|
function Ge(P) {
|
|
4432
|
-
return (Array.isArray(P?.features) ? P.features : []).map((
|
|
4433
|
-
const W =
|
|
4432
|
+
return (Array.isArray(P?.features) ? P.features : []).map((z, D) => {
|
|
4433
|
+
const W = z?.geometry?.coordinates, le = Number(W?.[0]), ve = Number(W?.[1]);
|
|
4434
4434
|
if (!Number.isFinite(ve) || !Number.isFinite(le)) return null;
|
|
4435
|
-
const Ae =
|
|
4435
|
+
const Ae = z?.properties || {}, pt = Ae?.geocoding?.label || Ae?.display_name || Ae?.label || "Адреса";
|
|
4436
4436
|
return { id: String(Ae?.geocoding?.place_id || Ae?.place_id || D), title: pt, lat: ve, lng: le };
|
|
4437
|
-
}).filter((
|
|
4437
|
+
}).filter((z) => !!z);
|
|
4438
4438
|
}
|
|
4439
4439
|
function Fe(P) {
|
|
4440
4440
|
return Number.isFinite(P.lat) && Number.isFinite(P.lng);
|
|
@@ -4445,9 +4445,9 @@ const Pu = ["title"], Ru = {
|
|
|
4445
4445
|
return Number.isFinite(K) ? K : null;
|
|
4446
4446
|
}
|
|
4447
4447
|
function X(P) {
|
|
4448
|
-
const K = N(P.lng) ?? N(P.lon) ?? N(P.longitude) ?? N(P.x),
|
|
4449
|
-
if (K != null &&
|
|
4450
|
-
return { lat:
|
|
4448
|
+
const K = N(P.lng) ?? N(P.lon) ?? N(P.longitude) ?? N(P.x), z = N(P.lat) ?? N(P.latitude) ?? N(P.y);
|
|
4449
|
+
if (K != null && z != null)
|
|
4450
|
+
return { lat: z, lng: K };
|
|
4451
4451
|
const D = P?.geometry?.coordinates ?? P?.geom_centroid?.coordinates ?? P?.centroid?.coordinates ?? P?.geojson?.geometry?.coordinates ?? P?.geom?.coordinates;
|
|
4452
4452
|
if (Array.isArray(D) && D.length >= 2) {
|
|
4453
4453
|
const W = N(D[0]), le = N(D[1]);
|
|
@@ -4456,12 +4456,12 @@ const Pu = ["title"], Ru = {
|
|
|
4456
4456
|
return null;
|
|
4457
4457
|
}
|
|
4458
4458
|
function oe(P) {
|
|
4459
|
-
return (Array.isArray(P?.data) ? P.data : []).map((
|
|
4460
|
-
const W = X(
|
|
4461
|
-
|
|
4462
|
-
), ve = String(
|
|
4459
|
+
return (Array.isArray(P?.data) ? P.data : []).map((z, D) => {
|
|
4460
|
+
const W = X(z), le = String(
|
|
4461
|
+
z.text ?? z.title ?? z.label ?? z.name ?? z.address ?? z.display_name ?? z.id ?? "Адреса"
|
|
4462
|
+
), ve = String(z.id ?? z.code ?? z.value ?? D);
|
|
4463
4463
|
return W ? { id: ve, title: le, ...W } : { id: ve, title: le };
|
|
4464
|
-
}).filter((
|
|
4464
|
+
}).filter((z) => !!z?.title);
|
|
4465
4465
|
}
|
|
4466
4466
|
function be(P) {
|
|
4467
4467
|
const K = u();
|
|
@@ -4469,8 +4469,8 @@ const Pu = ["title"], Ru = {
|
|
|
4469
4469
|
if (K.includes(":name"))
|
|
4470
4470
|
return K.replace(":name", encodeURIComponent(P));
|
|
4471
4471
|
try {
|
|
4472
|
-
const
|
|
4473
|
-
return P.trim() &&
|
|
4472
|
+
const z = new URL(K, window.location.origin);
|
|
4473
|
+
return P.trim() && z.searchParams.set("q", P), z.toString();
|
|
4474
4474
|
} catch {
|
|
4475
4475
|
return K;
|
|
4476
4476
|
}
|
|
@@ -4478,16 +4478,16 @@ const Pu = ["title"], Ru = {
|
|
|
4478
4478
|
async function _e(P) {
|
|
4479
4479
|
const K = be(P);
|
|
4480
4480
|
if (!K) return [];
|
|
4481
|
-
const
|
|
4482
|
-
if (!
|
|
4483
|
-
const D = await
|
|
4481
|
+
const z = await fetch(K);
|
|
4482
|
+
if (!z.ok) throw new Error(`HTTP ${z.status}`);
|
|
4483
|
+
const D = await z.json();
|
|
4484
4484
|
return oe(D);
|
|
4485
4485
|
}
|
|
4486
4486
|
async function Ne(P) {
|
|
4487
4487
|
const K = new URL(Ju);
|
|
4488
4488
|
K.searchParams.set("format", "geojson"), K.searchParams.set("q", P), K.searchParams.set("addressdetails", "1"), K.searchParams.set("bounded", "1");
|
|
4489
|
-
const
|
|
4490
|
-
|
|
4489
|
+
const z = r();
|
|
4490
|
+
z && K.searchParams.set("viewbox", z);
|
|
4491
4491
|
const D = await fetch(K.toString());
|
|
4492
4492
|
if (!D.ok) throw new Error(`HTTP ${D.status}`);
|
|
4493
4493
|
const W = await D.json();
|
|
@@ -4535,15 +4535,15 @@ const Pu = ["title"], Ru = {
|
|
|
4535
4535
|
}));
|
|
4536
4536
|
}
|
|
4537
4537
|
function te(P) {
|
|
4538
|
-
const
|
|
4539
|
-
if (
|
|
4538
|
+
const z = P.replace(/\s+/g, "").split(":");
|
|
4539
|
+
if (z.length !== 4) return !1;
|
|
4540
4540
|
const D = [10, 2, 3, 4];
|
|
4541
|
-
return
|
|
4541
|
+
return z.every(
|
|
4542
4542
|
(W, le) => W.length === D[le] && /^\d+$/.test(W)
|
|
4543
4543
|
);
|
|
4544
4544
|
}
|
|
4545
4545
|
function pe(P) {
|
|
4546
|
-
n("goToCoordinates", [P.lat, P.lng]),
|
|
4546
|
+
n("goToCoordinates", [P.lat, P.lng]), U.value = !0;
|
|
4547
4547
|
}
|
|
4548
4548
|
async function Ye() {
|
|
4549
4549
|
const P = w.value.trim();
|
|
@@ -4565,8 +4565,8 @@ const Pu = ["title"], Ru = {
|
|
|
4565
4565
|
try {
|
|
4566
4566
|
await Be(P);
|
|
4567
4567
|
} catch (K) {
|
|
4568
|
-
const
|
|
4569
|
-
Ve({ type: "error", title: "Пошук адреси", message:
|
|
4568
|
+
const z = K?.message || "Помилка пошуку адреси";
|
|
4569
|
+
Ve({ type: "error", title: "Пошук адреси", message: z });
|
|
4570
4570
|
}
|
|
4571
4571
|
return;
|
|
4572
4572
|
}
|
|
@@ -4581,9 +4581,9 @@ const Pu = ["title"], Ru = {
|
|
|
4581
4581
|
}
|
|
4582
4582
|
const K = new URL(Zu);
|
|
4583
4583
|
K.searchParams.set("cad_num", P);
|
|
4584
|
-
const
|
|
4585
|
-
if (!
|
|
4586
|
-
const D = await
|
|
4584
|
+
const z = await fetch(K.toString());
|
|
4585
|
+
if (!z.ok) throw new Error(`HTTP ${z.status}`);
|
|
4586
|
+
const D = await z.json(), W = tt(D);
|
|
4587
4587
|
if (!W.length)
|
|
4588
4588
|
Ve({ type: "warning", title: "Пошук", message: "Не знайдено результатів" });
|
|
4589
4589
|
else {
|
|
@@ -4591,8 +4591,8 @@ const Pu = ["title"], Ru = {
|
|
|
4591
4591
|
pe(le);
|
|
4592
4592
|
}
|
|
4593
4593
|
} catch (K) {
|
|
4594
|
-
const
|
|
4595
|
-
Ve({ type: "error", title: "Пошук", message:
|
|
4594
|
+
const z = K?.message || "Помилка пошуку";
|
|
4595
|
+
Ve({ type: "error", title: "Пошук", message: z });
|
|
4596
4596
|
}
|
|
4597
4597
|
}
|
|
4598
4598
|
}
|
|
@@ -4643,18 +4643,18 @@ const Pu = ["title"], Ru = {
|
|
|
4643
4643
|
]),
|
|
4644
4644
|
b.value ? (i(), p("div", Ru, [
|
|
4645
4645
|
c("ul", null, [
|
|
4646
|
-
(i(!0), p(Se, null, Ie(_.value, (
|
|
4647
|
-
key:
|
|
4646
|
+
(i(!0), p(Se, null, Ie(_.value, (z) => De((i(), p("li", {
|
|
4647
|
+
key: z,
|
|
4648
4648
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 text-gray-900",
|
|
4649
|
-
onClick: (D) => Le(
|
|
4649
|
+
onClick: (D) => Le(z, D)
|
|
4650
4650
|
}, [
|
|
4651
|
-
He(de(Ce(
|
|
4651
|
+
He(de(Ce(z)), 1)
|
|
4652
4652
|
], 8, Nu)), [
|
|
4653
|
-
[l, Te(
|
|
4653
|
+
[l, Te(z)]
|
|
4654
4654
|
])), 128))
|
|
4655
4655
|
])
|
|
4656
|
-
])) :
|
|
4657
|
-
], 512)) :
|
|
4656
|
+
])) : H("", !0)
|
|
4657
|
+
], 512)) : H("", !0),
|
|
4658
4658
|
c("div", {
|
|
4659
4659
|
ref_key: "searchWrapperRef",
|
|
4660
4660
|
ref: M,
|
|
@@ -4663,15 +4663,15 @@ const Pu = ["title"], Ru = {
|
|
|
4663
4663
|
g.value === "parcel" ? (i(), xe(fn, {
|
|
4664
4664
|
key: 0,
|
|
4665
4665
|
modelValue: w.value,
|
|
4666
|
-
"onUpdate:modelValue": K[0] || (K[0] = (
|
|
4666
|
+
"onUpdate:modelValue": K[0] || (K[0] = (z) => w.value = z),
|
|
4667
4667
|
mask: "0000000000:00:000:0000",
|
|
4668
|
-
class: ae(["vs-input !h-[34px] transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm",
|
|
4668
|
+
class: ae(["vs-input !h-[34px] transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", U.value ? "!pr-14" : "!pr-8"])
|
|
4669
4669
|
}, null, 8, ["modelValue", "class"])) : De((i(), p("input", {
|
|
4670
4670
|
key: 1,
|
|
4671
|
-
"onUpdate:modelValue": K[1] || (K[1] = (
|
|
4671
|
+
"onUpdate:modelValue": K[1] || (K[1] = (z) => w.value = z),
|
|
4672
4672
|
placeholder: C.value,
|
|
4673
4673
|
type: "text",
|
|
4674
|
-
class: ae(["vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm",
|
|
4674
|
+
class: ae(["vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid py-1.5 pl-3 text-sm", U.value ? "!pr-14" : "!pr-8"]),
|
|
4675
4675
|
onFocus: ft
|
|
4676
4676
|
}, null, 42, ju)), [
|
|
4677
4677
|
[
|
|
@@ -4682,7 +4682,7 @@ const Pu = ["title"], Ru = {
|
|
|
4682
4682
|
]
|
|
4683
4683
|
]),
|
|
4684
4684
|
c("div", Uu, [
|
|
4685
|
-
|
|
4685
|
+
U.value ? (i(), p("button", {
|
|
4686
4686
|
key: 0,
|
|
4687
4687
|
type: "button",
|
|
4688
4688
|
class: "flex items-center text-gray-400 hover:text-gray-600",
|
|
@@ -4703,7 +4703,7 @@ const Pu = ["title"], Ru = {
|
|
|
4703
4703
|
d: "M6 18L18 6M6 6l12 12"
|
|
4704
4704
|
})
|
|
4705
4705
|
], -1)
|
|
4706
|
-
]))) :
|
|
4706
|
+
]))) : H("", !0),
|
|
4707
4707
|
K[5] || (K[5] = c("button", {
|
|
4708
4708
|
type: "submit",
|
|
4709
4709
|
class: "flex items-center text-gray-400 hover:text-gray-600",
|
|
@@ -4741,20 +4741,20 @@ const Pu = ["title"], Ru = {
|
|
|
4741
4741
|
type: "button",
|
|
4742
4742
|
class: "text-gray-400 hover:text-gray-600",
|
|
4743
4743
|
"aria-label": "Закрити",
|
|
4744
|
-
onClick: K[2] || (K[2] = (
|
|
4744
|
+
onClick: K[2] || (K[2] = (z) => T.value = !1)
|
|
4745
4745
|
}, " ✕ ")
|
|
4746
4746
|
]),
|
|
4747
4747
|
c("div", Wu, [
|
|
4748
4748
|
Z.value.length ? (i(), p("ul", qu, [
|
|
4749
|
-
(i(!0), p(Se, null, Ie(Z.value, (
|
|
4750
|
-
key:
|
|
4749
|
+
(i(!0), p(Se, null, Ie(Z.value, (z) => (i(), p("li", {
|
|
4750
|
+
key: z.id,
|
|
4751
4751
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-50",
|
|
4752
|
-
onClick: (D) => ze(
|
|
4753
|
-
}, de(
|
|
4752
|
+
onClick: (D) => ze(z)
|
|
4753
|
+
}, de(z.title), 9, Ku))), 128))
|
|
4754
4754
|
])) : (i(), p("div", Gu, de(j.value), 1))
|
|
4755
4755
|
])
|
|
4756
4756
|
], 4)
|
|
4757
|
-
])) :
|
|
4757
|
+
])) : H("", !0)
|
|
4758
4758
|
], 512)
|
|
4759
4759
|
], 32)
|
|
4760
4760
|
], 512));
|
|
@@ -4952,7 +4952,7 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
4952
4952
|
onClick: v
|
|
4953
4953
|
}, " ✓ ")
|
|
4954
4954
|
])) : (i(), p("span", ud, de(n.value), 1)),
|
|
4955
|
-
o.value ?
|
|
4955
|
+
o.value ? H("", !0) : (i(), p("button", {
|
|
4956
4956
|
key: 2,
|
|
4957
4957
|
class: "text-blue-500 hover:text-blue-600 px-0.5",
|
|
4958
4958
|
type: "button",
|
|
@@ -5129,7 +5129,7 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
5129
5129
|
onUpdate: w[0] || (w[0] = (y) => g.$emit("update-point", y)),
|
|
5130
5130
|
onDelete: (y) => g.$emit("delete-point", b.id)
|
|
5131
5131
|
}, null, 8, ["id", "index", "coords", "onDelete"]))), 128))
|
|
5132
|
-
])) :
|
|
5132
|
+
])) : H("", !0)
|
|
5133
5133
|
]));
|
|
5134
5134
|
}
|
|
5135
5135
|
}), Md = { class: "px-3 py-3 bg-blue-50/50 border-b border-blue-100" }, Ld = { class: "flex items-start gap-2" }, Dd = /* @__PURE__ */ ce({
|
|
@@ -5239,10 +5239,10 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
5239
5239
|
id: ne,
|
|
5240
5240
|
coords: I
|
|
5241
5241
|
}) => {
|
|
5242
|
-
const
|
|
5243
|
-
if (
|
|
5242
|
+
const U = n.value.findIndex((B) => B.id === ne);
|
|
5243
|
+
if (U === -1) return;
|
|
5244
5244
|
const Z = [...n.value];
|
|
5245
|
-
Z[
|
|
5245
|
+
Z[U] = { id: ne, coords: { ...I } }, n.value = Z, C();
|
|
5246
5246
|
}, $ = (ne) => {
|
|
5247
5247
|
n.value = n.value.filter((I) => I.id !== ne), C();
|
|
5248
5248
|
}, y = () => {
|
|
@@ -5297,7 +5297,7 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
5297
5297
|
"flex-1 px-3 py-2 text-xs font-medium transition-colors",
|
|
5298
5298
|
u.value === "general" ? "text-blue-600 border-b-2 border-blue-500 bg-blue-50/50" : "text-gray-500 hover:text-gray-700"
|
|
5299
5299
|
]),
|
|
5300
|
-
onClick: I[0] || (I[0] = (
|
|
5300
|
+
onClick: I[0] || (I[0] = (U) => f("general"))
|
|
5301
5301
|
}, " Загальна ", 2),
|
|
5302
5302
|
c("button", {
|
|
5303
5303
|
type: "button",
|
|
@@ -5305,7 +5305,7 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
5305
5305
|
"flex-1 px-3 py-2 text-xs font-medium transition-colors",
|
|
5306
5306
|
u.value === "topoint" ? "text-blue-600 border-b-2 border-blue-500 bg-blue-50/50" : "text-gray-500 hover:text-gray-700"
|
|
5307
5307
|
]),
|
|
5308
|
-
onClick: I[1] || (I[1] = (
|
|
5308
|
+
onClick: I[1] || (I[1] = (U) => f("topoint"))
|
|
5309
5309
|
}, " До точки ", 2)
|
|
5310
5310
|
]),
|
|
5311
5311
|
u.value === "general" ? (i(), p(Se, { key: 0 }, [
|
|
@@ -5325,24 +5325,24 @@ const sd = { class: "flex items-center gap-1.5 text-xs bg-gray-50 rounded p-1.5"
|
|
|
5325
5325
|
])),
|
|
5326
5326
|
c("div", Hd, [
|
|
5327
5327
|
c("div", Wd, [
|
|
5328
|
-
s.value ?
|
|
5328
|
+
s.value ? H("", !0) : (i(), xe(nd, {
|
|
5329
5329
|
key: 0,
|
|
5330
5330
|
onClick: R
|
|
5331
5331
|
})),
|
|
5332
5332
|
v.value ? (i(), xe(od, {
|
|
5333
5333
|
key: 1,
|
|
5334
5334
|
onClick: Y
|
|
5335
|
-
})) :
|
|
5335
|
+
})) : H("", !0)
|
|
5336
5336
|
]),
|
|
5337
5337
|
s.value ? (i(), xe(ld, {
|
|
5338
5338
|
key: 0,
|
|
5339
5339
|
onSubmit: Q,
|
|
5340
5340
|
onCancel: T
|
|
5341
|
-
})) :
|
|
5341
|
+
})) : H("", !0),
|
|
5342
5342
|
o.value ? (i(), xe(ad, {
|
|
5343
5343
|
key: 1,
|
|
5344
5344
|
onClick: y
|
|
5345
|
-
})) :
|
|
5345
|
+
})) : H("", !0)
|
|
5346
5346
|
])
|
|
5347
5347
|
])
|
|
5348
5348
|
]));
|
|
@@ -5669,7 +5669,7 @@ const Yd = {
|
|
|
5669
5669
|
() => R("zoom") ? l.zoom : S.zoom ?? l.zoom
|
|
5670
5670
|
), ne = h(
|
|
5671
5671
|
() => R("katottg") ? String(l.katottg ?? "") : String(S.katottg ?? l.katottg ?? "")
|
|
5672
|
-
), I = h(() => R("layers") ? l.layers ?? [] : S.layers ?? l.layers ?? []),
|
|
5672
|
+
), I = h(() => R("layers") ? l.layers ?? [] : S.layers ?? l.layers ?? []), U = h(() => R("bounds") ? l.bounds : S.bounds ?? l.bounds), Z = L(
|
|
5673
5673
|
Array.isArray(Y.value) && Y.value.length === 2 ? [...Y.value] : Q
|
|
5674
5674
|
), B = L(
|
|
5675
5675
|
typeof q.value == "number" ? q.value : T
|
|
@@ -5834,7 +5834,7 @@ const Yd = {
|
|
|
5834
5834
|
]
|
|
5835
5835
|
};
|
|
5836
5836
|
}
|
|
5837
|
-
let ze = null, ft = null, te = null, pe = null, Ye = [], P = null, K = null,
|
|
5837
|
+
let ze = null, ft = null, te = null, pe = null, Ye = [], P = null, K = null, z = null, D = !1, W = !1, le = !1, ve = null;
|
|
5838
5838
|
function Ae() {
|
|
5839
5839
|
return {
|
|
5840
5840
|
onSetup() {
|
|
@@ -6104,7 +6104,7 @@ const Yd = {
|
|
|
6104
6104
|
}
|
|
6105
6105
|
function Hl(d, m) {
|
|
6106
6106
|
if (!te) return [];
|
|
6107
|
-
const k = `vs-ov-bounds-src-${m}`, V = `vs-ov-bounds-line-${m}`, A = d.bounds ??
|
|
6107
|
+
const k = `vs-ov-bounds-src-${m}`, V = `vs-ov-bounds-line-${m}`, A = d.bounds ?? U.value ?? ue.value, G = yt(A);
|
|
6108
6108
|
if (!G.length) return [];
|
|
6109
6109
|
const fe = {
|
|
6110
6110
|
type: "FeatureCollection",
|
|
@@ -6236,7 +6236,7 @@ const Yd = {
|
|
|
6236
6236
|
if (!te) return;
|
|
6237
6237
|
const m = {
|
|
6238
6238
|
type: "FeatureCollection",
|
|
6239
|
-
features: yt(
|
|
6239
|
+
features: yt(U.value ?? ue.value).map((k) => ({
|
|
6240
6240
|
type: "Feature",
|
|
6241
6241
|
properties: {},
|
|
6242
6242
|
geometry: { type: "LineString", coordinates: k }
|
|
@@ -6593,7 +6593,7 @@ const Yd = {
|
|
|
6593
6593
|
const G = V[0];
|
|
6594
6594
|
return G != null ? String(G) : null;
|
|
6595
6595
|
}
|
|
6596
|
-
if (k(
|
|
6596
|
+
if (k(z)) return String(z);
|
|
6597
6597
|
if (!m.length) return null;
|
|
6598
6598
|
const A = o.value ? m[m.length - 1] : m[0];
|
|
6599
6599
|
return A?.id !== void 0 && A?.id !== null ? String(A.id) : null;
|
|
@@ -6602,11 +6602,11 @@ const Yd = {
|
|
|
6602
6602
|
if (!pe) return;
|
|
6603
6603
|
const d = pe.getAll();
|
|
6604
6604
|
if (f.value = d?.features?.length ?? 0, !d?.features?.length) {
|
|
6605
|
-
Ye = [], _.value = [], P = null,
|
|
6605
|
+
Ye = [], _.value = [], P = null, z = null, x.value = null, ye || (K = "__null__", a("update:modelValue", null));
|
|
6606
6606
|
return;
|
|
6607
6607
|
}
|
|
6608
6608
|
const m = (d.features ?? []).map(F).filter(Boolean);
|
|
6609
|
-
if (Ye = m, Yl(m),
|
|
6609
|
+
if (Ye = m, Yl(m), z = sl(), Gl(z), !ye) {
|
|
6610
6610
|
const k = we(m);
|
|
6611
6611
|
K = Ee(k), a("update:modelValue", k);
|
|
6612
6612
|
}
|
|
@@ -6623,7 +6623,7 @@ const Yd = {
|
|
|
6623
6623
|
pe.add(G);
|
|
6624
6624
|
} catch {
|
|
6625
6625
|
}
|
|
6626
|
-
}), ye = !1, Ye = (pe.getAll?.()?.features ?? k).map(F).filter(Boolean), Yl(Ye),
|
|
6626
|
+
}), ye = !1, Ye = (pe.getAll?.()?.features ?? k).map(F).filter(Boolean), Yl(Ye), z = null;
|
|
6627
6627
|
const A = mt(Ye[Ye.length - 1]?.geometry ?? null);
|
|
6628
6628
|
P = mt(A), Zl(), Kl(A), A && (kn(A), s.value || Ft());
|
|
6629
6629
|
}
|
|
@@ -6633,7 +6633,7 @@ const Yd = {
|
|
|
6633
6633
|
pe.add(d);
|
|
6634
6634
|
} catch {
|
|
6635
6635
|
}
|
|
6636
|
-
}), ye = !1, Yl(Ye), Zl(), Gl(
|
|
6636
|
+
}), ye = !1, Yl(Ye), Zl(), Gl(z));
|
|
6637
6637
|
}
|
|
6638
6638
|
function tl() {
|
|
6639
6639
|
if (pe) {
|
|
@@ -6664,7 +6664,7 @@ const Yd = {
|
|
|
6664
6664
|
const k = d || sl();
|
|
6665
6665
|
if (k)
|
|
6666
6666
|
try {
|
|
6667
|
-
pe.changeMode("direct_select", { featureId: k }),
|
|
6667
|
+
pe.changeMode("direct_select", { featureId: k }), z = k, Gl(z), v.value = "edit";
|
|
6668
6668
|
} catch {
|
|
6669
6669
|
v.value = "";
|
|
6670
6670
|
}
|
|
@@ -6686,7 +6686,7 @@ const Yd = {
|
|
|
6686
6686
|
D = !1;
|
|
6687
6687
|
}
|
|
6688
6688
|
}
|
|
6689
|
-
tl(), yl(), Ye = [], _.value = [],
|
|
6689
|
+
tl(), yl(), Ye = [], _.value = [], z = null, K = "__null__", x.value = null, a("update:modelValue", null);
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
6692
6692
|
function wa() {
|
|
@@ -6828,7 +6828,7 @@ const Yd = {
|
|
|
6828
6828
|
}
|
|
6829
6829
|
if (!pe || s.value || v.value !== "edit") return;
|
|
6830
6830
|
const V = wt(k?.point);
|
|
6831
|
-
!V || V ===
|
|
6831
|
+
!V || V === z || requestAnimationFrame(() => {
|
|
6832
6832
|
!pe || s.value || Ft(V);
|
|
6833
6833
|
});
|
|
6834
6834
|
}), te.on("draw.create", () => {
|
|
@@ -6854,7 +6854,7 @@ const Yd = {
|
|
|
6854
6854
|
const G = sl(), fe = G ? bt(G) : pe?.getAll?.()?.features?.[0];
|
|
6855
6855
|
if (fe?.id)
|
|
6856
6856
|
try {
|
|
6857
|
-
pe.changeMode("direct_select", { featureId: fe.id }),
|
|
6857
|
+
pe.changeMode("direct_select", { featureId: fe.id }), z = String(fe.id);
|
|
6858
6858
|
} catch {
|
|
6859
6859
|
v.value = "";
|
|
6860
6860
|
}
|
|
@@ -6863,13 +6863,13 @@ const Yd = {
|
|
|
6863
6863
|
}
|
|
6864
6864
|
Ut();
|
|
6865
6865
|
}), te.on("draw.delete", () => {
|
|
6866
|
-
Le || D || w.isRulerActive.value || v.value === "marker" || v.value === "polyline" || v.value === "polygon" || v.value === "rectangle" || (Ut(), pe?.getAll?.()?.features?.length || (
|
|
6866
|
+
Le || D || w.isRulerActive.value || v.value === "marker" || v.value === "polyline" || v.value === "polygon" || v.value === "rectangle" || (Ut(), pe?.getAll?.()?.features?.length || (z = null), v.value = "", tl());
|
|
6867
6867
|
}), te.on("draw.selectionchange", (k) => {
|
|
6868
6868
|
if (!pe || W || w.isRulerActive.value || v.value === "marker" || v.value === "polyline" || v.value === "polygon" || v.value === "rectangle")
|
|
6869
6869
|
return;
|
|
6870
6870
|
const V = k?.features?.[0]?.id !== void 0 && k?.features?.[0]?.id !== null ? String(k.features[0].id) : null;
|
|
6871
6871
|
if (!s.value && V) {
|
|
6872
|
-
if (v.value === "edit" &&
|
|
6872
|
+
if (v.value === "edit" && z === V) return;
|
|
6873
6873
|
requestAnimationFrame(() => {
|
|
6874
6874
|
!pe || s.value || Ft(V);
|
|
6875
6875
|
});
|
|
@@ -6877,7 +6877,7 @@ const Yd = {
|
|
|
6877
6877
|
}
|
|
6878
6878
|
const A = pe.getSelectedIds?.(), G = Array.isArray(A) && A.length > 0 ? String(A[0]) : null;
|
|
6879
6879
|
if (!s.value && G) {
|
|
6880
|
-
if (v.value === "edit" &&
|
|
6880
|
+
if (v.value === "edit" && z === G) return;
|
|
6881
6881
|
requestAnimationFrame(() => {
|
|
6882
6882
|
!pe || s.value || Ft(G);
|
|
6883
6883
|
});
|
|
@@ -6951,7 +6951,7 @@ const Yd = {
|
|
|
6951
6951
|
},
|
|
6952
6952
|
{ immediate: !0, deep: !0 }
|
|
6953
6953
|
), me(
|
|
6954
|
-
() =>
|
|
6954
|
+
() => U.value,
|
|
6955
6955
|
() => {
|
|
6956
6956
|
te && (Kt(), he.value.forEach((d) => {
|
|
6957
6957
|
const m = ee[d];
|
|
@@ -7028,7 +7028,7 @@ const Yd = {
|
|
|
7028
7028
|
Fe.value.search ? (i(), xe(Qu, {
|
|
7029
7029
|
key: 0,
|
|
7030
7030
|
onGoToCoordinates: xa
|
|
7031
|
-
})) :
|
|
7031
|
+
})) : H("", !0),
|
|
7032
7032
|
Fe.value.import || Fe.value.export ? (i(), p("div", Zd, [
|
|
7033
7033
|
c("div", Jd, [
|
|
7034
7034
|
Fe.value.import ? (i(), p("div", {
|
|
@@ -7054,21 +7054,21 @@ const Yd = {
|
|
|
7054
7054
|
type: "button",
|
|
7055
7055
|
class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
|
|
7056
7056
|
onClick: $a
|
|
7057
|
-
}, " З файлу ")) :
|
|
7057
|
+
}, " З файлу ")) : H("", !0),
|
|
7058
7058
|
c("button", {
|
|
7059
7059
|
type: "button",
|
|
7060
7060
|
class: "block w-full text-left px-3 py-2 hover:bg-gray-100 text-gray-900",
|
|
7061
7061
|
onClick: Ca
|
|
7062
7062
|
}, " З координат ")
|
|
7063
|
-
])) :
|
|
7064
|
-
], 512)) :
|
|
7063
|
+
])) : H("", !0)
|
|
7064
|
+
], 512)) : H("", !0),
|
|
7065
7065
|
Fe.value.export ? (i(), p("button", {
|
|
7066
7066
|
key: 1,
|
|
7067
7067
|
type: "button",
|
|
7068
7068
|
class: "inline-flex items-center gap-2 text-sm font-medium border rounded-md px-3 py-2 bg-white text-blue-600 border-stone-200 hover:bg-blue-500 hover:text-white transition",
|
|
7069
7069
|
onClick: Da,
|
|
7070
7070
|
disabled: s.value || f.value === 0
|
|
7071
|
-
}, " Експорт ", 8, ec)) :
|
|
7071
|
+
}, " Експорт ", 8, ec)) : H("", !0)
|
|
7072
7072
|
]),
|
|
7073
7073
|
c("input", {
|
|
7074
7074
|
ref_key: "importRef",
|
|
@@ -7079,8 +7079,8 @@ const Yd = {
|
|
|
7079
7079
|
class: "hidden",
|
|
7080
7080
|
disabled: s.value
|
|
7081
7081
|
}, null, 40, tc)
|
|
7082
|
-
])) :
|
|
7083
|
-
])) :
|
|
7082
|
+
])) : H("", !0)
|
|
7083
|
+
])) : H("", !0),
|
|
7084
7084
|
J(E(Ol), {
|
|
7085
7085
|
visible: $e.value,
|
|
7086
7086
|
"onUpdate:visible": m[1] || (m[1] = (k) => $e.value = k),
|
|
@@ -7120,7 +7120,7 @@ const Yd = {
|
|
|
7120
7120
|
disabled: s.value
|
|
7121
7121
|
}, [
|
|
7122
7122
|
J(E(Yn), { class: "h-4 w-4" })
|
|
7123
|
-
], 10, rc)) :
|
|
7123
|
+
], 10, rc)) : H("", !0),
|
|
7124
7124
|
Fe.value.line ? (i(), p("button", {
|
|
7125
7125
|
key: 1,
|
|
7126
7126
|
class: ae(["vs-btn", { "vs-active": v.value === "polyline" }]),
|
|
@@ -7129,7 +7129,7 @@ const Yd = {
|
|
|
7129
7129
|
disabled: s.value
|
|
7130
7130
|
}, [
|
|
7131
7131
|
J(yu)
|
|
7132
|
-
], 10, sc)) :
|
|
7132
|
+
], 10, sc)) : H("", !0),
|
|
7133
7133
|
Fe.value.polygon ? (i(), p("button", {
|
|
7134
7134
|
key: 2,
|
|
7135
7135
|
class: ae(["vs-btn", { "vs-active": v.value === "polygon" }]),
|
|
@@ -7138,7 +7138,7 @@ const Yd = {
|
|
|
7138
7138
|
disabled: s.value
|
|
7139
7139
|
}, [
|
|
7140
7140
|
J(xu)
|
|
7141
|
-
], 10, ic)) :
|
|
7141
|
+
], 10, ic)) : H("", !0),
|
|
7142
7142
|
Fe.value.rectangle ? (i(), p("button", {
|
|
7143
7143
|
key: 3,
|
|
7144
7144
|
class: ae(["vs-btn", { "vs-active": v.value === "rectangle" }]),
|
|
@@ -7147,7 +7147,7 @@ const Yd = {
|
|
|
7147
7147
|
disabled: s.value
|
|
7148
7148
|
}, [
|
|
7149
7149
|
J(Cu)
|
|
7150
|
-
], 10, uc)) :
|
|
7150
|
+
], 10, uc)) : H("", !0),
|
|
7151
7151
|
Fe.value.ruler ? (i(), p("button", {
|
|
7152
7152
|
key: 4,
|
|
7153
7153
|
class: ae(["vs-btn mt-3", { "vs-active": E(w).isRulerActive.value }]),
|
|
@@ -7155,7 +7155,7 @@ const Yd = {
|
|
|
7155
7155
|
onClick: b
|
|
7156
7156
|
}, [
|
|
7157
7157
|
J(E(Zn), { class: "h-4 w-4" })
|
|
7158
|
-
], 2)) :
|
|
7158
|
+
], 2)) : H("", !0),
|
|
7159
7159
|
c("button", {
|
|
7160
7160
|
class: "vs-btn mt-5",
|
|
7161
7161
|
onClick: m[6] || (m[6] = (k) => r.value = !r.value),
|
|
@@ -7173,14 +7173,14 @@ const Yd = {
|
|
|
7173
7173
|
onTabChange: E(w).onRulerTabChange,
|
|
7174
7174
|
onPointsChange: E(w).onRulerPointsChange,
|
|
7175
7175
|
onShapeClosedChange: E(w).onRulerShapeClosedChange
|
|
7176
|
-
}, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) :
|
|
7176
|
+
}, null, 8, ["onTabChange", "onPointsChange", "onShapeClosedChange"])) : H("", !0),
|
|
7177
7177
|
Fe.value.ruler && E(w).isRulerActive.value && E(w).hasRulerPoints.value ? (i(), xe(Kd, {
|
|
7178
7178
|
key: 2,
|
|
7179
7179
|
map: C.value,
|
|
7180
7180
|
points: E(w).rulerPoints.value,
|
|
7181
7181
|
"is-shape-closed": E(w).rulerShapeClosed.value,
|
|
7182
7182
|
"label-mode": E(w).rulerActiveTab.value
|
|
7183
|
-
}, null, 8, ["map", "points", "is-shape-closed", "label-mode"])) :
|
|
7183
|
+
}, null, 8, ["map", "points", "is-shape-closed", "label-mode"])) : H("", !0),
|
|
7184
7184
|
qe.value.length ? (i(), p("div", {
|
|
7185
7185
|
key: 3,
|
|
7186
7186
|
class: "absolute z-[1500] pointer-events-none",
|
|
@@ -7197,7 +7197,7 @@ const Yd = {
|
|
|
7197
7197
|
]))), 128))
|
|
7198
7198
|
])
|
|
7199
7199
|
])
|
|
7200
|
-
], 4)) :
|
|
7200
|
+
], 4)) : H("", !0),
|
|
7201
7201
|
c("div", mc, [
|
|
7202
7202
|
c("div", vc, [
|
|
7203
7203
|
J(Du, {
|
|
@@ -7221,7 +7221,7 @@ const Yd = {
|
|
|
7221
7221
|
c("span", bc, de(k.config.title || k.config.name || k.id), 1)
|
|
7222
7222
|
]))), 128))
|
|
7223
7223
|
])
|
|
7224
|
-
])) :
|
|
7224
|
+
])) : H("", !0)
|
|
7225
7225
|
])
|
|
7226
7226
|
]),
|
|
7227
7227
|
c("div", wc, [
|
|
@@ -7236,12 +7236,12 @@ const Yd = {
|
|
|
7236
7236
|
type: "button",
|
|
7237
7237
|
class: ae([
|
|
7238
7238
|
"font-bold underline-offset-2",
|
|
7239
|
-
k.id === E(
|
|
7239
|
+
k.id === E(z) ? "text-blue-700 underline" : "text-gray-700 hover:text-blue-700 hover:underline"
|
|
7240
7240
|
]),
|
|
7241
7241
|
onClick: (A) => ha(k.id),
|
|
7242
7242
|
disabled: s.value
|
|
7243
7243
|
}, de(k.label), 11, Cc),
|
|
7244
|
-
V < _.value.length - 1 ? (i(), p("span", Sc, ", ")) :
|
|
7244
|
+
V < _.value.length - 1 ? (i(), p("span", Sc, ", ")) : H("", !0)
|
|
7245
7245
|
], 64))), 128))
|
|
7246
7246
|
])
|
|
7247
7247
|
]),
|
|
@@ -7274,7 +7274,7 @@ const Yd = {
|
|
|
7274
7274
|
J(E(el), { class: "h-4 w-4" })
|
|
7275
7275
|
], 8, Fc)
|
|
7276
7276
|
])
|
|
7277
|
-
])) :
|
|
7277
|
+
])) : H("", !0)
|
|
7278
7278
|
])
|
|
7279
7279
|
], 2)
|
|
7280
7280
|
], 8, ["disabled"]));
|
|
@@ -7371,9 +7371,9 @@ const Yd = {
|
|
|
7371
7371
|
})
|
|
7372
7372
|
], 8, Nc)
|
|
7373
7373
|
]))), 128)),
|
|
7374
|
-
x.value ? (i(), p("div", jc, de(v.value), 1)) :
|
|
7374
|
+
x.value ? (i(), p("div", jc, de(v.value), 1)) : H("", !0),
|
|
7375
7375
|
c("div", Uc, [
|
|
7376
|
-
C.value ?
|
|
7376
|
+
C.value ? H("", !0) : De((i(), p("input", {
|
|
7377
7377
|
key: 0,
|
|
7378
7378
|
ref_key: "inputRef",
|
|
7379
7379
|
ref: s,
|
|
@@ -7405,7 +7405,7 @@ const Yd = {
|
|
|
7405
7405
|
onClick: Oe(y, ["stop"])
|
|
7406
7406
|
}, [
|
|
7407
7407
|
J(E(Vt), { class: "h-4 w-4" })
|
|
7408
|
-
], 8, Wc)) :
|
|
7408
|
+
], 8, Wc)) : H("", !0)
|
|
7409
7409
|
])
|
|
7410
7410
|
], 10, Oc)
|
|
7411
7411
|
], 2)
|
|
@@ -7646,7 +7646,7 @@ const Yd = {
|
|
|
7646
7646
|
], 8, cf)
|
|
7647
7647
|
], 42, rf))), 128))
|
|
7648
7648
|
], 512),
|
|
7649
|
-
u.value.length ?
|
|
7649
|
+
u.value.length ? H("", !0) : (i(), p("span", ff, " Дані для відображення відсутні ")),
|
|
7650
7650
|
c("div", pf, [
|
|
7651
7651
|
c("button", {
|
|
7652
7652
|
type: "button",
|
|
@@ -7746,21 +7746,21 @@ const Yd = {
|
|
|
7746
7746
|
"onUpdate:modelValue": (M) => y.value = M,
|
|
7747
7747
|
disabled: o.value,
|
|
7748
7748
|
placeholder: s.value
|
|
7749
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) :
|
|
7749
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : H("", !0),
|
|
7750
7750
|
b.inputType === "tel" ? (i(), xe(ta, {
|
|
7751
7751
|
key: 1,
|
|
7752
7752
|
modelValue: y.value,
|
|
7753
7753
|
"onUpdate:modelValue": (M) => y.value = M,
|
|
7754
7754
|
disabled: o.value,
|
|
7755
7755
|
placeholder: s.value
|
|
7756
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) :
|
|
7756
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : H("", !0),
|
|
7757
7757
|
b.inputType === "email" ? (i(), xe(ea, {
|
|
7758
7758
|
key: 2,
|
|
7759
7759
|
modelValue: y.value,
|
|
7760
7760
|
"onUpdate:modelValue": (M) => y.value = M,
|
|
7761
7761
|
disabled: o.value,
|
|
7762
7762
|
placeholder: s.value
|
|
7763
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) :
|
|
7763
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : H("", !0),
|
|
7764
7764
|
b.inputType === "mask" ? (i(), xe(fn, {
|
|
7765
7765
|
key: 3,
|
|
7766
7766
|
modelValue: y.value,
|
|
@@ -7768,7 +7768,7 @@ const Yd = {
|
|
|
7768
7768
|
mask: b.mask,
|
|
7769
7769
|
disabled: o.value,
|
|
7770
7770
|
placeholder: s.value
|
|
7771
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "mask", "disabled", "placeholder"])) :
|
|
7771
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "mask", "disabled", "placeholder"])) : H("", !0)
|
|
7772
7772
|
]),
|
|
7773
7773
|
c("button", {
|
|
7774
7774
|
type: "button",
|
|
@@ -7780,7 +7780,7 @@ const Yd = {
|
|
|
7780
7780
|
], 8, kf)
|
|
7781
7781
|
], 42, bf))), 128))
|
|
7782
7782
|
], 512),
|
|
7783
|
-
a.value.length ?
|
|
7783
|
+
a.value.length ? H("", !0) : (i(), p("span", _f, " Дані для відображення відсутні ")),
|
|
7784
7784
|
c("div", $f, [
|
|
7785
7785
|
c("button", {
|
|
7786
7786
|
type: "button",
|
|
@@ -8028,7 +8028,7 @@ const Yd = {
|
|
|
8028
8028
|
class: "cursor-pointer shrink-0 w-[38px] text-green-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
8029
8029
|
}, [
|
|
8030
8030
|
J(E(_t), { class: "h-4 w-4" })
|
|
8031
|
-
])) :
|
|
8031
|
+
])) : H("", !0),
|
|
8032
8032
|
!w.disabled && l.value > 1 && w.isAdded ? (i(), p("button", {
|
|
8033
8033
|
key: 3,
|
|
8034
8034
|
type: "button",
|
|
@@ -8036,7 +8036,7 @@ const Yd = {
|
|
|
8036
8036
|
class: "cursor-pointer shrink-0 w-[38px] text-red-600 h-[38px] rounded-md flex items-center justify-center border border-stone-200 hover:bg-stone-100"
|
|
8037
8037
|
}, [
|
|
8038
8038
|
J(E(Vt), { class: "h-4 w-4" })
|
|
8039
|
-
], 8, Pf)) :
|
|
8039
|
+
], 8, Pf)) : H("", !0)
|
|
8040
8040
|
]))), 128))
|
|
8041
8041
|
], 2));
|
|
8042
8042
|
}
|
|
@@ -8084,7 +8084,7 @@ const Yd = {
|
|
|
8084
8084
|
if (!D) return "";
|
|
8085
8085
|
const W = D.label ?? D.text ?? D.name ?? D.ua ?? D.en;
|
|
8086
8086
|
return W ? String(W) : D.id !== void 0 && D.id !== null ? String(D.id) : "";
|
|
8087
|
-
},
|
|
8087
|
+
}, U = (D) => {
|
|
8088
8088
|
const W = ne(D);
|
|
8089
8089
|
return u.value[W] || (u.value[W] = `array-select-${W}-${Math.random().toString(36).slice(2, 8)}`), u.value[W];
|
|
8090
8090
|
}, Z = h(() => new Set(o.value.map((D) => ne(D.id)))), B = h(() => {
|
|
@@ -8223,7 +8223,7 @@ const Yd = {
|
|
|
8223
8223
|
const le = {
|
|
8224
8224
|
id: D.id,
|
|
8225
8225
|
text: I(D) || String(D.id ?? ""),
|
|
8226
|
-
key:
|
|
8226
|
+
key: U(D.id)
|
|
8227
8227
|
};
|
|
8228
8228
|
o.value = [...o.value, le], oe(D), v.value = "", Qe(() => {
|
|
8229
8229
|
b.value?.focus();
|
|
@@ -8260,7 +8260,7 @@ const Yd = {
|
|
|
8260
8260
|
{
|
|
8261
8261
|
id: ve,
|
|
8262
8262
|
text: le ? I(le) : String(ve),
|
|
8263
|
-
key:
|
|
8263
|
+
key: U(ve)
|
|
8264
8264
|
}
|
|
8265
8265
|
], oe(le ?? null));
|
|
8266
8266
|
}
|
|
@@ -8279,7 +8279,7 @@ const Yd = {
|
|
|
8279
8279
|
const le = W.map((ve) => ({
|
|
8280
8280
|
id: ve,
|
|
8281
8281
|
text: r.value[ne(ve)] ?? String(ve),
|
|
8282
|
-
key:
|
|
8282
|
+
key: U(ve)
|
|
8283
8283
|
}));
|
|
8284
8284
|
y = !0, o.value = le;
|
|
8285
8285
|
};
|
|
@@ -8305,11 +8305,11 @@ const Yd = {
|
|
|
8305
8305
|
}, { immediate: !0, deep: !0 }), me(() => l.data, async (D) => {
|
|
8306
8306
|
D && (await ie(v.value.trim()), await K());
|
|
8307
8307
|
}, { immediate: !0 });
|
|
8308
|
-
const
|
|
8308
|
+
const z = L(!1);
|
|
8309
8309
|
return me(q, async () => {
|
|
8310
8310
|
if (l.data) {
|
|
8311
|
-
if (!
|
|
8312
|
-
|
|
8311
|
+
if (!z.value) {
|
|
8312
|
+
z.value = !0;
|
|
8313
8313
|
return;
|
|
8314
8314
|
}
|
|
8315
8315
|
o.value = [], await ie(v.value.trim()), await K();
|
|
@@ -8402,9 +8402,9 @@ const Yd = {
|
|
|
8402
8402
|
onClick: Oe((ve) => X(le), ["stop"]),
|
|
8403
8403
|
disabled: R.value
|
|
8404
8404
|
}, de(I(le)), 9, Hf))), 128)),
|
|
8405
|
-
B.value.length === 0 ? (i(), p("p", Wf, " Немає варіантів ")) :
|
|
8405
|
+
B.value.length === 0 ? (i(), p("p", Wf, " Немає варіантів ")) : H("", !0)
|
|
8406
8406
|
])
|
|
8407
|
-
], 4)) :
|
|
8407
|
+
], 4)) : H("", !0)
|
|
8408
8408
|
]),
|
|
8409
8409
|
_: 1
|
|
8410
8410
|
})
|
|
@@ -8420,7 +8420,7 @@ const Yd = {
|
|
|
8420
8420
|
}, [
|
|
8421
8421
|
J(E(_t), { class: "h-4 w-4" }),
|
|
8422
8422
|
W[8] || (W[8] = c("span", null, "Додати", -1))
|
|
8423
|
-
], 8, qf)) :
|
|
8423
|
+
], 8, qf)) : H("", !0)
|
|
8424
8424
|
]),
|
|
8425
8425
|
c("div", Kf, [
|
|
8426
8426
|
(i(!0), p(Se, null, Ie(o.value, (le, ve) => (i(), p("div", {
|
|
@@ -8455,7 +8455,7 @@ const Yd = {
|
|
|
8455
8455
|
J(E(Vt), { class: "h-4 w-4" })
|
|
8456
8456
|
], 8, Jf)
|
|
8457
8457
|
], 42, Gf))), 128)),
|
|
8458
|
-
o.value.length === 0 ? (i(), p("p", Xf, "Немає вибраних значень")) :
|
|
8458
|
+
o.value.length === 0 ? (i(), p("p", Xf, "Немає вибраних значень")) : H("", !0)
|
|
8459
8459
|
])
|
|
8460
8460
|
], 512)
|
|
8461
8461
|
], 64));
|
|
@@ -8585,7 +8585,7 @@ const Yd = {
|
|
|
8585
8585
|
title: "Show search results"
|
|
8586
8586
|
}, [
|
|
8587
8587
|
J(E(Jt), { class: "h-4 w-4" })
|
|
8588
|
-
])) :
|
|
8588
|
+
])) : H("", !0)
|
|
8589
8589
|
]),
|
|
8590
8590
|
c("button", {
|
|
8591
8591
|
type: "button",
|
|
@@ -8621,9 +8621,9 @@ const Yd = {
|
|
|
8621
8621
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100 border-b text-sm"
|
|
8622
8622
|
}, de(q.display_name), 9, sp))), 128))
|
|
8623
8623
|
]),
|
|
8624
|
-
f.value.length ?
|
|
8624
|
+
f.value.length ? H("", !0) : (i(), p("div", ip, " Не знайдено результатів "))
|
|
8625
8625
|
])
|
|
8626
|
-
])) :
|
|
8626
|
+
])) : H("", !0)
|
|
8627
8627
|
]))
|
|
8628
8628
|
]));
|
|
8629
8629
|
}
|
|
@@ -8709,7 +8709,7 @@ const Yd = {
|
|
|
8709
8709
|
J(E(el), { class: "h-4 w-4" })
|
|
8710
8710
|
], 8, fp)
|
|
8711
8711
|
]))), 128)),
|
|
8712
|
-
a.value.length === 0 ? (i(), p("div", pp, de(t.emptyLabel), 1)) :
|
|
8712
|
+
a.value.length === 0 ? (i(), p("div", pp, de(t.emptyLabel), 1)) : H("", !0)
|
|
8713
8713
|
]),
|
|
8714
8714
|
c("button", {
|
|
8715
8715
|
type: "button",
|
|
@@ -8814,7 +8814,7 @@ const Yd = {
|
|
|
8814
8814
|
n.value[ie] = !n.value[ie];
|
|
8815
8815
|
}
|
|
8816
8816
|
}
|
|
8817
|
-
function
|
|
8817
|
+
function U(ie, ye) {
|
|
8818
8818
|
if (!w.value || t.disabled) {
|
|
8819
8819
|
ye.preventDefault();
|
|
8820
8820
|
return;
|
|
@@ -8879,7 +8879,7 @@ const Yd = {
|
|
|
8879
8879
|
t.view === "accordion" ? "overflow-hidden" : ne(ee) ? "pt-6 px-6" : "p-6"
|
|
8880
8880
|
]]),
|
|
8881
8881
|
draggable: w.value && !t.disabled,
|
|
8882
|
-
onDragstart: (he) =>
|
|
8882
|
+
onDragstart: (he) => U(ee, he),
|
|
8883
8883
|
onDragend: O,
|
|
8884
8884
|
onDragover: Oe((he) => Z(ee, he), ["prevent"]),
|
|
8885
8885
|
onDragenter: Oe((he) => B(ee, he), ["prevent"]),
|
|
@@ -8896,7 +8896,7 @@ const Yd = {
|
|
|
8896
8896
|
key: 0,
|
|
8897
8897
|
class: "h-4 w-4 text-gray-400",
|
|
8898
8898
|
"aria-hidden": "true"
|
|
8899
|
-
})) :
|
|
8899
|
+
})) : H("", !0),
|
|
8900
8900
|
g.value ? (i(), p("button", {
|
|
8901
8901
|
key: 1,
|
|
8902
8902
|
type: "button",
|
|
@@ -8906,7 +8906,7 @@ const Yd = {
|
|
|
8906
8906
|
J(E(pl), {
|
|
8907
8907
|
class: ae(["h-4 w-4 transition", ne(ee) ? "-rotate-90" : "rotate-0"])
|
|
8908
8908
|
}, null, 8, ["class"])
|
|
8909
|
-
], 8, wp)) :
|
|
8909
|
+
], 8, wp)) : H("", !0),
|
|
8910
8910
|
c("div", xp, de(`${f.value} (${ee + 1})`), 1)
|
|
8911
8911
|
]),
|
|
8912
8912
|
c("div", kp, [
|
|
@@ -8949,7 +8949,7 @@ const Yd = {
|
|
|
8949
8949
|
[Pt, !ne(ee)]
|
|
8950
8950
|
])
|
|
8951
8951
|
], 42, hp))), 128)),
|
|
8952
|
-
l.value.length === 0 ? (i(), p("div", Cp, de(v.value), 1)) :
|
|
8952
|
+
l.value.length === 0 ? (i(), p("div", Cp, de(v.value), 1)) : H("", !0),
|
|
8953
8953
|
c("button", {
|
|
8954
8954
|
type: "button",
|
|
8955
8955
|
class: "flex items-center gap-2 text-gray-600 hover:text-gray-900 font-medium transition-colors text-sm",
|
|
@@ -9200,13 +9200,13 @@ const Yd = {
|
|
|
9200
9200
|
const l = e, a = je(e, "modelValue"), n = t, o = h(() => go[`${l.layout}`]), s = ["label", "placeholder", "info", "description", "text", "html"], r = L(q()), u = h(() => Q(l.item, r.value)), f = h(() => Dp?.[`vs-input-${l.item.type}`]), v = nt("field-props"), x = h(() => {
|
|
9201
9201
|
const I = E(f);
|
|
9202
9202
|
if (!I) return /* @__PURE__ */ new Set();
|
|
9203
|
-
const
|
|
9204
|
-
if (!
|
|
9205
|
-
const Z = Array.isArray(
|
|
9203
|
+
const U = I.props ?? I.__vccOpts?.props;
|
|
9204
|
+
if (!U) return /* @__PURE__ */ new Set();
|
|
9205
|
+
const Z = Array.isArray(U) ? U : Object.keys(U);
|
|
9206
9206
|
return new Set(Z);
|
|
9207
9207
|
}), C = [...["min", "max", "step"], "api", "set", "mask"], g = h(() => {
|
|
9208
|
-
const I = { ...u.value ?? {} },
|
|
9209
|
-
|
|
9208
|
+
const I = { ...u.value ?? {} }, U = l.item?.name;
|
|
9209
|
+
U && v?.value?.[U] && Object.assign(I, v.value[U]);
|
|
9210
9210
|
const Z = x.value;
|
|
9211
9211
|
let B;
|
|
9212
9212
|
return Z.size ? B = Object.fromEntries(Object.entries(I).filter(([j]) => Z.has(j))) : B = I, C.forEach((j) => {
|
|
@@ -9214,18 +9214,18 @@ const Yd = {
|
|
|
9214
9214
|
O != null && (B[j] = O);
|
|
9215
9215
|
}), B;
|
|
9216
9216
|
}), w = (I) => {
|
|
9217
|
-
const
|
|
9217
|
+
const U = typeof I == "object" && I !== null ? I : { value: I };
|
|
9218
9218
|
n("value-selected", {
|
|
9219
|
-
...
|
|
9220
|
-
name:
|
|
9219
|
+
...U,
|
|
9220
|
+
name: U.name ?? l.item?.name
|
|
9221
9221
|
});
|
|
9222
9222
|
}, b = /{{\s*([^}]+?)\s*}}/g, $ = nt("values"), y = L(!1), S = h(() => {
|
|
9223
|
-
const I = l.item?.api;
|
|
9224
|
-
return typeof I == "string" && I.trim().length > 0 && (
|
|
9223
|
+
const I = l.item?.api, U = l.item?.type?.toLowerCase();
|
|
9224
|
+
return typeof I == "string" && I.trim().length > 0 && (U === "text" || U === "mask");
|
|
9225
9225
|
});
|
|
9226
|
-
function M(I,
|
|
9227
|
-
if (!(I == null || !
|
|
9228
|
-
return
|
|
9226
|
+
function M(I, U) {
|
|
9227
|
+
if (!(I == null || !U))
|
|
9228
|
+
return U.split(".").reduce(
|
|
9229
9229
|
(Z, B) => Z?.[B.trim()],
|
|
9230
9230
|
I
|
|
9231
9231
|
);
|
|
@@ -9233,9 +9233,9 @@ const Yd = {
|
|
|
9233
9233
|
async function R() {
|
|
9234
9234
|
const I = String(a.value ?? "").trim();
|
|
9235
9235
|
if (!I) return;
|
|
9236
|
-
const
|
|
9237
|
-
if (!
|
|
9238
|
-
const Z =
|
|
9236
|
+
const U = (l.item?.api ?? "").trim();
|
|
9237
|
+
if (!U) return;
|
|
9238
|
+
const Z = U.replace(b, (B, j) => j.trim() === "value" ? encodeURIComponent(I) : "");
|
|
9239
9239
|
y.value = !0;
|
|
9240
9240
|
try {
|
|
9241
9241
|
let B = await fetch(Z), j = 0;
|
|
@@ -9272,29 +9272,29 @@ const Yd = {
|
|
|
9272
9272
|
}), nl(() => {
|
|
9273
9273
|
window.removeEventListener("storage", ne);
|
|
9274
9274
|
});
|
|
9275
|
-
function Q(I,
|
|
9275
|
+
function Q(I, U) {
|
|
9276
9276
|
if (!I) return {};
|
|
9277
9277
|
const Z = { ...I };
|
|
9278
9278
|
return s.forEach((B) => {
|
|
9279
|
-
const j = Y(I, B,
|
|
9279
|
+
const j = Y(I, B, U);
|
|
9280
9280
|
j != null && (Z[B] = j);
|
|
9281
|
-
}), Array.isArray(I.options) && (Z.options = I.options.map((B) => T(B,
|
|
9281
|
+
}), Array.isArray(I.options) && (Z.options = I.options.map((B) => T(B, U))), Z;
|
|
9282
9282
|
}
|
|
9283
|
-
function T(I,
|
|
9283
|
+
function T(I, U) {
|
|
9284
9284
|
if (!I) return I;
|
|
9285
|
-
const Z = { ...I }, B = Y(I, "label",
|
|
9285
|
+
const Z = { ...I }, B = Y(I, "label", U), j = Y(I, "text", U);
|
|
9286
9286
|
return B != null && (Z.label = B), j != null ? Z.text = j : B != null && (Z.text = B), Z;
|
|
9287
9287
|
}
|
|
9288
|
-
function Y(I,
|
|
9289
|
-
const B = `${
|
|
9288
|
+
function Y(I, U, Z) {
|
|
9289
|
+
const B = `${U}:${Z}`;
|
|
9290
9290
|
if (I?.[B] != null) return I[B];
|
|
9291
|
-
if (
|
|
9292
|
-
if (I?.[
|
|
9293
|
-
if (
|
|
9291
|
+
if (U === "label" && I?.[Z] != null) return I[Z];
|
|
9292
|
+
if (I?.[U] != null) return I[U];
|
|
9293
|
+
if (U === "label") {
|
|
9294
9294
|
if (I?.ua != null) return I.ua;
|
|
9295
9295
|
if (I?.en != null) return I.en;
|
|
9296
9296
|
}
|
|
9297
|
-
if (
|
|
9297
|
+
if (U === "text" || U === "html") {
|
|
9298
9298
|
if (I?.ua != null) return I.ua;
|
|
9299
9299
|
if (I?.en != null) return I.en;
|
|
9300
9300
|
}
|
|
@@ -9306,7 +9306,7 @@ const Yd = {
|
|
|
9306
9306
|
function ne() {
|
|
9307
9307
|
r.value = q();
|
|
9308
9308
|
}
|
|
9309
|
-
return (I,
|
|
9309
|
+
return (I, U) => (i(), xe(ct(o.value), {
|
|
9310
9310
|
ua: u.value.ua,
|
|
9311
9311
|
error: l.error || "",
|
|
9312
9312
|
item: u.value,
|
|
@@ -9324,7 +9324,7 @@ const Yd = {
|
|
|
9324
9324
|
c("div", Tp, [
|
|
9325
9325
|
(i(), xe(ct(f.value), zt(g.value, {
|
|
9326
9326
|
modelValue: a.value,
|
|
9327
|
-
"onUpdate:modelValue":
|
|
9327
|
+
"onUpdate:modelValue": U[0] || (U[0] = (Z) => a.value = Z),
|
|
9328
9328
|
onValueSelected: w
|
|
9329
9329
|
}), null, 16, ["modelValue"]))
|
|
9330
9330
|
]),
|
|
@@ -9342,15 +9342,15 @@ const Yd = {
|
|
|
9342
9342
|
key: 0,
|
|
9343
9343
|
class: "h-4 w-4"
|
|
9344
9344
|
}))
|
|
9345
|
-
], 8, Fp)) :
|
|
9345
|
+
], 8, Fp)) : H("", !0)
|
|
9346
9346
|
], 2),
|
|
9347
9347
|
u.value.description && l.layout !== "settings" ? (i(), p("p", {
|
|
9348
9348
|
key: 0,
|
|
9349
9349
|
class: "text-sm text-gray-500",
|
|
9350
9350
|
innerHTML: u.value.description
|
|
9351
|
-
}, null, 8, Ep)) :
|
|
9351
|
+
}, null, 8, Ep)) : H("", !0)
|
|
9352
9352
|
]),
|
|
9353
|
-
u.value.behavior?.api && u.value.behavior?.button ? (i(), xe(Ap, zt({ key: 0 }, u.value.behavior, { value: a.value }), null, 16, ["value"])) :
|
|
9353
|
+
u.value.behavior?.api && u.value.behavior?.button ? (i(), xe(Ap, zt({ key: 0 }, u.value.behavior, { value: a.value }), null, 16, ["value"])) : H("", !0)
|
|
9354
9354
|
], 2)
|
|
9355
9355
|
]),
|
|
9356
9356
|
_: 1
|
|
@@ -9373,8 +9373,8 @@ const Yd = {
|
|
|
9373
9373
|
]), u = h(() => {
|
|
9374
9374
|
const I = l.width;
|
|
9375
9375
|
if (I == null) return {};
|
|
9376
|
-
const
|
|
9377
|
-
return { width:
|
|
9376
|
+
const U = typeof I == "number" ? `${I}px` : `${I}`;
|
|
9377
|
+
return { width: U, minWidth: U };
|
|
9378
9378
|
});
|
|
9379
9379
|
let f = null, v = 0, x = 0, _ = null, C = null, g = null;
|
|
9380
9380
|
const w = () => q(), b = () => y();
|
|
@@ -9403,8 +9403,8 @@ const Yd = {
|
|
|
9403
9403
|
}), Wt(() => {
|
|
9404
9404
|
Q(), $(null, !0), _ = null, typeof window < "u" && (v && window.cancelAnimationFrame(v), x && window.cancelAnimationFrame(x));
|
|
9405
9405
|
});
|
|
9406
|
-
function $(I,
|
|
9407
|
-
if (g && (g(), g = null),
|
|
9406
|
+
function $(I, U = !1) {
|
|
9407
|
+
if (g && (g(), g = null), U) {
|
|
9408
9408
|
C = null;
|
|
9409
9409
|
return;
|
|
9410
9410
|
}
|
|
@@ -9424,16 +9424,16 @@ const Yd = {
|
|
|
9424
9424
|
}
|
|
9425
9425
|
function S() {
|
|
9426
9426
|
if (!s.value || !_) return;
|
|
9427
|
-
const I = Array.from(_.querySelectorAll("h1, h2")),
|
|
9427
|
+
const I = Array.from(_.querySelectorAll("h1, h2")), U = /* @__PURE__ */ new Set(), Z = [];
|
|
9428
9428
|
I.forEach((B, j) => {
|
|
9429
9429
|
const O = B.textContent?.trim() ?? "";
|
|
9430
9430
|
if (!O) return;
|
|
9431
9431
|
let se = (B.getAttribute("id") ?? "").trim();
|
|
9432
9432
|
se || (se = M(O) || `heading-${j + 1}`);
|
|
9433
9433
|
let ue = se, ge = 1;
|
|
9434
|
-
for (;
|
|
9434
|
+
for (; U.has(ue); )
|
|
9435
9435
|
ue = `${se}-${ge += 1}`;
|
|
9436
|
-
B.id !== ue && Object.assign(B, { id: ue }),
|
|
9436
|
+
B.id !== ue && Object.assign(B, { id: ue }), U.add(ue), Z.push({
|
|
9437
9437
|
id: ue,
|
|
9438
9438
|
text: O,
|
|
9439
9439
|
level: B.tagName.toLowerCase() === "h1" ? 1 : 2
|
|
@@ -9450,26 +9450,26 @@ const Yd = {
|
|
|
9450
9450
|
f && (f.disconnect(), f = null);
|
|
9451
9451
|
}
|
|
9452
9452
|
function T(I) {
|
|
9453
|
-
const
|
|
9454
|
-
if (!
|
|
9453
|
+
const U = C;
|
|
9454
|
+
if (!U)
|
|
9455
9455
|
return typeof window > "u" ? I.offsetTop : I.getBoundingClientRect().top + window.scrollY;
|
|
9456
|
-
const Z = I.getBoundingClientRect(), B =
|
|
9457
|
-
return Z.top - B.top +
|
|
9456
|
+
const Z = I.getBoundingClientRect(), B = U.getBoundingClientRect();
|
|
9457
|
+
return Z.top - B.top + U.scrollTop;
|
|
9458
9458
|
}
|
|
9459
9459
|
function Y() {
|
|
9460
9460
|
if (!s.value || !a.value.length) return;
|
|
9461
|
-
const I = C,
|
|
9461
|
+
const I = C, U = (I ? I.scrollTop : null) || (typeof window < "u" ? window.scrollY : 0), Z = (I ? I.clientHeight : null) || (typeof window < "u" ? window.innerHeight : 0), B = U + Z;
|
|
9462
9462
|
let j = null;
|
|
9463
9463
|
for (let se = 0; se < a.value.length; se += 1) {
|
|
9464
9464
|
const ue = a.value[se], ge = document.getElementById(ue.id);
|
|
9465
9465
|
if (ge) {
|
|
9466
9466
|
const $e = T(ge);
|
|
9467
|
-
$e + ge.offsetHeight >
|
|
9467
|
+
$e + ge.offsetHeight > U && $e < B && (j = ue.id);
|
|
9468
9468
|
}
|
|
9469
9469
|
}
|
|
9470
9470
|
!j && o.value && (j = o.value), j && (o.value = j);
|
|
9471
9471
|
const O = I ? I.scrollHeight - I.clientHeight : document.documentElement.scrollHeight - window.innerHeight;
|
|
9472
|
-
|
|
9472
|
+
U + 5 >= O && (j = a.value[a.value.length - 1].id), j && (n.value = j);
|
|
9473
9473
|
}
|
|
9474
9474
|
function q() {
|
|
9475
9475
|
s.value && (x && window.cancelAnimationFrame(x), x = window.requestAnimationFrame(() => {
|
|
@@ -9478,12 +9478,12 @@ const Yd = {
|
|
|
9478
9478
|
}
|
|
9479
9479
|
function ne(I) {
|
|
9480
9480
|
if (!s.value) return;
|
|
9481
|
-
const
|
|
9482
|
-
if (!
|
|
9483
|
-
const Z = C, B = Math.max(0, T(
|
|
9481
|
+
const U = document.getElementById(I);
|
|
9482
|
+
if (!U) return;
|
|
9483
|
+
const Z = C, B = Math.max(0, T(U));
|
|
9484
9484
|
Z ? Z.scrollTo({ top: B, behavior: "smooth" }) : typeof window < "u" && window.scrollTo({ top: B, behavior: "smooth" });
|
|
9485
9485
|
}
|
|
9486
|
-
return t({ refresh: y }), (I,
|
|
9486
|
+
return t({ refresh: y }), (I, U) => s.value && a.value.length ? (i(), p("div", {
|
|
9487
9487
|
key: 0,
|
|
9488
9488
|
class: ae(r.value),
|
|
9489
9489
|
style: Me(u.value)
|
|
@@ -9511,7 +9511,7 @@ const Yd = {
|
|
|
9511
9511
|
], 10, Np)
|
|
9512
9512
|
], 2))), 128))
|
|
9513
9513
|
])
|
|
9514
|
-
], 6)) :
|
|
9514
|
+
], 6)) : H("", !0);
|
|
9515
9515
|
}
|
|
9516
9516
|
}), Up = /* @__PURE__ */ Ue(jp, [["__scopeId", "data-v-1584a562"]]), Tt = {
|
|
9517
9517
|
required: "Це поле є обов’язковим",
|
|
@@ -9720,14 +9720,14 @@ const tm = { class: "flex w-full h-full min-h-0 gap-6" }, lm = {
|
|
|
9720
9720
|
const O = Object.keys(B), se = Object.keys(j);
|
|
9721
9721
|
return O.length !== se.length ? !1 : O.every((ue) => B[ue] === j[ue]);
|
|
9722
9722
|
}
|
|
9723
|
-
function
|
|
9723
|
+
function U(B) {
|
|
9724
9724
|
return Array.isArray(B) ? [...B] : B && typeof B == "object" ? { ...B } : B;
|
|
9725
9725
|
}
|
|
9726
9726
|
function Z(B) {
|
|
9727
9727
|
Array.isArray(B) && B.forEach((j) => {
|
|
9728
9728
|
if (!j) return;
|
|
9729
9729
|
const O = j.name, se = j.default !== void 0;
|
|
9730
|
-
O && se && u.value[O] === void 0 && (u.value[O] =
|
|
9730
|
+
O && se && u.value[O] === void 0 && (u.value[O] = U(j.default)), Array.isArray(j.schema) && Z(j.schema);
|
|
9731
9731
|
});
|
|
9732
9732
|
}
|
|
9733
9733
|
return me(
|
|
@@ -9766,7 +9766,7 @@ const tm = { class: "flex w-full h-full min-h-0 gap-6" }, lm = {
|
|
|
9766
9766
|
error: E(f)[O.name],
|
|
9767
9767
|
onValueSelected: ne
|
|
9768
9768
|
}, null, 8, ["style", "item", "layout", "columns", "model-value", "onUpdate:modelValue", "error"]),
|
|
9769
|
-
T(O) === "settings" && se + 1 !== E(_).length ? (i(), p("div", lm)) :
|
|
9769
|
+
T(O) === "settings" && se + 1 !== E(_).length ? (i(), p("div", lm)) : H("", !0)
|
|
9770
9770
|
], 2))), 128))
|
|
9771
9771
|
], 34)
|
|
9772
9772
|
], 512),
|
|
@@ -9951,7 +9951,7 @@ const tm = { class: "flex w-full h-full min-h-0 gap-6" }, lm = {
|
|
|
9951
9951
|
form: s.value,
|
|
9952
9952
|
"onUpdate:form": $[1] || ($[1] = (y) => s.value = y),
|
|
9953
9953
|
formId: u.value
|
|
9954
|
-
}, null, 8, ["schema", "values", "form", "formId"])) :
|
|
9954
|
+
}, null, 8, ["schema", "values", "form", "formId"])) : H("", !0)
|
|
9955
9955
|
]),
|
|
9956
9956
|
c("div", { class: "vs-form__head mr-5 mb-5 mt-3 flex items-center justify-end sticky top-0 left-0 z-[60] bg-white" }, [
|
|
9957
9957
|
c("button", {
|
|
@@ -10228,7 +10228,7 @@ function Pm(e, t, l, a, n, o) {
|
|
|
10228
10228
|
at(e.$slots, "subheading", {}, void 0, !0)
|
|
10229
10229
|
]),
|
|
10230
10230
|
t[4] || (t[4] = c("hr", { class: "v3dp__divider" }, null, -1))
|
|
10231
|
-
], 64)) :
|
|
10231
|
+
], 64)) : H("", !0),
|
|
10232
10232
|
c("div", Bm, [
|
|
10233
10233
|
at(e.$slots, "body", {}, () => [
|
|
10234
10234
|
(i(!0), p(Se, null, Ie(e.items, (u) => (i(), p("button", {
|
|
@@ -10942,7 +10942,7 @@ const ev = /* @__PURE__ */ Ue(Gm, [["render", Qm], ["__scopeId", "data-v-610b89e
|
|
|
10942
10942
|
}, I = h(() => {
|
|
10943
10943
|
const j = Al.indexOf(e.startingView), O = Al.indexOf(e.minimumView);
|
|
10944
10944
|
return j < O ? e.minimumView : e.startingView;
|
|
10945
|
-
}),
|
|
10945
|
+
}), U = (j) => Object.fromEntries(
|
|
10946
10946
|
Object.entries(j ?? {}).filter(([O, se]) => O.startsWith("--"))
|
|
10947
10947
|
), Z = h(() => e.weekDayNames?.length === 7 ? e.weekDayNames : void 0);
|
|
10948
10948
|
return {
|
|
@@ -10965,7 +10965,7 @@ const ev = /* @__PURE__ */ Ue(Gm, [["render", Qm], ["__scopeId", "data-v-610b89e
|
|
|
10965
10965
|
clearModelValue: Q,
|
|
10966
10966
|
initialView: I,
|
|
10967
10967
|
log: (j) => console.log(j),
|
|
10968
|
-
variables:
|
|
10968
|
+
variables: U
|
|
10969
10969
|
};
|
|
10970
10970
|
}
|
|
10971
10971
|
}), nv = { class: "v3dp__input_wrapper" }, av = ["readonly", "placeholder", "disabled", "tabindex"], ov = { class: "v3dp__clearable" };
|
|
@@ -11153,7 +11153,7 @@ const sv = /* @__PURE__ */ Ue(lv, [["render", rv]]), iv = /* @__PURE__ */ ce({
|
|
|
11153
11153
|
case "year":
|
|
11154
11154
|
return ne(O);
|
|
11155
11155
|
case "week":
|
|
11156
|
-
return
|
|
11156
|
+
return U(O);
|
|
11157
11157
|
case "date":
|
|
11158
11158
|
default:
|
|
11159
11159
|
return T(O);
|
|
@@ -11211,7 +11211,7 @@ const sv = /* @__PURE__ */ Ue(lv, [["render", rv]]), iv = /* @__PURE__ */ ce({
|
|
|
11211
11211
|
const [, ue, ge] = se, $e = /* @__PURE__ */ new Date();
|
|
11212
11212
|
return $e.setHours(Number(ue), Number(ge), 0, 0), $e;
|
|
11213
11213
|
}
|
|
11214
|
-
function
|
|
11214
|
+
function U(O) {
|
|
11215
11215
|
const se = O.match(/^(\d{4})-W(\d{2})$/);
|
|
11216
11216
|
if (!se) return null;
|
|
11217
11217
|
const [, ue, ge] = se, $e = Number(ge);
|