ablok-components 0.3.56 → 0.3.58

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