@opengis/gis 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +832 -841
- package/dist/index.umd.cjs +29 -29
- package/module/gis/form/gis.cartocss.form.json +46 -0
- package/module/gis/table/gis.cartocss.table.json +61 -0
- package/module/gis/table/gis.rasters.table.json +1 -1
- package/package.json +2 -2
- package/server/routes/gis/registers/funcs/handleRegistryRequest.js +13 -2
- package/server/routes/gis/registers/gis.registry.js +35 -3
- package/server/routes/map/controllers/geojson.js +187 -0
- package/server/routes/map/controllers/jsonData.js +205 -0
- package/server/routes/map/index.mjs +13 -0
- package/server/routes/map/vtile1.js +4 -4
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as mn, defineComponent as ue, mergeModels as gt, defineAsyncComponent as nt, useModel as Je, ref as z,
|
|
1
|
+
import { h as mn, defineComponent as ue, mergeModels as gt, defineAsyncComponent as nt, useModel as Je, ref as z, createElementBlock as y, openBlock as v, createElementVNode as s, createVNode as ae, unref as se, withCtx as Te, createStaticVNode as yt, computed as R, Fragment as Z, createCommentVNode as W, createTextVNode as fe, renderList as oe, normalizeStyle as Ve, toDisplayString as q, withModifiers as Ze, normalizeClass as ye, createBlock as re, resolveDynamicComponent as Bt, withDirectives as Ye, watch as G, onBeforeUnmount as ge, onMounted as we, shallowRef as pr, onUnmounted as vr, provide as ro, inject as oo, vModelText as $t, renderSlot as $n, nextTick as Se, reactive as Qe, Teleport as ht, Transition as Cn, createSlots as lo, getCurrentInstance as An, vShow as Yt, vModelRadio as io } from "vue";
|
|
2
2
|
import { useRoute as Lt, useRouter as St } from "vue-router";
|
|
3
3
|
import { notify as Ee } from "@opengis/core";
|
|
4
4
|
/**
|
|
@@ -7,13 +7,13 @@ import { notify as Ee } from "@opengis/core";
|
|
|
7
7
|
* This source code is licensed under the ISC license.
|
|
8
8
|
* See the LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
const Nn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
10
|
+
const Nn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), so = (e) => e.replace(
|
|
11
11
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
12
12
|
(t, n, r) => r ? r.toUpperCase() : n.toLowerCase()
|
|
13
|
-
),
|
|
14
|
-
const t =
|
|
13
|
+
), ao = (e) => {
|
|
14
|
+
const t = so(e);
|
|
15
15
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
16
|
-
},
|
|
16
|
+
}, uo = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
17
17
|
/**
|
|
18
18
|
* @license lucide-vue-next v0.514.0 - ISC
|
|
19
19
|
*
|
|
@@ -37,7 +37,7 @@ var qt = {
|
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
39
|
*/
|
|
40
|
-
const
|
|
40
|
+
const co = ({ size: e, strokeWidth: t = 2, absoluteStrokeWidth: n, color: r, iconNode: o, name: l, class: i, ...u }, { slots: f }) => mn(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
43
43
|
...qt,
|
|
@@ -45,9 +45,9 @@ const fo = ({ size: e, strokeWidth: t = 2, absoluteStrokeWidth: n, color: r, ico
|
|
|
45
45
|
height: e || qt.height,
|
|
46
46
|
stroke: r || qt.stroke,
|
|
47
47
|
"stroke-width": n ? Number(t) * 24 / Number(e) : t,
|
|
48
|
-
class:
|
|
48
|
+
class: uo(
|
|
49
49
|
"lucide",
|
|
50
|
-
...l ? [`lucide-${Nn(
|
|
50
|
+
...l ? [`lucide-${Nn(ao(l))}-icon`, `lucide-${Nn(l)}`] : ["lucide-icon"]
|
|
51
51
|
),
|
|
52
52
|
...u
|
|
53
53
|
},
|
|
@@ -60,7 +60,7 @@ const fo = ({ size: e, strokeWidth: t = 2, absoluteStrokeWidth: n, color: r, ico
|
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
61
|
*/
|
|
62
62
|
const ct = (e, t) => (n, { slots: r }) => mn(
|
|
63
|
-
|
|
63
|
+
co,
|
|
64
64
|
{
|
|
65
65
|
...n,
|
|
66
66
|
iconNode: t,
|
|
@@ -94,7 +94,7 @@ const Pn = ct("arrow-right", [
|
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
95
95
|
* See the LICENSE file in the root directory of this source tree.
|
|
96
96
|
*/
|
|
97
|
-
const
|
|
97
|
+
const fo = ct("arrow-up-left", [
|
|
98
98
|
["path", { d: "M7 17V7h10", key: "11bw93" }],
|
|
99
99
|
["path", { d: "M17 17 7 7", key: "2786uv" }]
|
|
100
100
|
]);
|
|
@@ -104,7 +104,7 @@ const po = ct("arrow-up-left", [
|
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
106
|
*/
|
|
107
|
-
const
|
|
107
|
+
const po = ct("contrast", [
|
|
108
108
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
109
109
|
["path", { d: "M12 18a6 6 0 0 0 0-12v12z", key: "j4l70d" }]
|
|
110
110
|
]);
|
|
@@ -114,7 +114,7 @@ const vo = ct("contrast", [
|
|
|
114
114
|
* This source code is licensed under the ISC license.
|
|
115
115
|
* See the LICENSE file in the root directory of this source tree.
|
|
116
116
|
*/
|
|
117
|
-
const
|
|
117
|
+
const vo = ct("house", [
|
|
118
118
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
119
119
|
[
|
|
120
120
|
"path",
|
|
@@ -130,7 +130,7 @@ const mo = ct("house", [
|
|
|
130
130
|
* This source code is licensed under the ISC license.
|
|
131
131
|
* See the LICENSE file in the root directory of this source tree.
|
|
132
132
|
*/
|
|
133
|
-
const
|
|
133
|
+
const mo = ct("square-pen", [
|
|
134
134
|
["path", { d: "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7", key: "1m0v6g" }],
|
|
135
135
|
[
|
|
136
136
|
"path",
|
|
@@ -146,7 +146,7 @@ const go = ct("square-pen", [
|
|
|
146
146
|
* This source code is licensed under the ISC license.
|
|
147
147
|
* See the LICENSE file in the root directory of this source tree.
|
|
148
148
|
*/
|
|
149
|
-
const
|
|
149
|
+
const go = ct("trash", [
|
|
150
150
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
151
151
|
["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
|
|
152
152
|
["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }]
|
|
@@ -157,10 +157,10 @@ const ho = ct("trash", [
|
|
|
157
157
|
* This source code is licensed under the ISC license.
|
|
158
158
|
* See the LICENSE file in the root directory of this source tree.
|
|
159
159
|
*/
|
|
160
|
-
const
|
|
160
|
+
const ho = ct("x", [
|
|
161
161
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
162
162
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
163
|
-
]),
|
|
163
|
+
]), yo = { class: "flex items-center justify-end col-span-3 gap-2" }, xo = { class: "flex justify-end p-[20px] gap-[10px] border-t w-full" }, bo = /* @__PURE__ */ ue({
|
|
164
164
|
__name: "vs-datatable-controls",
|
|
165
165
|
props: /* @__PURE__ */ gt({
|
|
166
166
|
index: {},
|
|
@@ -184,20 +184,20 @@ const yo = ct("x", [
|
|
|
184
184
|
}
|
|
185
185
|
o.value[r.index] = u.value, l.value = !1;
|
|
186
186
|
};
|
|
187
|
-
return (h, a) => (v(), y("div",
|
|
187
|
+
return (h, a) => (v(), y("div", yo, [
|
|
188
188
|
s("button", {
|
|
189
189
|
onClick: a[0] || (a[0] = (p) => {
|
|
190
190
|
l.value = !0;
|
|
191
191
|
}),
|
|
192
192
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover:text-accent-foreground h-8 w-8 rounded-full hover:bg-gray-100"
|
|
193
193
|
}, [
|
|
194
|
-
ae(se(
|
|
194
|
+
ae(se(mo), { class: "w-4 h-4" })
|
|
195
195
|
]),
|
|
196
196
|
s("button", {
|
|
197
197
|
onClick: f,
|
|
198
198
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 h-8 w-8 rounded-full hover:bg-red-100 text-red-600 hover:text-red-700"
|
|
199
199
|
}, [
|
|
200
|
-
ae(se(
|
|
200
|
+
ae(se(go), { class: "w-4 h-4" })
|
|
201
201
|
]),
|
|
202
202
|
ae(se(n), {
|
|
203
203
|
teleport: "#modal",
|
|
@@ -207,7 +207,7 @@ const yo = ct("x", [
|
|
|
207
207
|
title: "Редагувати поле"
|
|
208
208
|
}, {
|
|
209
209
|
footer: Te(() => [
|
|
210
|
-
s("div",
|
|
210
|
+
s("div", xo, [
|
|
211
211
|
s("button", {
|
|
212
212
|
type: "button",
|
|
213
213
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-black border border-gray-200 rounded-lg hover:bg-gray-100 duration-300",
|
|
@@ -232,7 +232,7 @@ const yo = ct("x", [
|
|
|
232
232
|
}, 8, ["visible"])
|
|
233
233
|
]));
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
235
|
+
}), _o = {
|
|
236
236
|
mounted(e) {
|
|
237
237
|
setTimeout(() => {
|
|
238
238
|
e.scrollWidth > e.clientWidth ? e.setAttribute("title", e.textContent) : e.removeAttribute("title");
|
|
@@ -243,7 +243,7 @@ const yo = ct("x", [
|
|
|
243
243
|
e.scrollWidth > e.clientWidth ? e.setAttribute("title", e.textContent) : e.removeAttribute("title");
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, wo = {
|
|
247
247
|
array: "purple",
|
|
248
248
|
boolean: "red",
|
|
249
249
|
date: "red",
|
|
@@ -265,7 +265,7 @@ const yo = ct("x", [
|
|
|
265
265
|
autocomplete: "yellow",
|
|
266
266
|
other: "gray",
|
|
267
267
|
"yes/no": "green"
|
|
268
|
-
}, mr = (e) =>
|
|
268
|
+
}, mr = (e) => wo[e == null ? void 0 : e.toLowerCase()] || "gray", ko = [
|
|
269
269
|
"array",
|
|
270
270
|
"boolean",
|
|
271
271
|
"date",
|
|
@@ -287,13 +287,13 @@ const yo = ct("x", [
|
|
|
287
287
|
"autocomplete"
|
|
288
288
|
], gr = (e) => {
|
|
289
289
|
var t;
|
|
290
|
-
return
|
|
290
|
+
return ko.includes((t = e || "") == null ? void 0 : t.toLowerCase());
|
|
291
291
|
}, ce = (e, t) => {
|
|
292
292
|
const n = e.__vccOpts || e;
|
|
293
293
|
for (const [r, o] of t)
|
|
294
294
|
n[r] = o;
|
|
295
295
|
return n;
|
|
296
|
-
},
|
|
296
|
+
}, $o = {}, Co = {
|
|
297
297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
298
298
|
width: "24",
|
|
299
299
|
height: "24",
|
|
@@ -306,8 +306,8 @@ const yo = ct("x", [
|
|
|
306
306
|
class: "w-4 h-4 text-gray-700 lucide lucide-type",
|
|
307
307
|
__v0_r: "0,5361,5384"
|
|
308
308
|
};
|
|
309
|
-
function
|
|
310
|
-
return v(), y("svg",
|
|
309
|
+
function Ao(e, t) {
|
|
310
|
+
return v(), y("svg", Co, [...t[0] || (t[0] = [
|
|
311
311
|
s("polyline", { points: "4 7 4 4 20 4 20 7" }, null, -1),
|
|
312
312
|
s("line", {
|
|
313
313
|
x1: "9",
|
|
@@ -323,7 +323,7 @@ function Lo(e, t) {
|
|
|
323
323
|
}, null, -1)
|
|
324
324
|
])]);
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const Lo = /* @__PURE__ */ ce($o, [["render", Ao]]), So = {}, Eo = {
|
|
327
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
328
328
|
width: "24",
|
|
329
329
|
height: "24",
|
|
@@ -336,8 +336,8 @@ const So = /* @__PURE__ */ ce(Co, [["render", Lo]]), Eo = {}, Fo = {
|
|
|
336
336
|
class: "w-4 h-4 text-gray-700 lucide lucide-hash",
|
|
337
337
|
__v0_r: "0,5361,5384"
|
|
338
338
|
};
|
|
339
|
-
function
|
|
340
|
-
return v(), y("svg",
|
|
339
|
+
function Fo(e, t) {
|
|
340
|
+
return v(), y("svg", Eo, [...t[0] || (t[0] = [
|
|
341
341
|
s("line", {
|
|
342
342
|
x1: "4",
|
|
343
343
|
x2: "20",
|
|
@@ -364,7 +364,7 @@ function Io(e, t) {
|
|
|
364
364
|
}, null, -1)
|
|
365
365
|
])]);
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const Io = /* @__PURE__ */ ce(So, [["render", Fo]]), Mo = {}, To = {
|
|
368
368
|
xmlns: "http://www.w3.org/2000/svg",
|
|
369
369
|
width: "24",
|
|
370
370
|
height: "24",
|
|
@@ -377,8 +377,8 @@ const Mo = /* @__PURE__ */ ce(Eo, [["render", Io]]), To = {}, jo = {
|
|
|
377
377
|
class: "w-4 h-4 text-gray-700 lucide lucide-calendar",
|
|
378
378
|
__v0_r: "0,5361,5384"
|
|
379
379
|
};
|
|
380
|
-
function
|
|
381
|
-
return v(), y("svg",
|
|
380
|
+
function jo(e, t) {
|
|
381
|
+
return v(), y("svg", To, [...t[0] || (t[0] = [
|
|
382
382
|
s("path", { d: "M8 2v4" }, null, -1),
|
|
383
383
|
s("path", { d: "M16 2v4" }, null, -1),
|
|
384
384
|
s("rect", {
|
|
@@ -391,7 +391,7 @@ function Oo(e, t) {
|
|
|
391
391
|
s("path", { d: "M3 10h18" }, null, -1)
|
|
392
392
|
])]);
|
|
393
393
|
}
|
|
394
|
-
const
|
|
394
|
+
const Oo = /* @__PURE__ */ ce(Mo, [["render", jo]]), No = {}, zo = {
|
|
395
395
|
xmlns: "http://www.w3.org/2000/svg",
|
|
396
396
|
width: "24",
|
|
397
397
|
height: "24",
|
|
@@ -404,8 +404,8 @@ const No = /* @__PURE__ */ ce(To, [["render", Oo]]), zo = {}, Po = {
|
|
|
404
404
|
class: "w-4 h-4 text-gray-700 lucide lucide-calendar",
|
|
405
405
|
__v0_r: "0,5361,5384"
|
|
406
406
|
};
|
|
407
|
-
function
|
|
408
|
-
return v(), y("svg",
|
|
407
|
+
function Po(e, t) {
|
|
408
|
+
return v(), y("svg", zo, [...t[0] || (t[0] = [
|
|
409
409
|
s("path", { d: "M8 2v4" }, null, -1),
|
|
410
410
|
s("path", { d: "M16 2v4" }, null, -1),
|
|
411
411
|
s("rect", {
|
|
@@ -418,7 +418,7 @@ function Ro(e, t) {
|
|
|
418
418
|
s("path", { d: "M3 10h18" }, null, -1)
|
|
419
419
|
])]);
|
|
420
420
|
}
|
|
421
|
-
const
|
|
421
|
+
const Ro = /* @__PURE__ */ ce(No, [["render", Po]]), Do = {}, Bo = {
|
|
422
422
|
xmlns: "http://www.w3.org/2000/svg",
|
|
423
423
|
width: "24",
|
|
424
424
|
height: "24",
|
|
@@ -431,13 +431,13 @@ const Do = /* @__PURE__ */ ce(zo, [["render", Ro]]), Bo = {}, Vo = {
|
|
|
431
431
|
class: "w-4 h-4 text-gray-700 lucide lucide-code",
|
|
432
432
|
__v0_r: "0,5361,5384"
|
|
433
433
|
};
|
|
434
|
-
function
|
|
435
|
-
return v(), y("svg",
|
|
434
|
+
function Vo(e, t) {
|
|
435
|
+
return v(), y("svg", Bo, [...t[0] || (t[0] = [
|
|
436
436
|
s("polyline", { points: "16 18 22 12 16 6" }, null, -1),
|
|
437
437
|
s("polyline", { points: "8 6 2 12 8 18" }, null, -1)
|
|
438
438
|
])]);
|
|
439
439
|
}
|
|
440
|
-
const
|
|
440
|
+
const Uo = /* @__PURE__ */ ce(Do, [["render", Vo]]), qo = {}, Ho = {
|
|
441
441
|
xmlns: "http://www.w3.org/2000/svg",
|
|
442
442
|
width: "24",
|
|
443
443
|
height: "24",
|
|
@@ -450,8 +450,8 @@ const qo = /* @__PURE__ */ ce(Bo, [["render", Uo]]), Ho = {}, Yo = {
|
|
|
450
450
|
class: "w-4 h-4 text-gray-700 lucide lucide-toggle-left",
|
|
451
451
|
__v0_r: "0,5361,5384"
|
|
452
452
|
};
|
|
453
|
-
function
|
|
454
|
-
return v(), y("svg",
|
|
453
|
+
function Yo(e, t) {
|
|
454
|
+
return v(), y("svg", Ho, [...t[0] || (t[0] = [
|
|
455
455
|
s("rect", {
|
|
456
456
|
width: "20",
|
|
457
457
|
height: "12",
|
|
@@ -467,7 +467,7 @@ function Zo(e, t) {
|
|
|
467
467
|
}, null, -1)
|
|
468
468
|
])]);
|
|
469
469
|
}
|
|
470
|
-
const
|
|
470
|
+
const Zo = /* @__PURE__ */ ce(qo, [["render", Yo]]), Wo = {}, Ko = {
|
|
471
471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
472
472
|
width: "24",
|
|
473
473
|
height: "24",
|
|
@@ -480,12 +480,12 @@ const Wo = /* @__PURE__ */ ce(Ho, [["render", Zo]]), Ko = {}, Go = {
|
|
|
480
480
|
class: "w-4 h-4 text-gray-700 lucide lucide-file-text",
|
|
481
481
|
__v0_r: "0,5361,5384"
|
|
482
482
|
};
|
|
483
|
-
function
|
|
484
|
-
return v(), y("svg",
|
|
483
|
+
function Go(e, t) {
|
|
484
|
+
return v(), y("svg", Ko, [...t[0] || (t[0] = [
|
|
485
485
|
yt('<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"></path><path d="M14 2v4a2 2 0 0 0 2 2h4"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path>', 5)
|
|
486
486
|
])]);
|
|
487
487
|
}
|
|
488
|
-
const
|
|
488
|
+
const Xo = /* @__PURE__ */ ce(Wo, [["render", Go]]), Qo = {}, Jo = {
|
|
489
489
|
xmlns: "http://www.w3.org/2000/svg",
|
|
490
490
|
width: "24",
|
|
491
491
|
height: "24",
|
|
@@ -498,8 +498,8 @@ const Qo = /* @__PURE__ */ ce(Ko, [["render", Xo]]), Jo = {}, el = {
|
|
|
498
498
|
class: "w-4 h-4 text-gray-700 lucide lucide-image",
|
|
499
499
|
__v0_r: "0,5361,5384"
|
|
500
500
|
};
|
|
501
|
-
function
|
|
502
|
-
return v(), y("svg",
|
|
501
|
+
function el(e, t) {
|
|
502
|
+
return v(), y("svg", Jo, [...t[0] || (t[0] = [
|
|
503
503
|
s("rect", {
|
|
504
504
|
width: "18",
|
|
505
505
|
height: "18",
|
|
@@ -516,7 +516,7 @@ function tl(e, t) {
|
|
|
516
516
|
s("path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21" }, null, -1)
|
|
517
517
|
])]);
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const tl = /* @__PURE__ */ ce(Qo, [["render", el]]), nl = {}, rl = {
|
|
520
520
|
xmlns: "http://www.w3.org/2000/svg",
|
|
521
521
|
width: "24",
|
|
522
522
|
height: "24",
|
|
@@ -529,12 +529,12 @@ const nl = /* @__PURE__ */ ce(Jo, [["render", tl]]), rl = {}, ol = {
|
|
|
529
529
|
class: "w-4 h-4 text-gray-700 lucide lucide-list",
|
|
530
530
|
__v0_r: "0,5361,5384"
|
|
531
531
|
};
|
|
532
|
-
function
|
|
533
|
-
return v(), y("svg",
|
|
532
|
+
function ol(e, t) {
|
|
533
|
+
return v(), y("svg", rl, [...t[0] || (t[0] = [
|
|
534
534
|
yt('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
|
|
535
535
|
])]);
|
|
536
536
|
}
|
|
537
|
-
const
|
|
537
|
+
const ll = /* @__PURE__ */ ce(nl, [["render", ol]]), il = {}, sl = {
|
|
538
538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
539
539
|
width: "24",
|
|
540
540
|
height: "24",
|
|
@@ -547,12 +547,12 @@ const il = /* @__PURE__ */ ce(rl, [["render", ll]]), sl = {}, al = {
|
|
|
547
547
|
class: "w-4 h-4 text-gray-700 lucide lucide-list",
|
|
548
548
|
__v0_r: "0,5361,5384"
|
|
549
549
|
};
|
|
550
|
-
function
|
|
551
|
-
return v(), y("svg",
|
|
550
|
+
function al(e, t) {
|
|
551
|
+
return v(), y("svg", sl, [...t[0] || (t[0] = [
|
|
552
552
|
yt('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
|
|
553
553
|
])]);
|
|
554
554
|
}
|
|
555
|
-
const
|
|
555
|
+
const ul = /* @__PURE__ */ ce(il, [["render", al]]), cl = {}, dl = {
|
|
556
556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
557
557
|
width: "24",
|
|
558
558
|
height: "24",
|
|
@@ -565,8 +565,8 @@ const cl = /* @__PURE__ */ ce(sl, [["render", ul]]), dl = {}, fl = {
|
|
|
565
565
|
class: "w-4 h-4 text-gray-700 lucide lucide-link2",
|
|
566
566
|
__v0_r: "0,5361,5384"
|
|
567
567
|
};
|
|
568
|
-
function
|
|
569
|
-
return v(), y("svg",
|
|
568
|
+
function fl(e, t) {
|
|
569
|
+
return v(), y("svg", dl, [...t[0] || (t[0] = [
|
|
570
570
|
s("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }, null, -1),
|
|
571
571
|
s("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }, null, -1),
|
|
572
572
|
s("line", {
|
|
@@ -577,7 +577,7 @@ function pl(e, t) {
|
|
|
577
577
|
}, null, -1)
|
|
578
578
|
])]);
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const pl = /* @__PURE__ */ ce(cl, [["render", fl]]), vl = {}, ml = {
|
|
581
581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
582
582
|
width: "24",
|
|
583
583
|
height: "24",
|
|
@@ -590,12 +590,12 @@ const vl = /* @__PURE__ */ ce(dl, [["render", pl]]), ml = {}, gl = {
|
|
|
590
590
|
class: "w-4 h-4 text-gray-700 lucide lucide-list",
|
|
591
591
|
__v0_r: "0,5361,5384"
|
|
592
592
|
};
|
|
593
|
-
function
|
|
594
|
-
return v(), y("svg",
|
|
593
|
+
function gl(e, t) {
|
|
594
|
+
return v(), y("svg", ml, [...t[0] || (t[0] = [
|
|
595
595
|
yt('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
|
|
596
596
|
])]);
|
|
597
597
|
}
|
|
598
|
-
const
|
|
598
|
+
const hl = /* @__PURE__ */ ce(vl, [["render", gl]]), yl = {}, xl = {
|
|
599
599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
600
600
|
width: "24",
|
|
601
601
|
height: "24",
|
|
@@ -608,8 +608,8 @@ const yl = /* @__PURE__ */ ce(ml, [["render", hl]]), xl = {}, bl = {
|
|
|
608
608
|
class: "w-4 h-4 text-gray-700 lucide lucide-link2",
|
|
609
609
|
__v0_r: "0,5361,5384"
|
|
610
610
|
};
|
|
611
|
-
function
|
|
612
|
-
return v(), y("svg",
|
|
611
|
+
function bl(e, t) {
|
|
612
|
+
return v(), y("svg", xl, [...t[0] || (t[0] = [
|
|
613
613
|
s("path", { d: "M9 17H7A5 5 0 0 1 7 7h2" }, null, -1),
|
|
614
614
|
s("path", { d: "M15 7h2a5 5 0 1 1 0 10h-2" }, null, -1),
|
|
615
615
|
s("line", {
|
|
@@ -620,7 +620,7 @@ function _l(e, t) {
|
|
|
620
620
|
}, null, -1)
|
|
621
621
|
])]);
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const _l = /* @__PURE__ */ ce(yl, [["render", bl]]), wl = {}, kl = {
|
|
624
624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
625
625
|
width: "24",
|
|
626
626
|
height: "24",
|
|
@@ -633,12 +633,12 @@ const wl = /* @__PURE__ */ ce(xl, [["render", _l]]), kl = {}, $l = {
|
|
|
633
633
|
class: "w-4 h-4 text-gray-700 lucide lucide-list",
|
|
634
634
|
__v0_r: "0,5361,5384"
|
|
635
635
|
};
|
|
636
|
-
function
|
|
637
|
-
return v(), y("svg",
|
|
636
|
+
function $l(e, t) {
|
|
637
|
+
return v(), y("svg", kl, [...t[0] || (t[0] = [
|
|
638
638
|
yt('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>', 6)
|
|
639
639
|
])]);
|
|
640
640
|
}
|
|
641
|
-
const
|
|
641
|
+
const Cl = /* @__PURE__ */ ce(wl, [["render", $l]]), Al = {}, Ll = {
|
|
642
642
|
xmlns: "http://www.w3.org/2000/svg",
|
|
643
643
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
644
644
|
height: "800px",
|
|
@@ -648,8 +648,8 @@ const Al = /* @__PURE__ */ ce(kl, [["render", Cl]]), Ll = {}, Sl = {
|
|
|
648
648
|
viewBox: "0 0 512 512",
|
|
649
649
|
"xml:space": "preserve"
|
|
650
650
|
};
|
|
651
|
-
function
|
|
652
|
-
return v(), y("svg",
|
|
651
|
+
function Sl(e, t) {
|
|
652
|
+
return v(), y("svg", Ll, [...t[0] || (t[0] = [
|
|
653
653
|
s("g", null, [
|
|
654
654
|
s("path", {
|
|
655
655
|
class: "st0",
|
|
@@ -662,15 +662,15 @@ function El(e, t) {
|
|
|
662
662
|
], -1)
|
|
663
663
|
])]);
|
|
664
664
|
}
|
|
665
|
-
const
|
|
665
|
+
const El = /* @__PURE__ */ ce(Al, [["render", Sl]]), Fl = {}, Il = {
|
|
666
666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
667
667
|
width: "800px",
|
|
668
668
|
height: "800px",
|
|
669
669
|
viewBox: "0 0 24 24",
|
|
670
670
|
fill: "none"
|
|
671
671
|
};
|
|
672
|
-
function
|
|
673
|
-
return v(), y("svg",
|
|
672
|
+
function Ml(e, t) {
|
|
673
|
+
return v(), y("svg", Il, [...t[0] || (t[0] = [
|
|
674
674
|
s("path", {
|
|
675
675
|
d: "M3 12C3 4.5885 4.5885 3 12 3C19.4115 3 21 4.5885 21 12C21 19.4115 19.4115 21 12 21C4.5885 21 3 19.4115 3 12Z",
|
|
676
676
|
stroke: "#323232",
|
|
@@ -685,39 +685,39 @@ function Tl(e, t) {
|
|
|
685
685
|
}, null, -1)
|
|
686
686
|
])]);
|
|
687
687
|
}
|
|
688
|
-
const
|
|
689
|
-
IconText:
|
|
690
|
-
IconNumber:
|
|
691
|
-
IconDate:
|
|
692
|
-
IconDatetime:
|
|
693
|
-
IconRichtext:
|
|
694
|
-
IconBoolean:
|
|
695
|
-
IconFile:
|
|
696
|
-
IconImage:
|
|
697
|
-
IconArray:
|
|
698
|
-
IconSelect:
|
|
699
|
-
IconSlug:
|
|
700
|
-
IconDatalist:
|
|
701
|
-
IconReference:
|
|
702
|
-
IconReferenceList:
|
|
703
|
-
IconBadge:
|
|
704
|
-
IconCheck:
|
|
705
|
-
},
|
|
688
|
+
const Tl = /* @__PURE__ */ ce(Fl, [["render", Ml]]), Rn = {
|
|
689
|
+
IconText: Lo,
|
|
690
|
+
IconNumber: Io,
|
|
691
|
+
IconDate: Oo,
|
|
692
|
+
IconDatetime: Ro,
|
|
693
|
+
IconRichtext: Uo,
|
|
694
|
+
IconBoolean: Zo,
|
|
695
|
+
IconFile: Xo,
|
|
696
|
+
IconImage: tl,
|
|
697
|
+
IconArray: ll,
|
|
698
|
+
IconSelect: ul,
|
|
699
|
+
IconSlug: pl,
|
|
700
|
+
IconDatalist: hl,
|
|
701
|
+
IconReference: _l,
|
|
702
|
+
IconReferenceList: Cl,
|
|
703
|
+
IconBadge: El,
|
|
704
|
+
IconCheck: Tl
|
|
705
|
+
}, jl = {
|
|
706
706
|
key: 0,
|
|
707
707
|
class: "flex items-center justify-between mb-6"
|
|
708
|
-
},
|
|
708
|
+
}, Ol = { class: "flex justify-end w-full" }, Nl = { class: "overflow-hidden bg-white border border-gray-200 shadow-sm rounded-xl flex flex-col flex-1 min-h-0" }, zl = { class: "table-scroll-wrapper flex-1 overflow-y-auto min-h-0" }, Pl = { class: "table-fixed w-full text-[13px]" }, Rl = { class: "bg-gray-50 border-b border-gray-200" }, Dl = { key: 0 }, Bl = ["onDragstart", "onDragover", "onDrop"], Vl = {
|
|
709
709
|
key: 0,
|
|
710
710
|
class: "flex w-fit items-center gap-2 text-left"
|
|
711
|
-
},
|
|
711
|
+
}, Ul = { class: "flex-1 min-w-0" }, ql = { class: "font-medium text-gray-900 truncate" }, Hl = { class: "text-xs text-gray-500" }, Yl = {
|
|
712
712
|
key: 0,
|
|
713
713
|
class: "flex items-center justify-center"
|
|
714
|
-
},
|
|
714
|
+
}, Zl = {
|
|
715
715
|
key: 0,
|
|
716
716
|
class: "inline-flex items-center px-2 py-1 h-fit text-[13px] font-medium rounded-md ring-1 ring-inset ring-gray-500/10 bg-gray-100"
|
|
717
|
-
},
|
|
717
|
+
}, Wl = {
|
|
718
718
|
key: 1,
|
|
719
719
|
class: "text-gray-500 text-sm"
|
|
720
|
-
},
|
|
720
|
+
}, Kl = { key: 2 }, Gl = { class: "px-6 py-4" }, Xl = { key: 1 }, Ql = ["colspan"], Jl = /* @__PURE__ */ ue({
|
|
721
721
|
__name: "vs-datatable",
|
|
722
722
|
props: /* @__PURE__ */ gt({
|
|
723
723
|
columnsScheme: {},
|
|
@@ -795,8 +795,8 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
795
795
|
M.splice(L, 0, b), a.value = M, m.value = null, g.value = null;
|
|
796
796
|
};
|
|
797
797
|
return (L, M) => (v(), y(Z, null, [
|
|
798
|
-
e.addButton ? (v(), y("div",
|
|
799
|
-
s("div",
|
|
798
|
+
e.addButton ? (v(), y("div", jl, [
|
|
799
|
+
s("div", Ol, [
|
|
800
800
|
s("button", {
|
|
801
801
|
onClick: M[0] || (M[0] = (b) => f.value = !0),
|
|
802
802
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:shrink-0 bg-primary hover:bg-primary/90 h-10 px-4 py-2 bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-700 hover:to-blue-600 text-white"
|
|
@@ -819,9 +819,9 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
819
819
|
])])
|
|
820
820
|
])
|
|
821
821
|
])) : W("", !0),
|
|
822
|
-
s("div",
|
|
823
|
-
s("div",
|
|
824
|
-
s("table",
|
|
822
|
+
s("div", Nl, [
|
|
823
|
+
s("div", zl, [
|
|
824
|
+
s("table", Pl, [
|
|
825
825
|
s("colgroup", null, [
|
|
826
826
|
(v(!0), y(Z, null, oe(p.value, (b) => (v(), y("col", {
|
|
827
827
|
key: b.key,
|
|
@@ -832,7 +832,7 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
832
832
|
M[5] || (M[5] = s("col", null, null, -1))
|
|
833
833
|
]),
|
|
834
834
|
s("thead", null, [
|
|
835
|
-
s("tr",
|
|
835
|
+
s("tr", Rl, [
|
|
836
836
|
(v(!0), y(Z, null, oe(p.value, (b) => (v(), y("th", {
|
|
837
837
|
key: b.key,
|
|
838
838
|
class: "px-6 py-4"
|
|
@@ -840,7 +840,7 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
840
840
|
M[6] || (M[6] = s("th", { class: "px-6 py-4" }, "Дії", -1))
|
|
841
841
|
])
|
|
842
842
|
]),
|
|
843
|
-
a.value.length ? (v(), y("tbody",
|
|
843
|
+
a.value.length ? (v(), y("tbody", Dl, [
|
|
844
844
|
(v(!0), y(Z, null, oe(a.value, (b, N) => (v(), y("tr", {
|
|
845
845
|
key: b.id || b.name || N,
|
|
846
846
|
class: ye(["transition-colors hover:bg-gray-50/50 cursor-move", {
|
|
@@ -856,7 +856,7 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
856
856
|
key: I.key,
|
|
857
857
|
class: "px-6 py-4 align-middle text-center"
|
|
858
858
|
}, [
|
|
859
|
-
I.type === "main" ? (v(), y("div",
|
|
859
|
+
I.type === "main" ? (v(), y("div", Vl, [
|
|
860
860
|
M[7] || (M[7] = s("span", { class: "drag-handle cursor-move mr-2 text-gray-400" }, "☰", -1)),
|
|
861
861
|
se(gr)(
|
|
862
862
|
b.format === "yes/no" ? "check" : b.format || b.type
|
|
@@ -870,26 +870,26 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
870
870
|
b.format === "yes/no" ? "icon-check" : se(Rn)["Icon" + n(b.format || b.type)] || se(Rn).IconText
|
|
871
871
|
), { class: "w-4 h-4" }))
|
|
872
872
|
], 2)) : W("", !0),
|
|
873
|
-
s("div",
|
|
874
|
-
Ye((v(), y("p",
|
|
873
|
+
s("div", Ul, [
|
|
874
|
+
Ye((v(), y("p", ql, [
|
|
875
875
|
fe(q(b.name || b.id), 1)
|
|
876
876
|
])), [
|
|
877
|
-
[se(
|
|
877
|
+
[se(_o)]
|
|
878
878
|
]),
|
|
879
|
-
s("p",
|
|
879
|
+
s("p", Hl, q(b.label || b.ua || b.name || b.id), 1)
|
|
880
880
|
])
|
|
881
881
|
])) : (v(), y(Z, { key: 1 }, [
|
|
882
|
-
I.type === "color" ? (v(), y("div",
|
|
882
|
+
I.type === "color" ? (v(), y("div", Yl, [
|
|
883
883
|
s("div", {
|
|
884
884
|
class: ye(["w-4 h-4 rounded-full align-middle", `bg-[${b[I.key]}]`])
|
|
885
885
|
}, null, 2)
|
|
886
886
|
])) : ["format", "type", "meta"].includes(I.key) ? (v(), y(Z, { key: 1 }, [
|
|
887
|
-
b[I.key] ? (v(), y("span",
|
|
888
|
-
], 64)) : (v(), y("span",
|
|
887
|
+
b[I.key] ? (v(), y("span", Zl, q(b[I.key]), 1)) : (v(), y("span", Wl, "Не вказано"))
|
|
888
|
+
], 64)) : (v(), y("span", Kl, q(b[I.key]), 1))
|
|
889
889
|
], 64))
|
|
890
890
|
]))), 128)),
|
|
891
|
-
s("td",
|
|
892
|
-
ae(
|
|
891
|
+
s("td", Gl, [
|
|
892
|
+
ae(bo, {
|
|
893
893
|
columns: a.value,
|
|
894
894
|
"onUpdate:columns": M[1] || (M[1] = (I) => a.value = I),
|
|
895
895
|
data: b,
|
|
@@ -897,12 +897,12 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
897
897
|
scheme: e.formScheme
|
|
898
898
|
}, null, 8, ["columns", "data", "index", "scheme"])
|
|
899
899
|
])
|
|
900
|
-
], 42,
|
|
901
|
-
])) : (v(), y("tr",
|
|
900
|
+
], 42, Bl))), 128))
|
|
901
|
+
])) : (v(), y("tr", Xl, [
|
|
902
902
|
s("td", {
|
|
903
903
|
colspan: p.value.length + 1,
|
|
904
904
|
class: "text-gray-500 text-center py-4"
|
|
905
|
-
}, " Поля не знайдені ", 8,
|
|
905
|
+
}, " Поля не знайдені ", 8, Ql)
|
|
906
906
|
]))
|
|
907
907
|
])
|
|
908
908
|
])
|
|
@@ -941,7 +941,7 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
941
941
|
}, 8, ["visible"])
|
|
942
942
|
], 64));
|
|
943
943
|
}
|
|
944
|
-
}), xt = /* @__PURE__ */ ce(
|
|
944
|
+
}), xt = /* @__PURE__ */ ce(Jl, [["__scopeId", "data-v-49c96add"]]), ei = { class: "p-4 text-[13px]" }, ti = { class: "grid grid-cols-2 gap-x-6 gap-y-2" }, ni = ["id", "checked", "onChange"], ri = { class: "ml-2 flex-1 min-w-0 flex items-center gap-2" }, oi = { class: "font-medium text-gray-900 truncate" }, li = { class: "text-xs text-gray-500" }, ii = { class: "flex justify-end gap-2 p-4 border-t w-full" }, Et = /* @__PURE__ */ ue({
|
|
945
945
|
__name: "import-fields-dialog",
|
|
946
946
|
props: /* @__PURE__ */ gt({
|
|
947
947
|
fields: { default: () => [] },
|
|
@@ -981,7 +981,7 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
981
981
|
size: "lg"
|
|
982
982
|
}, {
|
|
983
983
|
footer: Te(() => [
|
|
984
|
-
s("div",
|
|
984
|
+
s("div", ii, [
|
|
985
985
|
s("button", {
|
|
986
986
|
onClick: g,
|
|
987
987
|
class: "px-4 py-2 rounded bg-gray-100 text-gray-700"
|
|
@@ -993,8 +993,8 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
993
993
|
])
|
|
994
994
|
]),
|
|
995
995
|
default: Te(() => [
|
|
996
|
-
s("div",
|
|
997
|
-
s("div",
|
|
996
|
+
s("div", ei, [
|
|
997
|
+
s("div", ti, [
|
|
998
998
|
(v(!0), y(Z, null, oe(u.value, (L) => (v(), y("label", {
|
|
999
999
|
key: d(L),
|
|
1000
1000
|
class: "flex items-center hover:bg-gray-100 rounded p-2 cursor-pointer"
|
|
@@ -1004,8 +1004,8 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
1004
1004
|
id: `${e.idPrefix}-${d(L)}`,
|
|
1005
1005
|
checked: p(L),
|
|
1006
1006
|
onChange: (M) => x(L)
|
|
1007
|
-
}, null, 40,
|
|
1008
|
-
s("div",
|
|
1007
|
+
}, null, 40, ni),
|
|
1008
|
+
s("div", ri, [
|
|
1009
1009
|
se(gr)(L.type) ? (v(), y("div", {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
class: ye(`bg-${se(mr)(L.type)}-100 p-1 rounded`)
|
|
@@ -1013,8 +1013,8 @@ const jl = /* @__PURE__ */ ce(Il, [["render", Tl]]), Rn = {
|
|
|
1013
1013
|
(v(), re(Bt(`icon-${L.type}`), { class: "w-4 h-4" }))
|
|
1014
1014
|
], 2)) : W("", !0),
|
|
1015
1015
|
s("div", null, [
|
|
1016
|
-
s("p",
|
|
1017
|
-
s("p",
|
|
1016
|
+
s("p", oi, q(d(L)), 1),
|
|
1017
|
+
s("p", li, q(h(L)), 1)
|
|
1018
1018
|
])
|
|
1019
1019
|
])
|
|
1020
1020
|
]))), 128))
|
|
@@ -1052,7 +1052,7 @@ function Ft(e, t, n) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return d;
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const si = { class: "vs-form" }, ai = { class: "vs-form__body auto-rows-max container" }, ui = { class: "flex flex-wrap" }, ci = { class: "h-fit w-full mb-6 px-2" }, di = { class: "h-fit w-full flex flex-wrap" }, fi = { class: "w-full" }, pi = /* @__PURE__ */ ue({
|
|
1056
1056
|
__name: "list-tab",
|
|
1057
1057
|
props: /* @__PURE__ */ gt({
|
|
1058
1058
|
fields: {}
|
|
@@ -1195,10 +1195,10 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1195
1195
|
};
|
|
1196
1196
|
return ge(() => {
|
|
1197
1197
|
n.value = null;
|
|
1198
|
-
}), (w, k) => (v(), y("div",
|
|
1199
|
-
s("div",
|
|
1200
|
-
s("div",
|
|
1201
|
-
s("div",
|
|
1198
|
+
}), (w, k) => (v(), y("div", si, [
|
|
1199
|
+
s("div", ai, [
|
|
1200
|
+
s("div", ui, [
|
|
1201
|
+
s("div", ci, [
|
|
1202
1202
|
(v(), re(se(i), {
|
|
1203
1203
|
ref_key: "formEl",
|
|
1204
1204
|
ref: u,
|
|
@@ -1208,7 +1208,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1208
1208
|
"onUpdate:modelValue": k[0] || (k[0] = (L) => x.value = L)
|
|
1209
1209
|
}, null, 8, ["modelValue"]))
|
|
1210
1210
|
]),
|
|
1211
|
-
s("div",
|
|
1211
|
+
s("div", di, [
|
|
1212
1212
|
s("div", { class: "flex justify-end mb-3 gap-2 w-full" }, [
|
|
1213
1213
|
s("button", {
|
|
1214
1214
|
onClick: h,
|
|
@@ -1233,7 +1233,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1233
1233
|
fe(" Імпорт ", -1)
|
|
1234
1234
|
])])
|
|
1235
1235
|
]),
|
|
1236
|
-
s("div",
|
|
1236
|
+
s("div", fi, [
|
|
1237
1237
|
ae(xt, {
|
|
1238
1238
|
modelValue: p.value,
|
|
1239
1239
|
"onUpdate:modelValue": k[1] || (k[1] = (L) => p.value = L),
|
|
@@ -1258,7 +1258,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1258
1258
|
}, null, 8, ["visible", "selection", "fields"])
|
|
1259
1259
|
]));
|
|
1260
1260
|
}
|
|
1261
|
-
}),
|
|
1261
|
+
}), vi = { class: "vs-form" }, mi = { class: "vs-form__body auto-rows-max container" }, gi = { class: "flex flex-wrap" }, hi = { class: "h-fit w-full flex flex-wrap" }, yi = { class: "w-full" }, xi = /* @__PURE__ */ ue({
|
|
1262
1262
|
__name: "filter-tab",
|
|
1263
1263
|
props: /* @__PURE__ */ gt({
|
|
1264
1264
|
fields: {}
|
|
@@ -1328,13 +1328,13 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1328
1328
|
};
|
|
1329
1329
|
return ge(() => {
|
|
1330
1330
|
n.value = null;
|
|
1331
|
-
}), (x, c) => (v(), y("div",
|
|
1332
|
-
s("div",
|
|
1333
|
-
s("div",
|
|
1331
|
+
}), (x, c) => (v(), y("div", vi, [
|
|
1332
|
+
s("div", mi, [
|
|
1333
|
+
s("div", gi, [
|
|
1334
1334
|
c[4] || (c[4] = s("div", { class: "h-fit w-full flex flex-wrap mb-6 px-2" }, [
|
|
1335
1335
|
s("p", { class: "text-sm text-gray-600" }, " Налаштуйте фільтри реєстру. Оберіть поля для імпорту або відредагуйте властивості вручну. ")
|
|
1336
1336
|
], -1)),
|
|
1337
|
-
s("div",
|
|
1337
|
+
s("div", hi, [
|
|
1338
1338
|
s("div", { class: "flex justify-end mb-3 gap-2 w-full" }, [
|
|
1339
1339
|
s("button", {
|
|
1340
1340
|
onClick: f,
|
|
@@ -1359,7 +1359,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1359
1359
|
fe(" Імпорт ", -1)
|
|
1360
1360
|
])])
|
|
1361
1361
|
]),
|
|
1362
|
-
s("div",
|
|
1362
|
+
s("div", yi, [
|
|
1363
1363
|
ae(xt, {
|
|
1364
1364
|
modelValue: d.value,
|
|
1365
1365
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => d.value = m),
|
|
@@ -1384,7 +1384,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1384
1384
|
}, null, 8, ["visible", "selection", "fields"])
|
|
1385
1385
|
]));
|
|
1386
1386
|
}
|
|
1387
|
-
}),
|
|
1387
|
+
}), bi = { class: "vs-form" }, _i = { class: "vs-form__body auto-rows-max container" }, wi = { class: "flex flex-wrap" }, ki = { class: "h-fit w-full flex flex-wrap" }, $i = { class: "w-full" }, Ci = /* @__PURE__ */ ue({
|
|
1388
1388
|
__name: "card-tab",
|
|
1389
1389
|
props: /* @__PURE__ */ gt({
|
|
1390
1390
|
fields: {}
|
|
@@ -1470,13 +1470,13 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1470
1470
|
};
|
|
1471
1471
|
return ge(() => {
|
|
1472
1472
|
n.value = null;
|
|
1473
|
-
}), (x, c) => (v(), y("div",
|
|
1474
|
-
s("div",
|
|
1475
|
-
s("div",
|
|
1473
|
+
}), (x, c) => (v(), y("div", bi, [
|
|
1474
|
+
s("div", _i, [
|
|
1475
|
+
s("div", wi, [
|
|
1476
1476
|
c[4] || (c[4] = s("div", { class: "h-fit w-full flex flex-wrap mb-6 px-2" }, [
|
|
1477
1477
|
s("p", { class: "text-sm text-gray-600" }, " Налаштуйте відображення картки. Оберіть потрібні поля та відредагуйте їхні властивості. ")
|
|
1478
1478
|
], -1)),
|
|
1479
|
-
s("div",
|
|
1479
|
+
s("div", ki, [
|
|
1480
1480
|
s("div", { class: "flex justify-end mb-3 gap-2 w-full" }, [
|
|
1481
1481
|
s("button", {
|
|
1482
1482
|
onClick: f,
|
|
@@ -1501,7 +1501,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1501
1501
|
fe(" Імпорт ", -1)
|
|
1502
1502
|
])])
|
|
1503
1503
|
]),
|
|
1504
|
-
s("div",
|
|
1504
|
+
s("div", $i, [
|
|
1505
1505
|
ae(xt, {
|
|
1506
1506
|
modelValue: d.value,
|
|
1507
1507
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => d.value = m),
|
|
@@ -1526,7 +1526,7 @@ const ai = { class: "vs-form" }, ui = { class: "vs-form__body auto-rows-max cont
|
|
|
1526
1526
|
}, null, 8, ["visible", "selection", "fields"])
|
|
1527
1527
|
]));
|
|
1528
1528
|
}
|
|
1529
|
-
}),
|
|
1529
|
+
}), Ai = [
|
|
1530
1530
|
"",
|
|
1531
1531
|
"січня",
|
|
1532
1532
|
"лютого",
|
|
@@ -1547,7 +1547,7 @@ function Vt(e) {
|
|
|
1547
1547
|
if (!t) return e;
|
|
1548
1548
|
const [r, o, l] = t.split("-");
|
|
1549
1549
|
if (!r || !o || !l) return e;
|
|
1550
|
-
const i = parseInt(o, 10), u =
|
|
1550
|
+
const i = parseInt(o, 10), u = Ai[i] || o;
|
|
1551
1551
|
let f = `${parseInt(l, 10)} ${u} ${r}`;
|
|
1552
1552
|
if (n) {
|
|
1553
1553
|
const d = n.split(".")[0], [h, a, p] = d.split(":");
|
|
@@ -1555,17 +1555,17 @@ function Vt(e) {
|
|
|
1555
1555
|
}
|
|
1556
1556
|
return f;
|
|
1557
1557
|
}
|
|
1558
|
-
const
|
|
1558
|
+
const Li = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Si = { class: "flex items-center justify-between" }, Ei = { class: "text-lg font-bold line-clamp-2" }, Fi = {
|
|
1559
1559
|
key: 0,
|
|
1560
1560
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground ml-2 whitespace-nowrap",
|
|
1561
1561
|
"data-v0-t": "badge"
|
|
1562
|
-
},
|
|
1562
|
+
}, Ii = {
|
|
1563
1563
|
key: 0,
|
|
1564
1564
|
class: "flex"
|
|
1565
|
-
},
|
|
1565
|
+
}, Mi = {
|
|
1566
1566
|
key: 0,
|
|
1567
1567
|
class: "h-fit inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 text-foreground ml-2 whitespace-nowrap"
|
|
1568
|
-
},
|
|
1568
|
+
}, Ti = { class: "p-4 pt-2" }, ji = { class: "grid grid-cols-2 gap-3 text-sm" }, Oi = { class: "text-gray-500" }, Ni = { class: "font-medium" }, zi = { class: "items-center p-3 bg-slate-50 flex justify-end gap-2" }, Pi = ["href"], Ri = ["href"], Di = /* @__PURE__ */ ue({
|
|
1569
1569
|
__name: "template-1",
|
|
1570
1570
|
props: {
|
|
1571
1571
|
items: {},
|
|
@@ -1593,34 +1593,34 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1593
1593
|
class: "rounded-lg border bg-card text-card-foreground overflow-hidden border-none shadow-md relative",
|
|
1594
1594
|
"data-v0-t": "card"
|
|
1595
1595
|
}, [
|
|
1596
|
-
s("div",
|
|
1597
|
-
s("div",
|
|
1598
|
-
s("h2",
|
|
1596
|
+
s("div", Li, [
|
|
1597
|
+
s("div", Si, [
|
|
1598
|
+
s("h2", Ei, q(p[`${(x = r.value) == null ? void 0 : x.name}_text`] || p[(c = r.value) == null ? void 0 : c.name] || p[(m = r.value) == null ? void 0 : m.label] || "Не вказано"), 1),
|
|
1599
1599
|
Array.isArray(o.value) && o.value.length ? (v(!0), y(Z, { key: 0 }, oe(o.value, (g) => (v(), y(Z, {
|
|
1600
1600
|
key: g.name
|
|
1601
1601
|
}, [
|
|
1602
|
-
p[g.name] ? (v(), y("div",
|
|
1602
|
+
p[g.name] ? (v(), y("div", Fi, q(p[`${g.name}_text`] || p[g.name]), 1)) : W("", !0)
|
|
1603
1603
|
], 64))), 128)) : W("", !0)
|
|
1604
1604
|
]),
|
|
1605
|
-
Array.isArray(l.value) && l.value.length ? (v(), y("div",
|
|
1605
|
+
Array.isArray(l.value) && l.value.length ? (v(), y("div", Ii, [
|
|
1606
1606
|
(v(!0), y(Z, null, oe(l.value, (g) => (v(), y("div", {
|
|
1607
1607
|
key: g.name,
|
|
1608
1608
|
class: "mt-2 flex flex-wrap gap-1"
|
|
1609
1609
|
}, [
|
|
1610
|
-
p[g.name] ? (v(), y("span",
|
|
1610
|
+
p[g.name] ? (v(), y("span", Mi, q(p[`${g.name}_text`] || p[g.name]), 1)) : W("", !0)
|
|
1611
1611
|
]))), 128))
|
|
1612
1612
|
])) : W("", !0)
|
|
1613
1613
|
]),
|
|
1614
|
-
s("div",
|
|
1615
|
-
s("div",
|
|
1614
|
+
s("div", Ti, [
|
|
1615
|
+
s("div", ji, [
|
|
1616
1616
|
(v(!0), y(Z, null, oe(i.value, (g) => {
|
|
1617
1617
|
var F;
|
|
1618
1618
|
return v(), y("div", {
|
|
1619
1619
|
key: g.name,
|
|
1620
1620
|
class: "flex items-center gap-1.5"
|
|
1621
1621
|
}, [
|
|
1622
|
-
s("span",
|
|
1623
|
-
s("span",
|
|
1622
|
+
s("span", Oi, q(g.ua || g.label) + ": ", 1),
|
|
1623
|
+
s("span", Ni, [
|
|
1624
1624
|
Array.isArray(p[g == null ? void 0 : g.name]) ? (v(!0), y(Z, { key: 0 }, oe(p[(g == null ? void 0 : g.name) + "_text"] || p[g == null ? void 0 : g.name], (w, k) => (v(), y("span", {
|
|
1625
1625
|
key: k,
|
|
1626
1626
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
@@ -1636,7 +1636,7 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1636
1636
|
}), 128))
|
|
1637
1637
|
])
|
|
1638
1638
|
]),
|
|
1639
|
-
s("div",
|
|
1639
|
+
s("div", zi, [
|
|
1640
1640
|
p.service_id ? (v(), y("a", {
|
|
1641
1641
|
key: 0,
|
|
1642
1642
|
href: d(p),
|
|
@@ -1658,7 +1658,7 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1658
1658
|
s("path", { d: "M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0" }),
|
|
1659
1659
|
s("path", { d: "m9 10 2 2 4-4" })
|
|
1660
1660
|
], -1)
|
|
1661
|
-
])], 8,
|
|
1661
|
+
])], 8, Pi)) : W("", !0),
|
|
1662
1662
|
s("a", {
|
|
1663
1663
|
href: f(p),
|
|
1664
1664
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 border border-input bg-background hover:bg-accent hover:text-accent-foreground h-9 rounded-md px-3"
|
|
@@ -1679,22 +1679,22 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1679
1679
|
s("path", { d: "M5 12h14" }),
|
|
1680
1680
|
s("path", { d: "m12 5 7 7-7 7" })
|
|
1681
1681
|
], -1)
|
|
1682
|
-
])], 8,
|
|
1682
|
+
])], 8, Ri)
|
|
1683
1683
|
])
|
|
1684
1684
|
]);
|
|
1685
1685
|
}), 128));
|
|
1686
1686
|
}
|
|
1687
|
-
}),
|
|
1687
|
+
}), Bi = { class: "p-0" }, Vi = { class: "border-l-4 border-l-slate-400" }, Ui = { class: "p-4" }, qi = { class: "flex flex-wrap items-center gap-2 mb-3" }, Hi = { class: "text-lg font-bold" }, Yi = {
|
|
1688
1688
|
key: 0,
|
|
1689
1689
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-green-100 text-green-800 hover:bg-green-100",
|
|
1690
1690
|
"data-v0-t": "badge"
|
|
1691
|
-
},
|
|
1691
|
+
}, Zi = {
|
|
1692
1692
|
key: 1,
|
|
1693
1693
|
class: "flex"
|
|
1694
|
-
},
|
|
1694
|
+
}, Wi = {
|
|
1695
1695
|
key: 0,
|
|
1696
1696
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold border-transparent bg-gray-100 text-gray-800"
|
|
1697
|
-
},
|
|
1697
|
+
}, Ki = { class: "grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-3 text-sm border-t pt-3" }, Gi = { class: "text-xs text-gray-500 mb-1" }, Xi = { class: "font-medium" }, Qi = { class: "flex justify-end mt-3 border-t pt-3" }, Ji = ["href"], es = /* @__PURE__ */ ue({
|
|
1698
1698
|
__name: "template-2",
|
|
1699
1699
|
props: {
|
|
1700
1700
|
items: {},
|
|
@@ -1719,33 +1719,33 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1719
1719
|
class: "rounded-lg border bg-card text-card-foreground shadow-sm overflow-hidden",
|
|
1720
1720
|
"data-v0-t": "card"
|
|
1721
1721
|
}, [
|
|
1722
|
-
s("div",
|
|
1723
|
-
s("div",
|
|
1724
|
-
s("div",
|
|
1725
|
-
s("div",
|
|
1726
|
-
s("h2",
|
|
1722
|
+
s("div", Bi, [
|
|
1723
|
+
s("div", Vi, [
|
|
1724
|
+
s("div", Ui, [
|
|
1725
|
+
s("div", qi, [
|
|
1726
|
+
s("h2", Hi, q(a[`${(p = r.value) == null ? void 0 : p.name}_text`] || a[(x = r.value) == null ? void 0 : x.name] || "Не вказано"), 1),
|
|
1727
1727
|
Array.isArray(o.value) && o.value.length ? (v(!0), y(Z, { key: 0 }, oe(o.value, (c) => (v(), y(Z, {
|
|
1728
1728
|
key: c.name
|
|
1729
1729
|
}, [
|
|
1730
|
-
a[c.name] ? (v(), y("div",
|
|
1730
|
+
a[c.name] ? (v(), y("div", Yi, q(a[`${c.name}_text`] || a[c.name]), 1)) : W("", !0)
|
|
1731
1731
|
], 64))), 128)) : W("", !0),
|
|
1732
|
-
Array.isArray(l.value) && l.value.length ? (v(), y("div",
|
|
1732
|
+
Array.isArray(l.value) && l.value.length ? (v(), y("div", Zi, [
|
|
1733
1733
|
(v(!0), y(Z, null, oe(l.value, (c) => (v(), y("div", {
|
|
1734
1734
|
key: c.name,
|
|
1735
1735
|
class: "flex flex-wrap gap-1 ml-2"
|
|
1736
1736
|
}, [
|
|
1737
|
-
a[c.name] ? (v(), y("span",
|
|
1737
|
+
a[c.name] ? (v(), y("span", Wi, q(a[`${c.name}_text`] || a[c.name]), 1)) : W("", !0)
|
|
1738
1738
|
]))), 128))
|
|
1739
1739
|
])) : W("", !0)
|
|
1740
1740
|
]),
|
|
1741
|
-
s("div",
|
|
1741
|
+
s("div", Ki, [
|
|
1742
1742
|
(v(!0), y(Z, null, oe(i.value, (c) => {
|
|
1743
1743
|
var m;
|
|
1744
1744
|
return v(), y("div", {
|
|
1745
1745
|
key: c.name
|
|
1746
1746
|
}, [
|
|
1747
|
-
s("p",
|
|
1748
|
-
s("p",
|
|
1747
|
+
s("p", Gi, q(c.ua), 1),
|
|
1748
|
+
s("p", Xi, [
|
|
1749
1749
|
Array.isArray(a[c == null ? void 0 : c.name]) ? (v(!0), y(Z, { key: 0 }, oe(a[c == null ? void 0 : c.name], (g, F) => (v(), y("span", {
|
|
1750
1750
|
key: F,
|
|
1751
1751
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
@@ -1760,7 +1760,7 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1760
1760
|
]);
|
|
1761
1761
|
}), 128))
|
|
1762
1762
|
]),
|
|
1763
|
-
s("div",
|
|
1763
|
+
s("div", Qi, [
|
|
1764
1764
|
s("a", {
|
|
1765
1765
|
href: f(a),
|
|
1766
1766
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 hover:bg-accent hover:text-accent-foreground h-9 rounded-md px-3"
|
|
@@ -1782,7 +1782,7 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1782
1782
|
s("path", { d: "M10 14 21 3" }),
|
|
1783
1783
|
s("path", { d: "M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })
|
|
1784
1784
|
], -1)
|
|
1785
|
-
])], 8,
|
|
1785
|
+
])], 8, Ji)
|
|
1786
1786
|
])
|
|
1787
1787
|
])
|
|
1788
1788
|
])
|
|
@@ -1790,17 +1790,17 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1790
1790
|
]);
|
|
1791
1791
|
}), 128));
|
|
1792
1792
|
}
|
|
1793
|
-
}),
|
|
1793
|
+
}), ts = { class: "space-y-4" }, ns = { class: "flex items-center py-2 px-3" }, rs = { class: "flex-1" }, os = { class: "grid grid-cols-12 gap-2 w-full text-xs" }, ls = { class: "col-span-5" }, is = {
|
|
1794
1794
|
key: 0,
|
|
1795
1795
|
class: "inline-flex items-center rounded-full border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80 mt-1 text-[10px] font-normal px-1.5 py-0",
|
|
1796
1796
|
"data-v0-t": "badge"
|
|
1797
|
-
},
|
|
1797
|
+
}, ss = {
|
|
1798
1798
|
key: 1,
|
|
1799
1799
|
class: "flex flex-wrap gap-1 mt-1"
|
|
1800
|
-
},
|
|
1800
|
+
}, as = {
|
|
1801
1801
|
key: 0,
|
|
1802
1802
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold border-transparent bg-gray-100 text-gray-800"
|
|
1803
|
-
},
|
|
1803
|
+
}, us = { class: "col-span-7" }, cs = { class: "grid grid-cols-3 gap-3" }, ds = { class: "text-[10px] text-gray-500 mb-1" }, fs = { class: "truncate font-medium" }, ps = ["href"], vs = /* @__PURE__ */ ue({
|
|
1804
1804
|
__name: "template-3",
|
|
1805
1805
|
props: {
|
|
1806
1806
|
items: {},
|
|
@@ -1818,20 +1818,20 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1818
1818
|
const a = f(h, t.id_key);
|
|
1819
1819
|
return `${t.path}?id=${a}`;
|
|
1820
1820
|
};
|
|
1821
|
-
return (h, a) => (v(), y("div",
|
|
1821
|
+
return (h, a) => (v(), y("div", ts, [
|
|
1822
1822
|
(v(!0), y(Z, null, oe(n.value, (p) => {
|
|
1823
1823
|
var x, c;
|
|
1824
1824
|
return v(), y("div", {
|
|
1825
1825
|
key: p.id,
|
|
1826
1826
|
class: "border-b border-slate-200 hover:bg-slate-50 transition-colors"
|
|
1827
1827
|
}, [
|
|
1828
|
-
s("div",
|
|
1828
|
+
s("div", ns, [
|
|
1829
1829
|
s("div", {
|
|
1830
1830
|
class: ye(["w-1 h-8 rounded-full mr-3", u.value])
|
|
1831
1831
|
}, null, 2),
|
|
1832
|
-
s("div",
|
|
1833
|
-
s("div",
|
|
1834
|
-
s("div",
|
|
1832
|
+
s("div", rs, [
|
|
1833
|
+
s("div", os, [
|
|
1834
|
+
s("div", ls, [
|
|
1835
1835
|
s("p", {
|
|
1836
1836
|
class: ye(["font-bold text-sm text-left", {
|
|
1837
1837
|
"w-full h-full flex items-center": !Array.isArray(l.value) || !l.value.length
|
|
@@ -1840,26 +1840,26 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1840
1840
|
Array.isArray(o.value) && o.value.length ? (v(!0), y(Z, { key: 0 }, oe(o.value, (m) => (v(), y(Z, {
|
|
1841
1841
|
key: m.name
|
|
1842
1842
|
}, [
|
|
1843
|
-
p[m.name] ? (v(), y("div",
|
|
1843
|
+
p[m.name] ? (v(), y("div", is, q(p[`${m.name}_text`] || p[m.name]), 1)) : W("", !0)
|
|
1844
1844
|
], 64))), 128)) : W("", !0),
|
|
1845
|
-
Array.isArray(l.value) && l.value.length ? (v(), y("div",
|
|
1845
|
+
Array.isArray(l.value) && l.value.length ? (v(), y("div", ss, [
|
|
1846
1846
|
(v(!0), y(Z, null, oe(l.value, (m) => (v(), y("div", {
|
|
1847
1847
|
key: m.name,
|
|
1848
1848
|
class: "flex flex-wrap gap-1 mt-1"
|
|
1849
1849
|
}, [
|
|
1850
|
-
p[m.name] ? (v(), y("span",
|
|
1850
|
+
p[m.name] ? (v(), y("span", as, q(p[`${m.name}_text`] || p[m.name]), 1)) : W("", !0)
|
|
1851
1851
|
]))), 128))
|
|
1852
1852
|
])) : W("", !0)
|
|
1853
1853
|
]),
|
|
1854
|
-
s("div",
|
|
1855
|
-
s("div",
|
|
1854
|
+
s("div", us, [
|
|
1855
|
+
s("div", cs, [
|
|
1856
1856
|
(v(!0), y(Z, null, oe(i.value, (m) => {
|
|
1857
1857
|
var g;
|
|
1858
1858
|
return v(), y("div", {
|
|
1859
1859
|
key: m.name
|
|
1860
1860
|
}, [
|
|
1861
|
-
s("p",
|
|
1862
|
-
s("p",
|
|
1861
|
+
s("p", ds, q(m.ua), 1),
|
|
1862
|
+
s("p", fs, [
|
|
1863
1863
|
Array.isArray(p[m == null ? void 0 : m.name]) ? (v(!0), y(Z, { key: 0 }, oe(p[m == null ? void 0 : m.name], (F, w) => (v(), y("span", {
|
|
1864
1864
|
key: w,
|
|
1865
1865
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
@@ -1896,23 +1896,23 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1896
1896
|
}, [
|
|
1897
1897
|
s("path", { d: "m9 18 6-6-6-6" })
|
|
1898
1898
|
], -1)
|
|
1899
|
-
])], 8,
|
|
1899
|
+
])], 8, ps)
|
|
1900
1900
|
])
|
|
1901
1901
|
]);
|
|
1902
1902
|
}), 128))
|
|
1903
1903
|
]));
|
|
1904
1904
|
}
|
|
1905
|
-
}),
|
|
1905
|
+
}), ms = { class: "flex flex-col space-y-1.5 p-6 pb-2" }, gs = { class: "flex items-center gap-2" }, hs = { class: "tracking-tight text-lg font-medium" }, ys = {
|
|
1906
1906
|
key: 0,
|
|
1907
1907
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent bg-blue-100 text-blue-800 ml-2",
|
|
1908
1908
|
"data-v0-t": "badge"
|
|
1909
|
-
},
|
|
1909
|
+
}, xs = {
|
|
1910
1910
|
key: 1,
|
|
1911
1911
|
class: "flex"
|
|
1912
|
-
},
|
|
1912
|
+
}, bs = {
|
|
1913
1913
|
key: 0,
|
|
1914
1914
|
class: "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold border-transparent bg-gray-100 text-gray-800"
|
|
1915
|
-
},
|
|
1915
|
+
}, _s = { class: "p-6 pt-0 pb-4" }, ws = { class: "grid grid-cols-2 gap-4" }, ks = { class: "text-sm text-gray-500" }, $s = { class: "font-medium" }, Cs = { class: "flex items-center p-6 pt-0" }, As = ["href"], Ls = /* @__PURE__ */ ue({
|
|
1916
1916
|
__name: "template-4",
|
|
1917
1917
|
props: {
|
|
1918
1918
|
items: {},
|
|
@@ -1937,33 +1937,33 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1937
1937
|
class: "rounded-lg border bg-card text-card-foreground shadow-sm border-l-4 border-l-blue-600",
|
|
1938
1938
|
"data-v0-t": "card"
|
|
1939
1939
|
}, [
|
|
1940
|
-
s("div",
|
|
1941
|
-
s("div",
|
|
1942
|
-
s("h3",
|
|
1940
|
+
s("div", ms, [
|
|
1941
|
+
s("div", gs, [
|
|
1942
|
+
s("h3", hs, q(a[`${(p = r.value) == null ? void 0 : p.name}_text`] || a[(x = r.value) == null ? void 0 : x.name] || Object.keys(a)[0] || "Не вказано"), 1),
|
|
1943
1943
|
Array.isArray(o.value) && o.value.length ? (v(!0), y(Z, { key: 0 }, oe(o.value, (c) => (v(), y(Z, {
|
|
1944
1944
|
key: c.name
|
|
1945
1945
|
}, [
|
|
1946
|
-
a[c.name] ? (v(), y("div",
|
|
1946
|
+
a[c.name] ? (v(), y("div", ys, q(a[`${c.name}_text`] || a[c.name]), 1)) : W("", !0)
|
|
1947
1947
|
], 64))), 128)) : W("", !0),
|
|
1948
|
-
Array.isArray(l.value) && l.value.length ? (v(), y("div",
|
|
1948
|
+
Array.isArray(l.value) && l.value.length ? (v(), y("div", xs, [
|
|
1949
1949
|
(v(!0), y(Z, null, oe(l.value, (c) => (v(), y("div", {
|
|
1950
1950
|
key: c.name,
|
|
1951
1951
|
class: "flex flex-wrap gap-1 ml-2"
|
|
1952
1952
|
}, [
|
|
1953
|
-
a[c.name] ? (v(), y("span",
|
|
1953
|
+
a[c.name] ? (v(), y("span", bs, q(a[`${c.name}_text`] || a[c.name]), 1)) : W("", !0)
|
|
1954
1954
|
]))), 128))
|
|
1955
1955
|
])) : W("", !0)
|
|
1956
1956
|
])
|
|
1957
1957
|
]),
|
|
1958
|
-
s("div",
|
|
1959
|
-
s("div",
|
|
1958
|
+
s("div", _s, [
|
|
1959
|
+
s("div", ws, [
|
|
1960
1960
|
(v(!0), y(Z, null, oe(i.value, (c) => {
|
|
1961
1961
|
var m;
|
|
1962
1962
|
return v(), y("div", {
|
|
1963
1963
|
key: c.name
|
|
1964
1964
|
}, [
|
|
1965
|
-
s("p",
|
|
1966
|
-
s("p",
|
|
1965
|
+
s("p", ks, q(c.ua), 1),
|
|
1966
|
+
s("p", $s, [
|
|
1967
1967
|
Array.isArray(a[c == null ? void 0 : c.name]) ? (v(!0), y(Z, { key: 0 }, oe(a[c == null ? void 0 : c.name], (g, F) => (v(), y("span", {
|
|
1968
1968
|
key: F,
|
|
1969
1969
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
@@ -1979,28 +1979,28 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
1979
1979
|
}), 128))
|
|
1980
1980
|
])
|
|
1981
1981
|
]),
|
|
1982
|
-
s("div",
|
|
1982
|
+
s("div", Cs, [
|
|
1983
1983
|
s("a", {
|
|
1984
1984
|
href: f(a),
|
|
1985
1985
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 border bg-background h-10 px-4 py-2 rounded-md text-black border-black hover:bg-gray-100 hover:text-black"
|
|
1986
|
-
}, " Детальніше ", 8,
|
|
1986
|
+
}, " Детальніше ", 8, As)
|
|
1987
1987
|
])
|
|
1988
1988
|
]);
|
|
1989
1989
|
}), 128));
|
|
1990
1990
|
}
|
|
1991
|
-
}),
|
|
1991
|
+
}), Ss = { class: "grid grid-cols-12 divide-x divide-gray-100" }, Es = { key: 0 }, Fs = ["src"], Is = {
|
|
1992
1992
|
key: 1,
|
|
1993
1993
|
class: "col-span-1 flex items-center justify-center"
|
|
1994
|
-
},
|
|
1994
|
+
}, Ms = { class: "col-span-7 p-4" }, Ts = { class: "flex items-center mb-1 col-span-7 p-4" }, js = { class: "text-base font-bold text-gray-900 mr-2" }, Os = {
|
|
1995
1995
|
key: 0,
|
|
1996
1996
|
class: "inline-flex items-center rounded-full px-2.5 py-0.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 border-transparent hover:bg-primary/80 bg-blue-100 text-blue-800 border-0 text-xs ml-2"
|
|
1997
|
-
},
|
|
1997
|
+
}, Ns = { class: "text-sm text-gray-600 line-clamp-1 mb-2" }, zs = { class: "grid grid-cols-2 gap-x-4 gap-y-1 text-sm" }, Ps = { class: "text-gray-500 mr-1" }, Rs = ["innerHTML"], Ds = { class: "text-gray-600 truncate" }, Bs = { class: "col-span-2 p-3 bg-gray-50 flex flex-col justify-center" }, Vs = { class: "text-xs text-gray-500 mb-1.5" }, Us = {
|
|
1998
1998
|
key: 0,
|
|
1999
1999
|
class: "flex flex-wrap gap-1"
|
|
2000
|
-
},
|
|
2000
|
+
}, qs = {
|
|
2001
2001
|
key: 0,
|
|
2002
2002
|
class: "inline-flex items-center rounded-full font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover:bg-secondary/80 bg-white border border-gray-200 text-gray-700 text-xs px-1.5 py-0"
|
|
2003
|
-
},
|
|
2003
|
+
}, Hs = { class: "col-span-2 flex flex-col justify-center items-center bg-gray-50 border-l p-2" }, Ys = { class: "w-full space-y-2" }, Zs = ["href"], Ws = /* @__PURE__ */ ue({
|
|
2004
2004
|
__name: "template-5",
|
|
2005
2005
|
props: {
|
|
2006
2006
|
items: {},
|
|
@@ -2026,45 +2026,45 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2026
2026
|
key: x.id,
|
|
2027
2027
|
class: "bg-white border border-gray-200 rounded-lg overflow-hidden transition-all duration-200 hover:shadow-md"
|
|
2028
2028
|
}, [
|
|
2029
|
-
s("div",
|
|
2030
|
-
u.value ? (v(), y("div",
|
|
2029
|
+
s("div", Ss, [
|
|
2030
|
+
u.value ? (v(), y("div", Es, [
|
|
2031
2031
|
x[(c = u.value) == null ? void 0 : c.name] ? (v(), y("img", {
|
|
2032
2032
|
key: 0,
|
|
2033
2033
|
src: x[(m = u.value) == null ? void 0 : m.name],
|
|
2034
2034
|
alt: "image",
|
|
2035
2035
|
class: "object-cover h-full"
|
|
2036
|
-
}, null, 8,
|
|
2037
|
-
])) : (v(), y("div",
|
|
2036
|
+
}, null, 8, Fs)) : W("", !0)
|
|
2037
|
+
])) : (v(), y("div", Is, [...p[0] || (p[0] = [
|
|
2038
2038
|
s("div", {
|
|
2039
2039
|
class: "w-3 h-12 rounded-sm bg-blue-500",
|
|
2040
2040
|
title: "Пріоритет: Високий",
|
|
2041
2041
|
"aria-hidden": "true"
|
|
2042
2042
|
}, null, -1)
|
|
2043
2043
|
])])),
|
|
2044
|
-
s("div",
|
|
2045
|
-
s("div",
|
|
2046
|
-
s("h3",
|
|
2044
|
+
s("div", Ms, [
|
|
2045
|
+
s("div", Ts, [
|
|
2046
|
+
s("h3", js, q(x[`${(g = r.value) == null ? void 0 : g.name}_text`] || x[(F = r.value) == null ? void 0 : F.name] || Object.keys(x)[0] || "Не вказано"), 1),
|
|
2047
2047
|
Array.isArray(o.value) && o.value.length ? (v(!0), y(Z, { key: 0 }, oe(o.value, (k) => (v(), y(Z, {
|
|
2048
2048
|
key: k.name
|
|
2049
2049
|
}, [
|
|
2050
|
-
x[k.name] ? (v(), y("div",
|
|
2050
|
+
x[k.name] ? (v(), y("div", Os, q(x[`${k.name}_text`] || x[k.name]), 1)) : W("", !0)
|
|
2051
2051
|
], 64))), 128)) : W("", !0)
|
|
2052
2052
|
]),
|
|
2053
|
-
s("p",
|
|
2054
|
-
s("div",
|
|
2053
|
+
s("p", Ns, q(x[(w = f.value) == null ? void 0 : w.name]), 1),
|
|
2054
|
+
s("div", zs, [
|
|
2055
2055
|
(v(!0), y(Z, null, oe(i.value, (k) => {
|
|
2056
2056
|
var L;
|
|
2057
2057
|
return v(), y("div", {
|
|
2058
2058
|
key: k.name,
|
|
2059
2059
|
class: "flex items-center"
|
|
2060
2060
|
}, [
|
|
2061
|
-
s("span",
|
|
2061
|
+
s("span", Ps, q((k == null ? void 0 : k.ua) || k.label || k.name) + ":", 1),
|
|
2062
2062
|
k.icon ? (v(), y("span", {
|
|
2063
2063
|
key: 0,
|
|
2064
2064
|
class: "mr-1 flex-shrink-0",
|
|
2065
2065
|
innerHTML: k.icon
|
|
2066
|
-
}, null, 8,
|
|
2067
|
-
s("span",
|
|
2066
|
+
}, null, 8, Rs)) : W("", !0),
|
|
2067
|
+
s("span", Ds, [
|
|
2068
2068
|
Array.isArray(x[k == null ? void 0 : k.name]) ? (v(!0), y(Z, { key: 0 }, oe(x[k == null ? void 0 : k.name], (M, b) => (v(), y("span", {
|
|
2069
2069
|
key: b,
|
|
2070
2070
|
class: "bg-gray-200 px-1 py-0.5 rounded-lg mr-1"
|
|
@@ -2080,23 +2080,23 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2080
2080
|
}), 128))
|
|
2081
2081
|
])
|
|
2082
2082
|
]),
|
|
2083
|
-
s("div",
|
|
2084
|
-
s("p",
|
|
2085
|
-
Array.isArray(l.value) && l.value.length ? (v(), y("div",
|
|
2083
|
+
s("div", Bs, [
|
|
2084
|
+
s("p", Vs, " Теги: " + q(l.value.length && x[l.value[0].name] ? "" : "відсутні"), 1),
|
|
2085
|
+
Array.isArray(l.value) && l.value.length ? (v(), y("div", Us, [
|
|
2086
2086
|
(v(!0), y(Z, null, oe(l.value, (k) => (v(), y("div", {
|
|
2087
2087
|
key: k.name,
|
|
2088
2088
|
class: "flex flex-wrap gap-1"
|
|
2089
2089
|
}, [
|
|
2090
|
-
x[k.name] ? (v(), y("span",
|
|
2090
|
+
x[k.name] ? (v(), y("span", qs, q(x[`${k.name}_text`] || x[k.name]), 1)) : W("", !0)
|
|
2091
2091
|
]))), 128))
|
|
2092
2092
|
])) : W("", !0)
|
|
2093
2093
|
]),
|
|
2094
|
-
s("div",
|
|
2095
|
-
s("div",
|
|
2094
|
+
s("div", Hs, [
|
|
2095
|
+
s("div", Ys, [
|
|
2096
2096
|
s("a", {
|
|
2097
2097
|
href: h(x),
|
|
2098
2098
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-md px-3 w-full bg-blue-600 hover:bg-blue-700 text-white text-xs h-8"
|
|
2099
|
-
}, " Детальніше ", 8,
|
|
2099
|
+
}, " Детальніше ", 8, Zs)
|
|
2100
2100
|
])
|
|
2101
2101
|
])
|
|
2102
2102
|
])
|
|
@@ -2104,18 +2104,18 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2104
2104
|
}), 128));
|
|
2105
2105
|
}
|
|
2106
2106
|
}), Dn = {
|
|
2107
|
-
template1:
|
|
2108
|
-
template2:
|
|
2109
|
-
template3:
|
|
2110
|
-
template4:
|
|
2111
|
-
template5:
|
|
2112
|
-
},
|
|
2107
|
+
template1: Di,
|
|
2108
|
+
template2: es,
|
|
2109
|
+
template3: vs,
|
|
2110
|
+
template4: Ls,
|
|
2111
|
+
template5: Ws
|
|
2112
|
+
}, Ks = { class: "space-y-4" }, Gs = { class: "flex items-center gap-4" }, Xs = { class: "text-lg font-semibold mb-4" }, Qs = {
|
|
2113
2113
|
key: 1,
|
|
2114
2114
|
class: "text-gray-400 text-center py-12"
|
|
2115
|
-
},
|
|
2115
|
+
}, Js = {
|
|
2116
2116
|
key: 2,
|
|
2117
2117
|
class: "text-gray-400 text-center py-12"
|
|
2118
|
-
},
|
|
2118
|
+
}, ea = /* @__PURE__ */ ue({
|
|
2119
2119
|
__name: "preview-tab",
|
|
2120
2120
|
props: {
|
|
2121
2121
|
data: { default: {} },
|
|
@@ -2151,8 +2151,8 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2151
2151
|
const a = r.find((x) => x.id === h);
|
|
2152
2152
|
return (a == null ? void 0 : a.text) || h;
|
|
2153
2153
|
}), d = R(() => (Array.isArray(n.value.tableData) ? n.value.tableData : []).slice(0, 5));
|
|
2154
|
-
return (h, a) => (v(), y("div",
|
|
2155
|
-
s("div",
|
|
2154
|
+
return (h, a) => (v(), y("div", Ks, [
|
|
2155
|
+
s("div", Gs, [
|
|
2156
2156
|
(v(), re(se(t), {
|
|
2157
2157
|
key: n.value.id,
|
|
2158
2158
|
schema: o,
|
|
@@ -2160,17 +2160,17 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2160
2160
|
"onUpdate:modelValue": a[0] || (a[0] = (p) => n.value = p)
|
|
2161
2161
|
}, null, 8, ["modelValue"]))
|
|
2162
2162
|
]),
|
|
2163
|
-
s("h2",
|
|
2163
|
+
s("h2", Xs, " Превʼю таблиці (" + q(f.value) + ") ", 1),
|
|
2164
2164
|
u.value && d.value.length && l.value.length ? (v(), re(Bt(u.value), {
|
|
2165
2165
|
items: d.value,
|
|
2166
2166
|
columns: l.value,
|
|
2167
2167
|
path: "#",
|
|
2168
2168
|
id_key: "id",
|
|
2169
2169
|
key: i.value
|
|
2170
|
-
}, null, 8, ["items", "columns"])) : d.value.length ? (v(), y("div",
|
|
2170
|
+
}, null, 8, ["items", "columns"])) : d.value.length ? (v(), y("div", Js, " Додайте колонки та виберіть вигляд для перегляду ")) : (v(), y("div", Qs, " Немає даних для превʼю "))
|
|
2171
2171
|
]));
|
|
2172
2172
|
}
|
|
2173
|
-
}),
|
|
2173
|
+
}), ta = { class: "relative h-screen flex flex-col bg-white p-8" }, na = { class: "flex-1 flex flex-col min-h-0 overflow-hidden" }, ra = { class: "max-w-6xl mx-auto flex-1 flex flex-col min-h-0 w-full" }, oa = { class: "flex items-center justify-between mb-6 flex-shrink-0" }, la = { class: "flex items-center gap-2" }, ia = { class: "w-full flex-shrink-0 mb-6" }, sa = { class: "flex items-center w-full h-10 max-w-md grid-cols-3 p-1 bg-white border border-gray-200 rounded-md text-muted-foreground" }, aa = ["onClick"], ua = { class: "flex-1 min-h-0 overflow-y-auto" }, Cm = /* @__PURE__ */ ue({
|
|
2174
2174
|
__name: "register",
|
|
2175
2175
|
setup(e) {
|
|
2176
2176
|
const t = Lt(), n = St(), r = z("list"), o = z(""), l = [
|
|
@@ -2179,10 +2179,10 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2179
2179
|
{ name: "Картка", id: "card" },
|
|
2180
2180
|
{ name: "Перегляд", id: "preview" }
|
|
2181
2181
|
], i = {
|
|
2182
|
-
list:
|
|
2183
|
-
filters:
|
|
2184
|
-
card:
|
|
2185
|
-
preview:
|
|
2182
|
+
list: pi,
|
|
2183
|
+
filters: xi,
|
|
2184
|
+
card: Ci,
|
|
2185
|
+
preview: ea
|
|
2186
2186
|
}, u = l.map((x) => x.id), f = z({ columns: [], filters: [], card: [], tableData: [] }), d = z([]), h = async () => {
|
|
2187
2187
|
var c;
|
|
2188
2188
|
if (!((c = f.value) == null ? void 0 : c.token)) {
|
|
@@ -2249,15 +2249,15 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2249
2249
|
(x) => {
|
|
2250
2250
|
typeof x == "string" && u.includes(x) && r.value !== x && (r.value = x);
|
|
2251
2251
|
}
|
|
2252
|
-
), (x, c) => (v(), y("main",
|
|
2253
|
-
s("div",
|
|
2254
|
-
s("div",
|
|
2255
|
-
s("div",
|
|
2252
|
+
), (x, c) => (v(), y("main", ta, [
|
|
2253
|
+
s("div", na, [
|
|
2254
|
+
s("div", ra, [
|
|
2255
|
+
s("div", oa, [
|
|
2256
2256
|
c[2] || (c[2] = s("div", null, [
|
|
2257
2257
|
s("h1", { class: "mb-2 text-2xl font-semibold text-gray-900" }, "Створити контент"),
|
|
2258
2258
|
s("p", { class: "text-gray-600" }, "Створити контент для вашого сайту")
|
|
2259
2259
|
], -1)),
|
|
2260
|
-
s("div",
|
|
2260
|
+
s("div", la, [
|
|
2261
2261
|
s("button", {
|
|
2262
2262
|
onClick: c[0] || (c[0] = (m) => se(n).back()),
|
|
2263
2263
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 border bg-background hover:text-accent-foreground h-10 px-4 py-2 border-gray-300 text-gray-700 hover:bg-gray-50"
|
|
@@ -2268,16 +2268,16 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2268
2268
|
}, " Зберегти ")
|
|
2269
2269
|
])
|
|
2270
2270
|
]),
|
|
2271
|
-
s("div",
|
|
2272
|
-
s("div",
|
|
2271
|
+
s("div", ia, [
|
|
2272
|
+
s("div", sa, [
|
|
2273
2273
|
(v(), y(Z, null, oe(l, (m) => s("button", {
|
|
2274
2274
|
key: m.id,
|
|
2275
2275
|
onClick: (g) => r.value = m.id,
|
|
2276
2276
|
class: ye(["inline-flex flex-1 items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm data-[state=active]:bg-blue-50 data-[state=active]:text-blue-700 data-[state=active]:border-blue-200", m.id === r.value ? "bg-blue-50 text-blue-700 border-blue-200" : ""])
|
|
2277
|
-
}, q(m.name), 11,
|
|
2277
|
+
}, q(m.name), 11, aa)), 64))
|
|
2278
2278
|
])
|
|
2279
2279
|
]),
|
|
2280
|
-
s("div",
|
|
2280
|
+
s("div", ua, [
|
|
2281
2281
|
(v(), re(Bt(i[r.value]), {
|
|
2282
2282
|
data: f.value,
|
|
2283
2283
|
"onUpdate:data": c[1] || (c[1] = (m) => f.value = m),
|
|
@@ -2289,7 +2289,7 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2289
2289
|
])
|
|
2290
2290
|
]));
|
|
2291
2291
|
}
|
|
2292
|
-
}),
|
|
2292
|
+
}), ca = {}, da = {
|
|
2293
2293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2294
2294
|
width: "24",
|
|
2295
2295
|
height: "24",
|
|
@@ -2301,8 +2301,8 @@ const Si = { class: "flex justify-between p-4 pb-2 bg-slate-50 gap-4" }, Ei = {
|
|
|
2301
2301
|
"stroke-linejoin": "round",
|
|
2302
2302
|
class: "lucide lucide-settings"
|
|
2303
2303
|
};
|
|
2304
|
-
function
|
|
2305
|
-
return v(), y("svg",
|
|
2304
|
+
function fa(e, t) {
|
|
2305
|
+
return v(), y("svg", da, [...t[0] || (t[0] = [
|
|
2306
2306
|
s("path", { d: "M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" }, null, -1),
|
|
2307
2307
|
s("circle", {
|
|
2308
2308
|
cx: "12",
|
|
@@ -2311,7 +2311,7 @@ function pa(e, t) {
|
|
|
2311
2311
|
}, null, -1)
|
|
2312
2312
|
])]);
|
|
2313
2313
|
}
|
|
2314
|
-
const
|
|
2314
|
+
const pa = /* @__PURE__ */ ce(ca, [["render", fa]]), va = {}, ma = {
|
|
2315
2315
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2316
2316
|
width: "24",
|
|
2317
2317
|
height: "24",
|
|
@@ -2323,14 +2323,14 @@ const va = /* @__PURE__ */ ce(da, [["render", pa]]), ma = {}, ga = {
|
|
|
2323
2323
|
"stroke-linejoin": "round",
|
|
2324
2324
|
class: "lucide lucide-layers"
|
|
2325
2325
|
};
|
|
2326
|
-
function
|
|
2327
|
-
return v(), y("svg",
|
|
2326
|
+
function ga(e, t) {
|
|
2327
|
+
return v(), y("svg", ma, [...t[0] || (t[0] = [
|
|
2328
2328
|
s("path", { d: "m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z" }, null, -1),
|
|
2329
2329
|
s("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }, null, -1),
|
|
2330
2330
|
s("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" }, null, -1)
|
|
2331
2331
|
])]);
|
|
2332
2332
|
}
|
|
2333
|
-
const
|
|
2333
|
+
const ha = /* @__PURE__ */ ce(va, [["render", ga]]), ya = {}, xa = {
|
|
2334
2334
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2335
2335
|
width: "24",
|
|
2336
2336
|
height: "24",
|
|
@@ -2342,8 +2342,8 @@ const ya = /* @__PURE__ */ ce(ma, [["render", ha]]), xa = {}, ba = {
|
|
|
2342
2342
|
"stroke-linejoin": "round",
|
|
2343
2343
|
class: "lucide lucide-eye"
|
|
2344
2344
|
};
|
|
2345
|
-
function
|
|
2346
|
-
return v(), y("svg",
|
|
2345
|
+
function ba(e, t) {
|
|
2346
|
+
return v(), y("svg", xa, [...t[0] || (t[0] = [
|
|
2347
2347
|
s("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }, null, -1),
|
|
2348
2348
|
s("circle", {
|
|
2349
2349
|
cx: "12",
|
|
@@ -2352,7 +2352,7 @@ function _a(e, t) {
|
|
|
2352
2352
|
}, null, -1)
|
|
2353
2353
|
])]);
|
|
2354
2354
|
}
|
|
2355
|
-
const
|
|
2355
|
+
const _a = /* @__PURE__ */ ce(ya, [["render", ba]]), wa = {}, ka = {
|
|
2356
2356
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2357
2357
|
width: "24",
|
|
2358
2358
|
height: "24",
|
|
@@ -2364,14 +2364,14 @@ const wa = /* @__PURE__ */ ce(xa, [["render", _a]]), ka = {}, $a = {
|
|
|
2364
2364
|
"stroke-linejoin": "round",
|
|
2365
2365
|
class: "lucide lucide-map"
|
|
2366
2366
|
};
|
|
2367
|
-
function
|
|
2368
|
-
return v(), y("svg",
|
|
2367
|
+
function $a(e, t) {
|
|
2368
|
+
return v(), y("svg", ka, [...t[0] || (t[0] = [
|
|
2369
2369
|
s("path", { d: "M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z" }, null, -1),
|
|
2370
2370
|
s("path", { d: "M15 5.764v15" }, null, -1),
|
|
2371
2371
|
s("path", { d: "M9 3.236v15" }, null, -1)
|
|
2372
2372
|
])]);
|
|
2373
2373
|
}
|
|
2374
|
-
const
|
|
2374
|
+
const Ca = /* @__PURE__ */ ce(wa, [["render", $a]]), Aa = {}, La = {
|
|
2375
2375
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2376
2376
|
width: "24",
|
|
2377
2377
|
height: "24",
|
|
@@ -2383,12 +2383,12 @@ const Aa = /* @__PURE__ */ ce(ka, [["render", Ca]]), La = {}, Sa = {
|
|
|
2383
2383
|
"stroke-linejoin": "round",
|
|
2384
2384
|
class: "lucide lucide-filter"
|
|
2385
2385
|
};
|
|
2386
|
-
function
|
|
2387
|
-
return v(), y("svg",
|
|
2386
|
+
function Sa(e, t) {
|
|
2387
|
+
return v(), y("svg", La, [...t[0] || (t[0] = [
|
|
2388
2388
|
s("polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3" }, null, -1)
|
|
2389
2389
|
])]);
|
|
2390
2390
|
}
|
|
2391
|
-
const
|
|
2391
|
+
const Ea = /* @__PURE__ */ ce(Aa, [["render", Sa]]), hr = /* @__PURE__ */ ue({
|
|
2392
2392
|
__name: "MonacoEditor",
|
|
2393
2393
|
props: {
|
|
2394
2394
|
modelValue: {},
|
|
@@ -2461,35 +2461,35 @@ const Fa = /* @__PURE__ */ ce(La, [["render", Ea]]), hr = /* @__PURE__ */ ue({
|
|
|
2461
2461
|
function yr(e) {
|
|
2462
2462
|
return typeof e > "u" || e === null;
|
|
2463
2463
|
}
|
|
2464
|
-
function
|
|
2464
|
+
function Fa(e) {
|
|
2465
2465
|
return typeof e == "object" && e !== null;
|
|
2466
2466
|
}
|
|
2467
|
-
function
|
|
2467
|
+
function Ia(e) {
|
|
2468
2468
|
return Array.isArray(e) ? e : yr(e) ? [] : [e];
|
|
2469
2469
|
}
|
|
2470
|
-
function
|
|
2470
|
+
function Ma(e, t) {
|
|
2471
2471
|
var n, r, o, l;
|
|
2472
2472
|
if (t)
|
|
2473
2473
|
for (l = Object.keys(t), n = 0, r = l.length; n < r; n += 1)
|
|
2474
2474
|
o = l[n], e[o] = t[o];
|
|
2475
2475
|
return e;
|
|
2476
2476
|
}
|
|
2477
|
-
function
|
|
2477
|
+
function Ta(e, t) {
|
|
2478
2478
|
var n = "", r;
|
|
2479
2479
|
for (r = 0; r < t; r += 1)
|
|
2480
2480
|
n += e;
|
|
2481
2481
|
return n;
|
|
2482
2482
|
}
|
|
2483
|
-
function
|
|
2483
|
+
function ja(e) {
|
|
2484
2484
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
2485
2485
|
}
|
|
2486
|
-
var
|
|
2487
|
-
isNothing:
|
|
2488
|
-
isObject:
|
|
2489
|
-
toArray:
|
|
2490
|
-
repeat:
|
|
2491
|
-
isNegativeZero:
|
|
2492
|
-
extend:
|
|
2486
|
+
var Oa = yr, Na = Fa, za = Ia, Pa = Ta, Ra = ja, Da = Ma, _e = {
|
|
2487
|
+
isNothing: Oa,
|
|
2488
|
+
isObject: Na,
|
|
2489
|
+
toArray: za,
|
|
2490
|
+
repeat: Pa,
|
|
2491
|
+
isNegativeZero: Ra,
|
|
2492
|
+
extend: Da
|
|
2493
2493
|
};
|
|
2494
2494
|
function xr(e, t) {
|
|
2495
2495
|
var n = "", r = e.reason || "(unknown reason)";
|
|
@@ -2517,7 +2517,7 @@ function sn(e, t, n, r, o) {
|
|
|
2517
2517
|
function an(e, t) {
|
|
2518
2518
|
return _e.repeat(" ", t - e.length) + e;
|
|
2519
2519
|
}
|
|
2520
|
-
function
|
|
2520
|
+
function Ba(e, t) {
|
|
2521
2521
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
2522
2522
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
2523
2523
|
for (var n = /\r?\n|\r|\0/g, r = [0], o = [], l, i = -1; l = n.exec(e.buffer); )
|
|
@@ -2546,7 +2546,7 @@ function Va(e, t) {
|
|
|
2546
2546
|
`;
|
|
2547
2547
|
return u.replace(/\n$/, "");
|
|
2548
2548
|
}
|
|
2549
|
-
var
|
|
2549
|
+
var Va = Ba, Ua = [
|
|
2550
2550
|
"kind",
|
|
2551
2551
|
"multi",
|
|
2552
2552
|
"resolve",
|
|
@@ -2557,12 +2557,12 @@ var Ua = Va, qa = [
|
|
|
2557
2557
|
"representName",
|
|
2558
2558
|
"defaultStyle",
|
|
2559
2559
|
"styleAliases"
|
|
2560
|
-
],
|
|
2560
|
+
], qa = [
|
|
2561
2561
|
"scalar",
|
|
2562
2562
|
"sequence",
|
|
2563
2563
|
"mapping"
|
|
2564
2564
|
];
|
|
2565
|
-
function
|
|
2565
|
+
function Ha(e) {
|
|
2566
2566
|
var t = {};
|
|
2567
2567
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
2568
2568
|
e[n].forEach(function(r) {
|
|
@@ -2570,18 +2570,18 @@ function Ya(e) {
|
|
|
2570
2570
|
});
|
|
2571
2571
|
}), t;
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function Ya(e, t) {
|
|
2574
2574
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
2575
|
-
if (
|
|
2575
|
+
if (Ua.indexOf(n) === -1)
|
|
2576
2576
|
throw new ze('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
2577
2577
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
2578
2578
|
return !0;
|
|
2579
2579
|
}, this.construct = t.construct || function(n) {
|
|
2580
2580
|
return n;
|
|
2581
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
2581
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ha(t.styleAliases || null), qa.indexOf(this.kind) === -1)
|
|
2582
2582
|
throw new ze('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
2583
2583
|
}
|
|
2584
|
-
var Fe =
|
|
2584
|
+
var Fe = Ya;
|
|
2585
2585
|
function Bn(e, t) {
|
|
2586
2586
|
var n = [];
|
|
2587
2587
|
return e[t].forEach(function(r) {
|
|
@@ -2591,7 +2591,7 @@ function Bn(e, t) {
|
|
|
2591
2591
|
}), n[o] = r;
|
|
2592
2592
|
}), n;
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function Za() {
|
|
2595
2595
|
var e = {
|
|
2596
2596
|
scalar: {},
|
|
2597
2597
|
sequence: {},
|
|
@@ -2636,46 +2636,46 @@ gn.prototype.extend = function(t) {
|
|
|
2636
2636
|
throw new ze("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
2637
2637
|
});
|
|
2638
2638
|
var o = Object.create(gn.prototype);
|
|
2639
|
-
return o.implicit = (this.implicit || []).concat(n), o.explicit = (this.explicit || []).concat(r), o.compiledImplicit = Bn(o, "implicit"), o.compiledExplicit = Bn(o, "explicit"), o.compiledTypeMap =
|
|
2639
|
+
return o.implicit = (this.implicit || []).concat(n), o.explicit = (this.explicit || []).concat(r), o.compiledImplicit = Bn(o, "implicit"), o.compiledExplicit = Bn(o, "explicit"), o.compiledTypeMap = Za(o.compiledImplicit, o.compiledExplicit), o;
|
|
2640
2640
|
};
|
|
2641
|
-
var
|
|
2641
|
+
var Wa = gn, Ka = new Fe("tag:yaml.org,2002:str", {
|
|
2642
2642
|
kind: "scalar",
|
|
2643
2643
|
construct: function(e) {
|
|
2644
2644
|
return e !== null ? e : "";
|
|
2645
2645
|
}
|
|
2646
|
-
}),
|
|
2646
|
+
}), Ga = new Fe("tag:yaml.org,2002:seq", {
|
|
2647
2647
|
kind: "sequence",
|
|
2648
2648
|
construct: function(e) {
|
|
2649
2649
|
return e !== null ? e : [];
|
|
2650
2650
|
}
|
|
2651
|
-
}),
|
|
2651
|
+
}), Xa = new Fe("tag:yaml.org,2002:map", {
|
|
2652
2652
|
kind: "mapping",
|
|
2653
2653
|
construct: function(e) {
|
|
2654
2654
|
return e !== null ? e : {};
|
|
2655
2655
|
}
|
|
2656
|
-
}),
|
|
2656
|
+
}), Qa = new Wa({
|
|
2657
2657
|
explicit: [
|
|
2658
|
+
Ka,
|
|
2658
2659
|
Ga,
|
|
2659
|
-
Xa
|
|
2660
|
-
Qa
|
|
2660
|
+
Xa
|
|
2661
2661
|
]
|
|
2662
2662
|
});
|
|
2663
|
-
function
|
|
2663
|
+
function Ja(e) {
|
|
2664
2664
|
if (e === null) return !0;
|
|
2665
2665
|
var t = e.length;
|
|
2666
2666
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
2667
2667
|
}
|
|
2668
|
-
function
|
|
2668
|
+
function eu() {
|
|
2669
2669
|
return null;
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function tu(e) {
|
|
2672
2672
|
return e === null;
|
|
2673
2673
|
}
|
|
2674
|
-
var
|
|
2674
|
+
var nu = new Fe("tag:yaml.org,2002:null", {
|
|
2675
2675
|
kind: "scalar",
|
|
2676
|
-
resolve:
|
|
2677
|
-
construct:
|
|
2678
|
-
predicate:
|
|
2676
|
+
resolve: Ja,
|
|
2677
|
+
construct: eu,
|
|
2678
|
+
predicate: tu,
|
|
2679
2679
|
represent: {
|
|
2680
2680
|
canonical: function() {
|
|
2681
2681
|
return "~";
|
|
@@ -2695,22 +2695,22 @@ var ru = new Fe("tag:yaml.org,2002:null", {
|
|
|
2695
2695
|
},
|
|
2696
2696
|
defaultStyle: "lowercase"
|
|
2697
2697
|
});
|
|
2698
|
-
function
|
|
2698
|
+
function ru(e) {
|
|
2699
2699
|
if (e === null) return !1;
|
|
2700
2700
|
var t = e.length;
|
|
2701
2701
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
2702
2702
|
}
|
|
2703
|
-
function
|
|
2703
|
+
function ou(e) {
|
|
2704
2704
|
return e === "true" || e === "True" || e === "TRUE";
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function lu(e) {
|
|
2707
2707
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
2708
2708
|
}
|
|
2709
|
-
var
|
|
2709
|
+
var iu = new Fe("tag:yaml.org,2002:bool", {
|
|
2710
2710
|
kind: "scalar",
|
|
2711
|
-
resolve:
|
|
2712
|
-
construct:
|
|
2713
|
-
predicate:
|
|
2711
|
+
resolve: ru,
|
|
2712
|
+
construct: ou,
|
|
2713
|
+
predicate: lu,
|
|
2714
2714
|
represent: {
|
|
2715
2715
|
lowercase: function(e) {
|
|
2716
2716
|
return e ? "true" : "false";
|
|
@@ -2724,16 +2724,16 @@ var su = new Fe("tag:yaml.org,2002:bool", {
|
|
|
2724
2724
|
},
|
|
2725
2725
|
defaultStyle: "lowercase"
|
|
2726
2726
|
});
|
|
2727
|
-
function
|
|
2727
|
+
function su(e) {
|
|
2728
2728
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
2729
2729
|
}
|
|
2730
|
-
function
|
|
2730
|
+
function au(e) {
|
|
2731
2731
|
return 48 <= e && e <= 55;
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function uu(e) {
|
|
2734
2734
|
return 48 <= e && e <= 57;
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function cu(e) {
|
|
2737
2737
|
if (e === null) return !1;
|
|
2738
2738
|
var t = e.length, n = 0, r = !1, o;
|
|
2739
2739
|
if (!t) return !1;
|
|
@@ -2750,7 +2750,7 @@ function du(e) {
|
|
|
2750
2750
|
if (o === "x") {
|
|
2751
2751
|
for (n++; n < t; n++)
|
|
2752
2752
|
if (o = e[n], o !== "_") {
|
|
2753
|
-
if (!
|
|
2753
|
+
if (!su(e.charCodeAt(n))) return !1;
|
|
2754
2754
|
r = !0;
|
|
2755
2755
|
}
|
|
2756
2756
|
return r && o !== "_";
|
|
@@ -2758,7 +2758,7 @@ function du(e) {
|
|
|
2758
2758
|
if (o === "o") {
|
|
2759
2759
|
for (n++; n < t; n++)
|
|
2760
2760
|
if (o = e[n], o !== "_") {
|
|
2761
|
-
if (!
|
|
2761
|
+
if (!au(e.charCodeAt(n))) return !1;
|
|
2762
2762
|
r = !0;
|
|
2763
2763
|
}
|
|
2764
2764
|
return r && o !== "_";
|
|
@@ -2767,13 +2767,13 @@ function du(e) {
|
|
|
2767
2767
|
if (o === "_") return !1;
|
|
2768
2768
|
for (; n < t; n++)
|
|
2769
2769
|
if (o = e[n], o !== "_") {
|
|
2770
|
-
if (!
|
|
2770
|
+
if (!uu(e.charCodeAt(n)))
|
|
2771
2771
|
return !1;
|
|
2772
2772
|
r = !0;
|
|
2773
2773
|
}
|
|
2774
2774
|
return !(!r || o === "_");
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2776
|
+
function du(e) {
|
|
2777
2777
|
var t = e, n = 1, r;
|
|
2778
2778
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0") return 0;
|
|
2779
2779
|
if (r === "0") {
|
|
@@ -2783,14 +2783,14 @@ function fu(e) {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
return n * parseInt(t, 10);
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function fu(e) {
|
|
2787
2787
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !_e.isNegativeZero(e);
|
|
2788
2788
|
}
|
|
2789
|
-
var
|
|
2789
|
+
var pu = new Fe("tag:yaml.org,2002:int", {
|
|
2790
2790
|
kind: "scalar",
|
|
2791
|
-
resolve:
|
|
2792
|
-
construct:
|
|
2793
|
-
predicate:
|
|
2791
|
+
resolve: cu,
|
|
2792
|
+
construct: du,
|
|
2793
|
+
predicate: fu,
|
|
2794
2794
|
represent: {
|
|
2795
2795
|
binary: function(e) {
|
|
2796
2796
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -2813,21 +2813,21 @@ var vu = new Fe("tag:yaml.org,2002:int", {
|
|
|
2813
2813
|
decimal: [10, "dec"],
|
|
2814
2814
|
hexadecimal: [16, "hex"]
|
|
2815
2815
|
}
|
|
2816
|
-
}),
|
|
2816
|
+
}), vu = new RegExp(
|
|
2817
2817
|
// 2.5e4, 2.5 and integers
|
|
2818
2818
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
2819
2819
|
);
|
|
2820
|
-
function
|
|
2821
|
-
return !(e === null || !
|
|
2820
|
+
function mu(e) {
|
|
2821
|
+
return !(e === null || !vu.test(e) || // Quick hack to not allow integers end with `_`
|
|
2822
2822
|
// Probably should update regexp & check speed
|
|
2823
2823
|
e[e.length - 1] === "_");
|
|
2824
2824
|
}
|
|
2825
|
-
function
|
|
2825
|
+
function gu(e) {
|
|
2826
2826
|
var t, n;
|
|
2827
2827
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
2828
2828
|
}
|
|
2829
|
-
var
|
|
2830
|
-
function
|
|
2829
|
+
var hu = /^[-+]?[0-9]+e/;
|
|
2830
|
+
function yu(e, t) {
|
|
2831
2831
|
var n;
|
|
2832
2832
|
if (isNaN(e))
|
|
2833
2833
|
switch (t) {
|
|
@@ -2858,34 +2858,34 @@ function xu(e, t) {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
else if (_e.isNegativeZero(e))
|
|
2860
2860
|
return "-0.0";
|
|
2861
|
-
return n = e.toString(10),
|
|
2861
|
+
return n = e.toString(10), hu.test(n) ? n.replace("e", ".e") : n;
|
|
2862
2862
|
}
|
|
2863
|
-
function
|
|
2863
|
+
function xu(e) {
|
|
2864
2864
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || _e.isNegativeZero(e));
|
|
2865
2865
|
}
|
|
2866
|
-
var
|
|
2866
|
+
var bu = new Fe("tag:yaml.org,2002:float", {
|
|
2867
2867
|
kind: "scalar",
|
|
2868
|
-
resolve:
|
|
2869
|
-
construct:
|
|
2870
|
-
predicate:
|
|
2871
|
-
represent:
|
|
2868
|
+
resolve: mu,
|
|
2869
|
+
construct: gu,
|
|
2870
|
+
predicate: xu,
|
|
2871
|
+
represent: yu,
|
|
2872
2872
|
defaultStyle: "lowercase"
|
|
2873
|
-
}),
|
|
2873
|
+
}), _u = Qa.extend({
|
|
2874
2874
|
implicit: [
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2875
|
+
nu,
|
|
2876
|
+
iu,
|
|
2877
|
+
pu,
|
|
2878
|
+
bu
|
|
2879
2879
|
]
|
|
2880
|
-
}),
|
|
2880
|
+
}), wu = _u, br = new RegExp(
|
|
2881
2881
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
2882
2882
|
), _r = new RegExp(
|
|
2883
2883
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
2884
2884
|
);
|
|
2885
|
-
function
|
|
2885
|
+
function ku(e) {
|
|
2886
2886
|
return e === null ? !1 : br.exec(e) !== null || _r.exec(e) !== null;
|
|
2887
2887
|
}
|
|
2888
|
-
function
|
|
2888
|
+
function $u(e) {
|
|
2889
2889
|
var t, n, r, o, l, i, u, f = 0, d = null, h, a, p;
|
|
2890
2890
|
if (t = br.exec(e), t === null && (t = _r.exec(e)), t === null) throw new Error("Date resolve error");
|
|
2891
2891
|
if (n = +t[1], r = +t[2] - 1, o = +t[3], !t[4])
|
|
@@ -2897,25 +2897,25 @@ function Cu(e) {
|
|
|
2897
2897
|
}
|
|
2898
2898
|
return t[9] && (h = +t[10], a = +(t[11] || 0), d = (h * 60 + a) * 6e4, t[9] === "-" && (d = -d)), p = new Date(Date.UTC(n, r, o, l, i, u, f)), d && p.setTime(p.getTime() - d), p;
|
|
2899
2899
|
}
|
|
2900
|
-
function
|
|
2900
|
+
function Cu(e) {
|
|
2901
2901
|
return e.toISOString();
|
|
2902
2902
|
}
|
|
2903
|
-
var
|
|
2903
|
+
var Au = new Fe("tag:yaml.org,2002:timestamp", {
|
|
2904
2904
|
kind: "scalar",
|
|
2905
|
-
resolve:
|
|
2906
|
-
construct:
|
|
2905
|
+
resolve: ku,
|
|
2906
|
+
construct: $u,
|
|
2907
2907
|
instanceOf: Date,
|
|
2908
|
-
represent:
|
|
2908
|
+
represent: Cu
|
|
2909
2909
|
});
|
|
2910
|
-
function
|
|
2910
|
+
function Lu(e) {
|
|
2911
2911
|
return e === "<<" || e === null;
|
|
2912
2912
|
}
|
|
2913
|
-
var
|
|
2913
|
+
var Su = new Fe("tag:yaml.org,2002:merge", {
|
|
2914
2914
|
kind: "scalar",
|
|
2915
|
-
resolve:
|
|
2915
|
+
resolve: Lu
|
|
2916
2916
|
}), Ln = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
2917
2917
|
\r`;
|
|
2918
|
-
function
|
|
2918
|
+
function Eu(e) {
|
|
2919
2919
|
if (e === null) return !1;
|
|
2920
2920
|
var t, n, r = 0, o = e.length, l = Ln;
|
|
2921
2921
|
for (n = 0; n < o; n++)
|
|
@@ -2925,35 +2925,35 @@ function Fu(e) {
|
|
|
2925
2925
|
}
|
|
2926
2926
|
return r % 8 === 0;
|
|
2927
2927
|
}
|
|
2928
|
-
function
|
|
2928
|
+
function Fu(e) {
|
|
2929
2929
|
var t, n, r = e.replace(/[\r\n=]/g, ""), o = r.length, l = Ln, i = 0, u = [];
|
|
2930
2930
|
for (t = 0; t < o; t++)
|
|
2931
2931
|
t % 4 === 0 && t && (u.push(i >> 16 & 255), u.push(i >> 8 & 255), u.push(i & 255)), i = i << 6 | l.indexOf(r.charAt(t));
|
|
2932
2932
|
return n = o % 4 * 6, n === 0 ? (u.push(i >> 16 & 255), u.push(i >> 8 & 255), u.push(i & 255)) : n === 18 ? (u.push(i >> 10 & 255), u.push(i >> 2 & 255)) : n === 12 && u.push(i >> 4 & 255), new Uint8Array(u);
|
|
2933
2933
|
}
|
|
2934
|
-
function
|
|
2934
|
+
function Iu(e) {
|
|
2935
2935
|
var t = "", n = 0, r, o, l = e.length, i = Ln;
|
|
2936
2936
|
for (r = 0; r < l; r++)
|
|
2937
2937
|
r % 3 === 0 && r && (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]), n = (n << 8) + e[r];
|
|
2938
2938
|
return o = l % 3, o === 0 ? (t += i[n >> 18 & 63], t += i[n >> 12 & 63], t += i[n >> 6 & 63], t += i[n & 63]) : o === 2 ? (t += i[n >> 10 & 63], t += i[n >> 4 & 63], t += i[n << 2 & 63], t += i[64]) : o === 1 && (t += i[n >> 2 & 63], t += i[n << 4 & 63], t += i[64], t += i[64]), t;
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Mu(e) {
|
|
2941
2941
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
2942
2942
|
}
|
|
2943
|
-
var
|
|
2943
|
+
var Tu = new Fe("tag:yaml.org,2002:binary", {
|
|
2944
2944
|
kind: "scalar",
|
|
2945
|
-
resolve:
|
|
2946
|
-
construct:
|
|
2947
|
-
predicate:
|
|
2948
|
-
represent:
|
|
2949
|
-
}),
|
|
2950
|
-
function
|
|
2945
|
+
resolve: Eu,
|
|
2946
|
+
construct: Fu,
|
|
2947
|
+
predicate: Mu,
|
|
2948
|
+
represent: Iu
|
|
2949
|
+
}), ju = Object.prototype.hasOwnProperty, Ou = Object.prototype.toString;
|
|
2950
|
+
function Nu(e) {
|
|
2951
2951
|
if (e === null) return !0;
|
|
2952
2952
|
var t = [], n, r, o, l, i, u = e;
|
|
2953
2953
|
for (n = 0, r = u.length; n < r; n += 1) {
|
|
2954
|
-
if (o = u[n], i = !1,
|
|
2954
|
+
if (o = u[n], i = !1, Ou.call(o) !== "[object Object]") return !1;
|
|
2955
2955
|
for (l in o)
|
|
2956
|
-
if (
|
|
2956
|
+
if (ju.call(o, l))
|
|
2957
2957
|
if (!i) i = !0;
|
|
2958
2958
|
else return !1;
|
|
2959
2959
|
if (!i) return !1;
|
|
@@ -2962,62 +2962,62 @@ function zu(e) {
|
|
|
2962
2962
|
}
|
|
2963
2963
|
return !0;
|
|
2964
2964
|
}
|
|
2965
|
-
function
|
|
2965
|
+
function zu(e) {
|
|
2966
2966
|
return e !== null ? e : [];
|
|
2967
2967
|
}
|
|
2968
|
-
var
|
|
2968
|
+
var Pu = new Fe("tag:yaml.org,2002:omap", {
|
|
2969
2969
|
kind: "sequence",
|
|
2970
|
-
resolve:
|
|
2971
|
-
construct:
|
|
2972
|
-
}),
|
|
2973
|
-
function
|
|
2970
|
+
resolve: Nu,
|
|
2971
|
+
construct: zu
|
|
2972
|
+
}), Ru = Object.prototype.toString;
|
|
2973
|
+
function Du(e) {
|
|
2974
2974
|
if (e === null) return !0;
|
|
2975
2975
|
var t, n, r, o, l, i = e;
|
|
2976
2976
|
for (l = new Array(i.length), t = 0, n = i.length; t < n; t += 1) {
|
|
2977
|
-
if (r = i[t],
|
|
2977
|
+
if (r = i[t], Ru.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1)) return !1;
|
|
2978
2978
|
l[t] = [o[0], r[o[0]]];
|
|
2979
2979
|
}
|
|
2980
2980
|
return !0;
|
|
2981
2981
|
}
|
|
2982
|
-
function
|
|
2982
|
+
function Bu(e) {
|
|
2983
2983
|
if (e === null) return [];
|
|
2984
2984
|
var t, n, r, o, l, i = e;
|
|
2985
2985
|
for (l = new Array(i.length), t = 0, n = i.length; t < n; t += 1)
|
|
2986
2986
|
r = i[t], o = Object.keys(r), l[t] = [o[0], r[o[0]]];
|
|
2987
2987
|
return l;
|
|
2988
2988
|
}
|
|
2989
|
-
var
|
|
2989
|
+
var Vu = new Fe("tag:yaml.org,2002:pairs", {
|
|
2990
2990
|
kind: "sequence",
|
|
2991
|
-
resolve:
|
|
2992
|
-
construct:
|
|
2993
|
-
}),
|
|
2994
|
-
function
|
|
2991
|
+
resolve: Du,
|
|
2992
|
+
construct: Bu
|
|
2993
|
+
}), Uu = Object.prototype.hasOwnProperty;
|
|
2994
|
+
function qu(e) {
|
|
2995
2995
|
if (e === null) return !0;
|
|
2996
2996
|
var t, n = e;
|
|
2997
2997
|
for (t in n)
|
|
2998
|
-
if (
|
|
2998
|
+
if (Uu.call(n, t) && n[t] !== null)
|
|
2999
2999
|
return !1;
|
|
3000
3000
|
return !0;
|
|
3001
3001
|
}
|
|
3002
|
-
function
|
|
3002
|
+
function Hu(e) {
|
|
3003
3003
|
return e !== null ? e : {};
|
|
3004
3004
|
}
|
|
3005
|
-
var
|
|
3005
|
+
var Yu = new Fe("tag:yaml.org,2002:set", {
|
|
3006
3006
|
kind: "mapping",
|
|
3007
|
-
resolve:
|
|
3008
|
-
construct:
|
|
3009
|
-
}), wr =
|
|
3007
|
+
resolve: qu,
|
|
3008
|
+
construct: Hu
|
|
3009
|
+
}), wr = wu.extend({
|
|
3010
3010
|
implicit: [
|
|
3011
|
-
|
|
3012
|
-
|
|
3011
|
+
Au,
|
|
3012
|
+
Su
|
|
3013
3013
|
],
|
|
3014
3014
|
explicit: [
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3015
|
+
Tu,
|
|
3016
|
+
Pu,
|
|
3017
|
+
Vu,
|
|
3018
|
+
Yu
|
|
3019
3019
|
]
|
|
3020
|
-
}), ut = Object.prototype.hasOwnProperty, Zt = 1, kr = 2, $r = 3, Wt = 4, un = 1,
|
|
3020
|
+
}), ut = Object.prototype.hasOwnProperty, Zt = 1, kr = 2, $r = 3, Wt = 4, un = 1, Zu = 2, Vn = 3, Wu = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ku = /[\x85\u2028\u2029]/, Gu = /[,\[\]\{\}]/, Cr = /^(?:!|!!|![a-z\-]+!)$/i, Ar = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
3021
3021
|
function Un(e) {
|
|
3022
3022
|
return Object.prototype.toString.call(e);
|
|
3023
3023
|
}
|
|
@@ -3033,21 +3033,21 @@ function Pe(e) {
|
|
|
3033
3033
|
function wt(e) {
|
|
3034
3034
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
3035
3035
|
}
|
|
3036
|
-
function
|
|
3036
|
+
function Xu(e) {
|
|
3037
3037
|
var t;
|
|
3038
3038
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function Qu(e) {
|
|
3041
3041
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
3042
3042
|
}
|
|
3043
|
-
function
|
|
3043
|
+
function Ju(e) {
|
|
3044
3044
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
3045
3045
|
}
|
|
3046
3046
|
function qn(e) {
|
|
3047
3047
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
3048
3048
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function ec(e) {
|
|
3051
3051
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
3052
3052
|
(e - 65536 >> 10) + 55296,
|
|
3053
3053
|
(e - 65536 & 1023) + 56320
|
|
@@ -3056,7 +3056,7 @@ function tc(e) {
|
|
|
3056
3056
|
var Lr = new Array(256), Sr = new Array(256);
|
|
3057
3057
|
for (var bt = 0; bt < 256; bt++)
|
|
3058
3058
|
Lr[bt] = qn(bt) ? 1 : 0, Sr[bt] = qn(bt);
|
|
3059
|
-
function
|
|
3059
|
+
function tc(e, t) {
|
|
3060
3060
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || wr, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
3061
3061
|
}
|
|
3062
3062
|
function Er(e, t) {
|
|
@@ -3068,7 +3068,7 @@ function Er(e, t) {
|
|
|
3068
3068
|
line: e.line,
|
|
3069
3069
|
column: e.position - e.lineStart
|
|
3070
3070
|
};
|
|
3071
|
-
return n.snippet =
|
|
3071
|
+
return n.snippet = Va(n), new ze(t, n);
|
|
3072
3072
|
}
|
|
3073
3073
|
function ne(e, t) {
|
|
3074
3074
|
throw Er(e, t);
|
|
@@ -3098,7 +3098,7 @@ function st(e, t, n, r) {
|
|
|
3098
3098
|
if (u = e.input.slice(t, n), r)
|
|
3099
3099
|
for (o = 0, l = u.length; o < l; o += 1)
|
|
3100
3100
|
i = u.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || ne(e, "expected valid JSON character");
|
|
3101
|
-
else
|
|
3101
|
+
else Wu.test(u) && ne(e, "the stream contains non-printable characters");
|
|
3102
3102
|
e.result += u;
|
|
3103
3103
|
}
|
|
3104
3104
|
}
|
|
@@ -3155,7 +3155,7 @@ function En(e, t) {
|
|
|
3155
3155
|
t === 1 ? e.result += " " : t > 1 && (e.result += _e.repeat(`
|
|
3156
3156
|
`, t - 1));
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function nc(e, t, n) {
|
|
3159
3159
|
var r, o, l, i, u, f, d, h, a = e.kind, p = e.result, x;
|
|
3160
3160
|
if (x = e.input.charCodeAt(e.position), Pe(x) || wt(x) || x === 35 || x === 38 || x === 42 || x === 33 || x === 124 || x === 62 || x === 39 || x === 34 || x === 37 || x === 64 || x === 96 || (x === 63 || x === 45) && (o = e.input.charCodeAt(e.position + 1), Pe(o) || n && wt(o)))
|
|
3161
3161
|
return !1;
|
|
@@ -3182,7 +3182,7 @@ function rc(e, t, n) {
|
|
|
3182
3182
|
}
|
|
3183
3183
|
return st(e, l, i, !1), e.result ? !0 : (e.kind = a, e.result = p, !1);
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3185
|
+
function rc(e, t) {
|
|
3186
3186
|
var n, r, o;
|
|
3187
3187
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
3188
3188
|
return !1;
|
|
@@ -3195,7 +3195,7 @@ function oc(e, t) {
|
|
|
3195
3195
|
else tt(n) ? (st(e, r, o, !0), En(e, xe(e, !1, t)), r = o = e.position) : e.position === e.lineStart && Qt(e) ? ne(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
3196
3196
|
ne(e, "unexpected end of the stream within a single quoted scalar");
|
|
3197
3197
|
}
|
|
3198
|
-
function
|
|
3198
|
+
function oc(e, t) {
|
|
3199
3199
|
var n, r, o, l, i, u;
|
|
3200
3200
|
if (u = e.input.charCodeAt(e.position), u !== 34)
|
|
3201
3201
|
return !1;
|
|
@@ -3207,10 +3207,10 @@ function lc(e, t) {
|
|
|
3207
3207
|
xe(e, !1, t);
|
|
3208
3208
|
else if (u < 256 && Lr[u])
|
|
3209
3209
|
e.result += Sr[u], e.position++;
|
|
3210
|
-
else if ((i =
|
|
3210
|
+
else if ((i = Qu(u)) > 0) {
|
|
3211
3211
|
for (o = i, l = 0; o > 0; o--)
|
|
3212
|
-
u = e.input.charCodeAt(++e.position), (i =
|
|
3213
|
-
e.result +=
|
|
3212
|
+
u = e.input.charCodeAt(++e.position), (i = Xu(u)) >= 0 ? l = (l << 4) + i : ne(e, "expected hexadecimal character");
|
|
3213
|
+
e.result += ec(l), e.position++;
|
|
3214
3214
|
} else
|
|
3215
3215
|
ne(e, "unknown escape sequence");
|
|
3216
3216
|
n = r = e.position;
|
|
@@ -3218,7 +3218,7 @@ function lc(e, t) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
ne(e, "unexpected end of the stream within a double quoted scalar");
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function lc(e, t) {
|
|
3222
3222
|
var n = !0, r, o, l, i = e.tag, u, f = e.anchor, d, h, a, p, x, c = /* @__PURE__ */ Object.create(null), m, g, F, w;
|
|
3223
3223
|
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
3224
3224
|
h = 93, x = !1, u = [];
|
|
@@ -3233,7 +3233,7 @@ function ic(e, t) {
|
|
|
3233
3233
|
}
|
|
3234
3234
|
ne(e, "unexpected end of the stream within a flow collection");
|
|
3235
3235
|
}
|
|
3236
|
-
function
|
|
3236
|
+
function ic(e, t) {
|
|
3237
3237
|
var n, r, o = un, l = !1, i = !1, u = t, f = 0, d = !1, h, a;
|
|
3238
3238
|
if (a = e.input.charCodeAt(e.position), a === 124)
|
|
3239
3239
|
r = !1;
|
|
@@ -3243,8 +3243,8 @@ function sc(e, t) {
|
|
|
3243
3243
|
return !1;
|
|
3244
3244
|
for (e.kind = "scalar", e.result = ""; a !== 0; )
|
|
3245
3245
|
if (a = e.input.charCodeAt(++e.position), a === 43 || a === 45)
|
|
3246
|
-
un === o ? o = a === 43 ? Vn :
|
|
3247
|
-
else if ((h =
|
|
3246
|
+
un === o ? o = a === 43 ? Vn : Zu : ne(e, "repeat of a chomping mode identifier");
|
|
3247
|
+
else if ((h = Ju(a)) >= 0)
|
|
3248
3248
|
h === 0 ? ne(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? ne(e, "repeat of an indentation width identifier") : (u = t + h - 1, i = !0);
|
|
3249
3249
|
else
|
|
3250
3250
|
break;
|
|
@@ -3295,7 +3295,7 @@ function Zn(e, t) {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
return u ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = l, !0) : !1;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function sc(e, t, n) {
|
|
3299
3299
|
var r, o, l, i, u, f, d = e.tag, h = e.anchor, a = {}, p = /* @__PURE__ */ Object.create(null), x = null, c = null, m = null, g = !1, F = !1, w;
|
|
3300
3300
|
if (e.firstTabInLine !== -1) return !1;
|
|
3301
3301
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), w = e.input.charCodeAt(e.position); w !== 0; ) {
|
|
@@ -3325,7 +3325,7 @@ function ac(e, t, n) {
|
|
|
3325
3325
|
}
|
|
3326
3326
|
return g && kt(e, a, p, x, c, null, i, u, f), F && (e.tag = d, e.anchor = h, e.kind = "mapping", e.result = a), F;
|
|
3327
3327
|
}
|
|
3328
|
-
function
|
|
3328
|
+
function ac(e) {
|
|
3329
3329
|
var t, n = !1, r = !1, o, l, i;
|
|
3330
3330
|
if (i = e.input.charCodeAt(e.position), i !== 33) return !1;
|
|
3331
3331
|
if (e.tag !== null && ne(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (n = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (r = !0, o = "!!", i = e.input.charCodeAt(++e.position)) : o = "!", t = e.position, n) {
|
|
@@ -3336,7 +3336,7 @@ function uc(e) {
|
|
|
3336
3336
|
} else {
|
|
3337
3337
|
for (; i !== 0 && !Pe(i); )
|
|
3338
3338
|
i === 33 && (r ? ne(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(t - 1, e.position + 1), Cr.test(o) || ne(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
3339
|
-
l = e.input.slice(t, e.position),
|
|
3339
|
+
l = e.input.slice(t, e.position), Gu.test(l) && ne(e, "tag suffix cannot contain flow indicator characters");
|
|
3340
3340
|
}
|
|
3341
3341
|
l && !Ar.test(l) && ne(e, "tag name cannot contain such characters: " + l);
|
|
3342
3342
|
try {
|
|
@@ -3346,14 +3346,14 @@ function uc(e) {
|
|
|
3346
3346
|
}
|
|
3347
3347
|
return n ? e.tag = l : ut.call(e.tagMap, o) ? e.tag = e.tagMap[o] + l : o === "!" ? e.tag = "!" + l : o === "!!" ? e.tag = "tag:yaml.org,2002:" + l : ne(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
3348
3348
|
}
|
|
3349
|
-
function
|
|
3349
|
+
function uc(e) {
|
|
3350
3350
|
var t, n;
|
|
3351
3351
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
3352
3352
|
for (e.anchor !== null && ne(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !Pe(n) && !wt(n); )
|
|
3353
3353
|
n = e.input.charCodeAt(++e.position);
|
|
3354
3354
|
return e.position === t && ne(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function cc(e) {
|
|
3357
3357
|
var t, n, r;
|
|
3358
3358
|
if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
|
|
3359
3359
|
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !Pe(r) && !wt(r); )
|
|
@@ -3363,9 +3363,9 @@ function dc(e) {
|
|
|
3363
3363
|
function At(e, t, n, r, o) {
|
|
3364
3364
|
var l, i, u, f = 1, d = !1, h = !1, a, p, x, c, m, g;
|
|
3365
3365
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, l = i = u = Wt === n || $r === n, r && xe(e, !0, -1) && (d = !0, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)), f === 1)
|
|
3366
|
-
for (;
|
|
3366
|
+
for (; ac(e) || uc(e); )
|
|
3367
3367
|
xe(e, !0, -1) ? (d = !0, u = l, e.lineIndent > t ? f = 1 : e.lineIndent === t ? f = 0 : e.lineIndent < t && (f = -1)) : u = !1;
|
|
3368
|
-
if (u && (u = d || o), (f === 1 || Wt === n) && (Zt === n || kr === n ? m = t : m = t + 1, g = e.position - e.lineStart, f === 1 ? u && (Zn(e, g) ||
|
|
3368
|
+
if (u && (u = d || o), (f === 1 || Wt === n) && (Zt === n || kr === n ? m = t : m = t + 1, g = e.position - e.lineStart, f === 1 ? u && (Zn(e, g) || sc(e, g, m)) || lc(e, m) ? h = !0 : (i && ic(e, m) || rc(e, m) || oc(e, m) ? h = !0 : cc(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && ne(e, "alias node should not have any properties")) : nc(e, m, Zt === n) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : f === 0 && (h = u && Zn(e, g))), e.tag === null)
|
|
3369
3369
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
3370
3370
|
else if (e.tag === "?") {
|
|
3371
3371
|
for (e.result !== null && e.kind !== "scalar" && ne(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), a = 0, p = e.implicitTypes.length; a < p; a += 1)
|
|
@@ -3386,7 +3386,7 @@ function At(e, t, n, r, o) {
|
|
|
3386
3386
|
}
|
|
3387
3387
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h;
|
|
3388
3388
|
}
|
|
3389
|
-
function
|
|
3389
|
+
function dc(e) {
|
|
3390
3390
|
var t = e.position, n, r, o, l = !1, i;
|
|
3391
3391
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (xe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
3392
3392
|
for (l = !0, i = e.input.charCodeAt(++e.position), n = e.position; i !== 0 && !Pe(i); )
|
|
@@ -3407,7 +3407,7 @@ function fc(e) {
|
|
|
3407
3407
|
}
|
|
3408
3408
|
i !== 0 && Sn(e), ut.call(Hn, r) ? Hn[r](e, r, o) : Kt(e, 'unknown document directive "' + r + '"');
|
|
3409
3409
|
}
|
|
3410
|
-
if (xe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, xe(e, !0, -1)) : l && ne(e, "directives end mark is expected"), At(e, e.lineIndent - 1, Wt, !1, !0), xe(e, !0, -1), e.checkLineBreaks &&
|
|
3410
|
+
if (xe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, xe(e, !0, -1)) : l && ne(e, "directives end mark is expected"), At(e, e.lineIndent - 1, Wt, !1, !0), xe(e, !0, -1), e.checkLineBreaks && Ku.test(e.input.slice(t, e.position)) && Kt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qt(e)) {
|
|
3411
3411
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, xe(e, !0, -1));
|
|
3412
3412
|
return;
|
|
3413
3413
|
}
|
|
@@ -3416,36 +3416,27 @@ function fc(e) {
|
|
|
3416
3416
|
else
|
|
3417
3417
|
return;
|
|
3418
3418
|
}
|
|
3419
|
-
function
|
|
3419
|
+
function fc(e, t) {
|
|
3420
3420
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
3421
3421
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
3422
|
-
var n = new
|
|
3422
|
+
var n = new tc(e, t), r = e.indexOf("\0");
|
|
3423
3423
|
for (r !== -1 && (n.position = r, ne(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
3424
3424
|
n.lineIndent += 1, n.position += 1;
|
|
3425
3425
|
for (; n.position < n.length - 1; )
|
|
3426
|
-
|
|
3426
|
+
dc(n);
|
|
3427
3427
|
return n.documents;
|
|
3428
3428
|
}
|
|
3429
|
-
function pc(e, t
|
|
3430
|
-
|
|
3431
|
-
var r = Fr(e, n);
|
|
3432
|
-
if (typeof t != "function")
|
|
3433
|
-
return r;
|
|
3434
|
-
for (var o = 0, l = r.length; o < l; o += 1)
|
|
3435
|
-
t(r[o]);
|
|
3436
|
-
}
|
|
3437
|
-
function vc(e, t) {
|
|
3438
|
-
var n = Fr(e, t);
|
|
3429
|
+
function pc(e, t) {
|
|
3430
|
+
var n = fc(e, t);
|
|
3439
3431
|
if (n.length !== 0) {
|
|
3440
3432
|
if (n.length === 1)
|
|
3441
3433
|
return n[0];
|
|
3442
3434
|
throw new ze("expected a single document in the stream, but found more");
|
|
3443
3435
|
}
|
|
3444
3436
|
}
|
|
3445
|
-
var
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
}, Ir = Object.prototype.toString, Mr = Object.prototype.hasOwnProperty, Fn = 65279, yc = 9, Pt = 10, xc = 13, bc = 32, _c = 33, wc = 34, hn = 35, kc = 37, $c = 38, Cc = 39, Ac = 42, Tr = 44, Lc = 45, Gt = 58, Sc = 61, Ec = 62, Fc = 63, Ic = 64, jr = 91, Or = 93, Mc = 96, Nr = 123, Tc = 124, zr = 125, Ie = {};
|
|
3437
|
+
var vc = pc, mc = {
|
|
3438
|
+
load: vc
|
|
3439
|
+
}, Fr = Object.prototype.toString, Ir = Object.prototype.hasOwnProperty, Fn = 65279, gc = 9, Pt = 10, hc = 13, yc = 32, xc = 33, bc = 34, hn = 35, _c = 37, wc = 38, kc = 39, $c = 42, Mr = 44, Cc = 45, Gt = 58, Ac = 61, Lc = 62, Sc = 63, Ec = 64, Tr = 91, jr = 93, Fc = 96, Or = 123, Ic = 124, Nr = 125, Ie = {};
|
|
3449
3440
|
Ie[0] = "\\0";
|
|
3450
3441
|
Ie[7] = "\\a";
|
|
3451
3442
|
Ie[8] = "\\b";
|
|
@@ -3461,7 +3452,7 @@ Ie[133] = "\\N";
|
|
|
3461
3452
|
Ie[160] = "\\_";
|
|
3462
3453
|
Ie[8232] = "\\L";
|
|
3463
3454
|
Ie[8233] = "\\P";
|
|
3464
|
-
var
|
|
3455
|
+
var Mc = [
|
|
3465
3456
|
"y",
|
|
3466
3457
|
"Y",
|
|
3467
3458
|
"yes",
|
|
@@ -3478,15 +3469,15 @@ var jc = [
|
|
|
3478
3469
|
"off",
|
|
3479
3470
|
"Off",
|
|
3480
3471
|
"OFF"
|
|
3481
|
-
],
|
|
3482
|
-
function
|
|
3472
|
+
], Tc = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
3473
|
+
function jc(e, t) {
|
|
3483
3474
|
var n, r, o, l, i, u, f;
|
|
3484
3475
|
if (t === null) return {};
|
|
3485
3476
|
for (n = {}, r = Object.keys(t), o = 0, l = r.length; o < l; o += 1)
|
|
3486
|
-
i = r[o], u = String(t[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), f = e.compiledTypeMap.fallback[i], f &&
|
|
3477
|
+
i = r[o], u = String(t[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), f = e.compiledTypeMap.fallback[i], f && Ir.call(f.styleAliases, u) && (u = f.styleAliases[u]), n[i] = u;
|
|
3487
3478
|
return n;
|
|
3488
3479
|
}
|
|
3489
|
-
function
|
|
3480
|
+
function Oc(e) {
|
|
3490
3481
|
var t, n, r;
|
|
3491
3482
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
3492
3483
|
n = "x", r = 2;
|
|
@@ -3498,9 +3489,9 @@ function zc(e) {
|
|
|
3498
3489
|
throw new ze("code point within a string may not be greater than 0xFFFFFFFF");
|
|
3499
3490
|
return "\\" + n + _e.repeat("0", r - t.length) + t;
|
|
3500
3491
|
}
|
|
3501
|
-
var
|
|
3502
|
-
function
|
|
3503
|
-
this.schema = e.schema || wr, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = _e.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
3492
|
+
var Nc = 1, Rt = 2;
|
|
3493
|
+
function zc(e) {
|
|
3494
|
+
this.schema = e.schema || wr, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = _e.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = jc(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Rt : Nc, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
3504
3495
|
}
|
|
3505
3496
|
function Wn(e, t) {
|
|
3506
3497
|
for (var n = _e.repeat(" ", t), r = 0, o = -1, l = "", i, u = e.length; r < u; )
|
|
@@ -3513,7 +3504,7 @@ function yn(e, t) {
|
|
|
3513
3504
|
return `
|
|
3514
3505
|
` + _e.repeat(" ", e.indent * t);
|
|
3515
3506
|
}
|
|
3516
|
-
function
|
|
3507
|
+
function Pc(e, t) {
|
|
3517
3508
|
var n, r, o;
|
|
3518
3509
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
3519
3510
|
if (o = e.implicitTypes[n], o.resolve(t))
|
|
@@ -3521,13 +3512,13 @@ function Dc(e, t) {
|
|
|
3521
3512
|
return !1;
|
|
3522
3513
|
}
|
|
3523
3514
|
function Xt(e) {
|
|
3524
|
-
return e ===
|
|
3515
|
+
return e === yc || e === gc;
|
|
3525
3516
|
}
|
|
3526
3517
|
function Dt(e) {
|
|
3527
3518
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Fn || 65536 <= e && e <= 1114111;
|
|
3528
3519
|
}
|
|
3529
3520
|
function Kn(e) {
|
|
3530
|
-
return Dt(e) && e !== Fn && e !==
|
|
3521
|
+
return Dt(e) && e !== Fn && e !== hc && e !== Pt;
|
|
3531
3522
|
}
|
|
3532
3523
|
function Gn(e, t, n) {
|
|
3533
3524
|
var r = Kn(e), o = r && !Xt(e);
|
|
@@ -3536,26 +3527,26 @@ function Gn(e, t, n) {
|
|
|
3536
3527
|
(n ? (
|
|
3537
3528
|
// c = flow-in
|
|
3538
3529
|
r
|
|
3539
|
-
) : r && e !==
|
|
3530
|
+
) : r && e !== Mr && e !== Tr && e !== jr && e !== Or && e !== Nr) && e !== hn && !(t === Gt && !o) || Kn(t) && !Xt(t) && e === hn || t === Gt && o
|
|
3540
3531
|
);
|
|
3541
3532
|
}
|
|
3542
|
-
function
|
|
3543
|
-
return Dt(e) && e !== Fn && !Xt(e) && e !==
|
|
3533
|
+
function Rc(e) {
|
|
3534
|
+
return Dt(e) && e !== Fn && !Xt(e) && e !== Cc && e !== Sc && e !== Gt && e !== Mr && e !== Tr && e !== jr && e !== Or && e !== Nr && e !== hn && e !== wc && e !== $c && e !== xc && e !== Ic && e !== Ac && e !== Lc && e !== kc && e !== bc && e !== _c && e !== Ec && e !== Fc;
|
|
3544
3535
|
}
|
|
3545
|
-
function
|
|
3536
|
+
function Dc(e) {
|
|
3546
3537
|
return !Xt(e) && e !== Gt;
|
|
3547
3538
|
}
|
|
3548
3539
|
function jt(e, t) {
|
|
3549
3540
|
var n = e.charCodeAt(t), r;
|
|
3550
3541
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
3551
3542
|
}
|
|
3552
|
-
function
|
|
3543
|
+
function zr(e) {
|
|
3553
3544
|
var t = /^\n* /;
|
|
3554
3545
|
return t.test(e);
|
|
3555
3546
|
}
|
|
3556
|
-
var
|
|
3557
|
-
function
|
|
3558
|
-
var f, d = 0, h = null, a = !1, p = !1, x = r !== -1, c = -1, m =
|
|
3547
|
+
var Pr = 1, xn = 2, Rr = 3, Dr = 4, _t = 5;
|
|
3548
|
+
function Bc(e, t, n, r, o, l, i, u) {
|
|
3549
|
+
var f, d = 0, h = null, a = !1, p = !1, x = r !== -1, c = -1, m = Rc(jt(e, 0)) && Dc(jt(e, e.length - 1));
|
|
3559
3550
|
if (t || i)
|
|
3560
3551
|
for (f = 0; f < e.length; d >= 65536 ? f += 2 : f++) {
|
|
3561
3552
|
if (d = jt(e, f), !Dt(d))
|
|
@@ -3573,19 +3564,19 @@ function Uc(e, t, n, r, o, l, i, u) {
|
|
|
3573
3564
|
}
|
|
3574
3565
|
p = p || x && f - c - 1 > r && e[c + 1] !== " ";
|
|
3575
3566
|
}
|
|
3576
|
-
return !a && !p ? m && !i && !o(e) ?
|
|
3567
|
+
return !a && !p ? m && !i && !o(e) ? Pr : l === Rt ? _t : xn : n > 9 && zr(e) ? _t : i ? l === Rt ? _t : xn : p ? Dr : Rr;
|
|
3577
3568
|
}
|
|
3578
|
-
function
|
|
3569
|
+
function Vc(e, t, n, r, o) {
|
|
3579
3570
|
e.dump = (function() {
|
|
3580
3571
|
if (t.length === 0)
|
|
3581
3572
|
return e.quotingType === Rt ? '""' : "''";
|
|
3582
|
-
if (!e.noCompatMode && (
|
|
3573
|
+
if (!e.noCompatMode && (Mc.indexOf(t) !== -1 || Tc.test(t)))
|
|
3583
3574
|
return e.quotingType === Rt ? '"' + t + '"' : "'" + t + "'";
|
|
3584
3575
|
var l = e.indent * Math.max(1, n), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - l), u = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
3585
3576
|
function f(d) {
|
|
3586
|
-
return
|
|
3577
|
+
return Pc(e, d);
|
|
3587
3578
|
}
|
|
3588
|
-
switch (
|
|
3579
|
+
switch (Bc(
|
|
3589
3580
|
t,
|
|
3590
3581
|
u,
|
|
3591
3582
|
e.indent,
|
|
@@ -3595,23 +3586,23 @@ function qc(e, t, n, r, o) {
|
|
|
3595
3586
|
e.forceQuotes && !r,
|
|
3596
3587
|
o
|
|
3597
3588
|
)) {
|
|
3598
|
-
case
|
|
3589
|
+
case Pr:
|
|
3599
3590
|
return t;
|
|
3600
3591
|
case xn:
|
|
3601
3592
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
3602
|
-
case
|
|
3593
|
+
case Rr:
|
|
3603
3594
|
return "|" + Xn(t, e.indent) + Qn(Wn(t, l));
|
|
3604
|
-
case
|
|
3605
|
-
return ">" + Xn(t, e.indent) + Qn(Wn(
|
|
3595
|
+
case Dr:
|
|
3596
|
+
return ">" + Xn(t, e.indent) + Qn(Wn(Uc(t, i), l));
|
|
3606
3597
|
case _t:
|
|
3607
|
-
return '"' +
|
|
3598
|
+
return '"' + qc(t) + '"';
|
|
3608
3599
|
default:
|
|
3609
3600
|
throw new ze("impossible error: invalid scalar style");
|
|
3610
3601
|
}
|
|
3611
3602
|
})();
|
|
3612
3603
|
}
|
|
3613
3604
|
function Xn(e, t) {
|
|
3614
|
-
var n =
|
|
3605
|
+
var n = zr(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
3615
3606
|
`, o = r && (e[e.length - 2] === `
|
|
3616
3607
|
` || e === `
|
|
3617
3608
|
`), l = o ? "+" : r ? "" : "-";
|
|
@@ -3622,7 +3613,7 @@ function Qn(e) {
|
|
|
3622
3613
|
return e[e.length - 1] === `
|
|
3623
3614
|
` ? e.slice(0, -1) : e;
|
|
3624
3615
|
}
|
|
3625
|
-
function
|
|
3616
|
+
function Uc(e, t) {
|
|
3626
3617
|
for (var n = /(\n+)([^\n]*)/g, r = (function() {
|
|
3627
3618
|
var d = e.indexOf(`
|
|
3628
3619
|
`);
|
|
@@ -3644,12 +3635,12 @@ function Jn(e, t) {
|
|
|
3644
3635
|
`, e.length - o > t && i > o ? f += e.slice(o, i) + `
|
|
3645
3636
|
` + e.slice(i + 1) : f += e.slice(o), f.slice(1);
|
|
3646
3637
|
}
|
|
3647
|
-
function
|
|
3638
|
+
function qc(e) {
|
|
3648
3639
|
for (var t = "", n = 0, r, o = 0; o < e.length; n >= 65536 ? o += 2 : o++)
|
|
3649
|
-
n = jt(e, o), r = Ie[n], !r && Dt(n) ? (t += e[o], n >= 65536 && (t += e[o + 1])) : t += r ||
|
|
3640
|
+
n = jt(e, o), r = Ie[n], !r && Dt(n) ? (t += e[o], n >= 65536 && (t += e[o + 1])) : t += r || Oc(n);
|
|
3650
3641
|
return t;
|
|
3651
3642
|
}
|
|
3652
|
-
function
|
|
3643
|
+
function Hc(e, t, n) {
|
|
3653
3644
|
var r = "", o = e.tag, l, i, u;
|
|
3654
3645
|
for (l = 0, i = n.length; l < i; l += 1)
|
|
3655
3646
|
u = n[l], e.replacer && (u = e.replacer.call(n, String(l), u)), (ot(e, t, u, !1, !1) || typeof u > "u" && ot(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -3661,13 +3652,13 @@ function er(e, t, n, r) {
|
|
|
3661
3652
|
f = n[i], e.replacer && (f = e.replacer.call(n, String(i), f)), (ot(e, t + 1, f, !0, !0, !1, !0) || typeof f > "u" && ot(e, t + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += yn(e, t)), e.dump && Pt === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
3662
3653
|
e.tag = l, e.dump = o || "[]";
|
|
3663
3654
|
}
|
|
3664
|
-
function
|
|
3655
|
+
function Yc(e, t, n) {
|
|
3665
3656
|
var r = "", o = e.tag, l = Object.keys(n), i, u, f, d, h;
|
|
3666
3657
|
for (i = 0, u = l.length; i < u; i += 1)
|
|
3667
3658
|
h = "", r !== "" && (h += ", "), e.condenseFlow && (h += '"'), f = l[i], d = n[f], e.replacer && (d = e.replacer.call(n, f, d)), ot(e, t, f, !1, !1) && (e.dump.length > 1024 && (h += "? "), h += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ot(e, t, d, !1, !1) && (h += e.dump, r += h));
|
|
3668
3659
|
e.tag = o, e.dump = "{" + r + "}";
|
|
3669
3660
|
}
|
|
3670
|
-
function
|
|
3661
|
+
function Zc(e, t, n, r) {
|
|
3671
3662
|
var o = "", l = e.tag, i = Object.keys(n), u, f, d, h, a, p;
|
|
3672
3663
|
if (e.sortKeys === !0)
|
|
3673
3664
|
i.sort();
|
|
@@ -3684,9 +3675,9 @@ function tr(e, t, n) {
|
|
|
3684
3675
|
for (o = n ? e.explicitTypes : e.implicitTypes, l = 0, i = o.length; l < i; l += 1)
|
|
3685
3676
|
if (u = o[l], (u.instanceOf || u.predicate) && (!u.instanceOf || typeof t == "object" && t instanceof u.instanceOf) && (!u.predicate || u.predicate(t))) {
|
|
3686
3677
|
if (n ? u.multi && u.representName ? e.tag = u.representName(t) : e.tag = u.tag : e.tag = "?", u.represent) {
|
|
3687
|
-
if (f = e.styleMap[u.tag] || u.defaultStyle,
|
|
3678
|
+
if (f = e.styleMap[u.tag] || u.defaultStyle, Fr.call(u.represent) === "[object Function]")
|
|
3688
3679
|
r = u.represent(t, f);
|
|
3689
|
-
else if (
|
|
3680
|
+
else if (Ir.call(u.represent, f))
|
|
3690
3681
|
r = u.represent[f](t, f);
|
|
3691
3682
|
else
|
|
3692
3683
|
throw new ze("!<" + u.tag + '> tag resolver accepts not "' + f + '" style');
|
|
@@ -3698,18 +3689,18 @@ function tr(e, t, n) {
|
|
|
3698
3689
|
}
|
|
3699
3690
|
function ot(e, t, n, r, o, l, i) {
|
|
3700
3691
|
e.tag = null, e.dump = n, tr(e, n, !1) || tr(e, n, !0);
|
|
3701
|
-
var u =
|
|
3692
|
+
var u = Fr.call(e.dump), f = r, d;
|
|
3702
3693
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
3703
3694
|
var h = u === "[object Object]" || u === "[object Array]", a, p;
|
|
3704
3695
|
if (h && (a = e.duplicates.indexOf(n), p = a !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (o = !1), p && e.usedDuplicates[a])
|
|
3705
3696
|
e.dump = "*ref_" + a;
|
|
3706
3697
|
else {
|
|
3707
3698
|
if (h && p && !e.usedDuplicates[a] && (e.usedDuplicates[a] = !0), u === "[object Object]")
|
|
3708
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
3699
|
+
r && Object.keys(e.dump).length !== 0 ? (Zc(e, t, e.dump, o), p && (e.dump = "&ref_" + a + e.dump)) : (Yc(e, t, e.dump), p && (e.dump = "&ref_" + a + " " + e.dump));
|
|
3709
3700
|
else if (u === "[object Array]")
|
|
3710
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && t > 0 ? er(e, t - 1, e.dump, o) : er(e, t, e.dump, o), p && (e.dump = "&ref_" + a + e.dump)) : (
|
|
3701
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && t > 0 ? er(e, t - 1, e.dump, o) : er(e, t, e.dump, o), p && (e.dump = "&ref_" + a + e.dump)) : (Hc(e, t, e.dump), p && (e.dump = "&ref_" + a + " " + e.dump));
|
|
3711
3702
|
else if (u === "[object String]")
|
|
3712
|
-
e.tag !== "?" &&
|
|
3703
|
+
e.tag !== "?" && Vc(e, e.dump, t, l, f);
|
|
3713
3704
|
else {
|
|
3714
3705
|
if (u === "[object Undefined]")
|
|
3715
3706
|
return !1;
|
|
@@ -3722,7 +3713,7 @@ function ot(e, t, n, r, o, l, i) {
|
|
|
3722
3713
|
}
|
|
3723
3714
|
return !0;
|
|
3724
3715
|
}
|
|
3725
|
-
function
|
|
3716
|
+
function Wc(e, t) {
|
|
3726
3717
|
var n = [], r = [], o, l;
|
|
3727
3718
|
for (bn(e, n, r), o = 0, l = r.length; o < l; o += 1)
|
|
3728
3719
|
t.duplicates.push(n[r[o]]);
|
|
@@ -3740,18 +3731,18 @@ function bn(e, t, n) {
|
|
|
3740
3731
|
for (r = Object.keys(e), o = 0, l = r.length; o < l; o += 1)
|
|
3741
3732
|
bn(e[r[o]], t, n);
|
|
3742
3733
|
}
|
|
3743
|
-
function
|
|
3734
|
+
function Kc(e, t) {
|
|
3744
3735
|
t = t || {};
|
|
3745
|
-
var n = new
|
|
3746
|
-
n.noRefs ||
|
|
3736
|
+
var n = new zc(t);
|
|
3737
|
+
n.noRefs || Wc(e, n);
|
|
3747
3738
|
var r = e;
|
|
3748
3739
|
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), ot(n, 0, r, !0, !0) ? n.dump + `
|
|
3749
3740
|
` : "";
|
|
3750
3741
|
}
|
|
3751
|
-
var
|
|
3752
|
-
dump:
|
|
3753
|
-
},
|
|
3754
|
-
const
|
|
3742
|
+
var Gc = Kc, Xc = {
|
|
3743
|
+
dump: Gc
|
|
3744
|
+
}, Qc = mc.load, nr = Xc.dump;
|
|
3745
|
+
const Jc = { class: "flex flex-col flex-1 overflow-hidden" }, ed = { class: "flex justify-end gap-2" }, td = { class: "w-min-20 gap-2 whitespace-nowrap rounded-md font-medium ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-primary hover:bg-primary/90 px-4 py-2 h-9 text-xs bg-gradient-to-r from-sky-400 to-blue-400 hover:from-sky-500 hover:to-blue-500 text-white shadow-sm transition-all duration-300 hover:shadow-md hover:scale-[1.02] relative overflow-hidden" }, nd = ["href"], rd = { class: "flex flex-col flex-1 overflow-hidden" }, od = { class: "bg-white rounded-xl border border-gray-200 shadow-sm overflow-hidden mt-3 flex flex-col flex-1" }, ld = { class: "relative bg-gradient-to-br from-slate-50 to-white flex-1" }, id = /* @__PURE__ */ ue({
|
|
3755
3746
|
__name: "vs-tab-style",
|
|
3756
3747
|
props: {
|
|
3757
3748
|
token: {},
|
|
@@ -3774,7 +3765,7 @@ const td = { class: "flex flex-col flex-1 overflow-hidden" }, nd = { class: "fle
|
|
|
3774
3765
|
), G(o, async (f) => {
|
|
3775
3766
|
var d, h;
|
|
3776
3767
|
try {
|
|
3777
|
-
const a = f ?
|
|
3768
|
+
const a = f ? Qc(f) : null;
|
|
3778
3769
|
if ((d = a == null ? void 0 : a.colorAttr) != null && d.length && ((h = n.styleYaml) == null ? void 0 : h.colorAttr) !== a.colorAttr) {
|
|
3779
3770
|
const p = await l(a.colorAttr);
|
|
3780
3771
|
a.colors = p.reduce(
|
|
@@ -3813,13 +3804,13 @@ const td = { class: "flex flex-col flex-1 overflow-hidden" }, nd = { class: "fle
|
|
|
3813
3804
|
Ee({ type: "error", title: "Помилка", message: "Не вдалося зберегти стилі" }), console.log(f);
|
|
3814
3805
|
}
|
|
3815
3806
|
};
|
|
3816
|
-
return (f, d) => (v(), y("div",
|
|
3817
|
-
s("div",
|
|
3818
|
-
s("button",
|
|
3807
|
+
return (f, d) => (v(), y("div", Jc, [
|
|
3808
|
+
s("div", ed, [
|
|
3809
|
+
s("button", td, [
|
|
3819
3810
|
s("a", {
|
|
3820
3811
|
target: "_blank",
|
|
3821
3812
|
href: "/api/gis-service/" + n.token + "/col"
|
|
3822
|
-
}, "Атрибути", 8,
|
|
3813
|
+
}, "Атрибути", 8, nd)
|
|
3823
3814
|
]),
|
|
3824
3815
|
s("button", {
|
|
3825
3816
|
onClick: u,
|
|
@@ -3844,12 +3835,12 @@ const td = { class: "flex flex-col flex-1 overflow-hidden" }, nd = { class: "fle
|
|
|
3844
3835
|
fe(" Зберегти стилі ", -1)
|
|
3845
3836
|
])])
|
|
3846
3837
|
]),
|
|
3847
|
-
s("div",
|
|
3848
|
-
s("div",
|
|
3838
|
+
s("div", rd, [
|
|
3839
|
+
s("div", od, [
|
|
3849
3840
|
d[2] || (d[2] = s("div", { class: "bg-gradient-to-r from-gray-50 to-gray-100 px-4 py-2 border-b border-gray-200 flex items-center justify-between" }, [
|
|
3850
3841
|
s("div", { class: "text-xs text-gray-400" }, "YAML")
|
|
3851
3842
|
], -1)),
|
|
3852
|
-
s("div",
|
|
3843
|
+
s("div", ld, [
|
|
3853
3844
|
ae(hr, {
|
|
3854
3845
|
modelValue: o.value,
|
|
3855
3846
|
"onUpdate:modelValue": d[0] || (d[0] = (h) => o.value = h),
|
|
@@ -3861,8 +3852,8 @@ const td = { class: "flex flex-col flex-1 overflow-hidden" }, nd = { class: "fle
|
|
|
3861
3852
|
])
|
|
3862
3853
|
]));
|
|
3863
3854
|
}
|
|
3864
|
-
}),
|
|
3865
|
-
function
|
|
3855
|
+
}), Br = Symbol("MapContext");
|
|
3856
|
+
function sd(e) {
|
|
3866
3857
|
const t = pr(null), n = z(!1);
|
|
3867
3858
|
let r = !1;
|
|
3868
3859
|
const o = [], l = () => {
|
|
@@ -3944,7 +3935,7 @@ function ud(e) {
|
|
|
3944
3935
|
return (p = t.value) == null ? void 0 : p.unproject(a);
|
|
3945
3936
|
}
|
|
3946
3937
|
};
|
|
3947
|
-
return
|
|
3938
|
+
return ro(Br, h), h;
|
|
3948
3939
|
}
|
|
3949
3940
|
function Re(e) {
|
|
3950
3941
|
if (e) return {
|
|
@@ -3952,7 +3943,7 @@ function Re(e) {
|
|
|
3952
3943
|
flyTo: e.value.flyTo,
|
|
3953
3944
|
fitBounds: e.value.fitBounds
|
|
3954
3945
|
};
|
|
3955
|
-
const t =
|
|
3946
|
+
const t = oo(Br);
|
|
3956
3947
|
if (!t) throw new Error("useMap() called outside of a Map provider");
|
|
3957
3948
|
return t;
|
|
3958
3949
|
}
|
|
@@ -3970,7 +3961,7 @@ function In(e) {
|
|
|
3970
3961
|
}
|
|
3971
3962
|
return null;
|
|
3972
3963
|
}
|
|
3973
|
-
function
|
|
3964
|
+
function ad(e) {
|
|
3974
3965
|
if (!e.icon || !e.colors) return null;
|
|
3975
3966
|
const t = [], n = e.icon.split("+")[0];
|
|
3976
3967
|
return Object.values(e.colors).forEach((r) => {
|
|
@@ -3989,7 +3980,7 @@ function cd(e) {
|
|
|
3989
3980
|
function Tt(e, t) {
|
|
3990
3981
|
t && (Array.isArray(t) ? e.push(...t) : e.push(t));
|
|
3991
3982
|
}
|
|
3992
|
-
function
|
|
3983
|
+
function ud(e, t) {
|
|
3993
3984
|
var a;
|
|
3994
3985
|
const n = (e == null ? void 0 : e.clusterZoom) ?? (e == null ? void 0 : e.pointZoom) ?? (e == null ? void 0 : e.iconZoom) ?? 12, r = Number(n);
|
|
3995
3986
|
if (!Number.isFinite(r)) return null;
|
|
@@ -4062,10 +4053,10 @@ function rr(e, t) {
|
|
|
4062
4053
|
"circle-stroke-width": e.width || 1,
|
|
4063
4054
|
"circle-radius": e.radius || 5
|
|
4064
4055
|
}
|
|
4065
|
-
}, o =
|
|
4056
|
+
}, o = ud(e, r);
|
|
4066
4057
|
return o || r;
|
|
4067
4058
|
}
|
|
4068
|
-
function
|
|
4059
|
+
function cd(e) {
|
|
4069
4060
|
const t = In(e);
|
|
4070
4061
|
return {
|
|
4071
4062
|
type: "fill",
|
|
@@ -4077,7 +4068,7 @@ function fd(e) {
|
|
|
4077
4068
|
}
|
|
4078
4069
|
};
|
|
4079
4070
|
}
|
|
4080
|
-
function
|
|
4071
|
+
function dd(e) {
|
|
4081
4072
|
return {
|
|
4082
4073
|
type: "line",
|
|
4083
4074
|
paint: {
|
|
@@ -4087,8 +4078,8 @@ function pd(e) {
|
|
|
4087
4078
|
}
|
|
4088
4079
|
};
|
|
4089
4080
|
}
|
|
4090
|
-
function
|
|
4091
|
-
const t =
|
|
4081
|
+
function fd(e) {
|
|
4082
|
+
const t = ad(e);
|
|
4092
4083
|
return {
|
|
4093
4084
|
type: "symbol",
|
|
4094
4085
|
minzoom: e.iconZoom || 0,
|
|
@@ -4103,9 +4094,9 @@ function vd(e) {
|
|
|
4103
4094
|
function or(e) {
|
|
4104
4095
|
if (!e) return [];
|
|
4105
4096
|
const t = [];
|
|
4106
|
-
return e.icon && Tt(t,
|
|
4097
|
+
return e.icon && Tt(t, fd(e)), e.pointZoom && Tt(t, rr(e, e.pointZoom)), e.type === "polygon" ? Tt(t, cd(e)) : e.type === "line" ? Tt(t, dd(e)) : Tt(t, rr(e)), t.filter(Boolean);
|
|
4107
4098
|
}
|
|
4108
|
-
function
|
|
4099
|
+
function pd(e) {
|
|
4109
4100
|
return {
|
|
4110
4101
|
type: "geojson",
|
|
4111
4102
|
data: {
|
|
@@ -4139,7 +4130,7 @@ function me(e, t, n) {
|
|
|
4139
4130
|
if (!e) return dn;
|
|
4140
4131
|
if (!t) return dn[e];
|
|
4141
4132
|
const { map: r, ready: o = () => Promise.resolve() } = Re(n), l = e || ((O = t.layer) == null ? void 0 : O.id), i = t.sourceId ?? e, u = { ...t };
|
|
4142
|
-
u.point && (u.source =
|
|
4133
|
+
u.point && (u.source = pd(u.point)), !u.layer && ((V = u.source) == null ? void 0 : V.type) === "raster" && (u.layer = { id: i, type: "raster", source: i }), u.layer && !u.layer.source && Object.assign(u.layer, { source: i });
|
|
4143
4134
|
let f = !1, d = !1;
|
|
4144
4135
|
const h = () => {
|
|
4145
4136
|
var P, T, _, C;
|
|
@@ -4286,7 +4277,7 @@ function me(e, t, n) {
|
|
|
4286
4277
|
E(), S();
|
|
4287
4278
|
}, ge(D.remove), dn[e] = D, D;
|
|
4288
4279
|
}
|
|
4289
|
-
const
|
|
4280
|
+
const vd = { class: "flex flex-col flex-1 min-h-0" }, md = { class: "flex flex-col flex-1 min-h-0" }, gd = /* @__PURE__ */ ue({
|
|
4290
4281
|
__name: "vs-tab-popup",
|
|
4291
4282
|
props: {
|
|
4292
4283
|
token: {},
|
|
@@ -4343,7 +4334,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4343
4334
|
let c = [];
|
|
4344
4335
|
l.value === "all" ? c = n.fields || [] : l.value === "none" ? c = [] : c = o.value, c.filter((m) => !m.label).forEach((m) => m.label = m.ua), r("save", c);
|
|
4345
4336
|
}
|
|
4346
|
-
return (c, m) => (v(), y("div",
|
|
4337
|
+
return (c, m) => (v(), y("div", vd, [
|
|
4347
4338
|
s("div", { class: "flex justify-between mb-3 gap-2" }, [
|
|
4348
4339
|
s("button", {
|
|
4349
4340
|
onClick: h,
|
|
@@ -4354,7 +4345,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4354
4345
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium bg-gradient-to-r from-sky-400 to-blue-400 hover:from-sky-500 hover:to-blue-500 text-white shadow-sm px-4 py-2 h-9 text-xs transition-all duration-300"
|
|
4355
4346
|
}, " Зберегти попап ")
|
|
4356
4347
|
]),
|
|
4357
|
-
s("div",
|
|
4348
|
+
s("div", md, [
|
|
4358
4349
|
l.value === "list" ? (v(), re(xt, {
|
|
4359
4350
|
key: 0,
|
|
4360
4351
|
modelValue: o.value,
|
|
@@ -4378,7 +4369,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4378
4369
|
}, null, 8, ["visible", "selection", "fields"])
|
|
4379
4370
|
]));
|
|
4380
4371
|
}
|
|
4381
|
-
}),
|
|
4372
|
+
}), hd = { class: "flex flex-col flex-1 min-h-0" }, yd = { class: "flex justify-between mb-3 gap-2" }, xd = { class: "p-4 space-y-4 text-sm" }, bd = { class: "space-y-1" }, _d = { class: "space-y-1" }, wd = { class: "flex items-center gap-3" }, kd = { class: "flex justify-end gap-2 p-4 border-t" }, $d = /* @__PURE__ */ ue({
|
|
4382
4373
|
__name: "vs-tab-legend",
|
|
4383
4374
|
props: {
|
|
4384
4375
|
mapInfo: {},
|
|
@@ -4441,8 +4432,8 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4441
4432
|
function x() {
|
|
4442
4433
|
r("save", o.value);
|
|
4443
4434
|
}
|
|
4444
|
-
return (c, m) => (v(), y("div",
|
|
4445
|
-
s("div",
|
|
4435
|
+
return (c, m) => (v(), y("div", hd, [
|
|
4436
|
+
s("div", yd, [
|
|
4446
4437
|
s("button", {
|
|
4447
4438
|
onClick: m[0] || (m[0] = (g) => l.value = !0),
|
|
4448
4439
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium bg-gradient-to-r from-gray-500 to-gray-400 text-white h-9 px-4 py-2 hover:from-gray-600 hover:to-gray-500"
|
|
@@ -4467,7 +4458,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4467
4458
|
"onUpdate:visible": h
|
|
4468
4459
|
}, {
|
|
4469
4460
|
footer: Te(() => [
|
|
4470
|
-
s("div",
|
|
4461
|
+
s("div", kd, [
|
|
4471
4462
|
s("button", {
|
|
4472
4463
|
type: "button",
|
|
4473
4464
|
class: "px-4 py-2 rounded bg-gray-100 text-gray-700",
|
|
@@ -4481,8 +4472,8 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4481
4472
|
])
|
|
4482
4473
|
]),
|
|
4483
4474
|
default: Te(() => [
|
|
4484
|
-
s("div",
|
|
4485
|
-
s("div",
|
|
4475
|
+
s("div", xd, [
|
|
4476
|
+
s("div", bd, [
|
|
4486
4477
|
m[6] || (m[6] = s("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Назва ", -1)),
|
|
4487
4478
|
Ye(s("input", {
|
|
4488
4479
|
"onUpdate:modelValue": m[2] || (m[2] = (g) => i.value.name = g),
|
|
@@ -4493,9 +4484,9 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4493
4484
|
[$t, i.value.name]
|
|
4494
4485
|
])
|
|
4495
4486
|
]),
|
|
4496
|
-
s("div",
|
|
4487
|
+
s("div", _d, [
|
|
4497
4488
|
m[7] || (m[7] = s("label", { class: "block text-xs font-medium text-gray-500 uppercase tracking-wide" }, " Колір ", -1)),
|
|
4498
|
-
s("div",
|
|
4489
|
+
s("div", wd, [
|
|
4499
4490
|
Ye(s("input", {
|
|
4500
4491
|
"onUpdate:modelValue": m[3] || (m[3] = (g) => i.value.color = g),
|
|
4501
4492
|
type: "color",
|
|
@@ -4519,7 +4510,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4519
4510
|
}, 8, ["visible"])
|
|
4520
4511
|
]));
|
|
4521
4512
|
}
|
|
4522
|
-
}),
|
|
4513
|
+
}), Cd = { class: "space-y-3 bg-gradient-to-br from-sky-50 to-blue-50 p-4 rounded-xl border border-sky-100 shadow-sm" }, Ad = ["onClick"], Ld = ["aria-checked", "value"], Sd = { key: 0 }, Ed = /* @__PURE__ */ ue({
|
|
4523
4514
|
__name: "view-mode-toggle",
|
|
4524
4515
|
props: {
|
|
4525
4516
|
modelValue: {},
|
|
@@ -4533,7 +4524,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4533
4524
|
{ value: "list", label: "List" },
|
|
4534
4525
|
{ value: "none", label: "None" }
|
|
4535
4526
|
];
|
|
4536
|
-
return (i, u) => (v(), y("div",
|
|
4527
|
+
return (i, u) => (v(), y("div", Cd, [
|
|
4537
4528
|
u[1] || (u[1] = s("label", { class: "text-sm font-medium text-gray-600" }, "Режим відображення", -1)),
|
|
4538
4529
|
s("div", {
|
|
4539
4530
|
role: "radiogroup",
|
|
@@ -4553,7 +4544,7 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4553
4544
|
value: f.value,
|
|
4554
4545
|
class: "aspect-square rounded-full border border-primary h-4 w-4 flex items-center justify-center text-sky-500"
|
|
4555
4546
|
}, [
|
|
4556
|
-
e.modelValue === f.value ? (v(), y("span",
|
|
4547
|
+
e.modelValue === f.value ? (v(), y("span", Sd, [...u[0] || (u[0] = [
|
|
4557
4548
|
s("svg", {
|
|
4558
4549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4559
4550
|
viewBox: "0 0 24 24",
|
|
@@ -4571,15 +4562,15 @@ const gd = { class: "flex flex-col flex-1 min-h-0" }, hd = { class: "flex flex-c
|
|
|
4571
4562
|
})
|
|
4572
4563
|
], -1)
|
|
4573
4564
|
])])) : W("", !0)
|
|
4574
|
-
], 8,
|
|
4565
|
+
], 8, Ld),
|
|
4575
4566
|
s("label", {
|
|
4576
4567
|
class: ye(["text-xs font-medium cursor-pointer", e.modelValue === f.value ? "text-gray-700" : "text-gray-600"])
|
|
4577
4568
|
}, q(f.label), 3)
|
|
4578
|
-
], 10,
|
|
4569
|
+
], 10, Ad))), 128))
|
|
4579
4570
|
], 2)
|
|
4580
4571
|
]));
|
|
4581
4572
|
}
|
|
4582
|
-
}),
|
|
4573
|
+
}), Fd = { class: "flex flex-col flex-1 min-h-0" }, Id = { class: "flex flex-col flex-1 min-h-0" }, Md = /* @__PURE__ */ ue({
|
|
4583
4574
|
__name: "vs-tab-card",
|
|
4584
4575
|
props: {
|
|
4585
4576
|
fields: {},
|
|
@@ -4693,7 +4684,7 @@ ${L}` : L;
|
|
|
4693
4684
|
{ value: "none", label: "Жодне" },
|
|
4694
4685
|
{ value: "html", label: "HTML" }
|
|
4695
4686
|
];
|
|
4696
|
-
return (g, F) => (v(), y("div",
|
|
4687
|
+
return (g, F) => (v(), y("div", Fd, [
|
|
4697
4688
|
s("div", { class: "flex justify-between mb-3 gap-2" }, [
|
|
4698
4689
|
s("button", {
|
|
4699
4690
|
onClick: a,
|
|
@@ -4704,12 +4695,12 @@ ${L}` : L;
|
|
|
4704
4695
|
class: "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium bg-gradient-to-r from-sky-400 to-blue-400 hover:from-sky-500 hover:to-blue-500 text-white shadow-sm px-4 py-2 h-9 text-xs transition-all duration-300"
|
|
4705
4696
|
}, " Зберегти ")
|
|
4706
4697
|
]),
|
|
4707
|
-
ae(
|
|
4698
|
+
ae(Ed, {
|
|
4708
4699
|
modelValue: l.value,
|
|
4709
4700
|
"onUpdate:modelValue": F[0] || (F[0] = (w) => l.value = w),
|
|
4710
4701
|
options: m
|
|
4711
4702
|
}, null, 8, ["modelValue"]),
|
|
4712
|
-
s("div",
|
|
4703
|
+
s("div", Id, [
|
|
4713
4704
|
l.value === "list" ? (v(), re(xt, {
|
|
4714
4705
|
key: 0,
|
|
4715
4706
|
modelValue: o.value,
|
|
@@ -4740,7 +4731,7 @@ ${L}` : L;
|
|
|
4740
4731
|
}, null, 8, ["visible", "selection", "fields"])
|
|
4741
4732
|
]));
|
|
4742
4733
|
}
|
|
4743
|
-
}),
|
|
4734
|
+
}), Td = { class: "flex flex-col flex-1 min-h-0" }, jd = /* @__PURE__ */ ue({
|
|
4744
4735
|
__name: "vs-tab-filter",
|
|
4745
4736
|
props: {
|
|
4746
4737
|
fields: {},
|
|
@@ -4805,7 +4796,7 @@ ${L}` : L;
|
|
|
4805
4796
|
let c = [];
|
|
4806
4797
|
l.value === "all" ? c = n.fields || [] : l.value === "none" ? c = [] : c = o.value, r("save", c);
|
|
4807
4798
|
}
|
|
4808
|
-
return (c, m) => (v(), y("div",
|
|
4799
|
+
return (c, m) => (v(), y("div", Td, [
|
|
4809
4800
|
s("div", { class: "flex justify-between mb-3 gap-2" }, [
|
|
4810
4801
|
s("button", {
|
|
4811
4802
|
onClick: h,
|
|
@@ -4838,10 +4829,10 @@ ${L}` : L;
|
|
|
4838
4829
|
}, null, 8, ["visible", "selection", "fields"])
|
|
4839
4830
|
]));
|
|
4840
4831
|
}
|
|
4841
|
-
}),
|
|
4832
|
+
}), Vr = /* @__PURE__ */ ue({
|
|
4842
4833
|
__name: "MapView",
|
|
4843
4834
|
setup(e, { expose: t }) {
|
|
4844
|
-
const n = z(null), r = z(null), o =
|
|
4835
|
+
const n = z(null), r = z(null), o = sd({
|
|
4845
4836
|
container: n,
|
|
4846
4837
|
mapOptions: {
|
|
4847
4838
|
style: {
|
|
@@ -4885,7 +4876,7 @@ ${L}` : L;
|
|
|
4885
4876
|
$n(f.$slots, "default")
|
|
4886
4877
|
], 512));
|
|
4887
4878
|
}
|
|
4888
|
-
}),
|
|
4879
|
+
}), Od = 12, Nd = 12;
|
|
4889
4880
|
function Nt(e) {
|
|
4890
4881
|
if (e == null) return null;
|
|
4891
4882
|
const t = Number(e);
|
|
@@ -4905,11 +4896,11 @@ function ir(e, t, n) {
|
|
|
4905
4896
|
return `${e}${r}${t}=${n}`;
|
|
4906
4897
|
}
|
|
4907
4898
|
function tn(e, t = {}) {
|
|
4908
|
-
const n = t.clusterZoom ??
|
|
4899
|
+
const n = t.clusterZoom ?? Od, r = t.pointZoom ?? Nd;
|
|
4909
4900
|
let o = e;
|
|
4910
4901
|
return o = ir(o, "clusterZoom", n), o = ir(o, "pointZoom", r), o;
|
|
4911
4902
|
}
|
|
4912
|
-
const
|
|
4903
|
+
const zd = /* @__PURE__ */ ue({
|
|
4913
4904
|
__name: "MapDataLayer",
|
|
4914
4905
|
props: {
|
|
4915
4906
|
id: {},
|
|
@@ -4960,10 +4951,10 @@ const Rd = /* @__PURE__ */ ue({
|
|
|
4960
4951
|
}), (m, g) => null;
|
|
4961
4952
|
}
|
|
4962
4953
|
}), Ot = z(null);
|
|
4963
|
-
function
|
|
4954
|
+
function Pd() {
|
|
4964
4955
|
Ot.value = null;
|
|
4965
4956
|
}
|
|
4966
|
-
function
|
|
4957
|
+
function Rd(e) {
|
|
4967
4958
|
const t = z(!1), n = () => typeof e == "string" ? e : e.value;
|
|
4968
4959
|
G(Ot, (i) => {
|
|
4969
4960
|
i !== n() && t.value && (t.value = !1);
|
|
@@ -4984,7 +4975,7 @@ function Bd(e) {
|
|
|
4984
4975
|
toggle: l
|
|
4985
4976
|
};
|
|
4986
4977
|
}
|
|
4987
|
-
const
|
|
4978
|
+
const Dd = { class: "map-filter" }, Bd = { class: "map-filter__header" }, Vd = { class: "map-filter__title" }, Ud = { "aria-hidden": "true" }, fn = "#map-filter-popover-host", qd = /* @__PURE__ */ ue({
|
|
4988
4979
|
__name: "MapFilterPopover",
|
|
4989
4980
|
props: {
|
|
4990
4981
|
count: {},
|
|
@@ -5000,7 +4991,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5000
4991
|
isOpen: l,
|
|
5001
4992
|
close: i,
|
|
5002
4993
|
toggle: u
|
|
5003
|
-
} =
|
|
4994
|
+
} = Rd(o), f = Qe({ top: 0, left: 0, transform: "translateX(-50%)" }), d = z(null), h = z(null);
|
|
5004
4995
|
let a = null;
|
|
5005
4996
|
const p = z({}), x = Qe({
|
|
5006
4997
|
visible: !1,
|
|
@@ -5152,16 +5143,16 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5152
5143
|
onClick: K[1] || (K[1] = Ze(() => {
|
|
5153
5144
|
}, ["stop"]))
|
|
5154
5145
|
}, [
|
|
5155
|
-
s("div",
|
|
5156
|
-
s("div",
|
|
5157
|
-
s("h3",
|
|
5146
|
+
s("div", Dd, [
|
|
5147
|
+
s("div", Bd, [
|
|
5148
|
+
s("h3", Vd, q(F.value || "Фільтр"), 1),
|
|
5158
5149
|
s("button", {
|
|
5159
5150
|
type: "button",
|
|
5160
5151
|
class: "map-filter__close",
|
|
5161
5152
|
onClick: I
|
|
5162
5153
|
}, [
|
|
5163
|
-
s("span",
|
|
5164
|
-
ae(se(
|
|
5154
|
+
s("span", Ud, [
|
|
5155
|
+
ae(se(ho), { class: "h-4 w-4" })
|
|
5165
5156
|
]),
|
|
5166
5157
|
K[3] || (K[3] = s("span", { class: "sr-only" }, "Закрити", -1))
|
|
5167
5158
|
])
|
|
@@ -5189,7 +5180,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5189
5180
|
]))
|
|
5190
5181
|
], 512)) : W("", !0);
|
|
5191
5182
|
}
|
|
5192
|
-
}), nn = /* @__PURE__ */ ce(
|
|
5183
|
+
}), nn = /* @__PURE__ */ ce(qd, [["__scopeId", "data-v-e46ae0d6"]]), Hd = { class: "flex justify-center items-center h-[40px] w-[40px] bg-white text-sm border border-gray-200 text-gray-600 hover:bg-gray-100 rounded-full" }, Yd = /* @__PURE__ */ ue({
|
|
5193
5184
|
__name: "MapFilterWidget",
|
|
5194
5185
|
props: {
|
|
5195
5186
|
filters: {},
|
|
@@ -5198,7 +5189,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5198
5189
|
},
|
|
5199
5190
|
setup(e) {
|
|
5200
5191
|
return (t, n) => (v(), y("div", null, [
|
|
5201
|
-
s("div",
|
|
5192
|
+
s("div", Hd, [
|
|
5202
5193
|
ae(nn, {
|
|
5203
5194
|
layer: {
|
|
5204
5195
|
filters: e.filters,
|
|
@@ -5209,7 +5200,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5209
5200
|
])
|
|
5210
5201
|
]));
|
|
5211
5202
|
}
|
|
5212
|
-
}), _n = /* @__PURE__ */ ce(
|
|
5203
|
+
}), _n = /* @__PURE__ */ ce(Yd, [["__scopeId", "data-v-5db0f90a"]]), Zd = { class: "flex flex-row gap-x-3 z-10 relative widget" }, Wd = ["onClick"], Kd = ["src", "alt"], wn = /* @__PURE__ */ ue({
|
|
5213
5204
|
__name: "BaseMaps",
|
|
5214
5205
|
setup(e) {
|
|
5215
5206
|
const t = {
|
|
@@ -5233,7 +5224,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5233
5224
|
if (n.value = l, !t[l].url) return r.setVisible(!1);
|
|
5234
5225
|
r.setVisible(!0), r.setTiles([t[l].url]);
|
|
5235
5226
|
}
|
|
5236
|
-
return (l, i) => (v(), y("div",
|
|
5227
|
+
return (l, i) => (v(), y("div", Zd, [
|
|
5237
5228
|
(v(), y(Z, null, oe(t, (u, f) => s("div", {
|
|
5238
5229
|
key: f,
|
|
5239
5230
|
onClick: (d) => o(f)
|
|
@@ -5246,16 +5237,16 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5246
5237
|
src: u.preview,
|
|
5247
5238
|
alt: u.title,
|
|
5248
5239
|
class: "object-cover rounded-lg w-12 h-12"
|
|
5249
|
-
}, null, 8,
|
|
5240
|
+
}, null, 8, Kd)) : W("", !0)
|
|
5250
5241
|
], 2)
|
|
5251
|
-
], 8,
|
|
5242
|
+
], 8, Wd)), 64))
|
|
5252
5243
|
]));
|
|
5253
5244
|
}
|
|
5254
|
-
}),
|
|
5245
|
+
}), Gd = {
|
|
5255
5246
|
key: 0,
|
|
5256
5247
|
class: "legend-widget flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget",
|
|
5257
5248
|
style: { width: "100%" }
|
|
5258
|
-
},
|
|
5249
|
+
}, Xd = { class: "flex flex-col gap-1 p-5" }, Qd = { class: "flex items-center justify-between w-full text-sm text-gray-800 ml-2" }, kn = /* @__PURE__ */ ue({
|
|
5259
5250
|
__name: "MapLegendWidget",
|
|
5260
5251
|
props: {
|
|
5261
5252
|
items: {}
|
|
@@ -5313,8 +5304,8 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5313
5304
|
(t.items === void 0 || t.items === null) && (await r(), d(), f());
|
|
5314
5305
|
}), ge(() => {
|
|
5315
5306
|
l == null || l(), l = null;
|
|
5316
|
-
}), (h, a) => o.value.length ? (v(), y("div",
|
|
5317
|
-
s("div",
|
|
5307
|
+
}), (h, a) => o.value.length ? (v(), y("div", Gd, [
|
|
5308
|
+
s("div", Xd, [
|
|
5318
5309
|
(v(!0), y(Z, null, oe(o.value, (p) => (v(), y("div", {
|
|
5319
5310
|
key: p.id,
|
|
5320
5311
|
class: "flex items-center"
|
|
@@ -5323,7 +5314,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5323
5314
|
class: "shrink-0 size-2.5 inline-block me-2.5 h-[10px] w-[10px] rounded-full",
|
|
5324
5315
|
style: Ve({ background: p.color })
|
|
5325
5316
|
}, null, 4),
|
|
5326
|
-
s("span",
|
|
5317
|
+
s("span", Qd, [
|
|
5327
5318
|
s("span", null, q(p.label), 1)
|
|
5328
5319
|
])
|
|
5329
5320
|
]))), 128))
|
|
@@ -5331,7 +5322,7 @@ const Vd = { class: "map-filter" }, Ud = { class: "map-filter__header" }, qd = {
|
|
|
5331
5322
|
])) : W("", !0);
|
|
5332
5323
|
}
|
|
5333
5324
|
});
|
|
5334
|
-
function
|
|
5325
|
+
function Jd() {
|
|
5335
5326
|
const { map: e, ready: t } = Re(), n = z(null), r = z(null), o = z(null), l = z(null);
|
|
5336
5327
|
let i = [];
|
|
5337
5328
|
function u() {
|
|
@@ -5364,10 +5355,10 @@ function tf() {
|
|
|
5364
5355
|
title: o
|
|
5365
5356
|
};
|
|
5366
5357
|
}
|
|
5367
|
-
const
|
|
5358
|
+
const ef = { class: "min-w-[200px] max-w-[280px] rounded-lg border border-slate-200 bg-white/90 p-3 text-xs shadow-lg backdrop-blur" }, tf = { class: "space-y-1.5" }, nf = { class: "font-bold text-slate-700" }, rf = { class: "text-slate-700" }, Ur = /* @__PURE__ */ ue({
|
|
5368
5359
|
__name: "MapPopup",
|
|
5369
5360
|
setup(e) {
|
|
5370
|
-
const { popupCoords: t, popupFields: n, popupValues: r, disable: o } =
|
|
5361
|
+
const { popupCoords: t, popupFields: n, popupValues: r, disable: o } = Jd(), l = z(null), i = z({ left: "-9999px", top: "-9999px" }), u = R(() => {
|
|
5371
5362
|
const p = n.value || [], x = r.value || {};
|
|
5372
5363
|
return p.filter((c) => (c == null ? void 0 : c.meta) !== "title").map((c, m) => h(c, x, m)).filter((c) => c.label);
|
|
5373
5364
|
}), f = R(() => {
|
|
@@ -5411,21 +5402,21 @@ const nf = { class: "min-w-[200px] max-w-[280px] rounded-lg border border-slate-
|
|
|
5411
5402
|
class: "absolute pointer-events-none z-20",
|
|
5412
5403
|
style: Ve(i.value)
|
|
5413
5404
|
}, [
|
|
5414
|
-
s("div",
|
|
5415
|
-
s("div",
|
|
5405
|
+
s("div", ef, [
|
|
5406
|
+
s("div", tf, [
|
|
5416
5407
|
(v(!0), y(Z, null, oe(d.value, (c) => (v(), y("div", {
|
|
5417
5408
|
key: c.key,
|
|
5418
5409
|
class: "flex flex-col"
|
|
5419
5410
|
}, [
|
|
5420
|
-
s("span",
|
|
5421
|
-
s("span",
|
|
5411
|
+
s("span", nf, q(c.label), 1),
|
|
5412
|
+
s("span", rf, q(c.value ?? "—"), 1)
|
|
5422
5413
|
]))), 128))
|
|
5423
5414
|
])
|
|
5424
5415
|
])
|
|
5425
5416
|
], 4)) : W("", !0);
|
|
5426
5417
|
}
|
|
5427
5418
|
});
|
|
5428
|
-
function
|
|
5419
|
+
function of() {
|
|
5429
5420
|
const { map: e, ready: t } = Re(), n = Lt(), r = St(), o = z(null), l = z(null), i = z(null), u = z(!1), f = z([]), d = z(0), h = R(() => f.value.length), a = R(() => u.value || !!o.value || !!i.value);
|
|
5430
5421
|
let p = null, x = !1;
|
|
5431
5422
|
function c() {
|
|
@@ -5572,7 +5563,7 @@ function sf() {
|
|
|
5572
5563
|
index: d
|
|
5573
5564
|
};
|
|
5574
5565
|
}
|
|
5575
|
-
function
|
|
5566
|
+
function lf() {
|
|
5576
5567
|
const { map: e, ready: t } = Re(), n = z([]), r = z(0), o = z(0), l = z(!1), i = z(null), u = z({}), f = z(null), d = z([]), h = R(() => n.value[o.value] || null), a = R(() => n.value.length > 0);
|
|
5577
5568
|
let p = null;
|
|
5578
5569
|
const x = () => {
|
|
@@ -5692,7 +5683,7 @@ function af() {
|
|
|
5692
5683
|
close: b
|
|
5693
5684
|
};
|
|
5694
5685
|
}
|
|
5695
|
-
const
|
|
5686
|
+
const sf = /* @__PURE__ */ ue({
|
|
5696
5687
|
__name: "LayerSwitcher",
|
|
5697
5688
|
props: {
|
|
5698
5689
|
title: {},
|
|
@@ -5734,7 +5725,7 @@ const uf = /* @__PURE__ */ ue({
|
|
|
5734
5725
|
]));
|
|
5735
5726
|
}
|
|
5736
5727
|
}), He = z([]);
|
|
5737
|
-
function
|
|
5728
|
+
function af(e, t) {
|
|
5738
5729
|
return typeof e != "string" ? "" : e.includes("{{") ? e.replace(/\{\{\s*([a-zA-Z0-9_]+)\s*}}/g, (n, r) => {
|
|
5739
5730
|
const o = String(r || "").trim();
|
|
5740
5731
|
if (!o) return "";
|
|
@@ -5749,10 +5740,10 @@ function vn(e) {
|
|
|
5749
5740
|
var t, n;
|
|
5750
5741
|
(n = (t = e == null ? void 0 : e.handle) == null ? void 0 : t.remove) == null || n.call(t);
|
|
5751
5742
|
}
|
|
5752
|
-
function
|
|
5743
|
+
function uf(e) {
|
|
5753
5744
|
return e ? typeof (e == null ? void 0 : e.value) < "u" ? e.value : e : null;
|
|
5754
5745
|
}
|
|
5755
|
-
function
|
|
5746
|
+
function cf(e) {
|
|
5756
5747
|
var n;
|
|
5757
5748
|
if (!(e != null && e.getStyle)) return;
|
|
5758
5749
|
const t = ((n = e.getStyle()) == null ? void 0 : n.layers) || [];
|
|
@@ -5762,21 +5753,21 @@ function ff(e) {
|
|
|
5762
5753
|
return o.id;
|
|
5763
5754
|
}
|
|
5764
5755
|
}
|
|
5765
|
-
function
|
|
5756
|
+
function qr(e) {
|
|
5766
5757
|
function t(l, i = {}, u, f) {
|
|
5767
5758
|
var w, k;
|
|
5768
5759
|
const d = pn(l == null ? void 0 : l.id), h = ((w = l == null ? void 0 : l.title) == null ? void 0 : w.trim()) || d, a = ((k = l == null ? void 0 : l.url) == null ? void 0 : k.trim()) || "";
|
|
5769
5760
|
if (!d || !a) return;
|
|
5770
|
-
const p =
|
|
5761
|
+
const p = af(a, i);
|
|
5771
5762
|
if (!p) return;
|
|
5772
5763
|
const x = f ?? e;
|
|
5773
5764
|
if (!x) return;
|
|
5774
|
-
const c =
|
|
5765
|
+
const c = uf(x);
|
|
5775
5766
|
if (!c) return;
|
|
5776
5767
|
const m = He.value.findIndex((L) => L.id === d);
|
|
5777
5768
|
m !== -1 && (vn(He.value[m]), He.value.splice(m, 1));
|
|
5778
5769
|
let g = null;
|
|
5779
|
-
const F = l.beforeId ??
|
|
5770
|
+
const F = l.beforeId ?? cf(c);
|
|
5780
5771
|
try {
|
|
5781
5772
|
g = me(d, {
|
|
5782
5773
|
source: {
|
|
@@ -5844,50 +5835,50 @@ function Hr(e) {
|
|
|
5844
5835
|
isTemporaryLayerActive: o
|
|
5845
5836
|
};
|
|
5846
5837
|
}
|
|
5847
|
-
const
|
|
5838
|
+
const df = {
|
|
5848
5839
|
key: 0,
|
|
5849
5840
|
class: "card absolute top-4 right-11 z-30 w-[400px] max-h-[80%] overflow-hidden rounded-2xl border border-slate-200 bg-white/95 shadow-2xl backdrop-blur-md flex flex-col"
|
|
5850
|
-
},
|
|
5841
|
+
}, ff = { class: "flex items-start justify-between gap-3 border-b border-slate-200 px-4 py-3" }, pf = { class: "min-w-0 flex-1" }, vf = { class: "text-base font-semibold text-slate-900 truncate" }, mf = {
|
|
5851
5842
|
key: 0,
|
|
5852
5843
|
class: "flex gap-1 mt-1"
|
|
5853
|
-
},
|
|
5844
|
+
}, gf = ["disabled"], hf = ["disabled"], yf = {
|
|
5854
5845
|
key: 1,
|
|
5855
5846
|
class: "flex gap-1 mt-1"
|
|
5856
|
-
},
|
|
5847
|
+
}, xf = ["disabled"], bf = ["disabled"], _f = { class: "flex-1 overflow-y-auto px-4 py-3 space-y-4 text-sm text-slate-700" }, wf = {
|
|
5857
5848
|
key: 0,
|
|
5858
5849
|
class: "text-center text-xs text-slate-500"
|
|
5859
|
-
},
|
|
5850
|
+
}, kf = {
|
|
5860
5851
|
key: 1,
|
|
5861
5852
|
class: "text-center text-xs text-red-500"
|
|
5862
|
-
},
|
|
5853
|
+
}, $f = {
|
|
5863
5854
|
key: 0,
|
|
5864
5855
|
class: "prose prose-sm max-w-none space-y-3 border-slate-200"
|
|
5865
|
-
},
|
|
5856
|
+
}, Cf = ["innerHTML"], Af = ["innerHTML"], Lf = {
|
|
5866
5857
|
key: 1,
|
|
5867
5858
|
class: "space-y-2"
|
|
5868
|
-
},
|
|
5859
|
+
}, Sf = { class: "text-xs font-semibold text-slate-500 uppercase tracking-wide" }, Ef = {
|
|
5869
5860
|
key: 0,
|
|
5870
5861
|
class: "inline-block rounded px-2 py-0.5 text-xs font-semibold text-yellow-800",
|
|
5871
5862
|
style: { "background-color": "rgba(250,204,21,0.25)" }
|
|
5872
|
-
},
|
|
5863
|
+
}, Ff = {
|
|
5873
5864
|
key: 1,
|
|
5874
5865
|
class: "text-sm text-right text-slate-800 whitespace-pre-wrap"
|
|
5875
|
-
},
|
|
5866
|
+
}, If = {
|
|
5876
5867
|
key: 2,
|
|
5877
5868
|
class: "space-y-3 border-t border-slate-200 pt-3"
|
|
5878
|
-
},
|
|
5869
|
+
}, Mf = { class: "space-y-1" }, Tf = { class: "flex items-center cursor-pointer gap-2 flex-1" }, jf = ["checked", "onChange"], Of = { class: "text-[13px] text-gray-600 truncate" }, Nf = {
|
|
5879
5870
|
key: 0,
|
|
5880
5871
|
class: "text-right text-xs text-gray-400 truncate max-w-[40%]"
|
|
5881
|
-
},
|
|
5872
|
+
}, zf = {
|
|
5882
5873
|
key: 3,
|
|
5883
5874
|
class: "text-center text-xs text-slate-400"
|
|
5884
|
-
},
|
|
5875
|
+
}, Pf = "map:temporary-layer-request", Rf = /* @__PURE__ */ ue({
|
|
5885
5876
|
__name: "MapCardWidget",
|
|
5886
5877
|
props: {
|
|
5887
5878
|
mapId: {}
|
|
5888
5879
|
},
|
|
5889
5880
|
setup(e) {
|
|
5890
|
-
const t = e, n =
|
|
5881
|
+
const t = e, n = of(), r = lf(), o = R(() => r.active.value), l = R(() => o.value || n.isOpen.value), i = R(() => o.value ? r.loading.value : n.cardLoading.value), u = R(() => o.value ? r.error.value : n.cardError.value), f = R(() => {
|
|
5891
5882
|
var A, $;
|
|
5892
5883
|
return o.value ? ((A = r.current.value) == null ? void 0 : A.html) || null : (($ = n.card.value) == null ? void 0 : $.html) || null;
|
|
5893
5884
|
}), d = Re(), h = Lt(), {
|
|
@@ -5895,9 +5886,9 @@ const pf = {
|
|
|
5895
5886
|
deactivateTemporaryLayer: p,
|
|
5896
5887
|
clearTemporaryLayers: x,
|
|
5897
5888
|
isTemporaryLayerActive: c
|
|
5898
|
-
} =
|
|
5889
|
+
} = qr(d.map);
|
|
5899
5890
|
function m(A) {
|
|
5900
|
-
window.dispatchEvent(new CustomEvent(
|
|
5891
|
+
window.dispatchEvent(new CustomEvent(Pf, { detail: A }));
|
|
5901
5892
|
}
|
|
5902
5893
|
const g = R(() => {
|
|
5903
5894
|
var A;
|
|
@@ -5977,25 +5968,25 @@ const pf = {
|
|
|
5977
5968
|
$.push({ type: "html", content: $e }), J = Le + $e.length;
|
|
5978
5969
|
continue;
|
|
5979
5970
|
}
|
|
5980
|
-
const Mt = T(qe, ["id"]), rn = T(qe, ["button-text", "buttonText", "show", "show-label", "showLabel"]),
|
|
5971
|
+
const Mt = T(qe, ["id"]), rn = T(qe, ["button-text", "buttonText", "show", "show-label", "showLabel"]), Gr = _(T(qe, ["tile-size", "tileSize"])), Xr = _(T(qe, ["minzoom", "minZoom"])), Qr = _(T(qe, ["maxzoom", "maxZoom"])), Jr = _(T(qe, ["opacity"])), eo = Mt || O(`${Ne}-${it}`) || O(Ne), Tn = ke(eo || `layer-${$.length + 1}`), on = Xe.trim(), jn = /<[^>]+>/.test(on), to = jn ? on : null, ln = jn ? null : on, no = rn && rn.trim().length ? rn.trim() : ln && ln.trim().length ? ln.trim() : void 0;
|
|
5981
5972
|
$.push({
|
|
5982
5973
|
type: "layer",
|
|
5983
5974
|
spec: {
|
|
5984
5975
|
id: Tn,
|
|
5985
5976
|
title: Ne,
|
|
5986
5977
|
url: it,
|
|
5987
|
-
tileSize:
|
|
5988
|
-
minzoom:
|
|
5989
|
-
maxzoom:
|
|
5990
|
-
opacity:
|
|
5978
|
+
tileSize: Gr,
|
|
5979
|
+
minzoom: Xr,
|
|
5980
|
+
maxzoom: Qr,
|
|
5981
|
+
opacity: Jr
|
|
5991
5982
|
},
|
|
5992
5983
|
componentProps: {
|
|
5993
5984
|
title: Ne,
|
|
5994
5985
|
url: it,
|
|
5995
5986
|
id: Tn,
|
|
5996
|
-
buttonText:
|
|
5987
|
+
buttonText: no
|
|
5997
5988
|
},
|
|
5998
|
-
slotText:
|
|
5989
|
+
slotText: to
|
|
5999
5990
|
}), J = Le + $e.length;
|
|
6000
5991
|
}
|
|
6001
5992
|
if (J < A.length) {
|
|
@@ -6248,19 +6239,19 @@ const pf = {
|
|
|
6248
6239
|
$.on("idle", Oe);
|
|
6249
6240
|
}
|
|
6250
6241
|
}
|
|
6251
|
-
function
|
|
6242
|
+
function Wr(A) {
|
|
6252
6243
|
var J, de;
|
|
6253
6244
|
const $ = (A == null ? void 0 : A.source) || ((J = A == null ? void 0 : A.layer) == null ? void 0 : J.id) || "unknown", H = ((de = A == null ? void 0 : A.properties) == null ? void 0 : de.id) ?? (A == null ? void 0 : A.id) ?? "unknown";
|
|
6254
6245
|
return `${$}:${H}`;
|
|
6255
6246
|
}
|
|
6256
|
-
async function
|
|
6247
|
+
async function Kr(A) {
|
|
6257
6248
|
var ve, ke, $e, Oe, Xe;
|
|
6258
6249
|
if (!A) return null;
|
|
6259
6250
|
const $ = pt(A);
|
|
6260
6251
|
if ($) return $;
|
|
6261
6252
|
const H = ((ve = A == null ? void 0 : A.properties) == null ? void 0 : ve.id) ?? (A == null ? void 0 : A.id);
|
|
6262
6253
|
if (!H) return null;
|
|
6263
|
-
const J =
|
|
6254
|
+
const J = Wr(A);
|
|
6264
6255
|
if (b.has(J))
|
|
6265
6256
|
return b.get(J);
|
|
6266
6257
|
const de = [I.value, A == null ? void 0 : A.source, (ke = A == null ? void 0 : A.layer) == null ? void 0 : ke.id].map((Le) => typeof Le == "string" ? Le.trim() : "").filter(Boolean);
|
|
@@ -6284,7 +6275,7 @@ const pf = {
|
|
|
6284
6275
|
Be();
|
|
6285
6276
|
return;
|
|
6286
6277
|
}
|
|
6287
|
-
const H = await
|
|
6278
|
+
const H = await Kr(A);
|
|
6288
6279
|
if ($ === M.value) {
|
|
6289
6280
|
if (!H) {
|
|
6290
6281
|
Be();
|
|
@@ -6312,10 +6303,10 @@ const pf = {
|
|
|
6312
6303
|
Ae(), Be();
|
|
6313
6304
|
}), (A, $) => (v(), re(Cn, { name: "fade" }, {
|
|
6314
6305
|
default: Te(() => [
|
|
6315
|
-
l.value ? (v(), y("div",
|
|
6316
|
-
s("div",
|
|
6317
|
-
s("div",
|
|
6318
|
-
s("p",
|
|
6306
|
+
l.value ? (v(), y("div", df, [
|
|
6307
|
+
s("div", ff, [
|
|
6308
|
+
s("div", pf, [
|
|
6309
|
+
s("p", vf, [
|
|
6319
6310
|
o.value ? (v(), y(Z, { key: 1 }, [
|
|
6320
6311
|
fe(" Об’єкт " + q(ee.value + 1) + " / " + q(De.value), 1)
|
|
6321
6312
|
], 64)) : (v(), y(Z, { key: 0 }, [
|
|
@@ -6327,7 +6318,7 @@ const pf = {
|
|
|
6327
6318
|
], 64))
|
|
6328
6319
|
])
|
|
6329
6320
|
]),
|
|
6330
|
-
o.value && se(Q) > 1 ? (v(), y("div",
|
|
6321
|
+
o.value && se(Q) > 1 ? (v(), y("div", mf, [
|
|
6331
6322
|
s("button", {
|
|
6332
6323
|
onClick: $[0] || ($[0] = //@ts-ignore
|
|
6333
6324
|
(...H) => se(B) && se(B)(...H)),
|
|
@@ -6335,7 +6326,7 @@ const pf = {
|
|
|
6335
6326
|
class: "border p-1 rounded text-xs disabled:opacity-40"
|
|
6336
6327
|
}, [
|
|
6337
6328
|
ae(se(zn), { class: "h-4 w-4" })
|
|
6338
|
-
], 8,
|
|
6329
|
+
], 8, gf),
|
|
6339
6330
|
s("button", {
|
|
6340
6331
|
onClick: $[1] || ($[1] = //@ts-ignore
|
|
6341
6332
|
(...H) => se(dt) && se(dt)(...H)),
|
|
@@ -6343,8 +6334,8 @@ const pf = {
|
|
|
6343
6334
|
class: "border p-1 rounded text-xs disabled:opacity-40"
|
|
6344
6335
|
}, [
|
|
6345
6336
|
ae(se(Pn), { class: "h-4 w-4" })
|
|
6346
|
-
], 8,
|
|
6347
|
-
])) : !o.value && be.value ? (v(), y("div",
|
|
6337
|
+
], 8, hf)
|
|
6338
|
+
])) : !o.value && be.value ? (v(), y("div", yf, [
|
|
6348
6339
|
s("button", {
|
|
6349
6340
|
onClick: $[2] || ($[2] = //@ts-ignore
|
|
6350
6341
|
(...H) => se(Ge) && se(Ge)(...H)),
|
|
@@ -6352,7 +6343,7 @@ const pf = {
|
|
|
6352
6343
|
class: "border p-1 rounded text-xs disabled:opacity-40"
|
|
6353
6344
|
}, [
|
|
6354
6345
|
ae(se(zn), { class: "h-4 w-4" })
|
|
6355
|
-
], 8,
|
|
6346
|
+
], 8, xf),
|
|
6356
6347
|
s("button", {
|
|
6357
6348
|
onClick: $[3] || ($[3] = //@ts-ignore
|
|
6358
6349
|
(...H) => se(Ke) && se(Ke)(...H)),
|
|
@@ -6360,7 +6351,7 @@ const pf = {
|
|
|
6360
6351
|
class: "border p-1 rounded text-xs disabled:opacity-40"
|
|
6361
6352
|
}, [
|
|
6362
6353
|
ae(se(Pn), { class: "h-4 w-4" })
|
|
6363
|
-
], 8,
|
|
6354
|
+
], 8, bf)
|
|
6364
6355
|
])) : W("", !0),
|
|
6365
6356
|
s("button", {
|
|
6366
6357
|
type: "button",
|
|
@@ -6368,55 +6359,55 @@ const pf = {
|
|
|
6368
6359
|
onClick: ft
|
|
6369
6360
|
}, " ✕ ")
|
|
6370
6361
|
]),
|
|
6371
|
-
s("div",
|
|
6372
|
-
i.value ? (v(), y("div",
|
|
6373
|
-
U.value.length ? (v(), y("div",
|
|
6362
|
+
s("div", _f, [
|
|
6363
|
+
i.value ? (v(), y("div", wf, " Завантаження даних… ")) : u.value ? (v(), y("div", kf, q(u.value), 1)) : (v(), y(Z, { key: 2 }, [
|
|
6364
|
+
U.value.length ? (v(), y("div", $f, [
|
|
6374
6365
|
(v(!0), y(Z, null, oe(U.value, (H, J) => (v(), y(Z, { key: J }, [
|
|
6375
6366
|
H.type === "html" ? (v(), y("div", {
|
|
6376
6367
|
key: 0,
|
|
6377
6368
|
innerHTML: H.content
|
|
6378
|
-
}, null, 8,
|
|
6369
|
+
}, null, 8, Cf)) : (v(), re(sf, {
|
|
6379
6370
|
key: 1,
|
|
6380
6371
|
title: H.componentProps.title,
|
|
6381
6372
|
url: H.componentProps.url,
|
|
6382
6373
|
id: H.componentProps.id,
|
|
6383
6374
|
"button-text": H.componentProps.buttonText,
|
|
6384
6375
|
onActivate: et
|
|
6385
|
-
},
|
|
6376
|
+
}, lo({ _: 2 }, [
|
|
6386
6377
|
H.slotText ? {
|
|
6387
6378
|
name: "default",
|
|
6388
6379
|
fn: Te(() => [
|
|
6389
6380
|
s("span", {
|
|
6390
6381
|
innerHTML: H.slotText
|
|
6391
|
-
}, null, 8,
|
|
6382
|
+
}, null, 8, Af)
|
|
6392
6383
|
]),
|
|
6393
6384
|
key: "0"
|
|
6394
6385
|
} : void 0
|
|
6395
6386
|
]), 1032, ["title", "url", "id", "button-text"]))
|
|
6396
6387
|
], 64))), 128))
|
|
6397
|
-
])) : Y.value.length ? (v(), y("div",
|
|
6388
|
+
])) : Y.value.length ? (v(), y("div", Lf, [
|
|
6398
6389
|
(v(!0), y(Z, null, oe(Y.value, (H) => (v(), y("div", {
|
|
6399
6390
|
key: H.key,
|
|
6400
6391
|
class: "flex items-start justify-between gap-3 border-b border-slate-100 pb-2"
|
|
6401
6392
|
}, [
|
|
6402
|
-
s("span",
|
|
6403
|
-
H.format === "badge" ? (v(), y("span",
|
|
6393
|
+
s("span", Sf, q(H.label), 1),
|
|
6394
|
+
H.format === "badge" ? (v(), y("span", Ef, q(H.value), 1)) : (v(), y("span", Ff, q(H.value), 1))
|
|
6404
6395
|
]))), 128))
|
|
6405
6396
|
])) : W("", !0),
|
|
6406
|
-
te.value.length ? (v(), y("div",
|
|
6397
|
+
te.value.length ? (v(), y("div", If, [
|
|
6407
6398
|
$[5] || ($[5] = s("p", { class: "text-xs font-semibold uppercase tracking-wide text-slate-500" }, "Шари", -1)),
|
|
6408
|
-
s("div",
|
|
6399
|
+
s("div", Mf, [
|
|
6409
6400
|
(v(!0), y(Z, null, oe(te.value, (H) => (v(), y("div", {
|
|
6410
6401
|
key: H.id,
|
|
6411
6402
|
class: "hover:bg-gray-100 rounded-lg flex items-center justify-between py-[8px] px-[8px] gap-3"
|
|
6412
6403
|
}, [
|
|
6413
|
-
s("label",
|
|
6404
|
+
s("label", Tf, [
|
|
6414
6405
|
s("input", {
|
|
6415
6406
|
type: "checkbox",
|
|
6416
6407
|
class: "peer hidden",
|
|
6417
6408
|
checked: We(H.id),
|
|
6418
6409
|
onChange: (J) => rt(H, J)
|
|
6419
|
-
}, null, 40,
|
|
6410
|
+
}, null, 40, jf),
|
|
6420
6411
|
$[4] || ($[4] = s("div", { class: "w-4 h-4 rounded border border-blue-800 flex items-center justify-center peer-checked:bg-blue-600 peer-checked:border-blue-600" }, [
|
|
6421
6412
|
s("svg", {
|
|
6422
6413
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6434,13 +6425,13 @@ const pf = {
|
|
|
6434
6425
|
})
|
|
6435
6426
|
])
|
|
6436
6427
|
], -1)),
|
|
6437
|
-
s("span",
|
|
6428
|
+
s("span", Of, q(H.title), 1)
|
|
6438
6429
|
]),
|
|
6439
|
-
H.subtitle ? (v(), y("div",
|
|
6430
|
+
H.subtitle ? (v(), y("div", Nf, q(H.subtitle), 1)) : W("", !0)
|
|
6440
6431
|
]))), 128))
|
|
6441
6432
|
])
|
|
6442
6433
|
])) : W("", !0),
|
|
6443
|
-
Ce.value ? W("", !0) : (v(), y("div",
|
|
6434
|
+
Ce.value ? W("", !0) : (v(), y("div", zf, " Даних не знайдено. "))
|
|
6444
6435
|
], 64))
|
|
6445
6436
|
])
|
|
6446
6437
|
])) : W("", !0)
|
|
@@ -6448,7 +6439,7 @@ const pf = {
|
|
|
6448
6439
|
_: 1
|
|
6449
6440
|
}));
|
|
6450
6441
|
}
|
|
6451
|
-
}),
|
|
6442
|
+
}), Hr = /* @__PURE__ */ ce(Rf, [["__scopeId", "data-v-0fa76782"]]), Yr = /* @__PURE__ */ ue({
|
|
6452
6443
|
__name: "MapBoundaryLayer",
|
|
6453
6444
|
props: {
|
|
6454
6445
|
layerId: {},
|
|
@@ -6535,7 +6526,7 @@ const pf = {
|
|
|
6535
6526
|
{ immediate: !0 }
|
|
6536
6527
|
), ge(i), (c, m) => null;
|
|
6537
6528
|
}
|
|
6538
|
-
}),
|
|
6529
|
+
}), Df = { class: "flex h-screen bg-gradient-to-br from-slate-50 to-white" }, Bf = { class: "flex-1 relative overflow-hidden" }, Vf = { class: "absolute top-0 left-0 w-full z-20" }, Uf = { class: "flex items-center justify-between bg-white/80 backdrop-blur border-b border-gray-200 px-6 py-3 shadow-sm gap-4" }, qf = { class: "flex items-center gap-3" }, Hf = { class: "font-semibold text-lg text-gray-800 line-clamp-1" }, Yf = { class: "text-xs text-gray-500 truncate" }, Zf = ["title"], Wf = { class: "w-full h-full bg-gradient-to-br from-sky-50 via-white to-blue-50 flex items-center justify-center relative pt-[64px]" }, Kf = { class: "relative w-full h-full" }, Gf = { style: { top: "17px", left: "230px", position: "absolute", "z-index": "1" } }, Xf = { class: "absolute top-4 left-4 z-20" }, Qf = { class: "absolute bottom-4 left-4 z-20" }, Jf = { class: "w-[650px] bg-white border-l border-gray-100 flex flex-col overflow-hidden shadow-lg" }, ep = { class: "flex-1 flex flex-col h-full" }, tp = { class: "px-3 pt-3 pb-2 border-b border-gray-100" }, np = { class: "items-center justify-center text-muted-foreground grid w-full grid-cols-6 h-12 p-1 bg-gray-50 rounded-xl shadow-sm" }, rp = ["aria-selected", "onClick"], op = { class: "leading-none" }, lp = { class: "flex flex-col flex-1 overflow-y-hidden p-3" }, Am = /* @__PURE__ */ ue({
|
|
6539
6530
|
__name: "service",
|
|
6540
6531
|
setup(e) {
|
|
6541
6532
|
var I, D;
|
|
@@ -6546,11 +6537,11 @@ const pf = {
|
|
|
6546
6537
|
const E = (u == null ? void 0 : u.map) || null, S = (E == null ? void 0 : E.boundary) ?? null, O = (E == null ? void 0 : E.katottg) ?? null;
|
|
6547
6538
|
return !S && !O ? null : { boundary: S, katottg: O };
|
|
6548
6539
|
}), F = [
|
|
6549
|
-
{ key: "style", label: "Стиль", icon:
|
|
6550
|
-
{ key: "popup", label: "Попап", icon:
|
|
6551
|
-
{ key: "filter", label: "Фільтр", icon:
|
|
6552
|
-
{ key: "legend", label: "Легенда", icon:
|
|
6553
|
-
{ key: "card", label: "Картка", icon:
|
|
6540
|
+
{ key: "style", label: "Стиль", icon: pa },
|
|
6541
|
+
{ key: "popup", label: "Попап", icon: Ca },
|
|
6542
|
+
{ key: "filter", label: "Фільтр", icon: Ea },
|
|
6543
|
+
{ key: "legend", label: "Легенда", icon: ha },
|
|
6544
|
+
{ key: "card", label: "Картка", icon: _a }
|
|
6554
6545
|
], w = F.map((E) => E.key), k = z("style");
|
|
6555
6546
|
we(async () => {
|
|
6556
6547
|
const E = t.query.tab;
|
|
@@ -6619,11 +6610,11 @@ const pf = {
|
|
|
6619
6610
|
}
|
|
6620
6611
|
return (E, S) => {
|
|
6621
6612
|
var O, V, P, T;
|
|
6622
|
-
return v(), y("div",
|
|
6623
|
-
s("div",
|
|
6624
|
-
s("div",
|
|
6625
|
-
s("div",
|
|
6626
|
-
s("div",
|
|
6613
|
+
return v(), y("div", Df, [
|
|
6614
|
+
s("div", Bf, [
|
|
6615
|
+
s("div", Vf, [
|
|
6616
|
+
s("div", Uf, [
|
|
6617
|
+
s("div", qf, [
|
|
6627
6618
|
s("button", {
|
|
6628
6619
|
onClick: S[0] || (S[0] = (_) => E.$router.back()),
|
|
6629
6620
|
class: "inline-flex items-center px-3 py-1.5 rounded-md bg-sky-100 hover:bg-sky-200 text-sky-700 font-medium text-sm transition"
|
|
@@ -6645,51 +6636,51 @@ const pf = {
|
|
|
6645
6636
|
fe(" Назад ", -1)
|
|
6646
6637
|
])]),
|
|
6647
6638
|
s("div", null, [
|
|
6648
|
-
s("div",
|
|
6649
|
-
s("div",
|
|
6639
|
+
s("div", Hf, q((O = i.value) == null ? void 0 : O.name), 1),
|
|
6640
|
+
s("div", Yf, " Сервіс: " + q((V = i.value) == null ? void 0 : V.service_key), 1)
|
|
6650
6641
|
])
|
|
6651
6642
|
]),
|
|
6652
6643
|
s("div", {
|
|
6653
6644
|
class: "max-w-xl text-xs text-gray-600 truncate",
|
|
6654
6645
|
title: (P = i.value) == null ? void 0 : P.description
|
|
6655
|
-
}, q((T = i.value) == null ? void 0 : T.description), 9,
|
|
6646
|
+
}, q((T = i.value) == null ? void 0 : T.description), 9, Zf)
|
|
6656
6647
|
])
|
|
6657
6648
|
]),
|
|
6658
|
-
s("div",
|
|
6659
|
-
s("div",
|
|
6660
|
-
ae(
|
|
6649
|
+
s("div", Wf, [
|
|
6650
|
+
s("div", Kf, [
|
|
6651
|
+
ae(Vr, null, {
|
|
6661
6652
|
default: Te(() => {
|
|
6662
6653
|
var _, C, j, Y, U, K, X;
|
|
6663
6654
|
return [
|
|
6664
|
-
(_ = i.value) != null && _.service_id ? (v(), re(
|
|
6655
|
+
(_ = i.value) != null && _.service_id ? (v(), re(zd, {
|
|
6665
6656
|
key: 0,
|
|
6666
6657
|
id: (C = i.value) == null ? void 0 : C.service_id,
|
|
6667
6658
|
layer: i.value,
|
|
6668
6659
|
"style-yaml": f.value
|
|
6669
6660
|
}, null, 8, ["id", "layer", "style-yaml"])) : W("", !0),
|
|
6670
|
-
m.value ? (v(), re(
|
|
6661
|
+
m.value ? (v(), re(Yr, {
|
|
6671
6662
|
key: 1,
|
|
6672
6663
|
"layer-id": m.value,
|
|
6673
6664
|
boundary: ((j = i.value) == null ? void 0 : j.boundary) || ((Y = g.value) == null ? void 0 : Y.boundary) || null,
|
|
6674
6665
|
katottg: ((U = i.value) == null ? void 0 : U.katottg) || ((K = g.value) == null ? void 0 : K.katottg) || null
|
|
6675
6666
|
}, null, 8, ["layer-id", "boundary", "katottg"])) : W("", !0),
|
|
6676
|
-
s("div",
|
|
6667
|
+
s("div", Gf, [
|
|
6677
6668
|
m.value ? (v(), re(_n, {
|
|
6678
6669
|
key: 0,
|
|
6679
6670
|
"layer-id": m.value,
|
|
6680
6671
|
filters: c.value
|
|
6681
6672
|
}, null, 8, ["layer-id", "filters"])) : W("", !0)
|
|
6682
6673
|
]),
|
|
6683
|
-
s("div",
|
|
6674
|
+
s("div", Xf, [
|
|
6684
6675
|
ae(wn)
|
|
6685
6676
|
]),
|
|
6686
|
-
s("div",
|
|
6677
|
+
s("div", Qf, [
|
|
6687
6678
|
ae(kn, {
|
|
6688
6679
|
items: ((X = i.value) == null ? void 0 : X.legend) || null
|
|
6689
6680
|
}, null, 8, ["items"])
|
|
6690
6681
|
]),
|
|
6691
|
-
ae(
|
|
6692
|
-
ae(
|
|
6682
|
+
ae(Ur),
|
|
6683
|
+
ae(Hr, {
|
|
6693
6684
|
html: l.value.html
|
|
6694
6685
|
}, null, 8, ["html"])
|
|
6695
6686
|
];
|
|
@@ -6699,10 +6690,10 @@ const pf = {
|
|
|
6699
6690
|
])
|
|
6700
6691
|
])
|
|
6701
6692
|
]),
|
|
6702
|
-
s("div",
|
|
6703
|
-
s("div",
|
|
6704
|
-
s("div",
|
|
6705
|
-
s("div",
|
|
6693
|
+
s("div", Jf, [
|
|
6694
|
+
s("div", ep, [
|
|
6695
|
+
s("div", tp, [
|
|
6696
|
+
s("div", np, [
|
|
6706
6697
|
(v(), y(Z, null, oe(F, (_) => s("button", {
|
|
6707
6698
|
key: _.key,
|
|
6708
6699
|
type: "button",
|
|
@@ -6712,31 +6703,31 @@ const pf = {
|
|
|
6712
6703
|
onClick: (C) => k.value = _.key
|
|
6713
6704
|
}, [
|
|
6714
6705
|
(v(), re(Bt(_.icon), { class: "h-3.5 w-3.5 mb-0.5" })),
|
|
6715
|
-
s("span",
|
|
6716
|
-
], 10,
|
|
6706
|
+
s("span", op, q(_.label), 1)
|
|
6707
|
+
], 10, rp)), 64))
|
|
6717
6708
|
])
|
|
6718
6709
|
]),
|
|
6719
|
-
s("div",
|
|
6720
|
-
k.value === "style" ? (v(), re(
|
|
6710
|
+
s("div", lp, [
|
|
6711
|
+
k.value === "style" ? (v(), re(id, {
|
|
6721
6712
|
key: 0,
|
|
6722
6713
|
token: m.value,
|
|
6723
6714
|
"style-yaml": f.value,
|
|
6724
6715
|
"onUpdate:styleYaml": S[1] || (S[1] = (_) => f.value = _),
|
|
6725
6716
|
onSave: S[2] || (S[2] = (_) => M("style", _))
|
|
6726
|
-
}, null, 8, ["token", "style-yaml"])) : k.value === "legend" ? (v(), re(
|
|
6717
|
+
}, null, 8, ["token", "style-yaml"])) : k.value === "legend" ? (v(), re($d, {
|
|
6727
6718
|
key: 1,
|
|
6728
6719
|
token: m.value,
|
|
6729
6720
|
columns: d.value,
|
|
6730
6721
|
"onUpdate:columns": S[3] || (S[3] = (_) => d.value = _),
|
|
6731
6722
|
onSave: S[4] || (S[4] = (_) => M("legend", _))
|
|
6732
|
-
}, null, 8, ["token", "columns"])) : k.value === "popup" ? (v(), re(
|
|
6723
|
+
}, null, 8, ["token", "columns"])) : k.value === "popup" ? (v(), re(gd, {
|
|
6733
6724
|
key: 2,
|
|
6734
6725
|
token: m.value,
|
|
6735
6726
|
columns: h.value,
|
|
6736
6727
|
fields: l.value.fields,
|
|
6737
6728
|
"onUpdate:columns": S[5] || (S[5] = (_) => h.value = _),
|
|
6738
6729
|
onSave: S[6] || (S[6] = (_) => M("popup", _))
|
|
6739
|
-
}, null, 8, ["token", "columns", "fields"])) : k.value === "card" ? (v(), re(
|
|
6730
|
+
}, null, 8, ["token", "columns", "fields"])) : k.value === "card" ? (v(), re(Md, {
|
|
6740
6731
|
key: 3,
|
|
6741
6732
|
token: m.value,
|
|
6742
6733
|
columns: a.value,
|
|
@@ -6745,7 +6736,7 @@ const pf = {
|
|
|
6745
6736
|
html: x.value,
|
|
6746
6737
|
"onUpdate:columns": S[7] || (S[7] = (_) => a.value = _),
|
|
6747
6738
|
onSave: N
|
|
6748
|
-
}, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : k.value === "filter" ? (v(), re(
|
|
6739
|
+
}, null, 8, ["token", "columns", "fields", "view-mode", "html"])) : k.value === "filter" ? (v(), re(jd, {
|
|
6749
6740
|
key: 4,
|
|
6750
6741
|
token: m.value,
|
|
6751
6742
|
fields: l.value.fields,
|
|
@@ -6759,7 +6750,7 @@ const pf = {
|
|
|
6759
6750
|
]);
|
|
6760
6751
|
};
|
|
6761
6752
|
}
|
|
6762
|
-
}),
|
|
6753
|
+
}), ip = { class: "mapLayer-info__inner" }, sp = { class: "mapLayer-info__item-label" }, ap = /* @__PURE__ */ ue({
|
|
6763
6754
|
__name: "MapLayerInfoPopover",
|
|
6764
6755
|
props: {
|
|
6765
6756
|
items: {}
|
|
@@ -6852,12 +6843,12 @@ const pf = {
|
|
|
6852
6843
|
onClick: g[0] || (g[0] = Ze(() => {
|
|
6853
6844
|
}, ["stop"]))
|
|
6854
6845
|
}, [
|
|
6855
|
-
s("div",
|
|
6846
|
+
s("div", ip, [
|
|
6856
6847
|
(v(!0), y(Z, null, oe(e.items, (F) => (v(), y("div", {
|
|
6857
6848
|
key: F.label,
|
|
6858
6849
|
class: "mapLayer-info__item"
|
|
6859
6850
|
}, [
|
|
6860
|
-
s("div",
|
|
6851
|
+
s("div", sp, q(F.label), 1),
|
|
6861
6852
|
s("div", {
|
|
6862
6853
|
class: ye(["mapLayer-info__item-value", { "mapLayer-info__item-value--break-all": F.breakLine }])
|
|
6863
6854
|
}, q(F.value ?? "—"), 3)
|
|
@@ -6867,16 +6858,16 @@ const pf = {
|
|
|
6867
6858
|
]))
|
|
6868
6859
|
], 512));
|
|
6869
6860
|
}
|
|
6870
|
-
}), Mn = /* @__PURE__ */ ce(
|
|
6861
|
+
}), Mn = /* @__PURE__ */ ce(ap, [["__scopeId", "data-v-e7d532ad"]]), up = {
|
|
6871
6862
|
key: 0,
|
|
6872
6863
|
class: "map-info__header"
|
|
6873
|
-
},
|
|
6864
|
+
}, cp = {
|
|
6874
6865
|
key: 0,
|
|
6875
6866
|
class: "map-info__title"
|
|
6876
|
-
},
|
|
6867
|
+
}, dp = { class: "map-info__actions" }, fp = {
|
|
6877
6868
|
key: 0,
|
|
6878
6869
|
class: "map-info__menu"
|
|
6879
|
-
},
|
|
6870
|
+
}, pp = ["onClick"], vp = ["innerHTML"], mp = /* @__PURE__ */ ue({
|
|
6880
6871
|
__name: "MapInfoWidget",
|
|
6881
6872
|
props: {
|
|
6882
6873
|
title: {},
|
|
@@ -6931,10 +6922,10 @@ const pf = {
|
|
|
6931
6922
|
ref_key: "container",
|
|
6932
6923
|
ref: n
|
|
6933
6924
|
}, [
|
|
6934
|
-
e.title || u.value.length || d.value.length ? (v(), y("div",
|
|
6935
|
-
e.title ? (v(), y("h2",
|
|
6936
|
-
s("div",
|
|
6937
|
-
u.value.length ? (v(), y("div",
|
|
6925
|
+
e.title || u.value.length || d.value.length ? (v(), y("div", up, [
|
|
6926
|
+
e.title ? (v(), y("h2", cp, q(e.title), 1)) : W("", !0),
|
|
6927
|
+
s("div", dp, [
|
|
6928
|
+
u.value.length ? (v(), y("div", fp, [
|
|
6938
6929
|
s("button", {
|
|
6939
6930
|
ref_key: "menuButton",
|
|
6940
6931
|
ref: o,
|
|
@@ -6983,7 +6974,7 @@ const pf = {
|
|
|
6983
6974
|
type: "button",
|
|
6984
6975
|
class: "map-info__popover-link",
|
|
6985
6976
|
onClick: (F) => x(g.slug)
|
|
6986
|
-
}, q(g.name), 9,
|
|
6977
|
+
}, q(g.name), 9, pp))), 128))
|
|
6987
6978
|
], 4)) : W("", !0)
|
|
6988
6979
|
]))
|
|
6989
6980
|
])) : W("", !0),
|
|
@@ -6997,10 +6988,10 @@ const pf = {
|
|
|
6997
6988
|
key: 1,
|
|
6998
6989
|
class: "map-info__content",
|
|
6999
6990
|
innerHTML: e.content
|
|
7000
|
-
}, null, 8,
|
|
6991
|
+
}, null, 8, vp)) : W("", !0)
|
|
7001
6992
|
], 512));
|
|
7002
6993
|
}
|
|
7003
|
-
}), sr = /* @__PURE__ */ ce(
|
|
6994
|
+
}), sr = /* @__PURE__ */ ce(mp, [["__scopeId", "data-v-2b3e43a7"]]), gp = { class: "opacity-popover__content" }, hp = { class: "opacity-popover__value" }, yp = /* @__PURE__ */ ue({
|
|
7004
6995
|
__name: "LayerOpacityPopover",
|
|
7005
6996
|
props: {
|
|
7006
6997
|
layerId: {}
|
|
@@ -7077,7 +7068,7 @@ const pf = {
|
|
|
7077
7068
|
class: "opacity-popover",
|
|
7078
7069
|
style: Ve({ top: i.top + "px", left: i.left + "px" })
|
|
7079
7070
|
}, [
|
|
7080
|
-
s("div",
|
|
7071
|
+
s("div", gp, [
|
|
7081
7072
|
p[1] || (p[1] = s("label", { class: "opacity-popover__label" }, "Прозорість:", -1)),
|
|
7082
7073
|
Ye(s("input", {
|
|
7083
7074
|
type: "range",
|
|
@@ -7090,19 +7081,19 @@ const pf = {
|
|
|
7090
7081
|
}, null, 544), [
|
|
7091
7082
|
[$t, r.value]
|
|
7092
7083
|
]),
|
|
7093
|
-
s("span",
|
|
7084
|
+
s("span", hp, q(r.value) + "%", 1)
|
|
7094
7085
|
])
|
|
7095
7086
|
], 4)) : W("", !0)
|
|
7096
7087
|
]))
|
|
7097
7088
|
], 512));
|
|
7098
7089
|
}
|
|
7099
|
-
}),
|
|
7090
|
+
}), Zr = /* @__PURE__ */ ce(yp, [["__scopeId", "data-v-80d5be35"]]), xp = { class: "layers-panel" }, bp = { class: "layers-panel__header" }, _p = { class: "layers-panel__heading" }, wp = { class: "layers-panel__title" }, kp = {
|
|
7100
7091
|
key: 0,
|
|
7101
7092
|
class: "layers-panel__description"
|
|
7102
|
-
},
|
|
7093
|
+
}, $p = { class: "layers-panel__label" }, Cp = ["checked", "onChange"], Ap = { class: "layers-panel__name" }, Lp = { class: "layers-panel__meta text-slate-500" }, Sp = ["onClick"], Ep = { class: "inline-flex items-center justify-center w-[18px] h-[18px] text-slate-500 transition-colors duration-200 hover:text-blue-700" }, Fp = {
|
|
7103
7094
|
key: 0,
|
|
7104
7095
|
class: "layers-panel__actions"
|
|
7105
|
-
},
|
|
7096
|
+
}, Ip = ["innerHTML", "onClick"], ar = "map:temporary-layer-request", Mp = /* @__PURE__ */ ue({
|
|
7106
7097
|
__name: "MapDataLayersWidget",
|
|
7107
7098
|
props: {
|
|
7108
7099
|
layers: {},
|
|
@@ -7115,7 +7106,7 @@ const pf = {
|
|
|
7115
7106
|
activateTemporaryLayer: i,
|
|
7116
7107
|
deactivateTemporaryLayer: u,
|
|
7117
7108
|
clearTemporaryLayers: f
|
|
7118
|
-
} =
|
|
7109
|
+
} = qr(o.map), d = R(() => {
|
|
7119
7110
|
const b = n.layers.map((I) => ({
|
|
7120
7111
|
...I,
|
|
7121
7112
|
isTemporary: !1,
|
|
@@ -7290,11 +7281,11 @@ const pf = {
|
|
|
7290
7281
|
}
|
|
7291
7282
|
return (b, N) => {
|
|
7292
7283
|
var I, D;
|
|
7293
|
-
return v(), y("div",
|
|
7294
|
-
s("div",
|
|
7295
|
-
s("div",
|
|
7296
|
-
s("h2",
|
|
7297
|
-
(D = e.config) != null && D.description ? (v(), y("div",
|
|
7284
|
+
return v(), y("div", xp, [
|
|
7285
|
+
s("div", bp, [
|
|
7286
|
+
s("div", _p, [
|
|
7287
|
+
s("h2", wp, q(((I = e.config) == null ? void 0 : I.title) || "Шари"), 1),
|
|
7288
|
+
(D = e.config) != null && D.description ? (v(), y("div", kp, [
|
|
7298
7289
|
s("p", null, q(e.config.description), 1)
|
|
7299
7290
|
])) : W("", !0)
|
|
7300
7291
|
]),
|
|
@@ -7311,17 +7302,17 @@ const pf = {
|
|
|
7311
7302
|
key: E.id,
|
|
7312
7303
|
class: "layers-panel__item"
|
|
7313
7304
|
}, [
|
|
7314
|
-
s("label",
|
|
7305
|
+
s("label", $p, [
|
|
7315
7306
|
s("input", {
|
|
7316
7307
|
type: "checkbox",
|
|
7317
7308
|
class: "layers-panel__checkbox",
|
|
7318
7309
|
checked: m(E.id),
|
|
7319
7310
|
onChange: (O) => k(E, O)
|
|
7320
|
-
}, null, 40,
|
|
7321
|
-
s("span",
|
|
7322
|
-
s("div",
|
|
7311
|
+
}, null, 40, Cp),
|
|
7312
|
+
s("span", Ap, q(E.name), 1),
|
|
7313
|
+
s("div", Lp, [
|
|
7323
7314
|
m(E.id) && !E.isTemporary ? (v(), y(Z, { key: 0 }, [
|
|
7324
|
-
ae(
|
|
7315
|
+
ae(Zr, {
|
|
7325
7316
|
"layer-id": E.id,
|
|
7326
7317
|
class: "flex"
|
|
7327
7318
|
}, {
|
|
@@ -7330,10 +7321,10 @@ const pf = {
|
|
|
7330
7321
|
class: "inline-flex items-center justify-center p-0 text-inherit no-underline cursor-pointer",
|
|
7331
7322
|
onClick: Ze(O, ["prevent", "stop"])
|
|
7332
7323
|
}, [
|
|
7333
|
-
s("div",
|
|
7334
|
-
ae(se(
|
|
7324
|
+
s("div", Ep, [
|
|
7325
|
+
ae(se(po))
|
|
7335
7326
|
])
|
|
7336
|
-
], 8,
|
|
7327
|
+
], 8, Sp)
|
|
7337
7328
|
]),
|
|
7338
7329
|
_: 1
|
|
7339
7330
|
}, 8, ["layer-id"]),
|
|
@@ -7347,21 +7338,21 @@ const pf = {
|
|
|
7347
7338
|
}, null, 8, ["items"])
|
|
7348
7339
|
])
|
|
7349
7340
|
]),
|
|
7350
|
-
(S = E.actions) != null && S.length ? (v(), y("div",
|
|
7341
|
+
(S = E.actions) != null && S.length ? (v(), y("div", Fp, [
|
|
7351
7342
|
(v(!0), y(Z, null, oe(E.actions, (O) => (v(), y("button", {
|
|
7352
7343
|
key: O.widget || O.id || O.icon,
|
|
7353
7344
|
type: "button",
|
|
7354
7345
|
class: "layers-panel__action",
|
|
7355
7346
|
innerHTML: O.icon,
|
|
7356
7347
|
onClick: (V) => a("action", { layerId: O.widget })
|
|
7357
|
-
}, null, 8,
|
|
7348
|
+
}, null, 8, Ip))), 128))
|
|
7358
7349
|
])) : W("", !0)
|
|
7359
7350
|
]);
|
|
7360
7351
|
}), 128))
|
|
7361
7352
|
]);
|
|
7362
7353
|
};
|
|
7363
7354
|
}
|
|
7364
|
-
}), ur = /* @__PURE__ */ ce(
|
|
7355
|
+
}), ur = /* @__PURE__ */ ce(Mp, [["__scopeId", "data-v-dce0e26f"]]), Tp = { class: "catalog-tab__search relative mt-[10px]" }, jp = {
|
|
7365
7356
|
width: "24",
|
|
7366
7357
|
height: "24",
|
|
7367
7358
|
viewBox: "0 0 24 24",
|
|
@@ -7369,10 +7360,10 @@ const pf = {
|
|
|
7369
7360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7370
7361
|
class: "absolute top-[40%] left-[8px] w-[16px] h-[16px]",
|
|
7371
7362
|
style: { transform: "translate(0, -50%)" }
|
|
7372
|
-
},
|
|
7363
|
+
}, Op = {
|
|
7373
7364
|
key: 0,
|
|
7374
7365
|
class: "text-sm text-gray-400 text-center mt-6"
|
|
7375
|
-
},
|
|
7366
|
+
}, Np = ["onClick"], zp = { class: "flex items-center gap-x-3" }, Pp = { class: "max-w-[260px] text-[14px] text-[#4b5563]" }, Rp = { class: "text-xs opacity-60 text-[#4b5563]" }, Dp = { class: "flex items-center cursor-pointer gap-2 flex-1" }, Bp = ["checked", "onChange"], Vp = { class: "text-[13px] text-gray-600 truncate max-w-[260px]" }, Up = { class: "flex items-center gap-2" }, qp = /* @__PURE__ */ ue({
|
|
7376
7367
|
__name: "LayersCatalogTab",
|
|
7377
7368
|
props: {
|
|
7378
7369
|
catalog: {},
|
|
@@ -7398,7 +7389,7 @@ const pf = {
|
|
|
7398
7389
|
set: (g) => r("update:search", g)
|
|
7399
7390
|
});
|
|
7400
7391
|
function d(g) {
|
|
7401
|
-
o[g] = !o[g],
|
|
7392
|
+
o[g] = !o[g], Pd();
|
|
7402
7393
|
}
|
|
7403
7394
|
function h(g) {
|
|
7404
7395
|
return !!o[g];
|
|
@@ -7443,7 +7434,7 @@ const pf = {
|
|
|
7443
7434
|
ref: l,
|
|
7444
7435
|
class: "catalog-tab"
|
|
7445
7436
|
}, [
|
|
7446
|
-
s("div",
|
|
7437
|
+
s("div", Tp, [
|
|
7447
7438
|
Ye(s("input", {
|
|
7448
7439
|
"onUpdate:modelValue": F[0] || (F[0] = (w) => f.value = w),
|
|
7449
7440
|
type: "text",
|
|
@@ -7452,7 +7443,7 @@ const pf = {
|
|
|
7452
7443
|
}, null, 512), [
|
|
7453
7444
|
[$t, f.value]
|
|
7454
7445
|
]),
|
|
7455
|
-
(v(), y("svg",
|
|
7446
|
+
(v(), y("svg", jp, [...F[1] || (F[1] = [
|
|
7456
7447
|
s("path", {
|
|
7457
7448
|
d: "M11 19C15.4183 19 19 15.4183 19 11C19 6.5817 15.4183 3 11 3C6.5817 3 3 6.5817 3 11C3 15.4183 6.5817 19 11 19Z",
|
|
7458
7449
|
stroke: "black",
|
|
@@ -7467,7 +7458,7 @@ const pf = {
|
|
|
7467
7458
|
}, null, -1)
|
|
7468
7459
|
])]))
|
|
7469
7460
|
]),
|
|
7470
|
-
u.value.length === 0 ? (v(), y("div",
|
|
7461
|
+
u.value.length === 0 ? (v(), y("div", Op, " Нічого не знайдено ")) : W("", !0),
|
|
7471
7462
|
(v(!0), y(Z, null, oe(u.value, (w) => (v(), y("div", {
|
|
7472
7463
|
key: w.id,
|
|
7473
7464
|
class: "mt-2"
|
|
@@ -7476,7 +7467,7 @@ const pf = {
|
|
|
7476
7467
|
class: "hover:bg-gray-100 cursor-pointer p-[8px] rounded-lg flex justify-between items-center",
|
|
7477
7468
|
onClick: (k) => d(w.id)
|
|
7478
7469
|
}, [
|
|
7479
|
-
s("div",
|
|
7470
|
+
s("div", zp, [
|
|
7480
7471
|
(v(), y("svg", {
|
|
7481
7472
|
width: "6",
|
|
7482
7473
|
height: "10",
|
|
@@ -7492,10 +7483,10 @@ const pf = {
|
|
|
7492
7483
|
"stroke-linejoin": "round"
|
|
7493
7484
|
}, null, -1)
|
|
7494
7485
|
])], 2)),
|
|
7495
|
-
s("div",
|
|
7486
|
+
s("div", Pp, q(w.name), 1)
|
|
7496
7487
|
]),
|
|
7497
|
-
s("div",
|
|
7498
|
-
], 8,
|
|
7488
|
+
s("div", Rp, q(w.layers.length), 1)
|
|
7489
|
+
], 8, Np),
|
|
7499
7490
|
ae(Cn, { name: "out-in" }, {
|
|
7500
7491
|
default: Te(() => [
|
|
7501
7492
|
Ye(s("div", null, [
|
|
@@ -7503,13 +7494,13 @@ const pf = {
|
|
|
7503
7494
|
key: k.id,
|
|
7504
7495
|
class: "hover:bg-gray-100 rounded-lg flex items-center justify-between ml-[20px] py-[8px] px-[8px] gap-3"
|
|
7505
7496
|
}, [
|
|
7506
|
-
s("label",
|
|
7497
|
+
s("label", Dp, [
|
|
7507
7498
|
s("input", {
|
|
7508
7499
|
type: "checkbox",
|
|
7509
7500
|
class: "peer hidden",
|
|
7510
7501
|
checked: e.selected.includes(k.id),
|
|
7511
7502
|
onChange: (L) => g.$emit("toggle-layer", k.id, L.target.checked, k)
|
|
7512
|
-
}, null, 40,
|
|
7503
|
+
}, null, 40, Bp),
|
|
7513
7504
|
F[3] || (F[3] = s("div", { class: "w-4 h-4 rounded border border-blue-800 flex items-center justify-center peer-checked:bg-blue-600 peer-checked:border-blue-600" }, [
|
|
7514
7505
|
s("svg", {
|
|
7515
7506
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7526,9 +7517,9 @@ const pf = {
|
|
|
7526
7517
|
})
|
|
7527
7518
|
])
|
|
7528
7519
|
], -1)),
|
|
7529
|
-
s("span",
|
|
7520
|
+
s("span", Vp, q(k.name), 1)
|
|
7530
7521
|
]),
|
|
7531
|
-
s("div",
|
|
7522
|
+
s("div", Up, [
|
|
7532
7523
|
Array.isArray(k.filters) && k.filters.length ? (v(), re(nn, {
|
|
7533
7524
|
key: 0,
|
|
7534
7525
|
count: k.filters.length,
|
|
@@ -7563,10 +7554,10 @@ const pf = {
|
|
|
7563
7554
|
]))
|
|
7564
7555
|
], 512));
|
|
7565
7556
|
}
|
|
7566
|
-
}),
|
|
7557
|
+
}), Hp = /* @__PURE__ */ ce(qp, [["__scopeId", "data-v-1df2b104"]]), Yp = { class: "selected-tab" }, Zp = { class: "selected-tab__actions" }, Wp = {
|
|
7567
7558
|
key: 0,
|
|
7568
7559
|
class: "selected-tab__scroll"
|
|
7569
|
-
},
|
|
7560
|
+
}, Kp = ["onDragstart", "onDragover", "onDrop"], Gp = { class: "selected-tab__item-header" }, Xp = { class: "selected-tab__item-info" }, Qp = ["checked", "onChange"], Jp = { class: "selected-tab__item-name" }, ev = { class: "selected-tab__item-controls" }, tv = ["onClick"], nv = { class: "selected-tab__menu-inner" }, rv = /* @__PURE__ */ ue({
|
|
7570
7561
|
__name: "LayersSelectedTab",
|
|
7571
7562
|
props: {
|
|
7572
7563
|
catalog: {},
|
|
@@ -7681,8 +7672,8 @@ const pf = {
|
|
|
7681
7672
|
function P() {
|
|
7682
7673
|
D.value = null, E.value = null;
|
|
7683
7674
|
}
|
|
7684
|
-
return (T, _) => (v(), y("div",
|
|
7685
|
-
s("div",
|
|
7675
|
+
return (T, _) => (v(), y("div", Yp, [
|
|
7676
|
+
s("div", Zp, [
|
|
7686
7677
|
s("button", {
|
|
7687
7678
|
class: "selected-tab__add",
|
|
7688
7679
|
onClick: _[0] || (_[0] = (C) => r("select-layer"))
|
|
@@ -7705,7 +7696,7 @@ const pf = {
|
|
|
7705
7696
|
s("span", null, "Вибрати шар", -1)
|
|
7706
7697
|
])])
|
|
7707
7698
|
]),
|
|
7708
|
-
e.selected.length ? (v(), y("div",
|
|
7699
|
+
e.selected.length ? (v(), y("div", Wp, [
|
|
7709
7700
|
s("div", null, [
|
|
7710
7701
|
(v(!0), y(Z, null, oe(e.selected, (C, j) => {
|
|
7711
7702
|
var Y;
|
|
@@ -7721,19 +7712,19 @@ const pf = {
|
|
|
7721
7712
|
onDrop: (U) => V(U, j),
|
|
7722
7713
|
onDragend: P
|
|
7723
7714
|
}, [
|
|
7724
|
-
s("div",
|
|
7725
|
-
s("div",
|
|
7715
|
+
s("div", Gp, [
|
|
7716
|
+
s("div", Xp, [
|
|
7726
7717
|
_[4] || (_[4] = s("span", { class: "selected-tab__item-handle" }, "☰", -1)),
|
|
7727
7718
|
s("input", {
|
|
7728
7719
|
type: "checkbox",
|
|
7729
7720
|
class: "selected-tab__item-checkbox",
|
|
7730
7721
|
checked: x[C] ?? !0,
|
|
7731
7722
|
onChange: (U) => g(C, U.target.checked)
|
|
7732
|
-
}, null, 40,
|
|
7733
|
-
s("span",
|
|
7723
|
+
}, null, 40, Qp),
|
|
7724
|
+
s("span", Jp, q(((Y = c(C)) == null ? void 0 : Y.name) || "Шар"), 1)
|
|
7734
7725
|
]),
|
|
7735
|
-
s("div",
|
|
7736
|
-
ae(
|
|
7726
|
+
s("div", ev, [
|
|
7727
|
+
ae(Zr, { "layer-id": C }, null, 8, ["layer-id"]),
|
|
7737
7728
|
s("button", {
|
|
7738
7729
|
type: "button",
|
|
7739
7730
|
class: "selected-tab__item-menu",
|
|
@@ -7769,10 +7760,10 @@ const pf = {
|
|
|
7769
7760
|
r: "1"
|
|
7770
7761
|
})
|
|
7771
7762
|
], -1)
|
|
7772
|
-
])], 8,
|
|
7763
|
+
])], 8, tv)
|
|
7773
7764
|
])
|
|
7774
7765
|
])
|
|
7775
|
-
], 42,
|
|
7766
|
+
], 42, Kp);
|
|
7776
7767
|
}), 128))
|
|
7777
7768
|
])
|
|
7778
7769
|
])) : W("", !0),
|
|
@@ -7784,7 +7775,7 @@ const pf = {
|
|
|
7784
7775
|
class: "selected-tab__menu",
|
|
7785
7776
|
style: Ve({ top: h.top + "px", left: h.left + "px" })
|
|
7786
7777
|
}, [
|
|
7787
|
-
s("div",
|
|
7778
|
+
s("div", nv, [
|
|
7788
7779
|
s("button", {
|
|
7789
7780
|
class: "selected-tab__menu-item",
|
|
7790
7781
|
onClick: _[1] || (_[1] = (C) => I(d.value))
|
|
@@ -7922,16 +7913,16 @@ const pf = {
|
|
|
7922
7913
|
]))
|
|
7923
7914
|
]));
|
|
7924
7915
|
}
|
|
7925
|
-
}),
|
|
7916
|
+
}), ov = /* @__PURE__ */ ce(rv, [["__scopeId", "data-v-b78ae229"]]), lv = { class: "filter-tab" }, iv = {
|
|
7926
7917
|
key: 0,
|
|
7927
7918
|
class: "filter-tab__header"
|
|
7928
|
-
},
|
|
7919
|
+
}, sv = { class: "filter-tab__title" }, av = {
|
|
7929
7920
|
key: 1,
|
|
7930
7921
|
class: "filter-tab__content rounded-md"
|
|
7931
|
-
},
|
|
7922
|
+
}, uv = { class: "filter-tab__scroll" }, cv = {
|
|
7932
7923
|
key: 2,
|
|
7933
7924
|
class: "filter-tab__empty"
|
|
7934
|
-
},
|
|
7925
|
+
}, dv = /* @__PURE__ */ ue({
|
|
7935
7926
|
__name: "LayersFilterTab",
|
|
7936
7927
|
props: {
|
|
7937
7928
|
layer: {},
|
|
@@ -7946,14 +7937,14 @@ const pf = {
|
|
|
7946
7937
|
function u(f) {
|
|
7947
7938
|
o("change", f.data);
|
|
7948
7939
|
}
|
|
7949
|
-
return (f, d) => (v(), y("div",
|
|
7950
|
-
e.layer && i.value ? (v(), y("div",
|
|
7940
|
+
return (f, d) => (v(), y("div", lv, [
|
|
7941
|
+
e.layer && i.value ? (v(), y("div", iv, [
|
|
7951
7942
|
s("div", null, [
|
|
7952
|
-
s("p",
|
|
7943
|
+
s("p", sv, q(e.layer.name), 1)
|
|
7953
7944
|
])
|
|
7954
7945
|
])) : W("", !0),
|
|
7955
|
-
e.layer && i.value ? (v(), y("div",
|
|
7956
|
-
s("div",
|
|
7946
|
+
e.layer && i.value ? (v(), y("div", av, [
|
|
7947
|
+
s("div", uv, [
|
|
7957
7948
|
ae(se(n), {
|
|
7958
7949
|
view: "vertical",
|
|
7959
7950
|
schema: l.value,
|
|
@@ -7963,16 +7954,16 @@ const pf = {
|
|
|
7963
7954
|
onChange: d[0] || (d[0] = (h) => u(h))
|
|
7964
7955
|
}, null, 8, ["schema", "value"])
|
|
7965
7956
|
])
|
|
7966
|
-
])) : (v(), y("div",
|
|
7957
|
+
])) : (v(), y("div", cv, [...d[1] || (d[1] = [
|
|
7967
7958
|
s("p", { class: "filter-tab__empty-title" }, "Немає доступних фільтрів", -1),
|
|
7968
7959
|
s("p", { class: "filter-tab__empty-text" }, " Оберіть шар із фільтрами у каталозі, щоб налаштувати відбір даних. ", -1)
|
|
7969
7960
|
])]))
|
|
7970
7961
|
]));
|
|
7971
7962
|
}
|
|
7972
|
-
}),
|
|
7963
|
+
}), fv = /* @__PURE__ */ ce(dv, [["__scopeId", "data-v-c6632fbd"]]), pv = { class: "map-catalog-widget w-full max-w-md mx-auto p-4 bg-white border border-gray-200 rounded-lg shadow-sm widget" }, vv = { class: "flex items-center justify-between mb-4" }, mv = { class: "flex items-center gap-2" }, gv = { class: "text-lg font-semibold text-gray-800" }, hv = { key: 0 }, yv = {
|
|
7973
7964
|
key: 1,
|
|
7974
7965
|
class: "block text-sm font-normal text-gray-500"
|
|
7975
|
-
},
|
|
7966
|
+
}, xv = { class: "flex mb-4 border-b border-gray-200" }, bv = { class: "map-catalog-widget__body" }, _v = /* @__PURE__ */ ue({
|
|
7976
7967
|
__name: "MapCatalogWidget",
|
|
7977
7968
|
setup(e) {
|
|
7978
7969
|
const t = z("catalog"), n = z({ groups: [] }), r = z([]), o = z(""), { map: l } = Re(), i = Lt(), u = St(), f = Qe({}), d = z(null);
|
|
@@ -8121,9 +8112,9 @@ const pf = {
|
|
|
8121
8112
|
});
|
|
8122
8113
|
},
|
|
8123
8114
|
{ deep: !0 }
|
|
8124
|
-
), we(E), (S, O) => (v(), y("div",
|
|
8125
|
-
s("div",
|
|
8126
|
-
s("div",
|
|
8115
|
+
), we(E), (S, O) => (v(), y("div", pv, [
|
|
8116
|
+
s("div", vv, [
|
|
8117
|
+
s("div", mv, [
|
|
8127
8118
|
O[5] || (O[5] = s("svg", {
|
|
8128
8119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8129
8120
|
width: "20",
|
|
@@ -8140,10 +8131,10 @@ const pf = {
|
|
|
8140
8131
|
s("path", { d: "m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65" }),
|
|
8141
8132
|
s("path", { d: "m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65" })
|
|
8142
8133
|
], -1)),
|
|
8143
|
-
s("h2",
|
|
8134
|
+
s("h2", gv, [
|
|
8144
8135
|
fe(q(N.value) + " ", 1),
|
|
8145
|
-
I.value !== null ? (v(), y("span",
|
|
8146
|
-
D.value ? (v(), y("span",
|
|
8136
|
+
I.value !== null ? (v(), y("span", hv, "(" + q(I.value) + ")", 1)) : W("", !0),
|
|
8137
|
+
D.value ? (v(), y("span", yv, q(D.value), 1)) : W("", !0)
|
|
8147
8138
|
])
|
|
8148
8139
|
]),
|
|
8149
8140
|
s("button", {
|
|
@@ -8154,7 +8145,7 @@ const pf = {
|
|
|
8154
8145
|
yt('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw text-gray-600" data-v-d0e7b5b3><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8" data-v-d0e7b5b3></path><path d="M21 3v5h-5" data-v-d0e7b5b3></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16" data-v-d0e7b5b3></path><path d="M8 16H3v5" data-v-d0e7b5b3></path></svg>', 1)
|
|
8155
8146
|
])])
|
|
8156
8147
|
]),
|
|
8157
|
-
s("div",
|
|
8148
|
+
s("div", xv, [
|
|
8158
8149
|
s("button", {
|
|
8159
8150
|
onClick: O[0] || (O[0] = (V) => t.value = "catalog"),
|
|
8160
8151
|
class: ye([
|
|
@@ -8170,8 +8161,8 @@ const pf = {
|
|
|
8170
8161
|
])
|
|
8171
8162
|
}, " Вибрані шари ", 2)
|
|
8172
8163
|
]),
|
|
8173
|
-
s("div",
|
|
8174
|
-
t.value === "catalog" ? (v(), re(
|
|
8164
|
+
s("div", bv, [
|
|
8165
|
+
t.value === "catalog" ? (v(), re(Hp, {
|
|
8175
8166
|
key: 0,
|
|
8176
8167
|
class: "map-catalog-widget__scroll",
|
|
8177
8168
|
catalog: n.value,
|
|
@@ -8180,7 +8171,7 @@ const pf = {
|
|
|
8180
8171
|
"onUpdate:search": O[2] || (O[2] = (V) => o.value = V),
|
|
8181
8172
|
onToggleLayer: m,
|
|
8182
8173
|
onOpenFilter: w
|
|
8183
|
-
}, null, 8, ["catalog", "selected", "search"])) : t.value === "selected" ? (v(), re(
|
|
8174
|
+
}, null, 8, ["catalog", "selected", "search"])) : t.value === "selected" ? (v(), re(ov, {
|
|
8184
8175
|
key: 1,
|
|
8185
8176
|
catalog: n.value,
|
|
8186
8177
|
selected: r.value,
|
|
@@ -8188,7 +8179,7 @@ const pf = {
|
|
|
8188
8179
|
onSelectLayer: O[3] || (O[3] = (V) => t.value = "catalog"),
|
|
8189
8180
|
onReorder: F,
|
|
8190
8181
|
onRemove: O[4] || (O[4] = (V) => r.value = r.value.filter((P) => P !== V))
|
|
8191
|
-
}, null, 8, ["catalog", "selected"])) : (v(), re(
|
|
8182
|
+
}, null, 8, ["catalog", "selected"])) : (v(), re(fv, {
|
|
8192
8183
|
key: 2,
|
|
8193
8184
|
layer: L.value,
|
|
8194
8185
|
value: M.value,
|
|
@@ -8198,22 +8189,22 @@ const pf = {
|
|
|
8198
8189
|
])
|
|
8199
8190
|
]));
|
|
8200
8191
|
}
|
|
8201
|
-
}), cr = /* @__PURE__ */ ce(
|
|
8192
|
+
}), cr = /* @__PURE__ */ ce(_v, [["__scopeId", "data-v-d0e7b5b3"]]), wv = {
|
|
8202
8193
|
key: 1,
|
|
8203
8194
|
class: "flex flex-col bg-white border border-stone-200 shadow-2xs rounded-xl z-10 relative widget"
|
|
8204
|
-
},
|
|
8195
|
+
}, kv = { class: "flex items-start justify-between gap-3 p-5 pb-3" }, $v = { class: "inline-block text-xl font-semibold text-gray-800" }, Cv = {
|
|
8205
8196
|
key: 0,
|
|
8206
8197
|
class: "mt-1 text-sm text-gray-500"
|
|
8207
|
-
},
|
|
8198
|
+
}, Av = { class: "flex items-center gap-[6px]" }, Lv = { class: "px-5 pb-5 space-y-6" }, Sv = {
|
|
8208
8199
|
key: 0,
|
|
8209
8200
|
class: "space-y-2"
|
|
8210
|
-
},
|
|
8201
|
+
}, Ev = { class: "flex flex-wrap gap-4" }, Fv = ["value"], Iv = {
|
|
8211
8202
|
key: 1,
|
|
8212
8203
|
class: "text-sm text-gray-500"
|
|
8213
|
-
},
|
|
8204
|
+
}, Mv = {
|
|
8214
8205
|
key: 2,
|
|
8215
8206
|
class: "text-sm text-gray-500"
|
|
8216
|
-
},
|
|
8207
|
+
}, Tv = { class: "text-4xl font-medium text-gray-800" }, jv = { class: "space-y-[14px]" }, Ov = { class: "flex items-center gap-[10px] text-gray-600" }, Nv = { class: "font-medium text-gray-700" }, zv = { class: "flex items-center justify-end text-end gap-3" }, Pv = { class: "font-medium text-gray-800" }, Rv = { class: "min-w-[40px] font-medium text-[#3C3C4399]" }, Dv = /* @__PURE__ */ ue({
|
|
8217
8208
|
__name: "MapAttributeWidget",
|
|
8218
8209
|
props: {
|
|
8219
8210
|
config: {}
|
|
@@ -8410,13 +8401,13 @@ const pf = {
|
|
|
8410
8401
|
return ge(() => {
|
|
8411
8402
|
var _, C;
|
|
8412
8403
|
(C = (_ = u.value) == null ? void 0 : _.remove) == null || C.call(_);
|
|
8413
|
-
}), (_, C) => r.value ? (v(), y("div",
|
|
8414
|
-
s("div",
|
|
8404
|
+
}), (_, C) => r.value ? (v(), y("div", wv, [
|
|
8405
|
+
s("div", kv, [
|
|
8415
8406
|
s("div", null, [
|
|
8416
|
-
s("h2",
|
|
8417
|
-
P.value && g.value.length === 1 ? (v(), y("p",
|
|
8407
|
+
s("h2", $v, q(O.value), 1),
|
|
8408
|
+
P.value && g.value.length === 1 ? (v(), y("p", Cv, q(P.value), 1)) : W("", !0)
|
|
8418
8409
|
]),
|
|
8419
|
-
s("div",
|
|
8410
|
+
s("div", Av, [
|
|
8420
8411
|
w.value ? (v(), re(nn, {
|
|
8421
8412
|
key: 0,
|
|
8422
8413
|
class: "flex justify-center items-center h-[36px] w-[36px] text-sm border border-gray-200 text-gray-600 hover:bg-gray-100 rounded-full",
|
|
@@ -8443,9 +8434,9 @@ const pf = {
|
|
|
8443
8434
|
])])
|
|
8444
8435
|
])
|
|
8445
8436
|
]),
|
|
8446
|
-
s("div",
|
|
8447
|
-
g.value.length > 1 ? (v(), y("div",
|
|
8448
|
-
s("div",
|
|
8437
|
+
s("div", Lv, [
|
|
8438
|
+
g.value.length > 1 ? (v(), y("div", Sv, [
|
|
8439
|
+
s("div", Ev, [
|
|
8449
8440
|
(v(!0), y(Z, null, oe(g.value, (j) => (v(), y("label", {
|
|
8450
8441
|
key: j.id,
|
|
8451
8442
|
class: "inline-flex items-center gap-2 text-sm text-gray-700"
|
|
@@ -8455,34 +8446,34 @@ const pf = {
|
|
|
8455
8446
|
class: "text-sky-600 focus:ring-sky-500",
|
|
8456
8447
|
value: j.id,
|
|
8457
8448
|
"onUpdate:modelValue": C[2] || (C[2] = (Y) => p.value = Y)
|
|
8458
|
-
}, null, 8,
|
|
8459
|
-
[
|
|
8449
|
+
}, null, 8, Fv), [
|
|
8450
|
+
[io, p.value]
|
|
8460
8451
|
]),
|
|
8461
8452
|
s("span", null, q(j.label), 1)
|
|
8462
8453
|
]))), 128))
|
|
8463
8454
|
])
|
|
8464
8455
|
])) : W("", !0),
|
|
8465
|
-
o.value ? (v(), y("div",
|
|
8466
|
-
s("h4",
|
|
8467
|
-
s("ul",
|
|
8456
|
+
o.value ? (v(), y("div", Iv, "Завантаження…")) : l.value.length ? (v(), y(Z, { key: 3 }, [
|
|
8457
|
+
s("h4", Tv, q(V.value), 1),
|
|
8458
|
+
s("ul", jv, [
|
|
8468
8459
|
(v(!0), y(Z, null, oe(l.value, (j) => (v(), y("li", {
|
|
8469
8460
|
key: j.id,
|
|
8470
8461
|
class: "flex flex-wrap items-center justify-between gap-x-2"
|
|
8471
8462
|
}, [
|
|
8472
|
-
s("div",
|
|
8463
|
+
s("div", Ov, [
|
|
8473
8464
|
s("span", {
|
|
8474
8465
|
class: "block w-[16px] h-[16px] rounded",
|
|
8475
8466
|
style: Ve({ backgroundColor: j.color })
|
|
8476
8467
|
}, null, 4),
|
|
8477
|
-
s("span",
|
|
8468
|
+
s("span", Nv, q(j.label), 1)
|
|
8478
8469
|
]),
|
|
8479
|
-
s("div",
|
|
8480
|
-
s("span",
|
|
8481
|
-
s("span",
|
|
8470
|
+
s("div", zv, [
|
|
8471
|
+
s("span", Pv, q(j.count), 1),
|
|
8472
|
+
s("span", Rv, q(T(j.count)), 1)
|
|
8482
8473
|
])
|
|
8483
8474
|
]))), 128))
|
|
8484
8475
|
])
|
|
8485
|
-
], 64)) : (v(), y("div",
|
|
8476
|
+
], 64)) : (v(), y("div", Mv, "Дані відсутні"))
|
|
8486
8477
|
])
|
|
8487
8478
|
])) : (v(), y("button", {
|
|
8488
8479
|
key: 0,
|
|
@@ -8490,10 +8481,10 @@ const pf = {
|
|
|
8490
8481
|
onClick: C[0] || (C[0] = (j) => r.value = !0)
|
|
8491
8482
|
}, " Набори даних "));
|
|
8492
8483
|
}
|
|
8493
|
-
}), dr = /* @__PURE__ */ ce(
|
|
8484
|
+
}), dr = /* @__PURE__ */ ce(Dv, [["__scopeId", "data-v-b2be2dff"]]), Bv = { class: "map-search-widget flex flex-col gap-2 bg-white border border-stone-200 shadow-2xs rounded-xl widget p-3 min-w-[200px]" }, Vv = {
|
|
8494
8485
|
key: 0,
|
|
8495
8486
|
class: "vs-select__options absolute z-50 mt-1 w-full bg-white border border-gray-300 shadow-lg rounded-lg text-sm"
|
|
8496
|
-
},
|
|
8487
|
+
}, Uv = ["onClick"], qv = { class: "relative flex-1 min-w-[140px]" }, Hv = ["placeholder"], Yv = "https://data.softpro.ua/api-user/gis-url-proxy", Zv = "https://geo.rv.ua/api-user/dzk.api", Wv = /* @__PURE__ */ ue({
|
|
8497
8488
|
__name: "MapSearchWidget",
|
|
8498
8489
|
props: {
|
|
8499
8490
|
config: {}
|
|
@@ -8592,11 +8583,11 @@ const pf = {
|
|
|
8592
8583
|
Ee({ type: "warning", title: "Пошук координат", message: "Не знайдено або невірний формат координат" });
|
|
8593
8584
|
return;
|
|
8594
8585
|
}
|
|
8595
|
-
F({
|
|
8586
|
+
F({ ...L }), u.value = "";
|
|
8596
8587
|
return;
|
|
8597
8588
|
}
|
|
8598
8589
|
try {
|
|
8599
|
-
const L = new URL(i.value === "here" ?
|
|
8590
|
+
const L = new URL(i.value === "here" ? Yv : Zv);
|
|
8600
8591
|
if (i.value === "here")
|
|
8601
8592
|
L.searchParams.set("searchtext", k);
|
|
8602
8593
|
else {
|
|
@@ -8621,7 +8612,7 @@ const pf = {
|
|
|
8621
8612
|
}
|
|
8622
8613
|
}
|
|
8623
8614
|
}
|
|
8624
|
-
return (k, L) => (v(), y("div",
|
|
8615
|
+
return (k, L) => (v(), y("div", Bv, [
|
|
8625
8616
|
s("form", {
|
|
8626
8617
|
class: "flex gap-2",
|
|
8627
8618
|
onSubmit: Ze(w, ["prevent"])
|
|
@@ -8653,23 +8644,23 @@ const pf = {
|
|
|
8653
8644
|
}, null, -1)
|
|
8654
8645
|
])], 2))
|
|
8655
8646
|
]),
|
|
8656
|
-
f.value ? (v(), y("div",
|
|
8647
|
+
f.value ? (v(), y("div", Vv, [
|
|
8657
8648
|
s("ul", null, [
|
|
8658
8649
|
(v(!0), y(Z, null, oe(o.value, (M) => (v(), y("li", {
|
|
8659
8650
|
key: M,
|
|
8660
8651
|
class: "px-3 py-2 cursor-pointer hover:bg-gray-100",
|
|
8661
8652
|
onClick: (b) => h(M)
|
|
8662
|
-
}, q(p(M)), 9,
|
|
8653
|
+
}, q(p(M)), 9, Uv))), 128))
|
|
8663
8654
|
])
|
|
8664
8655
|
])) : W("", !0)
|
|
8665
8656
|
], 512)) : W("", !0),
|
|
8666
|
-
s("div",
|
|
8657
|
+
s("div", qv, [
|
|
8667
8658
|
Ye(s("input", {
|
|
8668
8659
|
"onUpdate:modelValue": L[1] || (L[1] = (M) => u.value = M),
|
|
8669
8660
|
placeholder: l.value,
|
|
8670
8661
|
type: "text",
|
|
8671
8662
|
class: "vs-input transition-all border block w-full border-gray-200 rounded-md focus:border-blue-100 border-solid !pr-8 py-1.5 pl-3 text-sm"
|
|
8672
|
-
}, null, 8,
|
|
8663
|
+
}, null, 8, Hv), [
|
|
8673
8664
|
[
|
|
8674
8665
|
$t,
|
|
8675
8666
|
u.value,
|
|
@@ -8701,7 +8692,7 @@ const pf = {
|
|
|
8701
8692
|
], 32)
|
|
8702
8693
|
]));
|
|
8703
8694
|
}
|
|
8704
|
-
}), fr = /* @__PURE__ */ ce(
|
|
8695
|
+
}), fr = /* @__PURE__ */ ce(Wv, [["__scopeId", "data-v-85962cbc"]]), Kv = "https://watergis.github.io/mapbox-gl-export/mapbox-gl-export.css", Gv = "https://watergis.github.io/mapbox-gl-export/mapbox-gl-export.js", Xv = /* @__PURE__ */ ue({
|
|
8705
8696
|
__name: "MapPrintControl",
|
|
8706
8697
|
setup(e) {
|
|
8707
8698
|
const { map: t, ready: n, addControl: r, removeControl: o } = Re(), l = z(null), i = z(null), u = z(null), f = z(null);
|
|
@@ -8828,9 +8819,9 @@ const pf = {
|
|
|
8828
8819
|
await (n == null ? void 0 : n());
|
|
8829
8820
|
const b = t.value;
|
|
8830
8821
|
if (!b) return;
|
|
8831
|
-
a(
|
|
8822
|
+
a(Kv), h();
|
|
8832
8823
|
try {
|
|
8833
|
-
await p(
|
|
8824
|
+
await p(Gv);
|
|
8834
8825
|
} catch (D) {
|
|
8835
8826
|
console.warn("[MapPrintControl] load error", D);
|
|
8836
8827
|
return;
|
|
@@ -8870,7 +8861,7 @@ const pf = {
|
|
|
8870
8861
|
class: "map-print-control"
|
|
8871
8862
|
}, null, 512));
|
|
8872
8863
|
}
|
|
8873
|
-
}),
|
|
8864
|
+
}), Qv = /* @__PURE__ */ ce(Xv, [["__scopeId", "data-v-89156246"]]), Jv = { class: "map-center-control" }, em = /* @__PURE__ */ ue({
|
|
8874
8865
|
__name: "MapCenterControl",
|
|
8875
8866
|
props: {
|
|
8876
8867
|
center: {},
|
|
@@ -8932,7 +8923,7 @@ const pf = {
|
|
|
8932
8923
|
})(), h = l.value ?? f.getZoom();
|
|
8933
8924
|
f.flyTo({ center: d, zoom: h });
|
|
8934
8925
|
}
|
|
8935
|
-
return (f, d) => (v(), y("div",
|
|
8926
|
+
return (f, d) => (v(), y("div", Jv, [
|
|
8936
8927
|
s("button", {
|
|
8937
8928
|
id: "center-btn",
|
|
8938
8929
|
type: "button",
|
|
@@ -8940,7 +8931,7 @@ const pf = {
|
|
|
8940
8931
|
"aria-label": "Повернути центр",
|
|
8941
8932
|
onClick: Ze(u, ["stop"])
|
|
8942
8933
|
}, [
|
|
8943
|
-
ae(se(
|
|
8934
|
+
ae(se(vo), { class: "w-4 h-4" }),
|
|
8944
8935
|
d[0] || (d[0] = s("span", {
|
|
8945
8936
|
class: "absolute left-full ml-3 px-3 py-1.5 bg-gray-900 text-white text-sm font-medium rounded-md opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 pointer-events-none transition-opacity duration-200 whitespace-nowrap",
|
|
8946
8937
|
"aria-hidden": "true"
|
|
@@ -8948,17 +8939,17 @@ const pf = {
|
|
|
8948
8939
|
])
|
|
8949
8940
|
]));
|
|
8950
8941
|
}
|
|
8951
|
-
}),
|
|
8942
|
+
}), tm = /* @__PURE__ */ ce(em, [["__scopeId", "data-v-d21bee3d"]]), nm = { class: "cursor-coordinates" }, rm = { class: "cursor-coordinates__text" }, om = /* @__PURE__ */ ue({
|
|
8952
8943
|
__name: "MapCursorCoordinates",
|
|
8953
8944
|
props: {
|
|
8954
8945
|
coordinates: {}
|
|
8955
8946
|
},
|
|
8956
8947
|
setup(e) {
|
|
8957
|
-
return (t, n) => (v(), y("div",
|
|
8958
|
-
s("span",
|
|
8948
|
+
return (t, n) => (v(), y("div", nm, [
|
|
8949
|
+
s("span", rm, q(e.coordinates), 1)
|
|
8959
8950
|
]));
|
|
8960
8951
|
}
|
|
8961
|
-
}),
|
|
8952
|
+
}), lm = /* @__PURE__ */ ce(om, [["__scopeId", "data-v-334315d9"]]), im = { class: "minimap__wrapper" }, Ht = "minimap-viewport", sm = "minimap-viewport-layer", am = /* @__PURE__ */ ue({
|
|
8962
8953
|
__name: "MapMiniMap",
|
|
8963
8954
|
props: {
|
|
8964
8955
|
mapContext: {},
|
|
@@ -9060,7 +9051,7 @@ const pf = {
|
|
|
9060
9051
|
properties: {}
|
|
9061
9052
|
}
|
|
9062
9053
|
}), r.value.addLayer({
|
|
9063
|
-
id:
|
|
9054
|
+
id: sm,
|
|
9064
9055
|
type: "fill",
|
|
9065
9056
|
source: Ht,
|
|
9066
9057
|
paint: {
|
|
@@ -9172,11 +9163,11 @@ const pf = {
|
|
|
9172
9163
|
class: "minimap__button",
|
|
9173
9164
|
onClick: x
|
|
9174
9165
|
}, [
|
|
9175
|
-
ae(se(
|
|
9166
|
+
ae(se(fo))
|
|
9176
9167
|
]),
|
|
9177
9168
|
ae(Cn, { name: "minimap-slide" }, {
|
|
9178
9169
|
default: Te(() => [
|
|
9179
|
-
Ye(s("div",
|
|
9170
|
+
Ye(s("div", im, [
|
|
9180
9171
|
s("div", {
|
|
9181
9172
|
ref_key: "minimapRoot",
|
|
9182
9173
|
ref: n,
|
|
@@ -9192,26 +9183,26 @@ const pf = {
|
|
|
9192
9183
|
})
|
|
9193
9184
|
], 2));
|
|
9194
9185
|
}
|
|
9195
|
-
}),
|
|
9186
|
+
}), um = /* @__PURE__ */ ce(am, [["__scopeId", "data-v-3ce09bde"]]), cm = {
|
|
9196
9187
|
key: 1,
|
|
9197
9188
|
class: "absolute bottom-4 right-4 z-[80] flex items-end gap-2"
|
|
9198
|
-
},
|
|
9189
|
+
}, dm = { class: "absolute top-[103px] right-[6.5px] z-[80] flex flex-col items-end gap-1" }, fm = { class: "map-widget__overlay-grid" }, pm = {
|
|
9199
9190
|
key: 0,
|
|
9200
9191
|
id: "map-filter-popover-host",
|
|
9201
9192
|
class: "map-widget__filter-host"
|
|
9202
|
-
},
|
|
9193
|
+
}, vm = {
|
|
9203
9194
|
key: 1,
|
|
9204
9195
|
class: "map-widget__stack-wrapper map-widget__stack-wrapper--top"
|
|
9205
|
-
},
|
|
9196
|
+
}, mm = { class: "map-widget__stack" }, gm = {
|
|
9206
9197
|
key: 2,
|
|
9207
9198
|
class: "map-widget__stack-wrapper map-widget__stack-wrapper--bottom mb-5"
|
|
9208
|
-
},
|
|
9199
|
+
}, hm = { class: "map-widget__stack map-widget__stack--bottom" }, ym = {
|
|
9209
9200
|
key: 0,
|
|
9210
9201
|
class: "map-widget__state"
|
|
9211
|
-
},
|
|
9202
|
+
}, xm = {
|
|
9212
9203
|
key: 1,
|
|
9213
9204
|
class: "map-widget__state map-widget__state--error"
|
|
9214
|
-
},
|
|
9205
|
+
}, bm = /* @__PURE__ */ ue({
|
|
9215
9206
|
__name: "MapWidget",
|
|
9216
9207
|
props: {
|
|
9217
9208
|
id: {},
|
|
@@ -9410,7 +9401,7 @@ const pf = {
|
|
|
9410
9401
|
class: "map-widget",
|
|
9411
9402
|
style: Ve(p.value)
|
|
9412
9403
|
}, [
|
|
9413
|
-
ae(
|
|
9404
|
+
ae(Vr, {
|
|
9414
9405
|
ref_key: "mapViewRef",
|
|
9415
9406
|
ref: o,
|
|
9416
9407
|
class: "map-widget__view"
|
|
@@ -9418,39 +9409,39 @@ const pf = {
|
|
|
9418
9409
|
default: Te(() => {
|
|
9419
9410
|
var ie, pe, le, be;
|
|
9420
9411
|
return [
|
|
9421
|
-
N.value ? (v(), re(
|
|
9412
|
+
N.value ? (v(), re(Yr, {
|
|
9422
9413
|
key: 0,
|
|
9423
9414
|
"layer-id": "app-boundary",
|
|
9424
9415
|
boundary: N.value.boundary,
|
|
9425
9416
|
katottg: N.value.katottg
|
|
9426
9417
|
}, null, 8, ["boundary", "katottg"])) : W("", !0),
|
|
9427
|
-
L.value ? (v(), y("div",
|
|
9428
|
-
k.value ? (v(), re(
|
|
9418
|
+
L.value ? (v(), y("div", cm, [
|
|
9419
|
+
k.value ? (v(), re(lm, {
|
|
9429
9420
|
key: 0,
|
|
9430
9421
|
coordinates: k.value
|
|
9431
9422
|
}, null, 8, ["coordinates"])) : W("", !0),
|
|
9432
|
-
ae(
|
|
9423
|
+
ae(um, {
|
|
9433
9424
|
"map-context": L.value,
|
|
9434
9425
|
options: M.value
|
|
9435
9426
|
}, null, 8, ["map-context", "options"])
|
|
9436
9427
|
])) : W("", !0),
|
|
9437
|
-
s("div",
|
|
9438
|
-
h.value.includes("home") ? (v(), re(
|
|
9428
|
+
s("div", dm, [
|
|
9429
|
+
h.value.includes("home") ? (v(), re(tm, {
|
|
9439
9430
|
key: 0,
|
|
9440
9431
|
center: ((ie = l.value) == null ? void 0 : ie.center) || ((pe = i.value) == null ? void 0 : pe.center) || null,
|
|
9441
9432
|
zoom: ((le = l.value) == null ? void 0 : le.zoom) ?? ((be = i.value) == null ? void 0 : be.zoom) ?? null
|
|
9442
9433
|
}, null, 8, ["center", "zoom"])) : W("", !0),
|
|
9443
|
-
h.value.includes("print") ? (v(), re(
|
|
9434
|
+
h.value.includes("print") ? (v(), re(Qv, { key: 1 })) : W("", !0)
|
|
9444
9435
|
]),
|
|
9445
9436
|
d.value ? (v(), y(Z, { key: 2 }, [
|
|
9446
|
-
s("div",
|
|
9437
|
+
s("div", fm, [
|
|
9447
9438
|
(v(), y(Z, null, oe(S, (De) => s("div", {
|
|
9448
9439
|
key: De,
|
|
9449
9440
|
class: ye(["map-widget__side", `map-widget__side--${De}`])
|
|
9450
9441
|
}, [
|
|
9451
|
-
De === "left" ? (v(), y("div",
|
|
9452
|
-
O.value[De].top.length ? (v(), y("div",
|
|
9453
|
-
s("div",
|
|
9442
|
+
De === "left" ? (v(), y("div", pm)) : W("", !0),
|
|
9443
|
+
O.value[De].top.length ? (v(), y("div", vm, [
|
|
9444
|
+
s("div", mm, [
|
|
9454
9445
|
(v(!0), y(Z, null, oe(O.value[De].top, (ee) => {
|
|
9455
9446
|
var Ke, Ge, Ae, ft, lt, pt, Be, vt;
|
|
9456
9447
|
return Ye((v(), y("div", {
|
|
@@ -9497,8 +9488,8 @@ const pf = {
|
|
|
9497
9488
|
}), 128))
|
|
9498
9489
|
])
|
|
9499
9490
|
])) : W("", !0),
|
|
9500
|
-
O.value[De].bottom.length ? (v(), y("div",
|
|
9501
|
-
s("div",
|
|
9491
|
+
O.value[De].bottom.length ? (v(), y("div", gm, [
|
|
9492
|
+
s("div", hm, [
|
|
9502
9493
|
(v(!0), y(Z, null, oe(O.value[De].bottom, (ee) => {
|
|
9503
9494
|
var Ke, Ge, Ae, ft, lt, pt, Be, vt;
|
|
9504
9495
|
return Ye((v(), y("div", {
|
|
@@ -9547,29 +9538,29 @@ const pf = {
|
|
|
9547
9538
|
])) : W("", !0)
|
|
9548
9539
|
], 2)), 64))
|
|
9549
9540
|
]),
|
|
9550
|
-
ae(
|
|
9551
|
-
ae(
|
|
9541
|
+
ae(Ur),
|
|
9542
|
+
ae(Hr, { "map-id": a.value }, null, 8, ["map-id"])
|
|
9552
9543
|
], 64)) : W("", !0)
|
|
9553
9544
|
];
|
|
9554
9545
|
}),
|
|
9555
9546
|
_: 1
|
|
9556
9547
|
}, 512),
|
|
9557
|
-
u.value ? (v(), y("div",
|
|
9548
|
+
u.value ? (v(), y("div", ym, "Завантаження карти…")) : f.value ? (v(), y("div", xm, q(f.value), 1)) : W("", !0)
|
|
9558
9549
|
], 4));
|
|
9559
9550
|
}
|
|
9560
|
-
}),
|
|
9561
|
-
function
|
|
9562
|
-
e.component("MapCustom",
|
|
9551
|
+
}), _m = /* @__PURE__ */ ce(bm, [["__scopeId", "data-v-8a5bc566"]]);
|
|
9552
|
+
function Lm(e) {
|
|
9553
|
+
e.component("MapCustom", _m);
|
|
9563
9554
|
}
|
|
9564
9555
|
export {
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9568
|
-
|
|
9569
|
-
|
|
9570
|
-
|
|
9571
|
-
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9556
|
+
_m as MapWidget,
|
|
9557
|
+
Cm as Register,
|
|
9558
|
+
Am as Service,
|
|
9559
|
+
_m as default,
|
|
9560
|
+
Lm as install,
|
|
9561
|
+
Di as template1,
|
|
9562
|
+
es as template2,
|
|
9563
|
+
vs as template3,
|
|
9564
|
+
Ls as template4,
|
|
9565
|
+
Ws as template5
|
|
9575
9566
|
};
|