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