ablok-components 0.3.54 → 0.3.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ablok-components.css +1 -1
- package/dist/ablok-components.es.js +787 -784
- package/dist/ablok-components.umd.js +4 -4
- package/dist/i18n.d.ts +4 -0
- package/dist/locales/en.d.ts +4 -0
- package/package.json +1 -1
|
@@ -119,14 +119,14 @@ const Rt = {
|
|
|
119
119
|
setup(e, { emit: r }) {
|
|
120
120
|
const n = e, l = r, a = et("image"), t = C(!1);
|
|
121
121
|
function o() {
|
|
122
|
-
t.value = !0, a.value?.addEventListener("transitionend",
|
|
122
|
+
t.value = !0, a.value?.addEventListener("transitionend", i, { once: !0 });
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function i() {
|
|
125
125
|
l("update:ready", !0), n.emitPending && l("update:pending", !1);
|
|
126
126
|
}
|
|
127
127
|
return ot(() => {
|
|
128
128
|
n.emitPending && l("update:pending", !0);
|
|
129
|
-
}), (
|
|
129
|
+
}), (u, m) => e.src ? (c(), g("div", {
|
|
130
130
|
key: 0,
|
|
131
131
|
class: D(["base-image", {
|
|
132
132
|
"base-image--zoom": e.zoom
|
|
@@ -146,7 +146,7 @@ const Rt = {
|
|
|
146
146
|
}, null, 42, Ut)
|
|
147
147
|
], 2)) : M("", !0);
|
|
148
148
|
}
|
|
149
|
-
}), jt = ["innerHTML"],
|
|
149
|
+
}), jt = ["innerHTML"], Br = /* @__PURE__ */ O({
|
|
150
150
|
__name: "base-headline",
|
|
151
151
|
props: {
|
|
152
152
|
tag: {},
|
|
@@ -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"], Mr = /* @__PURE__ */ O({
|
|
193
193
|
__name: "base-paragraph",
|
|
194
194
|
props: {
|
|
195
195
|
size: {},
|
|
@@ -259,12 +259,12 @@ function St(e, r, n, l = "image/png", a) {
|
|
|
259
259
|
async function Yt(e, r, n) {
|
|
260
260
|
const l = (e.type || "").toLowerCase();
|
|
261
261
|
if (!(l.startsWith("image/") && l !== "image/svg+xml")) return e;
|
|
262
|
-
const t = await Ke(e), o = await Gt(t),
|
|
263
|
-
if (!
|
|
264
|
-
const m = Math.round(r),
|
|
262
|
+
const t = await Ke(e), o = await Gt(t), i = o.naturalWidth, u = o.naturalHeight;
|
|
263
|
+
if (!i || i <= r) return e;
|
|
264
|
+
const m = Math.round(r), d = u / i, s = Math.round(m * d), f = St(
|
|
265
265
|
o,
|
|
266
266
|
m,
|
|
267
|
-
|
|
267
|
+
s,
|
|
268
268
|
e.type || "image/png",
|
|
269
269
|
n
|
|
270
270
|
);
|
|
@@ -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"], Ir = /* @__PURE__ */ O({
|
|
277
277
|
__name: "accordion-item",
|
|
278
278
|
props: {
|
|
279
279
|
id: {
|
|
@@ -307,7 +307,7 @@ const Zt = { class: "accordion-item" }, Xt = ["id"], Kt = ["data-bs-target", "ar
|
|
|
307
307
|
function t() {
|
|
308
308
|
l("update:modelValue", !n.modelValue);
|
|
309
309
|
}
|
|
310
|
-
return (o,
|
|
310
|
+
return (o, i) => (c(), g("div", Zt, [
|
|
311
311
|
A("div", {
|
|
312
312
|
class: "accordion-header",
|
|
313
313
|
id: `heading-${e.id}`
|
|
@@ -353,7 +353,7 @@ function ia(e, r) {
|
|
|
353
353
|
N(e.$slots, "default")
|
|
354
354
|
]);
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const Lr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"], Aa = /* @__PURE__ */ O({
|
|
357
357
|
__name: "base-button",
|
|
358
358
|
props: {
|
|
359
359
|
type: {
|
|
@@ -526,48 +526,48 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["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 = C(n.valid), o = C(),
|
|
529
|
+
const n = e, l = r, a = et("input"), t = C(n.valid), o = C(), i = $(
|
|
530
530
|
() => re(`${n.label}${n.required ? " *" : ""}`)
|
|
531
|
-
),
|
|
531
|
+
), u = $({
|
|
532
532
|
get() {
|
|
533
533
|
return n.modelValue;
|
|
534
534
|
},
|
|
535
|
-
set(
|
|
536
|
-
|
|
535
|
+
set(s) {
|
|
536
|
+
s = n.type === "number" ? n.max && Number(s) > n.max ? n.max : n.min !== void 0 && Number(s) < n.min ? n.min : Number(s) : s, n.sanitize && typeof s == "string" && !["checkbox", "radio", "number", "date", "datetime-local", "time", "month", "week", "email", "tel", "url"].includes(n.type) && (s = Bt(s)), l("update:modelValue", s);
|
|
537
537
|
}
|
|
538
538
|
}), m = $(() => {
|
|
539
539
|
if (n.type === "number") {
|
|
540
|
-
const { min:
|
|
540
|
+
const { min: s, max: f } = n;
|
|
541
541
|
return {
|
|
542
|
-
...
|
|
542
|
+
...s !== void 0 ? { min: s } : {},
|
|
543
543
|
...f !== void 0 ? { max: f } : {}
|
|
544
544
|
};
|
|
545
545
|
}
|
|
546
546
|
return {};
|
|
547
547
|
});
|
|
548
|
-
function
|
|
548
|
+
function d() {
|
|
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
551
|
return W(() => n.modelValue, () => {
|
|
552
|
-
t.value === !1 &&
|
|
552
|
+
t.value === !1 && d();
|
|
553
553
|
}), ne(() => {
|
|
554
|
-
let
|
|
555
|
-
|
|
554
|
+
let s = (f) => {
|
|
555
|
+
u.value = typeof f.detail == "string" || typeof f.detail == "number" ? `${f.detail}` : "";
|
|
556
556
|
};
|
|
557
557
|
a.value?.addEventListener("focusin", (f) => {
|
|
558
|
-
window.addEventListener("update-focussed-input",
|
|
558
|
+
window.addEventListener("update-focussed-input", s);
|
|
559
559
|
}), a.value?.addEventListener("focusout", (f) => {
|
|
560
|
-
window.removeEventListener("update-focussed-input",
|
|
561
|
-
}),
|
|
562
|
-
}), (
|
|
560
|
+
window.removeEventListener("update-focussed-input", s);
|
|
561
|
+
}), d();
|
|
562
|
+
}), (s, f) => (c(), g("div", {
|
|
563
563
|
class: D(["input", `input--${e.type}${t.value ? "" : " input--invalid"}`])
|
|
564
564
|
}, [
|
|
565
565
|
A("div", ra, [
|
|
566
|
-
N(
|
|
566
|
+
N(s.$slots, "input-prepend", { slotScope: "props" }),
|
|
567
567
|
ye(A("input", wt({
|
|
568
568
|
ref_key: "input",
|
|
569
569
|
ref: a,
|
|
570
|
-
"onUpdate:modelValue": f[0] || (f[0] = (v) =>
|
|
570
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => u.value = v),
|
|
571
571
|
type: e.type === "color" ? "text" : e.type,
|
|
572
572
|
id: e.id,
|
|
573
573
|
name: e.name,
|
|
@@ -586,20 +586,20 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
586
586
|
"aria-label": e.label,
|
|
587
587
|
role: e.role,
|
|
588
588
|
autocomplete: e.autocomplete,
|
|
589
|
-
onChange:
|
|
589
|
+
onChange: d
|
|
590
590
|
}), null, 16, ua), [
|
|
591
|
-
[Et,
|
|
591
|
+
[Et, u.value]
|
|
592
592
|
]),
|
|
593
|
-
N(
|
|
593
|
+
N(s.$slots, "input-append", { slotScope: "props" })
|
|
594
594
|
]),
|
|
595
|
-
N(
|
|
595
|
+
N(s.$slots, "label", {}, () => [
|
|
596
596
|
e.label ? (c(), g("label", {
|
|
597
597
|
key: 0,
|
|
598
598
|
for: e.id,
|
|
599
599
|
class: D(["input__label", {
|
|
600
600
|
"form-check-label": e.type === "checkbox"
|
|
601
601
|
}]),
|
|
602
|
-
innerHTML:
|
|
602
|
+
innerHTML: i.value
|
|
603
603
|
}, null, 10, da)) : M("", !0)
|
|
604
604
|
]),
|
|
605
605
|
I(tt, { name: "fade" }, {
|
|
@@ -610,7 +610,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
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"], Dr = /* @__PURE__ */ O({
|
|
614
614
|
__name: "input-textarea",
|
|
615
615
|
props: {
|
|
616
616
|
modelValue: {
|
|
@@ -682,7 +682,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
682
682
|
return (t, o) => (c(), g("div", ma, [
|
|
683
683
|
N(t.$slots, "input-prepend"),
|
|
684
684
|
ye(A("textarea", {
|
|
685
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
685
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
686
686
|
type: e.type,
|
|
687
687
|
id: e.id,
|
|
688
688
|
name: e.name,
|
|
@@ -709,7 +709,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["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"], Vr = /* @__PURE__ */ O({
|
|
713
713
|
__name: "input-checkbox",
|
|
714
714
|
props: {
|
|
715
715
|
id: {
|
|
@@ -767,7 +767,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
767
767
|
return (t, o) => (c(), g("div", va, [
|
|
768
768
|
ye(A("input", {
|
|
769
769
|
ref: "input",
|
|
770
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
770
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
771
771
|
value: e.value,
|
|
772
772
|
id: e.id,
|
|
773
773
|
name: e.name,
|
|
@@ -787,7 +787,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["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"], Pr = /* @__PURE__ */ O({
|
|
791
791
|
__name: "input-datetime",
|
|
792
792
|
props: {
|
|
793
793
|
modelValue: {
|
|
@@ -853,7 +853,7 @@ const Mr = /* @__PURE__ */ na(la, [["render", ia]]), sa = ["type", "disabled"],
|
|
|
853
853
|
A("div", ya, [
|
|
854
854
|
N(t.$slots, "input-prepend", { slotScope: "props" }),
|
|
855
855
|
ye(A("input", {
|
|
856
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
856
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
857
857
|
type: "datetime-local",
|
|
858
858
|
id: e.id,
|
|
859
859
|
name: e.name,
|
|
@@ -891,11 +891,11 @@ function se(e) {
|
|
|
891
891
|
const l = n?.context ? String(n.context) : "standalone";
|
|
892
892
|
let a;
|
|
893
893
|
if (l === "formatting" && e.formattingValues) {
|
|
894
|
-
const o = e.defaultFormattingWidth || e.defaultWidth,
|
|
895
|
-
a = e.formattingValues[
|
|
894
|
+
const o = e.defaultFormattingWidth || e.defaultWidth, i = n?.width ? String(n.width) : o;
|
|
895
|
+
a = e.formattingValues[i] || e.formattingValues[o];
|
|
896
896
|
} else {
|
|
897
|
-
const o = e.defaultWidth,
|
|
898
|
-
a = e.values[
|
|
897
|
+
const o = e.defaultWidth, i = n?.width ? String(n.width) : e.defaultWidth;
|
|
898
|
+
a = e.values[i] || e.values[o];
|
|
899
899
|
}
|
|
900
900
|
const t = e.argumentCallback ? e.argumentCallback(r) : r;
|
|
901
901
|
return a[t];
|
|
@@ -906,17 +906,17 @@ function Ae(e) {
|
|
|
906
906
|
const l = n.width, a = l && e.matchPatterns[l] || e.matchPatterns[e.defaultMatchWidth], t = r.match(a);
|
|
907
907
|
if (!t)
|
|
908
908
|
return null;
|
|
909
|
-
const o = t[0],
|
|
909
|
+
const o = t[0], i = l && e.parsePatterns[l] || e.parsePatterns[e.defaultParseWidth], u = Array.isArray(i) ? Ca(i, (s) => s.test(o)) : (
|
|
910
910
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
911
|
-
$a(
|
|
911
|
+
$a(i, (s) => s.test(o))
|
|
912
912
|
);
|
|
913
913
|
let m;
|
|
914
|
-
m = e.valueCallback ? e.valueCallback(
|
|
914
|
+
m = e.valueCallback ? e.valueCallback(u) : u, m = n.valueCallback ? (
|
|
915
915
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
|
|
916
916
|
n.valueCallback(m)
|
|
917
917
|
) : m;
|
|
918
|
-
const
|
|
919
|
-
return { value: m, rest:
|
|
918
|
+
const d = r.slice(o.length);
|
|
919
|
+
return { value: m, rest: d };
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
function $a(e, r) {
|
|
@@ -937,8 +937,8 @@ function ut(e) {
|
|
|
937
937
|
if (!t) return null;
|
|
938
938
|
let o = e.valueCallback ? e.valueCallback(t[0]) : t[0];
|
|
939
939
|
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
940
|
-
const
|
|
941
|
-
return { value: o, rest:
|
|
940
|
+
const i = r.slice(a.length);
|
|
941
|
+
return { value: o, rest: i };
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
944
|
const vt = {
|
|
@@ -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" }, xr = /* @__PURE__ */ O({
|
|
2120
2120
|
__name: "input-datepicker",
|
|
2121
2121
|
props: {
|
|
2122
2122
|
modelValue: {
|
|
@@ -2195,14 +2195,14 @@ const vt = {
|
|
|
2195
2195
|
const { VueDatePicker: p } = await import("@vuepic/vue-datepicker");
|
|
2196
2196
|
n.value = p;
|
|
2197
2197
|
});
|
|
2198
|
-
const l = e, a = r, { t, locale: o } = st(),
|
|
2198
|
+
const l = e, a = r, { t, locale: o } = st(), i = {
|
|
2199
2199
|
en: pt,
|
|
2200
2200
|
de: Xa,
|
|
2201
2201
|
fr: ll
|
|
2202
|
-
},
|
|
2202
|
+
}, u = $(() => {
|
|
2203
2203
|
const p = l.locale || o.value;
|
|
2204
|
-
return
|
|
2205
|
-
}), m = $(() => l.inline || !l.picker ? { openMenu: !1, format:
|
|
2204
|
+
return i[p] || pt;
|
|
2205
|
+
}), m = $(() => l.inline || !l.picker ? { openMenu: !1, format: u.value } : !0), d = $({
|
|
2206
2206
|
get() {
|
|
2207
2207
|
if (l.range) {
|
|
2208
2208
|
let p = l.from || (Array.isArray(l.modelValue) ? l.modelValue[0] : null), h = l.to || (Array.isArray(l.modelValue) ? l.modelValue[1] : null);
|
|
@@ -2231,29 +2231,29 @@ const vt = {
|
|
|
2231
2231
|
h?.setUTCHours(h?.getHours()), p = h && h.toISOString(), a("update:modelValue", p && p.replace("Z", ""));
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
}),
|
|
2234
|
+
}), s = $({
|
|
2235
2235
|
get() {
|
|
2236
|
-
return Array.isArray(
|
|
2236
|
+
return Array.isArray(d.value) ? d.value[0] : d.value;
|
|
2237
2237
|
},
|
|
2238
2238
|
set(p) {
|
|
2239
|
-
|
|
2239
|
+
d.value = Array.isArray(d.value) ? [p, d.value[0]] : p;
|
|
2240
2240
|
}
|
|
2241
2241
|
}), f = $({
|
|
2242
2242
|
get() {
|
|
2243
|
-
return Array.isArray(
|
|
2243
|
+
return Array.isArray(d.value) ? d.value[1] : d.value;
|
|
2244
2244
|
},
|
|
2245
2245
|
set(p) {
|
|
2246
|
-
|
|
2246
|
+
d.value = Array.isArray(d.value) ? [d.value[0], p] : p;
|
|
2247
2247
|
}
|
|
2248
2248
|
});
|
|
2249
|
-
W(() => [
|
|
2250
|
-
l.range && p.some((k) => k === void 0) && h.every(Boolean) && (
|
|
2249
|
+
W(() => [s.value, f.value], (p, h) => {
|
|
2250
|
+
l.range && p.some((k) => k === void 0) && h.every(Boolean) && (d.value = []);
|
|
2251
2251
|
});
|
|
2252
2252
|
function v(p) {
|
|
2253
2253
|
if (!p)
|
|
2254
2254
|
return;
|
|
2255
2255
|
const h = p.getDate(), k = p.getMonth() + 1, P = p.getFullYear(), B = p.getMinutes(), z = p.getHours();
|
|
2256
|
-
switch (
|
|
2256
|
+
switch (u.value) {
|
|
2257
2257
|
case "de":
|
|
2258
2258
|
return `${h}.${k}.${P} ${z < 10 ? "0" + z : z}:${B < 10 ? "0" + B : B}`;
|
|
2259
2259
|
case "fr":
|
|
@@ -2293,9 +2293,9 @@ const vt = {
|
|
|
2293
2293
|
A("div", dl, [
|
|
2294
2294
|
(c(), U(ce(n.value), {
|
|
2295
2295
|
uid: `${e.id}-from`,
|
|
2296
|
-
modelValue:
|
|
2297
|
-
"onUpdate:modelValue": h[0] || (h[0] = (k) =>
|
|
2298
|
-
locale:
|
|
2296
|
+
modelValue: s.value,
|
|
2297
|
+
"onUpdate:modelValue": h[0] || (h[0] = (k) => s.value = k),
|
|
2298
|
+
locale: u.value,
|
|
2299
2299
|
format: V,
|
|
2300
2300
|
"text-input": m.value,
|
|
2301
2301
|
disabled: e.disabled,
|
|
@@ -2309,7 +2309,7 @@ const vt = {
|
|
|
2309
2309
|
uid: `${e.id}-to`,
|
|
2310
2310
|
modelValue: f.value,
|
|
2311
2311
|
"onUpdate:modelValue": h[1] || (h[1] = (k) => f.value = k),
|
|
2312
|
-
locale:
|
|
2312
|
+
locale: u.value,
|
|
2313
2313
|
format: V,
|
|
2314
2314
|
"text-input": m.value,
|
|
2315
2315
|
disabled: e.disabled,
|
|
@@ -2321,10 +2321,10 @@ const vt = {
|
|
|
2321
2321
|
])) : (c(), U(ce(n.value), {
|
|
2322
2322
|
key: 1,
|
|
2323
2323
|
uid: `${e.id}-input-to`,
|
|
2324
|
-
modelValue:
|
|
2325
|
-
"onUpdate:modelValue": h[2] || (h[2] = (k) =>
|
|
2324
|
+
modelValue: d.value,
|
|
2325
|
+
"onUpdate:modelValue": h[2] || (h[2] = (k) => d.value = k),
|
|
2326
2326
|
format: V,
|
|
2327
|
-
locale:
|
|
2327
|
+
locale: u.value,
|
|
2328
2328
|
range: e.textRange,
|
|
2329
2329
|
"text-input": m.value,
|
|
2330
2330
|
disabled: e.disabled,
|
|
@@ -2339,9 +2339,9 @@ const vt = {
|
|
|
2339
2339
|
A("div", fl, [
|
|
2340
2340
|
(c(), U(ce(n.value), {
|
|
2341
2341
|
uid: `${e.id}-inline`,
|
|
2342
|
-
modelValue:
|
|
2343
|
-
"onUpdate:modelValue": h[3] || (h[3] = (k) =>
|
|
2344
|
-
locale:
|
|
2342
|
+
modelValue: d.value,
|
|
2343
|
+
"onUpdate:modelValue": h[3] || (h[3] = (k) => d.value = k),
|
|
2344
|
+
locale: u.value,
|
|
2345
2345
|
cancelText: "abbrechen",
|
|
2346
2346
|
selectText: "auswählen",
|
|
2347
2347
|
range: e.range,
|
|
@@ -2444,7 +2444,7 @@ const vt = {
|
|
|
2444
2444
|
A("div", gl, [
|
|
2445
2445
|
I(We, {
|
|
2446
2446
|
modelValue: a.value,
|
|
2447
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2447
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
2448
2448
|
type: "password",
|
|
2449
2449
|
placeholder: e.placeholder,
|
|
2450
2450
|
disabled: e.disabled,
|
|
@@ -2452,10 +2452,10 @@ const vt = {
|
|
|
2452
2452
|
required: e.required,
|
|
2453
2453
|
label: e.label
|
|
2454
2454
|
}, {
|
|
2455
|
-
"input-prepend": _((
|
|
2455
|
+
"input-prepend": _((i) => [
|
|
2456
2456
|
N(t.$slots, "input-prepend", { slotScope: "props" })
|
|
2457
2457
|
]),
|
|
2458
|
-
"input-append": _((
|
|
2458
|
+
"input-append": _((i) => [
|
|
2459
2459
|
N(t.$slots, "input-append", { slotScope: "props" }, () => [
|
|
2460
2460
|
e.confirm && e.modelValue === e.password ? (c(), U(Q, {
|
|
2461
2461
|
key: 0,
|
|
@@ -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"], Er = /* @__PURE__ */ O({
|
|
2473
2473
|
__name: "input-passcode",
|
|
2474
2474
|
props: {
|
|
2475
2475
|
modelValue: {
|
|
@@ -2546,38 +2546,38 @@ const vt = {
|
|
|
2546
2546
|
get() {
|
|
2547
2547
|
return a.modelValue;
|
|
2548
2548
|
},
|
|
2549
|
-
set(
|
|
2550
|
-
a.passcodeMatch ===
|
|
2549
|
+
set(d) {
|
|
2550
|
+
a.passcodeMatch === d || !a.passcodeMatch ? t("update:modelValue", d) : t("update:modelValue", "");
|
|
2551
2551
|
}
|
|
2552
2552
|
});
|
|
2553
|
-
W(() => a.modelValue, (
|
|
2554
|
-
const
|
|
2555
|
-
for (l.value =
|
|
2553
|
+
W(() => a.modelValue, (d) => {
|
|
2554
|
+
const s = d?.toString() || "";
|
|
2555
|
+
for (l.value = s.split("").slice(0, a.passcodeMatch?.length || 6); l.value.length < (a.passcodeMatch?.length || 6); )
|
|
2556
2556
|
l.value.push("");
|
|
2557
|
-
}, { immediate: !0 }), W(() => l.value, (
|
|
2558
|
-
const
|
|
2559
|
-
a.passcodeMatch ===
|
|
2557
|
+
}, { immediate: !0 }), W(() => l.value, (d) => {
|
|
2558
|
+
const s = d.join("");
|
|
2559
|
+
a.passcodeMatch === s || !a.passcodeMatch ? t("update:modelValue", s) : t("update:modelValue", "");
|
|
2560
2560
|
}, { deep: !0 });
|
|
2561
|
-
const
|
|
2562
|
-
|
|
2563
|
-
const f =
|
|
2561
|
+
const i = (d, s) => {
|
|
2562
|
+
d.preventDefault();
|
|
2563
|
+
const f = d.clipboardData?.getData("text") || "";
|
|
2564
2564
|
console.log("Paste detected:", f);
|
|
2565
2565
|
const v = f.split(""), b = a.passcodeMatch?.length || 6;
|
|
2566
2566
|
v.forEach((V, p) => {
|
|
2567
|
-
const h =
|
|
2567
|
+
const h = s + p;
|
|
2568
2568
|
h < b && (l.value[h] = V);
|
|
2569
2569
|
});
|
|
2570
|
-
const w = Math.min(
|
|
2570
|
+
const w = Math.min(s + v.length, b - 1);
|
|
2571
2571
|
setTimeout(() => n.value[w]?.focus(), 0);
|
|
2572
|
-
},
|
|
2573
|
-
a.passcodeMatch?.length,
|
|
2574
|
-
}, m = (
|
|
2575
|
-
let v =
|
|
2576
|
-
v.length > 1 && (v = v.slice(-1)), l.value[
|
|
2572
|
+
}, u = (d, s) => {
|
|
2573
|
+
a.passcodeMatch?.length, d.key === "Backspace" && !l.value[s] && s > 0 && n.value[s - 1]?.focus();
|
|
2574
|
+
}, m = (d, s) => {
|
|
2575
|
+
let v = d.target.value;
|
|
2576
|
+
v.length > 1 && (v = v.slice(-1)), l.value[s] = v;
|
|
2577
2577
|
const b = a.passcodeMatch?.length || 6;
|
|
2578
|
-
v &&
|
|
2578
|
+
v && s < b - 1 && setTimeout(() => n.value[s + 1]?.focus(), 0);
|
|
2579
2579
|
};
|
|
2580
|
-
return (
|
|
2580
|
+
return (d, s) => (c(), g("div", {
|
|
2581
2581
|
class: D(["input", "input-passcode"])
|
|
2582
2582
|
}, [
|
|
2583
2583
|
A("div", pl, [
|
|
@@ -2590,9 +2590,9 @@ const vt = {
|
|
|
2590
2590
|
maxlength: 1,
|
|
2591
2591
|
disabled: e.disabled,
|
|
2592
2592
|
readonly: e.readOnly,
|
|
2593
|
-
onPaste: (b) =>
|
|
2593
|
+
onPaste: (b) => i(b, v),
|
|
2594
2594
|
onInput: (b) => m(b, v),
|
|
2595
|
-
onKeydown: (b) =>
|
|
2595
|
+
onKeydown: (b) => u(b, v),
|
|
2596
2596
|
size: "1",
|
|
2597
2597
|
class: "form-control text-center"
|
|
2598
2598
|
}, null, 40, hl)), [
|
|
@@ -2600,7 +2600,7 @@ const vt = {
|
|
|
2600
2600
|
])), 128)) : (c(), U(vl, {
|
|
2601
2601
|
key: 0,
|
|
2602
2602
|
modelValue: o.value,
|
|
2603
|
-
"onUpdate:modelValue":
|
|
2603
|
+
"onUpdate:modelValue": s[0] || (s[0] = (f) => o.value = f),
|
|
2604
2604
|
type: e.type,
|
|
2605
2605
|
placeholder: e.placeholder,
|
|
2606
2606
|
disabled: e.disabled,
|
|
@@ -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"], Tr = /* @__PURE__ */ O({
|
|
2615
2615
|
__name: "check-group",
|
|
2616
2616
|
props: {
|
|
2617
2617
|
modelValue: {
|
|
@@ -2665,18 +2665,18 @@ const vt = {
|
|
|
2665
2665
|
...o,
|
|
2666
2666
|
active: n.modelValue && n.modelValue.includes(o.value)
|
|
2667
2667
|
})));
|
|
2668
|
-
return (o,
|
|
2669
|
-
(c(!0), g(ae, null, ue(t.value, (
|
|
2668
|
+
return (o, i) => (c(), g("div", yl, [
|
|
2669
|
+
(c(!0), g(ae, null, ue(t.value, (u, m) => (c(), g("div", {
|
|
2670
2670
|
key: m,
|
|
2671
2671
|
class: "form-check"
|
|
2672
2672
|
}, [
|
|
2673
2673
|
ye(A("input", {
|
|
2674
2674
|
type: "checkbox",
|
|
2675
|
-
"onUpdate:modelValue":
|
|
2675
|
+
"onUpdate:modelValue": i[0] || (i[0] = (d) => a.value = d),
|
|
2676
2676
|
id: `${e.id}-${m}`,
|
|
2677
2677
|
name: e.name,
|
|
2678
2678
|
class: "form-check-input",
|
|
2679
|
-
value:
|
|
2679
|
+
value: u.value || u,
|
|
2680
2680
|
disabled: e.disabled,
|
|
2681
2681
|
"read-only": e.readOnly,
|
|
2682
2682
|
required: e.required
|
|
@@ -2686,7 +2686,7 @@ const vt = {
|
|
|
2686
2686
|
A("label", {
|
|
2687
2687
|
class: "form-check-label",
|
|
2688
2688
|
for: `${e.id}-${m}`,
|
|
2689
|
-
innerHTML:
|
|
2689
|
+
innerHTML: u.text
|
|
2690
2690
|
}, null, 8, wl)
|
|
2691
2691
|
]))), 128))
|
|
2692
2692
|
]));
|
|
@@ -2745,32 +2745,32 @@ const vt = {
|
|
|
2745
2745
|
n("update:modelValue", a);
|
|
2746
2746
|
}
|
|
2747
2747
|
return (a, t) => (c(), g("div", $l, [
|
|
2748
|
-
(c(!0), g(ae, null, ue(e.options, (o,
|
|
2749
|
-
key:
|
|
2748
|
+
(c(!0), g(ae, null, ue(e.options, (o, i) => (c(), g("div", {
|
|
2749
|
+
key: i,
|
|
2750
2750
|
class: D(["form-check", e.itemClass])
|
|
2751
2751
|
}, [
|
|
2752
2752
|
A("input", {
|
|
2753
2753
|
type: "radio",
|
|
2754
|
-
id: `${e.id}-${
|
|
2754
|
+
id: `${e.id}-${i}`,
|
|
2755
2755
|
name: e.name,
|
|
2756
2756
|
class: D(["form-check-input", `
|
|
2757
|
-
${
|
|
2758
|
-
${(
|
|
2757
|
+
${i === e.keyOption || o.key ? "form-check-input--key" : ""}
|
|
2758
|
+
${(i === e.keyOption || o.key) && o.value === e.modelValue?.value ? "form-check-input--match" : ""}
|
|
2759
2759
|
`]),
|
|
2760
2760
|
value: o.value || o,
|
|
2761
2761
|
checked: o.value ? o.value === e.modelValue?.value : o === e.modelValue,
|
|
2762
2762
|
disabled: e.disabled,
|
|
2763
2763
|
"read-only": e.readOnly,
|
|
2764
2764
|
required: e.required,
|
|
2765
|
-
onChange: (
|
|
2765
|
+
onChange: (u) => l(o)
|
|
2766
2766
|
}, null, 42, Cl),
|
|
2767
2767
|
N(a.$slots, "option-label", {
|
|
2768
2768
|
option: o,
|
|
2769
|
-
index:
|
|
2769
|
+
index: i
|
|
2770
2770
|
}, () => [
|
|
2771
2771
|
A("label", {
|
|
2772
2772
|
class: "form-check-label",
|
|
2773
|
-
for: `${e.id}-${
|
|
2773
|
+
for: `${e.id}-${i}`,
|
|
2774
2774
|
innerHTML: q(re)(o.text || "")
|
|
2775
2775
|
}, null, 8, kl)
|
|
2776
2776
|
])
|
|
@@ -2783,7 +2783,7 @@ const vt = {
|
|
|
2783
2783
|
])
|
|
2784
2784
|
]));
|
|
2785
2785
|
}
|
|
2786
|
-
}), Bl = { class: "radio-buttons" }, Ml = ["for"],
|
|
2786
|
+
}), Bl = { class: "radio-buttons" }, Ml = ["for"], zr = /* @__PURE__ */ O({
|
|
2787
2787
|
__name: "radio-buttons",
|
|
2788
2788
|
props: {
|
|
2789
2789
|
modelValue: {
|
|
@@ -2835,7 +2835,7 @@ const vt = {
|
|
|
2835
2835
|
return (t, o) => (c(), g("div", Bl, [
|
|
2836
2836
|
I(dt, {
|
|
2837
2837
|
modelValue: a.value,
|
|
2838
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
2838
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
2839
2839
|
options: e.options,
|
|
2840
2840
|
name: e.name,
|
|
2841
2841
|
id: e.id,
|
|
@@ -2843,12 +2843,12 @@ const vt = {
|
|
|
2843
2843
|
required: e.required,
|
|
2844
2844
|
class: "d-flex flex-column gap-3 justify-content-center"
|
|
2845
2845
|
}, {
|
|
2846
|
-
"option-label": _((
|
|
2846
|
+
"option-label": _((i) => [
|
|
2847
2847
|
A("label", {
|
|
2848
|
-
for: `${e.id}-${
|
|
2848
|
+
for: `${e.id}-${i.index}`,
|
|
2849
2849
|
class: "d-block btn btn-outline-primary p-3 fw-bold",
|
|
2850
2850
|
role: "button"
|
|
2851
|
-
}, T(
|
|
2851
|
+
}, T(i.option.text), 9, Ml)
|
|
2852
2852
|
]),
|
|
2853
2853
|
_: 1
|
|
2854
2854
|
}, 8, ["modelValue", "options", "name", "id", "disabled", "required"])
|
|
@@ -2916,22 +2916,22 @@ const vt = {
|
|
|
2916
2916
|
emits: ["update:modelValue"],
|
|
2917
2917
|
setup(e, { emit: r }) {
|
|
2918
2918
|
const n = e, l = r;
|
|
2919
|
-
function a(
|
|
2920
|
-
const m =
|
|
2921
|
-
m && (o.splice(0, o.length), Array.from(m).forEach((
|
|
2922
|
-
if (n.maxFileSize &&
|
|
2923
|
-
console.warn(`File ${
|
|
2919
|
+
function a(u) {
|
|
2920
|
+
const m = u.target && u.target.files;
|
|
2921
|
+
m && (o.splice(0, o.length), Array.from(m).forEach((d) => {
|
|
2922
|
+
if (n.maxFileSize && d.size > n.maxFileSize) {
|
|
2923
|
+
console.warn(`File ${d.name} exceeds the ${n.maxFileSize} bytes size limit and will not be added.`);
|
|
2924
2924
|
return;
|
|
2925
2925
|
}
|
|
2926
|
-
o.push(
|
|
2926
|
+
o.push(d);
|
|
2927
2927
|
}));
|
|
2928
2928
|
}
|
|
2929
|
-
const t = C(), o = Tt([]),
|
|
2930
|
-
return W(() => n.modelValue, (
|
|
2931
|
-
|
|
2932
|
-
}, { deep: !0 }), W(() => o, (
|
|
2933
|
-
l("update:modelValue",
|
|
2934
|
-
}, { deep: !0 }), (
|
|
2929
|
+
const t = C(), o = Tt([]), i = $(() => o && o.map((u) => u.name));
|
|
2930
|
+
return W(() => n.modelValue, (u, m) => {
|
|
2931
|
+
u.length === 0 && (t.value.value = null);
|
|
2932
|
+
}, { deep: !0 }), W(() => o, (u, m) => {
|
|
2933
|
+
l("update:modelValue", u);
|
|
2934
|
+
}, { deep: !0 }), (u, m) => (c(), g("div", {
|
|
2935
2935
|
class: D(["input input-file", "input-file--primary"])
|
|
2936
2936
|
}, [
|
|
2937
2937
|
A("input", {
|
|
@@ -2947,28 +2947,28 @@ const vt = {
|
|
|
2947
2947
|
disabled: e.disabled
|
|
2948
2948
|
}, null, 40, Il),
|
|
2949
2949
|
A("div", Ll, [
|
|
2950
|
-
N(
|
|
2950
|
+
N(u.$slots, "input-prepend"),
|
|
2951
2951
|
A("input", {
|
|
2952
2952
|
type: "text",
|
|
2953
|
-
value:
|
|
2953
|
+
value: i.value,
|
|
2954
2954
|
id: e.id,
|
|
2955
2955
|
name: e.name,
|
|
2956
2956
|
class: "form-control",
|
|
2957
2957
|
disabled: e.disabled
|
|
2958
2958
|
}, null, 8, Dl),
|
|
2959
|
-
N(
|
|
2959
|
+
N(u.$slots, "input-append", {}, () => [
|
|
2960
2960
|
A("label", {
|
|
2961
2961
|
for: e.id,
|
|
2962
2962
|
disabled: e.disabled
|
|
2963
2963
|
}, [
|
|
2964
|
-
N(
|
|
2965
|
-
A("span", Pl, T(
|
|
2964
|
+
N(u.$slots, "button", {}, () => [
|
|
2965
|
+
A("span", Pl, T(u.$t("common.selectFile")), 1)
|
|
2966
2966
|
])
|
|
2967
2967
|
], 8, Vl)
|
|
2968
2968
|
])
|
|
2969
2969
|
]),
|
|
2970
2970
|
A("label", { for: e.id }, [
|
|
2971
|
-
N(
|
|
2971
|
+
N(u.$slots, "label", {}, () => [
|
|
2972
2972
|
A("span", {
|
|
2973
2973
|
class: "input__label",
|
|
2974
2974
|
innerHTML: q(re)(`${e.label}${e.required ? " *" : ""}`)
|
|
@@ -2980,7 +2980,7 @@ const vt = {
|
|
|
2980
2980
|
}), Tl = {
|
|
2981
2981
|
key: 0,
|
|
2982
2982
|
class: "custom-html"
|
|
2983
|
-
}, zl = ["innerHTML"],
|
|
2983
|
+
}, zl = ["innerHTML"], Nr = /* @__PURE__ */ O({
|
|
2984
2984
|
__name: "custom-html",
|
|
2985
2985
|
props: {
|
|
2986
2986
|
content: {}
|
|
@@ -2998,7 +2998,7 @@ const vt = {
|
|
|
2998
2998
|
])
|
|
2999
2999
|
])) : M("", !0);
|
|
3000
3000
|
}
|
|
3001
|
-
}), Nl = { class: "select-media" }, Hl = ["for"],
|
|
3001
|
+
}), Nl = { class: "select-media" }, Hl = ["for"], Hr = /* @__PURE__ */ O({
|
|
3002
3002
|
__name: "select-media",
|
|
3003
3003
|
props: {
|
|
3004
3004
|
modelValue: {
|
|
@@ -3040,15 +3040,15 @@ const vt = {
|
|
|
3040
3040
|
return n.modelValue;
|
|
3041
3041
|
},
|
|
3042
3042
|
set(t) {
|
|
3043
|
-
const o = n.assets.find((
|
|
3043
|
+
const o = n.assets.find((i) => i.id === t);
|
|
3044
3044
|
l("update:modelValue", n.emitKey ? o[n.emitKey] : o), n.emitKey && n.emitKey !== "id" && l("update:selection", o.id);
|
|
3045
3045
|
}
|
|
3046
3046
|
});
|
|
3047
3047
|
return (t, o) => (c(), g("div", Nl, [
|
|
3048
3048
|
I(dt, {
|
|
3049
3049
|
modelValue: a.value,
|
|
3050
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3051
|
-
options: e.assets.map((
|
|
3050
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
3051
|
+
options: e.assets.map((i) => i.id),
|
|
3052
3052
|
name: e.name,
|
|
3053
3053
|
id: e.id,
|
|
3054
3054
|
disabled: e.disabled,
|
|
@@ -3056,18 +3056,18 @@ const vt = {
|
|
|
3056
3056
|
class: "d-flex flex-wrap flex-row justify-content-center",
|
|
3057
3057
|
itemClass: "col-6 p-2"
|
|
3058
3058
|
}, {
|
|
3059
|
-
"option-label": _((
|
|
3059
|
+
"option-label": _((i) => [
|
|
3060
3060
|
A("label", {
|
|
3061
|
-
for: `${e.id}-${
|
|
3061
|
+
for: `${e.id}-${i.index}`,
|
|
3062
3062
|
class: D(["w-100", {
|
|
3063
|
-
"is-active": e.assets[
|
|
3063
|
+
"is-active": e.assets[i.index].id === a.value
|
|
3064
3064
|
}]),
|
|
3065
3065
|
role: "button"
|
|
3066
3066
|
}, [
|
|
3067
|
-
e.assets[
|
|
3067
|
+
e.assets[i.index].thumbnail ? (c(), U(Te, {
|
|
3068
3068
|
key: 0,
|
|
3069
|
-
src: e.assets[
|
|
3070
|
-
alt: e.assets[
|
|
3069
|
+
src: e.assets[i.index].thumbnail,
|
|
3070
|
+
alt: e.assets[i.index].id
|
|
3071
3071
|
}, null, 8, ["src", "alt"])) : M("", !0)
|
|
3072
3072
|
], 10, Hl)
|
|
3073
3073
|
]),
|
|
@@ -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"], Qr = /* @__PURE__ */ O({
|
|
3092
3092
|
__name: "rte-editor",
|
|
3093
3093
|
props: {
|
|
3094
3094
|
modelValue: {
|
|
@@ -3109,7 +3109,7 @@ const vt = {
|
|
|
3109
3109
|
const n = e, l = r, a = C(!1), t = Ye(void 0), o = Ye(null);
|
|
3110
3110
|
ne(async () => {
|
|
3111
3111
|
const [
|
|
3112
|
-
{ Editor:
|
|
3112
|
+
{ Editor: d, mergeAttributes: s },
|
|
3113
3113
|
{ EditorContent: f },
|
|
3114
3114
|
{ default: v },
|
|
3115
3115
|
{ default: b },
|
|
@@ -3125,7 +3125,7 @@ const vt = {
|
|
|
3125
3125
|
import("@tiptap/starter-kit"),
|
|
3126
3126
|
import("@tiptap/extension-bold")
|
|
3127
3127
|
]);
|
|
3128
|
-
o.value = f, t.value = new
|
|
3128
|
+
o.value = f, t.value = new d({
|
|
3129
3129
|
content: n.modelValue,
|
|
3130
3130
|
onUpdate: () => {
|
|
3131
3131
|
l("update:modelValue", t.value?.getHTML());
|
|
@@ -3150,7 +3150,7 @@ const vt = {
|
|
|
3150
3150
|
];
|
|
3151
3151
|
},
|
|
3152
3152
|
renderHTML({ HTMLAttributes: h }) {
|
|
3153
|
-
return ["strong",
|
|
3153
|
+
return ["strong", s(this.options.HTMLAttributes, h), 0];
|
|
3154
3154
|
}
|
|
3155
3155
|
}),
|
|
3156
3156
|
b.configure({
|
|
@@ -3204,9 +3204,9 @@ const vt = {
|
|
|
3204
3204
|
renderHTML({ HTMLAttributes: h }) {
|
|
3205
3205
|
if (!h.href) {
|
|
3206
3206
|
const { href: k, target: P, rel: B, ...z } = h;
|
|
3207
|
-
return ["a",
|
|
3207
|
+
return ["a", s(z), 0];
|
|
3208
3208
|
}
|
|
3209
|
-
return ["a",
|
|
3209
|
+
return ["a", s(this.options.HTMLAttributes, h), 0];
|
|
3210
3210
|
}
|
|
3211
3211
|
}).configure({
|
|
3212
3212
|
openOnClick: !1,
|
|
@@ -3222,33 +3222,33 @@ const vt = {
|
|
|
3222
3222
|
});
|
|
3223
3223
|
}), Ce(() => {
|
|
3224
3224
|
t.value?.destroy();
|
|
3225
|
-
}), W(() => n.modelValue, (
|
|
3225
|
+
}), W(() => n.modelValue, (d, s) => {
|
|
3226
3226
|
if (t.value) {
|
|
3227
|
-
if (t.value.getHTML() ===
|
|
3227
|
+
if (t.value.getHTML() === d)
|
|
3228
3228
|
return;
|
|
3229
|
-
t.value.commands.setContent(
|
|
3229
|
+
t.value.commands.setContent(d);
|
|
3230
3230
|
}
|
|
3231
3231
|
});
|
|
3232
|
-
function
|
|
3233
|
-
const
|
|
3234
|
-
if (
|
|
3235
|
-
if (
|
|
3232
|
+
function i() {
|
|
3233
|
+
const d = t.value?.getAttributes("link").href, s = window.prompt("URL", d);
|
|
3234
|
+
if (s !== null) {
|
|
3235
|
+
if (s === "") {
|
|
3236
3236
|
t.value?.chain().focus().extendMarkRange("link").unsetLink().run();
|
|
3237
3237
|
return;
|
|
3238
3238
|
}
|
|
3239
3239
|
try {
|
|
3240
|
-
t.value?.chain().focus().extendMarkRange("link").setLink({ href:
|
|
3240
|
+
t.value?.chain().focus().extendMarkRange("link").setLink({ href: s }).run();
|
|
3241
3241
|
} catch (f) {
|
|
3242
3242
|
alert(f.message);
|
|
3243
3243
|
}
|
|
3244
3244
|
}
|
|
3245
3245
|
}
|
|
3246
|
-
const
|
|
3246
|
+
const u = () => {
|
|
3247
3247
|
t.value?.commands.setContent(`<textarea>${t.value.getHTML()}</textarea>`), a.value = !0;
|
|
3248
3248
|
}, m = () => {
|
|
3249
3249
|
t.value?.commands.setContent(t.value.getText()), a.value = !1;
|
|
3250
3250
|
};
|
|
3251
|
-
return (
|
|
3251
|
+
return (d, s) => (c(), g("div", Ql, [
|
|
3252
3252
|
t.value ? (c(), g("div", Ol, [
|
|
3253
3253
|
a.value ? (c(), g("button", {
|
|
3254
3254
|
key: 1,
|
|
@@ -3264,7 +3264,7 @@ const vt = {
|
|
|
3264
3264
|
], 8, Fl)) : (c(), g("button", {
|
|
3265
3265
|
key: 0,
|
|
3266
3266
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("code") }]),
|
|
3267
|
-
onClick:
|
|
3267
|
+
onClick: u,
|
|
3268
3268
|
disabled: !t.value.can().chain().focus().toggleCode().run(),
|
|
3269
3269
|
title: "Toggle Source"
|
|
3270
3270
|
}, [
|
|
@@ -3276,7 +3276,7 @@ const vt = {
|
|
|
3276
3276
|
A("div", Wl, [
|
|
3277
3277
|
A("button", {
|
|
3278
3278
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("bold") }]),
|
|
3279
|
-
onClick:
|
|
3279
|
+
onClick: s[0] || (s[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
|
}, [
|
|
@@ -3287,7 +3287,7 @@ const vt = {
|
|
|
3287
3287
|
], 10, Ul),
|
|
3288
3288
|
A("button", {
|
|
3289
3289
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("italic") }]),
|
|
3290
|
-
onClick:
|
|
3290
|
+
onClick: s[1] || (s[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
|
}, [
|
|
@@ -3326,7 +3326,7 @@ const vt = {
|
|
|
3326
3326
|
A("li", null, [
|
|
3327
3327
|
A("button", {
|
|
3328
3328
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 1 }) }]),
|
|
3329
|
-
onClick:
|
|
3329
|
+
onClick: s[2] || (s[2] = (f) => t.value?.chain().focus().setHeading({ level: 1 }).run()),
|
|
3330
3330
|
title: "Set Heading 1"
|
|
3331
3331
|
}, [
|
|
3332
3332
|
I(Q, {
|
|
@@ -3338,7 +3338,7 @@ const vt = {
|
|
|
3338
3338
|
A("li", null, [
|
|
3339
3339
|
A("button", {
|
|
3340
3340
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 2 }) }]),
|
|
3341
|
-
onClick:
|
|
3341
|
+
onClick: s[3] || (s[3] = (f) => t.value?.chain().focus().setHeading({ level: 2 }).run()),
|
|
3342
3342
|
title: "Set Heading 2"
|
|
3343
3343
|
}, [
|
|
3344
3344
|
I(Q, {
|
|
@@ -3350,7 +3350,7 @@ const vt = {
|
|
|
3350
3350
|
A("li", null, [
|
|
3351
3351
|
A("button", {
|
|
3352
3352
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 3 }) }]),
|
|
3353
|
-
onClick:
|
|
3353
|
+
onClick: s[4] || (s[4] = (f) => t.value?.chain().focus().setHeading({ level: 3 }).run()),
|
|
3354
3354
|
title: "Set Heading 3"
|
|
3355
3355
|
}, [
|
|
3356
3356
|
I(Q, {
|
|
@@ -3362,7 +3362,7 @@ const vt = {
|
|
|
3362
3362
|
A("li", null, [
|
|
3363
3363
|
A("button", {
|
|
3364
3364
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("heading", { level: 4 }) }]),
|
|
3365
|
-
onClick:
|
|
3365
|
+
onClick: s[5] || (s[5] = (f) => t.value?.chain().focus().setHeading({ level: 4 }).run()),
|
|
3366
3366
|
title: "Set Heading 4"
|
|
3367
3367
|
}, [
|
|
3368
3368
|
I(Q, {
|
|
@@ -3375,7 +3375,7 @@ const vt = {
|
|
|
3375
3375
|
]),
|
|
3376
3376
|
A("button", {
|
|
3377
3377
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("paragraph") }]),
|
|
3378
|
-
onClick:
|
|
3378
|
+
onClick: s[6] || (s[6] = (f) => t.value?.chain().focus().setParagraph().run()),
|
|
3379
3379
|
title: "Set Paragraph"
|
|
3380
3380
|
}, [
|
|
3381
3381
|
I(Q, {
|
|
@@ -3385,7 +3385,7 @@ const vt = {
|
|
|
3385
3385
|
], 2),
|
|
3386
3386
|
A("button", {
|
|
3387
3387
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("bulletList") }]),
|
|
3388
|
-
onClick:
|
|
3388
|
+
onClick: s[7] || (s[7] = (f) => t.value?.chain().focus().toggleBulletList().run()),
|
|
3389
3389
|
title: "Toggle Bullet List"
|
|
3390
3390
|
}, [
|
|
3391
3391
|
I(Q, {
|
|
@@ -3395,7 +3395,7 @@ const vt = {
|
|
|
3395
3395
|
], 2),
|
|
3396
3396
|
A("button", {
|
|
3397
3397
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("orderedList") }]),
|
|
3398
|
-
onClick:
|
|
3398
|
+
onClick: s[8] || (s[8] = (f) => t.value?.chain().focus().toggleOrderedList().run()),
|
|
3399
3399
|
title: "Toggle Ordered List"
|
|
3400
3400
|
}, [
|
|
3401
3401
|
I(Q, {
|
|
@@ -3428,7 +3428,7 @@ const vt = {
|
|
|
3428
3428
|
A("li", null, [
|
|
3429
3429
|
A("button", {
|
|
3430
3430
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "left" }) }]),
|
|
3431
|
-
onClick:
|
|
3431
|
+
onClick: s[9] || (s[9] = (f) => t.value?.chain().focus().setTextAlign("left").run())
|
|
3432
3432
|
}, [
|
|
3433
3433
|
I(Q, {
|
|
3434
3434
|
symbol: "align-left",
|
|
@@ -3439,7 +3439,7 @@ const vt = {
|
|
|
3439
3439
|
A("li", null, [
|
|
3440
3440
|
A("button", {
|
|
3441
3441
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "center" }) }]),
|
|
3442
|
-
onClick:
|
|
3442
|
+
onClick: s[10] || (s[10] = (f) => t.value?.chain().focus().setTextAlign("center").run())
|
|
3443
3443
|
}, [
|
|
3444
3444
|
I(Q, {
|
|
3445
3445
|
symbol: "align-center",
|
|
@@ -3450,7 +3450,7 @@ const vt = {
|
|
|
3450
3450
|
A("li", null, [
|
|
3451
3451
|
A("button", {
|
|
3452
3452
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "right" }) }]),
|
|
3453
|
-
onClick:
|
|
3453
|
+
onClick: s[11] || (s[11] = (f) => t.value?.chain().focus().setTextAlign("right").run())
|
|
3454
3454
|
}, [
|
|
3455
3455
|
I(Q, {
|
|
3456
3456
|
symbol: "align-right",
|
|
@@ -3461,7 +3461,7 @@ const vt = {
|
|
|
3461
3461
|
A("li", null, [
|
|
3462
3462
|
A("button", {
|
|
3463
3463
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive({ textAlign: "pretty" }) }]),
|
|
3464
|
-
onClick:
|
|
3464
|
+
onClick: s[12] || (s[12] = (f) => t.value?.chain().focus().setTextAlign("right").run())
|
|
3465
3465
|
}, [
|
|
3466
3466
|
I(Q, {
|
|
3467
3467
|
symbol: "align-justify",
|
|
@@ -3474,7 +3474,7 @@ const vt = {
|
|
|
3474
3474
|
t.value.isActive("link") ? (c(), g("button", {
|
|
3475
3475
|
key: 3,
|
|
3476
3476
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
3477
|
-
onClick:
|
|
3477
|
+
onClick: s[13] || (s[13] = (f) => t.value.chain().focus().unsetLink().run()),
|
|
3478
3478
|
title: "Unset Link"
|
|
3479
3479
|
}, [
|
|
3480
3480
|
I(Q, {
|
|
@@ -3484,7 +3484,7 @@ const vt = {
|
|
|
3484
3484
|
], 2)) : (c(), g("button", {
|
|
3485
3485
|
key: 2,
|
|
3486
3486
|
class: D(["btn btn-sm btn-light", { "is-active": t.value.isActive("link") }]),
|
|
3487
|
-
onClick:
|
|
3487
|
+
onClick: i,
|
|
3488
3488
|
title: "Set Link"
|
|
3489
3489
|
}, [
|
|
3490
3490
|
I(Q, {
|
|
@@ -3495,7 +3495,7 @@ const vt = {
|
|
|
3495
3495
|
A("div", Kl, [
|
|
3496
3496
|
A("button", {
|
|
3497
3497
|
class: "btn btn-sm btn-light",
|
|
3498
|
-
onClick:
|
|
3498
|
+
onClick: s[14] || (s[14] = (f) => t.value?.chain().focus().undo().run()),
|
|
3499
3499
|
disabled: !t.value.can().chain().focus().undo().run(),
|
|
3500
3500
|
title: "Undo"
|
|
3501
3501
|
}, [
|
|
@@ -3506,7 +3506,7 @@ const vt = {
|
|
|
3506
3506
|
], 8, eo),
|
|
3507
3507
|
A("button", {
|
|
3508
3508
|
class: "btn btn-sm btn-light",
|
|
3509
|
-
onClick:
|
|
3509
|
+
onClick: s[15] || (s[15] = (f) => t.value?.chain().focus().redo().run()),
|
|
3510
3510
|
disabled: !t.value.can().chain().focus().redo().run(),
|
|
3511
3511
|
title: "Redo"
|
|
3512
3512
|
}, [
|
|
@@ -3523,7 +3523,7 @@ const vt = {
|
|
|
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"], Or = /* @__PURE__ */ O({
|
|
3527
3527
|
__name: "input-color",
|
|
3528
3528
|
props: {
|
|
3529
3529
|
modelValue: {
|
|
@@ -3587,7 +3587,7 @@ const vt = {
|
|
|
3587
3587
|
return (t, o) => (c(), g("div", ao, [
|
|
3588
3588
|
I(We, {
|
|
3589
3589
|
modelValue: a.value,
|
|
3590
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
3590
|
+
"onUpdate:modelValue": o[1] || (o[1] = (i) => a.value = i),
|
|
3591
3591
|
type: e.type === "color" ? "text" : e.type,
|
|
3592
3592
|
id: e.id,
|
|
3593
3593
|
name: e.name,
|
|
@@ -3599,10 +3599,10 @@ const vt = {
|
|
|
3599
3599
|
required: e.required,
|
|
3600
3600
|
maxlength: e.maxlength
|
|
3601
3601
|
}, {
|
|
3602
|
-
"input-append": _((
|
|
3602
|
+
"input-append": _((i) => [
|
|
3603
3603
|
A("span", no, [
|
|
3604
3604
|
ye(A("input", {
|
|
3605
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3605
|
+
"onUpdate:modelValue": o[0] || (o[0] = (u) => a.value = u),
|
|
3606
3606
|
type: "color",
|
|
3607
3607
|
name: `${e.name}-color`,
|
|
3608
3608
|
id: `${e.id}-color`,
|
|
@@ -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"], Rr = /* @__PURE__ */ O({
|
|
3624
3624
|
__name: "color-palette",
|
|
3625
3625
|
props: {
|
|
3626
3626
|
modelValue: {
|
|
@@ -3664,7 +3664,7 @@ const vt = {
|
|
|
3664
3664
|
return (t, o) => (c(), g("div", oo, [
|
|
3665
3665
|
I(dt, {
|
|
3666
3666
|
modelValue: a.value,
|
|
3667
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
3667
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
3668
3668
|
options: e.colors,
|
|
3669
3669
|
name: e.name,
|
|
3670
3670
|
id: e.id,
|
|
@@ -3673,11 +3673,11 @@ const vt = {
|
|
|
3673
3673
|
required: e.required,
|
|
3674
3674
|
class: "d-flex flex-wrap flex-row gap-2"
|
|
3675
3675
|
}, {
|
|
3676
|
-
"option-label": _((
|
|
3676
|
+
"option-label": _((i) => [
|
|
3677
3677
|
A("label", {
|
|
3678
|
-
for: `${e.id}-${
|
|
3678
|
+
for: `${e.id}-${i.index}`,
|
|
3679
3679
|
class: "d-block rounded-circle",
|
|
3680
|
-
style: $e({ backgroundColor:
|
|
3680
|
+
style: $e({ backgroundColor: i.option })
|
|
3681
3681
|
}, null, 12, io)
|
|
3682
3682
|
]),
|
|
3683
3683
|
_: 1
|
|
@@ -3764,39 +3764,39 @@ const vt = {
|
|
|
3764
3764
|
get() {
|
|
3765
3765
|
return l.multiple && !l.modelValue ? [] : l.modelValue;
|
|
3766
3766
|
},
|
|
3767
|
-
set(
|
|
3768
|
-
a("update:modelValue",
|
|
3767
|
+
set(u) {
|
|
3768
|
+
a("update:modelValue", u);
|
|
3769
3769
|
}
|
|
3770
3770
|
}), o = $(
|
|
3771
|
-
() => l.options && l.options.map((
|
|
3772
|
-
text:
|
|
3773
|
-
value:
|
|
3774
|
-
} :
|
|
3775
|
-
...
|
|
3776
|
-
active: l.modelValue &&
|
|
3771
|
+
() => l.options && l.options.map((u) => (u = typeof u == "string" ? {
|
|
3772
|
+
text: u,
|
|
3773
|
+
value: u
|
|
3774
|
+
} : u, {
|
|
3775
|
+
...u,
|
|
3776
|
+
active: l.modelValue && u.value && (l.exactMatch ? l.modelValue === u.value : l.multiple ? l.modelValue.includes(u.value) : l.modelValue === u.value)
|
|
3777
3777
|
// Use === for single values
|
|
3778
3778
|
}))
|
|
3779
|
-
),
|
|
3779
|
+
), i = $(() => {
|
|
3780
3780
|
if (!l.modelValue)
|
|
3781
3781
|
return l.placeholder || `${n("common.select")}`;
|
|
3782
3782
|
if (l.multiple && Array.isArray(l.modelValue) && l.modelValue.length)
|
|
3783
3783
|
return o.value.reduce(
|
|
3784
|
-
(
|
|
3784
|
+
(u, m) => l.modelValue.includes(m.value) ? `${u}${u ? ", " : ""}${m.text}` : u,
|
|
3785
3785
|
""
|
|
3786
3786
|
);
|
|
3787
3787
|
if (!l.multiple) {
|
|
3788
|
-
const
|
|
3788
|
+
const u = o.value.find(
|
|
3789
3789
|
(m) => typeof m.value == "object" && m.value !== null ? JSON.stringify(m.value) === JSON.stringify(l.modelValue) : m.value === l.modelValue
|
|
3790
3790
|
);
|
|
3791
|
-
return
|
|
3791
|
+
return u ? u.text : l.placeholder || `${n("common.select")}`;
|
|
3792
3792
|
}
|
|
3793
3793
|
return l.placeholder || `${n("common.select")}`;
|
|
3794
3794
|
});
|
|
3795
|
-
return (
|
|
3795
|
+
return (u, m) => (c(), g("div", {
|
|
3796
3796
|
class: "input input-dropdown",
|
|
3797
3797
|
id: `${e.id || e.name}`
|
|
3798
3798
|
}, [
|
|
3799
|
-
N(
|
|
3799
|
+
N(u.$slots, "label", {}, () => [
|
|
3800
3800
|
e.label ? (c(), g("label", {
|
|
3801
3801
|
key: 0,
|
|
3802
3802
|
for: `${e.id || e.name}--dropdown-toggle`,
|
|
@@ -3810,7 +3810,7 @@ const vt = {
|
|
|
3810
3810
|
"data-bs-toggle": "dropdown",
|
|
3811
3811
|
role: "button",
|
|
3812
3812
|
type: "button",
|
|
3813
|
-
title:
|
|
3813
|
+
title: i.value,
|
|
3814
3814
|
class: "btn dropdown-toggle",
|
|
3815
3815
|
color: e.color,
|
|
3816
3816
|
outlined: e.outlined,
|
|
@@ -3829,43 +3829,43 @@ const vt = {
|
|
|
3829
3829
|
_: 1
|
|
3830
3830
|
}),
|
|
3831
3831
|
A("span", mo, [
|
|
3832
|
-
A("span", fo, T(e.toggleCaption ||
|
|
3832
|
+
A("span", fo, T(e.toggleCaption || i.value), 1)
|
|
3833
3833
|
])
|
|
3834
3834
|
])
|
|
3835
3835
|
]),
|
|
3836
3836
|
_: 1
|
|
3837
3837
|
}, 8, ["id", "title", "color", "outlined", "disabled"]),
|
|
3838
3838
|
A("ul", go, [
|
|
3839
|
-
(c(!0), g(ae, null, ue(o.value, (
|
|
3840
|
-
key: `${
|
|
3839
|
+
(c(!0), g(ae, null, ue(o.value, (d, s) => (c(), g("li", {
|
|
3840
|
+
key: `${d.value}-${s}`
|
|
3841
3841
|
}, [
|
|
3842
3842
|
A("div", {
|
|
3843
|
-
class: D(["dropdown-item",
|
|
3843
|
+
class: D(["dropdown-item", d.active && "active"])
|
|
3844
3844
|
}, [
|
|
3845
3845
|
A("div", vo, [
|
|
3846
3846
|
e.multiple ? ye((c(), g("input", {
|
|
3847
3847
|
type: "checkbox",
|
|
3848
3848
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => t.value = f),
|
|
3849
|
-
value:
|
|
3850
|
-
key: `${e.name}-${
|
|
3851
|
-
id: `${e.name}-${
|
|
3849
|
+
value: d.value,
|
|
3850
|
+
key: `${e.name}-${d.value}-${s}__if`,
|
|
3851
|
+
id: `${e.name}-${d.value}-${s}`,
|
|
3852
3852
|
name: e.name,
|
|
3853
|
-
label:
|
|
3853
|
+
label: d.text,
|
|
3854
3854
|
required: e.required,
|
|
3855
|
-
disabled:
|
|
3855
|
+
disabled: d.selectable === !1,
|
|
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
|
-
value:
|
|
3863
|
-
key: `${e.name}-${
|
|
3864
|
-
id: `${e.name}-${
|
|
3862
|
+
value: d.value,
|
|
3863
|
+
key: `${e.name}-${d.value}-${s}__else`,
|
|
3864
|
+
id: `${e.name}-${d.value}-${s}`,
|
|
3865
3865
|
name: e.name,
|
|
3866
|
-
label:
|
|
3866
|
+
label: d.text,
|
|
3867
3867
|
required: e.required,
|
|
3868
|
-
disabled:
|
|
3868
|
+
disabled: d.selectable === !1,
|
|
3869
3869
|
class: "form-check-input visually-hidden"
|
|
3870
3870
|
}, null, 8, ho)), [
|
|
3871
3871
|
[zt, t.value]
|
|
@@ -3873,8 +3873,8 @@ const vt = {
|
|
|
3873
3873
|
A("label", {
|
|
3874
3874
|
class: "form-check-label flex-grow-1",
|
|
3875
3875
|
onclick: "event.stopPropagation",
|
|
3876
|
-
for: `${e.name}-${
|
|
3877
|
-
}, T(
|
|
3876
|
+
for: `${e.name}-${d.value}-${s}`
|
|
3877
|
+
}, T(d.text), 9, yo)
|
|
3878
3878
|
])
|
|
3879
3879
|
], 2)
|
|
3880
3880
|
]))), 128))
|
|
@@ -3944,12 +3944,12 @@ const vt = {
|
|
|
3944
3944
|
set(v) {
|
|
3945
3945
|
l("update:modelValue", v);
|
|
3946
3946
|
}
|
|
3947
|
-
}),
|
|
3947
|
+
}), i = $(() => {
|
|
3948
3948
|
const v = new RegExp(`(${o.value})`, "i");
|
|
3949
3949
|
return o.value ? n.options.filter((b) => v.test(b)) : n.options;
|
|
3950
|
-
}),
|
|
3950
|
+
}), u = $(() => {
|
|
3951
3951
|
const v = new RegExp(`(${o.value})`, "i");
|
|
3952
|
-
return
|
|
3952
|
+
return i.value.map((b) => {
|
|
3953
3953
|
const w = b.replace(v, "<strong>$1</strong>");
|
|
3954
3954
|
return re(w);
|
|
3955
3955
|
});
|
|
@@ -3960,20 +3960,20 @@ const vt = {
|
|
|
3960
3960
|
function m() {
|
|
3961
3961
|
n.options.length && (t.value = !0);
|
|
3962
3962
|
}
|
|
3963
|
-
function
|
|
3963
|
+
function d(v) {
|
|
3964
3964
|
t.value = !1;
|
|
3965
|
-
const b =
|
|
3965
|
+
const b = i.value[v];
|
|
3966
3966
|
l("update:modelValue", b), l("update:selection", b);
|
|
3967
3967
|
}
|
|
3968
|
-
const
|
|
3968
|
+
const s = C();
|
|
3969
3969
|
function f(v) {
|
|
3970
3970
|
const b = v.target;
|
|
3971
3971
|
t.value && b && !a.value.contains(b) && (t.value = !1);
|
|
3972
3972
|
}
|
|
3973
3973
|
return ot(() => {
|
|
3974
|
-
|
|
3974
|
+
s.value = document.addEventListener("click", f);
|
|
3975
3975
|
}), Ce(() => {
|
|
3976
|
-
document.removeEventListener("click",
|
|
3976
|
+
document.removeEventListener("click", s.value);
|
|
3977
3977
|
}), (v, b) => (c(), g("div", {
|
|
3978
3978
|
class: "auto-suggest",
|
|
3979
3979
|
ref_key: "container",
|
|
@@ -3990,12 +3990,12 @@ const vt = {
|
|
|
3990
3990
|
}, v.$props), null, 16, ["modelValue"])
|
|
3991
3991
|
])
|
|
3992
3992
|
], 32),
|
|
3993
|
-
t.value &&
|
|
3993
|
+
t.value && i.value.length ? (c(), g("div", bo, [
|
|
3994
3994
|
A("ul", wo, [
|
|
3995
|
-
(c(!0), g(ae, null, ue(
|
|
3995
|
+
(c(!0), g(ae, null, ue(u.value, (w, V) => (c(), g("li", {
|
|
3996
3996
|
key: w,
|
|
3997
3997
|
class: "suggestions__item dropdown-item",
|
|
3998
|
-
onClick: Z((p) =>
|
|
3998
|
+
onClick: Z((p) => d(V), ["prevent"])
|
|
3999
3999
|
}, [
|
|
4000
4000
|
A("p", {
|
|
4001
4001
|
class: "text-truncate my-2",
|
|
@@ -4010,52 +4010,52 @@ const vt = {
|
|
|
4010
4010
|
function So(e) {
|
|
4011
4011
|
const r = $(() => {
|
|
4012
4012
|
if (!e.tintColor) return null;
|
|
4013
|
-
const o = e.tintColor.replace("#", ""),
|
|
4014
|
-
return { r:
|
|
4013
|
+
const o = e.tintColor.replace("#", ""), i = parseInt(o.substring(0, 2), 16), u = parseInt(o.substring(2, 4), 16), m = parseInt(o.substring(4, 6), 16);
|
|
4014
|
+
return { r: i, g: u, b: m };
|
|
4015
4015
|
});
|
|
4016
|
-
function n(o,
|
|
4016
|
+
function n(o, i, u) {
|
|
4017
4017
|
if (e.filter === "none" && !e.tintColor) return;
|
|
4018
|
-
const m = o.getImageData(0, 0,
|
|
4018
|
+
const m = o.getImageData(0, 0, i, u), d = m.data;
|
|
4019
4019
|
if (e.filter === "grayscale")
|
|
4020
|
-
for (let
|
|
4021
|
-
const f = 0.299 *
|
|
4022
|
-
|
|
4020
|
+
for (let s = 0; s < d.length; s += 4) {
|
|
4021
|
+
const f = 0.299 * d[s] + 0.587 * d[s + 1] + 0.114 * d[s + 2];
|
|
4022
|
+
d[s] = f, d[s + 1] = f, d[s + 2] = f;
|
|
4023
4023
|
}
|
|
4024
4024
|
else if (e.filter === "sepia")
|
|
4025
|
-
for (let
|
|
4026
|
-
const f =
|
|
4027
|
-
|
|
4025
|
+
for (let s = 0; s < d.length; s += 4) {
|
|
4026
|
+
const f = d[s], v = d[s + 1], b = d[s + 2];
|
|
4027
|
+
d[s] = Math.min(255, 0.393 * f + 0.769 * v + 0.189 * b), d[s + 1] = Math.min(255, 0.349 * f + 0.686 * v + 0.168 * b), d[s + 2] = Math.min(255, 0.272 * f + 0.534 * v + 0.131 * b);
|
|
4028
4028
|
}
|
|
4029
4029
|
if (e.tintColor && r.value) {
|
|
4030
|
-
const { r:
|
|
4031
|
-
for (let w = 0; w <
|
|
4032
|
-
const V =
|
|
4033
|
-
|
|
4030
|
+
const { r: s, g: f, b: v } = r.value, b = e.tintIntensity;
|
|
4031
|
+
for (let w = 0; w < d.length; w += 4) {
|
|
4032
|
+
const V = d[w], p = d[w + 1], h = d[w + 2], k = V * s / 255, P = p * f / 255, B = h * v / 255;
|
|
4033
|
+
d[w] = V + (k - V) * b, d[w + 1] = p + (P - p) * b, d[w + 2] = h + (B - h) * b;
|
|
4034
4034
|
}
|
|
4035
4035
|
}
|
|
4036
4036
|
o.putImageData(m, 0, 0);
|
|
4037
4037
|
}
|
|
4038
4038
|
async function l(o) {
|
|
4039
4039
|
if (typeof o != "string")
|
|
4040
|
-
return o.complete && o.naturalWidth > 0 || await new Promise((
|
|
4041
|
-
o.onload = () =>
|
|
4040
|
+
return o.complete && o.naturalWidth > 0 || await new Promise((u, m) => {
|
|
4041
|
+
o.onload = () => u(), o.onerror = () => m(new Error("Failed to load image element"));
|
|
4042
4042
|
}), o;
|
|
4043
|
-
const
|
|
4044
|
-
return await new Promise((
|
|
4045
|
-
|
|
4046
|
-
}),
|
|
4043
|
+
const i = new Image();
|
|
4044
|
+
return await new Promise((u, m) => {
|
|
4045
|
+
i.onload = () => u(), i.onerror = () => m(new Error("Failed to load image source")), i.src = o;
|
|
4046
|
+
}), i;
|
|
4047
4047
|
}
|
|
4048
|
-
async function a(o,
|
|
4049
|
-
const
|
|
4050
|
-
m.width =
|
|
4048
|
+
async function a(o, i = {}) {
|
|
4049
|
+
const u = await l(o), m = document.createElement("canvas"), d = i.width || u.naturalWidth || u.width, s = i.height || u.naturalHeight || u.height;
|
|
4050
|
+
m.width = d, m.height = s;
|
|
4051
4051
|
const f = m.getContext("2d");
|
|
4052
4052
|
if (!f)
|
|
4053
4053
|
throw new Error("Could not create canvas context");
|
|
4054
|
-
return f.drawImage(
|
|
4054
|
+
return f.drawImage(u, 0, 0, d, s), n(f, d, s), m.toDataURL(i.mimeType || "image/png", i.quality);
|
|
4055
4055
|
}
|
|
4056
|
-
async function t(o,
|
|
4057
|
-
const
|
|
4058
|
-
return (await fetch(
|
|
4056
|
+
async function t(o, i = {}) {
|
|
4057
|
+
const u = await a(o, i);
|
|
4058
|
+
return (await fetch(u)).blob();
|
|
4059
4059
|
}
|
|
4060
4060
|
return { tintRgb: r, applyFilterToCanvas: n, applyFilterToImage: a, applyFilterToImageBlob: t };
|
|
4061
4061
|
}
|
|
@@ -4089,25 +4089,25 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4089
4089
|
emits: ["update:modelValue"],
|
|
4090
4090
|
setup(e, { emit: r }) {
|
|
4091
4091
|
const n = e, l = r, a = $(() => n.ticks), t = $(() => Math.round((n.ticks - 1) / 2)), o = $(() => Math.round((n.ticks - 1) / 10));
|
|
4092
|
-
function
|
|
4093
|
-
l("update:modelValue", parseFloat(
|
|
4092
|
+
function i(u) {
|
|
4093
|
+
l("update:modelValue", parseFloat(u.target.value));
|
|
4094
4094
|
}
|
|
4095
|
-
return (
|
|
4095
|
+
return (u, m) => (c(), g("div", Bo, [
|
|
4096
4096
|
A("input", {
|
|
4097
4097
|
type: "range",
|
|
4098
4098
|
min: e.min,
|
|
4099
4099
|
max: e.max,
|
|
4100
4100
|
step: e.step,
|
|
4101
4101
|
value: e.modelValue,
|
|
4102
|
-
onInput:
|
|
4102
|
+
onInput: i,
|
|
4103
4103
|
"aria-label": "Zoom"
|
|
4104
4104
|
}, null, 40, Mo),
|
|
4105
4105
|
A("div", Io, [
|
|
4106
|
-
(c(!0), g(ae, null, ue(a.value, (
|
|
4107
|
-
key:
|
|
4106
|
+
(c(!0), g(ae, null, ue(a.value, (d) => (c(), g("span", {
|
|
4107
|
+
key: d,
|
|
4108
4108
|
class: D(["zoom-slider__tick", {
|
|
4109
|
-
"zoom-slider__tick--major": (
|
|
4110
|
-
"zoom-slider__tick--mid": (
|
|
4109
|
+
"zoom-slider__tick--major": (d - 1) % t.value === 0,
|
|
4110
|
+
"zoom-slider__tick--mid": (d - 1) % o.value === 0 && (d - 1) % t.value !== 0
|
|
4111
4111
|
}])
|
|
4112
4112
|
}, null, 2))), 128))
|
|
4113
4113
|
])
|
|
@@ -4138,7 +4138,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4138
4138
|
"5x4": { width: 1200, height: 960 },
|
|
4139
4139
|
"16x9": { width: 1280, height: 720 },
|
|
4140
4140
|
"9x16": { width: 720, height: 1280 }
|
|
4141
|
-
},
|
|
4141
|
+
}, Fr = /* @__PURE__ */ O({
|
|
4142
4142
|
...Yo,
|
|
4143
4143
|
props: {
|
|
4144
4144
|
modelValue: {
|
|
@@ -4212,7 +4212,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4212
4212
|
},
|
|
4213
4213
|
emits: ["update:modelValue"],
|
|
4214
4214
|
setup(e, { expose: r, emit: n }) {
|
|
4215
|
-
const l = e, a = n, t = C(), o = C(),
|
|
4215
|
+
const l = e, a = n, t = C(), o = C(), i = C(!1), u = C([]), m = C(), d = C(), s = C(!1), f = C(!1), v = C(0), b = C(0), w = C(), V = C(l.zoom || 1), p = $(() => ({ ...ht, ...l.resolutions })), h = $(() => Object.values(p.value)[0]);
|
|
4216
4216
|
function k(x) {
|
|
4217
4217
|
return String(x || "").trim().toLowerCase().replace(/\s+/g, "").replace(/[:/]/g, "x");
|
|
4218
4218
|
}
|
|
@@ -4225,7 +4225,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4225
4225
|
}), B = $(() => P.value ? p.value[P.value] : h.value), z = $(() => {
|
|
4226
4226
|
const x = P.value ? p.value[P.value] : void 0;
|
|
4227
4227
|
return x ? `${x.width} / ${x.height}` : void 0;
|
|
4228
|
-
}), K = $(() =>
|
|
4228
|
+
}), K = $(() => u.value.filter((x) => x.kind === "videoinput")), ge = $(() => u.value.filter((x) => x.kind === "audioinput")), me = $(() => K.value.map((x, F) => ({
|
|
4229
4229
|
text: x.label.slice(0, x.label.indexOf("(")) || `Camera ${F + 1}`,
|
|
4230
4230
|
value: x.deviceId
|
|
4231
4231
|
}))), ke = $({
|
|
@@ -4238,17 +4238,17 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4238
4238
|
});
|
|
4239
4239
|
$({
|
|
4240
4240
|
get() {
|
|
4241
|
-
return
|
|
4241
|
+
return d.value && d.value.deviceId;
|
|
4242
4242
|
},
|
|
4243
4243
|
set(x) {
|
|
4244
|
-
|
|
4244
|
+
d.value = ge.value.find((F) => F.deviceId === x);
|
|
4245
4245
|
}
|
|
4246
4246
|
});
|
|
4247
4247
|
const ve = $(() => {
|
|
4248
4248
|
const x = m.value && K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4249
4249
|
return l.enableMirrorCamera && x === 0 ? "mirror-cam" : "";
|
|
4250
4250
|
}), Le = $(() => {
|
|
4251
|
-
const x = m.value &&
|
|
4251
|
+
const x = m.value && u.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4252
4252
|
return ve.value ? `${ve.value} mirror-device-${x}` : "";
|
|
4253
4253
|
}), { tintRgb: Y, applyFilterToCanvas: Me } = So(l);
|
|
4254
4254
|
function L() {
|
|
@@ -4264,7 +4264,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4264
4264
|
async function H() {
|
|
4265
4265
|
const x = B.value ? { width: B.value.width, height: B.value.height } : void 0, F = x ? x.width / x.height : void 0, oe = {
|
|
4266
4266
|
audio: l.enableAudio && {
|
|
4267
|
-
...
|
|
4267
|
+
...d.value ? { deviceId: d.value.deviceId } : {}
|
|
4268
4268
|
// deviceId: activeAudioDevice.value ? { exact: activeAudioDevice.value } : undefined
|
|
4269
4269
|
},
|
|
4270
4270
|
// audio: false,
|
|
@@ -4287,13 +4287,13 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4287
4287
|
});
|
|
4288
4288
|
}
|
|
4289
4289
|
async function ee() {
|
|
4290
|
-
return t.value.srcObject = await H(),
|
|
4290
|
+
return t.value.srcObject = await H(), u.value = await navigator.mediaDevices.enumerateDevices(), { stream: t.value.srcObject, devices: u.value };
|
|
4291
4291
|
}
|
|
4292
4292
|
function De() {
|
|
4293
|
-
|
|
4293
|
+
s.value ? (s.value = !1, f.value = !1, G()) : (s.value = !0, ee());
|
|
4294
4294
|
}
|
|
4295
4295
|
function ze() {
|
|
4296
|
-
if (
|
|
4296
|
+
if (u.value.length > 1) {
|
|
4297
4297
|
G();
|
|
4298
4298
|
const x = K.value.findIndex((F) => F.deviceId === m.value.deviceId);
|
|
4299
4299
|
m.value = K.value[x === K.value.length - 1 ? 0 : x + 1], ee();
|
|
@@ -4302,7 +4302,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4302
4302
|
async function Ne(x, F) {
|
|
4303
4303
|
G(), x && (!F || x.deviceId !== F.deviceId) && await ee();
|
|
4304
4304
|
}
|
|
4305
|
-
W(() => m.value, Ne), W(() =>
|
|
4305
|
+
W(() => m.value, Ne), W(() => d.value, Ne);
|
|
4306
4306
|
function Ve() {
|
|
4307
4307
|
l.countdown ? (w.value = w.value ? w.value - 1 : l.countdown, w.value ? setTimeout(Ve, 1e3) : te()) : te();
|
|
4308
4308
|
}
|
|
@@ -4371,16 +4371,16 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4371
4371
|
});
|
|
4372
4372
|
}
|
|
4373
4373
|
return ne(async () => {
|
|
4374
|
-
G(), await ee(), m.value = K.value[0], l.enableAudio && (
|
|
4374
|
+
G(), await ee(), m.value = K.value[0], l.enableAudio && (d.value = ge.value[0]), navigator.mediaDevices.addEventListener("devicechange", async (x) => {
|
|
4375
4375
|
await ee();
|
|
4376
|
-
}), l.defaultRearCamera && ze(), De(), window.addEventListener("resize", R), L(), await Fe(),
|
|
4376
|
+
}), l.defaultRearCamera && ze(), De(), window.addEventListener("resize", R), L(), await Fe(), i.value = !0;
|
|
4377
4377
|
}), Ce(() => {
|
|
4378
|
-
|
|
4378
|
+
s.value = !1, f.value = !1, G(), window.removeEventListener("resize", R);
|
|
4379
4379
|
}), (x, F) => (c(), g("div", {
|
|
4380
4380
|
class: D(["camera", Le.value])
|
|
4381
4381
|
}, [
|
|
4382
4382
|
A("div", Po, [
|
|
4383
|
-
|
|
4383
|
+
i.value ? M("", !0) : (c(), g("div", xo, [
|
|
4384
4384
|
I(rt, { color: "#000" }, {
|
|
4385
4385
|
default: _(() => [
|
|
4386
4386
|
A("span", {
|
|
@@ -4413,7 +4413,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4413
4413
|
})
|
|
4414
4414
|
}, null, 4)) : M("", !0)
|
|
4415
4415
|
], 6), [
|
|
4416
|
-
[ft,
|
|
4416
|
+
[ft, i.value]
|
|
4417
4417
|
]),
|
|
4418
4418
|
ye(A("canvas", {
|
|
4419
4419
|
ref_key: "canvas",
|
|
@@ -4432,7 +4432,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4432
4432
|
"data-countdown": w.value
|
|
4433
4433
|
}, null, 8, No))
|
|
4434
4434
|
])) : M("", !0),
|
|
4435
|
-
e.enableGuide &&
|
|
4435
|
+
e.enableGuide && s.value && i.value ? (c(), g("img", {
|
|
4436
4436
|
key: 2,
|
|
4437
4437
|
class: "camera__guide",
|
|
4438
4438
|
src: e.guideSrc
|
|
@@ -4454,7 +4454,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4454
4454
|
class: "camera__toggle btn btn-primary",
|
|
4455
4455
|
onClick: De
|
|
4456
4456
|
}, [
|
|
4457
|
-
|
|
4457
|
+
s.value ? (c(), g("span", qo, T(x.$t("common.pause")), 1)) : (c(), g("span", jo, T(x.$t("common.play")), 1))
|
|
4458
4458
|
]),
|
|
4459
4459
|
A("button", {
|
|
4460
4460
|
type: "button",
|
|
@@ -4636,7 +4636,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
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,
|
|
4639
|
+
}, t = e, o = r, i = Ye(null), u = C(null), m = C(null), d = C(t.zoom), s = C(B(t.modelValue));
|
|
4640
4640
|
ne(async () => {
|
|
4641
4641
|
if (typeof window > "u")
|
|
4642
4642
|
return;
|
|
@@ -4644,23 +4644,23 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4644
4644
|
import("@vue-leaflet/vue-leaflet"),
|
|
4645
4645
|
import("leaflet")
|
|
4646
4646
|
]);
|
|
4647
|
-
|
|
4647
|
+
i.value = Ee({
|
|
4648
4648
|
LCircle: Ee(L.LCircle),
|
|
4649
4649
|
LMap: Ee(L.LMap),
|
|
4650
4650
|
LMarker: Ee(L.LMarker),
|
|
4651
4651
|
LPopup: Ee(L.LPopup),
|
|
4652
4652
|
LPolyline: Ee(L.LPolyline),
|
|
4653
4653
|
LTileLayer: Ee(L.LTileLayer)
|
|
4654
|
-
}),
|
|
4654
|
+
}), u.value = {
|
|
4655
4655
|
list: n("list", R.divIcon),
|
|
4656
4656
|
selected: n("selected", R.divIcon),
|
|
4657
4657
|
search: n("search", R.divIcon),
|
|
4658
4658
|
user: n("user", R.divIcon)
|
|
4659
4659
|
};
|
|
4660
4660
|
}), W(() => t.zoom, (L) => {
|
|
4661
|
-
|
|
4661
|
+
d.value = L;
|
|
4662
4662
|
}), W(() => t.modelValue, (L) => {
|
|
4663
|
-
|
|
4663
|
+
s.value = B(L);
|
|
4664
4664
|
}), W(() => t.center, (L) => {
|
|
4665
4665
|
const R = B(L);
|
|
4666
4666
|
R && me(R);
|
|
@@ -4681,23 +4681,23 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4681
4681
|
},
|
|
4682
4682
|
{ flush: "post" }
|
|
4683
4683
|
);
|
|
4684
|
-
const f = $(() => B(t.userLocation)), v = $(() => B(t.selectionRadiusCenter) ||
|
|
4684
|
+
const f = $(() => B(t.userLocation)), v = $(() => B(t.selectionRadiusCenter) || s.value), b = $(() => {
|
|
4685
4685
|
const L = (t.markers || []).map((R) => {
|
|
4686
4686
|
const H = B(R);
|
|
4687
4687
|
return H ? {
|
|
4688
4688
|
...R,
|
|
4689
4689
|
...H,
|
|
4690
|
-
type: R.type || (
|
|
4690
|
+
type: R.type || (s.value && K(R, s.value) ? "selected" : "list")
|
|
4691
4691
|
} : null;
|
|
4692
4692
|
}).filter((R) => !!R);
|
|
4693
|
-
return t.showSelectedMarker &&
|
|
4693
|
+
return t.showSelectedMarker && s.value && !L.some((R) => K(R, s.value)) && L.push({
|
|
4694
4694
|
id: "selected-location",
|
|
4695
4695
|
label: t.selectedLocationLabel,
|
|
4696
4696
|
type: "search",
|
|
4697
|
-
...
|
|
4697
|
+
...s.value
|
|
4698
4698
|
}), L;
|
|
4699
4699
|
}), w = $(() => (t.routeCoordinates || []).map((L) => z(L)).filter((L) => !!L)), V = $(() => {
|
|
4700
|
-
const L = B(t.center) ||
|
|
4700
|
+
const L = B(t.center) || s.value || B(t.markers[0]) || l;
|
|
4701
4701
|
return [L.lat, L.lng];
|
|
4702
4702
|
}), p = $(() => {
|
|
4703
4703
|
if (t.tileLayerUrl.trim())
|
|
@@ -4711,8 +4711,8 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4711
4711
|
return a[L].attribution;
|
|
4712
4712
|
});
|
|
4713
4713
|
function k(L = "list") {
|
|
4714
|
-
if (
|
|
4715
|
-
return
|
|
4714
|
+
if (u.value)
|
|
4715
|
+
return u.value[L] || u.value.list;
|
|
4716
4716
|
}
|
|
4717
4717
|
function P(L = "list") {
|
|
4718
4718
|
switch (L) {
|
|
@@ -4751,10 +4751,10 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4751
4751
|
m.value?.panTo([L.lat, L.lng]);
|
|
4752
4752
|
}
|
|
4753
4753
|
function ke(L) {
|
|
4754
|
-
m.value = L, me(B(t.center) ||
|
|
4754
|
+
m.value = L, me(B(t.center) || s.value || l), ge();
|
|
4755
4755
|
}
|
|
4756
4756
|
function ve(L) {
|
|
4757
|
-
|
|
4757
|
+
d.value = L, o("update:zoom", L);
|
|
4758
4758
|
}
|
|
4759
4759
|
function Le(L) {
|
|
4760
4760
|
const R = B(L);
|
|
@@ -4767,13 +4767,13 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4767
4767
|
lat: Number(L.latlng.lat.toFixed(6)),
|
|
4768
4768
|
lng: Number(L.latlng.lng.toFixed(6))
|
|
4769
4769
|
};
|
|
4770
|
-
|
|
4770
|
+
s.value = R, me(R), o("update:modelValue", R), o("update:center", R), o("map-click", R);
|
|
4771
4771
|
}
|
|
4772
4772
|
function Me(L) {
|
|
4773
|
-
|
|
4773
|
+
s.value = {
|
|
4774
4774
|
lat: Number(L.lat),
|
|
4775
4775
|
lng: Number(L.lng)
|
|
4776
|
-
}, me(
|
|
4776
|
+
}, me(s.value), o("update:modelValue", s.value), o("update:center", s.value), o("marker-click", L);
|
|
4777
4777
|
}
|
|
4778
4778
|
return (L, R) => (c(), g("div", Zo, [
|
|
4779
4779
|
N(L.$slots, "label", {}, () => [
|
|
@@ -4787,11 +4787,11 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4787
4787
|
style: $e({ height: e.height }),
|
|
4788
4788
|
"data-testid": "base-map"
|
|
4789
4789
|
}, [
|
|
4790
|
-
|
|
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
|
-
zoom:
|
|
4794
|
+
zoom: d.value,
|
|
4795
4795
|
center: V.value,
|
|
4796
4796
|
onReady: ke,
|
|
4797
4797
|
onClick: Y,
|
|
@@ -4799,19 +4799,19 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4799
4799
|
"onUpdate:center": Le
|
|
4800
4800
|
}, {
|
|
4801
4801
|
default: _(() => [
|
|
4802
|
-
(c(), U(ce(
|
|
4802
|
+
(c(), U(ce(i.value.LTileLayer), {
|
|
4803
4803
|
url: p.value,
|
|
4804
4804
|
attribution: h.value,
|
|
4805
4805
|
"layer-type": "base",
|
|
4806
4806
|
name: "OpenStreetMap"
|
|
4807
4807
|
}, null, 8, ["url", "attribution"])),
|
|
4808
|
-
w.value.length > 1 ? (c(), U(ce(
|
|
4808
|
+
w.value.length > 1 ? (c(), U(ce(i.value.LPolyline), {
|
|
4809
4809
|
key: 0,
|
|
4810
4810
|
"lat-lngs": w.value,
|
|
4811
4811
|
color: e.routeColor,
|
|
4812
4812
|
weight: e.routeWeight
|
|
4813
4813
|
}, null, 8, ["lat-lngs", "color", "weight"])) : M("", !0),
|
|
4814
|
-
v.value && e.selectionRadius > 0 ? (c(), U(ce(
|
|
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,
|
|
@@ -4821,7 +4821,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4821
4821
|
opacity: e.selectionRadiusOpacity,
|
|
4822
4822
|
weight: e.selectionRadiusStrokeWeight
|
|
4823
4823
|
}, null, 8, ["lat-lng", "radius", "color", "fill-color", "fill-opacity", "opacity", "weight"])) : M("", !0),
|
|
4824
|
-
(c(!0), g(ae, null, ue(b.value, (H, G) => (c(), U(ce(
|
|
4824
|
+
(c(!0), g(ae, null, ue(b.value, (H, G) => (c(), U(ce(i.value.LMarker), {
|
|
4825
4825
|
key: H.id ?? `${H.lat}-${H.lng}-${G}`,
|
|
4826
4826
|
"lat-lng": [H.lat, H.lng],
|
|
4827
4827
|
icon: k(H.type),
|
|
@@ -4829,7 +4829,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4829
4829
|
onClick: (ee) => Me(H)
|
|
4830
4830
|
}, {
|
|
4831
4831
|
default: _(() => [
|
|
4832
|
-
H.label ? (c(), U(ce(
|
|
4832
|
+
H.label ? (c(), U(ce(i.value.LPopup), { key: 0 }, {
|
|
4833
4833
|
default: _(() => [
|
|
4834
4834
|
Se(T(H.label), 1)
|
|
4835
4835
|
]),
|
|
@@ -4838,7 +4838,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4838
4838
|
]),
|
|
4839
4839
|
_: 2
|
|
4840
4840
|
}, 1032, ["lat-lng", "icon", "z-index-offset", "onClick"]))), 128)),
|
|
4841
|
-
f.value ? (c(), U(ce(
|
|
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
4844
|
icon: k("user"),
|
|
@@ -4851,7 +4851,7 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4851
4851
|
}))
|
|
4852
4852
|
}, {
|
|
4853
4853
|
default: _(() => [
|
|
4854
|
-
(c(), U(ce(
|
|
4854
|
+
(c(), U(ce(i.value.LPopup), null, {
|
|
4855
4855
|
default: _(() => [
|
|
4856
4856
|
Se(T(e.userLocationLabel), 1)
|
|
4857
4857
|
]),
|
|
@@ -4920,38 +4920,38 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4920
4920
|
emits: ["update:modelValue", "select"],
|
|
4921
4921
|
setup(e, { emit: r }) {
|
|
4922
4922
|
const n = e, l = r;
|
|
4923
|
-
function a(
|
|
4924
|
-
return
|
|
4923
|
+
function a(s) {
|
|
4924
|
+
return s?.[n.titleKey] || s?.label || s?.name || "Location";
|
|
4925
4925
|
}
|
|
4926
|
-
function t(
|
|
4927
|
-
return
|
|
4926
|
+
function t(s) {
|
|
4927
|
+
return s?.[n.descriptionKey] || s?.description || s?.subtitle || "";
|
|
4928
4928
|
}
|
|
4929
|
-
function o(
|
|
4930
|
-
return
|
|
4929
|
+
function o(s, f = 0) {
|
|
4930
|
+
return s ? typeof s != "object" ? s : s.id ?? s.value ?? a(s) ?? f : f;
|
|
4931
4931
|
}
|
|
4932
|
-
function s
|
|
4933
|
-
return `${o(
|
|
4932
|
+
function i(s, f = 0) {
|
|
4933
|
+
return `${o(s, f)}`.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
4934
4934
|
}
|
|
4935
|
-
function
|
|
4936
|
-
return o(n.modelValue) === o(
|
|
4935
|
+
function u(s, f = 0) {
|
|
4936
|
+
return o(n.modelValue) === o(s, f);
|
|
4937
4937
|
}
|
|
4938
|
-
function m(
|
|
4939
|
-
return Number.isFinite(
|
|
4938
|
+
function m(s) {
|
|
4939
|
+
return Number.isFinite(s) ? s >= 1e3 ? `${(s / 1e3).toFixed(1)} km` : `${Math.round(s)} m` : "—";
|
|
4940
4940
|
}
|
|
4941
|
-
function
|
|
4942
|
-
l("update:modelValue",
|
|
4941
|
+
function d(s) {
|
|
4942
|
+
l("update:modelValue", s), l("select", s);
|
|
4943
4943
|
}
|
|
4944
|
-
return (
|
|
4944
|
+
return (s, f) => (c(), g("div", ti, [
|
|
4945
4945
|
e.label ? (c(), g("p", ai, T(e.label), 1)) : M("", !0),
|
|
4946
4946
|
e.locations.length ? (c(), g("div", ni, [
|
|
4947
4947
|
(c(!0), g(ae, null, ue(e.locations, (v, b) => (c(), g("button", {
|
|
4948
4948
|
key: o(v, b),
|
|
4949
4949
|
type: "button",
|
|
4950
4950
|
class: D(["location-list__item", {
|
|
4951
|
-
"location-list__item--active":
|
|
4951
|
+
"location-list__item--active": u(v, b)
|
|
4952
4952
|
}]),
|
|
4953
|
-
"data-testid": `location-option-${
|
|
4954
|
-
onClick: (w) =>
|
|
4953
|
+
"data-testid": `location-option-${i(v, b)}`,
|
|
4954
|
+
onClick: (w) => d(v)
|
|
4955
4955
|
}, [
|
|
4956
4956
|
A("strong", oi, T(a(v)), 1),
|
|
4957
4957
|
t(v) ? (c(), g("small", ii, T(t(v)), 1)) : M("", !0),
|
|
@@ -4962,8 +4962,8 @@ const Bo = { class: "zoom-slider" }, Mo = ["min", "max", "step", "value"], Io =
|
|
|
4962
4962
|
}
|
|
4963
4963
|
});
|
|
4964
4964
|
function Lt(e = null, r) {
|
|
4965
|
-
const n = C(!1), l = C([]), a = C([]), t = C(!1), o = C(!1),
|
|
4966
|
-
async function
|
|
4965
|
+
const n = C(!1), l = C([]), a = C([]), t = C(!1), o = C(!1), i = $(() => e.modelValue?.length ? e.modelValue : e.src ? [{ type: "", src: e.src }] : a.value);
|
|
4966
|
+
async function u(w) {
|
|
4967
4967
|
const V = new FormData();
|
|
4968
4968
|
V.append("file", w), n.value = !0;
|
|
4969
4969
|
const h = await (e.customFetch || Ze)(e.endpoint, {
|
|
@@ -4990,10 +4990,10 @@ function Lt(e = null, r) {
|
|
|
4990
4990
|
r?.("update:modelValue", e.multiple ? [] : void 0), r?.("update:src", "");
|
|
4991
4991
|
l.value.splice(V, 1), t.value = !1;
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function d(w) {
|
|
4994
4994
|
w.preventDefault(), o.value = !0;
|
|
4995
4995
|
}
|
|
4996
|
-
function
|
|
4996
|
+
function s(w) {
|
|
4997
4997
|
w.preventDefault(), o.value = !1;
|
|
4998
4998
|
}
|
|
4999
4999
|
function f(w) {
|
|
@@ -5003,16 +5003,16 @@ function Lt(e = null, r) {
|
|
|
5003
5003
|
}
|
|
5004
5004
|
function v() {
|
|
5005
5005
|
e.dropFiles && (["dragenter", "dragover"].forEach((w) => {
|
|
5006
|
-
document.body.addEventListener(w,
|
|
5006
|
+
document.body.addEventListener(w, d, !1);
|
|
5007
5007
|
}), ["dragleave", "drop"].forEach((w) => {
|
|
5008
|
-
document.body.addEventListener(w,
|
|
5008
|
+
document.body.addEventListener(w, s, !1);
|
|
5009
5009
|
}), document.body.addEventListener("drop", f, !1));
|
|
5010
5010
|
}
|
|
5011
5011
|
function b() {
|
|
5012
5012
|
e.dropFiles && (["dragenter", "dragover"].forEach((w) => {
|
|
5013
|
-
document.body.removeEventListener(w,
|
|
5013
|
+
document.body.removeEventListener(w, d, !1);
|
|
5014
5014
|
}), ["dragleave", "drop"].forEach((w) => {
|
|
5015
|
-
document.body.removeEventListener(w,
|
|
5015
|
+
document.body.removeEventListener(w, s, !1);
|
|
5016
5016
|
}), document.body.removeEventListener("drop", f, !1));
|
|
5017
5017
|
}
|
|
5018
5018
|
return ne(() => {
|
|
@@ -5025,11 +5025,11 @@ function Lt(e = null, r) {
|
|
|
5025
5025
|
dataUrls: a,
|
|
5026
5026
|
imgLoaded: t,
|
|
5027
5027
|
isDragging: o,
|
|
5028
|
-
thumbnails:
|
|
5029
|
-
uploadFile:
|
|
5028
|
+
thumbnails: i,
|
|
5029
|
+
uploadFile: u,
|
|
5030
5030
|
removeFile: m,
|
|
5031
|
-
dragStart:
|
|
5032
|
-
dragStop:
|
|
5031
|
+
dragStart: d,
|
|
5032
|
+
dragStop: s,
|
|
5033
5033
|
dragDrop: f,
|
|
5034
5034
|
setupDragAndDrop: v,
|
|
5035
5035
|
cleanupDragAndDrop: b
|
|
@@ -5127,24 +5127,24 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5127
5127
|
},
|
|
5128
5128
|
emits: ["update:modelValue", "update:src"],
|
|
5129
5129
|
setup(e, { emit: r }) {
|
|
5130
|
-
const n = e, l = r, { pending: a, files: t, dataUrls: o, isDragging:
|
|
5131
|
-
return W(() => t.value, async (
|
|
5130
|
+
const n = e, l = r, { pending: a, files: t, dataUrls: o, isDragging: i, thumbnails: u, uploadFile: m, removeFile: d } = Lt(n, l);
|
|
5131
|
+
return W(() => t.value, async (s) => {
|
|
5132
5132
|
o.value = await Promise.all(
|
|
5133
|
-
|
|
5133
|
+
s.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 }), W(() => o.value, async (
|
|
5139
|
-
const f = n.multiple ?
|
|
5140
|
-
l("update:modelValue", f), n.multiple || l("update:src",
|
|
5141
|
-
}, { deep: !0 }), (
|
|
5138
|
+
}, { deep: !0 }), W(() => o.value, async (s) => {
|
|
5139
|
+
const f = n.multiple ? s : s[0];
|
|
5140
|
+
l("update:modelValue", f), n.multiple || l("update:src", s[0] && s[0].src);
|
|
5141
|
+
}, { deep: !0 }), (s, f) => (c(), g("div", {
|
|
5142
5142
|
class: D(["file-upload", {
|
|
5143
5143
|
"has-dragging": e.dropFiles,
|
|
5144
|
-
"is-dragging": q(
|
|
5144
|
+
"is-dragging": q(i)
|
|
5145
5145
|
}])
|
|
5146
5146
|
}, [
|
|
5147
|
-
(c(!0), g(ae, null, ue(q(
|
|
5147
|
+
(c(!0), g(ae, null, ue(q(u), (v, b) => (c(), g("div", {
|
|
5148
5148
|
key: v.src,
|
|
5149
5149
|
class: D(e.enablePreview ? "file-upload__thumbnail" : "file-upload__reset")
|
|
5150
5150
|
}, [
|
|
@@ -5154,14 +5154,14 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5154
5154
|
class: "img-thumbnail rounded"
|
|
5155
5155
|
}, null, 8, ui),
|
|
5156
5156
|
A("button", {
|
|
5157
|
-
onClick: Z((w) => q(
|
|
5157
|
+
onClick: Z((w) => q(d)(b), ["prevent"]),
|
|
5158
5158
|
class: "btn btn--close"
|
|
5159
5159
|
}, [
|
|
5160
5160
|
I(Q, { symbol: "x" })
|
|
5161
5161
|
], 8, di)
|
|
5162
5162
|
], 64)) : (c(), g("button", {
|
|
5163
5163
|
key: 1,
|
|
5164
|
-
onClick: Z((w) => q(
|
|
5164
|
+
onClick: Z((w) => q(d)(b), ["prevent"]),
|
|
5165
5165
|
class: "btn btn--close btn-outline-contrast"
|
|
5166
5166
|
}, [
|
|
5167
5167
|
I(Q, { symbol: "x" })
|
|
@@ -5180,10 +5180,10 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5180
5180
|
for: e.id,
|
|
5181
5181
|
class: "file-upload__label"
|
|
5182
5182
|
}, [
|
|
5183
|
-
N(
|
|
5183
|
+
N(s.$slots, "button", {}, () => [
|
|
5184
5184
|
A("span", {
|
|
5185
5185
|
class: "btn btn-outline-contrast",
|
|
5186
|
-
innerHTML: e.label ||
|
|
5186
|
+
innerHTML: e.label || s.$t("common.selectFile")
|
|
5187
5187
|
}, null, 8, fi)
|
|
5188
5188
|
]),
|
|
5189
5189
|
I(tt, { name: "fade" }, {
|
|
@@ -5247,18 +5247,18 @@ 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 = C(!1), a = C(null), t = C(null), o = r,
|
|
5250
|
+
const n = e, l = C(!1), a = C(null), t = C(null), o = r, i = $({
|
|
5251
5251
|
get() {
|
|
5252
5252
|
return n.modelValue;
|
|
5253
5253
|
},
|
|
5254
5254
|
set(h) {
|
|
5255
5255
|
o("update:modelValue", h);
|
|
5256
5256
|
}
|
|
5257
|
-
}),
|
|
5257
|
+
}), u = $(() => {
|
|
5258
5258
|
const h = document.querySelector(".is-drag-item")?.outerHTML;
|
|
5259
5259
|
return h ? re(h) : "";
|
|
5260
|
-
}), m = Nt(),
|
|
5261
|
-
function
|
|
5260
|
+
}), m = Nt(), d = $(() => m["list-append"]);
|
|
5261
|
+
function s(h, k) {
|
|
5262
5262
|
h.dataTransfer && (h.dataTransfer.dropEffect = "move", h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("index", k.toLocaleString()), l.value = !0, a.value = k);
|
|
5263
5263
|
}
|
|
5264
5264
|
function f(h, k) {
|
|
@@ -5277,8 +5277,8 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5277
5277
|
function p(h, k) {
|
|
5278
5278
|
if (h.dataTransfer) {
|
|
5279
5279
|
h.preventDefault();
|
|
5280
|
-
const P = Number(h.dataTransfer.getData("index")), B = k, z = [...
|
|
5281
|
-
(B || B === 0) && (P || P === 0) && z.splice(B, 0, z.splice(P, 1)[0]),
|
|
5280
|
+
const P = Number(h.dataTransfer.getData("index")), B = k, z = [...i.value];
|
|
5281
|
+
(B || B === 0) && (P || P === 0) && z.splice(B, 0, z.splice(P, 1)[0]), i.value = z;
|
|
5282
5282
|
}
|
|
5283
5283
|
}
|
|
5284
5284
|
return W(() => l.value, (h) => {
|
|
@@ -5300,7 +5300,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5300
5300
|
}, ["prevent"]))
|
|
5301
5301
|
}, {
|
|
5302
5302
|
default: _(() => [
|
|
5303
|
-
(c(!0), g(ae, null, ue(
|
|
5303
|
+
(c(!0), g(ae, null, ue(i.value, (P, B) => (c(), g(ae, { key: B }, [
|
|
5304
5304
|
e.showPreview && l.value && t.value === B ? (c(), g("li", {
|
|
5305
5305
|
key: 0,
|
|
5306
5306
|
class: "sortable-list__item is-drop-target",
|
|
@@ -5309,7 +5309,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5309
5309
|
onDragleave: (z) => void 0,
|
|
5310
5310
|
onDragend: (z) => f(),
|
|
5311
5311
|
onDrop: (z) => p(z, B),
|
|
5312
|
-
innerHTML:
|
|
5312
|
+
innerHTML: u.value
|
|
5313
5313
|
}, null, 40, pi)) : M("", !0),
|
|
5314
5314
|
A("li", {
|
|
5315
5315
|
class: D(["sortable-list__item d-flex", {
|
|
@@ -5318,7 +5318,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5318
5318
|
"align-items-center gap-2": e.vertical
|
|
5319
5319
|
}]),
|
|
5320
5320
|
draggable: !0,
|
|
5321
|
-
onDragstart: (z) =>
|
|
5321
|
+
onDragstart: (z) => s(z, B),
|
|
5322
5322
|
onDrag: (z) => void 0,
|
|
5323
5323
|
onDragenter: (z) => b(z, B),
|
|
5324
5324
|
onDragover: (z) => w(z, B),
|
|
@@ -5345,7 +5345,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5345
5345
|
], 2)
|
|
5346
5346
|
], 42, hi)
|
|
5347
5347
|
], 64))), 128)),
|
|
5348
|
-
|
|
5348
|
+
d.value ? (c(), g("li", wi, [
|
|
5349
5349
|
N(h.$slots, "list-append")
|
|
5350
5350
|
])) : M("", !0)
|
|
5351
5351
|
]),
|
|
@@ -5374,33 +5374,33 @@ 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 = C(1), t = C(0), o = C(0),
|
|
5378
|
-
function
|
|
5379
|
-
|
|
5377
|
+
const n = r, l = et("image"), a = C(1), t = C(0), o = C(0), i = C(null), u = C(0), m = C(0);
|
|
5378
|
+
function d() {
|
|
5379
|
+
i.value && (n("update:modelValue", i.value), a.value = 1);
|
|
5380
5380
|
}
|
|
5381
|
-
const
|
|
5382
|
-
if (!
|
|
5383
|
-
t.value = Math.round(
|
|
5384
|
-
const v = m.value /
|
|
5381
|
+
const s = () => {
|
|
5382
|
+
if (!u.value || !m.value) return;
|
|
5383
|
+
t.value = Math.round(u.value * a.value);
|
|
5384
|
+
const v = m.value / u.value;
|
|
5385
5385
|
o.value = Math.round(t.value * v);
|
|
5386
5386
|
const b = l.value?.$el;
|
|
5387
5387
|
if (!b) return;
|
|
5388
5388
|
const w = b.querySelector("img");
|
|
5389
|
-
w && (
|
|
5390
|
-
}, f = At(
|
|
5389
|
+
w && (i.value = St(w, t.value, o.value, "image/png"));
|
|
5390
|
+
}, f = At(s, 300);
|
|
5391
5391
|
return W(a, () => {
|
|
5392
|
-
|
|
5392
|
+
u.value && (t.value = Math.round(u.value * a.value), f());
|
|
5393
5393
|
}), W(t, () => {
|
|
5394
|
-
if (!
|
|
5395
|
-
const v = t.value /
|
|
5394
|
+
if (!u.value || t.value === 0) return;
|
|
5395
|
+
const v = t.value / u.value;
|
|
5396
5396
|
Math.abs(v - a.value) > 1e-4 && (a.value = Number(v.toFixed(4)));
|
|
5397
|
-
const b = m.value /
|
|
5397
|
+
const b = m.value / u.value;
|
|
5398
5398
|
o.value = Math.round(t.value * b), 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
|
-
const b =
|
|
5403
|
+
const b = u.value / m.value;
|
|
5404
5404
|
t.value = Math.round(o.value * b), f();
|
|
5405
5405
|
}), ne(() => {
|
|
5406
5406
|
const v = l.value?.$el;
|
|
@@ -5408,7 +5408,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5408
5408
|
const b = v.querySelector("img");
|
|
5409
5409
|
if (!b) return;
|
|
5410
5410
|
const w = () => {
|
|
5411
|
-
|
|
5411
|
+
u.value = b.naturalWidth, m.value = b.naturalHeight, s();
|
|
5412
5412
|
};
|
|
5413
5413
|
b.complete ? w() : b.addEventListener("load", w);
|
|
5414
5414
|
}), (v, b) => e.modelValue ? (c(), g("div", Ci, [
|
|
@@ -5421,11 +5421,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5421
5421
|
src: e.modelValue,
|
|
5422
5422
|
animate: !1
|
|
5423
5423
|
}, null, 8, ["src"]),
|
|
5424
|
-
|
|
5424
|
+
i.value ? (c(), U(Te, {
|
|
5425
5425
|
key: 0,
|
|
5426
5426
|
ref: "targetImage",
|
|
5427
5427
|
class: "",
|
|
5428
|
-
src:
|
|
5428
|
+
src: i.value,
|
|
5429
5429
|
animate: !1
|
|
5430
5430
|
}, null, 8, ["src"])) : M("", !0)
|
|
5431
5431
|
])
|
|
@@ -5477,8 +5477,8 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5477
5477
|
N(v.$slots, "actions"),
|
|
5478
5478
|
A("button", {
|
|
5479
5479
|
class: "btn btn-sm btn-primary",
|
|
5480
|
-
disabled: !
|
|
5481
|
-
onClick: Z(
|
|
5480
|
+
disabled: !i.value,
|
|
5481
|
+
onClick: Z(d, ["prevent", "stop"])
|
|
5482
5482
|
}, T(v.$t("common.apply")), 9, Ti)
|
|
5483
5483
|
])
|
|
5484
5484
|
])
|
|
@@ -5520,12 +5520,12 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5520
5520
|
setup(e, { emit: r }) {
|
|
5521
5521
|
const n = e, l = r, a = et("cropper"), t = C(0);
|
|
5522
5522
|
function o() {
|
|
5523
|
-
const { canvas:
|
|
5524
|
-
l("update:modelValue",
|
|
5523
|
+
const { canvas: i } = a.value?.getResult(), u = i.toDataURL();
|
|
5524
|
+
l("update:modelValue", u);
|
|
5525
5525
|
}
|
|
5526
5526
|
return ot(() => {
|
|
5527
5527
|
t.value = n.suggestedAspectRatio || 0;
|
|
5528
|
-
}), (
|
|
5528
|
+
}), (i, u) => e.modelValue ? (c(), g("div", Ni, [
|
|
5529
5529
|
A("div", Hi, [
|
|
5530
5530
|
A("div", Qi, [
|
|
5531
5531
|
I(q(Qt), {
|
|
@@ -5539,20 +5539,20 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5539
5539
|
}, null, 8, ["src", "stencil-props"])
|
|
5540
5540
|
])
|
|
5541
5541
|
]),
|
|
5542
|
-
|
|
5542
|
+
u[1] || (u[1] = A("hr", null, null, -1)),
|
|
5543
5543
|
A("div", Oi, [
|
|
5544
5544
|
A("div", Ri, [
|
|
5545
5545
|
I(It, {
|
|
5546
5546
|
modelValue: t.value,
|
|
5547
|
-
"onUpdate:modelValue":
|
|
5547
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => t.value = m),
|
|
5548
5548
|
options: e.aspectRatioOptions,
|
|
5549
5549
|
class: "mb-0"
|
|
5550
5550
|
}, null, 8, ["modelValue", "options"]),
|
|
5551
|
-
N(
|
|
5551
|
+
N(i.$slots, "actions"),
|
|
5552
5552
|
A("button", {
|
|
5553
5553
|
class: "btn btn-sm btn-primary",
|
|
5554
5554
|
onClick: Z(o, ["prevent", "stop"])
|
|
5555
|
-
}, T(
|
|
5555
|
+
}, T(i.$t("common.apply")), 1)
|
|
5556
5556
|
])
|
|
5557
5557
|
])
|
|
5558
5558
|
])) : M("", !0);
|
|
@@ -5591,39 +5591,39 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5591
5591
|
setup(e, { emit: r }) {
|
|
5592
5592
|
const n = e, l = r, a = C(!1), t = C(!1), o = $({
|
|
5593
5593
|
get: () => n.modelValue,
|
|
5594
|
-
set: (
|
|
5595
|
-
}),
|
|
5596
|
-
return W(() => [a.value, o.value], (
|
|
5597
|
-
|
|
5598
|
-
}), W(() => [t.value, o.value], (
|
|
5599
|
-
|
|
5594
|
+
set: (u) => l("update:modelValue", u)
|
|
5595
|
+
}), i = $(() => n.modelValue.startsWith("data:image/svg+xml"));
|
|
5596
|
+
return W(() => [a.value, o.value], (u, m) => {
|
|
5597
|
+
u[0] && u[0] === m[0] && (a.value = !1);
|
|
5598
|
+
}), W(() => [t.value, o.value], (u, m) => {
|
|
5599
|
+
u[0] && u[0] === m[0] && (t.value = !1);
|
|
5600
5600
|
}), ne(() => {
|
|
5601
|
-
}), (
|
|
5601
|
+
}), (u, m) => e.modelValue ? (c(), g("div", Wi, [
|
|
5602
5602
|
A("div", Ui, [
|
|
5603
5603
|
A("div", ji, [
|
|
5604
5604
|
a.value || t.value ? a.value ? (c(), U(zi, {
|
|
5605
5605
|
key: 1,
|
|
5606
5606
|
modelValue: o.value,
|
|
5607
|
-
"onUpdate:modelValue": m[1] || (m[1] = (
|
|
5607
|
+
"onUpdate:modelValue": m[1] || (m[1] = (d) => o.value = d)
|
|
5608
5608
|
}, {
|
|
5609
5609
|
actions: _(() => [
|
|
5610
5610
|
A("button", {
|
|
5611
5611
|
class: "btn btn-outline-ccontrast",
|
|
5612
|
-
onClick: m[0] || (m[0] = Z((
|
|
5613
|
-
}, T(
|
|
5612
|
+
onClick: m[0] || (m[0] = Z((d) => a.value = !1, ["prevent", "stop"]))
|
|
5613
|
+
}, T(u.$t("common.cancel")), 1)
|
|
5614
5614
|
]),
|
|
5615
5615
|
_: 1
|
|
5616
5616
|
}, 8, ["modelValue"])) : t.value ? (c(), U(Fi, {
|
|
5617
5617
|
key: 2,
|
|
5618
5618
|
modelValue: o.value,
|
|
5619
|
-
"onUpdate:modelValue": m[3] || (m[3] = (
|
|
5619
|
+
"onUpdate:modelValue": m[3] || (m[3] = (d) => o.value = d),
|
|
5620
5620
|
"suggested-aspect-ratio": e.aspectRatio
|
|
5621
5621
|
}, {
|
|
5622
5622
|
actions: _(() => [
|
|
5623
5623
|
A("button", {
|
|
5624
5624
|
class: "btn btn-sm btn-outline-ccontrast",
|
|
5625
|
-
onClick: m[2] || (m[2] = Z((
|
|
5626
|
-
}, T(
|
|
5625
|
+
onClick: m[2] || (m[2] = Z((d) => t.value = !1, ["prevent", "stop"]))
|
|
5626
|
+
}, T(u.$t("common.cancel")), 1)
|
|
5627
5627
|
]),
|
|
5628
5628
|
_: 1
|
|
5629
5629
|
}, 8, ["modelValue", "suggested-aspect-ratio"])) : M("", !0) : (c(), U(Te, {
|
|
@@ -5633,7 +5633,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5633
5633
|
animate: !1,
|
|
5634
5634
|
src: e.modelValue
|
|
5635
5635
|
}, null, 8, ["src"])),
|
|
5636
|
-
|
|
5636
|
+
i.value ? (c(), g("div", qi, T(u.$t("common.svgWarning")), 1)) : M("", !0),
|
|
5637
5637
|
!t.value && !a.value ? (c(), g("hr", _i)) : M("", !0),
|
|
5638
5638
|
A("div", Ji, [
|
|
5639
5639
|
A("div", Gi, [
|
|
@@ -5642,22 +5642,22 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5642
5642
|
A("button", {
|
|
5643
5643
|
type: "button",
|
|
5644
5644
|
class: "btn btn-light",
|
|
5645
|
-
onClick: m[4] || (m[4] = Z((
|
|
5645
|
+
onClick: m[4] || (m[4] = Z((d) => t.value = !t.value, ["prevent", "stop"]))
|
|
5646
5646
|
}, [
|
|
5647
5647
|
I(Q, { symbol: "crop" }),
|
|
5648
|
-
A("span", Xi, T(
|
|
5648
|
+
A("span", Xi, T(u.$t("common.crop")), 1)
|
|
5649
5649
|
]),
|
|
5650
5650
|
A("button", {
|
|
5651
5651
|
type: "button",
|
|
5652
5652
|
class: "btn btn-light",
|
|
5653
|
-
onClick: m[5] || (m[5] = Z((
|
|
5653
|
+
onClick: m[5] || (m[5] = Z((d) => a.value = !a.value, ["prevent", "stop"]))
|
|
5654
5654
|
}, [
|
|
5655
5655
|
I(Q, { symbol: "image-upscale" }),
|
|
5656
|
-
A("span", Ki, T(
|
|
5656
|
+
A("span", Ki, T(u.$t("common.resize")), 1)
|
|
5657
5657
|
])
|
|
5658
5658
|
])) : M("", !0),
|
|
5659
5659
|
!t.value && !a.value ? (c(), g("div", es, [
|
|
5660
|
-
N(
|
|
5660
|
+
N(u.$slots, "submit")
|
|
5661
5661
|
])) : M("", !0)
|
|
5662
5662
|
])
|
|
5663
5663
|
])
|
|
@@ -5712,17 +5712,17 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
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
|
}
|
|
5715
|
-
function
|
|
5715
|
+
function i() {
|
|
5716
5716
|
const f = t.value && new KeyframeEffect(
|
|
5717
5717
|
t.value,
|
|
5718
5718
|
[{ translate: "0 -100%", opacity: "0" }],
|
|
5719
5719
|
{ duration: 320, easing: "ease", direction: "normal" }
|
|
5720
5720
|
), v = new Animation(f, document.timeline);
|
|
5721
5721
|
v.play(), v.addEventListener("finish", () => {
|
|
5722
|
-
t.value?.close(),
|
|
5722
|
+
t.value?.close(), u();
|
|
5723
5723
|
}), a("update:modelValue", !1);
|
|
5724
5724
|
}
|
|
5725
|
-
function
|
|
5725
|
+
function u() {
|
|
5726
5726
|
const f = getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");
|
|
5727
5727
|
document.documentElement.scrollTo({
|
|
5728
5728
|
top: parseInt(f, 10),
|
|
@@ -5732,33 +5732,33 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5732
5732
|
function m(f) {
|
|
5733
5733
|
o(), a("confirm", f);
|
|
5734
5734
|
}
|
|
5735
|
-
function
|
|
5736
|
-
|
|
5735
|
+
function d() {
|
|
5736
|
+
i(), a("cancel");
|
|
5737
5737
|
}
|
|
5738
|
-
function
|
|
5738
|
+
function s(f) {
|
|
5739
5739
|
const v = f.target;
|
|
5740
|
-
v && v.nodeName === "DIALOG" &&
|
|
5740
|
+
v && v.nodeName === "DIALOG" && i();
|
|
5741
5741
|
}
|
|
5742
5742
|
return W(() => l.modelValue, (f, v) => {
|
|
5743
|
-
f && f !== v ? o() : v &&
|
|
5743
|
+
f && f !== v ? o() : v && i();
|
|
5744
5744
|
}, { immediate: !0 }), ne(() => {
|
|
5745
5745
|
t.value?.addEventListener("cancel", (f) => {
|
|
5746
|
-
f.preventDefault(),
|
|
5747
|
-
}), l.dismiss && document.addEventListener("click",
|
|
5746
|
+
f.preventDefault(), i();
|
|
5747
|
+
}), l.dismiss && document.addEventListener("click", s), l.modelValue && o();
|
|
5748
5748
|
}), Ce(() => {
|
|
5749
|
-
l.dismiss && document.removeEventListener("click",
|
|
5749
|
+
l.dismiss && document.removeEventListener("click", s);
|
|
5750
5750
|
}), r({
|
|
5751
5751
|
show: o,
|
|
5752
|
-
close:
|
|
5752
|
+
close: i,
|
|
5753
5753
|
confirm: m,
|
|
5754
|
-
cancel:
|
|
5754
|
+
cancel: d
|
|
5755
5755
|
}), (f, v) => (c(), g("dialog", {
|
|
5756
5756
|
ref_key: "dialog",
|
|
5757
5757
|
ref: t,
|
|
5758
5758
|
class: D(["modal-dialog", {
|
|
5759
5759
|
[`modal-dialog--${e.size}`]: e.size
|
|
5760
5760
|
}]),
|
|
5761
|
-
onClose:
|
|
5761
|
+
onClose: u
|
|
5762
5762
|
}, [
|
|
5763
5763
|
A("div", as, [
|
|
5764
5764
|
A("div", ns, [
|
|
@@ -5767,7 +5767,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5767
5767
|
type: "button",
|
|
5768
5768
|
class: "btn-close ms-auto border-radius-none",
|
|
5769
5769
|
"aria-label": "Close",
|
|
5770
|
-
onClick:
|
|
5770
|
+
onClick: i
|
|
5771
5771
|
})
|
|
5772
5772
|
]),
|
|
5773
5773
|
A("div", os, [
|
|
@@ -5778,7 +5778,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5778
5778
|
A("button", {
|
|
5779
5779
|
type: "button",
|
|
5780
5780
|
class: "btn ms-auto",
|
|
5781
|
-
onClick:
|
|
5781
|
+
onClick: i
|
|
5782
5782
|
}, T(f.$t("common.close")), 1)
|
|
5783
5783
|
])) : M("", !0)
|
|
5784
5784
|
])
|
|
@@ -5885,25 +5885,25 @@ 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 = C(!1), t = C(null), o = C(null),
|
|
5889
|
-
pending:
|
|
5888
|
+
const n = e, l = r, a = C(!1), t = C(null), o = C(null), i = C(null), {
|
|
5889
|
+
pending: u,
|
|
5890
5890
|
files: m,
|
|
5891
5891
|
// dataUrls,
|
|
5892
|
-
imgLoaded:
|
|
5893
|
-
isDragging:
|
|
5892
|
+
imgLoaded: d,
|
|
5893
|
+
isDragging: s,
|
|
5894
5894
|
uploadFile: f,
|
|
5895
5895
|
setupDragAndDrop: v,
|
|
5896
5896
|
cleanupDragAndDrop: b
|
|
5897
5897
|
} = Lt(n, l), w = $(() => n.modelValue ? n.modelValue : n.src ? { type: "", src: n.src } : t.value);
|
|
5898
5898
|
function V() {
|
|
5899
|
-
t.value = null, m.value = [],
|
|
5899
|
+
t.value = null, m.value = [], d.value = !1, l("update:modelValue", void 0), l("update:src", "");
|
|
5900
5900
|
}
|
|
5901
5901
|
function p() {
|
|
5902
5902
|
V();
|
|
5903
5903
|
}
|
|
5904
5904
|
W(() => m.value, async (P) => {
|
|
5905
5905
|
if (!P || !P.length || !P[0]) return;
|
|
5906
|
-
|
|
5906
|
+
d.value = !1;
|
|
5907
5907
|
const B = await Yt(P[0], n.maxImageWidth);
|
|
5908
5908
|
n.enableReview ? (o.value = {
|
|
5909
5909
|
src: await Ke(B),
|
|
@@ -5914,11 +5914,11 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5914
5914
|
};
|
|
5915
5915
|
}), W(() => t.value, (P) => {
|
|
5916
5916
|
l("update:modelValue", P || void 0), l("update:src", P?.src || "");
|
|
5917
|
-
}), W(() =>
|
|
5917
|
+
}), W(() => i.value, async (P) => {
|
|
5918
5918
|
P && (t.value = {
|
|
5919
5919
|
src: await f(P),
|
|
5920
5920
|
type: P.type
|
|
5921
|
-
},
|
|
5921
|
+
}, i.value = null);
|
|
5922
5922
|
}), W(() => a.value, (P, B) => {
|
|
5923
5923
|
!P && B && o.value && (o.value = null, p());
|
|
5924
5924
|
}), W(() => n.src, (P) => {
|
|
@@ -5928,7 +5928,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5928
5928
|
o.value = { src: P, type: B }, a.value = !0;
|
|
5929
5929
|
}
|
|
5930
5930
|
async function k() {
|
|
5931
|
-
o.value && (
|
|
5931
|
+
o.value && (i.value = await kt(
|
|
5932
5932
|
o.value.src,
|
|
5933
5933
|
"file",
|
|
5934
5934
|
o.value.type
|
|
@@ -5941,7 +5941,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5941
5941
|
}), (P, B) => (c(), g("div", {
|
|
5942
5942
|
class: D(["image-upload", {
|
|
5943
5943
|
"has-dragging": e.dropFiles,
|
|
5944
|
-
"is-dragging": q(
|
|
5944
|
+
"is-dragging": q(s)
|
|
5945
5945
|
}])
|
|
5946
5946
|
}, [
|
|
5947
5947
|
!a.value && w.value ? (c(), g("div", {
|
|
@@ -5952,8 +5952,8 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
5952
5952
|
I(Te, {
|
|
5953
5953
|
src: `${w.value.src}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
|
|
5954
5954
|
class: "img-thumbnail rounded",
|
|
5955
|
-
ready: q(
|
|
5956
|
-
"onUpdate:ready": B[0] || (B[0] = (z) => nt(
|
|
5955
|
+
ready: q(d),
|
|
5956
|
+
"onUpdate:ready": B[0] || (B[0] = (z) => nt(d) ? d.value = z : null),
|
|
5957
5957
|
animate: !1,
|
|
5958
5958
|
style: $e({ maxWidth: e.previewWidth ? `${e.previewWidth}px` : "auto", height: "auto" })
|
|
5959
5959
|
}, null, 8, ["src", "ready", "style"]),
|
|
@@ -6006,7 +6006,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6006
6006
|
]),
|
|
6007
6007
|
I(tt, { name: "fade" }, {
|
|
6008
6008
|
default: _(() => [
|
|
6009
|
-
q(
|
|
6009
|
+
q(u) ? (c(), g("span", ms, [...B[7] || (B[7] = [
|
|
6010
6010
|
A("span", {
|
|
6011
6011
|
class: "spinner-border",
|
|
6012
6012
|
role: "status"
|
|
@@ -6120,16 +6120,16 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6120
6120
|
get() {
|
|
6121
6121
|
return n.modelValue;
|
|
6122
6122
|
},
|
|
6123
|
-
set(
|
|
6124
|
-
l("update:modelValue",
|
|
6123
|
+
set(i) {
|
|
6124
|
+
l("update:modelValue", i);
|
|
6125
6125
|
}
|
|
6126
6126
|
});
|
|
6127
|
-
function o(
|
|
6128
|
-
t.value.splice(
|
|
6127
|
+
function o(i) {
|
|
6128
|
+
t.value.splice(i, 1), l("update:modelValue", t.value);
|
|
6129
6129
|
}
|
|
6130
|
-
return W(a, async (
|
|
6131
|
-
|
|
6132
|
-
}), (
|
|
6130
|
+
return W(a, async (i, u) => {
|
|
6131
|
+
i && u !== i && (l("update:modelValue", [...t.value, i]), await Fe(), a.value = "");
|
|
6132
|
+
}), (i, u) => (c(), g("div", gs, [
|
|
6133
6133
|
e.label ? (c(), g("label", {
|
|
6134
6134
|
key: 0,
|
|
6135
6135
|
innerHTML: q(re)(e.label)
|
|
@@ -6137,18 +6137,18 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6137
6137
|
A("div", ps, [
|
|
6138
6138
|
I($i, {
|
|
6139
6139
|
modelValue: t.value,
|
|
6140
|
-
"onUpdate:modelValue":
|
|
6140
|
+
"onUpdate:modelValue": u[2] || (u[2] = (m) => t.value = m),
|
|
6141
6141
|
vertical: !1,
|
|
6142
6142
|
class: "mb-3"
|
|
6143
6143
|
}, {
|
|
6144
|
-
"list-item": _(({ item: m, index:
|
|
6144
|
+
"list-item": _(({ item: m, index: d }) => [
|
|
6145
6145
|
A("div", hs, [
|
|
6146
6146
|
A("img", {
|
|
6147
6147
|
src: `${m}${e.previewWidth ? `?width=${e.previewWidth}` : ""}`,
|
|
6148
6148
|
class: "img-thumbnail"
|
|
6149
6149
|
}, null, 8, ys),
|
|
6150
6150
|
A("button", {
|
|
6151
|
-
onClick: Z((
|
|
6151
|
+
onClick: Z((s) => o(d), ["prevent"]),
|
|
6152
6152
|
class: "btn btn--close"
|
|
6153
6153
|
}, [
|
|
6154
6154
|
I(Q, { symbol: "x" })
|
|
@@ -6159,7 +6159,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6159
6159
|
e.useImageUpload ? (c(), U(fs, {
|
|
6160
6160
|
key: 0,
|
|
6161
6161
|
src: a.value,
|
|
6162
|
-
"onUpdate:src":
|
|
6162
|
+
"onUpdate:src": u[0] || (u[0] = (m) => a.value = m),
|
|
6163
6163
|
endpoint: e.endpoint,
|
|
6164
6164
|
"custom-fetch": e.customFetch,
|
|
6165
6165
|
"to-data-url": !e.endpoint,
|
|
@@ -6181,7 +6181,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6181
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
|
-
"onUpdate:src":
|
|
6184
|
+
"onUpdate:src": u[1] || (u[1] = (m) => a.value = m),
|
|
6185
6185
|
multiple: !1,
|
|
6186
6186
|
endpoint: e.endpoint,
|
|
6187
6187
|
"custom-fetch": e.customFetch,
|
|
@@ -6206,7 +6206,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6206
6206
|
])
|
|
6207
6207
|
]));
|
|
6208
6208
|
}
|
|
6209
|
-
}), ks = { class: "asset-uploader" }, Ss = ["innerHTML"],
|
|
6209
|
+
}), ks = { class: "asset-uploader" }, Ss = ["innerHTML"], Wr = /* @__PURE__ */ O({
|
|
6210
6210
|
__name: "asset-uploader",
|
|
6211
6211
|
props: {
|
|
6212
6212
|
modelValue: {
|
|
@@ -6292,10 +6292,10 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6292
6292
|
},
|
|
6293
6293
|
set(t) {
|
|
6294
6294
|
l("update:modelValue", t.map(
|
|
6295
|
-
(o,
|
|
6296
|
-
mediaType: n.modelValue[
|
|
6295
|
+
(o, i) => ({
|
|
6296
|
+
mediaType: n.modelValue[i] && n.modelValue[i].mediaType || o.includes("data:image") ? o.includes("data:image/svg") ? "Svg" : "Image" : n.mediaTypeMap[o.split(".")[1]],
|
|
6297
6297
|
src: o,
|
|
6298
|
-
name: n.modelValue[
|
|
6298
|
+
name: n.modelValue[i] && n.modelValue[i].name || `${n.name}-${i}`,
|
|
6299
6299
|
...n.type ? { type: n.type } : {}
|
|
6300
6300
|
})
|
|
6301
6301
|
));
|
|
@@ -6308,7 +6308,7 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6308
6308
|
}, null, 8, Ss)) : M("", !0),
|
|
6309
6309
|
I(Cs, {
|
|
6310
6310
|
modelValue: a.value,
|
|
6311
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
6311
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => a.value = i),
|
|
6312
6312
|
endpoint: e.endpoint,
|
|
6313
6313
|
"custom-fetch": e.customFetch,
|
|
6314
6314
|
"auth-token": e.authToken,
|
|
@@ -6326,17 +6326,17 @@ const ui = ["src"], di = ["onClick"], ci = ["onClick"], mi = ["for"], fi = ["inn
|
|
|
6326
6326
|
}), Bs = "https://router.project-osrm.org/route/v1";
|
|
6327
6327
|
function Ms() {
|
|
6328
6328
|
const e = C([]), r = C(null), n = C(null), l = C([]), a = C(!1), t = C(""), o = $(() => e.value.length > 1);
|
|
6329
|
-
function
|
|
6329
|
+
function i() {
|
|
6330
6330
|
e.value = [], r.value = null, n.value = null, l.value = [], t.value = "";
|
|
6331
6331
|
}
|
|
6332
|
-
async function
|
|
6333
|
-
if (!m || !
|
|
6334
|
-
return
|
|
6332
|
+
async function u(m, d, s = {}) {
|
|
6333
|
+
if (!m || !d)
|
|
6334
|
+
return i(), null;
|
|
6335
6335
|
a.value = !0;
|
|
6336
|
-
const f =
|
|
6336
|
+
const f = s.customFetch || Ze, v = (s.endpoint || Bs).replace(/\/$/, ""), b = s.profile || "driving";
|
|
6337
6337
|
try {
|
|
6338
6338
|
const V = (await f(
|
|
6339
|
-
`${v}/${b}/${m.lng},${m.lat};${
|
|
6339
|
+
`${v}/${b}/${m.lng},${m.lat};${d.lng},${d.lat}`,
|
|
6340
6340
|
{
|
|
6341
6341
|
method: "GET",
|
|
6342
6342
|
query: {
|
|
@@ -6351,7 +6351,7 @@ function Ms() {
|
|
|
6351
6351
|
throw new Error("No route available for these points.");
|
|
6352
6352
|
return e.value = Array.isArray(V?.geometry?.coordinates) ? V.geometry.coordinates.map((p) => [Number(p[1]), Number(p[0])]).filter((p) => Number.isFinite(p[0]) && Number.isFinite(p[1])) : [], r.value = Number.isFinite(V?.distance) ? Number(V.distance) : null, n.value = Number.isFinite(V?.duration) ? Number(V.duration) : null, l.value = Array.isArray(V?.legs) ? V.legs.flatMap((p) => Array.isArray(p?.steps) ? p.steps.map((h) => Is(h)) : []) : [], t.value = "", V;
|
|
6353
6353
|
} catch (w) {
|
|
6354
|
-
return
|
|
6354
|
+
return i(), t.value = w?.message || "Unable to load directions right now.", null;
|
|
6355
6355
|
} finally {
|
|
6356
6356
|
a.value = !1;
|
|
6357
6357
|
}
|
|
@@ -6364,8 +6364,8 @@ function Ms() {
|
|
|
6364
6364
|
pending: a,
|
|
6365
6365
|
error: t,
|
|
6366
6366
|
hasRoute: o,
|
|
6367
|
-
fetchRoute:
|
|
6368
|
-
clearRoute:
|
|
6367
|
+
fetchRoute: u,
|
|
6368
|
+
clearRoute: i
|
|
6369
6369
|
};
|
|
6370
6370
|
}
|
|
6371
6371
|
function Is(e) {
|
|
@@ -6386,41 +6386,41 @@ function Ps() {
|
|
|
6386
6386
|
function l() {
|
|
6387
6387
|
e.value = [], n.value = "";
|
|
6388
6388
|
}
|
|
6389
|
-
async function a(o,
|
|
6389
|
+
async function a(o, i = {}) {
|
|
6390
6390
|
if (!o.trim())
|
|
6391
6391
|
return l(), [];
|
|
6392
6392
|
r.value = !0;
|
|
6393
|
-
const
|
|
6393
|
+
const u = i.customFetch || Ze;
|
|
6394
6394
|
try {
|
|
6395
|
-
const m = await
|
|
6395
|
+
const m = await u(i.endpoint || Ds, {
|
|
6396
6396
|
method: "GET",
|
|
6397
6397
|
headers: {
|
|
6398
6398
|
Accept: "application/json",
|
|
6399
|
-
...
|
|
6399
|
+
...i.language ? { "Accept-Language": i.language } : {}
|
|
6400
6400
|
},
|
|
6401
6401
|
query: {
|
|
6402
6402
|
q: o,
|
|
6403
6403
|
format: "jsonv2",
|
|
6404
6404
|
addressdetails: 1,
|
|
6405
|
-
limit:
|
|
6405
|
+
limit: i.limit || 5
|
|
6406
6406
|
}
|
|
6407
6407
|
});
|
|
6408
|
-
return e.value = Array.isArray(m) ? m.map((
|
|
6408
|
+
return e.value = Array.isArray(m) ? m.map((d, s) => yt(d, s, "geocoder")).filter((d) => !!d) : [], n.value = "", e.value;
|
|
6409
6409
|
} catch (m) {
|
|
6410
6410
|
return n.value = m?.message || "Unable to search locations right now.", e.value = [], [];
|
|
6411
6411
|
} finally {
|
|
6412
6412
|
r.value = !1;
|
|
6413
6413
|
}
|
|
6414
6414
|
}
|
|
6415
|
-
async function t(o,
|
|
6415
|
+
async function t(o, i = {}) {
|
|
6416
6416
|
r.value = !0;
|
|
6417
|
-
const
|
|
6417
|
+
const u = i.customFetch || Ze;
|
|
6418
6418
|
try {
|
|
6419
|
-
const m = await
|
|
6419
|
+
const m = await u(i.reverseEndpoint || Vs, {
|
|
6420
6420
|
method: "GET",
|
|
6421
6421
|
headers: {
|
|
6422
6422
|
Accept: "application/json",
|
|
6423
|
-
...
|
|
6423
|
+
...i.language ? { "Accept-Language": i.language } : {}
|
|
6424
6424
|
},
|
|
6425
6425
|
query: {
|
|
6426
6426
|
lat: o.lat,
|
|
@@ -6428,8 +6428,8 @@ function Ps() {
|
|
|
6428
6428
|
format: "jsonv2",
|
|
6429
6429
|
addressdetails: 1
|
|
6430
6430
|
}
|
|
6431
|
-
}),
|
|
6432
|
-
return n.value = "",
|
|
6431
|
+
}), d = yt(m, 0, "reverse-geocoder");
|
|
6432
|
+
return n.value = "", d;
|
|
6433
6433
|
} catch (m) {
|
|
6434
6434
|
return n.value = m?.message || "Unable to resolve this location right now.", null;
|
|
6435
6435
|
} finally {
|
|
@@ -6467,8 +6467,8 @@ function xs(e = {}) {
|
|
|
6467
6467
|
maximumAge: 1e4,
|
|
6468
6468
|
...e
|
|
6469
6469
|
};
|
|
6470
|
-
let
|
|
6471
|
-
function
|
|
6470
|
+
let i = null;
|
|
6471
|
+
function u(v) {
|
|
6472
6472
|
r.value = {
|
|
6473
6473
|
lat: Number(v.latitude),
|
|
6474
6474
|
lng: Number(v.longitude),
|
|
@@ -6478,11 +6478,11 @@ function xs(e = {}) {
|
|
|
6478
6478
|
function m(v) {
|
|
6479
6479
|
n.value = typeof v == "string" ? v : v instanceof Error ? v.message : v.message || "Unable to retrieve your location.", l.value = !1;
|
|
6480
6480
|
}
|
|
6481
|
-
async function
|
|
6481
|
+
async function d() {
|
|
6482
6482
|
return t ? (l.value = !0, new Promise((v) => {
|
|
6483
6483
|
navigator.geolocation.getCurrentPosition(
|
|
6484
6484
|
({ coords: b }) => {
|
|
6485
|
-
|
|
6485
|
+
u(b), v(r.value);
|
|
6486
6486
|
},
|
|
6487
6487
|
(b) => {
|
|
6488
6488
|
m(b), v(null);
|
|
@@ -6491,14 +6491,14 @@ function xs(e = {}) {
|
|
|
6491
6491
|
);
|
|
6492
6492
|
})) : (m("Geolocation is not supported in this browser."), null);
|
|
6493
6493
|
}
|
|
6494
|
-
function
|
|
6494
|
+
function s() {
|
|
6495
6495
|
if (!t) {
|
|
6496
6496
|
m("Geolocation is not supported in this browser.");
|
|
6497
6497
|
return;
|
|
6498
6498
|
}
|
|
6499
|
-
|
|
6499
|
+
i === null && (l.value = !0, a.value = !0, i = navigator.geolocation.watchPosition(
|
|
6500
6500
|
({ coords: v }) => {
|
|
6501
|
-
|
|
6501
|
+
u(v);
|
|
6502
6502
|
},
|
|
6503
6503
|
(v) => {
|
|
6504
6504
|
m(v), a.value = !1;
|
|
@@ -6507,11 +6507,11 @@ function xs(e = {}) {
|
|
|
6507
6507
|
));
|
|
6508
6508
|
}
|
|
6509
6509
|
function f() {
|
|
6510
|
-
if (!t ||
|
|
6510
|
+
if (!t || i === null) {
|
|
6511
6511
|
a.value = !1, l.value = !1;
|
|
6512
6512
|
return;
|
|
6513
6513
|
}
|
|
6514
|
-
navigator.geolocation.clearWatch(
|
|
6514
|
+
navigator.geolocation.clearWatch(i), i = null, a.value = !1, l.value = !1;
|
|
6515
6515
|
}
|
|
6516
6516
|
return Ce(() => {
|
|
6517
6517
|
f();
|
|
@@ -6522,8 +6522,8 @@ function xs(e = {}) {
|
|
|
6522
6522
|
error: n,
|
|
6523
6523
|
pending: l,
|
|
6524
6524
|
isTracking: a,
|
|
6525
|
-
locate:
|
|
6526
|
-
startTracking:
|
|
6525
|
+
locate: d,
|
|
6526
|
+
startTracking: s,
|
|
6527
6527
|
stopTracking: f
|
|
6528
6528
|
};
|
|
6529
6529
|
}
|
|
@@ -6550,7 +6550,7 @@ const Es = {
|
|
|
6550
6550
|
}, eA = { key: 0 }, tA = {
|
|
6551
6551
|
key: 2,
|
|
6552
6552
|
class: "location-finder__summary-copy"
|
|
6553
|
-
},
|
|
6553
|
+
}, Ur = /* @__PURE__ */ O({
|
|
6554
6554
|
__name: "location-finder",
|
|
6555
6555
|
props: {
|
|
6556
6556
|
modelValue: {
|
|
@@ -6757,7 +6757,7 @@ const Es = {
|
|
|
6757
6757
|
userLocationLabel: "Your location",
|
|
6758
6758
|
pinnedLocationTitle: "Pinned location",
|
|
6759
6759
|
selectedLocationLabel: "Selected location"
|
|
6760
|
-
}, a = e, t = r, { t: o, te:
|
|
6760
|
+
}, a = e, t = r, { t: o, te: i } = st({ useScope: "global" }), u = xs(), m = Ps(), d = Ms(), s = C(""), f = C(oe(x(a.modelValue))), v = C(oe(x(a.modelValue)) ? null : x(a.modelValue)), b = C(X(a.modelValue) || X(a.center) || X(a.locations[0]) || n), w = C(!1), V = $(() => X(a.userLocation)), p = $(() => u.position.value || V.value), h = $(() => X(v.value)), k = $(() => X(f.value)), P = $(() => p.value || h.value), B = $(() => !P.value || !k.value ? null : qe(P.value, k.value)), z = $(() => X(a.modelValue) || h.value || k.value), K = $(() => u.error.value || m.error.value || d.error.value || ""), ge = $(() => a.showSearch || a.trackUser && a.showTrackButton), me = $(() => a.enableDirections && a.showDirectionsSummary), ke = $(() => a.showSidebar || me.value), ve = $(() => Oe(d.distanceMeters.value)), Le = $(() => _e(d.durationSeconds.value)), Y = $(() => ({
|
|
6761
6761
|
searchLabel: te("searchLabel", a.searchLabel),
|
|
6762
6762
|
searchPlaceholder: te("searchPlaceholder", a.searchPlaceholder),
|
|
6763
6763
|
resultsLabel: te("resultsLabel", a.resultsLabel),
|
|
@@ -6777,7 +6777,7 @@ const Es = {
|
|
|
6777
6777
|
userLocationLabel: te("userLocationLabel"),
|
|
6778
6778
|
pinnedLocationTitle: te("pinnedLocationTitle"),
|
|
6779
6779
|
selectedLocationLabel: te("selectedLocationLabel")
|
|
6780
|
-
})), Me = $(() => v.value ? Pe(v.value) : Y.value.selectedLocationLabel), L = $(() =>
|
|
6780
|
+
})), Me = $(() => v.value ? Pe(v.value) : Y.value.selectedLocationLabel), L = $(() => u.isTracking.value && w.value ? Y.value.stopTrackingLabel : Y.value.locateButtonLabel);
|
|
6781
6781
|
W(() => a.modelValue, (y) => {
|
|
6782
6782
|
const S = x(y), E = oe(S);
|
|
6783
6783
|
E ? (f.value = E, v.value = null) : S && (v.value = S);
|
|
@@ -6790,7 +6790,7 @@ const Es = {
|
|
|
6790
6790
|
y && w.value && (b.value = y);
|
|
6791
6791
|
}, { deep: !0 }), W(B, (y) => {
|
|
6792
6792
|
t("update:distance", y);
|
|
6793
|
-
}, { immediate: !0 }), W(
|
|
6793
|
+
}, { immediate: !0 }), W(s, async (y) => {
|
|
6794
6794
|
if (t("search", y), !a.enableGeocoding) {
|
|
6795
6795
|
m.clearResults();
|
|
6796
6796
|
return;
|
|
@@ -6814,10 +6814,10 @@ const Es = {
|
|
|
6814
6814
|
}),
|
|
6815
6815
|
async ({ enabled: y, origin: S, destination: E, profile: J }) => {
|
|
6816
6816
|
if (!y || !S || !E || de(S, E)) {
|
|
6817
|
-
|
|
6817
|
+
d.clearRoute();
|
|
6818
6818
|
return;
|
|
6819
6819
|
}
|
|
6820
|
-
await
|
|
6820
|
+
await d.fetchRoute(S, E, {
|
|
6821
6821
|
endpoint: a.directionsEndpoint,
|
|
6822
6822
|
profile: J,
|
|
6823
6823
|
customFetch: a.customDirectionsFetch
|
|
@@ -6828,7 +6828,7 @@ const Es = {
|
|
|
6828
6828
|
a.autoLocate && a.trackUser && await Ie();
|
|
6829
6829
|
});
|
|
6830
6830
|
const R = $(() => {
|
|
6831
|
-
const y = He(
|
|
6831
|
+
const y = He(s.value).trim();
|
|
6832
6832
|
return y ? a.locations.filter((S) => [Pe(S), je(S)].filter(Boolean).some((E) => He(E).includes(y))) : a.locations;
|
|
6833
6833
|
}), H = $(() => m.results.value.map((y) => ({
|
|
6834
6834
|
id: y.id,
|
|
@@ -6838,7 +6838,7 @@ const Es = {
|
|
|
6838
6838
|
lng: y.lng,
|
|
6839
6839
|
source: y.source
|
|
6840
6840
|
}))), G = $(() => {
|
|
6841
|
-
if (!
|
|
6841
|
+
if (!s.value.trim())
|
|
6842
6842
|
return a.locations;
|
|
6843
6843
|
const y = R.value;
|
|
6844
6844
|
return y.length ? y : a.locations;
|
|
@@ -6863,7 +6863,7 @@ const Es = {
|
|
|
6863
6863
|
if (typeof S == "string" && S.trim())
|
|
6864
6864
|
return S;
|
|
6865
6865
|
const J = `locationFinder.${String(y)}`;
|
|
6866
|
-
return
|
|
6866
|
+
return i(J) ? String(o(J)) : l[y];
|
|
6867
6867
|
}
|
|
6868
6868
|
function X(y) {
|
|
6869
6869
|
if (!y)
|
|
@@ -7013,16 +7013,16 @@ const Es = {
|
|
|
7013
7013
|
};
|
|
7014
7014
|
}
|
|
7015
7015
|
async function Ie() {
|
|
7016
|
-
if (
|
|
7017
|
-
|
|
7016
|
+
if (u.isTracking.value && w.value) {
|
|
7017
|
+
u.stopTracking(), w.value = !1;
|
|
7018
7018
|
return;
|
|
7019
7019
|
}
|
|
7020
7020
|
if (p.value) {
|
|
7021
|
-
b.value = p.value, w.value = !0, t("track-user", p.value), !
|
|
7021
|
+
b.value = p.value, w.value = !0, t("track-user", p.value), !u.isTracking.value && !V.value && u.startTracking();
|
|
7022
7022
|
return;
|
|
7023
7023
|
}
|
|
7024
|
-
const y = await
|
|
7025
|
-
y && (b.value = y, w.value = !0, t("track-user", y),
|
|
7024
|
+
const y = await u.locate();
|
|
7025
|
+
y && (b.value = y, w.value = !0, t("track-user", y), u.startTracking());
|
|
7026
7026
|
}
|
|
7027
7027
|
return (y, S) => (c(), g("div", Es, [
|
|
7028
7028
|
ge.value ? (c(), g("div", {
|
|
@@ -7031,8 +7031,8 @@ const Es = {
|
|
|
7031
7031
|
}, [
|
|
7032
7032
|
a.showSearch ? (c(), U(ko, {
|
|
7033
7033
|
key: 0,
|
|
7034
|
-
modelValue:
|
|
7035
|
-
"onUpdate:modelValue": S[0] || (S[0] = (E) =>
|
|
7034
|
+
modelValue: s.value,
|
|
7035
|
+
"onUpdate:modelValue": S[0] || (S[0] = (E) => s.value = E),
|
|
7036
7036
|
class: "location-finder__search",
|
|
7037
7037
|
label: Y.value.searchLabel,
|
|
7038
7038
|
placeholder: Y.value.searchPlaceholder,
|
|
@@ -7045,7 +7045,7 @@ const Es = {
|
|
|
7045
7045
|
key: 0,
|
|
7046
7046
|
type: "button",
|
|
7047
7047
|
class: "btn btn-outline-primary btn-sm location-finder__locate",
|
|
7048
|
-
disabled: e.disabled || q(
|
|
7048
|
+
disabled: e.disabled || q(u).pending.value,
|
|
7049
7049
|
"data-testid": "location-finder-locate",
|
|
7050
7050
|
onClick: Ie
|
|
7051
7051
|
}, T(L.value), 9, zs)) : M("", !0)
|
|
@@ -7067,7 +7067,7 @@ const Es = {
|
|
|
7067
7067
|
"user-location": p.value,
|
|
7068
7068
|
"user-location-label": Y.value.userLocationLabel,
|
|
7069
7069
|
"selected-location-label": Me.value,
|
|
7070
|
-
"route-coordinates": q(
|
|
7070
|
+
"route-coordinates": q(d).routeCoordinates.value,
|
|
7071
7071
|
"route-color": e.routeColor,
|
|
7072
7072
|
"route-weight": e.routeWeight,
|
|
7073
7073
|
"selection-radius": e.selectionRadius,
|
|
@@ -7121,7 +7121,7 @@ const Es = {
|
|
|
7121
7121
|
}, null, 8, ["modelValue", "locations", "label", "empty-text"])) : M("", !0),
|
|
7122
7122
|
me.value ? (c(), g("div", js, [
|
|
7123
7123
|
A("p", qs, T(Y.value.directionsTitle), 1),
|
|
7124
|
-
q(
|
|
7124
|
+
q(d).pending.value ? (c(), g("p", _s, T(Y.value.loadingRoute), 1)) : q(d).hasRoute.value ? (c(), g(ae, { key: 1 }, [
|
|
7125
7125
|
A("div", Js, [
|
|
7126
7126
|
A("div", null, [
|
|
7127
7127
|
A("p", Gs, T(Y.value.distanceLabel), 1),
|
|
@@ -7132,8 +7132,8 @@ const Es = {
|
|
|
7132
7132
|
A("strong", Xs, T(Le.value), 1)
|
|
7133
7133
|
])
|
|
7134
7134
|
]),
|
|
7135
|
-
e.showDirectionsSteps && q(
|
|
7136
|
-
(c(!0), g(ae, null, ue(q(
|
|
7135
|
+
e.showDirectionsSteps && q(d).steps.value.length ? (c(), g("ol", Ks, [
|
|
7136
|
+
(c(!0), g(ae, null, ue(q(d).steps.value.slice(0, 5), (E, J) => (c(), g("li", {
|
|
7137
7137
|
key: `${E.instruction}-${J}`
|
|
7138
7138
|
}, [
|
|
7139
7139
|
A("span", null, T(E.instruction), 1),
|
|
@@ -7146,7 +7146,7 @@ const Es = {
|
|
|
7146
7146
|
], 2)
|
|
7147
7147
|
]));
|
|
7148
7148
|
}
|
|
7149
|
-
}), aA = { class: "carousel d-flex" }, nA = ["
|
|
7149
|
+
}), aA = { class: "carousel d-flex" }, nA = ["title"], lA = ["onClick"], oA = ["title"], iA = /* @__PURE__ */ O({
|
|
7150
7150
|
__name: "base-carousel",
|
|
7151
7151
|
props: {
|
|
7152
7152
|
modelValue: {
|
|
@@ -7187,18 +7187,19 @@ const Es = {
|
|
|
7187
7187
|
behavior: "smooth"
|
|
7188
7188
|
});
|
|
7189
7189
|
}
|
|
7190
|
-
function
|
|
7191
|
-
n("update:modelValue",
|
|
7190
|
+
function i(u) {
|
|
7191
|
+
n("update:modelValue", u);
|
|
7192
7192
|
}
|
|
7193
|
-
return (
|
|
7193
|
+
return (u, m) => (c(), g("div", aA, [
|
|
7194
7194
|
e.navigation ? (c(), g("button", {
|
|
7195
7195
|
key: 0,
|
|
7196
7196
|
class: "carousel__control btn btn-link text-light",
|
|
7197
7197
|
type: "button",
|
|
7198
|
-
onClick: Z(t, ["prevent", "stop"])
|
|
7198
|
+
onClick: Z(t, ["prevent", "stop"]),
|
|
7199
|
+
title: u.$t("common.backward")
|
|
7199
7200
|
}, [
|
|
7200
7201
|
I(Q, { symbol: "chevron-left" })
|
|
7201
|
-
])) : M("", !0),
|
|
7202
|
+
], 8, nA)) : M("", !0),
|
|
7202
7203
|
A("div", {
|
|
7203
7204
|
ref_key: "viewport",
|
|
7204
7205
|
ref: l,
|
|
@@ -7209,15 +7210,15 @@ const Es = {
|
|
|
7209
7210
|
ref: a,
|
|
7210
7211
|
class: "carousel__track d-flex justify-center align-items-center"
|
|
7211
7212
|
}, [
|
|
7212
|
-
(c(!0), g(ae, null, ue(e.items, (
|
|
7213
|
-
key:
|
|
7214
|
-
item:
|
|
7215
|
-
index:
|
|
7213
|
+
(c(!0), g(ae, null, ue(e.items, (d, s) => N(u.$slots, "carousel-item", {
|
|
7214
|
+
key: d.src,
|
|
7215
|
+
item: d,
|
|
7216
|
+
index: s
|
|
7216
7217
|
}, () => [
|
|
7217
7218
|
A("div", {
|
|
7218
|
-
class: D(["carousel__item",
|
|
7219
|
-
onClick: (f) => s
|
|
7220
|
-
}, T(
|
|
7219
|
+
class: D(["carousel__item", s === e.modelValue ? "selected" : ""]),
|
|
7220
|
+
onClick: (f) => i(s)
|
|
7221
|
+
}, T(d), 11, lA)
|
|
7221
7222
|
])), 128))
|
|
7222
7223
|
], 512)
|
|
7223
7224
|
], 512),
|
|
@@ -7225,13 +7226,14 @@ const Es = {
|
|
|
7225
7226
|
key: 1,
|
|
7226
7227
|
class: "carousel__control btn btn-link text-light",
|
|
7227
7228
|
type: "button",
|
|
7228
|
-
onClick: Z(o, ["prevent", "stop"])
|
|
7229
|
+
onClick: Z(o, ["prevent", "stop"]),
|
|
7230
|
+
title: u.$t("common.forward")
|
|
7229
7231
|
}, [
|
|
7230
7232
|
I(Q, { symbol: "chevron-right" })
|
|
7231
|
-
])) : M("", !0)
|
|
7233
|
+
], 8, oA)) : M("", !0)
|
|
7232
7234
|
]));
|
|
7233
7235
|
}
|
|
7234
|
-
}),
|
|
7236
|
+
}), sA = { class: "media-thumbnails" }, AA = ["onClick", "title"], rA = { class: "img-container" }, jr = /* @__PURE__ */ O({
|
|
7235
7237
|
__name: "media-thumbnails",
|
|
7236
7238
|
props: {
|
|
7237
7239
|
modelValue: {
|
|
@@ -7256,27 +7258,28 @@ const Es = {
|
|
|
7256
7258
|
function a(t) {
|
|
7257
7259
|
l.value = t, n("update:modelValue", t), n("select", t);
|
|
7258
7260
|
}
|
|
7259
|
-
return (t, o) => (c(), g("div",
|
|
7260
|
-
I(
|
|
7261
|
-
"carousel-item": _((
|
|
7262
|
-
A("
|
|
7263
|
-
|
|
7264
|
-
class: D(["carousel__item media-thumbnails__thumbnail",
|
|
7265
|
-
onClick: (
|
|
7261
|
+
return (t, o) => (c(), g("div", sA, [
|
|
7262
|
+
I(iA, { items: e.assets }, {
|
|
7263
|
+
"carousel-item": _((i) => [
|
|
7264
|
+
A("button", {
|
|
7265
|
+
type: "button",
|
|
7266
|
+
class: D(["carousel__item media-thumbnails__thumbnail", i.index === e.modelValue || i.index === l.value ? "is-active" : ""]),
|
|
7267
|
+
onClick: (u) => a(i.index),
|
|
7268
|
+
title: `${t.$t("thumbnails.thumbnail")} ${i.index + 1}`
|
|
7266
7269
|
}, [
|
|
7267
|
-
A("div",
|
|
7270
|
+
A("div", rA, [
|
|
7268
7271
|
I(Te, {
|
|
7269
|
-
src:
|
|
7272
|
+
src: i.item.thumbnail || i.item.src,
|
|
7270
7273
|
class: "img-fluid"
|
|
7271
7274
|
}, null, 8, ["src"])
|
|
7272
7275
|
])
|
|
7273
|
-
], 10,
|
|
7276
|
+
], 10, AA)
|
|
7274
7277
|
]),
|
|
7275
7278
|
_: 1
|
|
7276
7279
|
}, 8, ["items"])
|
|
7277
7280
|
]));
|
|
7278
7281
|
}
|
|
7279
|
-
}),
|
|
7282
|
+
}), uA = { class: "progress-steps" }, dA = { class: "progress-steps__list" }, cA = { class: "progress-step" }, mA = ["checked", "id", "value", "disabled", "read-only", "required", "onChange"], fA = ["for"], gA = ["innerHTML"], vA = ["for"], pA = ["innerHTML"], qr = /* @__PURE__ */ O({
|
|
7280
7283
|
__name: "progress-steps",
|
|
7281
7284
|
props: {
|
|
7282
7285
|
modelValue: {
|
|
@@ -7305,59 +7308,59 @@ const Es = {
|
|
|
7305
7308
|
function a(t) {
|
|
7306
7309
|
l("update:modelValue", t), t >= n.progress && l("update:progress", t);
|
|
7307
7310
|
}
|
|
7308
|
-
return (t, o) => (c(), g("div",
|
|
7309
|
-
A("ul",
|
|
7310
|
-
(c(!0), g(ae, null, ue(e.steps, (
|
|
7311
|
-
key:
|
|
7311
|
+
return (t, o) => (c(), g("div", uA, [
|
|
7312
|
+
A("ul", dA, [
|
|
7313
|
+
(c(!0), g(ae, null, ue(e.steps, (i, u) => (c(), g("li", {
|
|
7314
|
+
key: u,
|
|
7312
7315
|
class: D(["progress-steps__step", {
|
|
7313
|
-
"progress-steps__step--disabled":
|
|
7314
|
-
"progress-steps__step--active":
|
|
7316
|
+
"progress-steps__step--disabled": u > e.progress + (e.reveal ? 1 : 0),
|
|
7317
|
+
"progress-steps__step--active": u === (e.modelValue || 0)
|
|
7315
7318
|
}])
|
|
7316
7319
|
}, [
|
|
7317
7320
|
N(t.$slots, "step", {}, () => [
|
|
7318
|
-
A("div",
|
|
7321
|
+
A("div", cA, [
|
|
7319
7322
|
A("input", {
|
|
7320
7323
|
type: "radio",
|
|
7321
|
-
checked:
|
|
7322
|
-
id: `step-${
|
|
7324
|
+
checked: u <= (e.progress || 0),
|
|
7325
|
+
id: `step-${u}`,
|
|
7323
7326
|
name: "step",
|
|
7324
7327
|
class: "form-check-input",
|
|
7325
|
-
value:
|
|
7326
|
-
disabled:
|
|
7327
|
-
"read-only":
|
|
7328
|
-
required:
|
|
7329
|
-
onChange: (m) => a(
|
|
7330
|
-
}, null, 40,
|
|
7328
|
+
value: i.value,
|
|
7329
|
+
disabled: i.disabled || u > e.progress + (e.reveal ? 1 : 0),
|
|
7330
|
+
"read-only": i.readOnly,
|
|
7331
|
+
required: i.required,
|
|
7332
|
+
onChange: (m) => a(u)
|
|
7333
|
+
}, null, 40, mA),
|
|
7331
7334
|
A("label", {
|
|
7332
|
-
for: `step-${
|
|
7335
|
+
for: `step-${u}`
|
|
7333
7336
|
}, [
|
|
7334
|
-
N(t.$slots, "button", { step:
|
|
7337
|
+
N(t.$slots, "button", { step: i }, () => [
|
|
7335
7338
|
A("span", {
|
|
7336
7339
|
class: "btn rounded-circle",
|
|
7337
|
-
innerHTML: q(re)(
|
|
7338
|
-
}, null, 8,
|
|
7340
|
+
innerHTML: q(re)(i.text || "")
|
|
7341
|
+
}, null, 8, gA)
|
|
7339
7342
|
])
|
|
7340
|
-
], 8,
|
|
7343
|
+
], 8, fA),
|
|
7341
7344
|
A("label", {
|
|
7342
|
-
for: `step-${
|
|
7345
|
+
for: `step-${u}`
|
|
7343
7346
|
}, [
|
|
7344
|
-
N(t.$slots, "label", { step:
|
|
7347
|
+
N(t.$slots, "label", { step: i }, () => [
|
|
7345
7348
|
A("span", {
|
|
7346
7349
|
class: "form-check-label",
|
|
7347
|
-
innerHTML: q(re)(
|
|
7348
|
-
}, null, 8,
|
|
7350
|
+
innerHTML: q(re)(i.label || "")
|
|
7351
|
+
}, null, 8, pA)
|
|
7349
7352
|
])
|
|
7350
|
-
], 8,
|
|
7353
|
+
], 8, vA)
|
|
7351
7354
|
])
|
|
7352
7355
|
])
|
|
7353
7356
|
], 2))), 128))
|
|
7354
7357
|
])
|
|
7355
7358
|
]));
|
|
7356
7359
|
}
|
|
7357
|
-
}),
|
|
7360
|
+
}), hA = { class: "hint-system" }, yA = ["innerHTML"], bA = ["innerHTML"], wA = {
|
|
7358
7361
|
key: 1,
|
|
7359
7362
|
class: "hint-system__hint-content"
|
|
7360
|
-
},
|
|
7363
|
+
}, $A = ["disabled"], _r = /* @__PURE__ */ O({
|
|
7361
7364
|
__name: "hint-system",
|
|
7362
7365
|
props: {
|
|
7363
7366
|
modelValue: {
|
|
@@ -7400,10 +7403,10 @@ const Es = {
|
|
|
7400
7403
|
);
|
|
7401
7404
|
const t = $(
|
|
7402
7405
|
() => n.maxHints !== void 0 ? n.maxHints : n.hints.length
|
|
7403
|
-
), o = $(() => a.value < t.value),
|
|
7406
|
+
), o = $(() => a.value < t.value), i = $(
|
|
7404
7407
|
() => n.hints.slice(0, a.value)
|
|
7405
7408
|
);
|
|
7406
|
-
function
|
|
7409
|
+
function u() {
|
|
7407
7410
|
if (!o.value) return;
|
|
7408
7411
|
const m = a.value;
|
|
7409
7412
|
a.value++, l("update:modelValue", a.value), l("hint-revealed", {
|
|
@@ -7412,33 +7415,33 @@ const Es = {
|
|
|
7412
7415
|
penaltyTotal: a.value * n.penalty
|
|
7413
7416
|
});
|
|
7414
7417
|
}
|
|
7415
|
-
return (m,
|
|
7418
|
+
return (m, d) => (c(), g("div", hA, [
|
|
7416
7419
|
e.description ? (c(), g("div", {
|
|
7417
7420
|
key: 0,
|
|
7418
7421
|
innerHTML: q(re)(e.description),
|
|
7419
7422
|
class: "hint-system__description"
|
|
7420
|
-
}, null, 8,
|
|
7421
|
-
|
|
7423
|
+
}, null, 8, yA)) : M("", !0),
|
|
7424
|
+
i.value.length ? (c(), U($t, {
|
|
7422
7425
|
key: 1,
|
|
7423
7426
|
name: "hint-reveal",
|
|
7424
7427
|
tag: "ol",
|
|
7425
7428
|
class: "hint-system__list"
|
|
7426
7429
|
}, {
|
|
7427
7430
|
default: _(() => [
|
|
7428
|
-
(c(!0), g(ae, null, ue(
|
|
7431
|
+
(c(!0), g(ae, null, ue(i.value, (s, f) => (c(), g("li", {
|
|
7429
7432
|
key: f,
|
|
7430
7433
|
class: "hint-system__hint"
|
|
7431
7434
|
}, [
|
|
7432
7435
|
N(m.$slots, "hint", {
|
|
7433
|
-
hint:
|
|
7436
|
+
hint: s,
|
|
7434
7437
|
index: f,
|
|
7435
7438
|
isNew: f === a.value - 1
|
|
7436
7439
|
}, () => [
|
|
7437
7440
|
e.htmlContent ? (c(), g("div", {
|
|
7438
7441
|
key: 0,
|
|
7439
7442
|
class: "hint-system__hint-content",
|
|
7440
|
-
innerHTML: q(re)(
|
|
7441
|
-
}, null, 8,
|
|
7443
|
+
innerHTML: q(re)(s.content || "")
|
|
7444
|
+
}, null, 8, bA)) : (c(), g("div", wA, T(s.content), 1))
|
|
7442
7445
|
])
|
|
7443
7446
|
]))), 128))
|
|
7444
7447
|
]),
|
|
@@ -7446,7 +7449,7 @@ const Es = {
|
|
|
7446
7449
|
})) : M("", !0),
|
|
7447
7450
|
o.value ? N(m.$slots, "trigger", {
|
|
7448
7451
|
key: 2,
|
|
7449
|
-
revealNext:
|
|
7452
|
+
revealNext: u,
|
|
7450
7453
|
canReveal: o.value,
|
|
7451
7454
|
revealedCount: a.value,
|
|
7452
7455
|
total: t.value
|
|
@@ -7455,12 +7458,12 @@ const Es = {
|
|
|
7455
7458
|
type: "button",
|
|
7456
7459
|
class: "hint-system__trigger d-block w-100 text-center",
|
|
7457
7460
|
disabled: !o.value,
|
|
7458
|
-
onClick:
|
|
7459
|
-
}, T(e.label), 9,
|
|
7461
|
+
onClick: u
|
|
7462
|
+
}, T(e.label), 9, $A)
|
|
7460
7463
|
]) : M("", !0)
|
|
7461
7464
|
]));
|
|
7462
7465
|
}
|
|
7463
|
-
}),
|
|
7466
|
+
}), CA = ["id", "popover"], ct = /* @__PURE__ */ O({
|
|
7464
7467
|
__name: "popover-dialog",
|
|
7465
7468
|
props: {
|
|
7466
7469
|
modelValue: {
|
|
@@ -7506,14 +7509,14 @@ const Es = {
|
|
|
7506
7509
|
},
|
|
7507
7510
|
emits: ["update:modelValue"],
|
|
7508
7511
|
setup(e, { emit: r }) {
|
|
7509
|
-
const n = e, l = r, a = C(), t = C(), o = C(!1),
|
|
7510
|
-
function
|
|
7512
|
+
const n = e, l = r, a = C(), t = C(), o = C(!1), i = $(() => "ontouchstart" in window || navigator.maxTouchPoints > 0);
|
|
7513
|
+
function u() {
|
|
7511
7514
|
clearTimeout(t.value), n.hover && a.value?.showPopover();
|
|
7512
7515
|
}
|
|
7513
7516
|
function m() {
|
|
7514
|
-
o.value = !0, clearTimeout(t.value),
|
|
7517
|
+
o.value = !0, clearTimeout(t.value), u();
|
|
7515
7518
|
}
|
|
7516
|
-
function
|
|
7519
|
+
function d() {
|
|
7517
7520
|
o.value = !1, (n.hover || n.closeTimeout) && (t.value = setTimeout(() => {
|
|
7518
7521
|
a.value?.hidePopover();
|
|
7519
7522
|
}, n.closeTimeout || n.hoverDelay));
|
|
@@ -7521,22 +7524,22 @@ const Es = {
|
|
|
7521
7524
|
W(() => n.modelValue, (f, v) => {
|
|
7522
7525
|
f && !v ? a.value?.matches(":popover-open") || a.value?.showPopover() : !f && v && a.value?.matches(":popover-open") && a.value?.hidePopover();
|
|
7523
7526
|
});
|
|
7524
|
-
function
|
|
7527
|
+
function s(f) {
|
|
7525
7528
|
f.newState === "open" ? (n.closeTimeout && !o.value && (clearTimeout(t.value), t.value = setTimeout(() => {
|
|
7526
7529
|
o.value || a.value?.hidePopover();
|
|
7527
7530
|
}, n.closeTimeout)), n.modelValue || l("update:modelValue", !0)) : f.newState === "closed" && (o.value = !1, n.modelValue && l("update:modelValue", !1));
|
|
7528
7531
|
}
|
|
7529
7532
|
return ne(() => {
|
|
7530
|
-
if (a.value?.addEventListener("toggle",
|
|
7531
|
-
a.value?.addEventListener("mouseenter", m), a.value?.addEventListener("mouseleave",
|
|
7533
|
+
if (a.value?.addEventListener("toggle", s), n.modelValue && a.value?.showPopover(), !i.value) {
|
|
7534
|
+
a.value?.addEventListener("mouseenter", m), a.value?.addEventListener("mouseleave", d);
|
|
7532
7535
|
const f = document.querySelector(`[popovertarget="${n.id}"]`);
|
|
7533
|
-
f && (f.addEventListener("mouseenter", m), f.addEventListener("mouseleave",
|
|
7536
|
+
f && (f.addEventListener("mouseenter", m), f.addEventListener("mouseleave", d));
|
|
7534
7537
|
}
|
|
7535
7538
|
}), Ce(() => {
|
|
7536
|
-
if (clearTimeout(t.value), a.value?.removeEventListener("toggle",
|
|
7537
|
-
a.value?.removeEventListener("mouseenter", m), a.value?.removeEventListener("mouseleave",
|
|
7539
|
+
if (clearTimeout(t.value), a.value?.removeEventListener("toggle", s), !i.value) {
|
|
7540
|
+
a.value?.removeEventListener("mouseenter", m), a.value?.removeEventListener("mouseleave", d);
|
|
7538
7541
|
const f = document.querySelector(`[popovertarget="${n.id}"]`);
|
|
7539
|
-
f && (f.removeEventListener("mouseenter", m), f.removeEventListener("mouseleave",
|
|
7542
|
+
f && (f.removeEventListener("mouseenter", m), f.removeEventListener("mouseleave", d));
|
|
7540
7543
|
}
|
|
7541
7544
|
}), (f, v) => (c(), g("span", {
|
|
7542
7545
|
class: "popover-dialog",
|
|
@@ -7548,15 +7551,15 @@ const Es = {
|
|
|
7548
7551
|
N(f.$slots, "default", {}, () => [
|
|
7549
7552
|
v[0] || (v[0] = Se(" Popover content goes here. ", -1))
|
|
7550
7553
|
])
|
|
7551
|
-
], 8,
|
|
7554
|
+
], 8, CA));
|
|
7552
7555
|
}
|
|
7553
|
-
}),
|
|
7556
|
+
}), kA = { class: "popover-tooltip" }, SA = ["popovertarget", "disabled", "aria-describedby", "aria-label"], BA = { class: "popover-tooltip__content d-flex flex-column" }, MA = {
|
|
7554
7557
|
key: 0,
|
|
7555
7558
|
class: "popover-tooltip__header d-flex p-3 border-bottom"
|
|
7556
|
-
},
|
|
7559
|
+
}, IA = ["innerHTML"], LA = { class: "popover-tooltip__body" }, DA = ["innerHTML"], VA = {
|
|
7557
7560
|
key: 1,
|
|
7558
7561
|
class: "popover-tooltip__footer d-flex p-3 border-top"
|
|
7559
|
-
},
|
|
7562
|
+
}, Jr = /* @__PURE__ */ O({
|
|
7560
7563
|
__name: "popover-tooltip",
|
|
7561
7564
|
props: {
|
|
7562
7565
|
modelValue: {
|
|
@@ -7616,8 +7619,8 @@ const Es = {
|
|
|
7616
7619
|
set(m) {
|
|
7617
7620
|
l("update:modelValue", m);
|
|
7618
7621
|
}
|
|
7619
|
-
}),
|
|
7620
|
-
return (m,
|
|
7622
|
+
}), i = C(), u = C();
|
|
7623
|
+
return (m, d) => (c(), g("span", kA, [
|
|
7621
7624
|
A("button", {
|
|
7622
7625
|
type: "button",
|
|
7623
7626
|
popovertarget: e.id,
|
|
@@ -7625,49 +7628,49 @@ const Es = {
|
|
|
7625
7628
|
"aria-describedby": e.id,
|
|
7626
7629
|
"aria-label": e.ariaLabel || m.$te("common.moreInfo") ? m.$t("common.moreInfo") : void 0,
|
|
7627
7630
|
ref_key: "trigger",
|
|
7628
|
-
ref:
|
|
7631
|
+
ref: i
|
|
7629
7632
|
}, [
|
|
7630
7633
|
N(m.$slots, "button", {}, () => [
|
|
7631
|
-
|
|
7634
|
+
d[3] || (d[3] = A("span", { class: "popover-tooltip__trigger" }, " i ", -1))
|
|
7632
7635
|
])
|
|
7633
|
-
], 8,
|
|
7636
|
+
], 8, SA),
|
|
7634
7637
|
I(ct, {
|
|
7635
7638
|
id: e.id,
|
|
7636
7639
|
modelValue: o.value,
|
|
7637
|
-
"onUpdate:modelValue":
|
|
7640
|
+
"onUpdate:modelValue": d[2] || (d[2] = (s) => o.value = s),
|
|
7638
7641
|
hover: e.hover,
|
|
7639
7642
|
"hover-delay": e.hoverDelay,
|
|
7640
7643
|
ref_key: "dialog",
|
|
7641
|
-
ref:
|
|
7644
|
+
ref: u,
|
|
7642
7645
|
role: "tooltip",
|
|
7643
7646
|
class: D(e.size ? `popover-tooltip--${e.size}` : "")
|
|
7644
7647
|
}, {
|
|
7645
7648
|
default: _(() => [
|
|
7646
|
-
A("div",
|
|
7647
|
-
e.header ? (c(), g("div",
|
|
7649
|
+
A("div", BA, [
|
|
7650
|
+
e.header ? (c(), g("div", MA, [
|
|
7648
7651
|
e.title ? (c(), g("h5", {
|
|
7649
7652
|
key: 0,
|
|
7650
7653
|
class: "popover-tooltip__title",
|
|
7651
7654
|
innerHTML: q(a)
|
|
7652
|
-
}, null, 8,
|
|
7655
|
+
}, null, 8, IA)) : M("", !0),
|
|
7653
7656
|
A("button", {
|
|
7654
7657
|
type: "button",
|
|
7655
7658
|
class: "btn-close ms-auto border-radius-none",
|
|
7656
7659
|
"aria-label": "Close",
|
|
7657
|
-
onClick:
|
|
7660
|
+
onClick: d[0] || (d[0] = (s) => o.value = !1)
|
|
7658
7661
|
})
|
|
7659
7662
|
])) : M("", !0),
|
|
7660
|
-
A("div",
|
|
7663
|
+
A("div", LA, [
|
|
7661
7664
|
N(m.$slots, "default", {}, () => [
|
|
7662
|
-
A("span", { innerHTML: q(t) }, null, 8,
|
|
7665
|
+
A("span", { innerHTML: q(t) }, null, 8, DA)
|
|
7663
7666
|
])
|
|
7664
7667
|
]),
|
|
7665
|
-
e.footer ? (c(), g("div",
|
|
7668
|
+
e.footer ? (c(), g("div", VA, [
|
|
7666
7669
|
N(m.$slots, "footer"),
|
|
7667
7670
|
A("button", {
|
|
7668
7671
|
type: "button",
|
|
7669
7672
|
class: "btn ms-auto",
|
|
7670
|
-
onClick:
|
|
7673
|
+
onClick: d[1] || (d[1] = (s) => o.value = !1)
|
|
7671
7674
|
}, T(m.$t("common.close")), 1)
|
|
7672
7675
|
])) : M("", !0)
|
|
7673
7676
|
])
|
|
@@ -7676,7 +7679,7 @@ const Es = {
|
|
|
7676
7679
|
}, 8, ["id", "modelValue", "hover", "hover-delay", "class"])
|
|
7677
7680
|
]));
|
|
7678
7681
|
}
|
|
7679
|
-
}),
|
|
7682
|
+
}), PA = { class: "popover-notification__header d-flex justify-content-between mb-2" }, xA = { class: "popover-notification__title" }, EA = ["onClick"], TA = ["innerHTML"], zA = 240, Gr = /* @__PURE__ */ O({
|
|
7680
7683
|
__name: "popover-notifications",
|
|
7681
7684
|
props: {
|
|
7682
7685
|
modelValue: {
|
|
@@ -7709,36 +7712,36 @@ const Es = {
|
|
|
7709
7712
|
}
|
|
7710
7713
|
},
|
|
7711
7714
|
setup(e, { expose: r }) {
|
|
7712
|
-
const n = e, l = C([]), a = C([]), t = C(null), o = /* @__PURE__ */ new Map(),
|
|
7715
|
+
const n = e, l = C([]), a = C([]), t = C(null), o = /* @__PURE__ */ new Map(), i = $(
|
|
7713
7716
|
() => l.value.map((p) => ({
|
|
7714
7717
|
...p,
|
|
7715
7718
|
content: re(p.content || "")
|
|
7716
7719
|
}))
|
|
7717
|
-
),
|
|
7718
|
-
function
|
|
7720
|
+
), u = C(!1), m = $(() => u.value ? [...i.value].reverse() : i.value);
|
|
7721
|
+
function d(p, h) {
|
|
7719
7722
|
h === !1 && v(p);
|
|
7720
7723
|
}
|
|
7721
|
-
function
|
|
7724
|
+
function s(p) {
|
|
7722
7725
|
const h = o.get(p);
|
|
7723
7726
|
h && (clearTimeout(h), o.delete(p));
|
|
7724
7727
|
}
|
|
7725
7728
|
function f(p) {
|
|
7726
7729
|
const h = p.closeTimeout ?? n.closeTimeout;
|
|
7727
|
-
|
|
7728
|
-
|
|
7730
|
+
s(p.id), h && o.set(p.id, window.setTimeout(() => {
|
|
7731
|
+
s(p.id), v(p);
|
|
7729
7732
|
}, h));
|
|
7730
7733
|
}
|
|
7731
7734
|
function v(p) {
|
|
7732
|
-
p.visible === !1 && o.has(p.id) || (
|
|
7733
|
-
l.value = l.value.filter((h) => h.id !== p.id), o.delete(p.id), l.value.length === 0 && (
|
|
7734
|
-
},
|
|
7735
|
+
p.visible === !1 && o.has(p.id) || (s(p.id), p.visible = !1, o.set(p.id, window.setTimeout(() => {
|
|
7736
|
+
l.value = l.value.filter((h) => h.id !== p.id), o.delete(p.id), l.value.length === 0 && (u.value = !1);
|
|
7737
|
+
}, zA)));
|
|
7735
7738
|
}
|
|
7736
7739
|
function b(p) {
|
|
7737
7740
|
if (n.collapsible && l.value.length >= n.collapseItems) {
|
|
7738
7741
|
const k = l.value.shift();
|
|
7739
|
-
k &&
|
|
7742
|
+
k && s(k.id);
|
|
7740
7743
|
}
|
|
7741
|
-
n.collapsible && l.value.length + 1 >= n.collapseItems && (
|
|
7744
|
+
n.collapsible && l.value.length + 1 >= n.collapseItems && (u.value = !0), l.value.forEach((k) => {
|
|
7742
7745
|
k.stackIndex = (k.stackIndex ?? 0) + 1;
|
|
7743
7746
|
});
|
|
7744
7747
|
const h = { ...p, closeTimeout: p.closeTimeout ?? n.closeTimeout, visible: !0, stackIndex: 0 };
|
|
@@ -7759,7 +7762,7 @@ const Es = {
|
|
|
7759
7762
|
a.value.push(p), w();
|
|
7760
7763
|
}
|
|
7761
7764
|
return ne(() => {
|
|
7762
|
-
a.value = [...n.items], n.collapsible && a.value.length >= n.collapseItems && (
|
|
7765
|
+
a.value = [...n.items], n.collapsible && a.value.length >= n.collapseItems && (u.value = !0), w();
|
|
7763
7766
|
}), Ce(() => {
|
|
7764
7767
|
t.value !== null && clearTimeout(t.value);
|
|
7765
7768
|
for (const p of o.values())
|
|
@@ -7768,7 +7771,7 @@ const Es = {
|
|
|
7768
7771
|
}), r({
|
|
7769
7772
|
addItem: V
|
|
7770
7773
|
}), (p, h) => (c(), g("div", {
|
|
7771
|
-
class: D(["popover-notifications", { "popover-notifications--stacked":
|
|
7774
|
+
class: D(["popover-notifications", { "popover-notifications--stacked": u.value }])
|
|
7772
7775
|
}, [
|
|
7773
7776
|
(c(!0), g(ae, null, ue(m.value, (k, P) => (c(), U(ct, {
|
|
7774
7777
|
key: k.id,
|
|
@@ -7777,33 +7780,33 @@ const Es = {
|
|
|
7777
7780
|
type: "manual",
|
|
7778
7781
|
class: "popover-notification",
|
|
7779
7782
|
modelValue: k.visible,
|
|
7780
|
-
"onUpdate:modelValue": [(B) => k.visible = B, (B) =>
|
|
7783
|
+
"onUpdate:modelValue": [(B) => k.visible = B, (B) => d(k, B)],
|
|
7781
7784
|
style: $e({ "--stack-index": k.stackIndex ?? P })
|
|
7782
7785
|
}, {
|
|
7783
7786
|
default: _(() => [
|
|
7784
7787
|
N(p.$slots, "item", {
|
|
7785
7788
|
item: k,
|
|
7786
|
-
removeItem:
|
|
7789
|
+
removeItem: d
|
|
7787
7790
|
}, () => [
|
|
7788
|
-
A("div",
|
|
7789
|
-
A("span",
|
|
7791
|
+
A("div", PA, [
|
|
7792
|
+
A("span", xA, T(k.title), 1),
|
|
7790
7793
|
A("button", {
|
|
7791
7794
|
type: "button",
|
|
7792
7795
|
class: "btn btn-close p-0",
|
|
7793
|
-
onClick: Z((B) =>
|
|
7796
|
+
onClick: Z((B) => d(k, !1), ["stop"]),
|
|
7794
7797
|
"aria-label": "Close notification"
|
|
7795
|
-
}, null, 8,
|
|
7798
|
+
}, null, 8, EA)
|
|
7796
7799
|
]),
|
|
7797
7800
|
A("span", {
|
|
7798
7801
|
innerHTML: k.content
|
|
7799
|
-
}, null, 8,
|
|
7802
|
+
}, null, 8, TA)
|
|
7800
7803
|
])
|
|
7801
7804
|
]),
|
|
7802
7805
|
_: 2
|
|
7803
7806
|
}, 1032, ["id", "modelValue", "onUpdate:modelValue", "style"]))), 128))
|
|
7804
7807
|
], 2));
|
|
7805
7808
|
}
|
|
7806
|
-
}),
|
|
7809
|
+
}), Yr = /* @__PURE__ */ O({
|
|
7807
7810
|
__name: "dom-renderer",
|
|
7808
7811
|
props: {
|
|
7809
7812
|
modelValue: {
|
|
@@ -7841,24 +7844,24 @@ const Es = {
|
|
|
7841
7844
|
},
|
|
7842
7845
|
emits: ["update:modelValue", "update:pending"],
|
|
7843
7846
|
setup(e, { emit: r }) {
|
|
7844
|
-
const n = e, l = r, a = C(), t = C(""), o = C(),
|
|
7845
|
-
async function
|
|
7846
|
-
if (!a.value || !
|
|
7847
|
+
const n = e, l = r, a = C(), t = C(""), o = C(), i = C(!0);
|
|
7848
|
+
async function u() {
|
|
7849
|
+
if (!a.value || !i.value)
|
|
7847
7850
|
return "";
|
|
7848
|
-
const
|
|
7849
|
-
if (!
|
|
7851
|
+
const d = a.value;
|
|
7852
|
+
if (!d.isConnected)
|
|
7850
7853
|
return "";
|
|
7851
7854
|
try {
|
|
7852
7855
|
n.emitPending && l("update:pending", !0);
|
|
7853
|
-
const
|
|
7854
|
-
if (!
|
|
7856
|
+
const s = d.firstElementChild;
|
|
7857
|
+
if (!s)
|
|
7855
7858
|
return "";
|
|
7856
|
-
const f = await Ot(
|
|
7859
|
+
const f = await Ot(s, {
|
|
7857
7860
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
7858
7861
|
scale: 1,
|
|
7859
7862
|
...n.options
|
|
7860
7863
|
});
|
|
7861
|
-
if (!
|
|
7864
|
+
if (!i.value || !a.value || !d.isConnected)
|
|
7862
7865
|
return "";
|
|
7863
7866
|
const v = f.toDataURL();
|
|
7864
7867
|
if (l("update:modelValue", v), n.emitPending && l("update:pending", !1), n.debug) {
|
|
@@ -7866,18 +7869,18 @@ const Es = {
|
|
|
7866
7869
|
b.src = v, document.body.appendChild(b);
|
|
7867
7870
|
}
|
|
7868
7871
|
return v;
|
|
7869
|
-
} catch (
|
|
7870
|
-
return
|
|
7872
|
+
} catch (s) {
|
|
7873
|
+
return i.value && n.emitPending && l("update:pending", !1), console.warn("dom-renderer: Render failed", s), "";
|
|
7871
7874
|
}
|
|
7872
7875
|
}
|
|
7873
7876
|
const m = At(async () => {
|
|
7874
|
-
t.value = await
|
|
7877
|
+
t.value = await u();
|
|
7875
7878
|
}, 300, { trailing: !0, leading: !1 });
|
|
7876
7879
|
return ne(() => {
|
|
7877
|
-
const
|
|
7878
|
-
n.renderUpdates && (o.value = new MutationObserver(async (
|
|
7879
|
-
!
|
|
7880
|
-
}), o.value.observe(
|
|
7880
|
+
const d = a.value;
|
|
7881
|
+
n.renderUpdates && (o.value = new MutationObserver(async (s) => {
|
|
7882
|
+
!i.value || !d.isConnected || (n.emitPending && l("update:pending", !0), m());
|
|
7883
|
+
}), o.value.observe(d, {
|
|
7881
7884
|
attributes: !0,
|
|
7882
7885
|
childList: !0,
|
|
7883
7886
|
characterData: !0,
|
|
@@ -7886,8 +7889,8 @@ const Es = {
|
|
|
7886
7889
|
n.emitPending && l("update:pending", !0), m();
|
|
7887
7890
|
}, 500);
|
|
7888
7891
|
}), Ce(() => {
|
|
7889
|
-
|
|
7890
|
-
}), (
|
|
7892
|
+
i.value = !1, o.value && o.value.disconnect(), m.cancel();
|
|
7893
|
+
}), (d, s) => (c(), g("div", {
|
|
7891
7894
|
class: D(["dom-renderer", {
|
|
7892
7895
|
"off-screen": !e.debug
|
|
7893
7896
|
}]),
|
|
@@ -7895,10 +7898,10 @@ const Es = {
|
|
|
7895
7898
|
ref: a,
|
|
7896
7899
|
style: $e(e.fixedWidth > 0 ? { width: `${e.fixedWidth}px` } : {})
|
|
7897
7900
|
}, [
|
|
7898
|
-
N(
|
|
7901
|
+
N(d.$slots, "default")
|
|
7899
7902
|
], 6));
|
|
7900
7903
|
}
|
|
7901
|
-
}),
|
|
7904
|
+
}), NA = { class: "qr-code" }, HA = ["innerHTML"], Zr = /* @__PURE__ */ O({
|
|
7902
7905
|
__name: "qr-code",
|
|
7903
7906
|
props: {
|
|
7904
7907
|
data: null,
|
|
@@ -7968,10 +7971,10 @@ const Es = {
|
|
|
7968
7971
|
// },
|
|
7969
7972
|
}
|
|
7970
7973
|
}));
|
|
7971
|
-
function o(
|
|
7972
|
-
typeof window < "u" && (a.value && (a.value.innerHTML = ""), new gt(
|
|
7974
|
+
function o(u = null, m = null) {
|
|
7975
|
+
typeof window < "u" && (a.value && (a.value.innerHTML = ""), new gt(u || t.value).append(a.value));
|
|
7973
7976
|
}
|
|
7974
|
-
function
|
|
7977
|
+
function i() {
|
|
7975
7978
|
new gt({
|
|
7976
7979
|
...t.value,
|
|
7977
7980
|
width: 1200,
|
|
@@ -7981,48 +7984,48 @@ const Es = {
|
|
|
7981
7984
|
return W(() => t.value, o, { deep: !0, immediate: !0 }), ne(() => {
|
|
7982
7985
|
typeof window < "u" && o();
|
|
7983
7986
|
}), r({
|
|
7984
|
-
download:
|
|
7985
|
-
}), (
|
|
7987
|
+
download: i
|
|
7988
|
+
}), (u, m) => (c(), g("div", NA, [
|
|
7986
7989
|
l.download ? (c(), g("button", {
|
|
7987
7990
|
key: 0,
|
|
7988
7991
|
class: "btn btn-outline-contrast mb-3",
|
|
7989
|
-
onClick:
|
|
7990
|
-
innerHTML:
|
|
7991
|
-
}, null, 8,
|
|
7992
|
+
onClick: i,
|
|
7993
|
+
innerHTML: u.$t("qrlink.download")
|
|
7994
|
+
}, null, 8, HA)) : (c(), g("div", {
|
|
7992
7995
|
key: 1,
|
|
7993
7996
|
ref_key: "canvas",
|
|
7994
7997
|
ref: a
|
|
7995
7998
|
}, null, 512))
|
|
7996
7999
|
]));
|
|
7997
8000
|
}
|
|
7998
|
-
}),
|
|
8001
|
+
}), QA = { class: "link-sharing" }, OA = {
|
|
7999
8002
|
key: 0,
|
|
8000
8003
|
class: "link-sharing__links container"
|
|
8001
|
-
},
|
|
8004
|
+
}, RA = { class: "row" }, FA = {
|
|
8002
8005
|
key: 0,
|
|
8003
8006
|
class: "col-12 col-md-6"
|
|
8004
|
-
},
|
|
8007
|
+
}, WA = ["href"], UA = { class: "caption" }, jA = {
|
|
8005
8008
|
key: 1,
|
|
8006
8009
|
class: "col-12 col-md-6"
|
|
8007
|
-
},
|
|
8010
|
+
}, qA = ["href"], _A = { class: "caption" }, JA = {
|
|
8008
8011
|
key: 2,
|
|
8009
8012
|
class: "col-12 col-md-6"
|
|
8010
|
-
},
|
|
8013
|
+
}, GA = { class: "caption" }, YA = {
|
|
8011
8014
|
key: 3,
|
|
8012
8015
|
class: "col-12 col-md-6"
|
|
8013
|
-
},
|
|
8016
|
+
}, ZA = ["href"], XA = { class: "caption" }, KA = {
|
|
8014
8017
|
key: 4,
|
|
8015
8018
|
class: "col-12 col-md-6"
|
|
8016
|
-
},
|
|
8019
|
+
}, er = ["href"], tr = { class: "caption" }, ar = {
|
|
8017
8020
|
key: 5,
|
|
8018
8021
|
class: "col-12 col-md-6"
|
|
8019
|
-
},
|
|
8022
|
+
}, nr = { class: "caption" }, lr = {
|
|
8020
8023
|
key: 6,
|
|
8021
8024
|
class: "col-12 col-md-6"
|
|
8022
|
-
},
|
|
8025
|
+
}, or = ["href"], ir = { class: "caption" }, sr = {
|
|
8023
8026
|
key: 1,
|
|
8024
8027
|
class: "link-sharing__instructions pt-5"
|
|
8025
|
-
},
|
|
8028
|
+
}, Ar = { class: "row" }, rr = { class: "col-12 text-center py-0" }, ur = { class: "mb-5" }, dr = (e) => e.replace(/<(?:.|\n)*?>/gm, ""), Xr = /* @__PURE__ */ O({
|
|
8026
8029
|
__name: "link-sharing",
|
|
8027
8030
|
props: {
|
|
8028
8031
|
url: {
|
|
@@ -8058,34 +8061,34 @@ const Es = {
|
|
|
8058
8061
|
setup(e) {
|
|
8059
8062
|
const r = e, n = C(!1), l = $(() => encodeURIComponent(r.url));
|
|
8060
8063
|
$(() => encodeURIComponent(r.media));
|
|
8061
|
-
const a = $(() =>
|
|
8064
|
+
const a = $(() => dr(r.text)), t = $(() => !!(navigator && navigator.userAgent && /Mobi|Android/i.test(navigator.userAgent)));
|
|
8062
8065
|
async function o() {
|
|
8063
|
-
const
|
|
8064
|
-
document.body.appendChild(
|
|
8065
|
-
}
|
|
8066
|
-
return (
|
|
8067
|
-
n.value ? (c(), g("div",
|
|
8068
|
-
A("div",
|
|
8069
|
-
A("div",
|
|
8070
|
-
A("div",
|
|
8071
|
-
A("p", null, T(
|
|
8066
|
+
const i = document.createElement("textarea");
|
|
8067
|
+
document.body.appendChild(i), i.value = r.url, i.select(), i.setSelectionRange(0, 99999), navigator.clipboard.writeText(i.value), document.body.removeChild(i);
|
|
8068
|
+
}
|
|
8069
|
+
return (i, u) => (c(), g("div", QA, [
|
|
8070
|
+
n.value ? (c(), g("div", sr, [
|
|
8071
|
+
A("div", Ar, [
|
|
8072
|
+
A("div", rr, [
|
|
8073
|
+
A("div", ur, [
|
|
8074
|
+
A("p", null, T(i.$t("sharing.instructions", { service: "Instagram" })), 1),
|
|
8072
8075
|
A("p", null, [
|
|
8073
8076
|
A("strong", null, T(Array.isArray(e.hashtags) ? e.hashtags.join(", ") : e.hashtags), 1)
|
|
8074
8077
|
]),
|
|
8075
8078
|
A("button", {
|
|
8076
8079
|
type: "button",
|
|
8077
8080
|
class: "btn btn-text",
|
|
8078
|
-
onClick:
|
|
8081
|
+
onClick: u[1] || (u[1] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8079
8082
|
}, [
|
|
8080
8083
|
I(Q, { symbol: "arrow-left" }),
|
|
8081
|
-
Se(" " + T(
|
|
8084
|
+
Se(" " + T(i.$t("common.back")), 1)
|
|
8082
8085
|
])
|
|
8083
8086
|
])
|
|
8084
8087
|
])
|
|
8085
8088
|
])
|
|
8086
|
-
])) : (c(), g("div",
|
|
8087
|
-
A("div",
|
|
8088
|
-
e.services.facebook ? (c(), g("div",
|
|
8089
|
+
])) : (c(), g("div", OA, [
|
|
8090
|
+
A("div", RA, [
|
|
8091
|
+
e.services.facebook ? (c(), g("div", FA, [
|
|
8089
8092
|
A("a", {
|
|
8090
8093
|
class: "link-sharing__link btn btn-primary",
|
|
8091
8094
|
href: `https://www.facebook.com/sharer.php?u=${l.value}`,
|
|
@@ -8093,10 +8096,10 @@ const Es = {
|
|
|
8093
8096
|
rel: "noopener"
|
|
8094
8097
|
}, [
|
|
8095
8098
|
I(Q, { symbol: "facebook" }),
|
|
8096
|
-
A("span",
|
|
8097
|
-
], 8,
|
|
8099
|
+
A("span", UA, T(i.$t("sharing.facebook")), 1)
|
|
8100
|
+
], 8, WA)
|
|
8098
8101
|
])) : M("", !0),
|
|
8099
|
-
e.services.bluesky ? (c(), g("div",
|
|
8102
|
+
e.services.bluesky ? (c(), g("div", jA, [
|
|
8100
8103
|
A("a", {
|
|
8101
8104
|
class: "link-sharing__link btn btn-primary",
|
|
8102
8105
|
href: `https://bsky.app/intent/compose?text=${a.value}${a.value ? "%20" : ""}${e.url}`,
|
|
@@ -8104,20 +8107,20 @@ const Es = {
|
|
|
8104
8107
|
rel: "noopener"
|
|
8105
8108
|
}, [
|
|
8106
8109
|
I(Q, { symbol: "bluesky-logo" }),
|
|
8107
|
-
A("span",
|
|
8108
|
-
], 8,
|
|
8110
|
+
A("span", _A, T(i.$t("sharing.bluesky")), 1)
|
|
8111
|
+
], 8, qA)
|
|
8109
8112
|
])) : M("", !0),
|
|
8110
|
-
e.services.instagram ? (c(), g("div",
|
|
8113
|
+
e.services.instagram ? (c(), g("div", JA, [
|
|
8111
8114
|
A("button", {
|
|
8112
8115
|
type: "button",
|
|
8113
8116
|
class: "link-sharing__link btn btn-primary",
|
|
8114
|
-
onClick:
|
|
8117
|
+
onClick: u[0] || (u[0] = Z((m) => n.value = !n.value, ["prevent"]))
|
|
8115
8118
|
}, [
|
|
8116
8119
|
I(Q, { symbol: "instagram" }),
|
|
8117
|
-
A("span",
|
|
8120
|
+
A("span", GA, T(i.$t("sharing.instagram")), 1)
|
|
8118
8121
|
])
|
|
8119
8122
|
])) : M("", !0),
|
|
8120
|
-
e.services.linkedin ? (c(), g("div",
|
|
8123
|
+
e.services.linkedin ? (c(), g("div", YA, [
|
|
8121
8124
|
A("a", {
|
|
8122
8125
|
class: "link-sharing__link btn btn-primary",
|
|
8123
8126
|
href: `https://www.linkedin.com/shareArticle?mini=true&url=${l.value}&title=${e.subject}`,
|
|
@@ -8125,10 +8128,10 @@ const Es = {
|
|
|
8125
8128
|
rel: "noopener"
|
|
8126
8129
|
}, [
|
|
8127
8130
|
I(Q, { symbol: "linkedin" }),
|
|
8128
|
-
A("span",
|
|
8129
|
-
], 8,
|
|
8131
|
+
A("span", XA, T(i.$t("sharing.linkedin")), 1)
|
|
8132
|
+
], 8, ZA)
|
|
8130
8133
|
])) : M("", !0),
|
|
8131
|
-
e.services.whatsapp && t.value ? (c(), g("div",
|
|
8134
|
+
e.services.whatsapp && t.value ? (c(), g("div", KA, [
|
|
8132
8135
|
A("a", {
|
|
8133
8136
|
class: "link-sharing__link btn btn-primary",
|
|
8134
8137
|
href: `whatsapp://send?text=${l.value}`,
|
|
@@ -8136,20 +8139,20 @@ const Es = {
|
|
|
8136
8139
|
rel: "noopener"
|
|
8137
8140
|
}, [
|
|
8138
8141
|
I(Q, { symbol: "whatsapp" }),
|
|
8139
|
-
A("span",
|
|
8140
|
-
], 8,
|
|
8142
|
+
A("span", tr, T(i.$t("sharing.whatsapp")), 1)
|
|
8143
|
+
], 8, er)
|
|
8141
8144
|
])) : M("", !0),
|
|
8142
|
-
e.services.clipboard ? (c(), g("div",
|
|
8145
|
+
e.services.clipboard ? (c(), g("div", ar, [
|
|
8143
8146
|
A("button", {
|
|
8144
8147
|
type: "button",
|
|
8145
8148
|
class: "link-sharing__link btn btn-primary",
|
|
8146
8149
|
onClick: Z(o, ["prevent", "stop"])
|
|
8147
8150
|
}, [
|
|
8148
8151
|
I(Q, { symbol: "copy" }),
|
|
8149
|
-
A("span",
|
|
8152
|
+
A("span", nr, T(i.$t("sharing.clipboard")), 1)
|
|
8150
8153
|
])
|
|
8151
8154
|
])) : M("", !0),
|
|
8152
|
-
e.services.mailto ? (c(), g("div",
|
|
8155
|
+
e.services.mailto ? (c(), g("div", lr, [
|
|
8153
8156
|
A("a", {
|
|
8154
8157
|
class: "link-sharing__link btn btn-primary",
|
|
8155
8158
|
href: `mailto:?subject=${e.subject}&body=${a.value}%0D%0A${e.url}`,
|
|
@@ -8157,14 +8160,14 @@ const Es = {
|
|
|
8157
8160
|
rel: "noopener"
|
|
8158
8161
|
}, [
|
|
8159
8162
|
I(Q, { symbol: "mail" }),
|
|
8160
|
-
A("span",
|
|
8161
|
-
], 8,
|
|
8163
|
+
A("span", ir, T(i.$t("sharing.mailto")), 1)
|
|
8164
|
+
], 8, or)
|
|
8162
8165
|
])) : M("", !0)
|
|
8163
8166
|
])
|
|
8164
8167
|
]))
|
|
8165
8168
|
]));
|
|
8166
8169
|
}
|
|
8167
|
-
}),
|
|
8170
|
+
}), cr = { class: "base-form" }, Kr = /* @__PURE__ */ O({
|
|
8168
8171
|
__name: "base-form",
|
|
8169
8172
|
props: {
|
|
8170
8173
|
id: {},
|
|
@@ -8183,7 +8186,7 @@ const Es = {
|
|
|
8183
8186
|
function l(a) {
|
|
8184
8187
|
console.log("submit", a);
|
|
8185
8188
|
}
|
|
8186
|
-
return (a, t) => (c(), g("div",
|
|
8189
|
+
return (a, t) => (c(), g("div", cr, [
|
|
8187
8190
|
A("form", {
|
|
8188
8191
|
ref: "form",
|
|
8189
8192
|
onInput: r,
|
|
@@ -8194,10 +8197,10 @@ const Es = {
|
|
|
8194
8197
|
], 544)
|
|
8195
8198
|
]));
|
|
8196
8199
|
}
|
|
8197
|
-
}),
|
|
8200
|
+
}), mr = { class: "touch-wrapper__controls" }, fr = {
|
|
8198
8201
|
class: "btn-group",
|
|
8199
8202
|
role: "group"
|
|
8200
|
-
},
|
|
8203
|
+
}, eu = /* @__PURE__ */ O({
|
|
8201
8204
|
__name: "touch-wrapper",
|
|
8202
8205
|
props: {
|
|
8203
8206
|
modelValue: {
|
|
@@ -8208,38 +8211,38 @@ const Es = {
|
|
|
8208
8211
|
emits: ["update:modelValue"],
|
|
8209
8212
|
setup(e, { emit: r }) {
|
|
8210
8213
|
const n = Ht(), l = n && n.appContext.config.globalProperties.$config, a = e, t = r, o = C();
|
|
8211
|
-
function
|
|
8212
|
-
const
|
|
8213
|
-
t("update:modelValue",
|
|
8214
|
-
}
|
|
8215
|
-
function d
|
|
8216
|
-
if (
|
|
8217
|
-
|
|
8218
|
-
const
|
|
8219
|
-
s
|
|
8214
|
+
function i(d) {
|
|
8215
|
+
const s = a.modelValue + d;
|
|
8216
|
+
t("update:modelValue", d === 0 ? 1 : s >= 1 ? s : 1);
|
|
8217
|
+
}
|
|
8218
|
+
function u(d) {
|
|
8219
|
+
if (d.ctrlKey) {
|
|
8220
|
+
d.preventDefault();
|
|
8221
|
+
const s = 0 - d.deltaY * 0.01;
|
|
8222
|
+
i(s);
|
|
8220
8223
|
}
|
|
8221
8224
|
}
|
|
8222
|
-
function m(
|
|
8223
|
-
|
|
8224
|
-
const { scale:
|
|
8225
|
-
|
|
8225
|
+
function m(d) {
|
|
8226
|
+
d.preventDefault();
|
|
8227
|
+
const { scale: s } = d, f = s > 1 ? s * 0.01 : 0 - s;
|
|
8228
|
+
i(f);
|
|
8226
8229
|
}
|
|
8227
8230
|
return ne(() => {
|
|
8228
|
-
o.value && (o.value.addEventListener("wheel",
|
|
8229
|
-
}), (
|
|
8231
|
+
o.value && (o.value.addEventListener("wheel", u, !1), o.value.addEventListener("gesturestart", m, !1), o.value.addEventListener("gesturechange", m, !1), o.value.addEventListener("gestureend", m, !1));
|
|
8232
|
+
}), (d, s) => (c(), g("div", {
|
|
8230
8233
|
ref_key: "touchElement",
|
|
8231
8234
|
ref: o,
|
|
8232
8235
|
class: "touch-wrapper"
|
|
8233
8236
|
}, [
|
|
8234
|
-
N(
|
|
8235
|
-
on: { setScale:
|
|
8237
|
+
N(d.$slots, "controls", {
|
|
8238
|
+
on: { setScale: i }
|
|
8236
8239
|
}, () => [
|
|
8237
|
-
A("div",
|
|
8238
|
-
A("div",
|
|
8240
|
+
A("div", mr, [
|
|
8241
|
+
A("div", fr, [
|
|
8239
8242
|
A("button", {
|
|
8240
8243
|
type: "button",
|
|
8241
8244
|
class: "btn",
|
|
8242
|
-
onClick:
|
|
8245
|
+
onClick: s[0] || (s[0] = (f) => i(-1))
|
|
8243
8246
|
}, [
|
|
8244
8247
|
I(Q, {
|
|
8245
8248
|
symbol: "minus",
|
|
@@ -8249,7 +8252,7 @@ const Es = {
|
|
|
8249
8252
|
A("button", {
|
|
8250
8253
|
type: "button",
|
|
8251
8254
|
class: "btn",
|
|
8252
|
-
onClick:
|
|
8255
|
+
onClick: s[1] || (s[1] = (f) => i(0))
|
|
8253
8256
|
}, [
|
|
8254
8257
|
I(Q, {
|
|
8255
8258
|
symbol: "maximize",
|
|
@@ -8259,7 +8262,7 @@ const Es = {
|
|
|
8259
8262
|
A("button", {
|
|
8260
8263
|
type: "button",
|
|
8261
8264
|
class: "btn",
|
|
8262
|
-
onClick:
|
|
8265
|
+
onClick: s[2] || (s[2] = (f) => i(1))
|
|
8263
8266
|
}, [
|
|
8264
8267
|
I(Q, {
|
|
8265
8268
|
symbol: "plus",
|
|
@@ -8269,12 +8272,12 @@ const Es = {
|
|
|
8269
8272
|
])
|
|
8270
8273
|
])
|
|
8271
8274
|
]),
|
|
8272
|
-
N(
|
|
8275
|
+
N(d.$slots, "default")
|
|
8273
8276
|
], 512));
|
|
8274
8277
|
}
|
|
8275
8278
|
});
|
|
8276
8279
|
let Ge = null;
|
|
8277
|
-
async function
|
|
8280
|
+
async function gr() {
|
|
8278
8281
|
if (typeof window > "u")
|
|
8279
8282
|
return null;
|
|
8280
8283
|
if (Ge)
|
|
@@ -8336,7 +8339,7 @@ const bt = {
|
|
|
8336
8339
|
function at(e, r) {
|
|
8337
8340
|
return Math.random() * (r - e) + e;
|
|
8338
8341
|
}
|
|
8339
|
-
const
|
|
8342
|
+
const tu = /* @__PURE__ */ O({
|
|
8340
8343
|
__name: "canvas-confetti",
|
|
8341
8344
|
props: {
|
|
8342
8345
|
preset: {
|
|
@@ -8358,38 +8361,38 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8358
8361
|
setup(e) {
|
|
8359
8362
|
const r = e, n = C(null), l = $(() => ({
|
|
8360
8363
|
...bt[r.preset],
|
|
8361
|
-
items: bt[r.preset].items.map((o,
|
|
8364
|
+
items: bt[r.preset].items.map((o, i) => ({
|
|
8362
8365
|
...o,
|
|
8363
|
-
...r.items[
|
|
8366
|
+
...r.items[i],
|
|
8364
8367
|
...r.colors.length ? { colors: r.colors } : {}
|
|
8365
8368
|
}))
|
|
8366
8369
|
}));
|
|
8367
8370
|
async function a(o) {
|
|
8368
|
-
return new Promise((
|
|
8369
|
-
(typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : (m) => setTimeout(m, 16))(() => n.value?.confetti?.(JSON.parse(JSON.stringify(o)))), setTimeout(() =>
|
|
8371
|
+
return new Promise((i) => {
|
|
8372
|
+
(typeof window < "u" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : (m) => setTimeout(m, 16))(() => n.value?.confetti?.(JSON.parse(JSON.stringify(o)))), setTimeout(() => i(), 0);
|
|
8370
8373
|
});
|
|
8371
8374
|
}
|
|
8372
8375
|
async function t() {
|
|
8373
8376
|
await Promise.all(l.value.items.map(
|
|
8374
|
-
(o) => new Promise((
|
|
8375
|
-
|
|
8377
|
+
(o) => new Promise((i) => setTimeout(() => {
|
|
8378
|
+
i(a(o));
|
|
8376
8379
|
}, o.timeout || 0))
|
|
8377
8380
|
)), r.loop && t();
|
|
8378
8381
|
}
|
|
8379
8382
|
return ne(async () => {
|
|
8380
8383
|
if (typeof window < "u" && n.value) {
|
|
8381
|
-
const o = await
|
|
8384
|
+
const o = await gr();
|
|
8382
8385
|
if (!o)
|
|
8383
8386
|
return;
|
|
8384
8387
|
n.value.confetti = n.value?.confetti || o.create(n.value, { resize: !0 }), t();
|
|
8385
8388
|
}
|
|
8386
|
-
}), (o,
|
|
8389
|
+
}), (o, i) => (c(), g("canvas", {
|
|
8387
8390
|
class: "canvas-confetti",
|
|
8388
8391
|
ref_key: "canvas",
|
|
8389
8392
|
ref: n
|
|
8390
8393
|
}, null, 512));
|
|
8391
8394
|
}
|
|
8392
|
-
}),
|
|
8395
|
+
}), vr = ["popovertarget"], pr = ["src", "alt"], au = /* @__PURE__ */ O({
|
|
8393
8396
|
__name: "image-zoom",
|
|
8394
8397
|
props: {
|
|
8395
8398
|
src: {
|
|
@@ -8430,7 +8433,7 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8430
8433
|
}
|
|
8431
8434
|
},
|
|
8432
8435
|
setup(e) {
|
|
8433
|
-
const r = e, n = C(null), l = C(null), a = C(null), t = C(!1), o = C(!1),
|
|
8436
|
+
const r = e, n = C(null), l = C(null), a = C(null), t = C(!1), o = C(!1), i = C(!1), u = C(!1), m = C(null), d = C(0), s = C(0), f = C(0), v = C(0), b = $(() => 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 && !b.value), V = $(() => i.value && !o.value && f.value > 0 && v.value > 0), p = $(() => w.value ? {
|
|
8434
8437
|
width: `${f.value}px`,
|
|
8435
8438
|
height: `${v.value}px`,
|
|
8436
8439
|
left: "0px",
|
|
@@ -8438,14 +8441,14 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8438
8441
|
} : {
|
|
8439
8442
|
width: `${r.focusWidth}px`,
|
|
8440
8443
|
height: `${r.focusHeight}px`,
|
|
8441
|
-
left: `${
|
|
8442
|
-
top: `${
|
|
8444
|
+
left: `${d.value}px`,
|
|
8445
|
+
top: `${s.value}px`
|
|
8443
8446
|
}), h = $(() => {
|
|
8444
8447
|
const H = f.value * r.zoom, G = v.value * r.zoom;
|
|
8445
8448
|
return {
|
|
8446
8449
|
width: `${H}px`,
|
|
8447
8450
|
height: `${G}px`,
|
|
8448
|
-
transform: b.value && !o.value ? `translate(${-
|
|
8451
|
+
transform: b.value && !o.value ? `translate(${-d.value * r.zoom}px, ${-s.value * r.zoom}px)` : "none",
|
|
8449
8452
|
transformOrigin: "top left"
|
|
8450
8453
|
};
|
|
8451
8454
|
});
|
|
@@ -8463,14 +8466,14 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8463
8466
|
}
|
|
8464
8467
|
function z() {
|
|
8465
8468
|
P(), m.value = setTimeout(() => {
|
|
8466
|
-
!
|
|
8469
|
+
!i.value && !u.value && !o.value && (t.value = !1), m.value = null;
|
|
8467
8470
|
}, r.hoverDelay || 100);
|
|
8468
8471
|
}
|
|
8469
8472
|
function K(H, G) {
|
|
8470
8473
|
if (!l.value)
|
|
8471
8474
|
return;
|
|
8472
8475
|
if (w.value) {
|
|
8473
|
-
|
|
8476
|
+
d.value = 0, s.value = 0;
|
|
8474
8477
|
return;
|
|
8475
8478
|
}
|
|
8476
8479
|
const ee = l.value.getBoundingClientRect(), De = H - ee.left, ze = G - ee.top, Ne = Math.min(
|
|
@@ -8480,22 +8483,22 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8480
8483
|
Math.max(ze - r.focusHeight / 2, 0),
|
|
8481
8484
|
Math.max(ee.height - r.focusHeight, 0)
|
|
8482
8485
|
);
|
|
8483
|
-
|
|
8486
|
+
d.value = Ne, s.value = Ve;
|
|
8484
8487
|
}
|
|
8485
8488
|
function ge() {
|
|
8486
8489
|
if (!a.value || !o.value || w.value)
|
|
8487
8490
|
return;
|
|
8488
|
-
const H = a.value.getBoundingClientRect(), G = Math.max(0,
|
|
8491
|
+
const H = a.value.getBoundingClientRect(), G = Math.max(0, d.value * r.zoom - H.width / 2 + r.focusWidth * r.zoom / 2), ee = Math.max(0, s.value * r.zoom - H.height / 2 + r.focusHeight * r.zoom / 2);
|
|
8489
8492
|
a.value.scrollTo({ left: G, top: ee });
|
|
8490
8493
|
}
|
|
8491
8494
|
function me(H) {
|
|
8492
8495
|
k(), K(H.clientX, H.clientY);
|
|
8493
8496
|
}
|
|
8494
8497
|
function ke(H) {
|
|
8495
|
-
|
|
8498
|
+
i.value = !0, k(), K(H.clientX, H.clientY), o.value || B();
|
|
8496
8499
|
}
|
|
8497
8500
|
function ve() {
|
|
8498
|
-
|
|
8501
|
+
i.value = !1, o.value || z();
|
|
8499
8502
|
}
|
|
8500
8503
|
function Le(H) {
|
|
8501
8504
|
o.value && (t.value = !0, k(), K(H.clientX, H.clientY));
|
|
@@ -8504,10 +8507,10 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8504
8507
|
o.value && Fe(ge);
|
|
8505
8508
|
}
|
|
8506
8509
|
function Me() {
|
|
8507
|
-
|
|
8510
|
+
u.value = !0, B();
|
|
8508
8511
|
}
|
|
8509
8512
|
function L() {
|
|
8510
|
-
|
|
8513
|
+
u.value = !1, z();
|
|
8511
8514
|
}
|
|
8512
8515
|
function R(H) {
|
|
8513
8516
|
o.value && (t.value = !t.value, H instanceof MouseEvent && K(H.clientX, H.clientY));
|
|
@@ -8581,68 +8584,68 @@ const Kr = /* @__PURE__ */ O({
|
|
|
8581
8584
|
alt: e.alt,
|
|
8582
8585
|
style: $e(h.value),
|
|
8583
8586
|
draggable: "false"
|
|
8584
|
-
}, null, 14,
|
|
8587
|
+
}, null, 14, pr)
|
|
8585
8588
|
], 2)
|
|
8586
8589
|
], 2)
|
|
8587
8590
|
]),
|
|
8588
8591
|
_: 1
|
|
8589
8592
|
}, 8, ["id", "modelValue", "hover-delay", "close-timeout", "class"])
|
|
8590
|
-
], 8,
|
|
8593
|
+
], 8, vr));
|
|
8591
8594
|
}
|
|
8592
8595
|
});
|
|
8593
8596
|
export {
|
|
8594
|
-
|
|
8595
|
-
|
|
8596
|
-
|
|
8597
|
+
Lr as Accordion,
|
|
8598
|
+
Ir as AccordionItem,
|
|
8599
|
+
Wr as AssetUploader,
|
|
8597
8600
|
ko as AutoSuggest,
|
|
8598
8601
|
Aa as BaseButton,
|
|
8599
|
-
|
|
8600
|
-
|
|
8601
|
-
|
|
8602
|
-
|
|
8602
|
+
Fr as BaseCamera,
|
|
8603
|
+
iA as BaseCarousel,
|
|
8604
|
+
Kr as BaseForm,
|
|
8605
|
+
Br as BaseHeadline,
|
|
8603
8606
|
Te as BaseImage,
|
|
8604
8607
|
We as BaseInput,
|
|
8605
8608
|
ei as BaseMap,
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8609
|
+
Mr as BaseParagraph,
|
|
8610
|
+
tu as CanvasConfetti,
|
|
8611
|
+
Tr as CheckGroup,
|
|
8612
|
+
Rr as ColorPalette,
|
|
8613
|
+
Nr as CustomHtml,
|
|
8614
|
+
Yr as DomRenderer,
|
|
8612
8615
|
vi as FileUpload,
|
|
8613
|
-
|
|
8616
|
+
_r as HintSystem,
|
|
8614
8617
|
Fi as ImageCrop,
|
|
8615
8618
|
ts as ImageCropResize,
|
|
8616
8619
|
zi as ImageResize,
|
|
8617
8620
|
fs as ImageUpload,
|
|
8618
|
-
|
|
8619
|
-
|
|
8620
|
-
|
|
8621
|
-
|
|
8622
|
-
|
|
8621
|
+
au as ImageZoom,
|
|
8622
|
+
Vr as InputCheckbox,
|
|
8623
|
+
Or as InputColor,
|
|
8624
|
+
xr as InputDatepicker,
|
|
8625
|
+
Pr as InputDatetime,
|
|
8623
8626
|
It as InputDropdown,
|
|
8624
8627
|
Mt as InputFile,
|
|
8625
|
-
|
|
8628
|
+
Er as InputPasscode,
|
|
8626
8629
|
vl as InputPassword,
|
|
8627
|
-
|
|
8628
|
-
|
|
8630
|
+
Dr as InputTextarea,
|
|
8631
|
+
Xr as LinkSharing,
|
|
8629
8632
|
rt as LoadingSpinner,
|
|
8630
|
-
|
|
8633
|
+
Ur as LocationFinder,
|
|
8631
8634
|
ri as LocationList,
|
|
8632
|
-
|
|
8635
|
+
jr as MediaThumbnails,
|
|
8633
8636
|
ss as ModalDialog,
|
|
8634
8637
|
ct as PopoverDialog,
|
|
8635
|
-
|
|
8636
|
-
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8638
|
+
Gr as PopoverNotifications,
|
|
8639
|
+
Jr as PopoverTooltip,
|
|
8640
|
+
qr as ProgressSteps,
|
|
8641
|
+
Zr as QrCode,
|
|
8642
|
+
zr as RadioButtons,
|
|
8640
8643
|
dt as RadioGroup,
|
|
8641
|
-
|
|
8642
|
-
|
|
8644
|
+
Qr as RteEditor,
|
|
8645
|
+
Hr as SelectMedia,
|
|
8643
8646
|
$i as SortableList,
|
|
8644
8647
|
Q as SvgIcon,
|
|
8645
|
-
|
|
8648
|
+
eu as TouchWrapper,
|
|
8646
8649
|
Cs as UploadGroup,
|
|
8647
8650
|
So as useCameraFilter,
|
|
8648
8651
|
Ms as useDirections,
|