ablok-components 0.3.46 → 0.3.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as O, openBlock as c, createElementBlock as g, normalizeClass as V, createElementVNode as s, renderSlot as N, useTemplateRef as et, ref as C, onBeforeMount as ot, createBlock as U, createCommentVNode as B, computed as w, resolveDynamicComponent as ce, withCtx as _, toDisplayString as E, unref as q, createVNode as L, 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 Be, normalizeStyle as Se, vModelRadio as zt, withModifiers as Z, nextTick as Fe, vShow as ft, markRaw as Ee, createTextVNode as Ce, 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 At } from "vue-i18n";
|
|
4
4
|
import { debounce as st } from "lodash";
|
|
5
5
|
import { ofetch as Ze } from "ofetch";
|
|
6
|
-
import { Cropper as
|
|
7
|
-
import
|
|
6
|
+
import { Cropper as Qt } from "vue-advanced-cropper";
|
|
7
|
+
import Ot from "html2canvas";
|
|
8
8
|
import gt from "qr-code-styling";
|
|
9
9
|
const Rt = {
|
|
10
10
|
class: "icon",
|
|
11
11
|
preserveAspectRatio: "xMaxYMin"
|
|
12
|
-
}, Ft = ["xlink:href"], Q = /* @__PURE__ */
|
|
12
|
+
}, Ft = ["xlink:href"], Q = /* @__PURE__ */ O({
|
|
13
13
|
__name: "svg-icon",
|
|
14
14
|
props: {
|
|
15
15
|
basePath: {
|
|
@@ -31,7 +31,7 @@ const Rt = {
|
|
|
31
31
|
},
|
|
32
32
|
setup(e) {
|
|
33
33
|
return (r, n) => (c(), g("i", {
|
|
34
|
-
class:
|
|
34
|
+
class: V(["svg-icon", {
|
|
35
35
|
[`svg-icon--${e.size}`]: e.size
|
|
36
36
|
}])
|
|
37
37
|
}, [
|
|
@@ -45,7 +45,7 @@ const Rt = {
|
|
|
45
45
|
]))
|
|
46
46
|
], 2));
|
|
47
47
|
}
|
|
48
|
-
}), Wt = { class: "loading-spinner d-block" }, rt = /* @__PURE__ */
|
|
48
|
+
}), Wt = { class: "loading-spinner d-block" }, rt = /* @__PURE__ */ O({
|
|
49
49
|
__name: "loading-spinner",
|
|
50
50
|
props: {
|
|
51
51
|
color: {
|
|
@@ -78,7 +78,7 @@ const Rt = {
|
|
|
78
78
|
N(r.$slots, "default")
|
|
79
79
|
]));
|
|
80
80
|
}
|
|
81
|
-
}), Ut = ["src", "alt"],
|
|
81
|
+
}), Ut = ["src", "alt"], Te = /* @__PURE__ */ O({
|
|
82
82
|
__name: "base-image",
|
|
83
83
|
props: {
|
|
84
84
|
src: {
|
|
@@ -117,7 +117,7 @@ const Rt = {
|
|
|
117
117
|
},
|
|
118
118
|
emits: ["update:ready", "update:pending"],
|
|
119
119
|
setup(e, { emit: r }) {
|
|
120
|
-
const n = e, l = r, a = et("image"), t =
|
|
120
|
+
const n = e, l = r, a = et("image"), t = C(!1);
|
|
121
121
|
function o() {
|
|
122
122
|
t.value = !0, a.value?.addEventListener("transitionend", i, { once: !0 });
|
|
123
123
|
}
|
|
@@ -128,15 +128,15 @@ const Rt = {
|
|
|
128
128
|
n.emitPending && l("update:pending", !0);
|
|
129
129
|
}), (d, m) => e.src ? (c(), g("div", {
|
|
130
130
|
key: 0,
|
|
131
|
-
class:
|
|
131
|
+
class: V(["base-image", {
|
|
132
132
|
"base-image--zoom": e.zoom
|
|
133
133
|
}])
|
|
134
134
|
}, [
|
|
135
|
-
e.spinner && !t.value ? (c(),
|
|
135
|
+
e.spinner && !t.value ? (c(), U(rt, { key: 0 })) : B("", !0),
|
|
136
136
|
s("img", {
|
|
137
137
|
ref_key: "image",
|
|
138
138
|
ref: a,
|
|
139
|
-
class:
|
|
139
|
+
class: V(["", {
|
|
140
140
|
"opacity-0": e.animate && !t.value,
|
|
141
141
|
"opacity-1": !e.animate || t.value
|
|
142
142
|
}]),
|
|
@@ -144,9 +144,9 @@ const Rt = {
|
|
|
144
144
|
alt: e.alt,
|
|
145
145
|
onLoad: o
|
|
146
146
|
}, null, 42, Ut)
|
|
147
|
-
], 2)) :
|
|
147
|
+
], 2)) : B("", !0);
|
|
148
148
|
}
|
|
149
|
-
}), jt = ["innerHTML"],
|
|
149
|
+
}), jt = ["innerHTML"], Cr = /* @__PURE__ */ O({
|
|
150
150
|
__name: "base-headline",
|
|
151
151
|
props: {
|
|
152
152
|
tag: {},
|
|
@@ -157,8 +157,8 @@ const Rt = {
|
|
|
157
157
|
},
|
|
158
158
|
setup(e) {
|
|
159
159
|
const r = e, n = w(() => r.tag || "p");
|
|
160
|
-
return (l, a) => (c(),
|
|
161
|
-
class:
|
|
160
|
+
return (l, a) => (c(), U(ce(n.value), {
|
|
161
|
+
class: V(["headline", `${e.size} headline--${e.size}${e.className || ""}`])
|
|
162
162
|
}, {
|
|
163
163
|
default: _(() => [
|
|
164
164
|
N(l.$slots, "default", {}, () => [
|
|
@@ -189,7 +189,7 @@ function re(e) {
|
|
|
189
189
|
ALLOW_DATA_ATTR: !0
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
const qt = ["innerHTML"],
|
|
192
|
+
const qt = ["innerHTML"], Sr = /* @__PURE__ */ O({
|
|
193
193
|
__name: "base-paragraph",
|
|
194
194
|
props: {
|
|
195
195
|
size: {},
|
|
@@ -200,7 +200,7 @@ const qt = ["innerHTML"], kr = /* @__PURE__ */ H({
|
|
|
200
200
|
setup(e) {
|
|
201
201
|
const r = e;
|
|
202
202
|
return Xe(() => r.text || ""), (n, l) => (c(), g("p", {
|
|
203
|
-
class:
|
|
203
|
+
class: V(["base-paragraph", `${e.size || ""} ${e.className || ""}`]),
|
|
204
204
|
innerHTML: e.text
|
|
205
205
|
}, null, 10, qt));
|
|
206
206
|
}
|
|
@@ -273,7 +273,7 @@ async function Yt(e, r, n) {
|
|
|
273
273
|
function Bt(e) {
|
|
274
274
|
return !e || typeof e != "string" ? "" : e.replace(/\0/g, "").replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, "").replace(/on\w+\s*=\s*["'][^"']*["']/gi, "").replace(/on\w+\s*=\s*[^\s>]*/gi, "").replace(/javascript:/gi, "").replace(/data:text\/html/gi, "");
|
|
275
275
|
}
|
|
276
|
-
const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "aria-controls"], ea = { class: "flex-grow-1" }, ta = ["id", "aria-labelledby", "data-bs-parent"], aa = ["innerHTML"],
|
|
276
|
+
const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "aria-controls"], ea = { class: "flex-grow-1" }, ta = ["id", "aria-labelledby", "data-bs-parent"], aa = ["innerHTML"], kr = /* @__PURE__ */ O({
|
|
277
277
|
__name: "accordion-item",
|
|
278
278
|
props: {
|
|
279
279
|
id: {
|
|
@@ -313,7 +313,7 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
313
313
|
id: `heading-${e.id}`
|
|
314
314
|
}, [
|
|
315
315
|
s("button", {
|
|
316
|
-
class:
|
|
316
|
+
class: V(["accordion-button", !e.modelValue && "collapsed"]),
|
|
317
317
|
type: "button",
|
|
318
318
|
"data-bs-toggle": "collapse",
|
|
319
319
|
"data-bs-target": `#target${e.id}`,
|
|
@@ -327,13 +327,13 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
327
327
|
], 10, Kt)
|
|
328
328
|
], 8, Xt),
|
|
329
329
|
s("div", {
|
|
330
|
-
class:
|
|
330
|
+
class: V(["accordion-collapse collapse", e.modelValue && "show"]),
|
|
331
331
|
id: `target${e.id}`,
|
|
332
332
|
"aria-labelledby": `heading${e.id}`,
|
|
333
333
|
"data-bs-parent": e.parent
|
|
334
334
|
}, [
|
|
335
335
|
s("div", {
|
|
336
|
-
class:
|
|
336
|
+
class: V(["accordion-body", e.noPadding ? "p-0" : ""])
|
|
337
337
|
}, [
|
|
338
338
|
N(o.$slots, "body", {}, () => [
|
|
339
339
|
s("article", { innerHTML: q(a) }, null, 8, aa)
|
|
@@ -353,7 +353,7 @@ function ia(e, r) {
|
|
|
353
353
|
N(e.$slots, "default")
|
|
354
354
|
]);
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const Br = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"], sa = /* @__PURE__ */ O({
|
|
357
357
|
__name: "base-button",
|
|
358
358
|
props: {
|
|
359
359
|
type: {
|
|
@@ -409,7 +409,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
409
409
|
return (l, a) => (c(), g("button", {
|
|
410
410
|
type: e.type,
|
|
411
411
|
disabled: e.disabled,
|
|
412
|
-
class:
|
|
412
|
+
class: V(["btn", {
|
|
413
413
|
disabled: e.disabled,
|
|
414
414
|
pending: e.pending,
|
|
415
415
|
rounded: e.rounded,
|
|
@@ -421,25 +421,25 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
421
421
|
}])
|
|
422
422
|
}, [
|
|
423
423
|
e.pending ? N(l.$slots, "pending-icon", { key: 0 }, () => [
|
|
424
|
-
|
|
425
|
-
]) :
|
|
424
|
+
L(rt)
|
|
425
|
+
]) : B("", !0),
|
|
426
426
|
N(l.$slots, "default", {}, () => [
|
|
427
|
-
e.icon ? (c(),
|
|
427
|
+
e.icon ? (c(), U(Q, {
|
|
428
428
|
key: 0,
|
|
429
429
|
symbol: e.icon,
|
|
430
430
|
class: "base-button__caption"
|
|
431
|
-
}, null, 8, ["symbol"])) :
|
|
431
|
+
}, null, 8, ["symbol"])) : B("", !0),
|
|
432
432
|
n.value ? (c(), g("span", {
|
|
433
433
|
key: 1,
|
|
434
|
-
class:
|
|
435
|
-
}, E(e.caption), 3)) :
|
|
434
|
+
class: V(["base-button__caption", { "icon-padding": e.icon }])
|
|
435
|
+
}, E(e.caption), 3)) : B("", !0)
|
|
436
436
|
])
|
|
437
437
|
], 10, Aa));
|
|
438
438
|
}
|
|
439
439
|
}), ra = { class: "input-group input__input-group" }, ua = ["type", "id", "name", "placeholder", "pattern", "disabled", "readonly", "required", "maxlength", "true-value", "false-value", "aria-label", "role", "autocomplete"], da = ["for", "innerHTML"], ca = {
|
|
440
440
|
key: 0,
|
|
441
441
|
class: "input__error alert alert-danger mt-3"
|
|
442
|
-
},
|
|
442
|
+
}, We = /* @__PURE__ */ O({
|
|
443
443
|
__name: "base-input",
|
|
444
444
|
props: {
|
|
445
445
|
modelValue: {
|
|
@@ -526,7 +526,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
526
526
|
},
|
|
527
527
|
emits: ["update:modelValue", "update:valid"],
|
|
528
528
|
setup(e, { emit: r }) {
|
|
529
|
-
const n = e, l = r, a = et("input"), t =
|
|
529
|
+
const n = e, l = r, a = et("input"), t = C(n.valid), o = C(), i = w(
|
|
530
530
|
() => re(`${n.label}${n.required ? " *" : ""}`)
|
|
531
531
|
), d = w({
|
|
532
532
|
get() {
|
|
@@ -548,9 +548,9 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
548
548
|
function u() {
|
|
549
549
|
n.validate && a.value && (t.value = a.value.checkValidity(), t.value ? o.value = void 0 : o.value = a.value.validationMessage, l("update:valid", t.value));
|
|
550
550
|
}
|
|
551
|
-
return
|
|
551
|
+
return W(() => n.modelValue, () => {
|
|
552
552
|
t.value === !1 && u();
|
|
553
|
-
}),
|
|
553
|
+
}), ne(() => {
|
|
554
554
|
let A = (f) => {
|
|
555
555
|
d.value = typeof f.detail == "string" || typeof f.detail == "number" ? `${f.detail}` : "";
|
|
556
556
|
};
|
|
@@ -560,11 +560,11 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
560
560
|
window.removeEventListener("update-focussed-input", A);
|
|
561
561
|
}), u();
|
|
562
562
|
}), (A, f) => (c(), g("div", {
|
|
563
|
-
class:
|
|
563
|
+
class: V(["input", `input--${e.type}${t.value ? "" : " input--invalid"}`])
|
|
564
564
|
}, [
|
|
565
565
|
s("div", ra, [
|
|
566
566
|
N(A.$slots, "input-prepend", { slotScope: "props" }),
|
|
567
|
-
|
|
567
|
+
ye(s("input", wt({
|
|
568
568
|
ref_key: "input",
|
|
569
569
|
ref: a,
|
|
570
570
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => d.value = v),
|
|
@@ -596,21 +596,21 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
596
596
|
e.label ? (c(), g("label", {
|
|
597
597
|
key: 0,
|
|
598
598
|
for: e.id,
|
|
599
|
-
class:
|
|
599
|
+
class: V(["input__label", {
|
|
600
600
|
"form-check-label": e.type === "checkbox"
|
|
601
601
|
}]),
|
|
602
602
|
innerHTML: i.value
|
|
603
|
-
}, null, 10, da)) :
|
|
603
|
+
}, null, 10, da)) : B("", !0)
|
|
604
604
|
]),
|
|
605
|
-
|
|
605
|
+
L(tt, { name: "fade" }, {
|
|
606
606
|
default: _(() => [
|
|
607
|
-
!t.value && o.value ? (c(), g("div", ca, E(o.value), 1)) :
|
|
607
|
+
!t.value && o.value ? (c(), g("div", ca, E(o.value), 1)) : B("", !0)
|
|
608
608
|
]),
|
|
609
609
|
_: 1
|
|
610
610
|
})
|
|
611
611
|
], 2));
|
|
612
612
|
}
|
|
613
|
-
}), ma = { class: "input input--textarea" }, fa = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "aria-label"], ga = ["for", "innerHTML"],
|
|
613
|
+
}), ma = { class: "input input--textarea" }, fa = ["type", "id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "maxlength", "aria-label"], ga = ["for", "innerHTML"], Mr = /* @__PURE__ */ O({
|
|
614
614
|
__name: "input-textarea",
|
|
615
615
|
props: {
|
|
616
616
|
modelValue: {
|
|
@@ -681,7 +681,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
681
681
|
});
|
|
682
682
|
return (t, o) => (c(), g("div", ma, [
|
|
683
683
|
N(t.$slots, "input-prepend"),
|
|
684
|
-
|
|
684
|
+
ye(s("textarea", {
|
|
685
685
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
686
686
|
type: e.type,
|
|
687
687
|
id: e.id,
|
|
@@ -692,16 +692,16 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
692
692
|
"read-only": e.readOnly,
|
|
693
693
|
required: e.required,
|
|
694
694
|
maxlength: e.maxlength,
|
|
695
|
-
class:
|
|
695
|
+
class: V(["form-control", {}]),
|
|
696
696
|
"aria-label": e.label
|
|
697
697
|
}, null, 8, fa), [
|
|
698
|
-
[
|
|
698
|
+
[Ue, a.value]
|
|
699
699
|
]),
|
|
700
700
|
N(t.$slots, "input-append"),
|
|
701
701
|
N(t.$slots, "label", {}, () => [
|
|
702
702
|
s("label", {
|
|
703
703
|
for: e.id,
|
|
704
|
-
class:
|
|
704
|
+
class: V(["input__label", {
|
|
705
705
|
"form-check-label": e.type === "checkbox"
|
|
706
706
|
}]),
|
|
707
707
|
innerHTML: `${e.label}${e.required ? " *" : ""}`
|
|
@@ -709,7 +709,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
709
709
|
])
|
|
710
710
|
]));
|
|
711
711
|
}
|
|
712
|
-
}), va = { class: "form-check input input--checkbox" }, pa = ["value", "id", "name", "required", "disabled", "true-value", "false-value"], ha = ["for", "innerHTML"],
|
|
712
|
+
}), va = { class: "form-check input input--checkbox" }, pa = ["value", "id", "name", "required", "disabled", "true-value", "false-value"], ha = ["for", "innerHTML"], Lr = /* @__PURE__ */ O({
|
|
713
713
|
__name: "input-checkbox",
|
|
714
714
|
props: {
|
|
715
715
|
id: {
|
|
@@ -765,7 +765,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
765
765
|
}
|
|
766
766
|
});
|
|
767
767
|
return (t, o) => (c(), g("div", va, [
|
|
768
|
-
|
|
768
|
+
ye(s("input", {
|
|
769
769
|
ref: "input",
|
|
770
770
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
771
771
|
value: e.value,
|
|
@@ -787,7 +787,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
787
787
|
}, null, 8, ha)
|
|
788
788
|
]));
|
|
789
789
|
}
|
|
790
|
-
}), ya = { class: "input-group input__input-group" }, ba = ["id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "aria-label"], wa = ["for", "innerHTML"],
|
|
790
|
+
}), ya = { class: "input-group input__input-group" }, ba = ["id", "name", "placeholder", "pattern", "disabled", "read-only", "required", "aria-label"], wa = ["for", "innerHTML"], Ir = /* @__PURE__ */ O({
|
|
791
791
|
__name: "input-datetime",
|
|
792
792
|
props: {
|
|
793
793
|
modelValue: {
|
|
@@ -848,11 +848,11 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
848
848
|
}
|
|
849
849
|
});
|
|
850
850
|
return (t, o) => (c(), g("div", {
|
|
851
|
-
class:
|
|
851
|
+
class: V(["input", `input--${e.type}`])
|
|
852
852
|
}, [
|
|
853
853
|
s("div", ya, [
|
|
854
854
|
N(t.$slots, "input-prepend", { slotScope: "props" }),
|
|
855
|
-
|
|
855
|
+
ye(s("input", {
|
|
856
856
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
857
857
|
type: "datetime-local",
|
|
858
858
|
id: e.id,
|
|
@@ -865,7 +865,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
865
865
|
class: "form-control",
|
|
866
866
|
"aria-label": e.label
|
|
867
867
|
}, null, 8, ba), [
|
|
868
|
-
[
|
|
868
|
+
[Ue, a.value]
|
|
869
869
|
]),
|
|
870
870
|
N(t.$slots, "input-append", { slotScope: "props" })
|
|
871
871
|
]),
|
|
@@ -875,7 +875,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), Aa = ["type", "disabled"],
|
|
|
875
875
|
for: e.id,
|
|
876
876
|
class: "input__label",
|
|
877
877
|
innerHTML: q(re)(`${e.label}${e.required ? " *" : ""}`)
|
|
878
|
-
}, null, 8, wa)) :
|
|
878
|
+
}, null, 8, wa)) : B("", !0)
|
|
879
879
|
])
|
|
880
880
|
], 2));
|
|
881
881
|
}
|
|
@@ -1269,7 +1269,7 @@ const vt = {
|
|
|
1269
1269
|
evening: "abends",
|
|
1270
1270
|
night: "nachts"
|
|
1271
1271
|
}
|
|
1272
|
-
}, Na = (e) => Number(e) + ".",
|
|
1272
|
+
}, Na = (e) => Number(e) + ".", Ha = {
|
|
1273
1273
|
ordinalNumber: Na,
|
|
1274
1274
|
era: Ae({
|
|
1275
1275
|
values: Va,
|
|
@@ -1295,7 +1295,7 @@ const vt = {
|
|
|
1295
1295
|
formattingValues: za,
|
|
1296
1296
|
defaultFormattingWidth: "wide"
|
|
1297
1297
|
})
|
|
1298
|
-
},
|
|
1298
|
+
}, Qa = /^(\d+)(\.)?/i, Oa = /\d+/i, Ra = {
|
|
1299
1299
|
narrow: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
1300
1300
|
abbreviated: /^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,
|
|
1301
1301
|
wide: /^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i
|
|
@@ -1366,8 +1366,8 @@ const vt = {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
}, Za = {
|
|
1368
1368
|
ordinalNumber: ut({
|
|
1369
|
-
matchPattern:
|
|
1370
|
-
parsePattern:
|
|
1369
|
+
matchPattern: Qa,
|
|
1370
|
+
parsePattern: Oa,
|
|
1371
1371
|
valueCallback: (e) => parseInt(e)
|
|
1372
1372
|
}),
|
|
1373
1373
|
era: se({
|
|
@@ -1406,7 +1406,7 @@ const vt = {
|
|
|
1406
1406
|
formatDistance: Sa,
|
|
1407
1407
|
formatLong: La,
|
|
1408
1408
|
formatRelative: Da,
|
|
1409
|
-
localize:
|
|
1409
|
+
localize: Ha,
|
|
1410
1410
|
match: Za,
|
|
1411
1411
|
options: {
|
|
1412
1412
|
weekStartsOn: 1,
|
|
@@ -1883,11 +1883,11 @@ const vt = {
|
|
|
1883
1883
|
narrow: ["av. J.-C", "ap. J.-C"],
|
|
1884
1884
|
abbreviated: ["av. J.-C", "ap. J.-C"],
|
|
1885
1885
|
wide: ["avant Jésus-Christ", "après Jésus-Christ"]
|
|
1886
|
-
},
|
|
1886
|
+
}, Hn = {
|
|
1887
1887
|
narrow: ["T1", "T2", "T3", "T4"],
|
|
1888
1888
|
abbreviated: ["1er trim.", "2ème trim.", "3ème trim.", "4ème trim."],
|
|
1889
1889
|
wide: ["1er trimestre", "2ème trimestre", "3ème trimestre", "4ème trimestre"]
|
|
1890
|
-
},
|
|
1890
|
+
}, Qn = {
|
|
1891
1891
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
1892
1892
|
abbreviated: [
|
|
1893
1893
|
"janv.",
|
|
@@ -1917,7 +1917,7 @@ const vt = {
|
|
|
1917
1917
|
"novembre",
|
|
1918
1918
|
"décembre"
|
|
1919
1919
|
]
|
|
1920
|
-
},
|
|
1920
|
+
}, On = {
|
|
1921
1921
|
narrow: ["D", "L", "M", "M", "J", "V", "S"],
|
|
1922
1922
|
short: ["di", "lu", "ma", "me", "je", "ve", "sa"],
|
|
1923
1923
|
abbreviated: ["dim.", "lun.", "mar.", "mer.", "jeu.", "ven.", "sam."],
|
|
@@ -1979,16 +1979,16 @@ const vt = {
|
|
|
1979
1979
|
defaultWidth: "wide"
|
|
1980
1980
|
}),
|
|
1981
1981
|
quarter: Ae({
|
|
1982
|
-
values:
|
|
1982
|
+
values: Hn,
|
|
1983
1983
|
defaultWidth: "wide",
|
|
1984
1984
|
argumentCallback: (e) => e - 1
|
|
1985
1985
|
}),
|
|
1986
1986
|
month: Ae({
|
|
1987
|
-
values:
|
|
1987
|
+
values: Qn,
|
|
1988
1988
|
defaultWidth: "wide"
|
|
1989
1989
|
}),
|
|
1990
1990
|
day: Ae({
|
|
1991
|
-
values:
|
|
1991
|
+
values: On,
|
|
1992
1992
|
defaultWidth: "wide"
|
|
1993
1993
|
}),
|
|
1994
1994
|
dayPeriod: Ae({
|
|
@@ -2116,7 +2116,7 @@ const vt = {
|
|
|
2116
2116
|
}, dl = { class: "col-12 col-md-6" }, cl = { class: "col-12 col-md-6" }, ml = {
|
|
2117
2117
|
key: 1,
|
|
2118
2118
|
class: "row"
|
|
2119
|
-
}, fl = { class: "col-12" },
|
|
2119
|
+
}, fl = { class: "col-12" }, Dr = /* @__PURE__ */ O({
|
|
2120
2120
|
__name: "input-datepicker",
|
|
2121
2121
|
props: {
|
|
2122
2122
|
modelValue: {
|
|
@@ -2191,7 +2191,7 @@ const vt = {
|
|
|
2191
2191
|
emits: ["update:modelValue", "update:from", "update:to"],
|
|
2192
2192
|
setup(e, { emit: r }) {
|
|
2193
2193
|
const n = Ye(null);
|
|
2194
|
-
|
|
2194
|
+
ne(async () => {
|
|
2195
2195
|
const { VueDatePicker: b } = await import("@vuepic/vue-datepicker");
|
|
2196
2196
|
n.value = b;
|
|
2197
2197
|
});
|
|
@@ -2212,8 +2212,8 @@ const vt = {
|
|
|
2212
2212
|
];
|
|
2213
2213
|
} else {
|
|
2214
2214
|
if (l.utcStore) {
|
|
2215
|
-
const
|
|
2216
|
-
return
|
|
2215
|
+
const M = l.modelValue;
|
|
2216
|
+
return M && y(M) || "";
|
|
2217
2217
|
}
|
|
2218
2218
|
const b = l.modelValue ? /* @__PURE__ */ new Date(`${l.modelValue}Z`) : null, h = b && b.toISOString();
|
|
2219
2219
|
return h && h.replace("Z", "");
|
|
@@ -2221,10 +2221,10 @@ const vt = {
|
|
|
2221
2221
|
},
|
|
2222
2222
|
set(b) {
|
|
2223
2223
|
if (l.range && Array.isArray(b)) {
|
|
2224
|
-
let [h,
|
|
2225
|
-
l.utcStore ? (h =
|
|
2224
|
+
let [h, M] = b;
|
|
2225
|
+
l.utcStore ? (h = $(h) || null, M = $(M) || null) : (h = h && new Date(h), h?.setUTCHours(h.getHours()), h = h?.toISOString()?.replace("Z", ""), M = M && new Date(M), M?.setUTCHours(M.getHours()), M = M?.toISOString()?.replace("Z", "")), a("update:modelValue", [h, M]), a("update:from", h), a("update:to", M);
|
|
2226
2226
|
} else if (l.utcStore) {
|
|
2227
|
-
const h =
|
|
2227
|
+
const h = $(b);
|
|
2228
2228
|
a("update:modelValue", h);
|
|
2229
2229
|
} else {
|
|
2230
2230
|
const h = b && new Date(b);
|
|
@@ -2246,33 +2246,33 @@ const vt = {
|
|
|
2246
2246
|
u.value = Array.isArray(u.value) ? [u.value[0], b] : b;
|
|
2247
2247
|
}
|
|
2248
2248
|
});
|
|
2249
|
-
|
|
2250
|
-
l.range && b.some((
|
|
2249
|
+
W(() => [A.value, f.value], (b, h) => {
|
|
2250
|
+
l.range && b.some((M) => M === void 0) && h.every(Boolean) && (u.value = []);
|
|
2251
2251
|
});
|
|
2252
2252
|
function v(b) {
|
|
2253
2253
|
if (!b)
|
|
2254
2254
|
return;
|
|
2255
|
-
const h = b.getDate(),
|
|
2255
|
+
const h = b.getDate(), M = b.getMonth() + 1, T = b.getFullYear(), k = b.getMinutes(), z = b.getHours();
|
|
2256
2256
|
switch (d.value) {
|
|
2257
2257
|
case "de":
|
|
2258
|
-
return `${h}.${
|
|
2258
|
+
return `${h}.${M}.${T} ${z < 10 ? "0" + z : z}:${k < 10 ? "0" + k : k}`;
|
|
2259
2259
|
case "fr":
|
|
2260
|
-
return `${h}/${
|
|
2260
|
+
return `${h}/${M}/${T} ${z < 10 ? "0" + z : z}:${k < 10 ? "0" + k : k}`;
|
|
2261
2261
|
default:
|
|
2262
|
-
return `${
|
|
2262
|
+
return `${M}/${h}/${T} ${z < 10 ? "0" + z : z}:${k < 10 ? "0" + k : k}`;
|
|
2263
2263
|
}
|
|
2264
2264
|
}
|
|
2265
2265
|
function y(b) {
|
|
2266
2266
|
if (!b) return null;
|
|
2267
|
-
const h = b instanceof Date ? new Date(b) : /* @__PURE__ */ new Date(`${b}Z`),
|
|
2268
|
-
return `${
|
|
2267
|
+
const h = b instanceof Date ? new Date(b) : /* @__PURE__ */ new Date(`${b}Z`), M = h.getFullYear(), T = String(h.getMonth() + 1).padStart(2, "0"), k = String(h.getDate()).padStart(2, "0"), z = String(h.getHours()).padStart(2, "0"), K = String(h.getMinutes()).padStart(2, "0"), ge = String(h.getSeconds()).padStart(2, "0");
|
|
2268
|
+
return `${M}-${T}-${k}T${z}:${K}:${ge}`;
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function $(b) {
|
|
2271
2271
|
return b ? (b instanceof Date ? new Date(b) : new Date(String(b))).toISOString().split(".")[0] : null;
|
|
2272
2272
|
}
|
|
2273
2273
|
const D = (b) => (Array.isArray(b) ? b = b.map((h) => v(h)).join(" - ") : b = v(b), b);
|
|
2274
2274
|
return (b, h) => (c(), g("div", {
|
|
2275
|
-
class:
|
|
2275
|
+
class: V(["input", "input--datepicker"])
|
|
2276
2276
|
}, [
|
|
2277
2277
|
N(b.$slots, "label", {}, () => [
|
|
2278
2278
|
s("div", ol, [
|
|
@@ -2282,7 +2282,7 @@ const vt = {
|
|
|
2282
2282
|
for: e.id,
|
|
2283
2283
|
class: "input__label",
|
|
2284
2284
|
innerHTML: q(re)(`${e.label}${e.required ? " *" : ""}`)
|
|
2285
|
-
}, null, 8, Al)) :
|
|
2285
|
+
}, null, 8, Al)) : B("", !0)
|
|
2286
2286
|
])
|
|
2287
2287
|
])
|
|
2288
2288
|
]),
|
|
@@ -2291,10 +2291,10 @@ const vt = {
|
|
|
2291
2291
|
N(b.$slots, "input-prepend", { slotScope: "props" }),
|
|
2292
2292
|
e.range && !e.textRange ? (c(), g("div", ul, [
|
|
2293
2293
|
s("div", dl, [
|
|
2294
|
-
(c(),
|
|
2294
|
+
(c(), U(ce(n.value), {
|
|
2295
2295
|
uid: `${e.id}-from`,
|
|
2296
2296
|
modelValue: A.value,
|
|
2297
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2297
|
+
"onUpdate:modelValue": h[0] || (h[0] = (M) => A.value = M),
|
|
2298
2298
|
locale: d.value,
|
|
2299
2299
|
format: D,
|
|
2300
2300
|
"text-input": m.value,
|
|
@@ -2305,10 +2305,10 @@ const vt = {
|
|
|
2305
2305
|
}, null, 8, ["uid", "modelValue", "locale", "text-input", "disabled", "read-only", "required"]))
|
|
2306
2306
|
]),
|
|
2307
2307
|
s("div", cl, [
|
|
2308
|
-
(c(),
|
|
2308
|
+
(c(), U(ce(n.value), {
|
|
2309
2309
|
uid: `${e.id}-to`,
|
|
2310
2310
|
modelValue: f.value,
|
|
2311
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
2311
|
+
"onUpdate:modelValue": h[1] || (h[1] = (M) => f.value = M),
|
|
2312
2312
|
locale: d.value,
|
|
2313
2313
|
format: D,
|
|
2314
2314
|
"text-input": m.value,
|
|
@@ -2318,11 +2318,11 @@ const vt = {
|
|
|
2318
2318
|
"auto-apply": !0
|
|
2319
2319
|
}, null, 8, ["uid", "modelValue", "locale", "text-input", "disabled", "read-only", "required"]))
|
|
2320
2320
|
])
|
|
2321
|
-
])) : (c(),
|
|
2321
|
+
])) : (c(), U(ce(n.value), {
|
|
2322
2322
|
key: 1,
|
|
2323
2323
|
uid: `${e.id}-input-to`,
|
|
2324
2324
|
modelValue: u.value,
|
|
2325
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
2325
|
+
"onUpdate:modelValue": h[2] || (h[2] = (M) => u.value = M),
|
|
2326
2326
|
format: D,
|
|
2327
2327
|
locale: d.value,
|
|
2328
2328
|
range: e.textRange,
|
|
@@ -2334,13 +2334,13 @@ const vt = {
|
|
|
2334
2334
|
}, null, 8, ["uid", "modelValue", "locale", "range", "text-input", "disabled", "read-only", "required"])),
|
|
2335
2335
|
N(b.$slots, "input-append", { slotScope: "props" })
|
|
2336
2336
|
])
|
|
2337
|
-
])) :
|
|
2337
|
+
])) : B("", !0),
|
|
2338
2338
|
e.inline ? (c(), g("div", ml, [
|
|
2339
2339
|
s("div", fl, [
|
|
2340
|
-
(c(),
|
|
2340
|
+
(c(), U(ce(n.value), {
|
|
2341
2341
|
uid: `${e.id}-inline`,
|
|
2342
2342
|
modelValue: u.value,
|
|
2343
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
2343
|
+
"onUpdate:modelValue": h[3] || (h[3] = (M) => u.value = M),
|
|
2344
2344
|
locale: d.value,
|
|
2345
2345
|
cancelText: "abbrechen",
|
|
2346
2346
|
selectText: "auswählen",
|
|
@@ -2358,10 +2358,10 @@ const vt = {
|
|
|
2358
2358
|
"month-name-format": "long"
|
|
2359
2359
|
}, null, 8, ["uid", "modelValue", "locale", "range", "multi-calendars", "partial-range", "disabled", "read-only", "required"]))
|
|
2360
2360
|
])
|
|
2361
|
-
])) :
|
|
2361
|
+
])) : B("", !0)
|
|
2362
2362
|
]));
|
|
2363
2363
|
}
|
|
2364
|
-
}), gl = { class: "input-group input__input-group" }, vl = /* @__PURE__ */
|
|
2364
|
+
}), gl = { class: "input-group input__input-group" }, vl = /* @__PURE__ */ O({
|
|
2365
2365
|
__name: "input-password",
|
|
2366
2366
|
props: {
|
|
2367
2367
|
modelValue: {
|
|
@@ -2439,10 +2439,10 @@ const vt = {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
});
|
|
2441
2441
|
return (t, o) => (c(), g("div", {
|
|
2442
|
-
class:
|
|
2442
|
+
class: V(["input", "input-password"])
|
|
2443
2443
|
}, [
|
|
2444
2444
|
s("div", gl, [
|
|
2445
|
-
|
|
2445
|
+
L(We, {
|
|
2446
2446
|
modelValue: a.value,
|
|
2447
2447
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
2448
2448
|
type: "password",
|
|
@@ -2457,11 +2457,11 @@ const vt = {
|
|
|
2457
2457
|
]),
|
|
2458
2458
|
"input-append": _((i) => [
|
|
2459
2459
|
N(t.$slots, "input-append", { slotScope: "props" }, () => [
|
|
2460
|
-
e.confirm && e.modelValue === e.password ? (c(),
|
|
2460
|
+
e.confirm && e.modelValue === e.password ? (c(), U(Q, {
|
|
2461
2461
|
key: 0,
|
|
2462
2462
|
symbol: "check",
|
|
2463
2463
|
class: "ms-2"
|
|
2464
|
-
})) :
|
|
2464
|
+
})) : B("", !0)
|
|
2465
2465
|
])
|
|
2466
2466
|
]),
|
|
2467
2467
|
_: 3
|
|
@@ -2469,7 +2469,7 @@ const vt = {
|
|
|
2469
2469
|
])
|
|
2470
2470
|
]));
|
|
2471
2471
|
}
|
|
2472
|
-
}), pl = { class: "input-group input__input-group" }, hl = ["onUpdate:modelValue", "disabled", "readonly", "onPaste", "onInput", "onKeydown"],
|
|
2472
|
+
}), pl = { class: "input-group input__input-group" }, hl = ["onUpdate:modelValue", "disabled", "readonly", "onPaste", "onInput", "onKeydown"], Vr = /* @__PURE__ */ O({
|
|
2473
2473
|
__name: "input-passcode",
|
|
2474
2474
|
props: {
|
|
2475
2475
|
modelValue: {
|
|
@@ -2542,7 +2542,7 @@ const vt = {
|
|
|
2542
2542
|
},
|
|
2543
2543
|
emits: ["update:modelValue"],
|
|
2544
2544
|
setup(e, { emit: r }) {
|
|
2545
|
-
const n =
|
|
2545
|
+
const n = C([]), l = C([]), a = e, t = r, o = w({
|
|
2546
2546
|
get() {
|
|
2547
2547
|
return a.modelValue;
|
|
2548
2548
|
},
|
|
@@ -2550,11 +2550,11 @@ const vt = {
|
|
|
2550
2550
|
a.passcodeMatch === u || !a.passcodeMatch ? t("update:modelValue", u) : t("update:modelValue", "");
|
|
2551
2551
|
}
|
|
2552
2552
|
});
|
|
2553
|
-
|
|
2553
|
+
W(() => a.modelValue, (u) => {
|
|
2554
2554
|
const A = u?.toString() || "";
|
|
2555
2555
|
for (l.value = A.split("").slice(0, a.passcodeMatch?.length || 6); l.value.length < (a.passcodeMatch?.length || 6); )
|
|
2556
2556
|
l.value.push("");
|
|
2557
|
-
}, { immediate: !0 }),
|
|
2557
|
+
}, { immediate: !0 }), W(() => l.value, (u) => {
|
|
2558
2558
|
const A = u.join("");
|
|
2559
2559
|
a.passcodeMatch === A || !a.passcodeMatch ? t("update:modelValue", A) : t("update:modelValue", "");
|
|
2560
2560
|
}, { deep: !0 });
|
|
@@ -2567,8 +2567,8 @@ const vt = {
|
|
|
2567
2567
|
const h = A + b;
|
|
2568
2568
|
h < y && (l.value[h] = D);
|
|
2569
2569
|
});
|
|
2570
|
-
const
|
|
2571
|
-
setTimeout(() => n.value[
|
|
2570
|
+
const $ = Math.min(A + v.length, y - 1);
|
|
2571
|
+
setTimeout(() => n.value[$]?.focus(), 0);
|
|
2572
2572
|
}, d = (u, A) => {
|
|
2573
2573
|
a.passcodeMatch?.length, u.key === "Backspace" && !l.value[A] && A > 0 && n.value[A - 1]?.focus();
|
|
2574
2574
|
}, m = (u, A) => {
|
|
@@ -2578,10 +2578,10 @@ const vt = {
|
|
|
2578
2578
|
v && A < y - 1 && setTimeout(() => n.value[A + 1]?.focus(), 0);
|
|
2579
2579
|
};
|
|
2580
2580
|
return (u, A) => (c(), g("div", {
|
|
2581
|
-
class:
|
|
2581
|
+
class: V(["input", "input-passcode"])
|
|
2582
2582
|
}, [
|
|
2583
2583
|
s("div", pl, [
|
|
2584
|
-
e.splitInput ? (c(!0), g(
|
|
2584
|
+
e.splitInput ? (c(!0), g(ae, { key: 1 }, ue(e.passcodeMatch, (f, v) => ye((c(), g("input", {
|
|
2585
2585
|
key: v,
|
|
2586
2586
|
"onUpdate:modelValue": (y) => l.value[v] = y,
|
|
2587
2587
|
type: "text",
|
|
@@ -2596,8 +2596,8 @@ const vt = {
|
|
|
2596
2596
|
size: "1",
|
|
2597
2597
|
class: "form-control text-center"
|
|
2598
2598
|
}, null, 40, hl)), [
|
|
2599
|
-
[
|
|
2600
|
-
])), 128)) : (c(),
|
|
2599
|
+
[Ue, l.value[v]]
|
|
2600
|
+
])), 128)) : (c(), U(vl, {
|
|
2601
2601
|
key: 0,
|
|
2602
2602
|
modelValue: o.value,
|
|
2603
2603
|
"onUpdate:modelValue": A[0] || (A[0] = (f) => o.value = f),
|
|
@@ -2611,7 +2611,7 @@ const vt = {
|
|
|
2611
2611
|
])
|
|
2612
2612
|
]));
|
|
2613
2613
|
}
|
|
2614
|
-
}), yl = { class: "check-group" }, bl = ["id", "name", "value", "disabled", "read-only", "required"], wl = ["for", "innerHTML"],
|
|
2614
|
+
}), yl = { class: "check-group" }, bl = ["id", "name", "value", "disabled", "read-only", "required"], wl = ["for", "innerHTML"], Pr = /* @__PURE__ */ O({
|
|
2615
2615
|
__name: "check-group",
|
|
2616
2616
|
props: {
|
|
2617
2617
|
modelValue: {
|
|
@@ -2650,7 +2650,7 @@ const vt = {
|
|
|
2650
2650
|
emits: ["update:modelValue"],
|
|
2651
2651
|
setup(e, { emit: r }) {
|
|
2652
2652
|
const n = e, l = r;
|
|
2653
|
-
|
|
2653
|
+
C([]);
|
|
2654
2654
|
const a = w({
|
|
2655
2655
|
get() {
|
|
2656
2656
|
return n.modelValue;
|
|
@@ -2666,11 +2666,11 @@ const vt = {
|
|
|
2666
2666
|
active: n.modelValue && n.modelValue.includes(o.value)
|
|
2667
2667
|
})));
|
|
2668
2668
|
return (o, i) => (c(), g("div", yl, [
|
|
2669
|
-
(c(!0), g(
|
|
2669
|
+
(c(!0), g(ae, null, ue(t.value, (d, m) => (c(), g("div", {
|
|
2670
2670
|
key: m,
|
|
2671
2671
|
class: "form-check"
|
|
2672
2672
|
}, [
|
|
2673
|
-
|
|
2673
|
+
ye(s("input", {
|
|
2674
2674
|
type: "checkbox",
|
|
2675
2675
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.value = u),
|
|
2676
2676
|
id: `${e.id}-${m}`,
|
|
@@ -2691,7 +2691,7 @@ const vt = {
|
|
|
2691
2691
|
]))), 128))
|
|
2692
2692
|
]));
|
|
2693
2693
|
}
|
|
2694
|
-
}), $l = { class: "input radio-group" }, Cl = ["id", "name", "value", "checked", "disabled", "read-only", "required", "onChange"], Sl = ["for", "innerHTML"], kl = ["for"], dt = /* @__PURE__ */
|
|
2694
|
+
}), $l = { class: "input radio-group" }, Cl = ["id", "name", "value", "checked", "disabled", "read-only", "required", "onChange"], Sl = ["for", "innerHTML"], kl = ["for"], dt = /* @__PURE__ */ O({
|
|
2695
2695
|
__name: "radio-group",
|
|
2696
2696
|
props: {
|
|
2697
2697
|
modelValue: {
|
|
@@ -2745,15 +2745,15 @@ const vt = {
|
|
|
2745
2745
|
n("update:modelValue", a);
|
|
2746
2746
|
}
|
|
2747
2747
|
return (a, t) => (c(), g("div", $l, [
|
|
2748
|
-
(c(!0), g(
|
|
2748
|
+
(c(!0), g(ae, null, ue(e.options, (o, i) => (c(), g("div", {
|
|
2749
2749
|
key: i,
|
|
2750
|
-
class:
|
|
2750
|
+
class: V(["form-check", e.itemClass])
|
|
2751
2751
|
}, [
|
|
2752
2752
|
s("input", {
|
|
2753
2753
|
type: "radio",
|
|
2754
2754
|
id: `${e.id}-${i}`,
|
|
2755
2755
|
name: e.name,
|
|
2756
|
-
class:
|
|
2756
|
+
class: V(["form-check-input", `
|
|
2757
2757
|
${i === e.keyOption || o.key ? "form-check-input--key" : ""}
|
|
2758
2758
|
${(i === e.keyOption || o.key) && o.value === e.modelValue?.value ? "form-check-input--match" : ""}
|
|
2759
2759
|
`]),
|
|
@@ -2779,11 +2779,11 @@ const vt = {
|
|
|
2779
2779
|
e.label ? (c(), g("label", {
|
|
2780
2780
|
key: 0,
|
|
2781
2781
|
for: e.id
|
|
2782
|
-
}, E(e.label), 9, kl)) :
|
|
2782
|
+
}, E(e.label), 9, kl)) : B("", !0)
|
|
2783
2783
|
])
|
|
2784
2784
|
]));
|
|
2785
2785
|
}
|
|
2786
|
-
}), Bl = { class: "radio-buttons" }, Ml = ["for"],
|
|
2786
|
+
}), Bl = { class: "radio-buttons" }, Ml = ["for"], xr = /* @__PURE__ */ O({
|
|
2787
2787
|
__name: "radio-buttons",
|
|
2788
2788
|
props: {
|
|
2789
2789
|
modelValue: {
|
|
@@ -2833,7 +2833,7 @@ const vt = {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
});
|
|
2835
2835
|
return (t, o) => (c(), g("div", Bl, [
|
|
2836
|
-
|
|
2836
|
+
L(dt, {
|
|
2837
2837
|
modelValue: a.value,
|
|
2838
2838
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
2839
2839
|
options: e.options,
|
|
@@ -2854,7 +2854,7 @@ const vt = {
|
|
|
2854
2854
|
}, 8, ["modelValue", "options", "name", "id", "disabled", "required"])
|
|
2855
2855
|
]));
|
|
2856
2856
|
}
|
|
2857
|
-
}), Ll = ["id", "name", "multiple", "accept", "disabled"], Il = { class: "input__input-group input-group" }, Dl = ["value", "id", "name", "disabled"], Vl = ["for", "disabled"], Pl = { class: "btn btn-outline-contrast" }, xl = ["for"], El = ["innerHTML"], Mt = /* @__PURE__ */
|
|
2857
|
+
}), Ll = ["id", "name", "multiple", "accept", "disabled"], Il = { class: "input__input-group input-group" }, Dl = ["value", "id", "name", "disabled"], Vl = ["for", "disabled"], Pl = { class: "btn btn-outline-contrast" }, xl = ["for"], El = ["innerHTML"], Mt = /* @__PURE__ */ O({
|
|
2858
2858
|
__name: "input-file",
|
|
2859
2859
|
props: {
|
|
2860
2860
|
modelValue: {
|
|
@@ -2926,13 +2926,13 @@ const vt = {
|
|
|
2926
2926
|
o.push(u);
|
|
2927
2927
|
}));
|
|
2928
2928
|
}
|
|
2929
|
-
const t =
|
|
2930
|
-
return
|
|
2929
|
+
const t = C(), o = Tt([]), i = w(() => o && o.map((d) => d.name));
|
|
2930
|
+
return W(() => n.modelValue, (d, m) => {
|
|
2931
2931
|
d.length === 0 && (t.value.value = null);
|
|
2932
|
-
}, { deep: !0 }),
|
|
2932
|
+
}, { deep: !0 }), W(() => o, (d, m) => {
|
|
2933
2933
|
l("update:modelValue", d);
|
|
2934
2934
|
}, { deep: !0 }), (d, m) => (c(), g("div", {
|
|
2935
|
-
class:
|
|
2935
|
+
class: V(["input input-file", "input-file--primary"])
|
|
2936
2936
|
}, [
|
|
2937
2937
|
s("input", {
|
|
2938
2938
|
ref_key: "input",
|
|
@@ -2980,14 +2980,14 @@ const vt = {
|
|
|
2980
2980
|
}), Tl = {
|
|
2981
2981
|
key: 0,
|
|
2982
2982
|
class: "custom-html"
|
|
2983
|
-
}, zl = ["innerHTML"],
|
|
2983
|
+
}, zl = ["innerHTML"], Er = /* @__PURE__ */ O({
|
|
2984
2984
|
__name: "custom-html",
|
|
2985
2985
|
props: {
|
|
2986
2986
|
content: {}
|
|
2987
2987
|
},
|
|
2988
2988
|
setup(e) {
|
|
2989
|
-
const r =
|
|
2990
|
-
return
|
|
2989
|
+
const r = C(!1);
|
|
2990
|
+
return ne(() => {
|
|
2991
2991
|
window !== void 0 && (r.value = !0);
|
|
2992
2992
|
}), (n, l) => r.value ? (c(), g("div", Tl, [
|
|
2993
2993
|
N(n.$slots, "default", {}, () => [
|
|
@@ -2996,9 +2996,9 @@ const vt = {
|
|
|
2996
2996
|
innerHTML: e.content
|
|
2997
2997
|
}, null, 8, zl)
|
|
2998
2998
|
])
|
|
2999
|
-
])) :
|
|
2999
|
+
])) : B("", !0);
|
|
3000
3000
|
}
|
|
3001
|
-
}), Nl = { class: "select-media" },
|
|
3001
|
+
}), Nl = { class: "select-media" }, Hl = ["for"], Tr = /* @__PURE__ */ O({
|
|
3002
3002
|
__name: "select-media",
|
|
3003
3003
|
props: {
|
|
3004
3004
|
modelValue: {
|
|
@@ -3045,7 +3045,7 @@ const vt = {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
});
|
|
3047
3047
|
return (t, o) => (c(), g("div", Nl, [
|
|
3048
|
-
|
|
3048
|
+
L(dt, {
|
|
3049
3049
|
modelValue: a.value,
|
|
3050
3050
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
3051
3051
|
options: e.assets.map((i) => i.id),
|
|
@@ -3059,23 +3059,23 @@ const vt = {
|
|
|
3059
3059
|
"option-label": _((i) => [
|
|
3060
3060
|
s("label", {
|
|
3061
3061
|
for: `${e.id}-${i.index}`,
|
|
3062
|
-
class:
|
|
3062
|
+
class: V(["w-100", {
|
|
3063
3063
|
"is-active": e.assets[i.index].id === a.value
|
|
3064
3064
|
}]),
|
|
3065
3065
|
role: "button"
|
|
3066
3066
|
}, [
|
|
3067
|
-
e.assets[i.index].thumbnail ? (c(),
|
|
3067
|
+
e.assets[i.index].thumbnail ? (c(), U(Te, {
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
src: e.assets[i.index].thumbnail,
|
|
3070
3070
|
alt: e.assets[i.index].id
|
|
3071
|
-
}, null, 8, ["src", "alt"])) :
|
|
3072
|
-
], 10,
|
|
3071
|
+
}, null, 8, ["src", "alt"])) : B("", !0)
|
|
3072
|
+
], 10, Hl)
|
|
3073
3073
|
]),
|
|
3074
3074
|
_: 1
|
|
3075
3075
|
}, 8, ["modelValue", "options", "name", "id", "disabled", "required"])
|
|
3076
3076
|
]));
|
|
3077
3077
|
}
|
|
3078
|
-
}),
|
|
3078
|
+
}), Ql = { class: "rte-editor" }, Ol = {
|
|
3079
3079
|
key: 0,
|
|
3080
3080
|
class: "rte-editor__controls mb-2"
|
|
3081
3081
|
}, Rl = ["disabled"], Fl = ["disabled"], Wl = { class: "btn-group" }, Ul = ["disabled"], jl = ["disabled"], ql = { class: "btn-group" }, _l = { class: "dropdown" }, Jl = {
|
|
@@ -3088,7 +3088,7 @@ const vt = {
|
|
|
3088
3088
|
"data-bs-toggle": "dropdown",
|
|
3089
3089
|
role: "button",
|
|
3090
3090
|
type: "button"
|
|
3091
|
-
}, Xl = { class: "dropdown-menu" }, Kl = { class: "btn-group" }, eo = ["disabled"], to = ["disabled"],
|
|
3091
|
+
}, Xl = { class: "dropdown-menu" }, Kl = { class: "btn-group" }, eo = ["disabled"], to = ["disabled"], zr = /* @__PURE__ */ O({
|
|
3092
3092
|
__name: "rte-editor",
|
|
3093
3093
|
props: {
|
|
3094
3094
|
modelValue: {
|
|
@@ -3106,14 +3106,14 @@ const vt = {
|
|
|
3106
3106
|
},
|
|
3107
3107
|
emits: ["update:modelValue"],
|
|
3108
3108
|
setup(e, { emit: r }) {
|
|
3109
|
-
const n = e, l = r, a =
|
|
3110
|
-
|
|
3109
|
+
const n = e, l = r, a = C(!1), t = Ye(void 0), o = Ye(null);
|
|
3110
|
+
ne(async () => {
|
|
3111
3111
|
const [
|
|
3112
3112
|
{ Editor: u, mergeAttributes: A },
|
|
3113
3113
|
{ EditorContent: f },
|
|
3114
3114
|
{ default: v },
|
|
3115
3115
|
{ default: y },
|
|
3116
|
-
{ default:
|
|
3116
|
+
{ default: $ },
|
|
3117
3117
|
{ default: D },
|
|
3118
3118
|
{ default: b }
|
|
3119
3119
|
] = await Promise.all([
|
|
@@ -3157,7 +3157,7 @@ const vt = {
|
|
|
3157
3157
|
types: ["heading", "paragraph"]
|
|
3158
3158
|
}),
|
|
3159
3159
|
v,
|
|
3160
|
-
|
|
3160
|
+
$.extend({
|
|
3161
3161
|
addAttributes() {
|
|
3162
3162
|
return {
|
|
3163
3163
|
...this.parent?.(),
|
|
@@ -3203,7 +3203,7 @@ const vt = {
|
|
|
3203
3203
|
},
|
|
3204
3204
|
renderHTML({ HTMLAttributes: h }) {
|
|
3205
3205
|
if (!h.href) {
|
|
3206
|
-
const { href:
|
|
3206
|
+
const { href: M, target: T, rel: k, ...z } = h;
|
|
3207
3207
|
return ["a", A(z), 0];
|
|
3208
3208
|
}
|
|
3209
3209
|
return ["a", A(this.options.HTMLAttributes, h), 0];
|
|
@@ -3222,7 +3222,7 @@ const vt = {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}), Be(() => {
|
|
3224
3224
|
t.value?.destroy();
|
|
3225
|
-
}),
|
|
3225
|
+
}), W(() => n.modelValue, (u, A) => {
|
|
3226
3226
|
if (t.value) {
|
|
3227
3227
|
if (t.value.getHTML() === u)
|
|
3228
3228
|
return;
|
|
@@ -3248,8 +3248,8 @@ const vt = {
|
|
|
3248
3248
|
}, m = () => {
|
|
3249
3249
|
t.value?.commands.setContent(t.value.getText()), a.value = !1;
|
|
3250
3250
|
};
|
|
3251
|
-
return (u, A) => (c(), g("div",
|
|
3252
|
-
t.value ? (c(), g("div",
|
|
3251
|
+
return (u, A) => (c(), g("div", Ql, [
|
|
3252
|
+
t.value ? (c(), g("div", Ol, [
|
|
3253
3253
|
a.value ? (c(), g("button", {
|
|
3254
3254
|
key: 1,
|
|
3255
3255
|
class: "btn btn-sm btn-light is-active",
|
|
@@ -3257,41 +3257,41 @@ const vt = {
|
|
|
3257
3257
|
disabled: !t.value.can().chain().focus().toggleCode().run(),
|
|
3258
3258
|
title: "Toggle Source"
|
|
3259
3259
|
}, [
|
|
3260
|
-
|
|
3260
|
+
L(Q, {
|
|
3261
3261
|
symbol: "source",
|
|
3262
3262
|
"base-path": e.iconBasePath
|
|
3263
3263
|
}, null, 8, ["base-path"])
|
|
3264
3264
|
], 8, Fl)) : (c(), g("button", {
|
|
3265
3265
|
key: 0,
|
|
3266
|
-
class:
|
|
3266
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("code") }]),
|
|
3267
3267
|
onClick: d,
|
|
3268
3268
|
disabled: !t.value.can().chain().focus().toggleCode().run(),
|
|
3269
3269
|
title: "Toggle Source"
|
|
3270
3270
|
}, [
|
|
3271
|
-
|
|
3271
|
+
L(Q, {
|
|
3272
3272
|
symbol: "source",
|
|
3273
3273
|
"base-path": e.iconBasePath
|
|
3274
3274
|
}, null, 8, ["base-path"])
|
|
3275
3275
|
], 10, Rl)),
|
|
3276
3276
|
s("div", Wl, [
|
|
3277
3277
|
s("button", {
|
|
3278
|
-
class:
|
|
3278
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("bold") }]),
|
|
3279
3279
|
onClick: A[0] || (A[0] = (f) => t.value?.chain().focus().toggleBold().run()),
|
|
3280
3280
|
disabled: !t.value.can().chain().focus().toggleBold().run(),
|
|
3281
3281
|
title: "Toggle Bold"
|
|
3282
3282
|
}, [
|
|
3283
|
-
|
|
3283
|
+
L(Q, {
|
|
3284
3284
|
symbol: "bold",
|
|
3285
3285
|
"base-path": e.iconBasePath
|
|
3286
3286
|
}, null, 8, ["base-path"])
|
|
3287
3287
|
], 10, Ul),
|
|
3288
3288
|
s("button", {
|
|
3289
|
-
class:
|
|
3289
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("italic") }]),
|
|
3290
3290
|
onClick: A[1] || (A[1] = (f) => t.value?.chain().focus().toggleItalic().run()),
|
|
3291
3291
|
disabled: !t.value.can().chain().focus().toggleItalic().run(),
|
|
3292
3292
|
title: "Toggle Italic"
|
|
3293
3293
|
}, [
|
|
3294
|
-
|
|
3294
|
+
L(Q, {
|
|
3295
3295
|
symbol: "italic",
|
|
3296
3296
|
"base-path": e.iconBasePath
|
|
3297
3297
|
}, null, 8, ["base-path"])
|
|
@@ -3300,23 +3300,23 @@ const vt = {
|
|
|
3300
3300
|
s("div", ql, [
|
|
3301
3301
|
s("div", _l, [
|
|
3302
3302
|
s("button", Jl, [
|
|
3303
|
-
t.value.isActive("heading", { level: 1 }) ? (c(),
|
|
3303
|
+
t.value.isActive("heading", { level: 1 }) ? (c(), U(Q, {
|
|
3304
3304
|
key: 0,
|
|
3305
3305
|
symbol: "h1",
|
|
3306
3306
|
"base-path": e.iconBasePath
|
|
3307
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 2 }) ? (c(),
|
|
3307
|
+
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 2 }) ? (c(), U(Q, {
|
|
3308
3308
|
key: 1,
|
|
3309
3309
|
symbol: "h2",
|
|
3310
3310
|
"base-path": e.iconBasePath
|
|
3311
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 3 }) ? (c(),
|
|
3311
|
+
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 3 }) ? (c(), U(Q, {
|
|
3312
3312
|
key: 2,
|
|
3313
3313
|
symbol: "h3",
|
|
3314
3314
|
"base-path": e.iconBasePath
|
|
3315
|
-
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 4 }) ? (c(),
|
|
3315
|
+
}, null, 8, ["base-path"])) : t.value.isActive("heading", { level: 4 }) ? (c(), U(Q, {
|
|
3316
3316
|
key: 3,
|
|
3317
3317
|
symbol: "h4",
|
|
3318
3318
|
"base-path": e.iconBasePath
|
|
3319
|
-
}, null, 8, ["base-path"])) : (c(),
|
|
3319
|
+
}, null, 8, ["base-path"])) : (c(), U(Q, {
|
|
3320
3320
|
key: 4,
|
|
3321
3321
|
symbol: "headline",
|
|
3322
3322
|
"base-path": e.iconBasePath
|
|
@@ -3325,11 +3325,11 @@ const vt = {
|
|
|
3325
3325
|
s("ul", Gl, [
|
|
3326
3326
|
s("li", null, [
|
|
3327
3327
|
s("button", {
|
|
3328
|
-
class:
|
|
3328
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 1 }) }]),
|
|
3329
3329
|
onClick: A[2] || (A[2] = (f) => t.value?.chain().focus().setHeading({ level: 1 }).run()),
|
|
3330
3330
|
title: "Set Heading 1"
|
|
3331
3331
|
}, [
|
|
3332
|
-
|
|
3332
|
+
L(Q, {
|
|
3333
3333
|
symbol: "h1",
|
|
3334
3334
|
"base-path": e.iconBasePath
|
|
3335
3335
|
}, null, 8, ["base-path"])
|
|
@@ -3337,11 +3337,11 @@ const vt = {
|
|
|
3337
3337
|
]),
|
|
3338
3338
|
s("li", null, [
|
|
3339
3339
|
s("button", {
|
|
3340
|
-
class:
|
|
3340
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 2 }) }]),
|
|
3341
3341
|
onClick: A[3] || (A[3] = (f) => t.value?.chain().focus().setHeading({ level: 2 }).run()),
|
|
3342
3342
|
title: "Set Heading 2"
|
|
3343
3343
|
}, [
|
|
3344
|
-
|
|
3344
|
+
L(Q, {
|
|
3345
3345
|
symbol: "h2",
|
|
3346
3346
|
"base-path": e.iconBasePath
|
|
3347
3347
|
}, null, 8, ["base-path"])
|
|
@@ -3349,11 +3349,11 @@ const vt = {
|
|
|
3349
3349
|
]),
|
|
3350
3350
|
s("li", null, [
|
|
3351
3351
|
s("button", {
|
|
3352
|
-
class:
|
|
3352
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 3 }) }]),
|
|
3353
3353
|
onClick: A[4] || (A[4] = (f) => t.value?.chain().focus().setHeading({ level: 3 }).run()),
|
|
3354
3354
|
title: "Set Heading 3"
|
|
3355
3355
|
}, [
|
|
3356
|
-
|
|
3356
|
+
L(Q, {
|
|
3357
3357
|
symbol: "h3",
|
|
3358
3358
|
"base-path": e.iconBasePath
|
|
3359
3359
|
}, null, 8, ["base-path"])
|
|
@@ -3361,11 +3361,11 @@ const vt = {
|
|
|
3361
3361
|
]),
|
|
3362
3362
|
s("li", null, [
|
|
3363
3363
|
s("button", {
|
|
3364
|
-
class:
|
|
3364
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 4 }) }]),
|
|
3365
3365
|
onClick: A[5] || (A[5] = (f) => t.value?.chain().focus().setHeading({ level: 4 }).run()),
|
|
3366
3366
|
title: "Set Heading 4"
|
|
3367
3367
|
}, [
|
|
3368
|
-
|
|
3368
|
+
L(Q, {
|
|
3369
3369
|
symbol: "h4",
|
|
3370
3370
|
"base-path": e.iconBasePath
|
|
3371
3371
|
}, null, 8, ["base-path"])
|
|
@@ -3374,31 +3374,31 @@ const vt = {
|
|
|
3374
3374
|
])
|
|
3375
3375
|
]),
|
|
3376
3376
|
s("button", {
|
|
3377
|
-
class:
|
|
3377
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("paragraph") }]),
|
|
3378
3378
|
onClick: A[6] || (A[6] = (f) => t.value?.chain().focus().setParagraph().run()),
|
|
3379
3379
|
title: "Set Paragraph"
|
|
3380
3380
|
}, [
|
|
3381
|
-
|
|
3381
|
+
L(Q, {
|
|
3382
3382
|
symbol: "paragraph",
|
|
3383
3383
|
"base-path": e.iconBasePath
|
|
3384
3384
|
}, null, 8, ["base-path"])
|
|
3385
3385
|
], 2),
|
|
3386
3386
|
s("button", {
|
|
3387
|
-
class:
|
|
3387
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("bulletList") }]),
|
|
3388
3388
|
onClick: A[7] || (A[7] = (f) => t.value?.chain().focus().toggleBulletList().run()),
|
|
3389
3389
|
title: "Toggle Bullet List"
|
|
3390
3390
|
}, [
|
|
3391
|
-
|
|
3391
|
+
L(Q, {
|
|
3392
3392
|
symbol: "list",
|
|
3393
3393
|
"base-path": e.iconBasePath
|
|
3394
3394
|
}, null, 8, ["base-path"])
|
|
3395
3395
|
], 2),
|
|
3396
3396
|
s("button", {
|
|
3397
|
-
class:
|
|
3397
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("orderedList") }]),
|
|
3398
3398
|
onClick: A[8] || (A[8] = (f) => t.value?.chain().focus().toggleOrderedList().run()),
|
|
3399
3399
|
title: "Toggle Ordered List"
|
|
3400
3400
|
}, [
|
|
3401
|
-
|
|
3401
|
+
L(Q, {
|
|
3402
3402
|
symbol: "ordered-list",
|
|
3403
3403
|
"base-path": e.iconBasePath
|
|
3404
3404
|
}, null, 8, ["base-path"])
|
|
@@ -3406,19 +3406,19 @@ const vt = {
|
|
|
3406
3406
|
]),
|
|
3407
3407
|
s("div", Yl, [
|
|
3408
3408
|
s("button", Zl, [
|
|
3409
|
-
t.value.isActive({ textAlign: "center" }) ? (c(),
|
|
3409
|
+
t.value.isActive({ textAlign: "center" }) ? (c(), U(Q, {
|
|
3410
3410
|
key: 0,
|
|
3411
3411
|
symbol: "align-center",
|
|
3412
3412
|
"base-path": e.iconBasePath
|
|
3413
|
-
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "left" }) ? (c(),
|
|
3413
|
+
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "left" }) ? (c(), U(Q, {
|
|
3414
3414
|
key: 1,
|
|
3415
3415
|
symbol: "align-left",
|
|
3416
3416
|
"base-path": e.iconBasePath
|
|
3417
|
-
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "right" }) ? (c(),
|
|
3417
|
+
}, null, 8, ["base-path"])) : t.value.isActive({ textAlign: "right" }) ? (c(), U(Q, {
|
|
3418
3418
|
key: 2,
|
|
3419
3419
|
symbol: "align-right",
|
|
3420
3420
|
"base-path": e.iconBasePath
|
|
3421
|
-
}, null, 8, ["base-path"])) : (c(),
|
|
3421
|
+
}, null, 8, ["base-path"])) : (c(), U(Q, {
|
|
3422
3422
|
key: 3,
|
|
3423
3423
|
symbol: "align-justify",
|
|
3424
3424
|
"base-path": e.iconBasePath
|
|
@@ -3427,10 +3427,10 @@ const vt = {
|
|
|
3427
3427
|
s("ul", Xl, [
|
|
3428
3428
|
s("li", null, [
|
|
3429
3429
|
s("button", {
|
|
3430
|
-
class:
|
|
3430
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "left" }) }]),
|
|
3431
3431
|
onClick: A[9] || (A[9] = (f) => t.value?.chain().focus().setTextAlign("left").run())
|
|
3432
3432
|
}, [
|
|
3433
|
-
|
|
3433
|
+
L(Q, {
|
|
3434
3434
|
symbol: "align-left",
|
|
3435
3435
|
"base-path": e.iconBasePath
|
|
3436
3436
|
}, null, 8, ["base-path"])
|
|
@@ -3438,10 +3438,10 @@ const vt = {
|
|
|
3438
3438
|
]),
|
|
3439
3439
|
s("li", null, [
|
|
3440
3440
|
s("button", {
|
|
3441
|
-
class:
|
|
3441
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "center" }) }]),
|
|
3442
3442
|
onClick: A[10] || (A[10] = (f) => t.value?.chain().focus().setTextAlign("center").run())
|
|
3443
3443
|
}, [
|
|
3444
|
-
|
|
3444
|
+
L(Q, {
|
|
3445
3445
|
symbol: "align-center",
|
|
3446
3446
|
"base-path": e.iconBasePath
|
|
3447
3447
|
}, null, 8, ["base-path"])
|
|
@@ -3449,10 +3449,10 @@ const vt = {
|
|
|
3449
3449
|
]),
|
|
3450
3450
|
s("li", null, [
|
|
3451
3451
|
s("button", {
|
|
3452
|
-
class:
|
|
3452
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "right" }) }]),
|
|
3453
3453
|
onClick: A[11] || (A[11] = (f) => t.value?.chain().focus().setTextAlign("right").run())
|
|
3454
3454
|
}, [
|
|
3455
|
-
|
|
3455
|
+
L(Q, {
|
|
3456
3456
|
symbol: "align-right",
|
|
3457
3457
|
"base-path": e.iconBasePath
|
|
3458
3458
|
}, null, 8, ["base-path"])
|
|
@@ -3460,10 +3460,10 @@ const vt = {
|
|
|
3460
3460
|
]),
|
|
3461
3461
|
s("li", null, [
|
|
3462
3462
|
s("button", {
|
|
3463
|
-
class:
|
|
3463
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "pretty" }) }]),
|
|
3464
3464
|
onClick: A[12] || (A[12] = (f) => t.value?.chain().focus().setTextAlign("right").run())
|
|
3465
3465
|
}, [
|
|
3466
|
-
|
|
3466
|
+
L(Q, {
|
|
3467
3467
|
symbol: "align-justify",
|
|
3468
3468
|
"base-path": e.iconBasePath
|
|
3469
3469
|
}, null, 8, ["base-path"])
|
|
@@ -3473,21 +3473,21 @@ const vt = {
|
|
|
3473
3473
|
]),
|
|
3474
3474
|
t.value.isActive("link") ? (c(), g("button", {
|
|
3475
3475
|
key: 3,
|
|
3476
|
-
class:
|
|
3476
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
3477
3477
|
onClick: A[13] || (A[13] = (f) => t.value.chain().focus().unsetLink().run()),
|
|
3478
3478
|
title: "Unset Link"
|
|
3479
3479
|
}, [
|
|
3480
|
-
|
|
3480
|
+
L(Q, {
|
|
3481
3481
|
symbol: "unlink",
|
|
3482
3482
|
"base-path": e.iconBasePath
|
|
3483
3483
|
}, null, 8, ["base-path"])
|
|
3484
3484
|
], 2)) : (c(), g("button", {
|
|
3485
3485
|
key: 2,
|
|
3486
|
-
class:
|
|
3486
|
+
class: V(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
3487
3487
|
onClick: i,
|
|
3488
3488
|
title: "Set Link"
|
|
3489
3489
|
}, [
|
|
3490
|
-
|
|
3490
|
+
L(Q, {
|
|
3491
3491
|
symbol: "link",
|
|
3492
3492
|
"base-path": e.iconBasePath
|
|
3493
3493
|
}, null, 8, ["base-path"])
|
|
@@ -3499,7 +3499,7 @@ const vt = {
|
|
|
3499
3499
|
disabled: !t.value.can().chain().focus().undo().run(),
|
|
3500
3500
|
title: "Undo"
|
|
3501
3501
|
}, [
|
|
3502
|
-
|
|
3502
|
+
L(Q, {
|
|
3503
3503
|
symbol: "undo",
|
|
3504
3504
|
"base-path": e.iconBasePath
|
|
3505
3505
|
}, null, 8, ["base-path"])
|
|
@@ -3510,20 +3510,20 @@ const vt = {
|
|
|
3510
3510
|
disabled: !t.value.can().chain().focus().redo().run(),
|
|
3511
3511
|
title: "Redo"
|
|
3512
3512
|
}, [
|
|
3513
|
-
|
|
3513
|
+
L(Q, {
|
|
3514
3514
|
symbol: "redo",
|
|
3515
3515
|
"base-path": e.iconBasePath
|
|
3516
3516
|
}, null, 8, ["base-path"])
|
|
3517
3517
|
], 8, to)
|
|
3518
3518
|
])
|
|
3519
|
-
])) :
|
|
3520
|
-
(c(),
|
|
3519
|
+
])) : B("", !0),
|
|
3520
|
+
(c(), U(ce(o.value), {
|
|
3521
3521
|
class: "rte-editor__content",
|
|
3522
3522
|
editor: t.value
|
|
3523
3523
|
}, null, 8, ["editor"]))
|
|
3524
3524
|
]));
|
|
3525
3525
|
}
|
|
3526
|
-
}), ao = { class: "input-color" }, no = { class: "base-input__color-swatch" }, lo = ["name", "id", "disabled", "read-only", "required", "aria-label"],
|
|
3526
|
+
}), ao = { class: "input-color" }, no = { class: "base-input__color-swatch" }, lo = ["name", "id", "disabled", "read-only", "required", "aria-label"], Nr = /* @__PURE__ */ O({
|
|
3527
3527
|
__name: "input-color",
|
|
3528
3528
|
props: {
|
|
3529
3529
|
modelValue: {
|
|
@@ -3585,7 +3585,7 @@ const vt = {
|
|
|
3585
3585
|
}
|
|
3586
3586
|
});
|
|
3587
3587
|
return (t, o) => (c(), g("div", ao, [
|
|
3588
|
-
|
|
3588
|
+
L(We, {
|
|
3589
3589
|
modelValue: a.value,
|
|
3590
3590
|
"onUpdate:modelValue": o[1] || (o[1] = (i) => a.value = i),
|
|
3591
3591
|
type: e.type === "color" ? "text" : e.type,
|
|
@@ -3601,7 +3601,7 @@ const vt = {
|
|
|
3601
3601
|
}, {
|
|
3602
3602
|
"input-append": _((i) => [
|
|
3603
3603
|
s("span", no, [
|
|
3604
|
-
|
|
3604
|
+
ye(s("input", {
|
|
3605
3605
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => a.value = d),
|
|
3606
3606
|
type: "color",
|
|
3607
3607
|
name: `${e.name}-color`,
|
|
@@ -3612,7 +3612,7 @@ const vt = {
|
|
|
3612
3612
|
class: "form-control",
|
|
3613
3613
|
"aria-label": e.label
|
|
3614
3614
|
}, null, 8, lo), [
|
|
3615
|
-
[
|
|
3615
|
+
[Ue, a.value]
|
|
3616
3616
|
])
|
|
3617
3617
|
])
|
|
3618
3618
|
]),
|
|
@@ -3620,7 +3620,7 @@ const vt = {
|
|
|
3620
3620
|
}, 8, ["modelValue", "type", "id", "name", "placeholder", "pattern", "label", "disabled", "read-only", "required", "maxlength"])
|
|
3621
3621
|
]));
|
|
3622
3622
|
}
|
|
3623
|
-
}), oo = { class: "color-palette" }, io = ["for"],
|
|
3623
|
+
}), oo = { class: "color-palette" }, io = ["for"], Hr = /* @__PURE__ */ O({
|
|
3624
3624
|
__name: "color-palette",
|
|
3625
3625
|
props: {
|
|
3626
3626
|
modelValue: {
|
|
@@ -3662,7 +3662,7 @@ const vt = {
|
|
|
3662
3662
|
}
|
|
3663
3663
|
});
|
|
3664
3664
|
return (t, o) => (c(), g("div", oo, [
|
|
3665
|
-
|
|
3665
|
+
L(dt, {
|
|
3666
3666
|
modelValue: a.value,
|
|
3667
3667
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
3668
3668
|
options: e.colors,
|
|
@@ -3684,7 +3684,7 @@ const vt = {
|
|
|
3684
3684
|
}, 8, ["modelValue", "options", "name", "id", "label", "disabled", "required"])
|
|
3685
3685
|
]));
|
|
3686
3686
|
}
|
|
3687
|
-
}), Ao = ["id"], so = ["for", "innerHTML"], ro = { class: "dropdown" }, uo = { class: "caption" }, co = ["innerHTML"], mo = { class: "caption__text" }, fo = { class: "d-block text-truncate" }, go = { class: "dropdown-menu" }, vo = { class: "form-check d-flex" }, po = ["value", "id", "name", "label", "required", "disabled"], ho = ["value", "id", "name", "label", "required", "disabled"], yo = ["for"], Lt = /* @__PURE__ */
|
|
3687
|
+
}), Ao = ["id"], so = ["for", "innerHTML"], ro = { class: "dropdown" }, uo = { class: "caption" }, co = ["innerHTML"], mo = { class: "caption__text" }, fo = { class: "d-block text-truncate" }, go = { class: "dropdown-menu" }, vo = { class: "form-check d-flex" }, po = ["value", "id", "name", "label", "required", "disabled"], ho = ["value", "id", "name", "label", "required", "disabled"], yo = ["for"], Lt = /* @__PURE__ */ O({
|
|
3688
3688
|
__name: "input-dropdown",
|
|
3689
3689
|
props: {
|
|
3690
3690
|
id: {
|
|
@@ -3802,10 +3802,10 @@ const vt = {
|
|
|
3802
3802
|
for: `${e.id || e.name}--dropdown-toggle`,
|
|
3803
3803
|
class: "input__label",
|
|
3804
3804
|
innerHTML: `${e.label}${e.required ? " *" : ""}`
|
|
3805
|
-
}, null, 8, so)) :
|
|
3805
|
+
}, null, 8, so)) : B("", !0)
|
|
3806
3806
|
]),
|
|
3807
3807
|
s("div", ro, [
|
|
3808
|
-
|
|
3808
|
+
L(sa, {
|
|
3809
3809
|
id: `${e.id || e.name}--dropdown-toggle`,
|
|
3810
3810
|
"data-bs-toggle": "dropdown",
|
|
3811
3811
|
role: "button",
|
|
@@ -3818,13 +3818,13 @@ const vt = {
|
|
|
3818
3818
|
}, {
|
|
3819
3819
|
default: _(() => [
|
|
3820
3820
|
s("span", uo, [
|
|
3821
|
-
|
|
3821
|
+
L(tt, { name: "bounce" }, {
|
|
3822
3822
|
default: _(() => [
|
|
3823
3823
|
e.showSelectionCount && e.modelValue.length ? (c(), g("i", {
|
|
3824
3824
|
key: 0,
|
|
3825
3825
|
class: "caption__count",
|
|
3826
3826
|
innerHTML: e.modelValue.length
|
|
3827
|
-
}, null, 8, co)) :
|
|
3827
|
+
}, null, 8, co)) : B("", !0)
|
|
3828
3828
|
]),
|
|
3829
3829
|
_: 1
|
|
3830
3830
|
}),
|
|
@@ -3836,14 +3836,14 @@ const vt = {
|
|
|
3836
3836
|
_: 1
|
|
3837
3837
|
}, 8, ["id", "title", "color", "outlined", "disabled"]),
|
|
3838
3838
|
s("ul", go, [
|
|
3839
|
-
(c(!0), g(
|
|
3839
|
+
(c(!0), g(ae, null, ue(o.value, (u, A) => (c(), g("li", {
|
|
3840
3840
|
key: `${u.value}-${A}`
|
|
3841
3841
|
}, [
|
|
3842
3842
|
s("div", {
|
|
3843
|
-
class:
|
|
3843
|
+
class: V(["dropdown-item", u.active && "active"])
|
|
3844
3844
|
}, [
|
|
3845
3845
|
s("div", vo, [
|
|
3846
|
-
e.multiple ?
|
|
3846
|
+
e.multiple ? ye((c(), g("input", {
|
|
3847
3847
|
type: "checkbox",
|
|
3848
3848
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => t.value = f),
|
|
3849
3849
|
value: u.value,
|
|
@@ -3856,7 +3856,7 @@ const vt = {
|
|
|
3856
3856
|
class: "form-check-input"
|
|
3857
3857
|
}, null, 8, po)), [
|
|
3858
3858
|
[it, t.value]
|
|
3859
|
-
]) :
|
|
3859
|
+
]) : ye((c(), g("input", {
|
|
3860
3860
|
type: "radio",
|
|
3861
3861
|
"onUpdate:modelValue": m[1] || (m[1] = (f) => t.value = f),
|
|
3862
3862
|
value: u.value,
|
|
@@ -3885,7 +3885,7 @@ const vt = {
|
|
|
3885
3885
|
}), bo = {
|
|
3886
3886
|
key: 0,
|
|
3887
3887
|
class: "auto-suggest__suggestions position-relative"
|
|
3888
|
-
}, wo = { class: "suggestions dropdown-menu show w-100 mt-2" }, $o = ["onClick"], Co = ["innerHTML"], So = /* @__PURE__ */
|
|
3888
|
+
}, wo = { class: "suggestions dropdown-menu show w-100 mt-2" }, $o = ["onClick"], Co = ["innerHTML"], So = /* @__PURE__ */ O({
|
|
3889
3889
|
__name: "auto-suggest",
|
|
3890
3890
|
props: {
|
|
3891
3891
|
modelValue: {
|
|
@@ -3937,7 +3937,7 @@ const vt = {
|
|
|
3937
3937
|
},
|
|
3938
3938
|
emits: ["update:modelValue", "update:selection"],
|
|
3939
3939
|
setup(e, { emit: r }) {
|
|
3940
|
-
const n = e, l = r, a =
|
|
3940
|
+
const n = e, l = r, a = C(), t = C(!1), o = w({
|
|
3941
3941
|
get() {
|
|
3942
3942
|
return n.modelValue;
|
|
3943
3943
|
},
|
|
@@ -3950,11 +3950,11 @@ const vt = {
|
|
|
3950
3950
|
}), d = w(() => {
|
|
3951
3951
|
const v = new RegExp(`(${o.value})`, "i");
|
|
3952
3952
|
return i.value.map((y) => {
|
|
3953
|
-
const
|
|
3954
|
-
return re(
|
|
3953
|
+
const $ = y.replace(v, "<strong>$1</strong>");
|
|
3954
|
+
return re($);
|
|
3955
3955
|
});
|
|
3956
3956
|
});
|
|
3957
|
-
|
|
3957
|
+
W(() => n.options, (v, y) => {
|
|
3958
3958
|
v.length && (t.value = !0);
|
|
3959
3959
|
}, { deep: !0 });
|
|
3960
3960
|
function m() {
|
|
@@ -3965,7 +3965,7 @@ const vt = {
|
|
|
3965
3965
|
const y = i.value[v];
|
|
3966
3966
|
l("update:modelValue", y), l("update:selection", y);
|
|
3967
3967
|
}
|
|
3968
|
-
const A =
|
|
3968
|
+
const A = C();
|
|
3969
3969
|
function f(v) {
|
|
3970
3970
|
const y = v.target;
|
|
3971
3971
|
t.value && y && !a.value.contains(y) && (t.value = !1);
|
|
@@ -3984,26 +3984,26 @@ const vt = {
|
|
|
3984
3984
|
onFocusCapture: m
|
|
3985
3985
|
}, [
|
|
3986
3986
|
N(v.$slots, "default", {}, () => [
|
|
3987
|
-
|
|
3987
|
+
L(We, wt({
|
|
3988
3988
|
modelValue: o.value,
|
|
3989
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
3989
|
+
"onUpdate:modelValue": y[0] || (y[0] = ($) => o.value = $)
|
|
3990
3990
|
}, v.$props), null, 16, ["modelValue"])
|
|
3991
3991
|
])
|
|
3992
3992
|
], 32),
|
|
3993
3993
|
t.value && i.value.length ? (c(), g("div", bo, [
|
|
3994
3994
|
s("ul", wo, [
|
|
3995
|
-
(c(!0), g(
|
|
3996
|
-
key:
|
|
3995
|
+
(c(!0), g(ae, null, ue(d.value, ($, D) => (c(), g("li", {
|
|
3996
|
+
key: $,
|
|
3997
3997
|
class: "suggestions__item dropdown-item",
|
|
3998
|
-
onClick:
|
|
3998
|
+
onClick: Z((b) => u(D), ["prevent"])
|
|
3999
3999
|
}, [
|
|
4000
4000
|
s("p", {
|
|
4001
4001
|
class: "text-truncate my-2",
|
|
4002
|
-
innerHTML:
|
|
4002
|
+
innerHTML: $
|
|
4003
4003
|
}, null, 8, Co)
|
|
4004
4004
|
], 8, $o))), 128))
|
|
4005
4005
|
])
|
|
4006
|
-
])) :
|
|
4006
|
+
])) : B("", !0)
|
|
4007
4007
|
], 512));
|
|
4008
4008
|
}
|
|
4009
4009
|
});
|
|
@@ -4028,9 +4028,9 @@ function ko(e) {
|
|
|
4028
4028
|
}
|
|
4029
4029
|
if (e.tintColor && r.value) {
|
|
4030
4030
|
const { r: A, g: f, b: v } = r.value, y = e.tintIntensity;
|
|
4031
|
-
for (let
|
|
4032
|
-
const D = u[
|
|
4033
|
-
u[
|
|
4031
|
+
for (let $ = 0; $ < u.length; $ += 4) {
|
|
4032
|
+
const D = u[$], b = u[$ + 1], h = u[$ + 2], M = D * A / 255, T = b * f / 255, k = h * v / 255;
|
|
4033
|
+
u[$] = D + (M - D) * y, u[$ + 1] = b + (T - b) * y, u[$ + 2] = h + (k - h) * y;
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
4036
|
o.putImageData(m, 0, 0);
|
|
@@ -4062,7 +4062,7 @@ function ko(e) {
|
|
|
4062
4062
|
const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo = { class: "zoom-slider__ticks" }, Io = {
|
|
4063
4063
|
name: "ZoomSlider",
|
|
4064
4064
|
inheritAttrs: !1
|
|
4065
|
-
}, Do = /* @__PURE__ */
|
|
4065
|
+
}, Do = /* @__PURE__ */ O({
|
|
4066
4066
|
...Io,
|
|
4067
4067
|
props: {
|
|
4068
4068
|
modelValue: {
|
|
@@ -4103,9 +4103,9 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4103
4103
|
"aria-label": "Zoom"
|
|
4104
4104
|
}, null, 40, Mo),
|
|
4105
4105
|
s("div", Lo, [
|
|
4106
|
-
(c(!0), g(
|
|
4106
|
+
(c(!0), g(ae, null, ue(a.value, (u) => (c(), g("span", {
|
|
4107
4107
|
key: u,
|
|
4108
|
-
class:
|
|
4108
|
+
class: V(["zoom-slider__tick", {
|
|
4109
4109
|
"zoom-slider__tick--major": (u - 1) % t.value === 0,
|
|
4110
4110
|
"zoom-slider__tick--mid": (u - 1) % o.value === 0 && (u - 1) % t.value !== 0
|
|
4111
4111
|
}])
|
|
@@ -4119,10 +4119,10 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4119
4119
|
}, Eo = ["innerHTML"], To = ["width", "height"], zo = {
|
|
4120
4120
|
key: 1,
|
|
4121
4121
|
class: "camera__countdown-overlay"
|
|
4122
|
-
}, No = ["innerHTML", "data-countdown"],
|
|
4122
|
+
}, No = ["innerHTML", "data-countdown"], Ho = ["src"], Qo = {
|
|
4123
4123
|
key: 3,
|
|
4124
4124
|
class: "camera__zoom-slider"
|
|
4125
|
-
},
|
|
4125
|
+
}, Oo = { class: "camera__controls" }, Ro = { class: "container" }, Fo = { class: "row" }, Wo = { class: "col" }, Uo = { class: "btn-group" }, jo = { key: 0 }, qo = { key: 1 }, _o = {
|
|
4126
4126
|
key: 0,
|
|
4127
4127
|
class: "camera__select-device"
|
|
4128
4128
|
}, Jo = { class: "col" }, Go = { class: "" }, Yo = {
|
|
@@ -4138,7 +4138,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4138
4138
|
"5x4": { width: 1200, height: 960 },
|
|
4139
4139
|
"16x9": { width: 1280, height: 720 },
|
|
4140
4140
|
"9x16": { width: 720, height: 1280 }
|
|
4141
|
-
},
|
|
4141
|
+
}, Qr = /* @__PURE__ */ O({
|
|
4142
4142
|
...Yo,
|
|
4143
4143
|
props: {
|
|
4144
4144
|
modelValue: {
|
|
@@ -4212,57 +4212,57 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4212
4212
|
},
|
|
4213
4213
|
emits: ["update:modelValue"],
|
|
4214
4214
|
setup(e, { expose: r, emit: n }) {
|
|
4215
|
-
const l = e, a = n, t =
|
|
4216
|
-
function
|
|
4217
|
-
return String(
|
|
4215
|
+
const l = e, a = n, t = C(), o = C(), i = C(!1), d = C([]), m = C(), u = C(), A = C(!1), f = C(!1), v = C(0), y = C(0), $ = C(), D = C(l.zoom || 1), b = w(() => ({ ...ht, ...l.resolutions })), h = w(() => Object.values(b.value)[0]);
|
|
4216
|
+
function M(P) {
|
|
4217
|
+
return String(P || "").trim().toLowerCase().replace(/\s+/g, "").replace(/[:/]/g, "x");
|
|
4218
4218
|
}
|
|
4219
4219
|
const T = w(() => {
|
|
4220
4220
|
if (b.value[l.ratio])
|
|
4221
4221
|
return l.ratio;
|
|
4222
|
-
const
|
|
4223
|
-
if (b.value[
|
|
4224
|
-
return
|
|
4225
|
-
}),
|
|
4226
|
-
const
|
|
4227
|
-
return
|
|
4228
|
-
}), K = w(() => d.value.filter((
|
|
4229
|
-
text:
|
|
4230
|
-
value:
|
|
4222
|
+
const P = M(l.ratio);
|
|
4223
|
+
if (b.value[P])
|
|
4224
|
+
return P;
|
|
4225
|
+
}), k = w(() => T.value ? b.value[T.value] : h.value), z = w(() => {
|
|
4226
|
+
const P = T.value ? b.value[T.value] : void 0;
|
|
4227
|
+
return P ? `${P.width} / ${P.height}` : void 0;
|
|
4228
|
+
}), K = w(() => d.value.filter((P) => P.kind === "videoinput")), ge = w(() => d.value.filter((P) => P.kind === "audioinput")), me = w(() => K.value.map((P, F) => ({
|
|
4229
|
+
text: P.label.slice(0, P.label.indexOf("(")) || `Camera ${F + 1}`,
|
|
4230
|
+
value: P.deviceId
|
|
4231
4231
|
}))), $e = w({
|
|
4232
4232
|
get() {
|
|
4233
4233
|
return m.value && m.value.deviceId;
|
|
4234
4234
|
},
|
|
4235
|
-
set(
|
|
4236
|
-
m.value = K.value.find((
|
|
4235
|
+
set(P) {
|
|
4236
|
+
m.value = K.value.find((F) => F.deviceId === P);
|
|
4237
4237
|
}
|
|
4238
4238
|
});
|
|
4239
4239
|
w({
|
|
4240
4240
|
get() {
|
|
4241
4241
|
return u.value && u.value.deviceId;
|
|
4242
4242
|
},
|
|
4243
|
-
set(
|
|
4244
|
-
u.value =
|
|
4243
|
+
set(P) {
|
|
4244
|
+
u.value = ge.value.find((F) => F.deviceId === P);
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
|
-
const
|
|
4248
|
-
const
|
|
4249
|
-
return l.enableMirrorCamera &&
|
|
4247
|
+
const ve = w(() => {
|
|
4248
|
+
const P = m.value && K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4249
|
+
return l.enableMirrorCamera && P === 0 ? "mirror-cam" : "";
|
|
4250
4250
|
}), Ie = w(() => {
|
|
4251
|
-
const
|
|
4252
|
-
return
|
|
4253
|
-
}), { tintRgb:
|
|
4254
|
-
function
|
|
4255
|
-
if (T.value &&
|
|
4256
|
-
v.value =
|
|
4251
|
+
const P = m.value && d.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4252
|
+
return ve.value ? `${ve.value} mirror-device-${P}` : "";
|
|
4253
|
+
}), { tintRgb: Y, applyFilterToCanvas: Me } = ko(l);
|
|
4254
|
+
function I() {
|
|
4255
|
+
if (T.value && k.value) {
|
|
4256
|
+
v.value = k.value.width, y.value = k.value.height;
|
|
4257
4257
|
return;
|
|
4258
4258
|
}
|
|
4259
4259
|
v.value = t.value.parentElement && t.value.parentElement.clientWidth, y.value = t.value.parentElement && t.value.parentElement.clientHeight;
|
|
4260
4260
|
}
|
|
4261
|
-
const
|
|
4262
|
-
|
|
4261
|
+
const R = st(() => {
|
|
4262
|
+
I();
|
|
4263
4263
|
}, 300, { trailing: !0, leading: !1 });
|
|
4264
|
-
async function
|
|
4265
|
-
const
|
|
4264
|
+
async function H() {
|
|
4265
|
+
const P = k.value ? { width: k.value.width, height: k.value.height } : void 0, F = P ? P.width / P.height : void 0, oe = {
|
|
4266
4266
|
audio: l.enableAudio && {
|
|
4267
4267
|
...u.value ? { deviceId: u.value.deviceId } : {}
|
|
4268
4268
|
// deviceId: activeAudioDevice.value ? { exact: activeAudioDevice.value } : undefined
|
|
@@ -4270,129 +4270,129 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4270
4270
|
// audio: false,
|
|
4271
4271
|
video: {
|
|
4272
4272
|
...m.value ? { deviceId: m.value.deviceId } : {},
|
|
4273
|
-
width: { ideal:
|
|
4274
|
-
...T.value &&
|
|
4275
|
-
...T.value &&
|
|
4276
|
-
aspectRatio: { ideal:
|
|
4273
|
+
width: { ideal: P?.width },
|
|
4274
|
+
...T.value && P?.height ? { height: { ideal: P.height } } : {},
|
|
4275
|
+
...T.value && F ? {
|
|
4276
|
+
aspectRatio: { ideal: F }
|
|
4277
4277
|
} : {}
|
|
4278
4278
|
}
|
|
4279
4279
|
};
|
|
4280
|
-
return navigator.mediaDevices.getUserMedia(oe).catch((
|
|
4281
|
-
console.error(
|
|
4280
|
+
return navigator.mediaDevices.getUserMedia(oe).catch((He) => {
|
|
4281
|
+
console.error(He, "navigator.mediaDevices.getUserMedia: failed");
|
|
4282
4282
|
});
|
|
4283
4283
|
}
|
|
4284
|
-
function
|
|
4285
|
-
t.value && t.value.srcObject && t.value.srcObject.getTracks().forEach((
|
|
4286
|
-
|
|
4284
|
+
function G() {
|
|
4285
|
+
t.value && t.value.srcObject && t.value.srcObject.getTracks().forEach((F) => {
|
|
4286
|
+
F.stop();
|
|
4287
4287
|
});
|
|
4288
4288
|
}
|
|
4289
|
-
async function
|
|
4290
|
-
return t.value.srcObject = await
|
|
4289
|
+
async function ee() {
|
|
4290
|
+
return t.value.srcObject = await H(), d.value = await navigator.mediaDevices.enumerateDevices(), { stream: t.value.srcObject, devices: d.value };
|
|
4291
4291
|
}
|
|
4292
4292
|
function De() {
|
|
4293
|
-
A.value ? (A.value = !1, f.value = !1,
|
|
4293
|
+
A.value ? (A.value = !1, f.value = !1, G()) : (A.value = !0, ee());
|
|
4294
4294
|
}
|
|
4295
|
-
function
|
|
4295
|
+
function ze() {
|
|
4296
4296
|
if (d.value.length > 1) {
|
|
4297
|
-
|
|
4298
|
-
const
|
|
4299
|
-
m.value = K.value[
|
|
4297
|
+
G();
|
|
4298
|
+
const P = K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4299
|
+
m.value = K.value[P === K.value.length - 1 ? 0 : P + 1], ee();
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
|
-
async function
|
|
4303
|
-
|
|
4302
|
+
async function Ne(P, F) {
|
|
4303
|
+
G(), P && (!F || P.deviceId !== F.deviceId) && await ee();
|
|
4304
4304
|
}
|
|
4305
|
-
|
|
4306
|
-
function
|
|
4307
|
-
l.countdown ? (
|
|
4305
|
+
W(() => m.value, Ne), W(() => u.value, Ne);
|
|
4306
|
+
function Ve() {
|
|
4307
|
+
l.countdown ? ($.value = $.value ? $.value - 1 : l.countdown, $.value ? setTimeout(Ve, 1e3) : te()) : te();
|
|
4308
4308
|
}
|
|
4309
|
-
r({ onCapture:
|
|
4310
|
-
function
|
|
4309
|
+
r({ onCapture: Ve, camera: t.value, zoom: D });
|
|
4310
|
+
function te() {
|
|
4311
4311
|
f.value = !0;
|
|
4312
|
-
const
|
|
4313
|
-
if (o.value.width = Oe, o.value.height = _e, !ie || !fe || !
|
|
4312
|
+
const P = 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 || y.value, de = ie && fe ? ie / fe : He, qe = k.value || { width: ie, height: fe }, Oe = qe?.width || ie, _e = T.value ? qe?.height || fe : Math.round(Oe / de), be = Oe / _e;
|
|
4313
|
+
if (o.value.width = Oe, o.value.height = _e, !ie || !fe || !de)
|
|
4314
4314
|
return;
|
|
4315
|
-
if (
|
|
4316
|
-
let
|
|
4317
|
-
if (
|
|
4318
|
-
const
|
|
4319
|
-
|
|
4315
|
+
if (P.save(), ve.value && (P.translate(o.value.width, 0), P.scale(-1, 1)), l.enableCropImage) {
|
|
4316
|
+
let pe = 0, we = 0, le = ie, he = fe;
|
|
4317
|
+
if (de > be ? (le = fe * be, pe = (ie - le) / 2) : de < be && (he = ie / be, we = (fe - he) / 2), D.value && D.value !== 1) {
|
|
4318
|
+
const xe = le / D.value, Le = he / D.value;
|
|
4319
|
+
pe += (le - xe) / 2, we += (he - Le) / 2, le = xe, he = Le;
|
|
4320
4320
|
}
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4321
|
+
P.drawImage(
|
|
4322
|
+
F,
|
|
4323
|
+
pe,
|
|
4324
4324
|
we,
|
|
4325
|
-
|
|
4326
|
-
|
|
4325
|
+
le,
|
|
4326
|
+
he,
|
|
4327
4327
|
0,
|
|
4328
4328
|
0,
|
|
4329
4329
|
o.value.width,
|
|
4330
4330
|
o.value.height
|
|
4331
4331
|
);
|
|
4332
4332
|
} else {
|
|
4333
|
-
let
|
|
4334
|
-
if (
|
|
4335
|
-
const
|
|
4336
|
-
|
|
4337
|
-
|
|
4333
|
+
let pe = o.value.width, we = o.value.height, le = 0, he = 0;
|
|
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), D.value && D.value !== 1) {
|
|
4335
|
+
const xe = ie / D.value, Le = fe / D.value, p = (ie - xe) / 2, S = (fe - Le) / 2;
|
|
4336
|
+
ve.value && (le = o.value.width - le - pe), P.drawImage(
|
|
4337
|
+
F,
|
|
4338
4338
|
p,
|
|
4339
|
-
|
|
4340
|
-
|
|
4339
|
+
S,
|
|
4340
|
+
xe,
|
|
4341
4341
|
Le,
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4342
|
+
le,
|
|
4343
|
+
he,
|
|
4344
|
+
pe,
|
|
4345
4345
|
we
|
|
4346
4346
|
);
|
|
4347
4347
|
} else
|
|
4348
|
-
|
|
4349
|
-
|
|
4348
|
+
ve.value && (le = o.value.width - le - pe), P.drawImage(
|
|
4349
|
+
F,
|
|
4350
4350
|
0,
|
|
4351
4351
|
0,
|
|
4352
4352
|
ie,
|
|
4353
4353
|
fe,
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4354
|
+
le,
|
|
4355
|
+
he,
|
|
4356
|
+
pe,
|
|
4357
4357
|
we
|
|
4358
4358
|
);
|
|
4359
4359
|
}
|
|
4360
|
-
|
|
4361
|
-
const
|
|
4362
|
-
|
|
4360
|
+
P.restore(), Me(P, o.value.width, o.value.height);
|
|
4361
|
+
const Re = o.value.toDataURL("image/png");
|
|
4362
|
+
X(Re);
|
|
4363
4363
|
}
|
|
4364
|
-
function
|
|
4365
|
-
const
|
|
4364
|
+
function X(P) {
|
|
4365
|
+
const F = _t(P);
|
|
4366
4366
|
a("update:modelValue", {
|
|
4367
4367
|
name: `cam-pic-${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
4368
4368
|
id: `cam-pic-${(/* @__PURE__ */ new Date()).toISOString()}`,
|
|
4369
|
-
blob:
|
|
4370
|
-
size:
|
|
4369
|
+
blob: F,
|
|
4370
|
+
size: F.size
|
|
4371
4371
|
});
|
|
4372
4372
|
}
|
|
4373
|
-
return
|
|
4374
|
-
|
|
4375
|
-
await
|
|
4376
|
-
}), l.defaultRearCamera &&
|
|
4373
|
+
return ne(async () => {
|
|
4374
|
+
G(), await ee(), m.value = K.value[0], l.enableAudio && (u.value = ge.value[0]), navigator.mediaDevices.addEventListener("devicechange", async (P) => {
|
|
4375
|
+
await ee();
|
|
4376
|
+
}), l.defaultRearCamera && ze(), De(), window.addEventListener("resize", R), I(), await Fe(), i.value = !0;
|
|
4377
4377
|
}), Be(() => {
|
|
4378
|
-
A.value = !1, f.value = !1,
|
|
4379
|
-
}), (
|
|
4380
|
-
class:
|
|
4378
|
+
A.value = !1, f.value = !1, G(), window.removeEventListener("resize", R);
|
|
4379
|
+
}), (P, F) => (c(), g("div", {
|
|
4380
|
+
class: V(["camera", Ie.value])
|
|
4381
4381
|
}, [
|
|
4382
4382
|
s("div", Po, [
|
|
4383
|
-
i.value ?
|
|
4384
|
-
|
|
4383
|
+
i.value ? B("", !0) : (c(), g("div", xo, [
|
|
4384
|
+
L(rt, { color: "#000" }, {
|
|
4385
4385
|
default: _(() => [
|
|
4386
4386
|
s("span", {
|
|
4387
|
-
class:
|
|
4388
|
-
innerHTML:
|
|
4387
|
+
class: V("d-block text-center"),
|
|
4388
|
+
innerHTML: P.$t("camera.waitForCameraNotification")
|
|
4389
4389
|
}, null, 8, Eo)
|
|
4390
4390
|
]),
|
|
4391
4391
|
_: 1
|
|
4392
4392
|
})
|
|
4393
4393
|
])),
|
|
4394
|
-
|
|
4395
|
-
class:
|
|
4394
|
+
ye(s("div", {
|
|
4395
|
+
class: V(["camera__video-wrapper", T.value ? `aspect-ratio--${T.value}` : ""]),
|
|
4396
4396
|
style: Se({ aspectRatio: z.value || void 0, transform: D.value !== 1 ? `scale(${D.value})` : void 0 })
|
|
4397
4397
|
}, [
|
|
4398
4398
|
s("video", {
|
|
@@ -4411,11 +4411,11 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4411
4411
|
opacity: e.tintIntensity,
|
|
4412
4412
|
mixBlendMode: "multiply"
|
|
4413
4413
|
})
|
|
4414
|
-
}, null, 4)) :
|
|
4414
|
+
}, null, 4)) : B("", !0)
|
|
4415
4415
|
], 6), [
|
|
4416
4416
|
[ft, i.value]
|
|
4417
4417
|
]),
|
|
4418
|
-
|
|
4418
|
+
ye(s("canvas", {
|
|
4419
4419
|
ref_key: "canvas",
|
|
4420
4420
|
ref: o,
|
|
4421
4421
|
class: "camera__canvas",
|
|
@@ -4424,27 +4424,27 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4424
4424
|
}, null, 8, To), [
|
|
4425
4425
|
[ft, f.value]
|
|
4426
4426
|
]),
|
|
4427
|
-
|
|
4427
|
+
$.value ? (c(), g("div", zo, [
|
|
4428
4428
|
(c(), g("p", {
|
|
4429
4429
|
class: "countdown",
|
|
4430
|
-
key:
|
|
4431
|
-
innerHTML:
|
|
4432
|
-
"data-countdown":
|
|
4430
|
+
key: $.value,
|
|
4431
|
+
innerHTML: $.value,
|
|
4432
|
+
"data-countdown": $.value
|
|
4433
4433
|
}, null, 8, No))
|
|
4434
|
-
])) :
|
|
4434
|
+
])) : B("", !0),
|
|
4435
4435
|
e.enableGuide && A.value && i.value ? (c(), g("img", {
|
|
4436
4436
|
key: 2,
|
|
4437
4437
|
class: "camera__guide",
|
|
4438
4438
|
src: e.guideSrc
|
|
4439
|
-
}, null, 8,
|
|
4440
|
-
e.enableZoomSlider ? (c(), g("div",
|
|
4441
|
-
|
|
4439
|
+
}, null, 8, Ho)) : B("", !0),
|
|
4440
|
+
e.enableZoomSlider ? (c(), g("div", Qo, [
|
|
4441
|
+
L(Do, {
|
|
4442
4442
|
modelValue: D.value,
|
|
4443
|
-
"onUpdate:modelValue":
|
|
4443
|
+
"onUpdate:modelValue": F[0] || (F[0] = (oe) => D.value = oe)
|
|
4444
4444
|
}, null, 8, ["modelValue"])
|
|
4445
|
-
])) :
|
|
4445
|
+
])) : B("", !0)
|
|
4446
4446
|
]),
|
|
4447
|
-
s("div",
|
|
4447
|
+
s("div", Oo, [
|
|
4448
4448
|
s("div", Ro, [
|
|
4449
4449
|
s("div", Fo, [
|
|
4450
4450
|
s("div", Wo, [
|
|
@@ -4454,13 +4454,13 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4454
4454
|
class: "camera__toggle btn btn-primary",
|
|
4455
4455
|
onClick: De
|
|
4456
4456
|
}, [
|
|
4457
|
-
A.value ? (c(), g("span", qo, E(
|
|
4457
|
+
A.value ? (c(), g("span", qo, E(P.$t("common.pause")), 1)) : (c(), g("span", jo, E(P.$t("common.play")), 1))
|
|
4458
4458
|
]),
|
|
4459
4459
|
s("button", {
|
|
4460
4460
|
type: "button",
|
|
4461
4461
|
class: "camera__capture btn btn-primary",
|
|
4462
|
-
onClick:
|
|
4463
|
-
}, E(
|
|
4462
|
+
onClick: Ve
|
|
4463
|
+
}, E(P.$t("camera.capture")), 1)
|
|
4464
4464
|
])
|
|
4465
4465
|
])
|
|
4466
4466
|
])
|
|
@@ -4468,10 +4468,10 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4468
4468
|
]),
|
|
4469
4469
|
(e.enableSwitchCamera || e.enableSelectDevice) && K.value && K.value.length > 1 ? (c(), g("div", _o, [
|
|
4470
4470
|
s("div", Jo, [
|
|
4471
|
-
|
|
4471
|
+
L(Lt, {
|
|
4472
4472
|
modelValue: $e.value,
|
|
4473
|
-
"onUpdate:modelValue":
|
|
4474
|
-
options:
|
|
4473
|
+
"onUpdate:modelValue": F[1] || (F[1] = (oe) => $e.value = oe),
|
|
4474
|
+
options: me.value,
|
|
4475
4475
|
class: "w-100"
|
|
4476
4476
|
}, null, 8, ["modelValue", "options"])
|
|
4477
4477
|
]),
|
|
@@ -4479,12 +4479,12 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4479
4479
|
e.enableSwitchCamera ? (c(), g("button", {
|
|
4480
4480
|
key: 0,
|
|
4481
4481
|
class: "btn",
|
|
4482
|
-
onClick:
|
|
4482
|
+
onClick: Z(ze, ["prevent"])
|
|
4483
4483
|
}, [
|
|
4484
|
-
|
|
4485
|
-
])) :
|
|
4484
|
+
L(Q, { symbol: "switch-camera" })
|
|
4485
|
+
])) : B("", !0)
|
|
4486
4486
|
])
|
|
4487
|
-
])) :
|
|
4487
|
+
])) : B("", !0)
|
|
4488
4488
|
], 2));
|
|
4489
4489
|
}
|
|
4490
4490
|
}), Zo = { class: "base-map" }, Xo = {
|
|
@@ -4493,7 +4493,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4493
4493
|
}, Ko = {
|
|
4494
4494
|
key: 0,
|
|
4495
4495
|
class: "base-map__hint"
|
|
4496
|
-
}, ei = /* @__PURE__ */
|
|
4496
|
+
}, ei = /* @__PURE__ */ O({
|
|
4497
4497
|
__name: "base-map",
|
|
4498
4498
|
props: {
|
|
4499
4499
|
label: {
|
|
@@ -4603,10 +4603,10 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4603
4603
|
},
|
|
4604
4604
|
emits: ["update:modelValue", "update:center", "update:zoom", "map-click", "marker-click"],
|
|
4605
4605
|
setup(e, { emit: r }) {
|
|
4606
|
-
function n(
|
|
4607
|
-
return
|
|
4606
|
+
function n(I, R) {
|
|
4607
|
+
return R({
|
|
4608
4608
|
className: "base-map__marker-wrapper",
|
|
4609
|
-
html: `<span class="base-map__marker-pin base-map__marker-pin--${
|
|
4609
|
+
html: `<span class="base-map__marker-pin base-map__marker-pin--${I}"><span class="base-map__marker-core"></span></span>`,
|
|
4610
4610
|
iconSize: [24, 24],
|
|
4611
4611
|
iconAnchor: [12, 24],
|
|
4612
4612
|
popupAnchor: [0, -20]
|
|
@@ -4636,35 +4636,35 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4636
4636
|
url: "https://{s}.basemaps.cartocdn.com/rastertiles/voyager_nolabels/{z}/{x}/{y}{r}.png",
|
|
4637
4637
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors © <a href="https://carto.com/attributions">CARTO</a>'
|
|
4638
4638
|
}
|
|
4639
|
-
}, t = e, o = r, i = Ye(null), d =
|
|
4640
|
-
|
|
4639
|
+
}, t = e, o = r, i = Ye(null), d = C(null), m = C(null), u = C(t.zoom), A = C(k(t.modelValue));
|
|
4640
|
+
ne(async () => {
|
|
4641
4641
|
if (typeof window > "u")
|
|
4642
4642
|
return;
|
|
4643
|
-
const [
|
|
4643
|
+
const [I, R] = await Promise.all([
|
|
4644
4644
|
import("@vue-leaflet/vue-leaflet"),
|
|
4645
4645
|
import("leaflet")
|
|
4646
4646
|
]);
|
|
4647
|
-
i.value =
|
|
4648
|
-
LCircle:
|
|
4649
|
-
LMap:
|
|
4650
|
-
LMarker:
|
|
4651
|
-
LPopup:
|
|
4652
|
-
LPolyline:
|
|
4653
|
-
LTileLayer:
|
|
4647
|
+
i.value = Ee({
|
|
4648
|
+
LCircle: Ee(I.LCircle),
|
|
4649
|
+
LMap: Ee(I.LMap),
|
|
4650
|
+
LMarker: Ee(I.LMarker),
|
|
4651
|
+
LPopup: Ee(I.LPopup),
|
|
4652
|
+
LPolyline: Ee(I.LPolyline),
|
|
4653
|
+
LTileLayer: Ee(I.LTileLayer)
|
|
4654
4654
|
}), d.value = {
|
|
4655
|
-
list: n("list",
|
|
4656
|
-
selected: n("selected",
|
|
4657
|
-
search: n("search",
|
|
4658
|
-
user: n("user",
|
|
4655
|
+
list: n("list", R.divIcon),
|
|
4656
|
+
selected: n("selected", R.divIcon),
|
|
4657
|
+
search: n("search", R.divIcon),
|
|
4658
|
+
user: n("user", R.divIcon)
|
|
4659
4659
|
};
|
|
4660
|
-
}),
|
|
4661
|
-
u.value =
|
|
4662
|
-
}),
|
|
4663
|
-
A.value =
|
|
4664
|
-
}),
|
|
4665
|
-
const
|
|
4666
|
-
|
|
4667
|
-
}, { deep: !0 }),
|
|
4660
|
+
}), W(() => t.zoom, (I) => {
|
|
4661
|
+
u.value = I;
|
|
4662
|
+
}), W(() => t.modelValue, (I) => {
|
|
4663
|
+
A.value = k(I);
|
|
4664
|
+
}), W(() => t.center, (I) => {
|
|
4665
|
+
const R = k(I);
|
|
4666
|
+
R && me(R);
|
|
4667
|
+
}, { deep: !0 }), W(
|
|
4668
4668
|
() => [
|
|
4669
4669
|
t.height,
|
|
4670
4670
|
t.markers.length,
|
|
@@ -4677,45 +4677,45 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4677
4677
|
t.userLocation?.lng
|
|
4678
4678
|
],
|
|
4679
4679
|
() => {
|
|
4680
|
-
|
|
4680
|
+
ge();
|
|
4681
4681
|
},
|
|
4682
4682
|
{ flush: "post" }
|
|
4683
4683
|
);
|
|
4684
|
-
const f = w(() =>
|
|
4685
|
-
const
|
|
4686
|
-
const
|
|
4687
|
-
return
|
|
4688
|
-
...
|
|
4689
|
-
...
|
|
4690
|
-
type:
|
|
4684
|
+
const f = w(() => k(t.userLocation)), v = w(() => k(t.selectionRadiusCenter) || A.value), y = w(() => {
|
|
4685
|
+
const I = (t.markers || []).map((R) => {
|
|
4686
|
+
const H = k(R);
|
|
4687
|
+
return H ? {
|
|
4688
|
+
...R,
|
|
4689
|
+
...H,
|
|
4690
|
+
type: R.type || (A.value && K(R, A.value) ? "selected" : "list")
|
|
4691
4691
|
} : null;
|
|
4692
|
-
}).filter((
|
|
4693
|
-
return t.showSelectedMarker && A.value && !
|
|
4692
|
+
}).filter((R) => !!R);
|
|
4693
|
+
return t.showSelectedMarker && A.value && !I.some((R) => K(R, A.value)) && I.push({
|
|
4694
4694
|
id: "selected-location",
|
|
4695
4695
|
label: t.selectedLocationLabel,
|
|
4696
4696
|
type: "search",
|
|
4697
4697
|
...A.value
|
|
4698
|
-
}),
|
|
4699
|
-
}),
|
|
4700
|
-
const
|
|
4701
|
-
return [
|
|
4698
|
+
}), I;
|
|
4699
|
+
}), $ = w(() => (t.routeCoordinates || []).map((I) => z(I)).filter((I) => !!I)), D = w(() => {
|
|
4700
|
+
const I = k(t.center) || A.value || k(t.markers[0]) || l;
|
|
4701
|
+
return [I.lat, I.lng];
|
|
4702
4702
|
}), b = w(() => {
|
|
4703
4703
|
if (t.tileLayerUrl.trim())
|
|
4704
4704
|
return t.tileLayerUrl;
|
|
4705
|
-
const
|
|
4706
|
-
return a[
|
|
4705
|
+
const I = t.mapStyle === "custom" ? "streets" : t.mapStyle;
|
|
4706
|
+
return a[I].url;
|
|
4707
4707
|
}), h = w(() => {
|
|
4708
4708
|
if (t.tileLayerAttribution.trim())
|
|
4709
4709
|
return t.tileLayerAttribution;
|
|
4710
|
-
const
|
|
4711
|
-
return a[
|
|
4710
|
+
const I = t.mapStyle === "custom" ? "streets" : t.mapStyle;
|
|
4711
|
+
return a[I].attribution;
|
|
4712
4712
|
});
|
|
4713
|
-
function
|
|
4713
|
+
function M(I = "list") {
|
|
4714
4714
|
if (d.value)
|
|
4715
|
-
return d.value[
|
|
4715
|
+
return d.value[I] || d.value.list;
|
|
4716
4716
|
}
|
|
4717
|
-
function T(
|
|
4718
|
-
switch (
|
|
4717
|
+
function T(I = "list") {
|
|
4718
|
+
switch (I) {
|
|
4719
4719
|
case "user":
|
|
4720
4720
|
return 450;
|
|
4721
4721
|
case "selected":
|
|
@@ -4726,92 +4726,92 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4726
4726
|
return 150;
|
|
4727
4727
|
}
|
|
4728
4728
|
}
|
|
4729
|
-
function
|
|
4730
|
-
if (!
|
|
4729
|
+
function k(I) {
|
|
4730
|
+
if (!I)
|
|
4731
4731
|
return null;
|
|
4732
|
-
const
|
|
4733
|
-
return Number.isNaN(
|
|
4732
|
+
const R = Number(I.lat), H = Number(I.lng);
|
|
4733
|
+
return Number.isNaN(R) || Number.isNaN(H) ? null : { lat: R, lng: H };
|
|
4734
4734
|
}
|
|
4735
|
-
function z(
|
|
4736
|
-
if (Array.isArray(
|
|
4737
|
-
const
|
|
4738
|
-
return Number.isFinite(
|
|
4735
|
+
function z(I) {
|
|
4736
|
+
if (Array.isArray(I)) {
|
|
4737
|
+
const H = Number(I[0]), G = Number(I[1]);
|
|
4738
|
+
return Number.isFinite(H) && Number.isFinite(G) ? [H, G] : null;
|
|
4739
4739
|
}
|
|
4740
|
-
const
|
|
4741
|
-
return
|
|
4740
|
+
const R = k(I);
|
|
4741
|
+
return R ? [R.lat, R.lng] : null;
|
|
4742
4742
|
}
|
|
4743
|
-
function K(
|
|
4744
|
-
const
|
|
4745
|
-
return !
|
|
4743
|
+
function K(I, R) {
|
|
4744
|
+
const H = k(I), G = k(R);
|
|
4745
|
+
return !H || !G ? !1 : Math.abs(H.lat - G.lat) < 1e-6 && Math.abs(H.lng - G.lng) < 1e-6;
|
|
4746
4746
|
}
|
|
4747
|
-
async function
|
|
4748
|
-
await
|
|
4747
|
+
async function ge() {
|
|
4748
|
+
await Fe(), m.value?.invalidateSize();
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4751
|
-
m.value?.panTo([
|
|
4750
|
+
function me(I) {
|
|
4751
|
+
m.value?.panTo([I.lat, I.lng]);
|
|
4752
4752
|
}
|
|
4753
|
-
function $e(
|
|
4754
|
-
m.value =
|
|
4753
|
+
function $e(I) {
|
|
4754
|
+
m.value = I, me(k(t.center) || A.value || l), ge();
|
|
4755
4755
|
}
|
|
4756
|
-
function
|
|
4757
|
-
u.value =
|
|
4756
|
+
function ve(I) {
|
|
4757
|
+
u.value = I, o("update:zoom", I);
|
|
4758
4758
|
}
|
|
4759
|
-
function Ie(
|
|
4760
|
-
const
|
|
4761
|
-
|
|
4759
|
+
function Ie(I) {
|
|
4760
|
+
const R = k(I);
|
|
4761
|
+
R && (me(R), o("update:center", R));
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function Y(I) {
|
|
4764
4764
|
if (!t.interactive || t.disabled)
|
|
4765
4765
|
return;
|
|
4766
|
-
const
|
|
4767
|
-
lat: Number(
|
|
4768
|
-
lng: Number(
|
|
4766
|
+
const R = {
|
|
4767
|
+
lat: Number(I.latlng.lat.toFixed(6)),
|
|
4768
|
+
lng: Number(I.latlng.lng.toFixed(6))
|
|
4769
4769
|
};
|
|
4770
|
-
A.value =
|
|
4770
|
+
A.value = R, me(R), o("update:modelValue", R), o("update:center", R), o("map-click", R);
|
|
4771
4771
|
}
|
|
4772
|
-
function Me(
|
|
4772
|
+
function Me(I) {
|
|
4773
4773
|
A.value = {
|
|
4774
|
-
lat: Number(
|
|
4775
|
-
lng: Number(
|
|
4776
|
-
},
|
|
4774
|
+
lat: Number(I.lat),
|
|
4775
|
+
lng: Number(I.lng)
|
|
4776
|
+
}, me(A.value), o("update:modelValue", A.value), o("update:center", A.value), o("marker-click", I);
|
|
4777
4777
|
}
|
|
4778
|
-
return (
|
|
4779
|
-
N(
|
|
4780
|
-
e.label ? (c(), g("label", Xo, E(e.label), 1)) :
|
|
4778
|
+
return (I, R) => (c(), g("div", Zo, [
|
|
4779
|
+
N(I.$slots, "label", {}, () => [
|
|
4780
|
+
e.label ? (c(), g("label", Xo, E(e.label), 1)) : B("", !0)
|
|
4781
4781
|
]),
|
|
4782
4782
|
s("div", {
|
|
4783
|
-
class:
|
|
4783
|
+
class: V(["base-map__frame", {
|
|
4784
4784
|
"base-map__frame--interactive": e.interactive && !e.disabled,
|
|
4785
4785
|
"base-map__frame--disabled": e.disabled
|
|
4786
4786
|
}]),
|
|
4787
4787
|
style: Se({ height: e.height }),
|
|
4788
4788
|
"data-testid": "base-map"
|
|
4789
4789
|
}, [
|
|
4790
|
-
i.value ? (c(),
|
|
4790
|
+
i.value ? (c(), U(ce(i.value?.LMap), {
|
|
4791
4791
|
key: 0,
|
|
4792
4792
|
class: "base-map__canvas",
|
|
4793
4793
|
"use-global-leaflet": !1,
|
|
4794
4794
|
zoom: u.value,
|
|
4795
4795
|
center: D.value,
|
|
4796
4796
|
onReady: $e,
|
|
4797
|
-
onClick:
|
|
4798
|
-
"onUpdate:zoom":
|
|
4797
|
+
onClick: Y,
|
|
4798
|
+
"onUpdate:zoom": ve,
|
|
4799
4799
|
"onUpdate:center": Ie
|
|
4800
4800
|
}, {
|
|
4801
4801
|
default: _(() => [
|
|
4802
|
-
(c(),
|
|
4802
|
+
(c(), U(ce(i.value.LTileLayer), {
|
|
4803
4803
|
url: b.value,
|
|
4804
4804
|
attribution: h.value,
|
|
4805
4805
|
"layer-type": "base",
|
|
4806
4806
|
name: "OpenStreetMap"
|
|
4807
4807
|
}, null, 8, ["url", "attribution"])),
|
|
4808
|
-
|
|
4808
|
+
$.value.length > 1 ? (c(), U(ce(i.value.LPolyline), {
|
|
4809
4809
|
key: 0,
|
|
4810
|
-
"lat-lngs":
|
|
4810
|
+
"lat-lngs": $.value,
|
|
4811
4811
|
color: e.routeColor,
|
|
4812
4812
|
weight: e.routeWeight
|
|
4813
|
-
}, null, 8, ["lat-lngs", "color", "weight"])) :
|
|
4814
|
-
v.value && e.selectionRadius > 0 ? (c(),
|
|
4813
|
+
}, null, 8, ["lat-lngs", "color", "weight"])) : B("", !0),
|
|
4814
|
+
v.value && e.selectionRadius > 0 ? (c(), U(ce(i.value.LCircle), {
|
|
4815
4815
|
key: 1,
|
|
4816
4816
|
"lat-lng": [v.value.lat, v.value.lng],
|
|
4817
4817
|
radius: e.selectionRadius,
|
|
@@ -4820,30 +4820,30 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4820
4820
|
"fill-opacity": e.selectionRadiusFillOpacity,
|
|
4821
4821
|
opacity: e.selectionRadiusOpacity,
|
|
4822
4822
|
weight: e.selectionRadiusStrokeWeight
|
|
4823
|
-
}, null, 8, ["lat-lng", "radius", "color", "fill-color", "fill-opacity", "opacity", "weight"])) :
|
|
4824
|
-
(c(!0), g(
|
|
4825
|
-
key:
|
|
4826
|
-
"lat-lng": [
|
|
4827
|
-
icon:
|
|
4828
|
-
"z-index-offset": T(
|
|
4829
|
-
onClick: (
|
|
4823
|
+
}, null, 8, ["lat-lng", "radius", "color", "fill-color", "fill-opacity", "opacity", "weight"])) : B("", !0),
|
|
4824
|
+
(c(!0), g(ae, null, ue(y.value, (H, G) => (c(), U(ce(i.value.LMarker), {
|
|
4825
|
+
key: H.id ?? `${H.lat}-${H.lng}-${G}`,
|
|
4826
|
+
"lat-lng": [H.lat, H.lng],
|
|
4827
|
+
icon: M(H.type),
|
|
4828
|
+
"z-index-offset": T(H.type),
|
|
4829
|
+
onClick: (ee) => Me(H)
|
|
4830
4830
|
}, {
|
|
4831
4831
|
default: _(() => [
|
|
4832
|
-
|
|
4832
|
+
H.label ? (c(), U(ce(i.value.LPopup), { key: 0 }, {
|
|
4833
4833
|
default: _(() => [
|
|
4834
|
-
Ce(E(
|
|
4834
|
+
Ce(E(H.label), 1)
|
|
4835
4835
|
]),
|
|
4836
4836
|
_: 2
|
|
4837
|
-
}, 1024)) :
|
|
4837
|
+
}, 1024)) : B("", !0)
|
|
4838
4838
|
]),
|
|
4839
4839
|
_: 2
|
|
4840
4840
|
}, 1032, ["lat-lng", "icon", "z-index-offset", "onClick"]))), 128)),
|
|
4841
|
-
f.value ? (c(),
|
|
4841
|
+
f.value ? (c(), U(ce(i.value.LMarker), {
|
|
4842
4842
|
key: `user-${f.value.lat}-${f.value.lng}`,
|
|
4843
4843
|
"lat-lng": [f.value.lat, f.value.lng],
|
|
4844
|
-
icon:
|
|
4844
|
+
icon: M("user"),
|
|
4845
4845
|
"z-index-offset": T("user"),
|
|
4846
|
-
onClick:
|
|
4846
|
+
onClick: R[0] || (R[0] = (H) => Me({
|
|
4847
4847
|
id: "user-location",
|
|
4848
4848
|
label: e.userLocationLabel,
|
|
4849
4849
|
type: "user",
|
|
@@ -4851,7 +4851,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4851
4851
|
}))
|
|
4852
4852
|
}, {
|
|
4853
4853
|
default: _(() => [
|
|
4854
|
-
(c(),
|
|
4854
|
+
(c(), U(ce(i.value.LPopup), null, {
|
|
4855
4855
|
default: _(() => [
|
|
4856
4856
|
Ce(E(e.userLocationLabel), 1)
|
|
4857
4857
|
]),
|
|
@@ -4859,12 +4859,12 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4859
4859
|
}))
|
|
4860
4860
|
]),
|
|
4861
4861
|
_: 1
|
|
4862
|
-
}, 8, ["lat-lng", "icon", "z-index-offset"])) :
|
|
4862
|
+
}, 8, ["lat-lng", "icon", "z-index-offset"])) : B("", !0)
|
|
4863
4863
|
]),
|
|
4864
4864
|
_: 1
|
|
4865
|
-
}, 40, ["zoom", "center"])) :
|
|
4865
|
+
}, 40, ["zoom", "center"])) : B("", !0)
|
|
4866
4866
|
], 6),
|
|
4867
|
-
e.interactive && e.helperText ? (c(), g("p", Ko, E(e.helperText), 1)) :
|
|
4867
|
+
e.interactive && e.helperText ? (c(), g("p", Ko, E(e.helperText), 1)) : B("", !0)
|
|
4868
4868
|
]));
|
|
4869
4869
|
}
|
|
4870
4870
|
}), ti = {
|
|
@@ -4885,7 +4885,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4885
4885
|
}, si = {
|
|
4886
4886
|
key: 2,
|
|
4887
4887
|
class: "location-list__empty"
|
|
4888
|
-
}, ri = /* @__PURE__ */
|
|
4888
|
+
}, ri = /* @__PURE__ */ O({
|
|
4889
4889
|
__name: "location-list",
|
|
4890
4890
|
props: {
|
|
4891
4891
|
modelValue: {
|
|
@@ -4942,30 +4942,30 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Lo =
|
|
|
4942
4942
|
l("update:modelValue", A), l("select", A);
|
|
4943
4943
|
}
|
|
4944
4944
|
return (A, f) => (c(), g("div", ti, [
|
|
4945
|
-
e.label ? (c(), g("p", ai, E(e.label), 1)) :
|
|
4945
|
+
e.label ? (c(), g("p", ai, E(e.label), 1)) : B("", !0),
|
|
4946
4946
|
e.locations.length ? (c(), g("div", ni, [
|
|
4947
|
-
(c(!0), g(
|
|
4947
|
+
(c(!0), g(ae, null, ue(e.locations, (v, y) => (c(), g("button", {
|
|
4948
4948
|
key: o(v, y),
|
|
4949
4949
|
type: "button",
|
|
4950
|
-
class:
|
|
4950
|
+
class: V(["location-list__item", {
|
|
4951
4951
|
"location-list__item--active": d(v, y)
|
|
4952
4952
|
}]),
|
|
4953
4953
|
"data-testid": `location-option-${i(v, y)}`,
|
|
4954
|
-
onClick: (
|
|
4954
|
+
onClick: ($) => u(v)
|
|
4955
4955
|
}, [
|
|
4956
4956
|
s("strong", oi, E(a(v)), 1),
|
|
4957
|
-
t(v) ? (c(), g("small", ii, E(t(v)), 1)) :
|
|
4958
|
-
e.showDistance && v?.distance !== void 0 && v?.distance !== null ? (c(), g("small", Ai, E(m(Number(v.distance))) + " away ", 1)) :
|
|
4957
|
+
t(v) ? (c(), g("small", ii, E(t(v)), 1)) : B("", !0),
|
|
4958
|
+
e.showDistance && v?.distance !== void 0 && v?.distance !== null ? (c(), g("small", Ai, E(m(Number(v.distance))) + " away ", 1)) : B("", !0)
|
|
4959
4959
|
], 10, li))), 128))
|
|
4960
4960
|
])) : (c(), g("p", si, E(e.emptyText), 1))
|
|
4961
4961
|
]));
|
|
4962
4962
|
}
|
|
4963
4963
|
});
|
|
4964
4964
|
function It(e = null, r) {
|
|
4965
|
-
const n =
|
|
4966
|
-
async function d(
|
|
4965
|
+
const n = C(!1), l = C([]), a = C([]), t = C(!1), o = C(!1), i = w(() => e.modelValue?.length ? e.modelValue : e.src ? [{ type: "", src: e.src }] : a.value);
|
|
4966
|
+
async function d($) {
|
|
4967
4967
|
const D = new FormData();
|
|
4968
|
-
D.append("file",
|
|
4968
|
+
D.append("file", $), n.value = !0;
|
|
4969
4969
|
const h = await (e.customFetch || Ze)(e.endpoint, {
|
|
4970
4970
|
method: "POST",
|
|
4971
4971
|
...e.customFetch ? {} : { headers: {
|
|
@@ -4978,44 +4978,44 @@ function It(e = null, r) {
|
|
|
4978
4978
|
});
|
|
4979
4979
|
return n.value = !1, `${e.baseResponsePath || "/api/v1/assets"}/${h.path}`;
|
|
4980
4980
|
}
|
|
4981
|
-
function m(
|
|
4982
|
-
const D = typeof
|
|
4981
|
+
function m($) {
|
|
4982
|
+
const D = typeof $ == "string" ? parseInt($, 10) : $, b = Array.isArray(e.modelValue) && e.modelValue.length > 0, h = Array.isArray(a.value) && a.value.length > 0;
|
|
4983
4983
|
if (h && D < a.value.length && a.value.splice(D, 1), b) {
|
|
4984
|
-
const
|
|
4985
|
-
D <
|
|
4984
|
+
const M = [...e.modelValue];
|
|
4985
|
+
D < M.length && M.splice(D, 1), r?.("update:modelValue", M), e.multiple || r?.("update:src", M[0]?.src || "");
|
|
4986
4986
|
} else if (h) {
|
|
4987
|
-
const
|
|
4988
|
-
r?.("update:modelValue",
|
|
4987
|
+
const M = e.multiple ? a.value : a.value[0];
|
|
4988
|
+
r?.("update:modelValue", M), e.multiple || r?.("update:src", a.value[0]?.src || "");
|
|
4989
4989
|
} else
|
|
4990
4990
|
r?.("update:modelValue", e.multiple ? [] : void 0), r?.("update:src", "");
|
|
4991
4991
|
l.value.splice(D, 1), t.value = !1;
|
|
4992
4992
|
}
|
|
4993
|
-
function u(
|
|
4994
|
-
|
|
4993
|
+
function u($) {
|
|
4994
|
+
$.preventDefault(), o.value = !0;
|
|
4995
4995
|
}
|
|
4996
|
-
function A(
|
|
4997
|
-
|
|
4996
|
+
function A($) {
|
|
4997
|
+
$.preventDefault(), o.value = !1;
|
|
4998
4998
|
}
|
|
4999
|
-
function f(
|
|
5000
|
-
|
|
5001
|
-
const D =
|
|
4999
|
+
function f($) {
|
|
5000
|
+
$.preventDefault(), o.value = !1;
|
|
5001
|
+
const D = $.dataTransfer, b = D && Array.from(D.files || []);
|
|
5002
5002
|
l.value = b || [];
|
|
5003
5003
|
}
|
|
5004
5004
|
function v() {
|
|
5005
|
-
e.dropFiles && (["dragenter", "dragover"].forEach((
|
|
5006
|
-
document.body.addEventListener(
|
|
5007
|
-
}), ["dragleave", "drop"].forEach((
|
|
5008
|
-
document.body.addEventListener(
|
|
5005
|
+
e.dropFiles && (["dragenter", "dragover"].forEach(($) => {
|
|
5006
|
+
document.body.addEventListener($, u, !1);
|
|
5007
|
+
}), ["dragleave", "drop"].forEach(($) => {
|
|
5008
|
+
document.body.addEventListener($, A, !1);
|
|
5009
5009
|
}), document.body.addEventListener("drop", f, !1));
|
|
5010
5010
|
}
|
|
5011
5011
|
function y() {
|
|
5012
|
-
e.dropFiles && (["dragenter", "dragover"].forEach((
|
|
5013
|
-
document.body.removeEventListener(
|
|
5014
|
-
}), ["dragleave", "drop"].forEach((
|
|
5015
|
-
document.body.removeEventListener(
|
|
5012
|
+
e.dropFiles && (["dragenter", "dragover"].forEach(($) => {
|
|
5013
|
+
document.body.removeEventListener($, u, !1);
|
|
5014
|
+
}), ["dragleave", "drop"].forEach(($) => {
|
|
5015
|
+
document.body.removeEventListener($, A, !1);
|
|
5016
5016
|
}), document.body.removeEventListener("drop", f, !1));
|
|
5017
5017
|
}
|
|
5018
|
-
return
|
|
5018
|
+
return ne(() => {
|
|
5019
5019
|
v();
|
|
5020
5020
|
}), Be(() => {
|
|
5021
5021
|
y();
|
|
@@ -5038,7 +5038,7 @@ function It(e = null, r) {
|
|
|
5038
5038
|
const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["innerHTML"], gi = {
|
|
5039
5039
|
key: 0,
|
|
5040
5040
|
class: "file-upload__loading-spinner"
|
|
5041
|
-
}, vi = /* @__PURE__ */
|
|
5041
|
+
}, vi = /* @__PURE__ */ O({
|
|
5042
5042
|
__name: "file-upload",
|
|
5043
5043
|
props: {
|
|
5044
5044
|
modelValue: {
|
|
@@ -5128,46 +5128,46 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5128
5128
|
emits: ["update:modelValue", "update:src"],
|
|
5129
5129
|
setup(e, { emit: r }) {
|
|
5130
5130
|
const n = e, l = r, { pending: a, files: t, dataUrls: o, isDragging: i, thumbnails: d, uploadFile: m, removeFile: u } = It(n, l);
|
|
5131
|
-
return
|
|
5131
|
+
return W(() => t.value, async (A) => {
|
|
5132
5132
|
o.value = await Promise.all(
|
|
5133
5133
|
A.map(async (f) => ({
|
|
5134
5134
|
src: n.toDataUrl ? await Ke(f) : await m(f),
|
|
5135
5135
|
type: f.type
|
|
5136
5136
|
}))
|
|
5137
5137
|
);
|
|
5138
|
-
}, { deep: !0 }),
|
|
5138
|
+
}, { deep: !0 }), W(() => o.value, async (A) => {
|
|
5139
5139
|
const f = n.multiple ? A : A[0];
|
|
5140
5140
|
l("update:modelValue", f), n.multiple || l("update:src", A[0] && A[0].src);
|
|
5141
5141
|
}, { deep: !0 }), (A, f) => (c(), g("div", {
|
|
5142
|
-
class:
|
|
5142
|
+
class: V(["file-upload", {
|
|
5143
5143
|
"has-dragging": e.dropFiles,
|
|
5144
5144
|
"is-dragging": q(i)
|
|
5145
5145
|
}])
|
|
5146
5146
|
}, [
|
|
5147
|
-
(c(!0), g(
|
|
5147
|
+
(c(!0), g(ae, null, ue(q(d), (v, y) => (c(), g("div", {
|
|
5148
5148
|
key: v.src,
|
|
5149
|
-
class:
|
|
5149
|
+
class: V(e.enablePreview ? "file-upload__thumbnail" : "file-upload__reset")
|
|
5150
5150
|
}, [
|
|
5151
|
-
e.enablePreview ? (c(), g(
|
|
5151
|
+
e.enablePreview ? (c(), g(ae, { key: 0 }, [
|
|
5152
5152
|
s("img", {
|
|
5153
5153
|
src: `${v.src}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
|
|
5154
5154
|
class: "img-thumbnail rounded"
|
|
5155
5155
|
}, null, 8, ui),
|
|
5156
5156
|
s("button", {
|
|
5157
|
-
onClick:
|
|
5157
|
+
onClick: Z(($) => q(u)(y), ["prevent"]),
|
|
5158
5158
|
class: "btn btn--close"
|
|
5159
5159
|
}, [
|
|
5160
|
-
|
|
5160
|
+
L(Q, { symbol: "x" })
|
|
5161
5161
|
], 8, di)
|
|
5162
5162
|
], 64)) : (c(), g("button", {
|
|
5163
5163
|
key: 1,
|
|
5164
|
-
onClick:
|
|
5164
|
+
onClick: Z(($) => q(u)(y), ["prevent"]),
|
|
5165
5165
|
class: "btn btn--close btn-outline-contrast"
|
|
5166
5166
|
}, [
|
|
5167
|
-
|
|
5167
|
+
L(Q, { symbol: "x" })
|
|
5168
5168
|
], 8, ci))
|
|
5169
5169
|
], 2))), 128)),
|
|
5170
|
-
|
|
5170
|
+
L(Mt, {
|
|
5171
5171
|
modelValue: q(t),
|
|
5172
5172
|
"onUpdate:modelValue": f[0] || (f[0] = (v) => nt(t) ? t.value = v : null),
|
|
5173
5173
|
id: e.id,
|
|
@@ -5186,7 +5186,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5186
5186
|
innerHTML: e.label || A.$t("common.selectFile")
|
|
5187
5187
|
}, null, 8, fi)
|
|
5188
5188
|
]),
|
|
5189
|
-
|
|
5189
|
+
L(tt, { name: "fade" }, {
|
|
5190
5190
|
default: _(() => [
|
|
5191
5191
|
q(a) ? (c(), g("span", gi, [...f[1] || (f[1] = [
|
|
5192
5192
|
s("span", {
|
|
@@ -5195,7 +5195,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5195
5195
|
}, [
|
|
5196
5196
|
s("span", { class: "visually-hidden" }, "Loading...")
|
|
5197
5197
|
], -1)
|
|
5198
|
-
])])) :
|
|
5198
|
+
])])) : B("", !0)
|
|
5199
5199
|
]),
|
|
5200
5200
|
_: 1
|
|
5201
5201
|
})
|
|
@@ -5212,7 +5212,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5212
5212
|
}, wi = {
|
|
5213
5213
|
key: 0,
|
|
5214
5214
|
class: "sortable-list__item"
|
|
5215
|
-
}, $i = /* @__PURE__ */
|
|
5215
|
+
}, $i = /* @__PURE__ */ O({
|
|
5216
5216
|
__name: "sortable-list",
|
|
5217
5217
|
props: {
|
|
5218
5218
|
modelValue: {
|
|
@@ -5247,7 +5247,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5247
5247
|
"update:dragOverIndex"
|
|
5248
5248
|
],
|
|
5249
5249
|
setup(e, { emit: r }) {
|
|
5250
|
-
const n = e, l =
|
|
5250
|
+
const n = e, l = C(!1), a = C(null), t = C(null), o = r, i = w({
|
|
5251
5251
|
get() {
|
|
5252
5252
|
return n.modelValue;
|
|
5253
5253
|
},
|
|
@@ -5258,87 +5258,87 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5258
5258
|
const h = document.querySelector(".is-drag-item")?.outerHTML;
|
|
5259
5259
|
return h ? re(h) : "";
|
|
5260
5260
|
}), m = Nt(), u = w(() => m["list-append"]);
|
|
5261
|
-
function A(h,
|
|
5262
|
-
h.dataTransfer && (h.dataTransfer.dropEffect = "move", h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("index",
|
|
5261
|
+
function A(h, M) {
|
|
5262
|
+
h.dataTransfer && (h.dataTransfer.dropEffect = "move", h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("index", M.toLocaleString()), l.value = !0, a.value = M);
|
|
5263
5263
|
}
|
|
5264
|
-
function f(h,
|
|
5264
|
+
function f(h, M) {
|
|
5265
5265
|
l.value = !1, a.value = null, t.value = null;
|
|
5266
5266
|
}
|
|
5267
|
-
function v(h,
|
|
5267
|
+
function v(h, M) {
|
|
5268
5268
|
}
|
|
5269
|
-
function y(h,
|
|
5270
|
-
t.value = a.value !==
|
|
5269
|
+
function y(h, M) {
|
|
5270
|
+
t.value = a.value !== M ? M : null;
|
|
5271
5271
|
}
|
|
5272
|
-
function
|
|
5273
|
-
t.value = a.value !==
|
|
5272
|
+
function $(h, M) {
|
|
5273
|
+
t.value = a.value !== M ? M : null;
|
|
5274
5274
|
}
|
|
5275
|
-
function D(h,
|
|
5275
|
+
function D(h, M) {
|
|
5276
5276
|
}
|
|
5277
|
-
function b(h,
|
|
5277
|
+
function b(h, M) {
|
|
5278
5278
|
if (h.dataTransfer) {
|
|
5279
5279
|
h.preventDefault();
|
|
5280
|
-
const T = Number(h.dataTransfer.getData("index")),
|
|
5281
|
-
(
|
|
5280
|
+
const T = Number(h.dataTransfer.getData("index")), k = M, z = [...i.value];
|
|
5281
|
+
(k || k === 0) && (T || T === 0) && z.splice(k, 0, z.splice(T, 1)[0]), i.value = z;
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
|
-
return
|
|
5284
|
+
return W(() => l.value, (h) => {
|
|
5285
5285
|
o("update:isDragging", h);
|
|
5286
|
-
}, { immediate: !0 }),
|
|
5286
|
+
}, { immediate: !0 }), W(() => a.value, (h) => {
|
|
5287
5287
|
o("update:dragIndex", h);
|
|
5288
|
-
}, { immediate: !0 }),
|
|
5288
|
+
}, { immediate: !0 }), W(() => t.value, (h) => {
|
|
5289
5289
|
o("update:dragOverIndex", h);
|
|
5290
|
-
}, { immediate: !0 }), (h,
|
|
5290
|
+
}, { immediate: !0 }), (h, M) => (c(), U($t, {
|
|
5291
5291
|
name: "list",
|
|
5292
5292
|
tag: "ul",
|
|
5293
|
-
class:
|
|
5293
|
+
class: V(["sortable-list p-0 d-flex gap-2", {
|
|
5294
5294
|
"flex-column": e.vertical,
|
|
5295
5295
|
"flex-row flex-wrap": !e.vertical
|
|
5296
5296
|
}]),
|
|
5297
|
-
onDragover:
|
|
5297
|
+
onDragover: M[0] || (M[0] = Z(() => {
|
|
5298
5298
|
}, ["prevent"])),
|
|
5299
|
-
onDragenter:
|
|
5299
|
+
onDragenter: M[1] || (M[1] = Z(() => {
|
|
5300
5300
|
}, ["prevent"]))
|
|
5301
5301
|
}, {
|
|
5302
5302
|
default: _(() => [
|
|
5303
|
-
(c(!0), g(
|
|
5304
|
-
e.showPreview && l.value && t.value ===
|
|
5303
|
+
(c(!0), g(ae, null, ue(i.value, (T, k) => (c(), g(ae, { key: k }, [
|
|
5304
|
+
e.showPreview && l.value && t.value === k ? (c(), g("li", {
|
|
5305
5305
|
key: 0,
|
|
5306
5306
|
class: "sortable-list__item is-drop-target",
|
|
5307
|
-
onDragenter: (z) => y(z,
|
|
5308
|
-
onDragover: (z) =>
|
|
5307
|
+
onDragenter: (z) => y(z, k),
|
|
5308
|
+
onDragover: (z) => $(z, k),
|
|
5309
5309
|
onDragleave: (z) => void 0,
|
|
5310
5310
|
onDragend: (z) => f(),
|
|
5311
|
-
onDrop: (z) => b(z,
|
|
5311
|
+
onDrop: (z) => b(z, k),
|
|
5312
5312
|
innerHTML: d.value
|
|
5313
|
-
}, null, 40, pi)) :
|
|
5313
|
+
}, null, 40, pi)) : B("", !0),
|
|
5314
5314
|
s("li", {
|
|
5315
|
-
class:
|
|
5316
|
-
"is-drag-item": l.value && a.value ===
|
|
5317
|
-
"is-drop-target": l.value && t.value ===
|
|
5315
|
+
class: V(["sortable-list__item d-flex", {
|
|
5316
|
+
"is-drag-item": l.value && a.value === k,
|
|
5317
|
+
"is-drop-target": l.value && t.value === k && !e.showPreview,
|
|
5318
5318
|
"align-items-center gap-2": e.vertical
|
|
5319
5319
|
}]),
|
|
5320
5320
|
draggable: !0,
|
|
5321
|
-
onDragstart: (z) => A(z,
|
|
5321
|
+
onDragstart: (z) => A(z, k),
|
|
5322
5322
|
onDrag: (z) => void 0,
|
|
5323
|
-
onDragenter: (z) => y(z,
|
|
5324
|
-
onDragover: (z) =>
|
|
5323
|
+
onDragenter: (z) => y(z, k),
|
|
5324
|
+
onDragover: (z) => $(z, k),
|
|
5325
5325
|
onDragleave: (z) => void 0,
|
|
5326
5326
|
onDragend: (z) => f(),
|
|
5327
|
-
onDrop: (z) => b(z,
|
|
5327
|
+
onDrop: (z) => b(z, k)
|
|
5328
5328
|
}, [
|
|
5329
5329
|
e.showDragHandle ? (c(), g("div", yi, [
|
|
5330
5330
|
s("button", bi, [
|
|
5331
|
-
|
|
5331
|
+
L(Q, { symbol: "drag" })
|
|
5332
5332
|
])
|
|
5333
|
-
])) :
|
|
5333
|
+
])) : B("", !0),
|
|
5334
5334
|
s("div", {
|
|
5335
|
-
class:
|
|
5335
|
+
class: V(["sortable-list__item-content", {
|
|
5336
5336
|
"flex-grow-1": e.vertical
|
|
5337
5337
|
}])
|
|
5338
5338
|
}, [
|
|
5339
5339
|
N(h.$slots, "list-item", {
|
|
5340
5340
|
item: T,
|
|
5341
|
-
index:
|
|
5341
|
+
index: k
|
|
5342
5342
|
}, () => [
|
|
5343
5343
|
Ce(E(T), 1)
|
|
5344
5344
|
])
|
|
@@ -5347,7 +5347,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5347
5347
|
], 64))), 128)),
|
|
5348
5348
|
u.value ? (c(), g("li", wi, [
|
|
5349
5349
|
N(h.$slots, "list-append")
|
|
5350
|
-
])) :
|
|
5350
|
+
])) : B("", !0)
|
|
5351
5351
|
]),
|
|
5352
5352
|
_: 3
|
|
5353
5353
|
}, 8, ["class"]));
|
|
@@ -5355,7 +5355,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5355
5355
|
}), Ci = {
|
|
5356
5356
|
key: 0,
|
|
5357
5357
|
class: "image-editor position-relative"
|
|
5358
|
-
}, Si = { class: "row mb-3" }, ki = { class: "col" }, Bi = { class: "row gap-2 mb-4" }, Mi = { class: "col-12" }, Li = { class: "input mb-2" }, Ii = { class: "col" }, Di = { class: "input mb-0" }, Vi = { class: "col" }, Pi = { class: "input mb-0" }, xi = { class: "row" }, Ei = { class: "col d-flex justify-content-end gap-2" }, Ti = ["disabled"], zi = /* @__PURE__ */
|
|
5358
|
+
}, Si = { class: "row mb-3" }, ki = { class: "col" }, Bi = { class: "row gap-2 mb-4" }, Mi = { class: "col-12" }, Li = { class: "input mb-2" }, Ii = { class: "col" }, Di = { class: "input mb-0" }, Vi = { class: "col" }, Pi = { class: "input mb-0" }, xi = { class: "row" }, Ei = { class: "col d-flex justify-content-end gap-2" }, Ti = ["disabled"], zi = /* @__PURE__ */ O({
|
|
5359
5359
|
__name: "image-resize",
|
|
5360
5360
|
props: {
|
|
5361
5361
|
modelValue: {
|
|
@@ -5374,7 +5374,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5374
5374
|
},
|
|
5375
5375
|
emits: ["update:modelValue"],
|
|
5376
5376
|
setup(e, { emit: r }) {
|
|
5377
|
-
const n = r, l = et("image"), a =
|
|
5377
|
+
const n = r, l = et("image"), a = C(1), t = C(0), o = C(0), i = C(null), d = C(0), m = C(0);
|
|
5378
5378
|
function u() {
|
|
5379
5379
|
i.value && (n("update:modelValue", i.value), a.value = 1);
|
|
5380
5380
|
}
|
|
@@ -5385,75 +5385,75 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5385
5385
|
o.value = Math.round(t.value * v);
|
|
5386
5386
|
const y = l.value?.$el;
|
|
5387
5387
|
if (!y) return;
|
|
5388
|
-
const
|
|
5389
|
-
|
|
5388
|
+
const $ = y.querySelector("img");
|
|
5389
|
+
$ && (i.value = kt($, t.value, o.value, "image/png"));
|
|
5390
5390
|
}, f = st(A, 300);
|
|
5391
|
-
return
|
|
5391
|
+
return W(a, () => {
|
|
5392
5392
|
d.value && (t.value = Math.round(d.value * a.value), f());
|
|
5393
|
-
}),
|
|
5393
|
+
}), W(t, () => {
|
|
5394
5394
|
if (!d.value || t.value === 0) return;
|
|
5395
5395
|
const v = t.value / d.value;
|
|
5396
5396
|
Math.abs(v - a.value) > 1e-4 && (a.value = Number(v.toFixed(4)));
|
|
5397
5397
|
const y = m.value / d.value;
|
|
5398
5398
|
o.value = Math.round(t.value * y), f();
|
|
5399
|
-
}),
|
|
5399
|
+
}), W(o, () => {
|
|
5400
5400
|
if (!m.value || o.value === 0) return;
|
|
5401
5401
|
const v = o.value / m.value;
|
|
5402
5402
|
Math.abs(v - a.value) > 1e-4 && (a.value = Number(v.toFixed(4)));
|
|
5403
5403
|
const y = d.value / m.value;
|
|
5404
5404
|
t.value = Math.round(o.value * y), f();
|
|
5405
|
-
}),
|
|
5405
|
+
}), ne(() => {
|
|
5406
5406
|
const v = l.value?.$el;
|
|
5407
5407
|
if (!v) return;
|
|
5408
5408
|
const y = v.querySelector("img");
|
|
5409
5409
|
if (!y) return;
|
|
5410
|
-
const
|
|
5410
|
+
const $ = () => {
|
|
5411
5411
|
d.value = y.naturalWidth, m.value = y.naturalHeight, A();
|
|
5412
5412
|
};
|
|
5413
|
-
y.complete ?
|
|
5413
|
+
y.complete ? $() : y.addEventListener("load", $);
|
|
5414
5414
|
}), (v, y) => e.modelValue ? (c(), g("div", Ci, [
|
|
5415
5415
|
s("div", Si, [
|
|
5416
5416
|
s("div", ki, [
|
|
5417
|
-
|
|
5417
|
+
L(Te, {
|
|
5418
5418
|
ref_key: "image",
|
|
5419
5419
|
ref: l,
|
|
5420
5420
|
class: "d-none",
|
|
5421
5421
|
src: e.modelValue,
|
|
5422
5422
|
animate: !1
|
|
5423
5423
|
}, null, 8, ["src"]),
|
|
5424
|
-
i.value ? (c(),
|
|
5424
|
+
i.value ? (c(), U(Te, {
|
|
5425
5425
|
key: 0,
|
|
5426
5426
|
ref: "targetImage",
|
|
5427
5427
|
class: "",
|
|
5428
5428
|
src: i.value,
|
|
5429
5429
|
animate: !1
|
|
5430
|
-
}, null, 8, ["src"])) :
|
|
5430
|
+
}, null, 8, ["src"])) : B("", !0)
|
|
5431
5431
|
])
|
|
5432
5432
|
]),
|
|
5433
5433
|
s("div", Bi, [
|
|
5434
5434
|
s("div", Mi, [
|
|
5435
5435
|
s("div", Li, [
|
|
5436
|
-
|
|
5436
|
+
ye(s("input", {
|
|
5437
5437
|
type: "range",
|
|
5438
5438
|
class: "form-range",
|
|
5439
5439
|
id: "scaleRange",
|
|
5440
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
5440
|
+
"onUpdate:modelValue": y[0] || (y[0] = ($) => a.value = $),
|
|
5441
5441
|
min: "0",
|
|
5442
5442
|
max: "2",
|
|
5443
5443
|
step: "0.0001"
|
|
5444
5444
|
}, null, 512), [
|
|
5445
|
-
[
|
|
5445
|
+
[Ue, a.value]
|
|
5446
5446
|
])
|
|
5447
5447
|
])
|
|
5448
5448
|
]),
|
|
5449
5449
|
s("div", Ii, [
|
|
5450
5450
|
s("div", Di, [
|
|
5451
|
-
|
|
5451
|
+
L(We, {
|
|
5452
5452
|
type: "number",
|
|
5453
5453
|
class: "form-input mb-0",
|
|
5454
5454
|
id: "targetWidth",
|
|
5455
5455
|
modelValue: t.value,
|
|
5456
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
5456
|
+
"onUpdate:modelValue": y[1] || (y[1] = ($) => t.value = $)
|
|
5457
5457
|
}, null, 8, ["modelValue"])
|
|
5458
5458
|
])
|
|
5459
5459
|
]),
|
|
@@ -5462,12 +5462,12 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5462
5462
|
], -1)),
|
|
5463
5463
|
s("div", Vi, [
|
|
5464
5464
|
s("div", Pi, [
|
|
5465
|
-
|
|
5465
|
+
L(We, {
|
|
5466
5466
|
type: "number",
|
|
5467
5467
|
class: "form-input mb-0",
|
|
5468
5468
|
id: "targetHeight",
|
|
5469
5469
|
modelValue: o.value,
|
|
5470
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
5470
|
+
"onUpdate:modelValue": y[2] || (y[2] = ($) => o.value = $)
|
|
5471
5471
|
}, null, 8, ["modelValue"])
|
|
5472
5472
|
])
|
|
5473
5473
|
])
|
|
@@ -5478,16 +5478,16 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5478
5478
|
s("button", {
|
|
5479
5479
|
class: "btn btn-sm btn-primary",
|
|
5480
5480
|
disabled: !i.value,
|
|
5481
|
-
onClick:
|
|
5481
|
+
onClick: Z(u, ["prevent", "stop"])
|
|
5482
5482
|
}, E(v.$t("common.apply")), 9, Ti)
|
|
5483
5483
|
])
|
|
5484
5484
|
])
|
|
5485
|
-
])) :
|
|
5485
|
+
])) : B("", !0);
|
|
5486
5486
|
}
|
|
5487
5487
|
}), Ni = {
|
|
5488
5488
|
key: 0,
|
|
5489
5489
|
class: "image-crop"
|
|
5490
|
-
},
|
|
5490
|
+
}, Hi = { class: "row mb-4" }, Qi = { class: "col" }, Oi = { class: "row" }, Ri = { class: "col d-flex gap-2 justify-content-end gap-2" }, Fi = /* @__PURE__ */ O({
|
|
5491
5491
|
__name: "image-crop",
|
|
5492
5492
|
props: {
|
|
5493
5493
|
modelValue: {
|
|
@@ -5518,7 +5518,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5518
5518
|
},
|
|
5519
5519
|
emits: ["update:modelValue"],
|
|
5520
5520
|
setup(e, { emit: r }) {
|
|
5521
|
-
const n = e, l = r, a = et("cropper"), t =
|
|
5521
|
+
const n = e, l = r, a = et("cropper"), t = C(0);
|
|
5522
5522
|
function o() {
|
|
5523
5523
|
const { canvas: i } = a.value?.getResult(), d = i.toDataURL();
|
|
5524
5524
|
l("update:modelValue", d);
|
|
@@ -5526,9 +5526,9 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5526
5526
|
return ot(() => {
|
|
5527
5527
|
t.value = n.suggestedAspectRatio || 0;
|
|
5528
5528
|
}), (i, d) => e.modelValue ? (c(), g("div", Ni, [
|
|
5529
|
-
s("div",
|
|
5530
|
-
s("div",
|
|
5531
|
-
|
|
5529
|
+
s("div", Hi, [
|
|
5530
|
+
s("div", Qi, [
|
|
5531
|
+
L(q(Qt), {
|
|
5532
5532
|
ref: "cropper",
|
|
5533
5533
|
class: "cropper",
|
|
5534
5534
|
src: e.modelValue,
|
|
@@ -5540,9 +5540,9 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5540
5540
|
])
|
|
5541
5541
|
]),
|
|
5542
5542
|
d[1] || (d[1] = s("hr", null, null, -1)),
|
|
5543
|
-
s("div",
|
|
5543
|
+
s("div", Oi, [
|
|
5544
5544
|
s("div", Ri, [
|
|
5545
|
-
|
|
5545
|
+
L(Lt, {
|
|
5546
5546
|
modelValue: t.value,
|
|
5547
5547
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
|
|
5548
5548
|
options: e.aspectRatioOptions,
|
|
@@ -5551,11 +5551,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5551
5551
|
N(i.$slots, "actions"),
|
|
5552
5552
|
s("button", {
|
|
5553
5553
|
class: "btn btn-sm btn-primary",
|
|
5554
|
-
onClick:
|
|
5554
|
+
onClick: Z(o, ["prevent", "stop"])
|
|
5555
5555
|
}, E(i.$t("common.apply")), 1)
|
|
5556
5556
|
])
|
|
5557
5557
|
])
|
|
5558
|
-
])) :
|
|
5558
|
+
])) : B("", !0);
|
|
5559
5559
|
}
|
|
5560
5560
|
}), Wi = {
|
|
5561
5561
|
key: 0,
|
|
@@ -5569,7 +5569,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5569
5569
|
}, Xi = { class: "caption" }, Ki = { class: "caption" }, eA = {
|
|
5570
5570
|
key: 1,
|
|
5571
5571
|
class: "ms-auto"
|
|
5572
|
-
}, tA = /* @__PURE__ */
|
|
5572
|
+
}, tA = /* @__PURE__ */ O({
|
|
5573
5573
|
__name: "image-crop-resize",
|
|
5574
5574
|
props: {
|
|
5575
5575
|
modelValue: {
|
|
@@ -5589,19 +5589,19 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5589
5589
|
},
|
|
5590
5590
|
emits: ["update:modelValue"],
|
|
5591
5591
|
setup(e, { emit: r }) {
|
|
5592
|
-
const n = e, l = r, a =
|
|
5592
|
+
const n = e, l = r, a = C(!1), t = C(!1), o = w({
|
|
5593
5593
|
get: () => n.modelValue,
|
|
5594
5594
|
set: (d) => l("update:modelValue", d)
|
|
5595
5595
|
}), i = w(() => n.modelValue.startsWith("data:image/svg+xml"));
|
|
5596
|
-
return
|
|
5596
|
+
return W(() => [a.value, o.value], (d, m) => {
|
|
5597
5597
|
d[0] && d[0] === m[0] && (a.value = !1);
|
|
5598
|
-
}),
|
|
5598
|
+
}), W(() => [t.value, o.value], (d, m) => {
|
|
5599
5599
|
d[0] && d[0] === m[0] && (t.value = !1);
|
|
5600
|
-
}),
|
|
5600
|
+
}), ne(() => {
|
|
5601
5601
|
}), (d, m) => e.modelValue ? (c(), g("div", Wi, [
|
|
5602
5602
|
s("div", Ui, [
|
|
5603
5603
|
s("div", ji, [
|
|
5604
|
-
a.value || t.value ? a.value ? (c(),
|
|
5604
|
+
a.value || t.value ? a.value ? (c(), U(zi, {
|
|
5605
5605
|
key: 1,
|
|
5606
5606
|
modelValue: o.value,
|
|
5607
5607
|
"onUpdate:modelValue": m[1] || (m[1] = (u) => o.value = u)
|
|
@@ -5609,11 +5609,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5609
5609
|
actions: _(() => [
|
|
5610
5610
|
s("button", {
|
|
5611
5611
|
class: "btn btn-outline-ccontrast",
|
|
5612
|
-
onClick: m[0] || (m[0] =
|
|
5612
|
+
onClick: m[0] || (m[0] = Z((u) => a.value = !1, ["prevent", "stop"]))
|
|
5613
5613
|
}, E(d.$t("common.cancel")), 1)
|
|
5614
5614
|
]),
|
|
5615
5615
|
_: 1
|
|
5616
|
-
}, 8, ["modelValue"])) : t.value ? (c(),
|
|
5616
|
+
}, 8, ["modelValue"])) : t.value ? (c(), U(Fi, {
|
|
5617
5617
|
key: 2,
|
|
5618
5618
|
modelValue: o.value,
|
|
5619
5619
|
"onUpdate:modelValue": m[3] || (m[3] = (u) => o.value = u),
|
|
@@ -5622,19 +5622,19 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5622
5622
|
actions: _(() => [
|
|
5623
5623
|
s("button", {
|
|
5624
5624
|
class: "btn btn-sm btn-outline-ccontrast",
|
|
5625
|
-
onClick: m[2] || (m[2] =
|
|
5625
|
+
onClick: m[2] || (m[2] = Z((u) => t.value = !1, ["prevent", "stop"]))
|
|
5626
5626
|
}, E(d.$t("common.cancel")), 1)
|
|
5627
5627
|
]),
|
|
5628
5628
|
_: 1
|
|
5629
|
-
}, 8, ["modelValue", "suggested-aspect-ratio"])) :
|
|
5629
|
+
}, 8, ["modelValue", "suggested-aspect-ratio"])) : B("", !0) : (c(), U(Te, {
|
|
5630
5630
|
key: 0,
|
|
5631
5631
|
ref: "targetImage",
|
|
5632
5632
|
class: "",
|
|
5633
5633
|
animate: !1,
|
|
5634
5634
|
src: e.modelValue
|
|
5635
5635
|
}, null, 8, ["src"])),
|
|
5636
|
-
i.value ? (c(), g("div", qi, E(d.$t("common.svgWarning")), 1)) :
|
|
5637
|
-
!t.value && !a.value ? (c(), g("hr", _i)) :
|
|
5636
|
+
i.value ? (c(), g("div", qi, E(d.$t("common.svgWarning")), 1)) : B("", !0),
|
|
5637
|
+
!t.value && !a.value ? (c(), g("hr", _i)) : B("", !0),
|
|
5638
5638
|
s("div", Ji, [
|
|
5639
5639
|
s("div", Gi, [
|
|
5640
5640
|
s("div", Yi, [
|
|
@@ -5642,29 +5642,29 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5642
5642
|
s("button", {
|
|
5643
5643
|
type: "button",
|
|
5644
5644
|
class: "btn btn-light",
|
|
5645
|
-
onClick: m[4] || (m[4] =
|
|
5645
|
+
onClick: m[4] || (m[4] = Z((u) => t.value = !t.value, ["prevent", "stop"]))
|
|
5646
5646
|
}, [
|
|
5647
|
-
|
|
5647
|
+
L(Q, { symbol: "crop" }),
|
|
5648
5648
|
s("span", Xi, E(d.$t("common.crop")), 1)
|
|
5649
5649
|
]),
|
|
5650
5650
|
s("button", {
|
|
5651
5651
|
type: "button",
|
|
5652
5652
|
class: "btn btn-light",
|
|
5653
|
-
onClick: m[5] || (m[5] =
|
|
5653
|
+
onClick: m[5] || (m[5] = Z((u) => a.value = !a.value, ["prevent", "stop"]))
|
|
5654
5654
|
}, [
|
|
5655
|
-
|
|
5655
|
+
L(Q, { symbol: "image-upscale" }),
|
|
5656
5656
|
s("span", Ki, E(d.$t("common.resize")), 1)
|
|
5657
5657
|
])
|
|
5658
|
-
])) :
|
|
5658
|
+
])) : B("", !0),
|
|
5659
5659
|
!t.value && !a.value ? (c(), g("div", eA, [
|
|
5660
5660
|
N(d.$slots, "submit")
|
|
5661
|
-
])) :
|
|
5661
|
+
])) : B("", !0)
|
|
5662
5662
|
])
|
|
5663
5663
|
])
|
|
5664
5664
|
])
|
|
5665
5665
|
])
|
|
5666
5666
|
])
|
|
5667
|
-
])) :
|
|
5667
|
+
])) : B("", !0);
|
|
5668
5668
|
}
|
|
5669
5669
|
}), aA = { class: "modal-dialog__content d-flex flex-column" }, nA = { class: "modal-dialog__header d-flex p-3 border-bottom" }, lA = {
|
|
5670
5670
|
key: 0,
|
|
@@ -5673,7 +5673,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5673
5673
|
}, oA = { class: "modal-dialog__body" }, iA = {
|
|
5674
5674
|
key: 0,
|
|
5675
5675
|
class: "modal-dialog__footer d-flex p-3 border-top"
|
|
5676
|
-
}, AA = /* @__PURE__ */
|
|
5676
|
+
}, AA = /* @__PURE__ */ O({
|
|
5677
5677
|
__name: "modal-dialog",
|
|
5678
5678
|
props: {
|
|
5679
5679
|
modelValue: {
|
|
@@ -5708,7 +5708,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5708
5708
|
},
|
|
5709
5709
|
emits: ["update:modelValue", "confirm", "cancel"],
|
|
5710
5710
|
setup(e, { expose: r, emit: n }) {
|
|
5711
|
-
const l = e, a = n, t =
|
|
5711
|
+
const l = e, a = n, t = C();
|
|
5712
5712
|
function o() {
|
|
5713
5713
|
document.documentElement.style.setProperty("--scroll-position", `${Math.round(document.documentElement.scrollTop)}px`), l.modal ? t.value?.showModal() : t.value?.show(), a("update:modelValue", !0);
|
|
5714
5714
|
}
|
|
@@ -5739,9 +5739,9 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5739
5739
|
const v = f.target;
|
|
5740
5740
|
v && v.nodeName === "DIALOG" && i();
|
|
5741
5741
|
}
|
|
5742
|
-
return
|
|
5742
|
+
return W(() => l.modelValue, (f, v) => {
|
|
5743
5743
|
f && f !== v ? o() : v && i();
|
|
5744
|
-
}, { immediate: !0 }),
|
|
5744
|
+
}, { immediate: !0 }), ne(() => {
|
|
5745
5745
|
t.value?.addEventListener("cancel", (f) => {
|
|
5746
5746
|
f.preventDefault(), i();
|
|
5747
5747
|
}), l.dismiss && document.addEventListener("click", A), l.modelValue && o();
|
|
@@ -5755,14 +5755,14 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5755
5755
|
}), (f, v) => (c(), g("dialog", {
|
|
5756
5756
|
ref_key: "dialog",
|
|
5757
5757
|
ref: t,
|
|
5758
|
-
class:
|
|
5758
|
+
class: V(["modal-dialog", {
|
|
5759
5759
|
[`modal-dialog--${e.size}`]: e.size
|
|
5760
5760
|
}]),
|
|
5761
5761
|
onClose: d
|
|
5762
5762
|
}, [
|
|
5763
5763
|
s("div", aA, [
|
|
5764
5764
|
s("div", nA, [
|
|
5765
|
-
e.title ? (c(), g("h5", lA, E(e.title), 1)) :
|
|
5765
|
+
e.title ? (c(), g("h5", lA, E(e.title), 1)) : B("", !0),
|
|
5766
5766
|
s("button", {
|
|
5767
5767
|
type: "button",
|
|
5768
5768
|
class: "btn-close ms-auto border-radius-none",
|
|
@@ -5780,7 +5780,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5780
5780
|
class: "btn ms-auto",
|
|
5781
5781
|
onClick: i
|
|
5782
5782
|
}, E(f.$t("common.close")), 1)
|
|
5783
|
-
])) :
|
|
5783
|
+
])) : B("", !0)
|
|
5784
5784
|
])
|
|
5785
5785
|
], 34));
|
|
5786
5786
|
}
|
|
@@ -5790,7 +5790,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5790
5790
|
}, dA = ["for"], cA = ["innerHTML"], mA = {
|
|
5791
5791
|
key: 0,
|
|
5792
5792
|
class: "image-upload__loading-spinner"
|
|
5793
|
-
}, fA = /* @__PURE__ */
|
|
5793
|
+
}, fA = /* @__PURE__ */ O({
|
|
5794
5794
|
__name: "image-upload",
|
|
5795
5795
|
props: {
|
|
5796
5796
|
modelValue: {
|
|
@@ -5885,7 +5885,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5885
5885
|
},
|
|
5886
5886
|
emits: ["update:modelValue", "update:src"],
|
|
5887
5887
|
setup(e, { emit: r }) {
|
|
5888
|
-
const n = e, l = r, a =
|
|
5888
|
+
const n = e, l = r, a = C(!1), t = C(null), o = C(null), i = C(null), {
|
|
5889
5889
|
pending: d,
|
|
5890
5890
|
files: m,
|
|
5891
5891
|
// dataUrls,
|
|
@@ -5894,66 +5894,66 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5894
5894
|
uploadFile: f,
|
|
5895
5895
|
setupDragAndDrop: v,
|
|
5896
5896
|
cleanupDragAndDrop: y
|
|
5897
|
-
} = It(n, l),
|
|
5897
|
+
} = It(n, l), $ = w(() => n.modelValue ? n.modelValue : n.src ? { type: "", src: n.src } : t.value);
|
|
5898
5898
|
function D() {
|
|
5899
5899
|
t.value = null, m.value = [], u.value = !1, l("update:modelValue", void 0), l("update:src", "");
|
|
5900
5900
|
}
|
|
5901
5901
|
function b() {
|
|
5902
5902
|
D();
|
|
5903
5903
|
}
|
|
5904
|
-
|
|
5904
|
+
W(() => m.value, async (T) => {
|
|
5905
5905
|
if (!T || !T.length || !T[0]) return;
|
|
5906
5906
|
u.value = !1;
|
|
5907
|
-
const
|
|
5907
|
+
const k = await Yt(T[0], n.maxImageWidth);
|
|
5908
5908
|
n.enableReview ? (o.value = {
|
|
5909
|
-
src: await Ke(
|
|
5910
|
-
type:
|
|
5909
|
+
src: await Ke(k),
|
|
5910
|
+
type: k.type
|
|
5911
5911
|
}, a.value = !0) : t.value = {
|
|
5912
|
-
src: n.toDataUrl ? await Ke(
|
|
5913
|
-
type:
|
|
5912
|
+
src: n.toDataUrl ? await Ke(k) : await f(k),
|
|
5913
|
+
type: k.type
|
|
5914
5914
|
};
|
|
5915
|
-
}),
|
|
5915
|
+
}), W(() => t.value, (T) => {
|
|
5916
5916
|
l("update:modelValue", T || void 0), l("update:src", T?.src || "");
|
|
5917
|
-
}),
|
|
5917
|
+
}), W(() => i.value, async (T) => {
|
|
5918
5918
|
T && (t.value = {
|
|
5919
5919
|
src: await f(T),
|
|
5920
5920
|
type: T.type
|
|
5921
5921
|
}, i.value = null);
|
|
5922
|
-
}),
|
|
5923
|
-
!T &&
|
|
5924
|
-
}),
|
|
5922
|
+
}), W(() => a.value, (T, k) => {
|
|
5923
|
+
!T && k && o.value && (o.value = null, b());
|
|
5924
|
+
}), W(() => n.src, (T) => {
|
|
5925
5925
|
!T && t.value && b();
|
|
5926
5926
|
});
|
|
5927
|
-
function h(T,
|
|
5928
|
-
o.value = { src: T, type:
|
|
5927
|
+
function h(T, k) {
|
|
5928
|
+
o.value = { src: T, type: k }, a.value = !0;
|
|
5929
5929
|
}
|
|
5930
|
-
async function
|
|
5930
|
+
async function M() {
|
|
5931
5931
|
o.value && (i.value = await St(
|
|
5932
5932
|
o.value.src,
|
|
5933
5933
|
"file",
|
|
5934
5934
|
o.value.type
|
|
5935
5935
|
)), o.value = null, a.value = !1;
|
|
5936
5936
|
}
|
|
5937
|
-
return
|
|
5937
|
+
return ne(() => {
|
|
5938
5938
|
v();
|
|
5939
5939
|
}), Be(() => {
|
|
5940
5940
|
y();
|
|
5941
|
-
}), (T,
|
|
5942
|
-
class:
|
|
5941
|
+
}), (T, k) => (c(), g("div", {
|
|
5942
|
+
class: V(["image-upload", {
|
|
5943
5943
|
"has-dragging": e.dropFiles,
|
|
5944
5944
|
"is-dragging": q(A)
|
|
5945
5945
|
}])
|
|
5946
5946
|
}, [
|
|
5947
|
-
!a.value &&
|
|
5947
|
+
!a.value && $.value ? (c(), g("div", {
|
|
5948
5948
|
key: 0,
|
|
5949
|
-
class:
|
|
5949
|
+
class: V(["mb-2", e.enablePreview ? "image-upload__thumbnail" : "image-upload__reset"])
|
|
5950
5950
|
}, [
|
|
5951
|
-
e.enablePreview ? (c(), g(
|
|
5952
|
-
|
|
5953
|
-
src: `${
|
|
5951
|
+
e.enablePreview ? (c(), g(ae, { key: 0 }, [
|
|
5952
|
+
L(Te, {
|
|
5953
|
+
src: `${$.value.src}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
|
|
5954
5954
|
class: "img-thumbnail rounded",
|
|
5955
5955
|
ready: q(u),
|
|
5956
|
-
"onUpdate:ready":
|
|
5956
|
+
"onUpdate:ready": k[0] || (k[0] = (z) => nt(u) ? u.value = z : null),
|
|
5957
5957
|
animate: !1,
|
|
5958
5958
|
style: Se({ maxWidth: e.previewWidth ? `${e.previewWidth}px` : "auto", height: "auto" })
|
|
5959
5959
|
}, null, 8, ["src", "ready", "style"]),
|
|
@@ -5961,39 +5961,39 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5961
5961
|
s("div", rA, [
|
|
5962
5962
|
s("button", {
|
|
5963
5963
|
type: "button",
|
|
5964
|
-
onClick:
|
|
5964
|
+
onClick: k[1] || (k[1] = Z((z) => h($.value.src, $.value.type), ["prevent", "stop"])),
|
|
5965
5965
|
class: "btn btn--edit btn-sm btn-light"
|
|
5966
5966
|
}, [
|
|
5967
|
-
|
|
5967
|
+
L(Q, { symbol: "edit-2" })
|
|
5968
5968
|
]),
|
|
5969
5969
|
s("button", {
|
|
5970
5970
|
type: "button",
|
|
5971
|
-
onClick:
|
|
5971
|
+
onClick: k[2] || (k[2] = Z((z) => D(), ["prevent", "stop"])),
|
|
5972
5972
|
class: "btn btn--close btn-sm btn-light"
|
|
5973
5973
|
}, [
|
|
5974
|
-
|
|
5974
|
+
L(Q, { symbol: "x" })
|
|
5975
5975
|
])
|
|
5976
5976
|
])
|
|
5977
5977
|
])
|
|
5978
5978
|
], 64)) : (c(), g("div", uA, [
|
|
5979
5979
|
s("button", {
|
|
5980
|
-
onClick:
|
|
5980
|
+
onClick: k[3] || (k[3] = Z((z) => D(), ["prevent", "stop"])),
|
|
5981
5981
|
class: "btn btn--close btn-outline-contrast"
|
|
5982
5982
|
}, [
|
|
5983
|
-
|
|
5983
|
+
L(Q, { symbol: "x" })
|
|
5984
5984
|
])
|
|
5985
5985
|
]))
|
|
5986
|
-
], 2)) :
|
|
5987
|
-
|
|
5986
|
+
], 2)) : B("", !0),
|
|
5987
|
+
L(Mt, {
|
|
5988
5988
|
modelValue: q(m),
|
|
5989
|
-
"onUpdate:modelValue":
|
|
5989
|
+
"onUpdate:modelValue": k[4] || (k[4] = (z) => nt(m) ? m.value = z : null),
|
|
5990
5990
|
id: e.id,
|
|
5991
5991
|
name: e.name,
|
|
5992
5992
|
accept: e.accept,
|
|
5993
5993
|
"max-file-size": e.maxFileSize,
|
|
5994
5994
|
class: "d-none"
|
|
5995
5995
|
}, null, 8, ["modelValue", "id", "name", "accept", "max-file-size"]),
|
|
5996
|
-
e.src ?
|
|
5996
|
+
e.src ? B("", !0) : (c(), g("label", {
|
|
5997
5997
|
key: 1,
|
|
5998
5998
|
for: e.id,
|
|
5999
5999
|
class: "image-upload__label"
|
|
@@ -6004,40 +6004,40 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6004
6004
|
innerHTML: e.label || T.$t("common.selectFile")
|
|
6005
6005
|
}, null, 8, cA)
|
|
6006
6006
|
]),
|
|
6007
|
-
|
|
6007
|
+
L(tt, { name: "fade" }, {
|
|
6008
6008
|
default: _(() => [
|
|
6009
|
-
q(d) ? (c(), g("span", mA, [...
|
|
6009
|
+
q(d) ? (c(), g("span", mA, [...k[7] || (k[7] = [
|
|
6010
6010
|
s("span", {
|
|
6011
6011
|
class: "spinner-border",
|
|
6012
6012
|
role: "status"
|
|
6013
6013
|
}, [
|
|
6014
6014
|
s("span", { class: "visually-hidden" }, "Loading...")
|
|
6015
6015
|
], -1)
|
|
6016
|
-
])])) :
|
|
6016
|
+
])])) : B("", !0)
|
|
6017
6017
|
]),
|
|
6018
6018
|
_: 1
|
|
6019
6019
|
})
|
|
6020
6020
|
], 8, dA)),
|
|
6021
|
-
|
|
6021
|
+
L(AA, {
|
|
6022
6022
|
modelValue: a.value,
|
|
6023
|
-
"onUpdate:modelValue":
|
|
6023
|
+
"onUpdate:modelValue": k[6] || (k[6] = (z) => a.value = z),
|
|
6024
6024
|
footer: !1
|
|
6025
6025
|
}, {
|
|
6026
6026
|
default: _(() => [
|
|
6027
|
-
a.value && o.value ? (c(),
|
|
6027
|
+
a.value && o.value ? (c(), U(tA, {
|
|
6028
6028
|
key: 0,
|
|
6029
6029
|
modelValue: o.value.src,
|
|
6030
|
-
"onUpdate:modelValue":
|
|
6030
|
+
"onUpdate:modelValue": k[5] || (k[5] = (z) => o.value.src = z),
|
|
6031
6031
|
"aspect-ratio": e.aspectRatio
|
|
6032
6032
|
}, {
|
|
6033
6033
|
submit: _(() => [
|
|
6034
6034
|
s("button", {
|
|
6035
6035
|
class: "btn btn-primary",
|
|
6036
|
-
onClick:
|
|
6036
|
+
onClick: Z(M, ["prevent", "stop"])
|
|
6037
6037
|
}, E(T.$t("common.save")), 1)
|
|
6038
6038
|
]),
|
|
6039
6039
|
_: 1
|
|
6040
|
-
}, 8, ["modelValue", "aspect-ratio"])) :
|
|
6040
|
+
}, 8, ["modelValue", "aspect-ratio"])) : B("", !0)
|
|
6041
6041
|
]),
|
|
6042
6042
|
_: 1
|
|
6043
6043
|
}, 8, ["modelValue"])
|
|
@@ -6049,7 +6049,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6049
6049
|
}, $A = {
|
|
6050
6050
|
role: "button",
|
|
6051
6051
|
class: "img-thumbnail d-flex justify-content-center align-items-center"
|
|
6052
|
-
}, CA = /* @__PURE__ */
|
|
6052
|
+
}, CA = /* @__PURE__ */ O({
|
|
6053
6053
|
__name: "upload-group",
|
|
6054
6054
|
props: {
|
|
6055
6055
|
modelValue: {
|
|
@@ -6116,7 +6116,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6116
6116
|
},
|
|
6117
6117
|
emits: ["update:modelValue"],
|
|
6118
6118
|
setup(e, { emit: r }) {
|
|
6119
|
-
const n = e, l = r, a =
|
|
6119
|
+
const n = e, l = r, a = C(""), t = w({
|
|
6120
6120
|
get() {
|
|
6121
6121
|
return n.modelValue;
|
|
6122
6122
|
},
|
|
@@ -6127,15 +6127,15 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6127
6127
|
function o(i) {
|
|
6128
6128
|
t.value.splice(i, 1), l("update:modelValue", t.value);
|
|
6129
6129
|
}
|
|
6130
|
-
return
|
|
6131
|
-
i && d !== i && (l("update:modelValue", [...t.value, i]), await
|
|
6130
|
+
return W(a, async (i, d) => {
|
|
6131
|
+
i && d !== i && (l("update:modelValue", [...t.value, i]), await Fe(), a.value = "");
|
|
6132
6132
|
}), (i, d) => (c(), g("div", gA, [
|
|
6133
6133
|
e.label ? (c(), g("label", {
|
|
6134
6134
|
key: 0,
|
|
6135
6135
|
innerHTML: q(re)(e.label)
|
|
6136
|
-
}, null, 8, vA)) :
|
|
6136
|
+
}, null, 8, vA)) : B("", !0),
|
|
6137
6137
|
s("div", pA, [
|
|
6138
|
-
|
|
6138
|
+
L($i, {
|
|
6139
6139
|
modelValue: t.value,
|
|
6140
6140
|
"onUpdate:modelValue": d[2] || (d[2] = (m) => t.value = m),
|
|
6141
6141
|
vertical: !1,
|
|
@@ -6148,15 +6148,15 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6148
6148
|
class: "img-thumbnail"
|
|
6149
6149
|
}, null, 8, yA),
|
|
6150
6150
|
s("button", {
|
|
6151
|
-
onClick:
|
|
6151
|
+
onClick: Z((A) => o(u), ["prevent"]),
|
|
6152
6152
|
class: "btn btn--close"
|
|
6153
6153
|
}, [
|
|
6154
|
-
|
|
6154
|
+
L(Q, { symbol: "x" })
|
|
6155
6155
|
], 8, bA)
|
|
6156
6156
|
])
|
|
6157
6157
|
]),
|
|
6158
6158
|
"list-append": _(() => [
|
|
6159
|
-
e.useImageUpload ? (c(),
|
|
6159
|
+
e.useImageUpload ? (c(), U(fA, {
|
|
6160
6160
|
key: 0,
|
|
6161
6161
|
src: a.value,
|
|
6162
6162
|
"onUpdate:src": d[0] || (d[0] = (m) => a.value = m),
|
|
@@ -6174,11 +6174,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6174
6174
|
}, {
|
|
6175
6175
|
button: _(() => [
|
|
6176
6176
|
s("span", wA, [
|
|
6177
|
-
|
|
6177
|
+
L(Q, { symbol: "plus" })
|
|
6178
6178
|
])
|
|
6179
6179
|
]),
|
|
6180
6180
|
_: 1
|
|
6181
|
-
}, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (c(),
|
|
6181
|
+
}, 8, ["src", "endpoint", "custom-fetch", "to-data-url", "auth-token", "disabled", "base-response-path", "accept", "max-file-size", "max-image-width", "aspect-ratio"])) : (c(), U(vi, {
|
|
6182
6182
|
key: 1,
|
|
6183
6183
|
src: a.value,
|
|
6184
6184
|
"onUpdate:src": d[1] || (d[1] = (m) => a.value = m),
|
|
@@ -6195,7 +6195,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6195
6195
|
}, {
|
|
6196
6196
|
button: _(() => [
|
|
6197
6197
|
s("span", $A, [
|
|
6198
|
-
|
|
6198
|
+
L(Q, { symbol: "plus" })
|
|
6199
6199
|
])
|
|
6200
6200
|
]),
|
|
6201
6201
|
_: 1
|
|
@@ -6206,7 +6206,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6206
6206
|
])
|
|
6207
6207
|
]));
|
|
6208
6208
|
}
|
|
6209
|
-
}), SA = { class: "asset-uploader" }, kA = ["innerHTML"],
|
|
6209
|
+
}), SA = { class: "asset-uploader" }, kA = ["innerHTML"], Or = /* @__PURE__ */ O({
|
|
6210
6210
|
__name: "asset-uploader",
|
|
6211
6211
|
props: {
|
|
6212
6212
|
modelValue: {
|
|
@@ -6305,8 +6305,8 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6305
6305
|
e.label ? (c(), g("label", {
|
|
6306
6306
|
key: 0,
|
|
6307
6307
|
innerHTML: q(re)(e.label)
|
|
6308
|
-
}, null, 8, kA)) :
|
|
6309
|
-
|
|
6308
|
+
}, null, 8, kA)) : B("", !0),
|
|
6309
|
+
L(CA, {
|
|
6310
6310
|
modelValue: a.value,
|
|
6311
6311
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
6312
6312
|
endpoint: e.endpoint,
|
|
@@ -6325,7 +6325,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6325
6325
|
}
|
|
6326
6326
|
}), BA = "https://router.project-osrm.org/route/v1";
|
|
6327
6327
|
function MA() {
|
|
6328
|
-
const e =
|
|
6328
|
+
const e = C([]), r = C(null), n = C(null), l = C([]), a = C(!1), t = C(""), o = w(() => e.value.length > 1);
|
|
6329
6329
|
function i() {
|
|
6330
6330
|
e.value = [], r.value = null, n.value = null, l.value = [], t.value = "";
|
|
6331
6331
|
}
|
|
@@ -6350,8 +6350,8 @@ function MA() {
|
|
|
6350
6350
|
if (!D)
|
|
6351
6351
|
throw new Error("No route available for these points.");
|
|
6352
6352
|
return e.value = Array.isArray(D?.geometry?.coordinates) ? D.geometry.coordinates.map((b) => [Number(b[1]), Number(b[0])]).filter((b) => Number.isFinite(b[0]) && Number.isFinite(b[1])) : [], r.value = Number.isFinite(D?.distance) ? Number(D.distance) : null, n.value = Number.isFinite(D?.duration) ? Number(D.duration) : null, l.value = Array.isArray(D?.legs) ? D.legs.flatMap((b) => Array.isArray(b?.steps) ? b.steps.map((h) => LA(h)) : []) : [], t.value = "", D;
|
|
6353
|
-
} catch (
|
|
6354
|
-
return i(), t.value =
|
|
6353
|
+
} catch ($) {
|
|
6354
|
+
return i(), t.value = $?.message || "Unable to load directions right now.", null;
|
|
6355
6355
|
} finally {
|
|
6356
6356
|
a.value = !1;
|
|
6357
6357
|
}
|
|
@@ -6382,7 +6382,7 @@ function IA(e) {
|
|
|
6382
6382
|
}
|
|
6383
6383
|
const DA = "https://nominatim.openstreetmap.org/search", VA = "https://nominatim.openstreetmap.org/reverse";
|
|
6384
6384
|
function PA() {
|
|
6385
|
-
const e =
|
|
6385
|
+
const e = C([]), r = C(!1), n = C("");
|
|
6386
6386
|
function l() {
|
|
6387
6387
|
e.value = [], n.value = "";
|
|
6388
6388
|
}
|
|
@@ -6461,7 +6461,7 @@ function yt(e, r, n) {
|
|
|
6461
6461
|
};
|
|
6462
6462
|
}
|
|
6463
6463
|
function xA(e = {}) {
|
|
6464
|
-
const r =
|
|
6464
|
+
const r = C(null), n = C(""), l = C(!1), a = C(!1), t = typeof window < "u" && typeof navigator < "u" && "geolocation" in navigator, o = {
|
|
6465
6465
|
enableHighAccuracy: !0,
|
|
6466
6466
|
timeout: 1e4,
|
|
6467
6467
|
maximumAge: 1e4,
|
|
@@ -6534,7 +6534,7 @@ const EA = {
|
|
|
6534
6534
|
key: 1,
|
|
6535
6535
|
class: "location-finder__notice",
|
|
6536
6536
|
"data-testid": "location-finder-error"
|
|
6537
|
-
},
|
|
6537
|
+
}, HA = { class: "location-finder__map-panel" }, QA = ["aria-label"], OA = { class: "location-finder__legend-item" }, RA = { class: "location-finder__legend-item" }, FA = { class: "location-finder__legend-item" }, WA = { class: "location-finder__legend-item" }, UA = {
|
|
6538
6538
|
key: 0,
|
|
6539
6539
|
class: "location-finder__sidebar"
|
|
6540
6540
|
}, jA = {
|
|
@@ -6550,7 +6550,7 @@ const EA = {
|
|
|
6550
6550
|
}, es = { key: 0 }, ts = {
|
|
6551
6551
|
key: 2,
|
|
6552
6552
|
class: "location-finder__summary-copy"
|
|
6553
|
-
},
|
|
6553
|
+
}, Rr = /* @__PURE__ */ O({
|
|
6554
6554
|
__name: "location-finder",
|
|
6555
6555
|
props: {
|
|
6556
6556
|
modelValue: {
|
|
@@ -6757,159 +6757,159 @@ const EA = {
|
|
|
6757
6757
|
userLocationLabel: "Your location",
|
|
6758
6758
|
pinnedLocationTitle: "Pinned location",
|
|
6759
6759
|
selectedLocationLabel: "Selected location"
|
|
6760
|
-
}, a = e, t = r, { t: o, te: i } = At({ useScope: "global" }), d = xA(), m = PA(), u = MA(), A =
|
|
6761
|
-
searchLabel:
|
|
6762
|
-
searchPlaceholder:
|
|
6763
|
-
resultsLabel:
|
|
6764
|
-
emptyText:
|
|
6765
|
-
locateButtonLabel:
|
|
6766
|
-
stopTrackingLabel:
|
|
6767
|
-
mapHelperText:
|
|
6768
|
-
directionsTitle:
|
|
6769
|
-
directionsEmptyText:
|
|
6770
|
-
distanceLabel:
|
|
6771
|
-
durationLabel:
|
|
6772
|
-
loadingRoute:
|
|
6773
|
-
legendAriaLabel:
|
|
6774
|
-
legendLocations:
|
|
6775
|
-
legendSelected:
|
|
6776
|
-
legendSearchResult:
|
|
6777
|
-
userLocationLabel:
|
|
6778
|
-
pinnedLocationTitle:
|
|
6779
|
-
selectedLocationLabel:
|
|
6780
|
-
})), Me = w(() => v.value ?
|
|
6781
|
-
|
|
6782
|
-
const
|
|
6783
|
-
|
|
6784
|
-
const J =
|
|
6760
|
+
}, a = e, t = r, { t: o, te: i } = At({ useScope: "global" }), d = xA(), m = PA(), u = MA(), A = C(""), f = C(oe(P(a.modelValue))), v = C(oe(P(a.modelValue)) ? null : P(a.modelValue)), y = C(X(a.modelValue) || X(a.center) || X(a.locations[0]) || n), $ = C(!1), D = w(() => X(a.userLocation)), b = w(() => d.position.value || D.value), h = w(() => X(v.value)), M = w(() => X(f.value)), T = w(() => b.value || h.value), k = w(() => !T.value || !M.value ? null : qe(T.value, M.value)), z = w(() => X(a.modelValue) || h.value || M.value), K = w(() => d.error.value || m.error.value || u.error.value || ""), ge = w(() => a.showSearch || a.trackUser && a.showTrackButton), me = w(() => a.enableDirections && a.showDirectionsSummary), $e = w(() => a.showSidebar || me.value), ve = w(() => Oe(u.distanceMeters.value)), Ie = w(() => _e(u.durationSeconds.value)), Y = w(() => ({
|
|
6761
|
+
searchLabel: te("searchLabel", a.searchLabel),
|
|
6762
|
+
searchPlaceholder: te("searchPlaceholder", a.searchPlaceholder),
|
|
6763
|
+
resultsLabel: te("resultsLabel", a.resultsLabel),
|
|
6764
|
+
emptyText: te("emptyText", a.emptyText),
|
|
6765
|
+
locateButtonLabel: te("locateButtonLabel", a.locateButtonLabel),
|
|
6766
|
+
stopTrackingLabel: te("stopTrackingLabel", a.stopTrackingLabel),
|
|
6767
|
+
mapHelperText: te("mapHelperText", a.mapHelperText),
|
|
6768
|
+
directionsTitle: te("directionsTitle", a.directionsTitle),
|
|
6769
|
+
directionsEmptyText: te("directionsEmptyText", a.directionsEmptyText),
|
|
6770
|
+
distanceLabel: te("distanceLabel", a.distanceLabel),
|
|
6771
|
+
durationLabel: te("durationLabel", a.durationLabel),
|
|
6772
|
+
loadingRoute: te("loadingRoute"),
|
|
6773
|
+
legendAriaLabel: te("legendAriaLabel"),
|
|
6774
|
+
legendLocations: te("legendLocations"),
|
|
6775
|
+
legendSelected: te("legendSelected"),
|
|
6776
|
+
legendSearchResult: te("legendSearchResult"),
|
|
6777
|
+
userLocationLabel: te("userLocationLabel"),
|
|
6778
|
+
pinnedLocationTitle: te("pinnedLocationTitle"),
|
|
6779
|
+
selectedLocationLabel: te("selectedLocationLabel")
|
|
6780
|
+
})), Me = w(() => v.value ? Pe(v.value) : Y.value.selectedLocationLabel), I = w(() => d.isTracking.value && $.value ? Y.value.stopTrackingLabel : Y.value.locateButtonLabel);
|
|
6781
|
+
W(() => a.modelValue, (p) => {
|
|
6782
|
+
const S = P(p), x = oe(S);
|
|
6783
|
+
x ? (f.value = x, v.value = null) : S && (v.value = S);
|
|
6784
|
+
const J = X(p);
|
|
6785
6785
|
J && (y.value = J);
|
|
6786
|
-
}, { immediate: !0 }),
|
|
6787
|
-
const
|
|
6788
|
-
|
|
6789
|
-
}, { deep: !0 }),
|
|
6790
|
-
p &&
|
|
6791
|
-
}, { deep: !0 }),
|
|
6786
|
+
}, { immediate: !0 }), W(() => a.center, (p) => {
|
|
6787
|
+
const S = X(p);
|
|
6788
|
+
S && (y.value = S);
|
|
6789
|
+
}, { deep: !0 }), W(b, (p) => {
|
|
6790
|
+
p && $.value && (y.value = p);
|
|
6791
|
+
}, { deep: !0 }), W(k, (p) => {
|
|
6792
6792
|
t("update:distance", p);
|
|
6793
|
-
}, { immediate: !0 }),
|
|
6793
|
+
}, { immediate: !0 }), W(A, async (p) => {
|
|
6794
6794
|
if (t("search", p), !a.enableGeocoding) {
|
|
6795
6795
|
m.clearResults();
|
|
6796
6796
|
return;
|
|
6797
6797
|
}
|
|
6798
|
-
const
|
|
6799
|
-
if (
|
|
6798
|
+
const S = p.trim();
|
|
6799
|
+
if (S.length < a.geocodingMinQueryLength) {
|
|
6800
6800
|
m.clearResults();
|
|
6801
6801
|
return;
|
|
6802
6802
|
}
|
|
6803
|
-
await m.search(
|
|
6803
|
+
await m.search(S, {
|
|
6804
6804
|
endpoint: a.geocodingEndpoint,
|
|
6805
6805
|
customFetch: a.customGeocodingFetch,
|
|
6806
6806
|
limit: a.geocodingLimit
|
|
6807
6807
|
});
|
|
6808
|
-
}),
|
|
6808
|
+
}), W(
|
|
6809
6809
|
() => ({
|
|
6810
6810
|
enabled: a.enableDirections,
|
|
6811
6811
|
origin: b.value,
|
|
6812
6812
|
destination: z.value,
|
|
6813
6813
|
profile: a.routeProfile
|
|
6814
6814
|
}),
|
|
6815
|
-
async ({ enabled: p, origin:
|
|
6816
|
-
if (!p || !
|
|
6815
|
+
async ({ enabled: p, origin: S, destination: x, profile: J }) => {
|
|
6816
|
+
if (!p || !S || !x || de(S, x)) {
|
|
6817
6817
|
u.clearRoute();
|
|
6818
6818
|
return;
|
|
6819
6819
|
}
|
|
6820
|
-
await u.fetchRoute(
|
|
6820
|
+
await u.fetchRoute(S, x, {
|
|
6821
6821
|
endpoint: a.directionsEndpoint,
|
|
6822
6822
|
profile: J,
|
|
6823
6823
|
customFetch: a.customDirectionsFetch
|
|
6824
6824
|
});
|
|
6825
6825
|
},
|
|
6826
6826
|
{ immediate: !0, deep: !0 }
|
|
6827
|
-
),
|
|
6827
|
+
), ne(async () => {
|
|
6828
6828
|
a.autoLocate && a.trackUser && await Le();
|
|
6829
6829
|
});
|
|
6830
|
-
const
|
|
6831
|
-
const p =
|
|
6832
|
-
return p ? a.locations.filter((
|
|
6833
|
-
}),
|
|
6830
|
+
const R = w(() => {
|
|
6831
|
+
const p = He(A.value).trim();
|
|
6832
|
+
return p ? a.locations.filter((S) => [Pe(S), je(S)].filter(Boolean).some((x) => He(x).includes(p))) : a.locations;
|
|
6833
|
+
}), H = w(() => m.results.value.map((p) => ({
|
|
6834
6834
|
id: p.id,
|
|
6835
6835
|
title: p.title,
|
|
6836
6836
|
address: p.address,
|
|
6837
6837
|
lat: p.lat,
|
|
6838
6838
|
lng: p.lng,
|
|
6839
6839
|
source: p.source
|
|
6840
|
-
}))),
|
|
6840
|
+
}))), G = w(() => {
|
|
6841
6841
|
if (!A.value.trim())
|
|
6842
6842
|
return a.locations;
|
|
6843
|
-
const p =
|
|
6843
|
+
const p = R.value;
|
|
6844
6844
|
return p.length ? p : a.locations;
|
|
6845
|
-
}),
|
|
6846
|
-
|
|
6847
|
-
a.enableGeocoding ?
|
|
6848
|
-
)),
|
|
6849
|
-
() =>
|
|
6850
|
-
const
|
|
6851
|
-
return
|
|
6852
|
-
id:
|
|
6853
|
-
label:
|
|
6854
|
-
...
|
|
6855
|
-
type:
|
|
6845
|
+
}), ee = w(() => G.value), De = w(() => fe(
|
|
6846
|
+
G.value,
|
|
6847
|
+
a.enableGeocoding ? H.value : []
|
|
6848
|
+
)), ze = w(() => Array.from(new Set(De.value.map((p) => ie(p))))), Ne = w(
|
|
6849
|
+
() => ee.value.map((p) => {
|
|
6850
|
+
const S = X(p);
|
|
6851
|
+
return S ? {
|
|
6852
|
+
id: F(p),
|
|
6853
|
+
label: Pe(p),
|
|
6854
|
+
...S,
|
|
6855
|
+
type: M.value && de(S, M.value) ? "selected" : "list"
|
|
6856
6856
|
} : null;
|
|
6857
6857
|
}).filter((p) => !!p)
|
|
6858
|
-
),
|
|
6859
|
-
function
|
|
6860
|
-
const
|
|
6861
|
-
if (typeof
|
|
6862
|
-
return
|
|
6863
|
-
if (typeof
|
|
6864
|
-
return
|
|
6858
|
+
), Ve = w(() => $.value && b.value ? b.value : y.value || z.value || b.value || X(ee.value[0]) || n);
|
|
6859
|
+
function te(p, S) {
|
|
6860
|
+
const x = a.messages?.[p];
|
|
6861
|
+
if (typeof x == "string" && x.trim())
|
|
6862
|
+
return x;
|
|
6863
|
+
if (typeof S == "string" && S.trim())
|
|
6864
|
+
return S;
|
|
6865
6865
|
const J = `locationFinder.${String(p)}`;
|
|
6866
6866
|
return i(J) ? String(o(J)) : l[p];
|
|
6867
6867
|
}
|
|
6868
|
-
function
|
|
6868
|
+
function X(p) {
|
|
6869
6869
|
if (!p)
|
|
6870
6870
|
return null;
|
|
6871
|
-
const
|
|
6872
|
-
return !Number.isFinite(
|
|
6871
|
+
const S = Number(p.lat), x = Number(p.lng);
|
|
6872
|
+
return !Number.isFinite(S) || !Number.isFinite(x) ? null : { lat: S, lng: x };
|
|
6873
6873
|
}
|
|
6874
|
-
function
|
|
6874
|
+
function P(p) {
|
|
6875
6875
|
if (!p)
|
|
6876
6876
|
return null;
|
|
6877
|
-
const
|
|
6878
|
-
return
|
|
6877
|
+
const S = X(p);
|
|
6878
|
+
return S ? {
|
|
6879
6879
|
...p,
|
|
6880
|
-
...
|
|
6880
|
+
...S
|
|
6881
6881
|
} : null;
|
|
6882
6882
|
}
|
|
6883
|
-
function
|
|
6883
|
+
function F(p) {
|
|
6884
6884
|
return p ? typeof p != "object" ? p : p.id ?? p.value ?? ie(p) : null;
|
|
6885
6885
|
}
|
|
6886
6886
|
function oe(p) {
|
|
6887
|
-
return p && a.locations.find((
|
|
6887
|
+
return p && a.locations.find((S) => F(S) === F(p) || de(X(S), X(p))) || null;
|
|
6888
6888
|
}
|
|
6889
|
-
function
|
|
6889
|
+
function He(p) {
|
|
6890
6890
|
return `${p ?? ""}`.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
6891
6891
|
}
|
|
6892
|
-
function
|
|
6892
|
+
function Pe(p) {
|
|
6893
6893
|
return `${p.title || p.label || p.name || "Location"}`;
|
|
6894
6894
|
}
|
|
6895
6895
|
function je(p) {
|
|
6896
6896
|
return `${p.address || p.description || p.subtitle || ""}`;
|
|
6897
6897
|
}
|
|
6898
6898
|
function ie(p) {
|
|
6899
|
-
const
|
|
6900
|
-
return
|
|
6899
|
+
const S = Pe(p), x = je(p);
|
|
6900
|
+
return x ? `${S} — ${x}` : S;
|
|
6901
6901
|
}
|
|
6902
|
-
function fe(p,
|
|
6903
|
-
const
|
|
6904
|
-
return
|
|
6905
|
-
|
|
6906
|
-
}),
|
|
6902
|
+
function fe(p, S) {
|
|
6903
|
+
const x = [...p];
|
|
6904
|
+
return S.forEach((J) => {
|
|
6905
|
+
x.some((Je) => F(Je) === F(J) || de(X(Je), X(J))) || x.push(J);
|
|
6906
|
+
}), x;
|
|
6907
6907
|
}
|
|
6908
|
-
function
|
|
6909
|
-
return !p || !
|
|
6908
|
+
function de(p, S) {
|
|
6909
|
+
return !p || !S ? !1 : Math.abs(p.lat - S.lat) < 1e-6 && Math.abs(p.lng - S.lng) < 1e-6;
|
|
6910
6910
|
}
|
|
6911
|
-
function qe(p,
|
|
6912
|
-
const
|
|
6911
|
+
function qe(p, S) {
|
|
6912
|
+
const x = (xt) => xt * (Math.PI / 180), Qe = x(S.lat - p.lat), Je = x(S.lng - p.lng), Dt = x(p.lat), Vt = x(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
6913
|
return Math.round(6371e3 * Pt);
|
|
6914
6914
|
}
|
|
6915
6915
|
function Oe(p) {
|
|
@@ -6918,128 +6918,128 @@ const EA = {
|
|
|
6918
6918
|
function _e(p) {
|
|
6919
6919
|
if (p === null || !Number.isFinite(p))
|
|
6920
6920
|
return "—";
|
|
6921
|
-
const
|
|
6922
|
-
if (
|
|
6923
|
-
return `${
|
|
6924
|
-
const
|
|
6925
|
-
return J ? `${
|
|
6921
|
+
const S = Math.max(1, Math.round(p / 60));
|
|
6922
|
+
if (S < 60)
|
|
6923
|
+
return `${S} min`;
|
|
6924
|
+
const x = Math.floor(S / 60), J = S % 60;
|
|
6925
|
+
return J ? `${x} h ${J} min` : `${x} h`;
|
|
6926
6926
|
}
|
|
6927
6927
|
function be(p) {
|
|
6928
|
-
const
|
|
6929
|
-
if (
|
|
6928
|
+
const S = P(p), x = oe(S);
|
|
6929
|
+
if ($.value = !1, !S) {
|
|
6930
6930
|
t("update:modelValue", null);
|
|
6931
6931
|
return;
|
|
6932
6932
|
}
|
|
6933
|
-
f.value =
|
|
6934
|
-
const J =
|
|
6935
|
-
J && (y.value = J), t("update:modelValue",
|
|
6933
|
+
f.value = x || S;
|
|
6934
|
+
const J = X(S);
|
|
6935
|
+
J && (y.value = J), t("update:modelValue", S), t("select", S);
|
|
6936
6936
|
}
|
|
6937
|
-
function
|
|
6938
|
-
const
|
|
6939
|
-
if (
|
|
6937
|
+
function Re(p) {
|
|
6938
|
+
const S = P(p), x = oe(S);
|
|
6939
|
+
if ($.value = !1, !S) {
|
|
6940
6940
|
t("update:modelValue", null);
|
|
6941
6941
|
return;
|
|
6942
6942
|
}
|
|
6943
|
-
|
|
6944
|
-
const J =
|
|
6945
|
-
J && (y.value = J), t("update:modelValue",
|
|
6946
|
-
}
|
|
6947
|
-
function
|
|
6948
|
-
const
|
|
6949
|
-
if (
|
|
6950
|
-
if (oe(
|
|
6951
|
-
be(
|
|
6943
|
+
x ? (f.value = x, v.value = null) : v.value = S;
|
|
6944
|
+
const J = X(S);
|
|
6945
|
+
J && (y.value = J), t("update:modelValue", S), t("select", S);
|
|
6946
|
+
}
|
|
6947
|
+
function pe(p) {
|
|
6948
|
+
const S = De.value.find((x) => ie(x) === p || Pe(x) === p);
|
|
6949
|
+
if (S) {
|
|
6950
|
+
if (oe(S)) {
|
|
6951
|
+
be(S), v.value = null;
|
|
6952
6952
|
return;
|
|
6953
6953
|
}
|
|
6954
|
-
|
|
6954
|
+
Re(S);
|
|
6955
6955
|
}
|
|
6956
6956
|
}
|
|
6957
6957
|
function we(p) {
|
|
6958
6958
|
be(p);
|
|
6959
6959
|
}
|
|
6960
|
-
function
|
|
6960
|
+
function le(p) {
|
|
6961
6961
|
if (p.id === "user-location" && b.value) {
|
|
6962
|
-
y.value = b.value,
|
|
6962
|
+
y.value = b.value, $.value = !0, t("track-user", b.value);
|
|
6963
6963
|
return;
|
|
6964
6964
|
}
|
|
6965
|
-
const
|
|
6966
|
-
const J =
|
|
6965
|
+
const S = ee.value.find((x) => F(x) === p.id) || ee.value.find((x) => {
|
|
6966
|
+
const J = X(x);
|
|
6967
6967
|
return J && Math.abs(J.lat - p.lat) < 1e-6 && Math.abs(J.lng - p.lng) < 1e-6;
|
|
6968
6968
|
});
|
|
6969
|
-
if (
|
|
6970
|
-
be(
|
|
6969
|
+
if (S) {
|
|
6970
|
+
be(S);
|
|
6971
6971
|
return;
|
|
6972
6972
|
}
|
|
6973
|
-
v.value && (
|
|
6973
|
+
v.value && (F(v.value) === p.id || de(X(v.value), { lat: p.lat, lng: p.lng })) && Re(v.value);
|
|
6974
6974
|
}
|
|
6975
|
-
async function
|
|
6976
|
-
if (y.value = p,
|
|
6975
|
+
async function he(p) {
|
|
6976
|
+
if (y.value = p, $.value = !1, !a.interactive)
|
|
6977
6977
|
return;
|
|
6978
|
-
const
|
|
6979
|
-
const
|
|
6980
|
-
return
|
|
6978
|
+
const S = ee.value.find((J) => {
|
|
6979
|
+
const Qe = X(J);
|
|
6980
|
+
return Qe && Math.abs(Qe.lat - p.lat) < 1e-6 && Math.abs(Qe.lng - p.lng) < 1e-6;
|
|
6981
6981
|
});
|
|
6982
|
-
if (
|
|
6983
|
-
be(
|
|
6982
|
+
if (S) {
|
|
6983
|
+
be(S);
|
|
6984
6984
|
return;
|
|
6985
6985
|
}
|
|
6986
|
-
const
|
|
6987
|
-
|
|
6986
|
+
const x = await xe(p, Y.value.pinnedLocationTitle);
|
|
6987
|
+
Re(x);
|
|
6988
6988
|
}
|
|
6989
|
-
async function
|
|
6989
|
+
async function xe(p, S) {
|
|
6990
6990
|
if (!a.enableGeocoding)
|
|
6991
6991
|
return {
|
|
6992
6992
|
id: `pin-${p.lat}-${p.lng}`,
|
|
6993
|
-
title:
|
|
6993
|
+
title: S,
|
|
6994
6994
|
lat: p.lat,
|
|
6995
6995
|
lng: p.lng
|
|
6996
6996
|
};
|
|
6997
|
-
const
|
|
6997
|
+
const x = await m.reverse(p, {
|
|
6998
6998
|
reverseEndpoint: a.reverseGeocodingEndpoint,
|
|
6999
6999
|
customFetch: a.customGeocodingFetch
|
|
7000
7000
|
});
|
|
7001
|
-
return
|
|
7002
|
-
id:
|
|
7003
|
-
title:
|
|
7004
|
-
address:
|
|
7005
|
-
lat:
|
|
7006
|
-
lng:
|
|
7007
|
-
source:
|
|
7001
|
+
return x ? {
|
|
7002
|
+
id: x.id,
|
|
7003
|
+
title: x.title || S,
|
|
7004
|
+
address: x.address,
|
|
7005
|
+
lat: x.lat,
|
|
7006
|
+
lng: x.lng,
|
|
7007
|
+
source: x.source
|
|
7008
7008
|
} : {
|
|
7009
7009
|
id: `pin-${p.lat}-${p.lng}`,
|
|
7010
|
-
title:
|
|
7010
|
+
title: S,
|
|
7011
7011
|
lat: p.lat,
|
|
7012
7012
|
lng: p.lng
|
|
7013
7013
|
};
|
|
7014
7014
|
}
|
|
7015
7015
|
async function Le() {
|
|
7016
|
-
if (d.isTracking.value &&
|
|
7017
|
-
d.stopTracking(),
|
|
7016
|
+
if (d.isTracking.value && $.value) {
|
|
7017
|
+
d.stopTracking(), $.value = !1;
|
|
7018
7018
|
return;
|
|
7019
7019
|
}
|
|
7020
7020
|
if (b.value) {
|
|
7021
|
-
y.value = b.value,
|
|
7021
|
+
y.value = b.value, $.value = !0, t("track-user", b.value), !d.isTracking.value && !D.value && d.startTracking();
|
|
7022
7022
|
return;
|
|
7023
7023
|
}
|
|
7024
7024
|
const p = await d.locate();
|
|
7025
|
-
p && (y.value = p,
|
|
7025
|
+
p && (y.value = p, $.value = !0, t("track-user", p), d.startTracking());
|
|
7026
7026
|
}
|
|
7027
|
-
return (p,
|
|
7028
|
-
|
|
7027
|
+
return (p, S) => (c(), g("div", EA, [
|
|
7028
|
+
ge.value ? (c(), g("div", {
|
|
7029
7029
|
key: 0,
|
|
7030
|
-
class:
|
|
7030
|
+
class: V(["location-finder__toolbar", { "location-finder__toolbar--actions-only": !a.showSearch }])
|
|
7031
7031
|
}, [
|
|
7032
|
-
a.showSearch ? (c(),
|
|
7032
|
+
a.showSearch ? (c(), U(So, {
|
|
7033
7033
|
key: 0,
|
|
7034
7034
|
modelValue: A.value,
|
|
7035
|
-
"onUpdate:modelValue":
|
|
7035
|
+
"onUpdate:modelValue": S[0] || (S[0] = (x) => A.value = x),
|
|
7036
7036
|
class: "location-finder__search",
|
|
7037
|
-
label:
|
|
7038
|
-
placeholder:
|
|
7039
|
-
options:
|
|
7037
|
+
label: Y.value.searchLabel,
|
|
7038
|
+
placeholder: Y.value.searchPlaceholder,
|
|
7039
|
+
options: ze.value,
|
|
7040
7040
|
disabled: e.disabled,
|
|
7041
|
-
"onUpdate:selection":
|
|
7042
|
-
}, null, 8, ["modelValue", "label", "placeholder", "options", "disabled"])) :
|
|
7041
|
+
"onUpdate:selection": pe
|
|
7042
|
+
}, null, 8, ["modelValue", "label", "placeholder", "options", "disabled"])) : B("", !0),
|
|
7043
7043
|
s("div", TA, [
|
|
7044
7044
|
e.trackUser && a.showTrackButton ? (c(), g("button", {
|
|
7045
7045
|
key: 0,
|
|
@@ -7048,24 +7048,24 @@ const EA = {
|
|
|
7048
7048
|
disabled: e.disabled || q(d).pending.value,
|
|
7049
7049
|
"data-testid": "location-finder-locate",
|
|
7050
7050
|
onClick: Le
|
|
7051
|
-
}, E(
|
|
7051
|
+
}, E(I.value), 9, zA)) : B("", !0)
|
|
7052
7052
|
])
|
|
7053
|
-
], 2)) :
|
|
7054
|
-
K.value ? (c(), g("p", NA, E(K.value), 1)) :
|
|
7053
|
+
], 2)) : B("", !0),
|
|
7054
|
+
K.value ? (c(), g("p", NA, E(K.value), 1)) : B("", !0),
|
|
7055
7055
|
s("div", {
|
|
7056
|
-
class:
|
|
7057
|
-
"location-finder__layout--with-summary":
|
|
7056
|
+
class: V(["location-finder__layout", {
|
|
7057
|
+
"location-finder__layout--with-summary": me.value,
|
|
7058
7058
|
"location-finder__layout--full-width": !$e.value
|
|
7059
7059
|
}])
|
|
7060
7060
|
}, [
|
|
7061
|
-
s("div",
|
|
7062
|
-
|
|
7061
|
+
s("div", HA, [
|
|
7062
|
+
L(ei, {
|
|
7063
7063
|
class: "location-finder__map",
|
|
7064
|
-
center:
|
|
7065
|
-
markers:
|
|
7064
|
+
center: Ve.value,
|
|
7065
|
+
markers: Ne.value,
|
|
7066
7066
|
"model-value": h.value,
|
|
7067
7067
|
"user-location": b.value,
|
|
7068
|
-
"user-location-label":
|
|
7068
|
+
"user-location-label": Y.value.userLocationLabel,
|
|
7069
7069
|
"selected-location-label": Me.value,
|
|
7070
7070
|
"route-coordinates": q(u).routeCoordinates.value,
|
|
7071
7071
|
"route-color": e.routeColor,
|
|
@@ -7080,73 +7080,73 @@ const EA = {
|
|
|
7080
7080
|
height: e.mapHeight,
|
|
7081
7081
|
interactive: e.interactive,
|
|
7082
7082
|
disabled: e.disabled,
|
|
7083
|
-
"helper-text":
|
|
7084
|
-
"onUpdate:modelValue":
|
|
7085
|
-
onMarkerClick:
|
|
7083
|
+
"helper-text": Y.value.mapHelperText,
|
|
7084
|
+
"onUpdate:modelValue": he,
|
|
7085
|
+
onMarkerClick: le
|
|
7086
7086
|
}, null, 8, ["center", "markers", "model-value", "user-location", "user-location-label", "selected-location-label", "route-coordinates", "route-color", "route-weight", "selection-radius", "selection-radius-center", "selection-radius-color", "selection-radius-fill-color", "map-style", "tile-layer-url", "tile-layer-attribution", "height", "interactive", "disabled", "helper-text"]),
|
|
7087
7087
|
a.showLegend ? (c(), g("div", {
|
|
7088
7088
|
key: 0,
|
|
7089
7089
|
class: "location-finder__legend",
|
|
7090
7090
|
"data-testid": "location-finder-legend",
|
|
7091
|
-
"aria-label":
|
|
7091
|
+
"aria-label": Y.value.legendAriaLabel
|
|
7092
7092
|
}, [
|
|
7093
|
-
s("span",
|
|
7094
|
-
|
|
7095
|
-
Ce(" " + E(
|
|
7093
|
+
s("span", OA, [
|
|
7094
|
+
S[2] || (S[2] = s("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--list" }, null, -1)),
|
|
7095
|
+
Ce(" " + E(Y.value.legendLocations), 1)
|
|
7096
7096
|
]),
|
|
7097
7097
|
s("span", RA, [
|
|
7098
|
-
|
|
7099
|
-
Ce(" " + E(
|
|
7098
|
+
S[3] || (S[3] = s("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--selected" }, null, -1)),
|
|
7099
|
+
Ce(" " + E(Y.value.legendSelected), 1)
|
|
7100
7100
|
]),
|
|
7101
7101
|
s("span", FA, [
|
|
7102
|
-
|
|
7103
|
-
Ce(" " + E(
|
|
7102
|
+
S[4] || (S[4] = s("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--search" }, null, -1)),
|
|
7103
|
+
Ce(" " + E(Y.value.legendSearchResult), 1)
|
|
7104
7104
|
]),
|
|
7105
7105
|
s("span", WA, [
|
|
7106
|
-
|
|
7107
|
-
Ce(" " + E(
|
|
7106
|
+
S[5] || (S[5] = s("span", { class: "location-finder__legend-swatch location-finder__legend-swatch--user" }, null, -1)),
|
|
7107
|
+
Ce(" " + E(Y.value.userLocationLabel), 1)
|
|
7108
7108
|
])
|
|
7109
|
-
], 8,
|
|
7109
|
+
], 8, QA)) : B("", !0)
|
|
7110
7110
|
]),
|
|
7111
7111
|
$e.value ? (c(), g("aside", UA, [
|
|
7112
|
-
a.showSidebar ? (c(),
|
|
7112
|
+
a.showSidebar ? (c(), U(ri, {
|
|
7113
7113
|
key: 0,
|
|
7114
7114
|
modelValue: f.value,
|
|
7115
|
-
"onUpdate:modelValue":
|
|
7115
|
+
"onUpdate:modelValue": S[1] || (S[1] = (x) => f.value = x),
|
|
7116
7116
|
class: "location-finder__results",
|
|
7117
|
-
locations:
|
|
7118
|
-
label:
|
|
7119
|
-
"empty-text":
|
|
7117
|
+
locations: ee.value,
|
|
7118
|
+
label: Y.value.resultsLabel,
|
|
7119
|
+
"empty-text": Y.value.emptyText,
|
|
7120
7120
|
onSelect: we
|
|
7121
|
-
}, null, 8, ["modelValue", "locations", "label", "empty-text"])) :
|
|
7122
|
-
|
|
7123
|
-
s("p", qA, E(
|
|
7124
|
-
q(u).pending.value ? (c(), g("p", _A, E(
|
|
7121
|
+
}, null, 8, ["modelValue", "locations", "label", "empty-text"])) : B("", !0),
|
|
7122
|
+
me.value ? (c(), g("div", jA, [
|
|
7123
|
+
s("p", qA, E(Y.value.directionsTitle), 1),
|
|
7124
|
+
q(u).pending.value ? (c(), g("p", _A, E(Y.value.loadingRoute), 1)) : q(u).hasRoute.value ? (c(), g(ae, { key: 1 }, [
|
|
7125
7125
|
s("div", JA, [
|
|
7126
7126
|
s("div", null, [
|
|
7127
|
-
s("p", GA, E(
|
|
7128
|
-
s("strong", YA, E(
|
|
7127
|
+
s("p", GA, E(Y.value.distanceLabel), 1),
|
|
7128
|
+
s("strong", YA, E(ve.value), 1)
|
|
7129
7129
|
]),
|
|
7130
7130
|
s("div", null, [
|
|
7131
|
-
s("p", ZA, E(
|
|
7131
|
+
s("p", ZA, E(Y.value.durationLabel), 1),
|
|
7132
7132
|
s("strong", XA, E(Ie.value), 1)
|
|
7133
7133
|
])
|
|
7134
7134
|
]),
|
|
7135
7135
|
e.showDirectionsSteps && q(u).steps.value.length ? (c(), g("ol", KA, [
|
|
7136
|
-
(c(!0), g(
|
|
7137
|
-
key: `${
|
|
7136
|
+
(c(!0), g(ae, null, ue(q(u).steps.value.slice(0, 5), (x, J) => (c(), g("li", {
|
|
7137
|
+
key: `${x.instruction}-${J}`
|
|
7138
7138
|
}, [
|
|
7139
|
-
s("span", null, E(
|
|
7140
|
-
|
|
7139
|
+
s("span", null, E(x.instruction), 1),
|
|
7140
|
+
x.name ? (c(), g("small", es, E(x.name), 1)) : B("", !0)
|
|
7141
7141
|
]))), 128))
|
|
7142
|
-
])) :
|
|
7143
|
-
], 64)) : (c(), g("p", ts, E(
|
|
7144
|
-
])) :
|
|
7145
|
-
])) :
|
|
7142
|
+
])) : B("", !0)
|
|
7143
|
+
], 64)) : (c(), g("p", ts, E(Y.value.directionsEmptyText), 1))
|
|
7144
|
+
])) : B("", !0)
|
|
7145
|
+
])) : B("", !0)
|
|
7146
7146
|
], 2)
|
|
7147
7147
|
]));
|
|
7148
7148
|
}
|
|
7149
|
-
}), as = { class: "carousel d-flex" }, ns = ["onClick"], ls = /* @__PURE__ */
|
|
7149
|
+
}), as = { class: "carousel d-flex" }, ns = ["onClick"], ls = /* @__PURE__ */ O({
|
|
7150
7150
|
__name: "base-carousel",
|
|
7151
7151
|
props: {
|
|
7152
7152
|
modelValue: {
|
|
@@ -7172,7 +7172,7 @@ const EA = {
|
|
|
7172
7172
|
},
|
|
7173
7173
|
emits: ["update:modelValue", "select"],
|
|
7174
7174
|
setup(e, { emit: r }) {
|
|
7175
|
-
const n = r, l =
|
|
7175
|
+
const n = r, l = C(), a = C();
|
|
7176
7176
|
function t() {
|
|
7177
7177
|
l.value.scrollTo({
|
|
7178
7178
|
top: 0,
|
|
@@ -7195,10 +7195,10 @@ const EA = {
|
|
|
7195
7195
|
key: 0,
|
|
7196
7196
|
class: "carousel__control btn btn-link text-light",
|
|
7197
7197
|
type: "button",
|
|
7198
|
-
onClick:
|
|
7198
|
+
onClick: Z(t, ["prevent", "stop"])
|
|
7199
7199
|
}, [
|
|
7200
|
-
|
|
7201
|
-
])) :
|
|
7200
|
+
L(Q, { symbol: "chevron-left" })
|
|
7201
|
+
])) : B("", !0),
|
|
7202
7202
|
s("div", {
|
|
7203
7203
|
ref_key: "viewport",
|
|
7204
7204
|
ref: l,
|
|
@@ -7209,13 +7209,13 @@ const EA = {
|
|
|
7209
7209
|
ref: a,
|
|
7210
7210
|
class: "carousel__track d-flex justify-center align-items-center"
|
|
7211
7211
|
}, [
|
|
7212
|
-
(c(!0), g(
|
|
7212
|
+
(c(!0), g(ae, null, ue(e.items, (u, A) => N(d.$slots, "carousel-item", {
|
|
7213
7213
|
key: u.src,
|
|
7214
7214
|
item: u,
|
|
7215
7215
|
index: A
|
|
7216
7216
|
}, () => [
|
|
7217
7217
|
s("div", {
|
|
7218
|
-
class:
|
|
7218
|
+
class: V(["carousel__item", A === e.modelValue ? "selected" : ""]),
|
|
7219
7219
|
onClick: (f) => i(A)
|
|
7220
7220
|
}, E(u), 11, ns)
|
|
7221
7221
|
])), 128))
|
|
@@ -7225,13 +7225,13 @@ const EA = {
|
|
|
7225
7225
|
key: 1,
|
|
7226
7226
|
class: "carousel__control btn btn-link text-light",
|
|
7227
7227
|
type: "button",
|
|
7228
|
-
onClick:
|
|
7228
|
+
onClick: Z(o, ["prevent", "stop"])
|
|
7229
7229
|
}, [
|
|
7230
|
-
|
|
7231
|
-
])) :
|
|
7230
|
+
L(Q, { symbol: "chevron-right" })
|
|
7231
|
+
])) : B("", !0)
|
|
7232
7232
|
]));
|
|
7233
7233
|
}
|
|
7234
|
-
}), os = { class: "media-thumbnails" }, is = ["onClick"], As = { class: "img-container" },
|
|
7234
|
+
}), os = { class: "media-thumbnails" }, is = ["onClick"], As = { class: "img-container" }, Fr = /* @__PURE__ */ O({
|
|
7235
7235
|
__name: "media-thumbnails",
|
|
7236
7236
|
props: {
|
|
7237
7237
|
modelValue: {
|
|
@@ -7252,20 +7252,20 @@ const EA = {
|
|
|
7252
7252
|
},
|
|
7253
7253
|
emits: ["update:modelValue", "select"],
|
|
7254
7254
|
setup(e, { emit: r }) {
|
|
7255
|
-
const n = r, l =
|
|
7255
|
+
const n = r, l = C(-1);
|
|
7256
7256
|
function a(t) {
|
|
7257
7257
|
l.value = t, n("update:modelValue", t), n("select", t);
|
|
7258
7258
|
}
|
|
7259
7259
|
return (t, o) => (c(), g("div", os, [
|
|
7260
|
-
|
|
7260
|
+
L(ls, { items: e.assets }, {
|
|
7261
7261
|
"carousel-item": _((i) => [
|
|
7262
7262
|
s("a", {
|
|
7263
7263
|
role: "button",
|
|
7264
|
-
class:
|
|
7264
|
+
class: V(["carousel__item media-thumbnails__thumbnail", i.index === e.modelValue || i.index === l.value ? "is-active" : ""]),
|
|
7265
7265
|
onClick: (d) => a(i.index)
|
|
7266
7266
|
}, [
|
|
7267
7267
|
s("div", As, [
|
|
7268
|
-
|
|
7268
|
+
L(Te, {
|
|
7269
7269
|
src: i.item.thumbnail || i.item.src,
|
|
7270
7270
|
class: "img-fluid"
|
|
7271
7271
|
}, null, 8, ["src"])
|
|
@@ -7276,7 +7276,7 @@ const EA = {
|
|
|
7276
7276
|
}, 8, ["items"])
|
|
7277
7277
|
]));
|
|
7278
7278
|
}
|
|
7279
|
-
}), ss = { class: "progress-steps" }, rs = { class: "progress-steps__list" }, us = { class: "progress-step" }, ds = ["checked", "id", "value", "disabled", "read-only", "required", "onChange"], cs = ["for"], ms = ["innerHTML"], fs = ["for"], gs = ["innerHTML"],
|
|
7279
|
+
}), ss = { class: "progress-steps" }, rs = { class: "progress-steps__list" }, us = { class: "progress-step" }, ds = ["checked", "id", "value", "disabled", "read-only", "required", "onChange"], cs = ["for"], ms = ["innerHTML"], fs = ["for"], gs = ["innerHTML"], Wr = /* @__PURE__ */ O({
|
|
7280
7280
|
__name: "progress-steps",
|
|
7281
7281
|
props: {
|
|
7282
7282
|
modelValue: {
|
|
@@ -7307,9 +7307,9 @@ const EA = {
|
|
|
7307
7307
|
}
|
|
7308
7308
|
return (t, o) => (c(), g("div", ss, [
|
|
7309
7309
|
s("ul", rs, [
|
|
7310
|
-
(c(!0), g(
|
|
7310
|
+
(c(!0), g(ae, null, ue(e.steps, (i, d) => (c(), g("li", {
|
|
7311
7311
|
key: d,
|
|
7312
|
-
class:
|
|
7312
|
+
class: V(["progress-steps__step", {
|
|
7313
7313
|
"progress-steps__step--disabled": d > e.progress + (e.reveal ? 1 : 0),
|
|
7314
7314
|
"progress-steps__step--active": d === (e.modelValue || 0)
|
|
7315
7315
|
}])
|
|
@@ -7357,7 +7357,7 @@ const EA = {
|
|
|
7357
7357
|
}), vs = { class: "hint-system" }, ps = ["innerHTML"], hs = ["innerHTML"], ys = {
|
|
7358
7358
|
key: 1,
|
|
7359
7359
|
class: "hint-system__hint-content"
|
|
7360
|
-
}, bs = ["disabled"],
|
|
7360
|
+
}, bs = ["disabled"], Ur = /* @__PURE__ */ O({
|
|
7361
7361
|
__name: "hint-system",
|
|
7362
7362
|
props: {
|
|
7363
7363
|
modelValue: {
|
|
@@ -7391,8 +7391,8 @@ const EA = {
|
|
|
7391
7391
|
},
|
|
7392
7392
|
emits: ["update:modelValue", "hint-revealed"],
|
|
7393
7393
|
setup(e, { emit: r }) {
|
|
7394
|
-
const n = e, l = r, a =
|
|
7395
|
-
|
|
7394
|
+
const n = e, l = r, a = C(n.modelValue);
|
|
7395
|
+
W(
|
|
7396
7396
|
() => n.modelValue,
|
|
7397
7397
|
(m) => {
|
|
7398
7398
|
a.value = m;
|
|
@@ -7417,15 +7417,15 @@ const EA = {
|
|
|
7417
7417
|
key: 0,
|
|
7418
7418
|
innerHTML: q(re)(e.description),
|
|
7419
7419
|
class: "hint-system__description"
|
|
7420
|
-
}, null, 8, ps)) :
|
|
7421
|
-
i.value.length ? (c(),
|
|
7420
|
+
}, null, 8, ps)) : B("", !0),
|
|
7421
|
+
i.value.length ? (c(), U($t, {
|
|
7422
7422
|
key: 1,
|
|
7423
7423
|
name: "hint-reveal",
|
|
7424
7424
|
tag: "ol",
|
|
7425
7425
|
class: "hint-system__list"
|
|
7426
7426
|
}, {
|
|
7427
7427
|
default: _(() => [
|
|
7428
|
-
(c(!0), g(
|
|
7428
|
+
(c(!0), g(ae, null, ue(i.value, (A, f) => (c(), g("li", {
|
|
7429
7429
|
key: f,
|
|
7430
7430
|
class: "hint-system__hint"
|
|
7431
7431
|
}, [
|
|
@@ -7443,7 +7443,7 @@ const EA = {
|
|
|
7443
7443
|
]))), 128))
|
|
7444
7444
|
]),
|
|
7445
7445
|
_: 3
|
|
7446
|
-
})) :
|
|
7446
|
+
})) : B("", !0),
|
|
7447
7447
|
o.value ? N(m.$slots, "trigger", {
|
|
7448
7448
|
key: 2,
|
|
7449
7449
|
revealNext: d,
|
|
@@ -7457,10 +7457,10 @@ const EA = {
|
|
|
7457
7457
|
disabled: !o.value,
|
|
7458
7458
|
onClick: d
|
|
7459
7459
|
}, E(e.label), 9, bs)
|
|
7460
|
-
]) :
|
|
7460
|
+
]) : B("", !0)
|
|
7461
7461
|
]));
|
|
7462
7462
|
}
|
|
7463
|
-
}), ws = ["id", "popover"], ct = /* @__PURE__ */
|
|
7463
|
+
}), ws = ["id", "popover"], ct = /* @__PURE__ */ O({
|
|
7464
7464
|
__name: "popover-dialog",
|
|
7465
7465
|
props: {
|
|
7466
7466
|
modelValue: {
|
|
@@ -7506,7 +7506,7 @@ const EA = {
|
|
|
7506
7506
|
},
|
|
7507
7507
|
emits: ["update:modelValue"],
|
|
7508
7508
|
setup(e, { emit: r }) {
|
|
7509
|
-
const n = e, l = r, a =
|
|
7509
|
+
const n = e, l = r, a = C(), t = C(), o = C(!1), i = w(() => "ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
7510
7510
|
function d() {
|
|
7511
7511
|
clearTimeout(t.value), n.hover && a.value?.showPopover();
|
|
7512
7512
|
}
|
|
@@ -7518,7 +7518,7 @@ const EA = {
|
|
|
7518
7518
|
a.value?.hidePopover();
|
|
7519
7519
|
}, n.closeTimeout || n.hoverDelay));
|
|
7520
7520
|
}
|
|
7521
|
-
|
|
7521
|
+
W(() => n.modelValue, (f, v) => {
|
|
7522
7522
|
f && !v ? a.value?.matches(":popover-open") || a.value?.showPopover() : !f && v && a.value?.matches(":popover-open") && a.value?.hidePopover();
|
|
7523
7523
|
});
|
|
7524
7524
|
function A(f) {
|
|
@@ -7526,7 +7526,7 @@ const EA = {
|
|
|
7526
7526
|
o.value || a.value?.hidePopover();
|
|
7527
7527
|
}, n.closeTimeout)), n.modelValue || l("update:modelValue", !0)) : f.newState === "closed" && (o.value = !1, n.modelValue && l("update:modelValue", !1));
|
|
7528
7528
|
}
|
|
7529
|
-
return
|
|
7529
|
+
return ne(() => {
|
|
7530
7530
|
if (a.value?.addEventListener("toggle", A), n.modelValue && a.value?.showPopover(), !i.value) {
|
|
7531
7531
|
a.value?.addEventListener("mouseenter", m), a.value?.addEventListener("mouseleave", u);
|
|
7532
7532
|
const f = document.querySelector(`[popovertarget="${n.id}"]`);
|
|
@@ -7556,7 +7556,7 @@ const EA = {
|
|
|
7556
7556
|
}, Bs = ["innerHTML"], Ms = { class: "popover-tooltip__body" }, Ls = ["innerHTML"], Is = {
|
|
7557
7557
|
key: 1,
|
|
7558
7558
|
class: "popover-tooltip__footer d-flex p-3 border-top"
|
|
7559
|
-
},
|
|
7559
|
+
}, jr = /* @__PURE__ */ O({
|
|
7560
7560
|
__name: "popover-tooltip",
|
|
7561
7561
|
props: {
|
|
7562
7562
|
modelValue: {
|
|
@@ -7616,7 +7616,7 @@ const EA = {
|
|
|
7616
7616
|
set(m) {
|
|
7617
7617
|
l("update:modelValue", m);
|
|
7618
7618
|
}
|
|
7619
|
-
}), i =
|
|
7619
|
+
}), i = C(), d = C();
|
|
7620
7620
|
return (m, u) => (c(), g("span", $s, [
|
|
7621
7621
|
s("button", {
|
|
7622
7622
|
type: "button",
|
|
@@ -7631,7 +7631,7 @@ const EA = {
|
|
|
7631
7631
|
u[3] || (u[3] = s("span", { class: "popover-tooltip__trigger" }, " i ", -1))
|
|
7632
7632
|
])
|
|
7633
7633
|
], 8, Cs),
|
|
7634
|
-
|
|
7634
|
+
L(ct, {
|
|
7635
7635
|
id: e.id,
|
|
7636
7636
|
modelValue: o.value,
|
|
7637
7637
|
"onUpdate:modelValue": u[2] || (u[2] = (A) => o.value = A),
|
|
@@ -7640,7 +7640,7 @@ const EA = {
|
|
|
7640
7640
|
ref_key: "dialog",
|
|
7641
7641
|
ref: d,
|
|
7642
7642
|
role: "tooltip",
|
|
7643
|
-
class:
|
|
7643
|
+
class: V(e.size ? `popover-tooltip--${e.size}` : "")
|
|
7644
7644
|
}, {
|
|
7645
7645
|
default: _(() => [
|
|
7646
7646
|
s("div", Ss, [
|
|
@@ -7649,14 +7649,14 @@ const EA = {
|
|
|
7649
7649
|
key: 0,
|
|
7650
7650
|
class: "popover-tooltip__title",
|
|
7651
7651
|
innerHTML: q(a)
|
|
7652
|
-
}, null, 8, Bs)) :
|
|
7652
|
+
}, null, 8, Bs)) : B("", !0),
|
|
7653
7653
|
s("button", {
|
|
7654
7654
|
type: "button",
|
|
7655
7655
|
class: "btn-close ms-auto border-radius-none",
|
|
7656
7656
|
"aria-label": "Close",
|
|
7657
7657
|
onClick: u[0] || (u[0] = (A) => o.value = !1)
|
|
7658
7658
|
})
|
|
7659
|
-
])) :
|
|
7659
|
+
])) : B("", !0),
|
|
7660
7660
|
s("div", Ms, [
|
|
7661
7661
|
N(m.$slots, "default", {}, () => [
|
|
7662
7662
|
s("span", { innerHTML: q(t) }, null, 8, Ls)
|
|
@@ -7669,14 +7669,14 @@ const EA = {
|
|
|
7669
7669
|
class: "btn ms-auto",
|
|
7670
7670
|
onClick: u[1] || (u[1] = (A) => o.value = !1)
|
|
7671
7671
|
}, E(m.$t("common.close")), 1)
|
|
7672
|
-
])) :
|
|
7672
|
+
])) : B("", !0)
|
|
7673
7673
|
])
|
|
7674
7674
|
]),
|
|
7675
7675
|
_: 3
|
|
7676
7676
|
}, 8, ["id", "modelValue", "hover", "hover-delay", "class"])
|
|
7677
7677
|
]));
|
|
7678
7678
|
}
|
|
7679
|
-
}), Ds = { class: "popover-notification__header d-flex justify-content-between mb-2" }, Vs = { class: "popover-notification__title" }, Ps = ["onClick"], xs = ["innerHTML"],
|
|
7679
|
+
}), Ds = { class: "popover-notification__header d-flex justify-content-between mb-2" }, Vs = { class: "popover-notification__title" }, Ps = ["onClick"], xs = ["innerHTML"], qr = /* @__PURE__ */ O({
|
|
7680
7680
|
__name: "popover-notifications",
|
|
7681
7681
|
props: {
|
|
7682
7682
|
modelValue: {
|
|
@@ -7705,17 +7705,17 @@ const EA = {
|
|
|
7705
7705
|
}
|
|
7706
7706
|
},
|
|
7707
7707
|
setup(e, { expose: r }) {
|
|
7708
|
-
const n = e, l =
|
|
7708
|
+
const n = e, l = C([]), a = C([]), t = w(
|
|
7709
7709
|
() => l.value.map((f) => ({
|
|
7710
7710
|
...f,
|
|
7711
7711
|
content: re(f.content || "")
|
|
7712
7712
|
}))
|
|
7713
|
-
), o =
|
|
7713
|
+
), o = C(!1), i = w(() => n.collapsible && l.value.length > 3);
|
|
7714
7714
|
function d(f, v) {
|
|
7715
7715
|
l.value = l.value.filter((y) => y.id !== f.id);
|
|
7716
7716
|
}
|
|
7717
|
-
|
|
7718
|
-
const y = f.filter((
|
|
7717
|
+
W(() => n.items, (f, v) => {
|
|
7718
|
+
const y = f.filter(($) => !v.some((D) => D.id === $.id));
|
|
7719
7719
|
a.value = [...a.value, ...y];
|
|
7720
7720
|
});
|
|
7721
7721
|
function m() {
|
|
@@ -7730,15 +7730,15 @@ const EA = {
|
|
|
7730
7730
|
function A(f) {
|
|
7731
7731
|
console.log("Adding item:", f), a.value.push(f), m();
|
|
7732
7732
|
}
|
|
7733
|
-
return
|
|
7733
|
+
return ne(() => {
|
|
7734
7734
|
a.value = n.items, a.value.length > 3 && (o.value = !0), m();
|
|
7735
7735
|
}), r({
|
|
7736
7736
|
addItem: A
|
|
7737
7737
|
}), (f, v) => (c(), g("div", {
|
|
7738
|
-
class:
|
|
7738
|
+
class: V(["popover-notifications", { "popover-notifications--collapsed": o.value }]),
|
|
7739
7739
|
style: { anchorName: "--popover-notifications" }
|
|
7740
7740
|
}, [
|
|
7741
|
-
(c(!0), g(
|
|
7741
|
+
(c(!0), g(ae, null, ue(t.value, (y, $) => (c(), U(ct, {
|
|
7742
7742
|
key: y.id,
|
|
7743
7743
|
id: y.id,
|
|
7744
7744
|
"close-timeout": y.closeTimeout,
|
|
@@ -7755,7 +7755,7 @@ const EA = {
|
|
|
7755
7755
|
s("button", {
|
|
7756
7756
|
type: "button",
|
|
7757
7757
|
class: "btn btn-close p-0",
|
|
7758
|
-
onClick:
|
|
7758
|
+
onClick: Z((D) => y.visible = !1, ["stop"]),
|
|
7759
7759
|
"aria-label": "Close notification"
|
|
7760
7760
|
}, null, 8, Ps)
|
|
7761
7761
|
]),
|
|
@@ -7768,7 +7768,7 @@ const EA = {
|
|
|
7768
7768
|
}, 1032, ["id", "close-timeout", "modelValue", "onUpdate:modelValue"]))), 128))
|
|
7769
7769
|
], 2));
|
|
7770
7770
|
}
|
|
7771
|
-
}),
|
|
7771
|
+
}), _r = /* @__PURE__ */ O({
|
|
7772
7772
|
__name: "dom-renderer",
|
|
7773
7773
|
props: {
|
|
7774
7774
|
modelValue: {
|
|
@@ -7806,7 +7806,7 @@ const EA = {
|
|
|
7806
7806
|
},
|
|
7807
7807
|
emits: ["update:modelValue", "update:pending"],
|
|
7808
7808
|
setup(e, { emit: r }) {
|
|
7809
|
-
const n = e, l = r, a =
|
|
7809
|
+
const n = e, l = r, a = C(), t = C(""), o = C(), i = C(!0);
|
|
7810
7810
|
async function d() {
|
|
7811
7811
|
if (!a.value || !i.value)
|
|
7812
7812
|
return "";
|
|
@@ -7818,7 +7818,7 @@ const EA = {
|
|
|
7818
7818
|
const A = u.firstElementChild;
|
|
7819
7819
|
if (!A)
|
|
7820
7820
|
return "";
|
|
7821
|
-
const f = await
|
|
7821
|
+
const f = await Ot(A, {
|
|
7822
7822
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
7823
7823
|
scale: 1,
|
|
7824
7824
|
...n.options
|
|
@@ -7838,7 +7838,7 @@ const EA = {
|
|
|
7838
7838
|
const m = st(async () => {
|
|
7839
7839
|
t.value = await d();
|
|
7840
7840
|
}, 300, { trailing: !0, leading: !1 });
|
|
7841
|
-
return
|
|
7841
|
+
return ne(() => {
|
|
7842
7842
|
const u = a.value;
|
|
7843
7843
|
n.renderUpdates && (o.value = new MutationObserver(async (A) => {
|
|
7844
7844
|
!i.value || !u.isConnected || (n.emitPending && l("update:pending", !0), m());
|
|
@@ -7853,7 +7853,7 @@ const EA = {
|
|
|
7853
7853
|
}), Be(() => {
|
|
7854
7854
|
i.value = !1, o.value && o.value.disconnect(), m.cancel();
|
|
7855
7855
|
}), (u, A) => (c(), g("div", {
|
|
7856
|
-
class:
|
|
7856
|
+
class: V(["dom-renderer", {
|
|
7857
7857
|
"off-screen": !e.debug
|
|
7858
7858
|
}]),
|
|
7859
7859
|
ref_key: "renderer",
|
|
@@ -7863,7 +7863,7 @@ const EA = {
|
|
|
7863
7863
|
N(u.$slots, "default")
|
|
7864
7864
|
], 6));
|
|
7865
7865
|
}
|
|
7866
|
-
}), Es = { class: "qr-code" }, Ts = ["innerHTML"],
|
|
7866
|
+
}), Es = { class: "qr-code" }, Ts = ["innerHTML"], Jr = /* @__PURE__ */ O({
|
|
7867
7867
|
__name: "qr-code",
|
|
7868
7868
|
props: {
|
|
7869
7869
|
data: null,
|
|
@@ -7879,7 +7879,7 @@ const EA = {
|
|
|
7879
7879
|
},
|
|
7880
7880
|
emits: ["update:dataUrl"],
|
|
7881
7881
|
setup(e, { expose: r, emit: n }) {
|
|
7882
|
-
const l = e, a =
|
|
7882
|
+
const l = e, a = C(), t = w(() => ({
|
|
7883
7883
|
width: 300,
|
|
7884
7884
|
height: 300,
|
|
7885
7885
|
type: "canvas",
|
|
@@ -7943,7 +7943,7 @@ const EA = {
|
|
|
7943
7943
|
height: 1200
|
|
7944
7944
|
}).download({ name: l.filename, extension: "png" });
|
|
7945
7945
|
}
|
|
7946
|
-
return
|
|
7946
|
+
return W(() => t.value, o, { deep: !0, immediate: !0 }), ne(() => {
|
|
7947
7947
|
typeof window < "u" && o();
|
|
7948
7948
|
}), r({
|
|
7949
7949
|
download: i
|
|
@@ -7963,10 +7963,10 @@ const EA = {
|
|
|
7963
7963
|
}), zs = { class: "link-sharing" }, Ns = {
|
|
7964
7964
|
key: 0,
|
|
7965
7965
|
class: "link-sharing__links container"
|
|
7966
|
-
},
|
|
7966
|
+
}, Hs = { class: "row" }, Qs = {
|
|
7967
7967
|
key: 0,
|
|
7968
7968
|
class: "col-12 col-md-6"
|
|
7969
|
-
},
|
|
7969
|
+
}, Os = ["href"], Rs = { class: "caption" }, Fs = {
|
|
7970
7970
|
key: 1,
|
|
7971
7971
|
class: "col-12 col-md-6"
|
|
7972
7972
|
}, Ws = ["href"], Us = { class: "caption" }, js = {
|
|
@@ -7987,7 +7987,7 @@ const EA = {
|
|
|
7987
7987
|
}, ar = ["href"], nr = { class: "caption" }, lr = {
|
|
7988
7988
|
key: 1,
|
|
7989
7989
|
class: "link-sharing__instructions pt-5"
|
|
7990
|
-
}, or = { class: "row" }, ir = { class: "col-12 text-center py-0" }, Ar = { class: "mb-5" }, sr = (e) => e.replace(/<(?:.|\n)*?>/gm, ""),
|
|
7990
|
+
}, or = { class: "row" }, ir = { class: "col-12 text-center py-0" }, Ar = { class: "mb-5" }, sr = (e) => e.replace(/<(?:.|\n)*?>/gm, ""), Gr = /* @__PURE__ */ O({
|
|
7991
7991
|
__name: "link-sharing",
|
|
7992
7992
|
props: {
|
|
7993
7993
|
url: {
|
|
@@ -8021,7 +8021,7 @@ const EA = {
|
|
|
8021
8021
|
}
|
|
8022
8022
|
},
|
|
8023
8023
|
setup(e) {
|
|
8024
|
-
const r = e, n =
|
|
8024
|
+
const r = e, n = C(!1), l = w(() => encodeURIComponent(r.url));
|
|
8025
8025
|
w(() => encodeURIComponent(r.media));
|
|
8026
8026
|
const a = w(() => sr(r.text)), t = w(() => !!(navigator && navigator.userAgent && /Mobi|Android/i.test(navigator.userAgent)));
|
|
8027
8027
|
async function o() {
|
|
@@ -8040,27 +8040,27 @@ const EA = {
|
|
|
8040
8040
|
s("button", {
|
|
8041
8041
|
type: "button",
|
|
8042
8042
|
class: "btn btn-text",
|
|
8043
|
-
onClick: d[1] || (d[1] =
|
|
8043
|
+
onClick: d[1] || (d[1] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8044
8044
|
}, [
|
|
8045
|
-
|
|
8045
|
+
L(Q, { symbol: "arrow-left" }),
|
|
8046
8046
|
Ce(" " + E(i.$t("common.back")), 1)
|
|
8047
8047
|
])
|
|
8048
8048
|
])
|
|
8049
8049
|
])
|
|
8050
8050
|
])
|
|
8051
8051
|
])) : (c(), g("div", Ns, [
|
|
8052
|
-
s("div",
|
|
8053
|
-
e.services.facebook ? (c(), g("div",
|
|
8052
|
+
s("div", Hs, [
|
|
8053
|
+
e.services.facebook ? (c(), g("div", Qs, [
|
|
8054
8054
|
s("a", {
|
|
8055
8055
|
class: "link-sharing__link btn btn-primary",
|
|
8056
8056
|
href: `https://www.facebook.com/sharer.php?u=${l.value}`,
|
|
8057
8057
|
target: "_blank",
|
|
8058
8058
|
rel: "noopener"
|
|
8059
8059
|
}, [
|
|
8060
|
-
|
|
8060
|
+
L(Q, { symbol: "facebook" }),
|
|
8061
8061
|
s("span", Rs, E(i.$t("sharing.facebook")), 1)
|
|
8062
|
-
], 8,
|
|
8063
|
-
])) :
|
|
8062
|
+
], 8, Os)
|
|
8063
|
+
])) : B("", !0),
|
|
8064
8064
|
e.services.bluesky ? (c(), g("div", Fs, [
|
|
8065
8065
|
s("a", {
|
|
8066
8066
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -8068,20 +8068,20 @@ const EA = {
|
|
|
8068
8068
|
target: "_blank",
|
|
8069
8069
|
rel: "noopener"
|
|
8070
8070
|
}, [
|
|
8071
|
-
|
|
8071
|
+
L(Q, { symbol: "bluesky-logo" }),
|
|
8072
8072
|
s("span", Us, E(i.$t("sharing.bluesky")), 1)
|
|
8073
8073
|
], 8, Ws)
|
|
8074
|
-
])) :
|
|
8074
|
+
])) : B("", !0),
|
|
8075
8075
|
e.services.instagram ? (c(), g("div", js, [
|
|
8076
8076
|
s("button", {
|
|
8077
8077
|
type: "button",
|
|
8078
8078
|
class: "link-sharing__link btn btn-primary",
|
|
8079
|
-
onClick: d[0] || (d[0] =
|
|
8079
|
+
onClick: d[0] || (d[0] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8080
8080
|
}, [
|
|
8081
|
-
|
|
8081
|
+
L(Q, { symbol: "instagram" }),
|
|
8082
8082
|
s("span", qs, E(i.$t("sharing.instagram")), 1)
|
|
8083
8083
|
])
|
|
8084
|
-
])) :
|
|
8084
|
+
])) : B("", !0),
|
|
8085
8085
|
e.services.linkedin ? (c(), g("div", _s, [
|
|
8086
8086
|
s("a", {
|
|
8087
8087
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -8089,10 +8089,10 @@ const EA = {
|
|
|
8089
8089
|
target: "_blank",
|
|
8090
8090
|
rel: "noopener"
|
|
8091
8091
|
}, [
|
|
8092
|
-
|
|
8092
|
+
L(Q, { symbol: "linkedin" }),
|
|
8093
8093
|
s("span", Gs, E(i.$t("sharing.linkedin")), 1)
|
|
8094
8094
|
], 8, Js)
|
|
8095
|
-
])) :
|
|
8095
|
+
])) : B("", !0),
|
|
8096
8096
|
e.services.whatsapp && t.value ? (c(), g("div", Ys, [
|
|
8097
8097
|
s("a", {
|
|
8098
8098
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -8100,20 +8100,20 @@ const EA = {
|
|
|
8100
8100
|
target: "_blank",
|
|
8101
8101
|
rel: "noopener"
|
|
8102
8102
|
}, [
|
|
8103
|
-
|
|
8103
|
+
L(Q, { symbol: "whatsapp" }),
|
|
8104
8104
|
s("span", Xs, E(i.$t("sharing.whatsapp")), 1)
|
|
8105
8105
|
], 8, Zs)
|
|
8106
|
-
])) :
|
|
8106
|
+
])) : B("", !0),
|
|
8107
8107
|
e.services.clipboard ? (c(), g("div", Ks, [
|
|
8108
8108
|
s("button", {
|
|
8109
8109
|
type: "button",
|
|
8110
8110
|
class: "link-sharing__link btn btn-primary",
|
|
8111
|
-
onClick:
|
|
8111
|
+
onClick: Z(o, ["prevent", "stop"])
|
|
8112
8112
|
}, [
|
|
8113
|
-
|
|
8113
|
+
L(Q, { symbol: "copy" }),
|
|
8114
8114
|
s("span", er, E(i.$t("sharing.clipboard")), 1)
|
|
8115
8115
|
])
|
|
8116
|
-
])) :
|
|
8116
|
+
])) : B("", !0),
|
|
8117
8117
|
e.services.mailto ? (c(), g("div", tr, [
|
|
8118
8118
|
s("a", {
|
|
8119
8119
|
class: "link-sharing__link btn btn-primary",
|
|
@@ -8121,15 +8121,15 @@ const EA = {
|
|
|
8121
8121
|
target: "_blank",
|
|
8122
8122
|
rel: "noopener"
|
|
8123
8123
|
}, [
|
|
8124
|
-
|
|
8124
|
+
L(Q, { symbol: "mail" }),
|
|
8125
8125
|
s("span", nr, E(i.$t("sharing.mailto")), 1)
|
|
8126
8126
|
], 8, ar)
|
|
8127
|
-
])) :
|
|
8127
|
+
])) : B("", !0)
|
|
8128
8128
|
])
|
|
8129
8129
|
]))
|
|
8130
8130
|
]));
|
|
8131
8131
|
}
|
|
8132
|
-
}), rr = { class: "base-form" },
|
|
8132
|
+
}), rr = { class: "base-form" }, Yr = /* @__PURE__ */ O({
|
|
8133
8133
|
__name: "base-form",
|
|
8134
8134
|
props: {
|
|
8135
8135
|
id: {},
|
|
@@ -8153,7 +8153,7 @@ const EA = {
|
|
|
8153
8153
|
ref: "form",
|
|
8154
8154
|
onInput: r,
|
|
8155
8155
|
onReset: n,
|
|
8156
|
-
onSubmit:
|
|
8156
|
+
onSubmit: Z(l, ["prevent"])
|
|
8157
8157
|
}, [
|
|
8158
8158
|
N(a.$slots, "default")
|
|
8159
8159
|
], 544)
|
|
@@ -8162,7 +8162,7 @@ const EA = {
|
|
|
8162
8162
|
}), ur = { class: "touch-wrapper__controls" }, dr = {
|
|
8163
8163
|
class: "btn-group",
|
|
8164
8164
|
role: "group"
|
|
8165
|
-
},
|
|
8165
|
+
}, Zr = /* @__PURE__ */ O({
|
|
8166
8166
|
__name: "touch-wrapper",
|
|
8167
8167
|
props: {
|
|
8168
8168
|
modelValue: {
|
|
@@ -8172,7 +8172,7 @@ const EA = {
|
|
|
8172
8172
|
},
|
|
8173
8173
|
emits: ["update:modelValue"],
|
|
8174
8174
|
setup(e, { emit: r }) {
|
|
8175
|
-
const n =
|
|
8175
|
+
const n = Ht(), l = n && n.appContext.config.globalProperties.$config, a = e, t = r, o = C();
|
|
8176
8176
|
function i(u) {
|
|
8177
8177
|
const A = a.modelValue + u;
|
|
8178
8178
|
t("update:modelValue", u === 0 ? 1 : A >= 1 ? A : 1);
|
|
@@ -8189,7 +8189,7 @@ const EA = {
|
|
|
8189
8189
|
const { scale: A } = u, f = A > 1 ? A * 0.01 : 0 - A;
|
|
8190
8190
|
i(f);
|
|
8191
8191
|
}
|
|
8192
|
-
return
|
|
8192
|
+
return ne(() => {
|
|
8193
8193
|
o.value && (o.value.addEventListener("wheel", d, !1), o.value.addEventListener("gesturestart", m, !1), o.value.addEventListener("gesturechange", m, !1), o.value.addEventListener("gestureend", m, !1));
|
|
8194
8194
|
}), (u, A) => (c(), g("div", {
|
|
8195
8195
|
ref_key: "touchElement",
|
|
@@ -8206,7 +8206,7 @@ const EA = {
|
|
|
8206
8206
|
class: "btn",
|
|
8207
8207
|
onClick: A[0] || (A[0] = (f) => i(-1))
|
|
8208
8208
|
}, [
|
|
8209
|
-
|
|
8209
|
+
L(Q, {
|
|
8210
8210
|
symbol: "minus",
|
|
8211
8211
|
"base-path": q(l).iconSprite
|
|
8212
8212
|
}, null, 8, ["base-path"])
|
|
@@ -8216,7 +8216,7 @@ const EA = {
|
|
|
8216
8216
|
class: "btn",
|
|
8217
8217
|
onClick: A[1] || (A[1] = (f) => i(0))
|
|
8218
8218
|
}, [
|
|
8219
|
-
|
|
8219
|
+
L(Q, {
|
|
8220
8220
|
symbol: "maximize",
|
|
8221
8221
|
"base-path": q(l).iconSprite
|
|
8222
8222
|
}, null, 8, ["base-path"])
|
|
@@ -8226,7 +8226,7 @@ const EA = {
|
|
|
8226
8226
|
class: "btn",
|
|
8227
8227
|
onClick: A[2] || (A[2] = (f) => i(1))
|
|
8228
8228
|
}, [
|
|
8229
|
-
|
|
8229
|
+
L(Q, {
|
|
8230
8230
|
symbol: "plus",
|
|
8231
8231
|
"base-path": q(l).iconSprite
|
|
8232
8232
|
}, null, 8, ["base-path"])
|
|
@@ -8301,7 +8301,7 @@ const bt = {
|
|
|
8301
8301
|
function at(e, r) {
|
|
8302
8302
|
return Math.random() * (r - e) + e;
|
|
8303
8303
|
}
|
|
8304
|
-
const
|
|
8304
|
+
const Xr = /* @__PURE__ */ O({
|
|
8305
8305
|
__name: "canvas-confetti",
|
|
8306
8306
|
props: {
|
|
8307
8307
|
preset: {
|
|
@@ -8321,7 +8321,7 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8321
8321
|
}
|
|
8322
8322
|
},
|
|
8323
8323
|
setup(e) {
|
|
8324
|
-
const r = e, n =
|
|
8324
|
+
const r = e, n = C(null), l = w(() => ({
|
|
8325
8325
|
...bt[r.preset],
|
|
8326
8326
|
items: bt[r.preset].items.map((o, i) => ({
|
|
8327
8327
|
...o,
|
|
@@ -8341,7 +8341,7 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8341
8341
|
}, o.timeout || 0))
|
|
8342
8342
|
)), r.loop && t();
|
|
8343
8343
|
}
|
|
8344
|
-
return
|
|
8344
|
+
return ne(async () => {
|
|
8345
8345
|
if (typeof window < "u" && n.value) {
|
|
8346
8346
|
const o = await cr();
|
|
8347
8347
|
if (!o)
|
|
@@ -8354,7 +8354,7 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8354
8354
|
ref: n
|
|
8355
8355
|
}, null, 512));
|
|
8356
8356
|
}
|
|
8357
|
-
}), mr = ["popovertarget"], fr =
|
|
8357
|
+
}), mr = ["popovertarget"], fr = ["src", "alt"], Kr = /* @__PURE__ */ O({
|
|
8358
8358
|
__name: "image-zoom",
|
|
8359
8359
|
props: {
|
|
8360
8360
|
src: {
|
|
@@ -8375,11 +8375,11 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8375
8375
|
},
|
|
8376
8376
|
focusWidth: {
|
|
8377
8377
|
type: Number,
|
|
8378
|
-
default:
|
|
8378
|
+
default: 0
|
|
8379
8379
|
},
|
|
8380
8380
|
focusHeight: {
|
|
8381
8381
|
type: Number,
|
|
8382
|
-
default:
|
|
8382
|
+
default: 0
|
|
8383
8383
|
},
|
|
8384
8384
|
hoverDelay: {
|
|
8385
8385
|
type: Number,
|
|
@@ -8395,108 +8395,117 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8395
8395
|
}
|
|
8396
8396
|
},
|
|
8397
8397
|
setup(e) {
|
|
8398
|
-
const r = e, n =
|
|
8398
|
+
const r = e, n = C(null), l = C(null), a = C(null), t = C(!1), o = C(!1), i = C(!1), d = C(!1), m = C(null), u = C(0), A = C(0), f = C(0), v = C(0), y = w(() => Number.isFinite(r.focusWidth) && r.focusWidth > 0 && Number.isFinite(r.focusHeight) && r.focusHeight > 0 && f.value > 0 && v.value > 0 && r.focusWidth <= f.value && r.focusHeight <= v.value), $ = w(() => f.value > 0 && v.value > 0 && !y.value), D = w(() => i.value && !o.value && f.value > 0 && v.value > 0), b = w(() => $.value ? {
|
|
8399
|
+
width: `${f.value}px`,
|
|
8400
|
+
height: `${v.value}px`,
|
|
8401
|
+
left: "0px",
|
|
8402
|
+
top: "0px"
|
|
8403
|
+
} : {
|
|
8399
8404
|
width: `${r.focusWidth}px`,
|
|
8400
8405
|
height: `${r.focusHeight}px`,
|
|
8401
8406
|
left: `${u.value}px`,
|
|
8402
8407
|
top: `${A.value}px`
|
|
8403
|
-
})
|
|
8404
|
-
const
|
|
8408
|
+
}), h = w(() => {
|
|
8409
|
+
const H = f.value * r.zoom, G = v.value * r.zoom;
|
|
8405
8410
|
return {
|
|
8406
|
-
width: `${
|
|
8407
|
-
height: `${
|
|
8408
|
-
transform: o.value ?
|
|
8411
|
+
width: `${H}px`,
|
|
8412
|
+
height: `${G}px`,
|
|
8413
|
+
transform: y.value && !o.value ? `translate(${-u.value * r.zoom}px, ${-A.value * r.zoom}px)` : "none",
|
|
8409
8414
|
transformOrigin: "top left"
|
|
8410
8415
|
};
|
|
8411
8416
|
});
|
|
8412
|
-
function
|
|
8417
|
+
function M() {
|
|
8413
8418
|
if (!l.value)
|
|
8414
8419
|
return;
|
|
8415
|
-
const
|
|
8416
|
-
f.value =
|
|
8420
|
+
const H = l.value.getBoundingClientRect();
|
|
8421
|
+
f.value = H.width, v.value = H.height;
|
|
8417
8422
|
}
|
|
8418
|
-
function
|
|
8423
|
+
function T() {
|
|
8419
8424
|
m.value && (clearTimeout(m.value), m.value = null);
|
|
8420
8425
|
}
|
|
8421
|
-
function
|
|
8422
|
-
|
|
8426
|
+
function k() {
|
|
8427
|
+
T(), t.value = !0;
|
|
8423
8428
|
}
|
|
8424
|
-
function
|
|
8425
|
-
|
|
8429
|
+
function z() {
|
|
8430
|
+
T(), m.value = setTimeout(() => {
|
|
8426
8431
|
!i.value && !d.value && !o.value && (t.value = !1), m.value = null;
|
|
8427
8432
|
}, r.hoverDelay || 100);
|
|
8428
8433
|
}
|
|
8429
|
-
function
|
|
8434
|
+
function K(H, G) {
|
|
8430
8435
|
if (!l.value)
|
|
8431
8436
|
return;
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
Math.max(
|
|
8437
|
+
if ($.value) {
|
|
8438
|
+
u.value = 0, A.value = 0;
|
|
8439
|
+
return;
|
|
8440
|
+
}
|
|
8441
|
+
const ee = l.value.getBoundingClientRect(), De = H - ee.left, ze = G - ee.top, Ne = Math.min(
|
|
8442
|
+
Math.max(De - r.focusWidth / 2, 0),
|
|
8443
|
+
Math.max(ee.width - r.focusWidth, 0)
|
|
8444
|
+
), Ve = Math.min(
|
|
8445
|
+
Math.max(ze - r.focusHeight / 2, 0),
|
|
8446
|
+
Math.max(ee.height - r.focusHeight, 0)
|
|
8438
8447
|
);
|
|
8439
|
-
u.value =
|
|
8448
|
+
u.value = Ne, A.value = Ve;
|
|
8440
8449
|
}
|
|
8441
|
-
function
|
|
8442
|
-
if (!a.value || !o.value)
|
|
8450
|
+
function ge() {
|
|
8451
|
+
if (!a.value || !o.value || $.value)
|
|
8443
8452
|
return;
|
|
8444
|
-
const
|
|
8445
|
-
a.value.scrollTo({ left:
|
|
8453
|
+
const H = a.value.getBoundingClientRect(), G = Math.max(0, u.value * r.zoom - H.width / 2 + r.focusWidth * r.zoom / 2), ee = Math.max(0, A.value * r.zoom - H.height / 2 + r.focusHeight * r.zoom / 2);
|
|
8454
|
+
a.value.scrollTo({ left: G, top: ee });
|
|
8446
8455
|
}
|
|
8447
|
-
function
|
|
8448
|
-
|
|
8456
|
+
function me(H) {
|
|
8457
|
+
M(), K(H.clientX, H.clientY);
|
|
8449
8458
|
}
|
|
8450
|
-
function
|
|
8451
|
-
i.value = !0,
|
|
8459
|
+
function $e(H) {
|
|
8460
|
+
i.value = !0, M(), K(H.clientX, H.clientY), o.value || k();
|
|
8452
8461
|
}
|
|
8453
|
-
function
|
|
8454
|
-
i.value = !1, o.value ||
|
|
8462
|
+
function ve() {
|
|
8463
|
+
i.value = !1, o.value || z();
|
|
8455
8464
|
}
|
|
8456
|
-
function
|
|
8457
|
-
o.value && (t.value = !0,
|
|
8465
|
+
function Ie(H) {
|
|
8466
|
+
o.value && (t.value = !0, M(), K(H.clientX, H.clientY));
|
|
8458
8467
|
}
|
|
8459
|
-
function
|
|
8460
|
-
o.value &&
|
|
8468
|
+
function Y() {
|
|
8469
|
+
o.value && Fe(ge);
|
|
8461
8470
|
}
|
|
8462
|
-
function
|
|
8463
|
-
d.value = !0,
|
|
8471
|
+
function Me() {
|
|
8472
|
+
d.value = !0, k();
|
|
8464
8473
|
}
|
|
8465
|
-
function
|
|
8466
|
-
d.value = !1,
|
|
8474
|
+
function I() {
|
|
8475
|
+
d.value = !1, z();
|
|
8467
8476
|
}
|
|
8468
|
-
function
|
|
8469
|
-
o.value && (t.value = !t.value,
|
|
8477
|
+
function R(H) {
|
|
8478
|
+
o.value && (t.value = !t.value, H instanceof MouseEvent && K(H.clientX, H.clientY));
|
|
8470
8479
|
}
|
|
8471
|
-
return
|
|
8472
|
-
o.value = "ontouchstart" in window || navigator.maxTouchPoints > 0,
|
|
8473
|
-
}),
|
|
8474
|
-
|
|
8475
|
-
}), (
|
|
8480
|
+
return ne(() => {
|
|
8481
|
+
o.value = "ontouchstart" in window || navigator.maxTouchPoints > 0, M();
|
|
8482
|
+
}), W(t, async (H) => {
|
|
8483
|
+
H && o.value && (await Fe(), ge());
|
|
8484
|
+
}), (H, G) => (c(), g("span", {
|
|
8476
8485
|
class: "image-zoom",
|
|
8477
8486
|
popovertarget: e.popoverId,
|
|
8478
8487
|
ref_key: "wrapper",
|
|
8479
8488
|
ref: n
|
|
8480
8489
|
}, [
|
|
8481
|
-
s("
|
|
8490
|
+
s("div", {
|
|
8482
8491
|
class: "image-zoom__target",
|
|
8483
8492
|
ref_key: "target",
|
|
8484
8493
|
ref: l,
|
|
8485
|
-
onPointermove:
|
|
8486
|
-
onPointerenter:
|
|
8487
|
-
onPointerleave:
|
|
8488
|
-
onPointerdown:
|
|
8489
|
-
onPointerup:
|
|
8490
|
-
onPointercancel:
|
|
8491
|
-
onClick:
|
|
8494
|
+
onPointermove: me,
|
|
8495
|
+
onPointerenter: $e,
|
|
8496
|
+
onPointerleave: ve,
|
|
8497
|
+
onPointerdown: Ie,
|
|
8498
|
+
onPointerup: Y,
|
|
8499
|
+
onPointercancel: ve,
|
|
8500
|
+
onClick: Z(R, ["prevent"])
|
|
8492
8501
|
}, [
|
|
8493
|
-
N(
|
|
8502
|
+
N(H.$slots, "image", {
|
|
8494
8503
|
src: e.src,
|
|
8495
8504
|
alt: e.alt,
|
|
8496
8505
|
spinner: e.spinner,
|
|
8497
8506
|
animate: !1
|
|
8498
8507
|
}, () => [
|
|
8499
|
-
|
|
8508
|
+
L(Te, {
|
|
8500
8509
|
class: "image-zoom__image",
|
|
8501
8510
|
src: e.src,
|
|
8502
8511
|
alt: e.alt,
|
|
@@ -8504,99 +8513,101 @@ const Kr = /* @__PURE__ */ H({
|
|
|
8504
8513
|
animate: !1
|
|
8505
8514
|
}, null, 8, ["src", "alt", "spinner"])
|
|
8506
8515
|
]),
|
|
8507
|
-
|
|
8516
|
+
D.value ? (c(), g("span", {
|
|
8508
8517
|
key: 0,
|
|
8509
8518
|
class: "image-zoom__focus",
|
|
8510
|
-
style: Se(
|
|
8511
|
-
}, null, 4)) :
|
|
8519
|
+
style: Se(b.value)
|
|
8520
|
+
}, null, 4)) : B("", !0)
|
|
8512
8521
|
], 544),
|
|
8513
|
-
|
|
8522
|
+
L(ct, {
|
|
8514
8523
|
id: e.popoverId,
|
|
8515
8524
|
modelValue: t.value,
|
|
8516
|
-
"onUpdate:modelValue":
|
|
8525
|
+
"onUpdate:modelValue": G[0] || (G[0] = (ee) => t.value = ee),
|
|
8517
8526
|
hover: !1,
|
|
8518
8527
|
"hover-delay": e.hoverDelay,
|
|
8519
8528
|
"close-timeout": e.closeTimeout,
|
|
8520
|
-
class: "image-zoom__popover",
|
|
8529
|
+
class: V(["image-zoom__popover", { "image-zoom__popover--full": $.value }]),
|
|
8521
8530
|
role: "tooltip",
|
|
8522
|
-
onMouseenter:
|
|
8523
|
-
onMouseleave:
|
|
8531
|
+
onMouseenter: Me,
|
|
8532
|
+
onMouseleave: I
|
|
8524
8533
|
}, {
|
|
8525
8534
|
default: _(() => [
|
|
8526
|
-
s("div",
|
|
8535
|
+
s("div", {
|
|
8536
|
+
class: V(["image-zoom__preview-wrapper", { "image-zoom__preview-wrapper--full": $.value }])
|
|
8537
|
+
}, [
|
|
8527
8538
|
s("div", {
|
|
8528
|
-
class: "image-zoom__preview",
|
|
8539
|
+
class: V(["image-zoom__preview", { "image-zoom__preview--full": $.value }]),
|
|
8529
8540
|
ref_key: "preview",
|
|
8530
8541
|
ref: a
|
|
8531
8542
|
}, [
|
|
8532
8543
|
s("img", {
|
|
8533
|
-
class: "image-zoom__preview-image",
|
|
8544
|
+
class: V(["image-zoom__preview-image", { "image-zoom__preview-image--full": $.value }]),
|
|
8534
8545
|
src: e.src,
|
|
8535
8546
|
alt: e.alt,
|
|
8536
|
-
style: Se(
|
|
8547
|
+
style: Se(h.value),
|
|
8537
8548
|
draggable: "false"
|
|
8538
|
-
}, null,
|
|
8539
|
-
],
|
|
8540
|
-
])
|
|
8549
|
+
}, null, 14, fr)
|
|
8550
|
+
], 2)
|
|
8551
|
+
], 2)
|
|
8541
8552
|
]),
|
|
8542
8553
|
_: 1
|
|
8543
|
-
}, 8, ["id", "modelValue", "hover-delay", "close-timeout"])
|
|
8554
|
+
}, 8, ["id", "modelValue", "hover-delay", "close-timeout", "class"])
|
|
8544
8555
|
], 8, mr));
|
|
8545
8556
|
}
|
|
8546
8557
|
});
|
|
8547
8558
|
export {
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8559
|
+
Br as Accordion,
|
|
8560
|
+
kr as AccordionItem,
|
|
8561
|
+
Or as AssetUploader,
|
|
8551
8562
|
So as AutoSuggest,
|
|
8552
8563
|
sa as BaseButton,
|
|
8553
|
-
|
|
8564
|
+
Qr as BaseCamera,
|
|
8554
8565
|
ls as BaseCarousel,
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8566
|
+
Yr as BaseForm,
|
|
8567
|
+
Cr as BaseHeadline,
|
|
8568
|
+
Te as BaseImage,
|
|
8569
|
+
We as BaseInput,
|
|
8559
8570
|
ei as BaseMap,
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8571
|
+
Sr as BaseParagraph,
|
|
8572
|
+
Xr as CanvasConfetti,
|
|
8573
|
+
Pr as CheckGroup,
|
|
8574
|
+
Hr as ColorPalette,
|
|
8575
|
+
Er as CustomHtml,
|
|
8576
|
+
_r as DomRenderer,
|
|
8566
8577
|
vi as FileUpload,
|
|
8567
|
-
|
|
8578
|
+
Ur as HintSystem,
|
|
8568
8579
|
Fi as ImageCrop,
|
|
8569
8580
|
tA as ImageCropResize,
|
|
8570
8581
|
zi as ImageResize,
|
|
8571
8582
|
fA as ImageUpload,
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8583
|
+
Kr as ImageZoom,
|
|
8584
|
+
Lr as InputCheckbox,
|
|
8585
|
+
Nr as InputColor,
|
|
8586
|
+
Dr as InputDatepicker,
|
|
8587
|
+
Ir as InputDatetime,
|
|
8577
8588
|
Lt as InputDropdown,
|
|
8578
8589
|
Mt as InputFile,
|
|
8579
|
-
|
|
8590
|
+
Vr as InputPasscode,
|
|
8580
8591
|
vl as InputPassword,
|
|
8581
|
-
|
|
8582
|
-
|
|
8592
|
+
Mr as InputTextarea,
|
|
8593
|
+
Gr as LinkSharing,
|
|
8583
8594
|
rt as LoadingSpinner,
|
|
8584
|
-
|
|
8595
|
+
Rr as LocationFinder,
|
|
8585
8596
|
ri as LocationList,
|
|
8586
|
-
|
|
8597
|
+
Fr as MediaThumbnails,
|
|
8587
8598
|
AA as ModalDialog,
|
|
8588
8599
|
ct as PopoverDialog,
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8600
|
+
qr as PopoverNotifications,
|
|
8601
|
+
jr as PopoverTooltip,
|
|
8602
|
+
Wr as ProgressSteps,
|
|
8603
|
+
Jr as QrCode,
|
|
8604
|
+
xr as RadioButtons,
|
|
8594
8605
|
dt as RadioGroup,
|
|
8595
|
-
|
|
8596
|
-
|
|
8606
|
+
zr as RteEditor,
|
|
8607
|
+
Tr as SelectMedia,
|
|
8597
8608
|
$i as SortableList,
|
|
8598
8609
|
Q as SvgIcon,
|
|
8599
|
-
|
|
8610
|
+
Zr as TouchWrapper,
|
|
8600
8611
|
CA as UploadGroup,
|
|
8601
8612
|
ko as useCameraFilter,
|
|
8602
8613
|
MA as useDirections,
|