ablok-components 0.3.57 → 0.3.58
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/ablok-components.es.js +310 -309
- package/dist/ablok-components.umd.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, openBlock as c, createElementBlock as g, normalizeClass as D, createElementVNode as A, renderSlot as
|
|
1
|
+
import { defineComponent as O, openBlock as c, createElementBlock as g, normalizeClass as D, createElementVNode as A, renderSlot as H, useTemplateRef as et, ref as C, onBeforeMount as ot, createBlock as U, createCommentVNode as M, computed as $, resolveDynamicComponent as ce, withCtx as _, toDisplayString as z, unref as q, createVNode as I, watch as W, onMounted as ne, withDirectives as ye, mergeProps as wt, vModelDynamic as Et, Transition as tt, vModelText as Ue, vModelCheckbox as it, shallowRef as Ye, Fragment as ae, renderList as ue, reactive as Tt, onBeforeUnmount as Ce, normalizeStyle as $e, vModelRadio as zt, withModifiers as Z, nextTick as Fe, vShow as ft, markRaw as Ee, createTextVNode as Se, isRef as nt, useSlots as Nt, TransitionGroup as $t, getCurrentInstance as Ht } from "vue";
|
|
2
2
|
import Ct from "dompurify";
|
|
3
3
|
import { useI18n as st } from "vue-i18n";
|
|
4
4
|
import { debounce as At } from "lodash";
|
|
@@ -75,7 +75,7 @@ const Rt = {
|
|
|
75
75
|
])
|
|
76
76
|
])
|
|
77
77
|
], -1)),
|
|
78
|
-
|
|
78
|
+
H(r.$slots, "default")
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
81
|
}), Ut = ["src", "alt"], Te = /* @__PURE__ */ O({
|
|
@@ -161,7 +161,7 @@ const Rt = {
|
|
|
161
161
|
class: D(["headline", `${e.size} headline--${e.size}${e.className || ""}`])
|
|
162
162
|
}, {
|
|
163
163
|
default: _(() => [
|
|
164
|
-
|
|
164
|
+
H(l.$slots, "default", {}, () => [
|
|
165
165
|
A("span", {
|
|
166
166
|
class: "headline__text",
|
|
167
167
|
innerHTML: e.text
|
|
@@ -321,8 +321,8 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
321
321
|
"aria-controls": `target${e.id}`,
|
|
322
322
|
onClick: t
|
|
323
323
|
}, [
|
|
324
|
-
|
|
325
|
-
A("span", ea,
|
|
324
|
+
H(o.$slots, "toggle", {}, () => [
|
|
325
|
+
A("span", ea, z(e.title), 1)
|
|
326
326
|
])
|
|
327
327
|
], 10, Kt)
|
|
328
328
|
], 8, Xt),
|
|
@@ -335,7 +335,7 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
335
335
|
A("div", {
|
|
336
336
|
class: D(["accordion-body", e.noPadding ? "p-0" : ""])
|
|
337
337
|
}, [
|
|
338
|
-
|
|
338
|
+
H(o.$slots, "body", {}, () => [
|
|
339
339
|
A("article", { innerHTML: q(a) }, null, 8, aa)
|
|
340
340
|
])
|
|
341
341
|
], 2)
|
|
@@ -350,7 +350,7 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
350
350
|
}, la = {}, oa = { class: "accordion" };
|
|
351
351
|
function ia(e, r) {
|
|
352
352
|
return c(), g("div", oa, [
|
|
353
|
-
|
|
353
|
+
H(e.$slots, "default")
|
|
354
354
|
]);
|
|
355
355
|
}
|
|
356
356
|
const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"], Aa = /* @__PURE__ */ O({
|
|
@@ -420,10 +420,10 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
420
420
|
"btn-sm": e.size === "small"
|
|
421
421
|
}])
|
|
422
422
|
}, [
|
|
423
|
-
e.pending ?
|
|
423
|
+
e.pending ? H(l.$slots, "pending-icon", { key: 0 }, () => [
|
|
424
424
|
I(rt)
|
|
425
425
|
]) : M("", !0),
|
|
426
|
-
|
|
426
|
+
H(l.$slots, "default", {}, () => [
|
|
427
427
|
e.icon ? (c(), U(Q, {
|
|
428
428
|
key: 0,
|
|
429
429
|
symbol: e.icon,
|
|
@@ -432,7 +432,7 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
432
432
|
n.value ? (c(), g("span", {
|
|
433
433
|
key: 1,
|
|
434
434
|
class: D(["base-button__caption", { "icon-padding": e.icon }])
|
|
435
|
-
},
|
|
435
|
+
}, z(e.caption), 3)) : M("", !0)
|
|
436
436
|
])
|
|
437
437
|
], 10, sa));
|
|
438
438
|
}
|
|
@@ -563,7 +563,7 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
563
563
|
class: D(["input", `input--${e.type}${t.value ? "" : " input--invalid"}`])
|
|
564
564
|
}, [
|
|
565
565
|
A("div", ra, [
|
|
566
|
-
|
|
566
|
+
H(s.$slots, "input-prepend", { slotScope: "props" }),
|
|
567
567
|
ye(A("input", wt({
|
|
568
568
|
ref_key: "input",
|
|
569
569
|
ref: a,
|
|
@@ -590,9 +590,9 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
590
590
|
}), null, 16, ua), [
|
|
591
591
|
[Et, u.value]
|
|
592
592
|
]),
|
|
593
|
-
|
|
593
|
+
H(s.$slots, "input-append", { slotScope: "props" })
|
|
594
594
|
]),
|
|
595
|
-
|
|
595
|
+
H(s.$slots, "label", {}, () => [
|
|
596
596
|
e.label ? (c(), g("label", {
|
|
597
597
|
key: 0,
|
|
598
598
|
for: e.id,
|
|
@@ -604,7 +604,7 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
604
604
|
]),
|
|
605
605
|
I(tt, { name: "fade" }, {
|
|
606
606
|
default: _(() => [
|
|
607
|
-
!t.value && o.value ? (c(), g("div", ca,
|
|
607
|
+
!t.value && o.value ? (c(), g("div", ca, z(o.value), 1)) : M("", !0)
|
|
608
608
|
]),
|
|
609
609
|
_: 1
|
|
610
610
|
})
|
|
@@ -680,7 +680,7 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
return (t, o) => (c(), g("div", ma, [
|
|
683
|
-
|
|
683
|
+
H(t.$slots, "input-prepend"),
|
|
684
684
|
ye(A("textarea", {
|
|
685
685
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
686
686
|
type: e.type,
|
|
@@ -697,8 +697,8 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
697
697
|
}, null, 8, fa), [
|
|
698
698
|
[Ue, a.value]
|
|
699
699
|
]),
|
|
700
|
-
|
|
701
|
-
|
|
700
|
+
H(t.$slots, "input-append"),
|
|
701
|
+
H(t.$slots, "label", {}, () => [
|
|
702
702
|
A("label", {
|
|
703
703
|
for: e.id,
|
|
704
704
|
class: D(["input__label", {
|
|
@@ -851,7 +851,7 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
851
851
|
class: D(["input", `input--${e.type}`])
|
|
852
852
|
}, [
|
|
853
853
|
A("div", ya, [
|
|
854
|
-
|
|
854
|
+
H(t.$slots, "input-prepend", { slotScope: "props" }),
|
|
855
855
|
ye(A("input", {
|
|
856
856
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
857
857
|
type: "datetime-local",
|
|
@@ -867,9 +867,9 @@ const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
867
867
|
}, null, 8, ba), [
|
|
868
868
|
[Ue, a.value]
|
|
869
869
|
]),
|
|
870
|
-
|
|
870
|
+
H(t.$slots, "input-append", { slotScope: "props" })
|
|
871
871
|
]),
|
|
872
|
-
|
|
872
|
+
H(t.$slots, "label", {}, () => [
|
|
873
873
|
e.label ? (c(), g("label", {
|
|
874
874
|
key: 0,
|
|
875
875
|
for: e.id,
|
|
@@ -2252,20 +2252,20 @@ const vt = {
|
|
|
2252
2252
|
function v(p) {
|
|
2253
2253
|
if (!p)
|
|
2254
2254
|
return;
|
|
2255
|
-
const h = p.getDate(), k = p.getMonth() + 1, P = p.getFullYear(), B = p.getMinutes(),
|
|
2255
|
+
const h = p.getDate(), k = p.getMonth() + 1, P = p.getFullYear(), B = p.getMinutes(), N = p.getHours();
|
|
2256
2256
|
switch (u.value) {
|
|
2257
2257
|
case "de":
|
|
2258
|
-
return `${h}.${k}.${P} ${
|
|
2258
|
+
return `${h}.${k}.${P} ${N < 10 ? "0" + N : N}:${B < 10 ? "0" + B : B}`;
|
|
2259
2259
|
case "fr":
|
|
2260
|
-
return `${h}/${k}/${P} ${
|
|
2260
|
+
return `${h}/${k}/${P} ${N < 10 ? "0" + N : N}:${B < 10 ? "0" + B : B}`;
|
|
2261
2261
|
default:
|
|
2262
|
-
return `${k}/${h}/${P} ${
|
|
2262
|
+
return `${k}/${h}/${P} ${N < 10 ? "0" + N : N}:${B < 10 ? "0" + B : B}`;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
function b(p) {
|
|
2266
2266
|
if (!p) return null;
|
|
2267
|
-
const h = p instanceof Date ? new Date(p) : /* @__PURE__ */ new Date(`${p}Z`), k = h.getFullYear(), P = String(h.getMonth() + 1).padStart(2, "0"), B = String(h.getDate()).padStart(2, "0"),
|
|
2268
|
-
return `${k}-${P}-${B}T${
|
|
2267
|
+
const h = p instanceof Date ? new Date(p) : /* @__PURE__ */ new Date(`${p}Z`), k = h.getFullYear(), P = String(h.getMonth() + 1).padStart(2, "0"), B = String(h.getDate()).padStart(2, "0"), N = String(h.getHours()).padStart(2, "0"), K = String(h.getMinutes()).padStart(2, "0"), ge = String(h.getSeconds()).padStart(2, "0");
|
|
2268
|
+
return `${k}-${P}-${B}T${N}:${K}:${ge}`;
|
|
2269
2269
|
}
|
|
2270
2270
|
function w(p) {
|
|
2271
2271
|
return p ? (p instanceof Date ? new Date(p) : new Date(String(p))).toISOString().split(".")[0] : null;
|
|
@@ -2274,7 +2274,7 @@ const vt = {
|
|
|
2274
2274
|
return (p, h) => (c(), g("div", {
|
|
2275
2275
|
class: D(["input", "input--datepicker"])
|
|
2276
2276
|
}, [
|
|
2277
|
-
|
|
2277
|
+
H(p.$slots, "label", {}, () => [
|
|
2278
2278
|
A("div", ol, [
|
|
2279
2279
|
A("div", il, [
|
|
2280
2280
|
e.label ? (c(), g("label", {
|
|
@@ -2288,7 +2288,7 @@ const vt = {
|
|
|
2288
2288
|
]),
|
|
2289
2289
|
e.textInput ? (c(), g("div", Al, [
|
|
2290
2290
|
A("div", rl, [
|
|
2291
|
-
|
|
2291
|
+
H(p.$slots, "input-prepend", { slotScope: "props" }),
|
|
2292
2292
|
e.range && !e.textRange ? (c(), g("div", ul, [
|
|
2293
2293
|
A("div", dl, [
|
|
2294
2294
|
(c(), U(ce(n.value), {
|
|
@@ -2332,7 +2332,7 @@ const vt = {
|
|
|
2332
2332
|
required: e.required,
|
|
2333
2333
|
"auto-apply": !0
|
|
2334
2334
|
}, null, 8, ["uid", "modelValue", "locale", "range", "text-input", "disabled", "read-only", "required"])),
|
|
2335
|
-
|
|
2335
|
+
H(p.$slots, "input-append", { slotScope: "props" })
|
|
2336
2336
|
])
|
|
2337
2337
|
])) : M("", !0),
|
|
2338
2338
|
e.inline ? (c(), g("div", ml, [
|
|
@@ -2453,10 +2453,10 @@ const vt = {
|
|
|
2453
2453
|
label: e.label
|
|
2454
2454
|
}, {
|
|
2455
2455
|
"input-prepend": _((i) => [
|
|
2456
|
-
|
|
2456
|
+
H(t.$slots, "input-prepend", { slotScope: "props" })
|
|
2457
2457
|
]),
|
|
2458
2458
|
"input-append": _((i) => [
|
|
2459
|
-
|
|
2459
|
+
H(t.$slots, "input-append", { slotScope: "props" }, () => [
|
|
2460
2460
|
e.confirm && e.modelValue === e.password ? (c(), U(Q, {
|
|
2461
2461
|
key: 0,
|
|
2462
2462
|
symbol: "check",
|
|
@@ -2764,7 +2764,7 @@ const vt = {
|
|
|
2764
2764
|
required: e.required,
|
|
2765
2765
|
onChange: (u) => l(o)
|
|
2766
2766
|
}, null, 42, Cl),
|
|
2767
|
-
|
|
2767
|
+
H(a.$slots, "option-label", {
|
|
2768
2768
|
option: o,
|
|
2769
2769
|
index: i
|
|
2770
2770
|
}, () => [
|
|
@@ -2775,11 +2775,11 @@ const vt = {
|
|
|
2775
2775
|
}, null, 8, kl)
|
|
2776
2776
|
])
|
|
2777
2777
|
], 2))), 128)),
|
|
2778
|
-
|
|
2778
|
+
H(a.$slots, "label", {}, () => [
|
|
2779
2779
|
e.label ? (c(), g("label", {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
for: e.id
|
|
2782
|
-
},
|
|
2782
|
+
}, z(e.label), 9, Sl)) : M("", !0)
|
|
2783
2783
|
])
|
|
2784
2784
|
]));
|
|
2785
2785
|
}
|
|
@@ -2848,7 +2848,7 @@ const vt = {
|
|
|
2848
2848
|
for: `${e.id}-${i.index}`,
|
|
2849
2849
|
class: "d-block btn btn-outline-primary p-3 fw-bold",
|
|
2850
2850
|
role: "button"
|
|
2851
|
-
},
|
|
2851
|
+
}, z(i.option.text), 9, Ml)
|
|
2852
2852
|
]),
|
|
2853
2853
|
_: 1
|
|
2854
2854
|
}, 8, ["modelValue", "options", "name", "id", "disabled", "required"])
|
|
@@ -2947,7 +2947,7 @@ const vt = {
|
|
|
2947
2947
|
disabled: e.disabled
|
|
2948
2948
|
}, null, 40, Il),
|
|
2949
2949
|
A("div", Ll, [
|
|
2950
|
-
|
|
2950
|
+
H(u.$slots, "input-prepend"),
|
|
2951
2951
|
A("input", {
|
|
2952
2952
|
type: "text",
|
|
2953
2953
|
value: i.value,
|
|
@@ -2956,19 +2956,19 @@ const vt = {
|
|
|
2956
2956
|
class: "form-control",
|
|
2957
2957
|
disabled: e.disabled
|
|
2958
2958
|
}, null, 8, Dl),
|
|
2959
|
-
|
|
2959
|
+
H(u.$slots, "input-append", {}, () => [
|
|
2960
2960
|
A("label", {
|
|
2961
2961
|
for: e.id,
|
|
2962
2962
|
disabled: e.disabled
|
|
2963
2963
|
}, [
|
|
2964
|
-
|
|
2965
|
-
A("span", Pl,
|
|
2964
|
+
H(u.$slots, "button", {}, () => [
|
|
2965
|
+
A("span", Pl, z(u.$t("common.selectFile")), 1)
|
|
2966
2966
|
])
|
|
2967
2967
|
], 8, Vl)
|
|
2968
2968
|
])
|
|
2969
2969
|
]),
|
|
2970
2970
|
A("label", { for: e.id }, [
|
|
2971
|
-
|
|
2971
|
+
H(u.$slots, "label", {}, () => [
|
|
2972
2972
|
A("span", {
|
|
2973
2973
|
class: "input__label",
|
|
2974
2974
|
innerHTML: q(re)(`${e.label}${e.required ? " *" : ""}`)
|
|
@@ -2990,7 +2990,7 @@ const vt = {
|
|
|
2990
2990
|
return ne(() => {
|
|
2991
2991
|
window !== void 0 && (r.value = !0);
|
|
2992
2992
|
}), (n, l) => r.value ? (c(), g("div", Tl, [
|
|
2993
|
-
|
|
2993
|
+
H(n.$slots, "default", {}, () => [
|
|
2994
2994
|
A("div", {
|
|
2995
2995
|
class: "custom-html__content",
|
|
2996
2996
|
innerHTML: e.content
|
|
@@ -3203,8 +3203,8 @@ const vt = {
|
|
|
3203
3203
|
},
|
|
3204
3204
|
renderHTML({ HTMLAttributes: h }) {
|
|
3205
3205
|
if (!h.href) {
|
|
3206
|
-
const { href: k, target: P, rel: B, ...
|
|
3207
|
-
return ["a", s(
|
|
3206
|
+
const { href: k, target: P, rel: B, ...N } = h;
|
|
3207
|
+
return ["a", s(N), 0];
|
|
3208
3208
|
}
|
|
3209
3209
|
return ["a", s(this.options.HTMLAttributes, h), 0];
|
|
3210
3210
|
}
|
|
@@ -3796,7 +3796,7 @@ const vt = {
|
|
|
3796
3796
|
class: "input input-dropdown",
|
|
3797
3797
|
id: `${e.id || e.name}`
|
|
3798
3798
|
}, [
|
|
3799
|
-
|
|
3799
|
+
H(u.$slots, "label", {}, () => [
|
|
3800
3800
|
e.label ? (c(), g("label", {
|
|
3801
3801
|
key: 0,
|
|
3802
3802
|
for: `${e.id || e.name}--dropdown-toggle`,
|
|
@@ -3829,7 +3829,7 @@ const vt = {
|
|
|
3829
3829
|
_: 1
|
|
3830
3830
|
}),
|
|
3831
3831
|
A("span", mo, [
|
|
3832
|
-
A("span", fo,
|
|
3832
|
+
A("span", fo, z(e.toggleCaption || i.value), 1)
|
|
3833
3833
|
])
|
|
3834
3834
|
])
|
|
3835
3835
|
]),
|
|
@@ -3874,7 +3874,7 @@ const vt = {
|
|
|
3874
3874
|
class: "form-check-label flex-grow-1",
|
|
3875
3875
|
onclick: "event.stopPropagation",
|
|
3876
3876
|
for: `${e.name}-${d.value}-${s}`
|
|
3877
|
-
},
|
|
3877
|
+
}, z(d.text), 9, yo)
|
|
3878
3878
|
])
|
|
3879
3879
|
], 2)
|
|
3880
3880
|
]))), 128))
|
|
@@ -3983,7 +3983,7 @@ const vt = {
|
|
|
3983
3983
|
class: "auto-suggest__input",
|
|
3984
3984
|
onFocusCapture: m
|
|
3985
3985
|
}, [
|
|
3986
|
-
|
|
3986
|
+
H(v.$slots, "default", {}, () => [
|
|
3987
3987
|
I(We, wt({
|
|
3988
3988
|
modelValue: o.value,
|
|
3989
3989
|
"onUpdate:modelValue": b[0] || (b[0] = (w) => o.value = w)
|
|
@@ -4213,43 +4213,43 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4213
4213
|
emits: ["update:modelValue"],
|
|
4214
4214
|
setup(e, { expose: r, emit: n }) {
|
|
4215
4215
|
const l = e, a = n, t = C(), o = C(), i = C(!1), u = C([]), m = C(), d = C(), s = C(!1), f = C(!1), v = C(0), b = C(0), w = C(), V = C(l.zoom || 1), p = $(() => ({ ...ht, ...l.resolutions })), h = $(() => Object.values(p.value)[0]);
|
|
4216
|
-
function k(
|
|
4217
|
-
return String(
|
|
4216
|
+
function k(E) {
|
|
4217
|
+
return String(E || "").trim().toLowerCase().replace(/\s+/g, "").replace(/[:/]/g, "x");
|
|
4218
4218
|
}
|
|
4219
4219
|
const P = $(() => {
|
|
4220
4220
|
if (p.value[l.ratio])
|
|
4221
4221
|
return l.ratio;
|
|
4222
|
-
const
|
|
4223
|
-
if (p.value[
|
|
4224
|
-
return
|
|
4225
|
-
}), B = $(() => P.value ? p.value[P.value] : h.value),
|
|
4226
|
-
const
|
|
4227
|
-
return
|
|
4228
|
-
}), K = $(() => u.value.filter((
|
|
4229
|
-
text:
|
|
4230
|
-
value:
|
|
4222
|
+
const E = k(l.ratio);
|
|
4223
|
+
if (p.value[E])
|
|
4224
|
+
return E;
|
|
4225
|
+
}), B = $(() => P.value ? p.value[P.value] : h.value), N = $(() => {
|
|
4226
|
+
const E = P.value ? p.value[P.value] : void 0;
|
|
4227
|
+
return E ? `${E.width} / ${E.height}` : void 0;
|
|
4228
|
+
}), K = $(() => u.value.filter((E) => E.kind === "videoinput")), ge = $(() => u.value.filter((E) => E.kind === "audioinput")), me = $(() => K.value.map((E, F) => ({
|
|
4229
|
+
text: E.label.slice(0, E.label.indexOf("(")) || `Camera ${F + 1}`,
|
|
4230
|
+
value: E.deviceId
|
|
4231
4231
|
}))), ke = $({
|
|
4232
4232
|
get() {
|
|
4233
4233
|
return m.value && m.value.deviceId;
|
|
4234
4234
|
},
|
|
4235
|
-
set(
|
|
4236
|
-
m.value = K.value.find((F) => F.deviceId ===
|
|
4235
|
+
set(E) {
|
|
4236
|
+
m.value = K.value.find((F) => F.deviceId === E);
|
|
4237
4237
|
}
|
|
4238
4238
|
});
|
|
4239
4239
|
$({
|
|
4240
4240
|
get() {
|
|
4241
4241
|
return d.value && d.value.deviceId;
|
|
4242
4242
|
},
|
|
4243
|
-
set(
|
|
4244
|
-
d.value = ge.value.find((F) => F.deviceId ===
|
|
4243
|
+
set(E) {
|
|
4244
|
+
d.value = ge.value.find((F) => F.deviceId === E);
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
4247
|
const ve = $(() => {
|
|
4248
|
-
const
|
|
4249
|
-
return l.enableMirrorCamera &&
|
|
4248
|
+
const E = m.value && K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4249
|
+
return l.enableMirrorCamera && E === 0 ? "mirror-cam" : "";
|
|
4250
4250
|
}), Le = $(() => {
|
|
4251
|
-
const
|
|
4252
|
-
return ve.value ? `${ve.value} mirror-device-${
|
|
4251
|
+
const E = m.value && u.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4252
|
+
return ve.value ? `${ve.value} mirror-device-${E}` : "";
|
|
4253
4253
|
}), { tintRgb: Y, applyFilterToCanvas: Me } = So(l);
|
|
4254
4254
|
function L() {
|
|
4255
4255
|
if (P.value && B.value) {
|
|
@@ -4261,8 +4261,8 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4261
4261
|
const R = At(() => {
|
|
4262
4262
|
L();
|
|
4263
4263
|
}, 300, { trailing: !0, leading: !1 });
|
|
4264
|
-
async function
|
|
4265
|
-
const
|
|
4264
|
+
async function x() {
|
|
4265
|
+
const E = B.value ? { width: B.value.width, height: B.value.height } : void 0, F = E ? E.width / E.height : void 0, oe = {
|
|
4266
4266
|
audio: l.enableAudio && {
|
|
4267
4267
|
...d.value ? { deviceId: d.value.deviceId } : {}
|
|
4268
4268
|
// deviceId: activeAudioDevice.value ? { exact: activeAudioDevice.value } : undefined
|
|
@@ -4270,8 +4270,8 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4270
4270
|
// audio: false,
|
|
4271
4271
|
video: {
|
|
4272
4272
|
...m.value ? { deviceId: m.value.deviceId } : {},
|
|
4273
|
-
width: { ideal:
|
|
4274
|
-
...P.value &&
|
|
4273
|
+
width: { ideal: E?.width },
|
|
4274
|
+
...P.value && E?.height ? { height: { ideal: E.height } } : {},
|
|
4275
4275
|
...P.value && F ? {
|
|
4276
4276
|
aspectRatio: { ideal: F }
|
|
4277
4277
|
} : {}
|
|
@@ -4281,26 +4281,26 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4281
4281
|
console.error(He, "navigator.mediaDevices.getUserMedia: failed");
|
|
4282
4282
|
});
|
|
4283
4283
|
}
|
|
4284
|
-
function
|
|
4284
|
+
function J() {
|
|
4285
4285
|
t.value && t.value.srcObject && t.value.srcObject.getTracks().forEach((F) => {
|
|
4286
4286
|
F.stop();
|
|
4287
4287
|
});
|
|
4288
4288
|
}
|
|
4289
4289
|
async function ee() {
|
|
4290
|
-
return t.value.srcObject = await
|
|
4290
|
+
return t.value.srcObject = await x(), u.value = await navigator.mediaDevices.enumerateDevices(), { stream: t.value.srcObject, devices: u.value };
|
|
4291
4291
|
}
|
|
4292
4292
|
function De() {
|
|
4293
|
-
s.value ? (s.value = !1, f.value = !1,
|
|
4293
|
+
s.value ? (s.value = !1, f.value = !1, J()) : (s.value = !0, ee());
|
|
4294
4294
|
}
|
|
4295
4295
|
function ze() {
|
|
4296
4296
|
if (u.value.length > 1) {
|
|
4297
|
-
|
|
4298
|
-
const
|
|
4299
|
-
m.value = K.value[
|
|
4297
|
+
J();
|
|
4298
|
+
const E = K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4299
|
+
m.value = K.value[E === K.value.length - 1 ? 0 : E + 1], ee();
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
|
-
async function Ne(
|
|
4303
|
-
|
|
4302
|
+
async function Ne(E, F) {
|
|
4303
|
+
J(), E && (!F || E.deviceId !== F.deviceId) && await ee();
|
|
4304
4304
|
}
|
|
4305
4305
|
W(() => m.value, Ne), W(() => d.value, Ne);
|
|
4306
4306
|
function Ve() {
|
|
@@ -4309,16 +4309,16 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4309
4309
|
r({ onCapture: Ve, camera: t.value, zoom: V });
|
|
4310
4310
|
function te() {
|
|
4311
4311
|
f.value = !0;
|
|
4312
|
-
const
|
|
4312
|
+
const E = o.value.getContext("2d"), F = t.value, oe = F && F.srcObject && F.srcObject.getTracks(), { aspectRatio: He, width: Pe, height: je } = oe.length && oe[0].getSettings(), ie = F?.videoWidth || Pe || v.value, fe = F?.videoHeight || je || b.value, de = ie && fe ? ie / fe : He, qe = B.value || { width: ie, height: fe }, Oe = qe?.width || ie, _e = P.value ? qe?.height || fe : Math.round(Oe / de), be = Oe / _e;
|
|
4313
4313
|
if (o.value.width = Oe, o.value.height = _e, !ie || !fe || !de)
|
|
4314
4314
|
return;
|
|
4315
|
-
if (
|
|
4315
|
+
if (E.save(), ve.value && (E.translate(o.value.width, 0), E.scale(-1, 1)), l.enableCropImage) {
|
|
4316
4316
|
let pe = 0, we = 0, le = ie, he = fe;
|
|
4317
4317
|
if (de > be ? (le = fe * be, pe = (ie - le) / 2) : de < be && (he = ie / be, we = (fe - he) / 2), V.value && V.value !== 1) {
|
|
4318
4318
|
const xe = le / V.value, Ie = he / V.value;
|
|
4319
4319
|
pe += (le - xe) / 2, we += (he - Ie) / 2, le = xe, he = Ie;
|
|
4320
4320
|
}
|
|
4321
|
-
|
|
4321
|
+
E.drawImage(
|
|
4322
4322
|
F,
|
|
4323
4323
|
pe,
|
|
4324
4324
|
we,
|
|
@@ -4333,7 +4333,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4333
4333
|
let pe = o.value.width, we = o.value.height, le = 0, he = 0;
|
|
4334
4334
|
if (de > be ? (we = o.value.width / de, he = (o.value.height - we) / 2) : de < be && (pe = o.value.height * de, le = (o.value.width - pe) / 2), V.value && V.value !== 1) {
|
|
4335
4335
|
const xe = ie / V.value, Ie = fe / V.value, y = (ie - xe) / 2, S = (fe - Ie) / 2;
|
|
4336
|
-
ve.value && (le = o.value.width - le - pe),
|
|
4336
|
+
ve.value && (le = o.value.width - le - pe), E.drawImage(
|
|
4337
4337
|
F,
|
|
4338
4338
|
y,
|
|
4339
4339
|
S,
|
|
@@ -4345,7 +4345,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4345
4345
|
we
|
|
4346
4346
|
);
|
|
4347
4347
|
} else
|
|
4348
|
-
ve.value && (le = o.value.width - le - pe),
|
|
4348
|
+
ve.value && (le = o.value.width - le - pe), E.drawImage(
|
|
4349
4349
|
F,
|
|
4350
4350
|
0,
|
|
4351
4351
|
0,
|
|
@@ -4357,12 +4357,12 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4357
4357
|
we
|
|
4358
4358
|
);
|
|
4359
4359
|
}
|
|
4360
|
-
|
|
4360
|
+
E.restore(), Me(E, o.value.width, o.value.height);
|
|
4361
4361
|
const Re = o.value.toDataURL("image/png");
|
|
4362
4362
|
X(Re);
|
|
4363
4363
|
}
|
|
4364
|
-
function X(
|
|
4365
|
-
const F = _t(
|
|
4364
|
+
function X(E) {
|
|
4365
|
+
const F = _t(E);
|
|
4366
4366
|
a("update:modelValue", {
|
|
4367
4367
|
name: `cam-pic-${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
4368
4368
|
id: `cam-pic-${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
@@ -4371,12 +4371,12 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4371
4371
|
});
|
|
4372
4372
|
}
|
|
4373
4373
|
return ne(async () => {
|
|
4374
|
-
|
|
4374
|
+
J(), await ee(), m.value = K.value[0], l.enableAudio && (d.value = ge.value[0]), navigator.mediaDevices.addEventListener("devicechange", async (E) => {
|
|
4375
4375
|
await ee();
|
|
4376
4376
|
}), l.defaultRearCamera && ze(), De(), window.addEventListener("resize", R), L(), await Fe(), i.value = !0;
|
|
4377
4377
|
}), Ce(() => {
|
|
4378
|
-
s.value = !1, f.value = !1,
|
|
4379
|
-
}), (
|
|
4378
|
+
s.value = !1, f.value = !1, J(), window.removeEventListener("resize", R);
|
|
4379
|
+
}), (E, F) => (c(), g("div", {
|
|
4380
4380
|
class: D(["camera", Le.value])
|
|
4381
4381
|
}, [
|
|
4382
4382
|
A("div", Po, [
|
|
@@ -4385,7 +4385,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4385
4385
|
default: _(() => [
|
|
4386
4386
|
A("span", {
|
|
4387
4387
|
class: D("d-block text-center"),
|
|
4388
|
-
innerHTML:
|
|
4388
|
+
innerHTML: E.$t("camera.waitForCameraNotification")
|
|
4389
4389
|
}, null, 8, Eo)
|
|
4390
4390
|
]),
|
|
4391
4391
|
_: 1
|
|
@@ -4393,7 +4393,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4393
4393
|
])),
|
|
4394
4394
|
ye(A("div", {
|
|
4395
4395
|
class: D(["camera__video-wrapper", P.value ? `aspect-ratio--${P.value}` : ""]),
|
|
4396
|
-
style: $e({ aspectRatio:
|
|
4396
|
+
style: $e({ aspectRatio: N.value || void 0, transform: V.value !== 1 ? `scale(${V.value})` : void 0 })
|
|
4397
4397
|
}, [
|
|
4398
4398
|
A("video", {
|
|
4399
4399
|
ref_key: "camera",
|
|
@@ -4454,13 +4454,13 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4454
4454
|
class: "camera__toggle btn btn-primary",
|
|
4455
4455
|
onClick: De
|
|
4456
4456
|
}, [
|
|
4457
|
-
s.value ? (c(), g("span", qo,
|
|
4457
|
+
s.value ? (c(), g("span", qo, z(E.$t("common.pause")), 1)) : (c(), g("span", jo, z(E.$t("common.play")), 1))
|
|
4458
4458
|
]),
|
|
4459
4459
|
A("button", {
|
|
4460
4460
|
type: "button",
|
|
4461
4461
|
class: "camera__capture btn btn-primary",
|
|
4462
4462
|
onClick: Ve
|
|
4463
|
-
},
|
|
4463
|
+
}, z(E.$t("camera.capture")), 1)
|
|
4464
4464
|
])
|
|
4465
4465
|
])
|
|
4466
4466
|
])
|
|
@@ -4468,12 +4468,13 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4468
4468
|
]),
|
|
4469
4469
|
(e.enableSwitchCamera || e.enableSelectDevice) && K.value && K.value.length > 1 ? (c(), g("div", _o, [
|
|
4470
4470
|
A("div", Jo, [
|
|
4471
|
-
|
|
4471
|
+
e.enableSelectDevice ? (c(), U(It, {
|
|
4472
|
+
key: 0,
|
|
4472
4473
|
modelValue: ke.value,
|
|
4473
4474
|
"onUpdate:modelValue": F[1] || (F[1] = (oe) => ke.value = oe),
|
|
4474
4475
|
options: me.value,
|
|
4475
4476
|
class: "w-100"
|
|
4476
|
-
}, null, 8, ["modelValue", "options"])
|
|
4477
|
+
}, null, 8, ["modelValue", "options"])) : M("", !0)
|
|
4477
4478
|
]),
|
|
4478
4479
|
A("div", Go, [
|
|
4479
4480
|
e.enableSwitchCamera ? (c(), g("button", {
|
|
@@ -4643,19 +4644,19 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4643
4644
|
const [L, R] = await Promise.all([
|
|
4644
4645
|
import("@vue-leaflet/vue-leaflet"),
|
|
4645
4646
|
import("leaflet")
|
|
4646
|
-
]);
|
|
4647
|
+
]), x = L.default ?? L, J = R.default ?? R;
|
|
4647
4648
|
i.value = Ee({
|
|
4648
|
-
LCircle: Ee(
|
|
4649
|
-
LMap: Ee(
|
|
4650
|
-
LMarker: Ee(
|
|
4651
|
-
LPopup: Ee(
|
|
4652
|
-
LPolyline: Ee(
|
|
4653
|
-
LTileLayer: Ee(
|
|
4649
|
+
LCircle: Ee(x.LCircle),
|
|
4650
|
+
LMap: Ee(x.LMap),
|
|
4651
|
+
LMarker: Ee(x.LMarker),
|
|
4652
|
+
LPopup: Ee(x.LPopup),
|
|
4653
|
+
LPolyline: Ee(x.LPolyline),
|
|
4654
|
+
LTileLayer: Ee(x.LTileLayer)
|
|
4654
4655
|
}), u.value = {
|
|
4655
|
-
list: n("list",
|
|
4656
|
-
selected: n("selected",
|
|
4657
|
-
search: n("search",
|
|
4658
|
-
user: n("user",
|
|
4656
|
+
list: n("list", J.divIcon),
|
|
4657
|
+
selected: n("selected", J.divIcon),
|
|
4658
|
+
search: n("search", J.divIcon),
|
|
4659
|
+
user: n("user", J.divIcon)
|
|
4659
4660
|
};
|
|
4660
4661
|
}), W(() => t.zoom, (L) => {
|
|
4661
4662
|
d.value = L;
|
|
@@ -4683,10 +4684,10 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4683
4684
|
);
|
|
4684
4685
|
const f = $(() => B(t.userLocation)), v = $(() => B(t.selectionRadiusCenter) || s.value), b = $(() => {
|
|
4685
4686
|
const L = (t.markers || []).map((R) => {
|
|
4686
|
-
const
|
|
4687
|
-
return
|
|
4687
|
+
const x = B(R);
|
|
4688
|
+
return x ? {
|
|
4688
4689
|
...R,
|
|
4689
|
-
...
|
|
4690
|
+
...x,
|
|
4690
4691
|
type: R.type || (s.value && K(R, s.value) ? "selected" : "list")
|
|
4691
4692
|
} : null;
|
|
4692
4693
|
}).filter((R) => !!R);
|
|
@@ -4696,7 +4697,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4696
4697
|
type: "search",
|
|
4697
4698
|
...s.value
|
|
4698
4699
|
}), L;
|
|
4699
|
-
}), w = $(() => (t.routeCoordinates || []).map((L) =>
|
|
4700
|
+
}), w = $(() => (t.routeCoordinates || []).map((L) => N(L)).filter((L) => !!L)), V = $(() => {
|
|
4700
4701
|
const L = B(t.center) || s.value || B(t.markers[0]) || l;
|
|
4701
4702
|
return [L.lat, L.lng];
|
|
4702
4703
|
}), p = $(() => {
|
|
@@ -4729,20 +4730,20 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4729
4730
|
function B(L) {
|
|
4730
4731
|
if (!L)
|
|
4731
4732
|
return null;
|
|
4732
|
-
const R = Number(L.lat),
|
|
4733
|
-
return Number.isNaN(R) || Number.isNaN(
|
|
4733
|
+
const R = Number(L.lat), x = Number(L.lng);
|
|
4734
|
+
return Number.isNaN(R) || Number.isNaN(x) ? null : { lat: R, lng: x };
|
|
4734
4735
|
}
|
|
4735
|
-
function
|
|
4736
|
+
function N(L) {
|
|
4736
4737
|
if (Array.isArray(L)) {
|
|
4737
|
-
const
|
|
4738
|
-
return Number.isFinite(
|
|
4738
|
+
const x = Number(L[0]), J = Number(L[1]);
|
|
4739
|
+
return Number.isFinite(x) && Number.isFinite(J) ? [x, J] : null;
|
|
4739
4740
|
}
|
|
4740
4741
|
const R = B(L);
|
|
4741
4742
|
return R ? [R.lat, R.lng] : null;
|
|
4742
4743
|
}
|
|
4743
4744
|
function K(L, R) {
|
|
4744
|
-
const
|
|
4745
|
-
return !
|
|
4745
|
+
const x = B(L), J = B(R);
|
|
4746
|
+
return !x || !J ? !1 : Math.abs(x.lat - J.lat) < 1e-6 && Math.abs(x.lng - J.lng) < 1e-6;
|
|
4746
4747
|
}
|
|
4747
4748
|
async function ge() {
|
|
4748
4749
|
await Fe(), m.value?.invalidateSize();
|
|
@@ -4776,8 +4777,8 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4776
4777
|
}, me(s.value), o("update:modelValue", s.value), o("update:center", s.value), o("marker-click", L);
|
|
4777
4778
|
}
|
|
4778
4779
|
return (L, R) => (c(), g("div", Zo, [
|
|
4779
|
-
|
|
4780
|
-
e.label ? (c(), g("label", Xo,
|
|
4780
|
+
H(L.$slots, "label", {}, () => [
|
|
4781
|
+
e.label ? (c(), g("label", Xo, z(e.label), 1)) : M("", !0)
|
|
4781
4782
|
]),
|
|
4782
4783
|
A("div", {
|
|
4783
4784
|
class: D(["base-map__frame", {
|
|
@@ -4821,17 +4822,17 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4821
4822
|
opacity: e.selectionRadiusOpacity,
|
|
4822
4823
|
weight: e.selectionRadiusStrokeWeight
|
|
4823
4824
|
}, null, 8, ["lat-lng", "radius", "color", "fill-color", "fill-opacity", "opacity", "weight"])) : M("", !0),
|
|
4824
|
-
(c(!0), g(ae, null, ue(b.value, (
|
|
4825
|
-
key:
|
|
4826
|
-
"lat-lng": [
|
|
4827
|
-
icon: k(
|
|
4828
|
-
"z-index-offset": P(
|
|
4829
|
-
onClick: (ee) => Me(
|
|
4825
|
+
(c(!0), g(ae, null, ue(b.value, (x, J) => (c(), U(ce(i.value.LMarker), {
|
|
4826
|
+
key: x.id ?? `${x.lat}-${x.lng}-${J}`,
|
|
4827
|
+
"lat-lng": [x.lat, x.lng],
|
|
4828
|
+
icon: k(x.type),
|
|
4829
|
+
"z-index-offset": P(x.type),
|
|
4830
|
+
onClick: (ee) => Me(x)
|
|
4830
4831
|
}, {
|
|
4831
4832
|
default: _(() => [
|
|
4832
|
-
|
|
4833
|
+
x.label ? (c(), U(ce(i.value.LPopup), { key: 0 }, {
|
|
4833
4834
|
default: _(() => [
|
|
4834
|
-
Se(
|
|
4835
|
+
Se(z(x.label), 1)
|
|
4835
4836
|
]),
|
|
4836
4837
|
_: 2
|
|
4837
4838
|
}, 1024)) : M("", !0)
|
|
@@ -4843,7 +4844,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4843
4844
|
"lat-lng": [f.value.lat, f.value.lng],
|
|
4844
4845
|
icon: k("user"),
|
|
4845
4846
|
"z-index-offset": P("user"),
|
|
4846
|
-
onClick: R[0] || (R[0] = (
|
|
4847
|
+
onClick: R[0] || (R[0] = (x) => Me({
|
|
4847
4848
|
id: "user-location",
|
|
4848
4849
|
label: e.userLocationLabel,
|
|
4849
4850
|
type: "user",
|
|
@@ -4853,7 +4854,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4853
4854
|
default: _(() => [
|
|
4854
4855
|
(c(), U(ce(i.value.LPopup), null, {
|
|
4855
4856
|
default: _(() => [
|
|
4856
|
-
Se(
|
|
4857
|
+
Se(z(e.userLocationLabel), 1)
|
|
4857
4858
|
]),
|
|
4858
4859
|
_: 1
|
|
4859
4860
|
}))
|
|
@@ -4864,7 +4865,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4864
4865
|
_: 1
|
|
4865
4866
|
}, 40, ["zoom", "center"])) : M("", !0)
|
|
4866
4867
|
], 6),
|
|
4867
|
-
e.interactive && e.helperText ? (c(), g("p", Ko,
|
|
4868
|
+
e.interactive && e.helperText ? (c(), g("p", Ko, z(e.helperText), 1)) : M("", !0)
|
|
4868
4869
|
]));
|
|
4869
4870
|
}
|
|
4870
4871
|
}), ti = {
|
|
@@ -4942,7 +4943,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4942
4943
|
l("update:modelValue", s), l("select", s);
|
|
4943
4944
|
}
|
|
4944
4945
|
return (s, f) => (c(), g("div", ti, [
|
|
4945
|
-
e.label ? (c(), g("p", ai,
|
|
4946
|
+
e.label ? (c(), g("p", ai, z(e.label), 1)) : M("", !0),
|
|
4946
4947
|
e.locations.length ? (c(), g("div", ni, [
|
|
4947
4948
|
(c(!0), g(ae, null, ue(e.locations, (v, b) => (c(), g("button", {
|
|
4948
4949
|
key: o(v, b),
|
|
@@ -4953,11 +4954,11 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4953
4954
|
"data-testid": `location-option-${i(v, b)}`,
|
|
4954
4955
|
onClick: (w) => d(v)
|
|
4955
4956
|
}, [
|
|
4956
|
-
A("strong", oi,
|
|
4957
|
-
t(v) ? (c(), g("small", ii,
|
|
4958
|
-
e.showDistance && v?.distance !== void 0 && v?.distance !== null ? (c(), g("small", si,
|
|
4957
|
+
A("strong", oi, z(a(v)), 1),
|
|
4958
|
+
t(v) ? (c(), g("small", ii, z(t(v)), 1)) : M("", !0),
|
|
4959
|
+
e.showDistance && v?.distance !== void 0 && v?.distance !== null ? (c(), g("small", si, z(m(Number(v.distance))) + " away ", 1)) : M("", !0)
|
|
4959
4960
|
], 10, li))), 128))
|
|
4960
|
-
])) : (c(), g("p", Ai,
|
|
4961
|
+
])) : (c(), g("p", Ai, z(e.emptyText), 1))
|
|
4961
4962
|
]));
|
|
4962
4963
|
}
|
|
4963
4964
|
});
|
|
@@ -5180,7 +5181,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5180
5181
|
for: e.id,
|
|
5181
5182
|
class: "file-upload__label"
|
|
5182
5183
|
}, [
|
|
5183
|
-
|
|
5184
|
+
H(s.$slots, "button", {}, () => [
|
|
5184
5185
|
A("span", {
|
|
5185
5186
|
class: "btn btn-outline-contrast",
|
|
5186
5187
|
innerHTML: e.label || s.$t("common.selectFile")
|
|
@@ -5277,8 +5278,8 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5277
5278
|
function p(h, k) {
|
|
5278
5279
|
if (h.dataTransfer) {
|
|
5279
5280
|
h.preventDefault();
|
|
5280
|
-
const P = Number(h.dataTransfer.getData("index")), B = k,
|
|
5281
|
-
(B || B === 0) && (P || P === 0) &&
|
|
5281
|
+
const P = Number(h.dataTransfer.getData("index")), B = k, N = [...i.value];
|
|
5282
|
+
(B || B === 0) && (P || P === 0) && N.splice(B, 0, N.splice(P, 1)[0]), i.value = N;
|
|
5282
5283
|
}
|
|
5283
5284
|
}
|
|
5284
5285
|
return W(() => l.value, (h) => {
|
|
@@ -5304,11 +5305,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5304
5305
|
e.showPreview && l.value && t.value === B ? (c(), g("li", {
|
|
5305
5306
|
key: 0,
|
|
5306
5307
|
class: "sortable-list__item is-drop-target",
|
|
5307
|
-
onDragenter: (
|
|
5308
|
-
onDragover: (
|
|
5309
|
-
onDragleave: (
|
|
5310
|
-
onDragend: (
|
|
5311
|
-
onDrop: (
|
|
5308
|
+
onDragenter: (N) => b(N, B),
|
|
5309
|
+
onDragover: (N) => w(N, B),
|
|
5310
|
+
onDragleave: (N) => void 0,
|
|
5311
|
+
onDragend: (N) => f(),
|
|
5312
|
+
onDrop: (N) => p(N, B),
|
|
5312
5313
|
innerHTML: u.value
|
|
5313
5314
|
}, null, 40, pi)) : M("", !0),
|
|
5314
5315
|
A("li", {
|
|
@@ -5318,13 +5319,13 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5318
5319
|
"align-items-center gap-2": e.vertical
|
|
5319
5320
|
}]),
|
|
5320
5321
|
draggable: !0,
|
|
5321
|
-
onDragstart: (
|
|
5322
|
-
onDrag: (
|
|
5323
|
-
onDragenter: (
|
|
5324
|
-
onDragover: (
|
|
5325
|
-
onDragleave: (
|
|
5326
|
-
onDragend: (
|
|
5327
|
-
onDrop: (
|
|
5322
|
+
onDragstart: (N) => s(N, B),
|
|
5323
|
+
onDrag: (N) => void 0,
|
|
5324
|
+
onDragenter: (N) => b(N, B),
|
|
5325
|
+
onDragover: (N) => w(N, B),
|
|
5326
|
+
onDragleave: (N) => void 0,
|
|
5327
|
+
onDragend: (N) => f(),
|
|
5328
|
+
onDrop: (N) => p(N, B)
|
|
5328
5329
|
}, [
|
|
5329
5330
|
e.showDragHandle ? (c(), g("div", yi, [
|
|
5330
5331
|
A("button", bi, [
|
|
@@ -5336,17 +5337,17 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5336
5337
|
"flex-grow-1": e.vertical
|
|
5337
5338
|
}])
|
|
5338
5339
|
}, [
|
|
5339
|
-
|
|
5340
|
+
H(h.$slots, "list-item", {
|
|
5340
5341
|
item: P,
|
|
5341
5342
|
index: B
|
|
5342
5343
|
}, () => [
|
|
5343
|
-
Se(
|
|
5344
|
+
Se(z(P), 1)
|
|
5344
5345
|
])
|
|
5345
5346
|
], 2)
|
|
5346
5347
|
], 42, hi)
|
|
5347
5348
|
], 64))), 128)),
|
|
5348
5349
|
d.value ? (c(), g("li", wi, [
|
|
5349
|
-
|
|
5350
|
+
H(h.$slots, "list-append")
|
|
5350
5351
|
])) : M("", !0)
|
|
5351
5352
|
]),
|
|
5352
5353
|
_: 3
|
|
@@ -5474,12 +5475,12 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5474
5475
|
]),
|
|
5475
5476
|
A("div", xi, [
|
|
5476
5477
|
A("div", Ei, [
|
|
5477
|
-
|
|
5478
|
+
H(v.$slots, "actions"),
|
|
5478
5479
|
A("button", {
|
|
5479
5480
|
class: "btn btn-sm btn-primary",
|
|
5480
5481
|
disabled: !i.value,
|
|
5481
5482
|
onClick: Z(d, ["prevent", "stop"])
|
|
5482
|
-
},
|
|
5483
|
+
}, z(v.$t("common.apply")), 9, Ti)
|
|
5483
5484
|
])
|
|
5484
5485
|
])
|
|
5485
5486
|
])) : M("", !0);
|
|
@@ -5548,11 +5549,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5548
5549
|
options: e.aspectRatioOptions,
|
|
5549
5550
|
class: "mb-0"
|
|
5550
5551
|
}, null, 8, ["modelValue", "options"]),
|
|
5551
|
-
|
|
5552
|
+
H(i.$slots, "actions"),
|
|
5552
5553
|
A("button", {
|
|
5553
5554
|
class: "btn btn-sm btn-primary",
|
|
5554
5555
|
onClick: Z(o, ["prevent", "stop"])
|
|
5555
|
-
},
|
|
5556
|
+
}, z(i.$t("common.apply")), 1)
|
|
5556
5557
|
])
|
|
5557
5558
|
])
|
|
5558
5559
|
])) : M("", !0);
|
|
@@ -5610,7 +5611,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5610
5611
|
A("button", {
|
|
5611
5612
|
class: "btn btn-outline-ccontrast",
|
|
5612
5613
|
onClick: m[0] || (m[0] = Z((d) => a.value = !1, ["prevent", "stop"]))
|
|
5613
|
-
},
|
|
5614
|
+
}, z(u.$t("common.cancel")), 1)
|
|
5614
5615
|
]),
|
|
5615
5616
|
_: 1
|
|
5616
5617
|
}, 8, ["modelValue"])) : t.value ? (c(), U(Fi, {
|
|
@@ -5623,7 +5624,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5623
5624
|
A("button", {
|
|
5624
5625
|
class: "btn btn-sm btn-outline-ccontrast",
|
|
5625
5626
|
onClick: m[2] || (m[2] = Z((d) => t.value = !1, ["prevent", "stop"]))
|
|
5626
|
-
},
|
|
5627
|
+
}, z(u.$t("common.cancel")), 1)
|
|
5627
5628
|
]),
|
|
5628
5629
|
_: 1
|
|
5629
5630
|
}, 8, ["modelValue", "suggested-aspect-ratio"])) : M("", !0) : (c(), U(Te, {
|
|
@@ -5633,7 +5634,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5633
5634
|
animate: !1,
|
|
5634
5635
|
src: e.modelValue
|
|
5635
5636
|
}, null, 8, ["src"])),
|
|
5636
|
-
i.value ? (c(), g("div", qi,
|
|
5637
|
+
i.value ? (c(), g("div", qi, z(u.$t("common.svgWarning")), 1)) : M("", !0),
|
|
5637
5638
|
!t.value && !a.value ? (c(), g("hr", _i)) : M("", !0),
|
|
5638
5639
|
A("div", Ji, [
|
|
5639
5640
|
A("div", Gi, [
|
|
@@ -5645,7 +5646,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5645
5646
|
onClick: m[4] || (m[4] = Z((d) => t.value = !t.value, ["prevent", "stop"]))
|
|
5646
5647
|
}, [
|
|
5647
5648
|
I(Q, { symbol: "crop" }),
|
|
5648
|
-
A("span", Xi,
|
|
5649
|
+
A("span", Xi, z(u.$t("common.crop")), 1)
|
|
5649
5650
|
]),
|
|
5650
5651
|
A("button", {
|
|
5651
5652
|
type: "button",
|
|
@@ -5653,11 +5654,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5653
5654
|
onClick: m[5] || (m[5] = Z((d) => a.value = !a.value, ["prevent", "stop"]))
|
|
5654
5655
|
}, [
|
|
5655
5656
|
I(Q, { symbol: "image-upscale" }),
|
|
5656
|
-
A("span", Ki,
|
|
5657
|
+
A("span", Ki, z(u.$t("common.resize")), 1)
|
|
5657
5658
|
])
|
|
5658
5659
|
])) : M("", !0),
|
|
5659
5660
|
!t.value && !a.value ? (c(), g("div", es, [
|
|
5660
|
-
|
|
5661
|
+
H(u.$slots, "submit")
|
|
5661
5662
|
])) : M("", !0)
|
|
5662
5663
|
])
|
|
5663
5664
|
])
|
|
@@ -5762,7 +5763,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5762
5763
|
}, [
|
|
5763
5764
|
A("div", as, [
|
|
5764
5765
|
A("div", ns, [
|
|
5765
|
-
e.title ? (c(), g("h5", ls,
|
|
5766
|
+
e.title ? (c(), g("h5", ls, z(e.title), 1)) : M("", !0),
|
|
5766
5767
|
A("button", {
|
|
5767
5768
|
type: "button",
|
|
5768
5769
|
class: "btn-close ms-auto border-radius-none",
|
|
@@ -5771,15 +5772,15 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5771
5772
|
})
|
|
5772
5773
|
]),
|
|
5773
5774
|
A("div", os, [
|
|
5774
|
-
|
|
5775
|
+
H(f.$slots, "default")
|
|
5775
5776
|
]),
|
|
5776
5777
|
e.footer ? (c(), g("div", is, [
|
|
5777
|
-
|
|
5778
|
+
H(f.$slots, "footer"),
|
|
5778
5779
|
A("button", {
|
|
5779
5780
|
type: "button",
|
|
5780
5781
|
class: "btn ms-auto",
|
|
5781
5782
|
onClick: i
|
|
5782
|
-
},
|
|
5783
|
+
}, z(f.$t("common.close")), 1)
|
|
5783
5784
|
])) : M("", !0)
|
|
5784
5785
|
])
|
|
5785
5786
|
], 34));
|
|
@@ -5953,7 +5954,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5953
5954
|
src: `${w.value.src}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
|
|
5954
5955
|
class: "img-thumbnail rounded",
|
|
5955
5956
|
ready: q(d),
|
|
5956
|
-
"onUpdate:ready": B[0] || (B[0] = (
|
|
5957
|
+
"onUpdate:ready": B[0] || (B[0] = (N) => nt(d) ? d.value = N : null),
|
|
5957
5958
|
animate: !1,
|
|
5958
5959
|
style: $e({ maxWidth: e.previewWidth ? `${e.previewWidth}px` : "auto", height: "auto" })
|
|
5959
5960
|
}, null, 8, ["src", "ready", "style"]),
|
|
@@ -5961,14 +5962,14 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5961
5962
|
A("div", rs, [
|
|
5962
5963
|
A("button", {
|
|
5963
5964
|
type: "button",
|
|
5964
|
-
onClick: B[1] || (B[1] = Z((
|
|
5965
|
+
onClick: B[1] || (B[1] = Z((N) => h(w.value.src, w.value.type), ["prevent", "stop"])),
|
|
5965
5966
|
class: "btn btn--edit btn-sm btn-light"
|
|
5966
5967
|
}, [
|
|
5967
5968
|
I(Q, { symbol: "edit-2" })
|
|
5968
5969
|
]),
|
|
5969
5970
|
A("button", {
|
|
5970
5971
|
type: "button",
|
|
5971
|
-
onClick: B[2] || (B[2] = Z((
|
|
5972
|
+
onClick: B[2] || (B[2] = Z((N) => V(), ["prevent", "stop"])),
|
|
5972
5973
|
class: "btn btn--close btn-sm btn-light"
|
|
5973
5974
|
}, [
|
|
5974
5975
|
I(Q, { symbol: "x" })
|
|
@@ -5977,7 +5978,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5977
5978
|
])
|
|
5978
5979
|
], 64)) : (c(), g("div", us, [
|
|
5979
5980
|
A("button", {
|
|
5980
|
-
onClick: B[3] || (B[3] = Z((
|
|
5981
|
+
onClick: B[3] || (B[3] = Z((N) => V(), ["prevent", "stop"])),
|
|
5981
5982
|
class: "btn btn--close btn-outline-contrast"
|
|
5982
5983
|
}, [
|
|
5983
5984
|
I(Q, { symbol: "x" })
|
|
@@ -5986,7 +5987,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5986
5987
|
], 2)) : M("", !0),
|
|
5987
5988
|
I(Mt, {
|
|
5988
5989
|
modelValue: q(m),
|
|
5989
|
-
"onUpdate:modelValue": B[4] || (B[4] = (
|
|
5990
|
+
"onUpdate:modelValue": B[4] || (B[4] = (N) => nt(m) ? m.value = N : null),
|
|
5990
5991
|
id: e.id,
|
|
5991
5992
|
name: e.name,
|
|
5992
5993
|
accept: e.accept,
|
|
@@ -5998,7 +5999,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5998
5999
|
for: e.id,
|
|
5999
6000
|
class: "image-upload__label"
|
|
6000
6001
|
}, [
|
|
6001
|
-
|
|
6002
|
+
H(P.$slots, "button", {}, () => [
|
|
6002
6003
|
A("span", {
|
|
6003
6004
|
class: "btn btn-outline-contrast",
|
|
6004
6005
|
innerHTML: e.label || P.$t("common.selectFile")
|
|
@@ -6020,21 +6021,21 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6020
6021
|
], 8, ds)),
|
|
6021
6022
|
I(ss, {
|
|
6022
6023
|
modelValue: a.value,
|
|
6023
|
-
"onUpdate:modelValue": B[6] || (B[6] = (
|
|
6024
|
+
"onUpdate:modelValue": B[6] || (B[6] = (N) => a.value = N),
|
|
6024
6025
|
footer: !1
|
|
6025
6026
|
}, {
|
|
6026
6027
|
default: _(() => [
|
|
6027
6028
|
a.value && o.value ? (c(), U(ts, {
|
|
6028
6029
|
key: 0,
|
|
6029
6030
|
modelValue: o.value.src,
|
|
6030
|
-
"onUpdate:modelValue": B[5] || (B[5] = (
|
|
6031
|
+
"onUpdate:modelValue": B[5] || (B[5] = (N) => o.value.src = N),
|
|
6031
6032
|
"aspect-ratio": e.aspectRatio
|
|
6032
6033
|
}, {
|
|
6033
6034
|
submit: _(() => [
|
|
6034
6035
|
A("button", {
|
|
6035
6036
|
class: "btn btn-primary",
|
|
6036
6037
|
onClick: Z(k, ["prevent", "stop"])
|
|
6037
|
-
},
|
|
6038
|
+
}, z(P.$t("common.save")), 1)
|
|
6038
6039
|
]),
|
|
6039
6040
|
_: 1
|
|
6040
6041
|
}, 8, ["modelValue", "aspect-ratio"])) : M("", !0)
|
|
@@ -6757,7 +6758,7 @@ const Es = {
|
|
|
6757
6758
|
userLocationLabel: "Your location",
|
|
6758
6759
|
pinnedLocationTitle: "Pinned location",
|
|
6759
6760
|
selectedLocationLabel: "Selected location"
|
|
6760
|
-
}, a = e, t = r, { t: o, te: i } = st({ useScope: "global" }), u = xs(), m = Ps(), d = Ms(), s = C(""), f = C(oe(
|
|
6761
|
+
}, a = e, t = r, { t: o, te: i } = st({ useScope: "global" }), u = xs(), m = Ps(), d = Ms(), s = C(""), f = C(oe(E(a.modelValue))), v = C(oe(E(a.modelValue)) ? null : E(a.modelValue)), b = C(X(a.modelValue) || X(a.center) || X(a.locations[0]) || n), w = C(!1), V = $(() => X(a.userLocation)), p = $(() => u.position.value || V.value), h = $(() => X(v.value)), k = $(() => X(f.value)), P = $(() => p.value || h.value), B = $(() => !P.value || !k.value ? null : qe(P.value, k.value)), N = $(() => X(a.modelValue) || h.value || k.value), K = $(() => u.error.value || m.error.value || d.error.value || ""), ge = $(() => a.showSearch || a.trackUser && a.showTrackButton), me = $(() => a.enableDirections && a.showDirectionsSummary), ke = $(() => a.showSidebar || me.value), ve = $(() => Oe(d.distanceMeters.value)), Le = $(() => _e(d.durationSeconds.value)), Y = $(() => ({
|
|
6761
6762
|
searchLabel: te("searchLabel", a.searchLabel),
|
|
6762
6763
|
searchPlaceholder: te("searchPlaceholder", a.searchPlaceholder),
|
|
6763
6764
|
resultsLabel: te("resultsLabel", a.resultsLabel),
|
|
@@ -6779,10 +6780,10 @@ const Es = {
|
|
|
6779
6780
|
selectedLocationLabel: te("selectedLocationLabel")
|
|
6780
6781
|
})), Me = $(() => v.value ? Pe(v.value) : Y.value.selectedLocationLabel), L = $(() => u.isTracking.value && w.value ? Y.value.stopTrackingLabel : Y.value.locateButtonLabel);
|
|
6781
6782
|
W(() => a.modelValue, (y) => {
|
|
6782
|
-
const S =
|
|
6783
|
-
|
|
6784
|
-
const
|
|
6785
|
-
|
|
6783
|
+
const S = E(y), T = oe(S);
|
|
6784
|
+
T ? (f.value = T, v.value = null) : S && (v.value = S);
|
|
6785
|
+
const G = X(y);
|
|
6786
|
+
G && (b.value = G);
|
|
6786
6787
|
}, { immediate: !0 }), W(() => a.center, (y) => {
|
|
6787
6788
|
const S = X(y);
|
|
6788
6789
|
S && (b.value = S);
|
|
@@ -6809,17 +6810,17 @@ const Es = {
|
|
|
6809
6810
|
() => ({
|
|
6810
6811
|
enabled: a.enableDirections,
|
|
6811
6812
|
origin: p.value,
|
|
6812
|
-
destination:
|
|
6813
|
+
destination: N.value,
|
|
6813
6814
|
profile: a.routeProfile
|
|
6814
6815
|
}),
|
|
6815
|
-
async ({ enabled: y, origin: S, destination:
|
|
6816
|
-
if (!y || !S || !
|
|
6816
|
+
async ({ enabled: y, origin: S, destination: T, profile: G }) => {
|
|
6817
|
+
if (!y || !S || !T || de(S, T)) {
|
|
6817
6818
|
d.clearRoute();
|
|
6818
6819
|
return;
|
|
6819
6820
|
}
|
|
6820
|
-
await d.fetchRoute(S,
|
|
6821
|
+
await d.fetchRoute(S, T, {
|
|
6821
6822
|
endpoint: a.directionsEndpoint,
|
|
6822
|
-
profile:
|
|
6823
|
+
profile: G,
|
|
6823
6824
|
customFetch: a.customDirectionsFetch
|
|
6824
6825
|
});
|
|
6825
6826
|
},
|
|
@@ -6829,22 +6830,22 @@ const Es = {
|
|
|
6829
6830
|
});
|
|
6830
6831
|
const R = $(() => {
|
|
6831
6832
|
const y = He(s.value).trim();
|
|
6832
|
-
return y ? a.locations.filter((S) => [Pe(S), je(S)].filter(Boolean).some((
|
|
6833
|
-
}),
|
|
6833
|
+
return y ? a.locations.filter((S) => [Pe(S), je(S)].filter(Boolean).some((T) => He(T).includes(y))) : a.locations;
|
|
6834
|
+
}), x = $(() => m.results.value.map((y) => ({
|
|
6834
6835
|
id: y.id,
|
|
6835
6836
|
title: y.title,
|
|
6836
6837
|
address: y.address,
|
|
6837
6838
|
lat: y.lat,
|
|
6838
6839
|
lng: y.lng,
|
|
6839
6840
|
source: y.source
|
|
6840
|
-
}))),
|
|
6841
|
+
}))), J = $(() => {
|
|
6841
6842
|
if (!s.value.trim())
|
|
6842
6843
|
return a.locations;
|
|
6843
6844
|
const y = R.value;
|
|
6844
6845
|
return y.length ? y : a.locations;
|
|
6845
|
-
}), ee = $(() =>
|
|
6846
|
-
|
|
6847
|
-
a.enableGeocoding ?
|
|
6846
|
+
}), ee = $(() => J.value), De = $(() => fe(
|
|
6847
|
+
J.value,
|
|
6848
|
+
a.enableGeocoding ? x.value : []
|
|
6848
6849
|
)), ze = $(() => Array.from(new Set(De.value.map((y) => ie(y))))), Ne = $(
|
|
6849
6850
|
() => ee.value.map((y) => {
|
|
6850
6851
|
const S = X(y);
|
|
@@ -6855,23 +6856,23 @@ const Es = {
|
|
|
6855
6856
|
type: k.value && de(S, k.value) ? "selected" : "list"
|
|
6856
6857
|
} : null;
|
|
6857
6858
|
}).filter((y) => !!y)
|
|
6858
|
-
), Ve = $(() => w.value && p.value ? p.value : b.value ||
|
|
6859
|
+
), Ve = $(() => w.value && p.value ? p.value : b.value || N.value || p.value || X(ee.value[0]) || n);
|
|
6859
6860
|
function te(y, S) {
|
|
6860
|
-
const
|
|
6861
|
-
if (typeof
|
|
6862
|
-
return
|
|
6861
|
+
const T = a.messages?.[y];
|
|
6862
|
+
if (typeof T == "string" && T.trim())
|
|
6863
|
+
return T;
|
|
6863
6864
|
if (typeof S == "string" && S.trim())
|
|
6864
6865
|
return S;
|
|
6865
|
-
const
|
|
6866
|
-
return i(
|
|
6866
|
+
const G = `locationFinder.${String(y)}`;
|
|
6867
|
+
return i(G) ? String(o(G)) : l[y];
|
|
6867
6868
|
}
|
|
6868
6869
|
function X(y) {
|
|
6869
6870
|
if (!y)
|
|
6870
6871
|
return null;
|
|
6871
|
-
const S = Number(y.lat),
|
|
6872
|
-
return !Number.isFinite(S) || !Number.isFinite(
|
|
6872
|
+
const S = Number(y.lat), T = Number(y.lng);
|
|
6873
|
+
return !Number.isFinite(S) || !Number.isFinite(T) ? null : { lat: S, lng: T };
|
|
6873
6874
|
}
|
|
6874
|
-
function
|
|
6875
|
+
function E(y) {
|
|
6875
6876
|
if (!y)
|
|
6876
6877
|
return null;
|
|
6877
6878
|
const S = X(y);
|
|
@@ -6896,20 +6897,20 @@ const Es = {
|
|
|
6896
6897
|
return `${y.address || y.description || y.subtitle || ""}`;
|
|
6897
6898
|
}
|
|
6898
6899
|
function ie(y) {
|
|
6899
|
-
const S = Pe(y),
|
|
6900
|
-
return
|
|
6900
|
+
const S = Pe(y), T = je(y);
|
|
6901
|
+
return T ? `${S} — ${T}` : S;
|
|
6901
6902
|
}
|
|
6902
6903
|
function fe(y, S) {
|
|
6903
|
-
const
|
|
6904
|
-
return S.forEach((
|
|
6905
|
-
|
|
6906
|
-
}),
|
|
6904
|
+
const T = [...y];
|
|
6905
|
+
return S.forEach((G) => {
|
|
6906
|
+
T.some((Je) => F(Je) === F(G) || de(X(Je), X(G))) || T.push(G);
|
|
6907
|
+
}), T;
|
|
6907
6908
|
}
|
|
6908
6909
|
function de(y, S) {
|
|
6909
6910
|
return !y || !S ? !1 : Math.abs(y.lat - S.lat) < 1e-6 && Math.abs(y.lng - S.lng) < 1e-6;
|
|
6910
6911
|
}
|
|
6911
6912
|
function qe(y, S) {
|
|
6912
|
-
const
|
|
6913
|
+
const T = (xt) => xt * (Math.PI / 180), Qe = T(S.lat - y.lat), Je = T(S.lng - y.lng), Dt = T(y.lat), Vt = T(S.lat), mt = Math.sin(Qe / 2) ** 2 + Math.cos(Dt) * Math.cos(Vt) * Math.sin(Je / 2) ** 2, Pt = 2 * Math.atan2(Math.sqrt(mt), Math.sqrt(1 - mt));
|
|
6913
6914
|
return Math.round(6371e3 * Pt);
|
|
6914
6915
|
}
|
|
6915
6916
|
function Oe(y) {
|
|
@@ -6921,31 +6922,31 @@ const Es = {
|
|
|
6921
6922
|
const S = Math.max(1, Math.round(y / 60));
|
|
6922
6923
|
if (S < 60)
|
|
6923
6924
|
return `${S} min`;
|
|
6924
|
-
const
|
|
6925
|
-
return
|
|
6925
|
+
const T = Math.floor(S / 60), G = S % 60;
|
|
6926
|
+
return G ? `${T} h ${G} min` : `${T} h`;
|
|
6926
6927
|
}
|
|
6927
6928
|
function be(y) {
|
|
6928
|
-
const S =
|
|
6929
|
+
const S = E(y), T = oe(S);
|
|
6929
6930
|
if (w.value = !1, !S) {
|
|
6930
6931
|
t("update:modelValue", null);
|
|
6931
6932
|
return;
|
|
6932
6933
|
}
|
|
6933
|
-
f.value =
|
|
6934
|
-
const
|
|
6935
|
-
|
|
6934
|
+
f.value = T || S;
|
|
6935
|
+
const G = X(S);
|
|
6936
|
+
G && (b.value = G), t("update:modelValue", S), t("select", S);
|
|
6936
6937
|
}
|
|
6937
6938
|
function Re(y) {
|
|
6938
|
-
const S =
|
|
6939
|
+
const S = E(y), T = oe(S);
|
|
6939
6940
|
if (w.value = !1, !S) {
|
|
6940
6941
|
t("update:modelValue", null);
|
|
6941
6942
|
return;
|
|
6942
6943
|
}
|
|
6943
|
-
|
|
6944
|
-
const
|
|
6945
|
-
|
|
6944
|
+
T ? (f.value = T, v.value = null) : v.value = S;
|
|
6945
|
+
const G = X(S);
|
|
6946
|
+
G && (b.value = G), t("update:modelValue", S), t("select", S);
|
|
6946
6947
|
}
|
|
6947
6948
|
function pe(y) {
|
|
6948
|
-
const S = De.value.find((
|
|
6949
|
+
const S = De.value.find((T) => ie(T) === y || Pe(T) === y);
|
|
6949
6950
|
if (S) {
|
|
6950
6951
|
if (oe(S)) {
|
|
6951
6952
|
be(S), v.value = null;
|
|
@@ -6962,9 +6963,9 @@ const Es = {
|
|
|
6962
6963
|
b.value = p.value, w.value = !0, t("track-user", p.value);
|
|
6963
6964
|
return;
|
|
6964
6965
|
}
|
|
6965
|
-
const S = ee.value.find((
|
|
6966
|
-
const
|
|
6967
|
-
return
|
|
6966
|
+
const S = ee.value.find((T) => F(T) === y.id) || ee.value.find((T) => {
|
|
6967
|
+
const G = X(T);
|
|
6968
|
+
return G && Math.abs(G.lat - y.lat) < 1e-6 && Math.abs(G.lng - y.lng) < 1e-6;
|
|
6968
6969
|
});
|
|
6969
6970
|
if (S) {
|
|
6970
6971
|
be(S);
|
|
@@ -6975,16 +6976,16 @@ const Es = {
|
|
|
6975
6976
|
async function he(y) {
|
|
6976
6977
|
if (b.value = y, w.value = !1, !a.interactive)
|
|
6977
6978
|
return;
|
|
6978
|
-
const S = ee.value.find((
|
|
6979
|
-
const Qe = X(
|
|
6979
|
+
const S = ee.value.find((G) => {
|
|
6980
|
+
const Qe = X(G);
|
|
6980
6981
|
return Qe && Math.abs(Qe.lat - y.lat) < 1e-6 && Math.abs(Qe.lng - y.lng) < 1e-6;
|
|
6981
6982
|
});
|
|
6982
6983
|
if (S) {
|
|
6983
6984
|
be(S);
|
|
6984
6985
|
return;
|
|
6985
6986
|
}
|
|
6986
|
-
const
|
|
6987
|
-
Re(
|
|
6987
|
+
const T = await xe(y, Y.value.pinnedLocationTitle);
|
|
6988
|
+
Re(T);
|
|
6988
6989
|
}
|
|
6989
6990
|
async function xe(y, S) {
|
|
6990
6991
|
if (!a.enableGeocoding)
|
|
@@ -6994,17 +6995,17 @@ const Es = {
|
|
|
6994
6995
|
lat: y.lat,
|
|
6995
6996
|
lng: y.lng
|
|
6996
6997
|
};
|
|
6997
|
-
const
|
|
6998
|
+
const T = await m.reverse(y, {
|
|
6998
6999
|
reverseEndpoint: a.reverseGeocodingEndpoint,
|
|
6999
7000
|
customFetch: a.customGeocodingFetch
|
|
7000
7001
|
});
|
|
7001
|
-
return
|
|
7002
|
-
id:
|
|
7003
|
-
title:
|
|
7004
|
-
address:
|
|
7005
|
-
lat:
|
|
7006
|
-
lng:
|
|
7007
|
-
source:
|
|
7002
|
+
return T ? {
|
|
7003
|
+
id: T.id,
|
|
7004
|
+
title: T.title || S,
|
|
7005
|
+
address: T.address,
|
|
7006
|
+
lat: T.lat,
|
|
7007
|
+
lng: T.lng,
|
|
7008
|
+
source: T.source
|
|
7008
7009
|
} : {
|
|
7009
7010
|
id: `pin-${y.lat}-${y.lng}`,
|
|
7010
7011
|
title: S,
|
|
@@ -7032,7 +7033,7 @@ const Es = {
|
|
|
7032
7033
|
a.showSearch ? (c(), U(ko, {
|
|
7033
7034
|
key: 0,
|
|
7034
7035
|
modelValue: s.value,
|
|
7035
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
7036
|
+
"onUpdate:modelValue": S[0] || (S[0] = (T) => s.value = T),
|
|
7036
7037
|
class: "location-finder__search",
|
|
7037
7038
|
label: Y.value.searchLabel,
|
|
7038
7039
|
placeholder: Y.value.searchPlaceholder,
|
|
@@ -7048,10 +7049,10 @@ const Es = {
|
|
|
7048
7049
|
disabled: e.disabled || q(u).pending.value,
|
|
7049
7050
|
"data-testid": "location-finder-locate",
|
|
7050
7051
|
onClick: Ie
|
|
7051
|
-
},
|
|
7052
|
+
}, z(L.value), 9, zs)) : M("", !0)
|
|
7052
7053
|
])
|
|
7053
7054
|
], 2)) : M("", !0),
|
|
7054
|
-
K.value ? (c(), g("p", Ns,
|
|
7055
|
+
K.value ? (c(), g("p", Ns, z(K.value), 1)) : M("", !0),
|
|
7055
7056
|
A("div", {
|
|
7056
7057
|
class: D(["location-finder__layout", {
|
|
7057
7058
|
"location-finder__layout--with-summary": me.value,
|
|
@@ -7071,7 +7072,7 @@ const Es = {
|
|
|
7071
7072
|
"route-color": e.routeColor,
|
|
7072
7073
|
"route-weight": e.routeWeight,
|
|
7073
7074
|
"selection-radius": e.selectionRadius,
|
|
7074
|
-
"selection-radius-center":
|
|
7075
|
+
"selection-radius-center": N.value,
|
|
7075
7076
|
"selection-radius-color": e.selectionRadiusColor,
|
|
7076
7077
|
"selection-radius-fill-color": e.selectionRadiusFillColor,
|
|
7077
7078
|
"map-style": e.mapStyle,
|
|
@@ -7092,19 +7093,19 @@ const Es = {
|
|
|
7092
7093
|
}, [
|
|
7093
7094
|
A("span", Os, [
|
|
7094
7095
|
S[2] || (S[2] = A("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--list" }, null, -1)),
|
|
7095
|
-
Se(" " +
|
|
7096
|
+
Se(" " + z(Y.value.legendLocations), 1)
|
|
7096
7097
|
]),
|
|
7097
7098
|
A("span", Rs, [
|
|
7098
7099
|
S[3] || (S[3] = A("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--selected" }, null, -1)),
|
|
7099
|
-
Se(" " +
|
|
7100
|
+
Se(" " + z(Y.value.legendSelected), 1)
|
|
7100
7101
|
]),
|
|
7101
7102
|
A("span", Fs, [
|
|
7102
7103
|
S[4] || (S[4] = A("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--search" }, null, -1)),
|
|
7103
|
-
Se(" " +
|
|
7104
|
+
Se(" " + z(Y.value.legendSearchResult), 1)
|
|
7104
7105
|
]),
|
|
7105
7106
|
A("span", Ws, [
|
|
7106
7107
|
S[5] || (S[5] = A("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--user" }, null, -1)),
|
|
7107
|
-
Se(" " +
|
|
7108
|
+
Se(" " + z(Y.value.userLocationLabel), 1)
|
|
7108
7109
|
])
|
|
7109
7110
|
], 8, Qs)) : M("", !0)
|
|
7110
7111
|
]),
|
|
@@ -7112,7 +7113,7 @@ const Es = {
|
|
|
7112
7113
|
a.showSidebar ? (c(), U(ri, {
|
|
7113
7114
|
key: 0,
|
|
7114
7115
|
modelValue: f.value,
|
|
7115
|
-
"onUpdate:modelValue": S[1] || (S[1] = (
|
|
7116
|
+
"onUpdate:modelValue": S[1] || (S[1] = (T) => f.value = T),
|
|
7116
7117
|
class: "location-finder__results",
|
|
7117
7118
|
locations: ee.value,
|
|
7118
7119
|
label: Y.value.resultsLabel,
|
|
@@ -7120,27 +7121,27 @@ const Es = {
|
|
|
7120
7121
|
onSelect: we
|
|
7121
7122
|
}, null, 8, ["modelValue", "locations", "label", "empty-text"])) : M("", !0),
|
|
7122
7123
|
me.value ? (c(), g("div", js, [
|
|
7123
|
-
A("p", qs,
|
|
7124
|
-
q(d).pending.value ? (c(), g("p", _s,
|
|
7124
|
+
A("p", qs, z(Y.value.directionsTitle), 1),
|
|
7125
|
+
q(d).pending.value ? (c(), g("p", _s, z(Y.value.loadingRoute), 1)) : q(d).hasRoute.value ? (c(), g(ae, { key: 1 }, [
|
|
7125
7126
|
A("div", Js, [
|
|
7126
7127
|
A("div", null, [
|
|
7127
|
-
A("p", Gs,
|
|
7128
|
-
A("strong", Ys,
|
|
7128
|
+
A("p", Gs, z(Y.value.distanceLabel), 1),
|
|
7129
|
+
A("strong", Ys, z(ve.value), 1)
|
|
7129
7130
|
]),
|
|
7130
7131
|
A("div", null, [
|
|
7131
|
-
A("p", Zs,
|
|
7132
|
-
A("strong", Xs,
|
|
7132
|
+
A("p", Zs, z(Y.value.durationLabel), 1),
|
|
7133
|
+
A("strong", Xs, z(Le.value), 1)
|
|
7133
7134
|
])
|
|
7134
7135
|
]),
|
|
7135
7136
|
e.showDirectionsSteps && q(d).steps.value.length ? (c(), g("ol", Ks, [
|
|
7136
|
-
(c(!0), g(ae, null, ue(q(d).steps.value.slice(0, 5), (
|
|
7137
|
-
key: `${
|
|
7137
|
+
(c(!0), g(ae, null, ue(q(d).steps.value.slice(0, 5), (T, G) => (c(), g("li", {
|
|
7138
|
+
key: `${T.instruction}-${G}`
|
|
7138
7139
|
}, [
|
|
7139
|
-
A("span", null, T
|
|
7140
|
-
|
|
7140
|
+
A("span", null, z(T.instruction), 1),
|
|
7141
|
+
T.name ? (c(), g("small", eA, z(T.name), 1)) : M("", !0)
|
|
7141
7142
|
]))), 128))
|
|
7142
7143
|
])) : M("", !0)
|
|
7143
|
-
], 64)) : (c(), g("p", tA,
|
|
7144
|
+
], 64)) : (c(), g("p", tA, z(Y.value.directionsEmptyText), 1))
|
|
7144
7145
|
])) : M("", !0)
|
|
7145
7146
|
])) : M("", !0)
|
|
7146
7147
|
], 2)
|
|
@@ -7210,7 +7211,7 @@ const Es = {
|
|
|
7210
7211
|
ref: a,
|
|
7211
7212
|
class: "carousel__track d-flex justify-center align-items-center"
|
|
7212
7213
|
}, [
|
|
7213
|
-
(c(!0), g(ae, null, ue(e.items, (d, s) =>
|
|
7214
|
+
(c(!0), g(ae, null, ue(e.items, (d, s) => H(u.$slots, "carousel-item", {
|
|
7214
7215
|
key: d.src,
|
|
7215
7216
|
item: d,
|
|
7216
7217
|
index: s
|
|
@@ -7218,7 +7219,7 @@ const Es = {
|
|
|
7218
7219
|
A("div", {
|
|
7219
7220
|
class: D(["carousel__item", s === e.modelValue ? "selected" : ""]),
|
|
7220
7221
|
onClick: (f) => i(s)
|
|
7221
|
-
},
|
|
7222
|
+
}, z(d), 11, lA)
|
|
7222
7223
|
])), 128))
|
|
7223
7224
|
], 512)
|
|
7224
7225
|
], 512),
|
|
@@ -7317,7 +7318,7 @@ const Es = {
|
|
|
7317
7318
|
"progress-steps__step--active": u === (e.modelValue || 0)
|
|
7318
7319
|
}])
|
|
7319
7320
|
}, [
|
|
7320
|
-
|
|
7321
|
+
H(t.$slots, "step", {}, () => [
|
|
7321
7322
|
A("div", cA, [
|
|
7322
7323
|
A("input", {
|
|
7323
7324
|
type: "radio",
|
|
@@ -7334,7 +7335,7 @@ const Es = {
|
|
|
7334
7335
|
A("label", {
|
|
7335
7336
|
for: `step-${u}`
|
|
7336
7337
|
}, [
|
|
7337
|
-
|
|
7338
|
+
H(t.$slots, "button", { step: i }, () => [
|
|
7338
7339
|
A("span", {
|
|
7339
7340
|
class: "btn rounded-circle",
|
|
7340
7341
|
innerHTML: q(re)(i.text || "")
|
|
@@ -7344,7 +7345,7 @@ const Es = {
|
|
|
7344
7345
|
A("label", {
|
|
7345
7346
|
for: `step-${u}`
|
|
7346
7347
|
}, [
|
|
7347
|
-
|
|
7348
|
+
H(t.$slots, "label", { step: i }, () => [
|
|
7348
7349
|
A("span", {
|
|
7349
7350
|
class: "form-check-label",
|
|
7350
7351
|
innerHTML: q(re)(i.label || "")
|
|
@@ -7432,7 +7433,7 @@ const Es = {
|
|
|
7432
7433
|
key: f,
|
|
7433
7434
|
class: "hint-system__hint"
|
|
7434
7435
|
}, [
|
|
7435
|
-
|
|
7436
|
+
H(m.$slots, "hint", {
|
|
7436
7437
|
hint: s,
|
|
7437
7438
|
index: f,
|
|
7438
7439
|
isNew: f === a.value - 1
|
|
@@ -7441,13 +7442,13 @@ const Es = {
|
|
|
7441
7442
|
key: 0,
|
|
7442
7443
|
class: "hint-system__hint-content",
|
|
7443
7444
|
innerHTML: q(re)(s.content || "")
|
|
7444
|
-
}, null, 8, bA)) : (c(), g("div", wA,
|
|
7445
|
+
}, null, 8, bA)) : (c(), g("div", wA, z(s.content), 1))
|
|
7445
7446
|
])
|
|
7446
7447
|
]))), 128))
|
|
7447
7448
|
]),
|
|
7448
7449
|
_: 3
|
|
7449
7450
|
})) : M("", !0),
|
|
7450
|
-
o.value ?
|
|
7451
|
+
o.value ? H(m.$slots, "trigger", {
|
|
7451
7452
|
key: 2,
|
|
7452
7453
|
revealNext: u,
|
|
7453
7454
|
canReveal: o.value,
|
|
@@ -7459,7 +7460,7 @@ const Es = {
|
|
|
7459
7460
|
class: "hint-system__trigger d-block w-100 text-center",
|
|
7460
7461
|
disabled: !o.value,
|
|
7461
7462
|
onClick: u
|
|
7462
|
-
},
|
|
7463
|
+
}, z(e.label), 9, $A)
|
|
7463
7464
|
]) : M("", !0)
|
|
7464
7465
|
]));
|
|
7465
7466
|
}
|
|
@@ -7548,7 +7549,7 @@ const Es = {
|
|
|
7548
7549
|
ref_key: "popover",
|
|
7549
7550
|
ref: a
|
|
7550
7551
|
}, [
|
|
7551
|
-
|
|
7552
|
+
H(f.$slots, "default", {}, () => [
|
|
7552
7553
|
v[0] || (v[0] = Se(" Popover content goes here. ", -1))
|
|
7553
7554
|
])
|
|
7554
7555
|
], 8, CA));
|
|
@@ -7630,7 +7631,7 @@ const Es = {
|
|
|
7630
7631
|
ref_key: "trigger",
|
|
7631
7632
|
ref: i
|
|
7632
7633
|
}, [
|
|
7633
|
-
|
|
7634
|
+
H(m.$slots, "button", {}, () => [
|
|
7634
7635
|
d[3] || (d[3] = A("span", { class: "popover-tooltip__trigger" }, " i ", -1))
|
|
7635
7636
|
])
|
|
7636
7637
|
], 8, SA),
|
|
@@ -7661,17 +7662,17 @@ const Es = {
|
|
|
7661
7662
|
})
|
|
7662
7663
|
])) : M("", !0),
|
|
7663
7664
|
A("div", LA, [
|
|
7664
|
-
|
|
7665
|
+
H(m.$slots, "default", {}, () => [
|
|
7665
7666
|
A("span", { innerHTML: q(t) }, null, 8, DA)
|
|
7666
7667
|
])
|
|
7667
7668
|
]),
|
|
7668
7669
|
e.footer ? (c(), g("div", VA, [
|
|
7669
|
-
|
|
7670
|
+
H(m.$slots, "footer"),
|
|
7670
7671
|
A("button", {
|
|
7671
7672
|
type: "button",
|
|
7672
7673
|
class: "btn ms-auto",
|
|
7673
7674
|
onClick: d[1] || (d[1] = (s) => o.value = !1)
|
|
7674
|
-
},
|
|
7675
|
+
}, z(m.$t("common.close")), 1)
|
|
7675
7676
|
])) : M("", !0)
|
|
7676
7677
|
])
|
|
7677
7678
|
]),
|
|
@@ -7784,12 +7785,12 @@ const Es = {
|
|
|
7784
7785
|
style: $e({ "--stack-index": k.stackIndex ?? P })
|
|
7785
7786
|
}, {
|
|
7786
7787
|
default: _(() => [
|
|
7787
|
-
|
|
7788
|
+
H(p.$slots, "item", {
|
|
7788
7789
|
item: k,
|
|
7789
7790
|
removeItem: d
|
|
7790
7791
|
}, () => [
|
|
7791
7792
|
A("div", PA, [
|
|
7792
|
-
A("span", xA,
|
|
7793
|
+
A("span", xA, z(k.title), 1),
|
|
7793
7794
|
A("button", {
|
|
7794
7795
|
type: "button",
|
|
7795
7796
|
class: "btn btn-close p-0",
|
|
@@ -7898,7 +7899,7 @@ const Es = {
|
|
|
7898
7899
|
ref: a,
|
|
7899
7900
|
style: $e(e.fixedWidth > 0 ? { width: `${e.fixedWidth}px` } : {})
|
|
7900
7901
|
}, [
|
|
7901
|
-
|
|
7902
|
+
H(d.$slots, "default")
|
|
7902
7903
|
], 6));
|
|
7903
7904
|
}
|
|
7904
7905
|
}), NA = { class: "qr-code" }, HA = ["innerHTML"], Zr = /* @__PURE__ */ O({
|
|
@@ -8071,9 +8072,9 @@ const Es = {
|
|
|
8071
8072
|
A("div", Ar, [
|
|
8072
8073
|
A("div", rr, [
|
|
8073
8074
|
A("div", ur, [
|
|
8074
|
-
A("p", null,
|
|
8075
|
+
A("p", null, z(i.$t("sharing.instructions", { service: "Instagram" })), 1),
|
|
8075
8076
|
A("p", null, [
|
|
8076
|
-
A("strong", null,
|
|
8077
|
+
A("strong", null, z(Array.isArray(e.hashtags) ? e.hashtags.join(", ") : e.hashtags), 1)
|
|
8077
8078
|
]),
|
|
8078
8079
|
A("button", {
|
|
8079
8080
|
type: "button",
|
|
@@ -8081,7 +8082,7 @@ const Es = {
|
|
|
8081
8082
|
onClick: u[1] || (u[1] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8082
8083
|
}, [
|
|
8083
8084
|
I(Q, { symbol: "arrow-left" }),
|
|
8084
|
-
Se(" " +
|
|
8085
|
+
Se(" " + z(i.$t("common.back")), 1)
|
|
8085
8086
|
])
|
|
8086
8087
|
])
|
|
8087
8088
|
])
|
|
@@ -8096,7 +8097,7 @@ const Es = {
|
|
|
8096
8097
|
rel: "noopener"
|
|
8097
8098
|
}, [
|
|
8098
8099
|
I(Q, { symbol: "facebook" }),
|
|
8099
|
-
A("span", UA,
|
|
8100
|
+
A("span", UA, z(i.$t("sharing.facebook")), 1)
|
|
8100
8101
|
], 8, WA)
|
|
8101
8102
|
])) : M("", !0),
|
|
8102
8103
|
e.services.bluesky ? (c(), g("div", jA, [
|
|
@@ -8107,7 +8108,7 @@ const Es = {
|
|
|
8107
8108
|
rel: "noopener"
|
|
8108
8109
|
}, [
|
|
8109
8110
|
I(Q, { symbol: "bluesky-logo" }),
|
|
8110
|
-
A("span", _A,
|
|
8111
|
+
A("span", _A, z(i.$t("sharing.bluesky")), 1)
|
|
8111
8112
|
], 8, qA)
|
|
8112
8113
|
])) : M("", !0),
|
|
8113
8114
|
e.services.instagram ? (c(), g("div", JA, [
|
|
@@ -8117,7 +8118,7 @@ const Es = {
|
|
|
8117
8118
|
onClick: u[0] || (u[0] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8118
8119
|
}, [
|
|
8119
8120
|
I(Q, { symbol: "instagram" }),
|
|
8120
|
-
A("span", GA,
|
|
8121
|
+
A("span", GA, z(i.$t("sharing.instagram")), 1)
|
|
8121
8122
|
])
|
|
8122
8123
|
])) : M("", !0),
|
|
8123
8124
|
e.services.linkedin ? (c(), g("div", YA, [
|
|
@@ -8128,7 +8129,7 @@ const Es = {
|
|
|
8128
8129
|
rel: "noopener"
|
|
8129
8130
|
}, [
|
|
8130
8131
|
I(Q, { symbol: "linkedin" }),
|
|
8131
|
-
A("span", XA,
|
|
8132
|
+
A("span", XA, z(i.$t("sharing.linkedin")), 1)
|
|
8132
8133
|
], 8, ZA)
|
|
8133
8134
|
])) : M("", !0),
|
|
8134
8135
|
e.services.whatsapp && t.value ? (c(), g("div", KA, [
|
|
@@ -8139,7 +8140,7 @@ const Es = {
|
|
|
8139
8140
|
rel: "noopener"
|
|
8140
8141
|
}, [
|
|
8141
8142
|
I(Q, { symbol: "whatsapp" }),
|
|
8142
|
-
A("span", tr,
|
|
8143
|
+
A("span", tr, z(i.$t("sharing.whatsapp")), 1)
|
|
8143
8144
|
], 8, er)
|
|
8144
8145
|
])) : M("", !0),
|
|
8145
8146
|
e.services.clipboard ? (c(), g("div", ar, [
|
|
@@ -8149,7 +8150,7 @@ const Es = {
|
|
|
8149
8150
|
onClick: Z(o, ["prevent", "stop"])
|
|
8150
8151
|
}, [
|
|
8151
8152
|
I(Q, { symbol: "copy" }),
|
|
8152
|
-
A("span", nr,
|
|
8153
|
+
A("span", nr, z(i.$t("sharing.clipboard")), 1)
|
|
8153
8154
|
])
|
|
8154
8155
|
])) : M("", !0),
|
|
8155
8156
|
e.services.mailto ? (c(), g("div", lr, [
|
|
@@ -8160,7 +8161,7 @@ const Es = {
|
|
|
8160
8161
|
rel: "noopener"
|
|
8161
8162
|
}, [
|
|
8162
8163
|
I(Q, { symbol: "mail" }),
|
|
8163
|
-
A("span", ir,
|
|
8164
|
+
A("span", ir, z(i.$t("sharing.mailto")), 1)
|
|
8164
8165
|
], 8, or)
|
|
8165
8166
|
])) : M("", !0)
|
|
8166
8167
|
])
|
|
@@ -8193,7 +8194,7 @@ const Es = {
|
|
|
8193
8194
|
onReset: n,
|
|
8194
8195
|
onSubmit: Z(l, ["prevent"])
|
|
8195
8196
|
}, [
|
|
8196
|
-
|
|
8197
|
+
H(a.$slots, "default")
|
|
8197
8198
|
], 544)
|
|
8198
8199
|
]));
|
|
8199
8200
|
}
|
|
@@ -8234,7 +8235,7 @@ const Es = {
|
|
|
8234
8235
|
ref: o,
|
|
8235
8236
|
class: "touch-wrapper"
|
|
8236
8237
|
}, [
|
|
8237
|
-
|
|
8238
|
+
H(d.$slots, "controls", {
|
|
8238
8239
|
on: { setScale: i }
|
|
8239
8240
|
}, () => [
|
|
8240
8241
|
A("div", mr, [
|
|
@@ -8272,7 +8273,7 @@ const Es = {
|
|
|
8272
8273
|
])
|
|
8273
8274
|
])
|
|
8274
8275
|
]),
|
|
8275
|
-
|
|
8276
|
+
H(d.$slots, "default")
|
|
8276
8277
|
], 512));
|
|
8277
8278
|
}
|
|
8278
8279
|
});
|
|
@@ -8444,10 +8445,10 @@ const tu = /* @__PURE__ */ O({
|
|
|
8444
8445
|
left: `${d.value}px`,
|
|
8445
8446
|
top: `${s.value}px`
|
|
8446
8447
|
}), h = $(() => {
|
|
8447
|
-
const
|
|
8448
|
+
const x = f.value * r.zoom, J = v.value * r.zoom;
|
|
8448
8449
|
return {
|
|
8449
|
-
width: `${
|
|
8450
|
-
height: `${
|
|
8450
|
+
width: `${x}px`,
|
|
8451
|
+
height: `${J}px`,
|
|
8451
8452
|
transform: b.value && !o.value ? `translate(${-d.value * r.zoom}px, ${-s.value * r.zoom}px)` : "none",
|
|
8452
8453
|
transformOrigin: "top left"
|
|
8453
8454
|
};
|
|
@@ -8455,8 +8456,8 @@ const tu = /* @__PURE__ */ O({
|
|
|
8455
8456
|
function k() {
|
|
8456
8457
|
if (!l.value)
|
|
8457
8458
|
return;
|
|
8458
|
-
const
|
|
8459
|
-
f.value =
|
|
8459
|
+
const x = l.value.getBoundingClientRect();
|
|
8460
|
+
f.value = x.width, v.value = x.height;
|
|
8460
8461
|
}
|
|
8461
8462
|
function P() {
|
|
8462
8463
|
m.value && (clearTimeout(m.value), m.value = null);
|
|
@@ -8464,19 +8465,19 @@ const tu = /* @__PURE__ */ O({
|
|
|
8464
8465
|
function B() {
|
|
8465
8466
|
P(), t.value = !0;
|
|
8466
8467
|
}
|
|
8467
|
-
function
|
|
8468
|
+
function N() {
|
|
8468
8469
|
P(), m.value = setTimeout(() => {
|
|
8469
8470
|
!i.value && !u.value && !o.value && (t.value = !1), m.value = null;
|
|
8470
8471
|
}, r.hoverDelay || 100);
|
|
8471
8472
|
}
|
|
8472
|
-
function K(
|
|
8473
|
+
function K(x, J) {
|
|
8473
8474
|
if (!l.value)
|
|
8474
8475
|
return;
|
|
8475
8476
|
if (w.value) {
|
|
8476
8477
|
d.value = 0, s.value = 0;
|
|
8477
8478
|
return;
|
|
8478
8479
|
}
|
|
8479
|
-
const ee = l.value.getBoundingClientRect(), De =
|
|
8480
|
+
const ee = l.value.getBoundingClientRect(), De = x - ee.left, ze = J - ee.top, Ne = Math.min(
|
|
8480
8481
|
Math.max(De - r.focusWidth / 2, 0),
|
|
8481
8482
|
Math.max(ee.width - r.focusWidth, 0)
|
|
8482
8483
|
), Ve = Math.min(
|
|
@@ -8488,20 +8489,20 @@ const tu = /* @__PURE__ */ O({
|
|
|
8488
8489
|
function ge() {
|
|
8489
8490
|
if (!a.value || !o.value || w.value)
|
|
8490
8491
|
return;
|
|
8491
|
-
const
|
|
8492
|
-
a.value.scrollTo({ left:
|
|
8492
|
+
const x = a.value.getBoundingClientRect(), J = Math.max(0, d.value * r.zoom - x.width / 2 + r.focusWidth * r.zoom / 2), ee = Math.max(0, s.value * r.zoom - x.height / 2 + r.focusHeight * r.zoom / 2);
|
|
8493
|
+
a.value.scrollTo({ left: J, top: ee });
|
|
8493
8494
|
}
|
|
8494
|
-
function me(
|
|
8495
|
-
k(), K(
|
|
8495
|
+
function me(x) {
|
|
8496
|
+
k(), K(x.clientX, x.clientY);
|
|
8496
8497
|
}
|
|
8497
|
-
function ke(
|
|
8498
|
-
i.value = !0, k(), K(
|
|
8498
|
+
function ke(x) {
|
|
8499
|
+
i.value = !0, k(), K(x.clientX, x.clientY), o.value || B();
|
|
8499
8500
|
}
|
|
8500
8501
|
function ve() {
|
|
8501
|
-
i.value = !1, o.value ||
|
|
8502
|
+
i.value = !1, o.value || N();
|
|
8502
8503
|
}
|
|
8503
|
-
function Le(
|
|
8504
|
-
o.value && (t.value = !0, k(), K(
|
|
8504
|
+
function Le(x) {
|
|
8505
|
+
o.value && (t.value = !0, k(), K(x.clientX, x.clientY));
|
|
8505
8506
|
}
|
|
8506
8507
|
function Y() {
|
|
8507
8508
|
o.value && Fe(ge);
|
|
@@ -8510,16 +8511,16 @@ const tu = /* @__PURE__ */ O({
|
|
|
8510
8511
|
u.value = !0, B();
|
|
8511
8512
|
}
|
|
8512
8513
|
function L() {
|
|
8513
|
-
u.value = !1,
|
|
8514
|
+
u.value = !1, N();
|
|
8514
8515
|
}
|
|
8515
|
-
function R(
|
|
8516
|
-
o.value && (t.value = !t.value,
|
|
8516
|
+
function R(x) {
|
|
8517
|
+
o.value && (t.value = !t.value, x instanceof MouseEvent && K(x.clientX, x.clientY));
|
|
8517
8518
|
}
|
|
8518
8519
|
return ne(() => {
|
|
8519
8520
|
o.value = "ontouchstart" in window || navigator.maxTouchPoints > 0, k();
|
|
8520
|
-
}), W(t, async (
|
|
8521
|
-
|
|
8522
|
-
}), (
|
|
8521
|
+
}), W(t, async (x) => {
|
|
8522
|
+
x && o.value && (await Fe(), ge());
|
|
8523
|
+
}), (x, J) => (c(), g("span", {
|
|
8523
8524
|
class: "image-zoom",
|
|
8524
8525
|
popovertarget: e.popoverId,
|
|
8525
8526
|
ref_key: "wrapper",
|
|
@@ -8537,7 +8538,7 @@ const tu = /* @__PURE__ */ O({
|
|
|
8537
8538
|
onPointercancel: ve,
|
|
8538
8539
|
onClick: Z(R, ["prevent"])
|
|
8539
8540
|
}, [
|
|
8540
|
-
|
|
8541
|
+
H(x.$slots, "image", {
|
|
8541
8542
|
src: e.src,
|
|
8542
8543
|
alt: e.alt,
|
|
8543
8544
|
spinner: e.spinner,
|
|
@@ -8560,7 +8561,7 @@ const tu = /* @__PURE__ */ O({
|
|
|
8560
8561
|
I(ct, {
|
|
8561
8562
|
id: e.popoverId,
|
|
8562
8563
|
modelValue: t.value,
|
|
8563
|
-
"onUpdate:modelValue":
|
|
8564
|
+
"onUpdate:modelValue": J[0] || (J[0] = (ee) => t.value = ee),
|
|
8564
8565
|
hover: !1,
|
|
8565
8566
|
"hover-delay": e.hoverDelay,
|
|
8566
8567
|
"close-timeout": e.closeTimeout,
|