@visitscotland/component-library 5.52.0 → 5.53.1
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/components/{LoadingSpinner-CaO_-caf.mjs → LoadingSpinner-D0Xf9MWc.mjs} +4 -2
- package/dist/components/{LoadingSpinner-Dp1LUhwe.js → LoadingSpinner-GwEp7vJg.js} +1 -1
- package/dist/components/vs-component-library-maps.js +1 -1
- package/dist/components/vs-component-library-maps.mjs +1 -1
- package/dist/components/vs-component-library.js +6 -6
- package/dist/components/vs-component-library.mjs +202 -198
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock, createElementBlock, renderSlot, resolveComponent, createBlock, normalizeClass, withCtx, createElementVNode, createVNode, normalizeStyle, createCommentVNode, withDirectives, vShow, inject, mergeProps, toDisplayString, ref, onMounted, onUnmounted, createTextVNode, Fragment, renderList, resolveDirective, withKeys, withModifiers, normalizeProps, createSlots, getCurrentInstance, defineComponent, computed as computed$1, watch, reactive, provide, onBeforeMount, isRef, onBeforeUnmount, unref, isReactive, isReadonly, nextTick, isVNode, markRaw, toRef, resolveDynamicComponent, h, Transition, Teleport, useModel, mergeModels, toHandlers, vModelText, guardReactiveProps, onUpdated, Suspense } from "vue";
|
|
2
|
-
import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as getDefaultExportFromCjs, y as vt, L as Lu, z as ld, A as _a, M as Md, B as products, C as paths, D as monthsEnglish, F as VsLoading, G as ol, H as wn, I as Ea, J as Bn, K as Je, S as St, P as Pa, N as Ka, Q as vc, R as dc, U as useDataLayerStore, W as checkVendorLibrary, $ as siteSearchCloseTemplate, a0 as siteSearchClickTemplate, a1 as siteSearchUsageTemplate, a2 as siteSearchOpenTemplate, a3 as googleMapInteractionTemplate, a4 as googleMapTimeToFirstInteractionTemplate, a5 as googleMapFilterInteractionTemplate, a6 as googleMapSearchTemplate } from "./LoadingSpinner-
|
|
3
|
-
import { a7 as Fe } from "./LoadingSpinner-
|
|
2
|
+
import { _ as _export_sfc, V as VsButton, d as dataLayerMixin, a as VsHeading, n as nn, b as an, c as VsIcon, r as rn, l as lodashExports, e as VsBody, f as VsContainer, g as VsRow, h as VsCol, i as ci, p as pi$2, j as en, k as dmoUrls, m as VsImg, E as Ed, o as axios, q as designTokens, Y as Yo, Z as Zo, s as pn, O as Ou, T as Tu, t as ku, u as VsWarning, v as fn, w as un, X as Xi, x as getDefaultExportFromCjs, y as vt, L as Lu, z as ld, A as _a, M as Md, B as products, C as paths, D as monthsEnglish, F as VsLoading, G as ol, H as wn, I as Ea, J as Bn, K as Je, S as St, P as Pa, N as Ka, Q as vc, R as dc, U as useDataLayerStore, W as checkVendorLibrary, $ as siteSearchCloseTemplate, a0 as siteSearchClickTemplate, a1 as siteSearchUsageTemplate, a2 as siteSearchOpenTemplate, a3 as googleMapInteractionTemplate, a4 as googleMapTimeToFirstInteractionTemplate, a5 as googleMapFilterInteractionTemplate, a6 as googleMapSearchTemplate } from "./LoadingSpinner-D0Xf9MWc.mjs";
|
|
3
|
+
import { a7 as Fe } from "./LoadingSpinner-D0Xf9MWc.mjs";
|
|
4
4
|
import { defineStore, storeToRefs } from "pinia";
|
|
5
5
|
const _sfc_main$2D = {
|
|
6
6
|
name: "VsAccordion",
|
|
@@ -1683,17 +1683,17 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1683
1683
|
}, f = getAlignmentAxis(o), p = getAxisLength(f), g = await r.getDimensions(c), v = f === "y", k = v ? "top" : "left", _ = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", V = s.reference[p] + s.reference[f] - m[f] - s.floating[p], w = m[f] - s.reference[f], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(c));
|
|
1684
1684
|
let S = N ? N[b] : 0;
|
|
1685
1685
|
(!S || !await (r.isElement == null ? void 0 : r.isElement(N))) && (S = i.floating[b] || s.floating[p]);
|
|
1686
|
-
const C = V / 2 - w / 2,
|
|
1686
|
+
const C = V / 2 - w / 2, I = S / 2 - g[p] / 2 - 1, R = min$3(u[k], I), D = min$3(u[_], I), P = R, $ = S - g[p] - D, M = S / 2 - g[p] / 2 + C, q = clamp(P, M, $), H = !l.arrow && getAlignment(o) != null && M !== q && s.reference[p] / 2 - (M < P ? R : D) - g[p] / 2 < 0, z = H ? M < P ? M - P : M - $ : 0;
|
|
1687
1687
|
return {
|
|
1688
|
-
[f]: m[f] +
|
|
1688
|
+
[f]: m[f] + z,
|
|
1689
1689
|
data: {
|
|
1690
|
-
[f]:
|
|
1691
|
-
centerOffset: M -
|
|
1692
|
-
...
|
|
1693
|
-
alignmentOffset:
|
|
1690
|
+
[f]: q,
|
|
1691
|
+
centerOffset: M - q - z,
|
|
1692
|
+
...H && {
|
|
1693
|
+
alignmentOffset: z
|
|
1694
1694
|
}
|
|
1695
1695
|
},
|
|
1696
|
-
reset:
|
|
1696
|
+
reset: H
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
1699
1699
|
}), flip$1 = function(e) {
|
|
@@ -1722,19 +1722,19 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1722
1722
|
return {};
|
|
1723
1723
|
const k = getSide(o), _ = getSideAxis(i), b = getSide(i) === i, V = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), w = m || (b || !g ? [getOppositePlacement(i)] : getExpandedPlacements(i)), N = p !== "none";
|
|
1724
1724
|
!m && N && w.push(...getOppositeAxisPlacements(i, g, p, V));
|
|
1725
|
-
const S = [i, ...w], C = await l.detectOverflow(n, v),
|
|
1725
|
+
const S = [i, ...w], C = await l.detectOverflow(n, v), I = [];
|
|
1726
1726
|
let R = ((a = s.flip) == null ? void 0 : a.overflows) || [];
|
|
1727
|
-
if (d &&
|
|
1727
|
+
if (d && I.push(C[k]), u) {
|
|
1728
1728
|
const M = getAlignmentSides(o, r, V);
|
|
1729
|
-
|
|
1729
|
+
I.push(C[M[0]], C[M[1]]);
|
|
1730
1730
|
}
|
|
1731
1731
|
if (R = [...R, {
|
|
1732
1732
|
placement: o,
|
|
1733
|
-
overflows:
|
|
1734
|
-
}], !
|
|
1735
|
-
var D,
|
|
1736
|
-
const M = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1,
|
|
1737
|
-
if (
|
|
1733
|
+
overflows: I
|
|
1734
|
+
}], !I.every((M) => M <= 0)) {
|
|
1735
|
+
var D, P;
|
|
1736
|
+
const M = (((D = s.flip) == null ? void 0 : D.index) || 0) + 1, q = S[M];
|
|
1737
|
+
if (q && (!(u === "alignment" ? _ !== getSideAxis(q) : !1) || // We leave the current main axis only if every placement on that axis
|
|
1738
1738
|
// overflows the main axis.
|
|
1739
1739
|
R.every((B) => getSideAxis(B.placement) === _ ? B.overflows[0] > 0 : !0)))
|
|
1740
1740
|
return {
|
|
@@ -1743,15 +1743,15 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1743
1743
|
overflows: R
|
|
1744
1744
|
},
|
|
1745
1745
|
reset: {
|
|
1746
|
-
placement:
|
|
1746
|
+
placement: q
|
|
1747
1747
|
}
|
|
1748
1748
|
};
|
|
1749
|
-
let
|
|
1750
|
-
if (!
|
|
1749
|
+
let H = (P = R.filter((z) => z.overflows[0] <= 0).sort((z, B) => z.overflows[1] - B.overflows[1])[0]) == null ? void 0 : P.placement;
|
|
1750
|
+
if (!H)
|
|
1751
1751
|
switch (f) {
|
|
1752
1752
|
case "bestFit": {
|
|
1753
1753
|
var $;
|
|
1754
|
-
const
|
|
1754
|
+
const z = ($ = R.filter((B) => {
|
|
1755
1755
|
if (N) {
|
|
1756
1756
|
const T = getSideAxis(B.placement);
|
|
1757
1757
|
return T === _ || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -1759,18 +1759,18 @@ const MAX_RESET_COUNT = 50, computePosition$1 = async (e, n, t) => {
|
|
|
1759
1759
|
T === "y";
|
|
1760
1760
|
}
|
|
1761
1761
|
return !0;
|
|
1762
|
-
}).map((B) => [B.placement, B.overflows.filter((T) => T > 0).reduce((T,
|
|
1763
|
-
|
|
1762
|
+
}).map((B) => [B.placement, B.overflows.filter((T) => T > 0).reduce((T, O) => T + O, 0)]).sort((B, T) => B[1] - T[1])[0]) == null ? void 0 : $[0];
|
|
1763
|
+
z && (H = z);
|
|
1764
1764
|
break;
|
|
1765
1765
|
}
|
|
1766
1766
|
case "initialPlacement":
|
|
1767
|
-
|
|
1767
|
+
H = i;
|
|
1768
1768
|
break;
|
|
1769
1769
|
}
|
|
1770
|
-
if (o !==
|
|
1770
|
+
if (o !== H)
|
|
1771
1771
|
return {
|
|
1772
1772
|
reset: {
|
|
1773
|
-
placement:
|
|
1773
|
+
placement: H
|
|
1774
1774
|
}
|
|
1775
1775
|
};
|
|
1776
1776
|
}
|
|
@@ -3768,9 +3768,9 @@ function _sfc_render$1S(e, n, t, a, o, s) {
|
|
|
3768
3768
|
renderSlot(e.$slots, "vs-canned-search-of")
|
|
3769
3769
|
]),
|
|
3770
3770
|
default: withCtx(() => [
|
|
3771
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.products, (C,
|
|
3772
|
-
key:
|
|
3773
|
-
"slide-index": `${
|
|
3771
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(o.products, (C, I) => (openBlock(), createBlock(w, {
|
|
3772
|
+
key: I,
|
|
3773
|
+
"slide-index": `${I}`,
|
|
3774
3774
|
"img-src": C.images ? C.images[0].mediaUrl : "",
|
|
3775
3775
|
title: C.name,
|
|
3776
3776
|
"detail-link": {
|
|
@@ -6228,37 +6228,37 @@ function formatLocale(e) {
|
|
|
6228
6228
|
u = formatSpecifier(u);
|
|
6229
6229
|
var m = u.fill, f = u.align, p = u.sign, g = u.symbol, v = u.zero, k = u.width, _ = u.comma, b = u.precision, V = u.trim, w = u.type;
|
|
6230
6230
|
w === "n" ? (_ = !0, w = "g") : formatTypes[w] || (b === void 0 && (b = 12), V = !0, w = "g"), (v || m === "0" && f === "=") && (v = !0, m = "0", f = "=");
|
|
6231
|
-
var N = g === "$" ? t : g === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", S = g === "$" ? a : /[%p]/.test(w) ? r : "", C = formatTypes[w],
|
|
6231
|
+
var N = g === "$" ? t : g === "#" && /[boxX]/.test(w) ? "0" + w.toLowerCase() : "", S = g === "$" ? a : /[%p]/.test(w) ? r : "", C = formatTypes[w], I = /[defgprs%]/.test(w);
|
|
6232
6232
|
b = b === void 0 ? 6 : /[gprs]/.test(w) ? Math.max(1, Math.min(21, b)) : Math.max(0, Math.min(20, b));
|
|
6233
6233
|
function R(D) {
|
|
6234
|
-
var
|
|
6234
|
+
var P = N, $ = S, M, q, H;
|
|
6235
6235
|
if (w === "c")
|
|
6236
6236
|
$ = C(D) + $, D = "";
|
|
6237
6237
|
else {
|
|
6238
6238
|
D = +D;
|
|
6239
|
-
var
|
|
6240
|
-
if (D = isNaN(D) ? l : C(Math.abs(D), b), V && (D = formatTrim(D)),
|
|
6241
|
-
for (M = -1,
|
|
6242
|
-
if (
|
|
6243
|
-
$ = (
|
|
6239
|
+
var z = D < 0 || 1 / D < 0;
|
|
6240
|
+
if (D = isNaN(D) ? l : C(Math.abs(D), b), V && (D = formatTrim(D)), z && +D == 0 && p !== "+" && (z = !1), P = (z ? p === "(" ? p : i : p === "-" || p === "(" ? "" : p) + P, $ = (w === "s" ? prefixes[8 + prefixExponent / 3] : "") + $ + (z && p === "(" ? ")" : ""), I) {
|
|
6241
|
+
for (M = -1, q = D.length; ++M < q; )
|
|
6242
|
+
if (H = D.charCodeAt(M), 48 > H || H > 57) {
|
|
6243
|
+
$ = (H === 46 ? o + D.slice(M + 1) : D.slice(M)) + $, D = D.slice(0, M);
|
|
6244
6244
|
break;
|
|
6245
6245
|
}
|
|
6246
6246
|
}
|
|
6247
6247
|
}
|
|
6248
6248
|
_ && !v && (D = n(D, 1 / 0));
|
|
6249
|
-
var B =
|
|
6249
|
+
var B = P.length + D.length + $.length, T = B < k ? new Array(k - B + 1).join(m) : "";
|
|
6250
6250
|
switch (_ && v && (D = n(T + D, T.length ? k - $.length : 1 / 0), T = ""), f) {
|
|
6251
6251
|
case "<":
|
|
6252
|
-
D =
|
|
6252
|
+
D = P + D + $ + T;
|
|
6253
6253
|
break;
|
|
6254
6254
|
case "=":
|
|
6255
|
-
D =
|
|
6255
|
+
D = P + T + D + $;
|
|
6256
6256
|
break;
|
|
6257
6257
|
case "^":
|
|
6258
|
-
D = T.slice(0, B = T.length >> 1) +
|
|
6258
|
+
D = T.slice(0, B = T.length >> 1) + P + D + $ + T.slice(B);
|
|
6259
6259
|
break;
|
|
6260
6260
|
default:
|
|
6261
|
-
D = T +
|
|
6261
|
+
D = T + P + D + $;
|
|
6262
6262
|
break;
|
|
6263
6263
|
}
|
|
6264
6264
|
return s(D);
|
|
@@ -6561,14 +6561,14 @@ function intersect(e, n, t, a, o, s, r, i) {
|
|
|
6561
6561
|
return m = (d * (n - s) - u * (e - o)) / m, [e + m * l, n + m * c];
|
|
6562
6562
|
}
|
|
6563
6563
|
function cornerTangents(e, n, t, a, o, s, r) {
|
|
6564
|
-
var i = e - t, l = n - a, c = (r ? s : -s) / sqrt(i * i + l * l), d = c * l, u = -c * i, m = e + d, f = n + u, p = t + d, g = a + u, v = (m + p) / 2, k = (f + g) / 2, _ = p - m, b = g - f, V = _ * _ + b * b, w = o - s, N = m * g - p * f, S = (b < 0 ? -1 : 1) * sqrt(max(0, w * w * V - N * N)), C = (N * b - _ * S) / V,
|
|
6565
|
-
return
|
|
6564
|
+
var i = e - t, l = n - a, c = (r ? s : -s) / sqrt(i * i + l * l), d = c * l, u = -c * i, m = e + d, f = n + u, p = t + d, g = a + u, v = (m + p) / 2, k = (f + g) / 2, _ = p - m, b = g - f, V = _ * _ + b * b, w = o - s, N = m * g - p * f, S = (b < 0 ? -1 : 1) * sqrt(max(0, w * w * V - N * N)), C = (N * b - _ * S) / V, I = (-N * _ - b * S) / V, R = (N * b + _ * S) / V, D = (-N * _ + b * S) / V, P = C - v, $ = I - k, M = R - v, q = D - k;
|
|
6565
|
+
return P * P + $ * $ > M * M + q * q && (C = R, I = D), {
|
|
6566
6566
|
cx: C,
|
|
6567
|
-
cy:
|
|
6567
|
+
cy: I,
|
|
6568
6568
|
x01: -d,
|
|
6569
6569
|
y01: -u,
|
|
6570
6570
|
x11: C * (o / w - 1),
|
|
6571
|
-
y11:
|
|
6571
|
+
y11: I * (o / w - 1)
|
|
6572
6572
|
};
|
|
6573
6573
|
}
|
|
6574
6574
|
function arc() {
|
|
@@ -6579,22 +6579,22 @@ function arc() {
|
|
|
6579
6579
|
else if (v > tau$1 - epsilon$2)
|
|
6580
6580
|
i.moveTo(f * cos(p), f * sin(p)), i.arc(0, 0, f, p, g, !k), m > epsilon$2 && (i.moveTo(m * cos(g), m * sin(g)), i.arc(0, 0, m, g, p, k));
|
|
6581
6581
|
else {
|
|
6582
|
-
var _ = p, b = g, V = p, w = g, N = v, S = v, C = r.apply(this, arguments) / 2,
|
|
6583
|
-
if (
|
|
6584
|
-
var
|
|
6585
|
-
(N -=
|
|
6582
|
+
var _ = p, b = g, V = p, w = g, N = v, S = v, C = r.apply(this, arguments) / 2, I = C > epsilon$2 && (a ? +a.apply(this, arguments) : sqrt(m * m + f * f)), R = min(abs(f - m) / 2, +t.apply(this, arguments)), D = R, P = R, $, M;
|
|
6583
|
+
if (I > epsilon$2) {
|
|
6584
|
+
var q = asin(I / m * sin(C)), H = asin(I / f * sin(C));
|
|
6585
|
+
(N -= q * 2) > epsilon$2 ? (q *= k ? 1 : -1, V += q, w -= q) : (N = 0, V = w = (p + g) / 2), (S -= H * 2) > epsilon$2 ? (H *= k ? 1 : -1, _ += H, b -= H) : (S = 0, _ = b = (p + g) / 2);
|
|
6586
6586
|
}
|
|
6587
|
-
var
|
|
6587
|
+
var z = f * cos(_), B = f * sin(_), T = m * cos(w), O = m * sin(w);
|
|
6588
6588
|
if (R > epsilon$2) {
|
|
6589
6589
|
var W = f * cos(b), Y = f * sin(b), ee = m * cos(V), Q = m * sin(V), J;
|
|
6590
6590
|
if (v < pi$1)
|
|
6591
|
-
if (J = intersect(
|
|
6592
|
-
var G =
|
|
6593
|
-
D = min(R, (m - ne) / (le - 1)),
|
|
6591
|
+
if (J = intersect(z, B, ee, Q, W, Y, T, O)) {
|
|
6592
|
+
var G = z - J[0], ce = B - J[1], ie = W - J[0], de = Y - J[1], le = 1 / sin(acos((G * ie + ce * de) / (sqrt(G * G + ce * ce) * sqrt(ie * ie + de * de))) / 2), ne = sqrt(J[0] * J[0] + J[1] * J[1]);
|
|
6593
|
+
D = min(R, (m - ne) / (le - 1)), P = min(R, (f - ne) / (le + 1));
|
|
6594
6594
|
} else
|
|
6595
|
-
D =
|
|
6595
|
+
D = P = 0;
|
|
6596
6596
|
}
|
|
6597
|
-
S > epsilon$2 ?
|
|
6597
|
+
S > epsilon$2 ? P > epsilon$2 ? ($ = cornerTangents(ee, Q, z, B, f, P, k), M = cornerTangents(W, Y, T, O, f, P, k), i.moveTo($.cx + $.x01, $.cy + $.y01), P < R ? i.arc($.cx, $.cy, P, atan2($.y01, $.x01), atan2(M.y01, M.x01), !k) : (i.arc($.cx, $.cy, P, atan2($.y01, $.x01), atan2($.y11, $.x11), !k), i.arc(0, 0, f, atan2($.cy + $.y11, $.cx + $.x11), atan2(M.cy + M.y11, M.cx + M.x11), !k), i.arc(M.cx, M.cy, P, atan2(M.y11, M.x11), atan2(M.y01, M.x01), !k))) : (i.moveTo(z, B), i.arc(0, 0, f, _, b, !k)) : i.moveTo(z, B), !(m > epsilon$2) || !(N > epsilon$2) ? i.lineTo(T, O) : D > epsilon$2 ? ($ = cornerTangents(T, O, W, Y, m, -D, k), M = cornerTangents(z, B, ee, Q, m, -D, k), i.lineTo($.cx + $.x01, $.cy + $.y01), D < R ? i.arc($.cx, $.cy, D, atan2($.y01, $.x01), atan2(M.y01, M.x01), !k) : (i.arc($.cx, $.cy, D, atan2($.y01, $.x01), atan2($.y11, $.x11), !k), i.arc(0, 0, m, atan2($.cy + $.y11, $.cx + $.x11), atan2(M.cy + M.y11, M.cx + M.x11), k), i.arc(M.cx, M.cy, D, atan2(M.y11, M.x11), atan2(M.y01, M.x01), !k))) : i.arc(0, 0, m, w, V, k);
|
|
6598
6598
|
}
|
|
6599
6599
|
if (i.closePath(), d) return i = null, d + "" || null;
|
|
6600
6600
|
}
|
|
@@ -7661,14 +7661,14 @@ function entering() {
|
|
|
7661
7661
|
function axis(e, n) {
|
|
7662
7662
|
var t = [], a = null, o = null, s = 6, r = 6, i = 3, l = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, c = e === top || e === left ? -1 : 1, d = e === left || e === right ? "x" : "y", u = e === top || e === bottom ? translateX : translateY;
|
|
7663
7663
|
function m(f) {
|
|
7664
|
-
var p = a ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = o ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(s, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, V = (n.bandwidth ? center : number)(n.copy(), l), w = f.selection ? f.selection() : f, N = w.selectAll(".domain").data([null]), S = w.selectAll(".tick").data(p, n).order(), C = S.exit(),
|
|
7665
|
-
N = N.merge(N.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), S = S.merge(
|
|
7666
|
-
return isFinite(
|
|
7667
|
-
}),
|
|
7664
|
+
var p = a ?? (n.ticks ? n.ticks.apply(n, t) : n.domain()), g = o ?? (n.tickFormat ? n.tickFormat.apply(n, t) : identity), v = Math.max(s, 0) + i, k = n.range(), _ = +k[0] + l, b = +k[k.length - 1] + l, V = (n.bandwidth ? center : number)(n.copy(), l), w = f.selection ? f.selection() : f, N = w.selectAll(".domain").data([null]), S = w.selectAll(".tick").data(p, n).order(), C = S.exit(), I = S.enter().append("g").attr("class", "tick"), R = S.select("line"), D = S.select("text");
|
|
7665
|
+
N = N.merge(N.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), S = S.merge(I), R = R.merge(I.append("line").attr("stroke", "currentColor").attr(d + "2", c * s)), D = D.merge(I.append("text").attr("fill", "currentColor").attr(d, c * v).attr("dy", e === top ? "0em" : e === bottom ? "0.71em" : "0.32em")), f !== w && (N = N.transition(f), S = S.transition(f), R = R.transition(f), D = D.transition(f), C = C.transition(f).attr("opacity", epsilon).attr("transform", function(P) {
|
|
7666
|
+
return isFinite(P = V(P)) ? u(P + l) : this.getAttribute("transform");
|
|
7667
|
+
}), I.attr("opacity", epsilon).attr("transform", function(P) {
|
|
7668
7668
|
var $ = this.parentNode.__axis;
|
|
7669
|
-
return u(($ && isFinite($ = $(
|
|
7670
|
-
})), C.remove(), N.attr("d", e === left || e === right ? r ? "M" + c * r + "," + _ + "H" + l + "V" + b + "H" + c * r : "M" + l + "," + _ + "V" + b : r ? "M" + _ + "," + c * r + "V" + l + "H" + b + "V" + c * r : "M" + _ + "," + l + "H" + b), S.attr("opacity", 1).attr("transform", function(
|
|
7671
|
-
return u(V(
|
|
7669
|
+
return u(($ && isFinite($ = $(P)) ? $ : V(P)) + l);
|
|
7670
|
+
})), C.remove(), N.attr("d", e === left || e === right ? r ? "M" + c * r + "," + _ + "H" + l + "V" + b + "H" + c * r : "M" + l + "," + _ + "V" + b : r ? "M" + _ + "," + c * r + "V" + l + "H" + b + "V" + c * r : "M" + _ + "," + l + "H" + b), S.attr("opacity", 1).attr("transform", function(P) {
|
|
7671
|
+
return u(V(P) + l);
|
|
7672
7672
|
}), R.attr(d + "2", c * s), D.attr(d, c * v).text(g), w.filter(entering).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", e === right ? "start" : e === left ? "end" : "middle"), w.each(function() {
|
|
7673
7673
|
this.__axis = V;
|
|
7674
7674
|
});
|
|
@@ -10006,14 +10006,14 @@ function setValidations(e) {
|
|
|
10006
10006
|
config: f,
|
|
10007
10007
|
validationGroups: p
|
|
10008
10008
|
} = sortValidations(n), g = _objectSpread2$1(_objectSpread2$1({}, i), f), v = a ? computed$1(() => {
|
|
10009
|
-
const
|
|
10010
|
-
return
|
|
10009
|
+
const O = unref(t);
|
|
10010
|
+
return O ? unref(O[a]) : void 0;
|
|
10011
10011
|
}) : t, k = _objectSpread2$1({}, unref(c) || {}), _ = computed$1(() => {
|
|
10012
|
-
const
|
|
10013
|
-
return a ?
|
|
10012
|
+
const O = unref(c);
|
|
10013
|
+
return a ? O ? unref(O[a]) : void 0 : O;
|
|
10014
10014
|
}), b = createValidationResults(u, v, a, r, d, g, l, _, t), V = collectNestedValidationResults(m, v, d, r, g, l, _), w = {};
|
|
10015
|
-
p && Object.entries(p).forEach((
|
|
10016
|
-
let [W, Y] =
|
|
10015
|
+
p && Object.entries(p).forEach((O) => {
|
|
10016
|
+
let [W, Y] = O;
|
|
10017
10017
|
w[W] = {
|
|
10018
10018
|
$invalid: gatherBooleanGroupProperties(Y, V, "$invalid"),
|
|
10019
10019
|
$error: gatherBooleanGroupProperties(Y, V, "$error"),
|
|
@@ -10026,58 +10026,58 @@ function setValidations(e) {
|
|
|
10026
10026
|
$dirty: N,
|
|
10027
10027
|
$errors: S,
|
|
10028
10028
|
$invalid: C,
|
|
10029
|
-
$anyDirty:
|
|
10029
|
+
$anyDirty: I,
|
|
10030
10030
|
$error: R,
|
|
10031
10031
|
$pending: D,
|
|
10032
|
-
$touch:
|
|
10032
|
+
$touch: P,
|
|
10033
10033
|
$reset: $,
|
|
10034
10034
|
$silentErrors: M,
|
|
10035
|
-
$commit:
|
|
10036
|
-
} = createMetaFields(b, V, s),
|
|
10035
|
+
$commit: q
|
|
10036
|
+
} = createMetaFields(b, V, s), H = a ? computed$1({
|
|
10037
10037
|
get: () => unref(v),
|
|
10038
|
-
set: (
|
|
10038
|
+
set: (O) => {
|
|
10039
10039
|
N.value = !0;
|
|
10040
10040
|
const W = unref(t), Y = unref(c);
|
|
10041
|
-
Y && (Y[a] = k[a]), isRef(W[a]) ? W[a].value =
|
|
10041
|
+
Y && (Y[a] = k[a]), isRef(W[a]) ? W[a].value = O : W[a] = O;
|
|
10042
10042
|
}
|
|
10043
10043
|
}) : null;
|
|
10044
10044
|
a && g.$autoDirty && watch(v, () => {
|
|
10045
|
-
N.value ||
|
|
10046
|
-
const
|
|
10047
|
-
|
|
10045
|
+
N.value || P();
|
|
10046
|
+
const O = unref(c);
|
|
10047
|
+
O && (O[a] = k[a]);
|
|
10048
10048
|
}, {
|
|
10049
10049
|
flush: "sync"
|
|
10050
10050
|
});
|
|
10051
|
-
async function
|
|
10052
|
-
return
|
|
10053
|
-
if (!D.value) return
|
|
10051
|
+
async function z() {
|
|
10052
|
+
return P(), g.$rewardEarly && (q(), await nextTick()), await nextTick(), new Promise((O) => {
|
|
10053
|
+
if (!D.value) return O(!C.value);
|
|
10054
10054
|
const W = watch(D, () => {
|
|
10055
|
-
|
|
10055
|
+
O(!C.value), W();
|
|
10056
10056
|
});
|
|
10057
10057
|
});
|
|
10058
10058
|
}
|
|
10059
|
-
function B(
|
|
10060
|
-
return (s.value || {})[
|
|
10059
|
+
function B(O) {
|
|
10060
|
+
return (s.value || {})[O];
|
|
10061
10061
|
}
|
|
10062
10062
|
function T() {
|
|
10063
|
-
isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((
|
|
10064
|
-
delete c[
|
|
10063
|
+
isRef(c) ? c.value = k : Object.keys(k).length === 0 ? Object.keys(c).forEach((O) => {
|
|
10064
|
+
delete c[O];
|
|
10065
10065
|
}) : Object.assign(c, k);
|
|
10066
10066
|
}
|
|
10067
10067
|
return reactive(_objectSpread2$1(_objectSpread2$1(_objectSpread2$1({}, b), {}, {
|
|
10068
|
-
$model:
|
|
10068
|
+
$model: H,
|
|
10069
10069
|
$dirty: N,
|
|
10070
10070
|
$error: R,
|
|
10071
10071
|
$errors: S,
|
|
10072
10072
|
$invalid: C,
|
|
10073
|
-
$anyDirty:
|
|
10073
|
+
$anyDirty: I,
|
|
10074
10074
|
$pending: D,
|
|
10075
|
-
$touch:
|
|
10075
|
+
$touch: P,
|
|
10076
10076
|
$reset: $,
|
|
10077
10077
|
$path: d || ROOT_PATH,
|
|
10078
10078
|
$silentErrors: M,
|
|
10079
|
-
$validate:
|
|
10080
|
-
$commit:
|
|
10079
|
+
$validate: z,
|
|
10080
|
+
$commit: q
|
|
10081
10081
|
}, s && {
|
|
10082
10082
|
$getResultsForChild: B,
|
|
10083
10083
|
$clearExternalResults: T,
|
|
@@ -15014,8 +15014,8 @@ function setup(e) {
|
|
|
15014
15014
|
V++;
|
|
15015
15015
|
const C = t.formatters[S];
|
|
15016
15016
|
if (typeof C == "function") {
|
|
15017
|
-
const
|
|
15018
|
-
N = C.call(k,
|
|
15017
|
+
const I = v[V];
|
|
15018
|
+
N = C.call(k, I), v.splice(V, 1), V--;
|
|
15019
15019
|
}
|
|
15020
15020
|
return N;
|
|
15021
15021
|
}), t.formatArgs.call(k, v), (k.log || t.log).apply(k, v);
|
|
@@ -15297,10 +15297,10 @@ var functionNamesExports = functionNames.exports;
|
|
|
15297
15297
|
Array.isArray(b.acceptableStates) && !b.acceptableStates.includes(V) ? new Promise((N) => {
|
|
15298
15298
|
const S = () => {
|
|
15299
15299
|
const C = _.getPlayerState();
|
|
15300
|
-
let
|
|
15301
|
-
typeof b.timeout == "number" && (
|
|
15300
|
+
let I;
|
|
15301
|
+
typeof b.timeout == "number" && (I = setTimeout(() => {
|
|
15302
15302
|
_.removeEventListener("onStateChange", S), N();
|
|
15303
|
-
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange", S), clearTimeout(
|
|
15303
|
+
}, b.timeout)), Array.isArray(b.acceptableStates) && b.acceptableStates.includes(C) && (_.removeEventListener("onStateChange", S), clearTimeout(I), N());
|
|
15304
15304
|
};
|
|
15305
15305
|
_.addEventListener("onStateChange", S);
|
|
15306
15306
|
}).then(() => w) : w;
|
|
@@ -23480,10 +23480,10 @@ const _hoisted_1$r = {
|
|
|
23480
23480
|
size: "sm"
|
|
23481
23481
|
}),
|
|
23482
23482
|
withDirectives(createElementVNode("ul", mergeProps(_(), toHandlers(b(), !0), { class: "vs-autocomplete__list" }), [
|
|
23483
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (C,
|
|
23483
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (C, I) => (openBlock(), createElementBlock("li", mergeProps({
|
|
23484
23484
|
key: C.id
|
|
23485
|
-
}, { ref_for: !0 }, V({ item: C, index:
|
|
23486
|
-
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v ===
|
|
23485
|
+
}, { ref_for: !0 }, V({ item: C, index: I }), toHandlers(w({ item: C, index: I }), !0), {
|
|
23486
|
+
class: ["vs-autocomplete__list-item", { "vs-autocomplete__list-item--hover": v === I }]
|
|
23487
23487
|
}), toDisplayString(C[c.value]), 17))), 128))
|
|
23488
23488
|
], 16), [
|
|
23489
23489
|
[vShow, k]
|
|
@@ -23756,8 +23756,8 @@ const _hoisted_1$r = {
|
|
|
23756
23756
|
return "https://www.visitscotland.com";
|
|
23757
23757
|
}), f = computed$1(() => `${m.value}${u.value ? "/" + u.value : ""}${l.value}/search-results`), g = "https://www.visitscotland.com/data/locations" + `?locale=${u.value}`, v = ref([]), k = "https://www.visitscotland.com/tms-api/v1/attractions", _ = ref([]), b = "https://www.visitscotland.com/tms-api/v1/origins?active=1", V = ref([]), w = ref([]), N = () => {
|
|
23758
23758
|
const B = getProductTypes(), T = [];
|
|
23759
|
-
B.forEach((
|
|
23760
|
-
T.push(
|
|
23759
|
+
B.forEach((O) => {
|
|
23760
|
+
T.push(O);
|
|
23761
23761
|
}), w.value = T;
|
|
23762
23762
|
}, S = computed$1(() => t.value ? [] : w.value.map((T) => ({
|
|
23763
23763
|
...T,
|
|
@@ -23765,32 +23765,32 @@ const _hoisted_1$r = {
|
|
|
23765
23765
|
}))), C = async () => {
|
|
23766
23766
|
const B = await getData(g);
|
|
23767
23767
|
B && (v.value = B.data);
|
|
23768
|
-
},
|
|
23768
|
+
}, I = async () => {
|
|
23769
23769
|
const B = await getData(b);
|
|
23770
23770
|
B && (V.value = B.data);
|
|
23771
23771
|
}, R = async () => {
|
|
23772
23772
|
const B = await getData(k);
|
|
23773
23773
|
B && (_.value = B.data);
|
|
23774
23774
|
}, D = (B, T) => {
|
|
23775
|
-
T === "key" ? s.value = v.value.find((
|
|
23776
|
-
},
|
|
23775
|
+
T === "key" ? s.value = v.value.find((O) => O.key === B) : T === "id" ? s.value = v.value.find((O) => O.id === B) : s.value = v.value.find((O) => O.name === B.trim());
|
|
23776
|
+
}, P = (B) => {
|
|
23777
23777
|
const T = B.value;
|
|
23778
|
-
a.value = T, T === "tour" && (
|
|
23778
|
+
a.value = T, T === "tour" && (I(), R());
|
|
23779
23779
|
}, $ = () => d[n.defaultLocale] || "", M = () => {
|
|
23780
23780
|
t.value = !0, nextTick(() => {
|
|
23781
23781
|
t.value = !1, n.defaultLocation !== "" && c && D(n.defaultLocation, "id");
|
|
23782
23782
|
});
|
|
23783
|
-
},
|
|
23783
|
+
}, q = computed$1(() => a.value !== "cate" && a.value !== "acti,attr,reta" ? "d-lg-flex" : "");
|
|
23784
23784
|
onBeforeMount(async () => {
|
|
23785
23785
|
window.VS = {};
|
|
23786
23786
|
const B = document.createElement("script");
|
|
23787
23787
|
B.async = !1, B.onload = M, B.setAttribute("src", `https://www.visitscotland.com/${$().localeUrl}/data/template/search.js`), document.head.appendChild(B);
|
|
23788
23788
|
}), onMounted(async () => {
|
|
23789
|
-
C(), c.value = !0, a.value = n.defaultProd, a.value === "tour" && (
|
|
23789
|
+
C(), c.value = !0, a.value = n.defaultProd, a.value === "tour" && (I(), R()), N();
|
|
23790
23790
|
});
|
|
23791
|
-
const
|
|
23791
|
+
const H = (B) => {
|
|
23792
23792
|
r.value = B ? "on" : "off";
|
|
23793
|
-
},
|
|
23793
|
+
}, z = (B) => {
|
|
23794
23794
|
i.value = !0;
|
|
23795
23795
|
const T = B.currentTarget;
|
|
23796
23796
|
setTimeout(function() {
|
|
@@ -23798,7 +23798,7 @@ const _hoisted_1$r = {
|
|
|
23798
23798
|
}, 500);
|
|
23799
23799
|
};
|
|
23800
23800
|
return (B, T) => {
|
|
23801
|
-
var
|
|
23801
|
+
var O, W, Y, ee, Q, J;
|
|
23802
23802
|
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
23803
23803
|
t.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_2$i, [
|
|
23804
23804
|
createElementVNode("div", _hoisted_3$c, [
|
|
@@ -23806,19 +23806,19 @@ const _hoisted_1$r = {
|
|
|
23806
23806
|
unref(c) ? (openBlock(), createElementBlock("form", {
|
|
23807
23807
|
key: 0,
|
|
23808
23808
|
action: f.value,
|
|
23809
|
-
onSubmit: withModifiers(
|
|
23809
|
+
onSubmit: withModifiers(z, ["prevent"]),
|
|
23810
23810
|
"accept-charset": "UTF-8",
|
|
23811
23811
|
"data-test": "psw-form"
|
|
23812
23812
|
}, [
|
|
23813
23813
|
createElementVNode("div", _hoisted_6$a, [
|
|
23814
23814
|
createElementVNode("label", _hoisted_7$7, toDisplayString(unref(getLabelText)("search_for", "I'm looking for")), 1),
|
|
23815
23815
|
createElementVNode("div", {
|
|
23816
|
-
class: normalizeClass(
|
|
23816
|
+
class: normalizeClass(q.value)
|
|
23817
23817
|
}, [
|
|
23818
23818
|
createVNode(VsSelect, {
|
|
23819
23819
|
options: S.value,
|
|
23820
23820
|
value: e.defaultProd,
|
|
23821
|
-
onUpdated: T[0] || (T[0] = (G) =>
|
|
23821
|
+
onUpdated: T[0] || (T[0] = (G) => P(G)),
|
|
23822
23822
|
"field-name": "prodtypes"
|
|
23823
23823
|
}, null, 8, ["options", "value"]),
|
|
23824
23824
|
createElementVNode("div", _hoisted_8$5, toDisplayString(unref(getLabelText)("in", "in")), 1)
|
|
@@ -23842,7 +23842,7 @@ const _hoisted_1$r = {
|
|
|
23842
23842
|
key: 1,
|
|
23843
23843
|
type: "hidden",
|
|
23844
23844
|
name: "locplace",
|
|
23845
|
-
disabled: ((
|
|
23845
|
+
disabled: ((O = unref(s)) == null ? void 0 : O.type) === "POLYGON",
|
|
23846
23846
|
value: ((W = unref(s)) == null ? void 0 : W.key) || ""
|
|
23847
23847
|
}, null, 8, _hoisted_10$4)) : createCommentVNode("", !0),
|
|
23848
23848
|
a.value !== "tour" ? (openBlock(), createElementBlock("input", {
|
|
@@ -23863,7 +23863,7 @@ const _hoisted_1$r = {
|
|
|
23863
23863
|
createVNode(_sfc_main$z, {
|
|
23864
23864
|
"start-label": unref(getLabelText)("startdate", "Start Date", "dates"),
|
|
23865
23865
|
"end-label": unref(getLabelText)("enddate", "End Date", "dates"),
|
|
23866
|
-
onDateUpdated: T[2] || (T[2] = (G) =>
|
|
23866
|
+
onDateUpdated: T[2] || (T[2] = (G) => H(G)),
|
|
23867
23867
|
"default-dates": i.value,
|
|
23868
23868
|
"selected-prod": a.value
|
|
23869
23869
|
}, null, 8, ["start-label", "end-label", "default-dates", "selected-prod"]),
|
|
@@ -27504,16 +27504,16 @@ async function cludoAutocomplete(e, n) {
|
|
|
27504
27504
|
}
|
|
27505
27505
|
}
|
|
27506
27506
|
const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
27507
|
-
const e = ref(null), n = ref(void 0), t = ref(!1), a = ref(1), o = ref(void 0), s = ref(!1), r = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), m = ref([]), f = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), V = ref(void 0), w = ref(void 0), N = ref(-1), S = ref(""), C = ref(""),
|
|
27508
|
-
async function $(
|
|
27509
|
-
r.value = !0,
|
|
27510
|
-
const
|
|
27507
|
+
const e = ref(null), n = ref(void 0), t = ref(!1), a = ref(1), o = ref(void 0), s = ref(!1), r = ref(!1), i = ref(null), l = ref(""), c = ref(null), d = ref(null), u = ref([]), m = ref([]), f = ref(void 0), p = ref(void 0), g = ref(void 0), v = ref(!1), k = ref(""), _ = ref(""), b = ref(void 0), V = ref(void 0), w = ref(void 0), N = ref(-1), S = ref(""), C = ref(""), I = ref(""), R = ref(0), D = ref(""), P = ref("or");
|
|
27508
|
+
async function $(H = !1) {
|
|
27509
|
+
r.value = !0, H || (N.value += 1);
|
|
27510
|
+
const z = await cludoSearch(
|
|
27511
27511
|
l.value,
|
|
27512
27512
|
n.value,
|
|
27513
27513
|
a.value,
|
|
27514
27514
|
c.value,
|
|
27515
27515
|
d.value,
|
|
27516
|
-
|
|
27516
|
+
P.value
|
|
27517
27517
|
), B = await eventSearch(
|
|
27518
27518
|
o.value,
|
|
27519
27519
|
l.value,
|
|
@@ -27525,18 +27525,18 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
27525
27525
|
b.value,
|
|
27526
27526
|
w.value,
|
|
27527
27527
|
C.value,
|
|
27528
|
-
|
|
27528
|
+
I.value,
|
|
27529
27529
|
R.value,
|
|
27530
27530
|
D.value
|
|
27531
27531
|
);
|
|
27532
|
-
i.value = [...
|
|
27532
|
+
i.value = [...z.results, ...B.results], p.value = z.totalResults, g.value = B.totalResults, f.value = z.totalResults + B.totalResults, r.value = !1;
|
|
27533
27533
|
}
|
|
27534
27534
|
async function M() {
|
|
27535
27535
|
return cludoAutocomplete(l.value, n.value);
|
|
27536
27536
|
}
|
|
27537
|
-
async function
|
|
27537
|
+
async function q(H, z) {
|
|
27538
27538
|
const B = new URL(window.location.href);
|
|
27539
|
-
if (
|
|
27539
|
+
if (z ? S.value = "Autosuggestion" : S.value = "User input", l.value ? B.searchParams.set("search-term", l.value) : B.searchParams.delete("search-term"), d.value ? B.searchParams.set("category", encodeURIComponent(d.value)) : B.searchParams.delete("category"), m.value.length > 0 ? B.searchParams.set("sub-category", encodeURIComponent(m.value.join(","))) : B.searchParams.delete("sub-category"), H ? (a.value = 1, B.searchParams.set("page", a.value.toString())) : a.value && a.value > 1 ? B.searchParams.set("page", a.value.toString()) : B.searchParams.delete("page"), k.value ? B.searchParams.set("start-date", k.value) : B.searchParams.delete("start-date"), _.value ? B.searchParams.set("end-date", _.value) : B.searchParams.delete("end-date"), b.value ? B.searchParams.set("sort-by", b.value) : B.searchParams.delete("sort-by"), !v.value)
|
|
27540
27540
|
window.history.pushState({}, "", B), await $();
|
|
27541
27541
|
else {
|
|
27542
27542
|
const T = `${V.value}/${B.search}`;
|
|
@@ -27563,7 +27563,7 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
27563
27563
|
totalResults: f,
|
|
27564
27564
|
totalResultsCludo: p,
|
|
27565
27565
|
totalResultsEvents: g,
|
|
27566
|
-
navigateToResultsPage:
|
|
27566
|
+
navigateToResultsPage: q,
|
|
27567
27567
|
isHomePage: v,
|
|
27568
27568
|
startDate: k,
|
|
27569
27569
|
endDate: _,
|
|
@@ -27572,10 +27572,10 @@ const useFederatedSearchStore = defineStore("federatedSearch", () => {
|
|
|
27572
27572
|
searchInSessionCount: N,
|
|
27573
27573
|
queryInput: S,
|
|
27574
27574
|
postcode: C,
|
|
27575
|
-
location:
|
|
27575
|
+
location: I,
|
|
27576
27576
|
radius: R,
|
|
27577
27577
|
postcodeareas: D,
|
|
27578
|
-
cludoApiOperator:
|
|
27578
|
+
cludoApiOperator: P
|
|
27579
27579
|
};
|
|
27580
27580
|
}), _hoisted_1$7 = { class: "vs-fed-filter" }, _hoisted_2$6 = { class: "vs-fed-filter__scroll-container" }, _hoisted_3$5 = ["id"], _sfc_main$7 = {
|
|
27581
27581
|
__name: "FedFilter",
|
|
@@ -29314,15 +29314,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29314
29314
|
places: s
|
|
29315
29315
|
}), provide("onFeaturedLocationClick", Be), provide("addDestinationMarkers", ke);
|
|
29316
29316
|
let r, i, l, c, d, u, m, f, p, g, v = {}, k;
|
|
29317
|
-
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), V = ref(), w = ref(/* @__PURE__ */ new Set()), N = ref(/* @__PURE__ */ new Set()), S = ref(/* @__PURE__ */ new Set()), C = ref(/* @__PURE__ */ new Set()),
|
|
29317
|
+
const _ = ref(), b = ref(/* @__PURE__ */ new Set()), V = ref(), w = ref(/* @__PURE__ */ new Set()), N = ref(/* @__PURE__ */ new Set()), S = ref(/* @__PURE__ */ new Set()), C = ref(/* @__PURE__ */ new Set()), I = ref(), R = ref(), D = ref(t.zoom), P = ref(!1), $ = ref(), M = ref(/* @__PURE__ */ new Set()), q = ref(), H = ref(!1), z = ref(void 0), B = computed$1(() => {
|
|
29318
29318
|
const E = /* @__PURE__ */ new Map(), L = Q[_.value].subCategory;
|
|
29319
|
-
return Object.values(L).forEach((
|
|
29320
|
-
E.set(
|
|
29321
|
-
includedTypes:
|
|
29322
|
-
excludedTypes:
|
|
29319
|
+
return Object.values(L).forEach((A) => {
|
|
29320
|
+
E.set(A.id, {
|
|
29321
|
+
includedTypes: A.includedType,
|
|
29322
|
+
excludedTypes: A.excludedType
|
|
29323
29323
|
});
|
|
29324
29324
|
}), E;
|
|
29325
|
-
}), T = useGoogleMapStore(),
|
|
29325
|
+
}), T = useGoogleMapStore(), O = ref(void 0);
|
|
29326
29326
|
let W;
|
|
29327
29327
|
const Y = ref(void 0), ee = {
|
|
29328
29328
|
north: 61,
|
|
@@ -29359,7 +29359,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29359
29359
|
E.requiredCookies.value = cookieValues$5.google_maps, W = computed$1(() => !E.cookiesAllowed.value && E.cookiesLoaded.value === !0 || !E.cookiesLoaded.value ? (Y.value = "noCookie", !0) : !1);
|
|
29360
29360
|
}), onMounted(async () => {
|
|
29361
29361
|
if (t.categoriesLocation && axios.get(t.categoriesLocation).then((L) => {
|
|
29362
|
-
Q = L.data,
|
|
29362
|
+
Q = L.data, z.value = L.data.accommodation.keywords;
|
|
29363
29363
|
}).catch(() => {
|
|
29364
29364
|
}), W.value === !1) {
|
|
29365
29365
|
setOptions({
|
|
@@ -29427,7 +29427,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29427
29427
|
strokeWeight: 1,
|
|
29428
29428
|
fillColor: "#A3A3CC",
|
|
29429
29429
|
fillOpacity: 0.5
|
|
29430
|
-
},
|
|
29430
|
+
}, A = [
|
|
29431
29431
|
"ChIJ39UebIqp0EcRqI4tMyWV4fQ",
|
|
29432
29432
|
// England
|
|
29433
29433
|
"ChIJdZmmmcoQXkgR2OO3bu8o5fc",
|
|
@@ -29476,7 +29476,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29476
29476
|
// Archipelago, Åland
|
|
29477
29477
|
"ChIJRyEhyrlFlUcR75LTAvZg22Q"
|
|
29478
29478
|
// Luxembourg
|
|
29479
|
-
],
|
|
29479
|
+
], F = [
|
|
29480
29480
|
"ChIJ39UebIqp0EcRqI4tMyWV4fQ",
|
|
29481
29481
|
// England
|
|
29482
29482
|
"ChIJdZmmmcoQXkgR2OO3bu8o5fc",
|
|
@@ -29487,16 +29487,16 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29487
29487
|
// Faroe Islands
|
|
29488
29488
|
], j = r.getFeatureLayer(google.maps.FeatureType.COUNTRY), U = r.getFeatureLayer(google.maps.FeatureType.ADMINISTRATIVE_AREA_LEVEL_1);
|
|
29489
29489
|
E ? (j.style = null, U.style = null, j.style = (X) => {
|
|
29490
|
-
if (
|
|
29490
|
+
if (F.includes(X.feature.placeId))
|
|
29491
29491
|
return L;
|
|
29492
29492
|
}, U.style = (X) => {
|
|
29493
|
-
if (
|
|
29493
|
+
if (F.includes(X.feature.placeId))
|
|
29494
29494
|
return L;
|
|
29495
29495
|
}) : (j.style = (X) => {
|
|
29496
|
-
if (
|
|
29496
|
+
if (A.includes(X.feature.placeId))
|
|
29497
29497
|
return L;
|
|
29498
29498
|
}, U.style = (X) => {
|
|
29499
|
-
if (
|
|
29499
|
+
if (A.includes(X.feature.placeId))
|
|
29500
29500
|
return L;
|
|
29501
29501
|
});
|
|
29502
29502
|
}
|
|
@@ -29505,29 +29505,33 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29505
29505
|
}
|
|
29506
29506
|
function me(E, L) {
|
|
29507
29507
|
_e(), _.value = E, Q[E].includedType && w.value.add(Q[E].includedType), Object.values(Q[E].subCategory).forEach(
|
|
29508
|
-
(
|
|
29508
|
+
(F) => w.value.add(F.includedType)
|
|
29509
29509
|
), Object.values(Q[E].subCategory).forEach(
|
|
29510
|
-
(
|
|
29511
|
-
|
|
29510
|
+
(F) => {
|
|
29511
|
+
F.excludedType && N.value.add(F.excludedType);
|
|
29512
29512
|
}
|
|
29513
|
-
), w.value = new Set(Array.from(w.value).flat()), N.value = new Set(Array.from(N.value).flat()), w.value.forEach((
|
|
29514
|
-
N.value.has(
|
|
29515
|
-
}), V.value = Q[E],
|
|
29513
|
+
), w.value = new Set(Array.from(w.value).flat()), N.value = new Set(Array.from(N.value).flat()), w.value.forEach((F) => {
|
|
29514
|
+
N.value.has(F) && N.value.delete(F);
|
|
29515
|
+
}), V.value = Q[E], I.value = L, ge({
|
|
29516
29516
|
includedTypes: Array.from(w.value),
|
|
29517
29517
|
excludedTypes: Array.from(N.value)
|
|
29518
|
-
})
|
|
29518
|
+
});
|
|
29519
|
+
const A = Object.fromEntries(
|
|
29520
|
+
J.map((F) => [F.id, F.label])
|
|
29521
|
+
);
|
|
29522
|
+
$.value = `${A[E]} ${ae.value}`, p.value = $.value, T.showCategories = !0, ue.value = !1;
|
|
29519
29523
|
}
|
|
29520
29524
|
function pe(E, L) {
|
|
29521
|
-
const
|
|
29525
|
+
const A = ref([]), F = ref();
|
|
29522
29526
|
return E.forEach(() => {
|
|
29523
29527
|
J.forEach((j) => {
|
|
29524
|
-
j.id === _.value && (
|
|
29525
|
-
}), Object.values(
|
|
29528
|
+
j.id === _.value && (A.value = j);
|
|
29529
|
+
}), Object.values(A.value).forEach((j) => {
|
|
29526
29530
|
Object.values(j).forEach((U) => {
|
|
29527
|
-
L === U.id && (
|
|
29531
|
+
L === U.id && (F.value = U.label);
|
|
29528
29532
|
});
|
|
29529
29533
|
});
|
|
29530
|
-
}),
|
|
29534
|
+
}), F;
|
|
29531
29535
|
}
|
|
29532
29536
|
function we() {
|
|
29533
29537
|
S.value.forEach((E) => {
|
|
@@ -29536,16 +29540,16 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29536
29540
|
}
|
|
29537
29541
|
function Se(E, {
|
|
29538
29542
|
includeTypes: L = !1,
|
|
29539
|
-
excludeTypes:
|
|
29540
|
-
removeIncludedTypes:
|
|
29543
|
+
excludeTypes: A = !1,
|
|
29544
|
+
removeIncludedTypes: F = !1,
|
|
29541
29545
|
removeExcludedTypes: j = !1
|
|
29542
29546
|
} = {}) {
|
|
29543
29547
|
var X;
|
|
29544
29548
|
const U = B.value.get(E);
|
|
29545
29549
|
L && U.includedTypes.forEach((te) => {
|
|
29546
|
-
L && S.value.add(te),
|
|
29547
|
-
}), (
|
|
29548
|
-
|
|
29550
|
+
L && S.value.add(te), F && S.value.delete(te);
|
|
29551
|
+
}), (A || j) && ((X = U.excludedTypes) == null || X.forEach((te) => {
|
|
29552
|
+
A && C.value.add(te), j && C.value.delete(te);
|
|
29549
29553
|
}));
|
|
29550
29554
|
}
|
|
29551
29555
|
function Le(E, L) {
|
|
@@ -29553,17 +29557,17 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29553
29557
|
}
|
|
29554
29558
|
function Te(E, L) {
|
|
29555
29559
|
if (R.value = L, ae.value = "", E === "self-catering") {
|
|
29556
|
-
|
|
29557
|
-
const
|
|
29558
|
-
$.value =
|
|
29559
|
-
} else b.value.has(E) ? (b.value.delete(E), S.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), b.value.forEach((
|
|
29560
|
-
Se(
|
|
29560
|
+
H.value = !0, Ve(), b.value = /* @__PURE__ */ new Set(), b.value.add(E);
|
|
29561
|
+
const A = pe(b.value, E).value;
|
|
29562
|
+
$.value = A, _e(), p.value = `${$.value} ${ae.value}`, be(), p.value = A;
|
|
29563
|
+
} else b.value.has(E) ? (b.value.delete(E), S.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), b.value.forEach((A) => {
|
|
29564
|
+
Se(A, {
|
|
29561
29565
|
includeTypes: !0,
|
|
29562
29566
|
excludeTypes: !0
|
|
29563
29567
|
});
|
|
29564
29568
|
}), we(), M.value.delete(
|
|
29565
29569
|
pe(b.value, E).value
|
|
29566
|
-
), b.value.size === 0 ? (M.value = /* @__PURE__ */ new Set(), me(_.value,
|
|
29570
|
+
), b.value.size === 0 ? (M.value = /* @__PURE__ */ new Set(), me(_.value, I.value)) : (ge({
|
|
29567
29571
|
includedTypes: Array.from(S.value).flat(),
|
|
29568
29572
|
excludedTypes: Array.from(C.value).flat()
|
|
29569
29573
|
}), $.value = Array.from(M.value).join(", "), p.value = $.value)) : (b.value.add(E), Se(E, {
|
|
@@ -29581,15 +29585,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29581
29585
|
excludedTypes: L = []
|
|
29582
29586
|
} = {}) {
|
|
29583
29587
|
fe(), Ve(), G += 1;
|
|
29584
|
-
const
|
|
29585
|
-
T.filterUsesCount += 1,
|
|
29586
|
-
const
|
|
29588
|
+
const A = G;
|
|
29589
|
+
T.filterUsesCount += 1, q.value = "nearby";
|
|
29590
|
+
const F = r.getBounds(), j = F.getNorthEast(), U = F.getSouthWest(), X = google.maps.geometry.spherical.computeDistanceBetween(j, U), te = Math.min(X / 2, 25e3);
|
|
29587
29591
|
u.includedTypes = E, u.excludedTypes = L ?? [], u.maxResultCount = NUMBER_OF_RESULTS, u.locationRestriction = {
|
|
29588
29592
|
center: r.getCenter(),
|
|
29589
29593
|
radius: te
|
|
29590
29594
|
}, l.style.display = "block", l.addEventListener("gmp-load", () => {
|
|
29591
|
-
if (
|
|
29592
|
-
xe(
|
|
29595
|
+
if (A !== G) return;
|
|
29596
|
+
xe(A);
|
|
29593
29597
|
let se = "main", Ne = _.value;
|
|
29594
29598
|
b.value.size && (se = "sub", Ne = Array.from(b.value).join(", ")), n.createDataLayerObject("googleMapFilterEvent", {
|
|
29595
29599
|
filter_type: se,
|
|
@@ -29605,10 +29609,10 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29605
29609
|
async function be() {
|
|
29606
29610
|
fe(), _e(), G += 1;
|
|
29607
29611
|
const E = G;
|
|
29608
|
-
T.searchesCount += 1,
|
|
29612
|
+
T.searchesCount += 1, q.value = "text", $.value = p.value.trim(), $.value && (H.value ? (d.locationBias = null, d.locationRestriction = r.getBounds()) : (d.locationRestriction = null, d.locationBias = r.getCenter()), d.includedType = z.value.some(
|
|
29609
29613
|
(L) => $.value.toLowerCase().includes(L)
|
|
29610
29614
|
) ? "lodging" : null, d.textQuery = `${$.value} in Scotland`, d.maxResultCount = NUMBER_OF_RESULTS, c.style.display = "block", c.addEventListener("gmp-load", () => {
|
|
29611
|
-
E === G && (xe(E),
|
|
29615
|
+
E === G && (xe(E), H.value = !1, n.createDataLayerObject("googleMapSearchEvent", {
|
|
29612
29616
|
search_query: $.value,
|
|
29613
29617
|
search_map_location: r.getCenter().toString(),
|
|
29614
29618
|
search_results_count: c.places.length,
|
|
@@ -29619,12 +29623,12 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29619
29623
|
}), T.showDestinations = !1, T.showCategories = !0);
|
|
29620
29624
|
}
|
|
29621
29625
|
async function xe(E) {
|
|
29622
|
-
const { AdvancedMarkerElement: L } = await importLibrary("marker"), { LatLngBounds:
|
|
29626
|
+
const { AdvancedMarkerElement: L } = await importLibrary("marker"), { LatLngBounds: A } = await importLibrary("core");
|
|
29623
29627
|
if (E !== G) return;
|
|
29624
|
-
const
|
|
29625
|
-
|
|
29626
|
-
const j = new
|
|
29627
|
-
|
|
29628
|
+
const F = ref();
|
|
29629
|
+
q.value === "nearby" ? F.value = l : q.value === "text" ? F.value = c : console.error("Unrecognised Search type"), F.value.places.length === 0 ? (O.value = !0, F.value.style.display = "none") : (O.value = !1, F.value.style.display = "block");
|
|
29630
|
+
const j = new A();
|
|
29631
|
+
F.value.places && (F.value.places.forEach((U) => {
|
|
29628
29632
|
const X = document.createElement("div");
|
|
29629
29633
|
X.classList.add("vs-map-marker");
|
|
29630
29634
|
const te = document.createElement("i");
|
|
@@ -29641,7 +29645,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29641
29645
|
ve(U);
|
|
29642
29646
|
}), se.metadata = {
|
|
29643
29647
|
id: U.id
|
|
29644
|
-
}, v[U.id] = se, j.extend(U.location),
|
|
29648
|
+
}, v[U.id] = se, j.extend(U.location), F.value.places.length === 1 ? (Z(() => r.setCenter(
|
|
29645
29649
|
{
|
|
29646
29650
|
lat: U.location.lat(),
|
|
29647
29651
|
lng: U.location.lng()
|
|
@@ -29652,30 +29656,30 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29652
29656
|
async function ke() {
|
|
29653
29657
|
const { AdvancedMarkerElement: E } = await importLibrary("marker");
|
|
29654
29658
|
$e(), s.value.forEach((L) => {
|
|
29655
|
-
const
|
|
29656
|
-
|
|
29657
|
-
const
|
|
29658
|
-
|
|
29659
|
+
const A = document.createElement("div");
|
|
29660
|
+
A.classList.add("vs-map-marker");
|
|
29661
|
+
const F = document.createElement("i");
|
|
29662
|
+
F.classList.add("fa-solid", "fa-location-dot"), A.appendChild(F);
|
|
29659
29663
|
const j = new E({
|
|
29660
29664
|
map: r,
|
|
29661
29665
|
position: {
|
|
29662
29666
|
lat: L.properties.locationCentre.latitude,
|
|
29663
29667
|
lng: L.properties.locationCentre.longitude
|
|
29664
29668
|
},
|
|
29665
|
-
content:
|
|
29669
|
+
content: A,
|
|
29666
29670
|
title: L.properties.title
|
|
29667
29671
|
});
|
|
29668
29672
|
j.addListener("gmp-click", () => Be(L)), v[L.properties.title] = j;
|
|
29669
29673
|
});
|
|
29670
29674
|
}
|
|
29671
29675
|
function fe(E, L) {
|
|
29672
|
-
T.showCategories = !1, $e(),
|
|
29676
|
+
T.showCategories = !1, $e(), q.value = "", l.style.display = "none", c.style.display = "none", d.textQuery = null, P.value = !1, g && g.close && g.close(), O.value = void 0, E && (Ve(), _e(), he("clear_all"), ke(), T.showDestinations = !0), L && (Z(() => r.setCenter(t.center)), Z(() => r.setZoom(t.zoom)), Z(() => r.fitBounds(ee)), he("reset_map"));
|
|
29673
29677
|
}
|
|
29674
29678
|
function Ve() {
|
|
29675
29679
|
$.value = null, p.value = "";
|
|
29676
29680
|
}
|
|
29677
29681
|
function _e() {
|
|
29678
|
-
_.value = void 0, b.value = /* @__PURE__ */ new Set(), w.value = /* @__PURE__ */ new Set(), N.value = /* @__PURE__ */ new Set(), S.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(),
|
|
29682
|
+
_.value = void 0, b.value = /* @__PURE__ */ new Set(), w.value = /* @__PURE__ */ new Set(), N.value = /* @__PURE__ */ new Set(), S.value = /* @__PURE__ */ new Set(), C.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(), I.value = void 0, R.value = void 0;
|
|
29679
29683
|
}
|
|
29680
29684
|
function $e() {
|
|
29681
29685
|
for (const E in v)
|
|
@@ -29696,7 +29700,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29696
29700
|
}), Z(() => r.setCenter(E.location));
|
|
29697
29701
|
}
|
|
29698
29702
|
async function he(E, L) {
|
|
29699
|
-
let
|
|
29703
|
+
let A = "", F = "", j = "", U = "";
|
|
29700
29704
|
L && (await L.fetchFields({
|
|
29701
29705
|
fields: [
|
|
29702
29706
|
"displayName",
|
|
@@ -29704,23 +29708,23 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29704
29708
|
"rating",
|
|
29705
29709
|
"websiteURI"
|
|
29706
29710
|
]
|
|
29707
|
-
}),
|
|
29711
|
+
}), A = L.displayName, F = L.rating, j = L.websiteURI, U = L.primaryType), n.createDataLayerObject("googleMapInteractionEvent", {
|
|
29708
29712
|
interaction_type: E,
|
|
29709
29713
|
search_query: p.value.trim(),
|
|
29710
29714
|
map_location: r.getCenter().toString(),
|
|
29711
29715
|
visible_attractions_count: k,
|
|
29712
|
-
card_attraction_name:
|
|
29716
|
+
card_attraction_name: A,
|
|
29713
29717
|
card_attraction_category: U,
|
|
29714
|
-
card_attraction_rating:
|
|
29718
|
+
card_attraction_rating: F,
|
|
29715
29719
|
card_attraction_url: j,
|
|
29716
29720
|
interaction_timestamp_ms: Date.now()
|
|
29717
29721
|
}), Ce(E);
|
|
29718
29722
|
}
|
|
29719
29723
|
function Ce(E) {
|
|
29720
29724
|
if (!T.firstInteraction) {
|
|
29721
|
-
const
|
|
29725
|
+
const A = Date.now() - T.timeMounted;
|
|
29722
29726
|
n.createDataLayerObject("googleMapTimeToFirstInteractionEvent", {
|
|
29723
|
-
time_to_first_interaction_ms:
|
|
29727
|
+
time_to_first_interaction_ms: A,
|
|
29724
29728
|
first_interaction_type: E
|
|
29725
29729
|
}), T.firstInteraction = !0;
|
|
29726
29730
|
}
|
|
@@ -29729,8 +29733,8 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29729
29733
|
const E = r.getBounds();
|
|
29730
29734
|
if (!E) return 0;
|
|
29731
29735
|
let L = 0;
|
|
29732
|
-
for (let
|
|
29733
|
-
const j = v[Object.keys(v)[
|
|
29736
|
+
for (let A = 0; A < Object.keys(v).length; A++) {
|
|
29737
|
+
const j = v[Object.keys(v)[A]].position;
|
|
29734
29738
|
E.contains(j) && (L += 1);
|
|
29735
29739
|
}
|
|
29736
29740
|
return L;
|
|
@@ -29774,7 +29778,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29774
29778
|
return;
|
|
29775
29779
|
}
|
|
29776
29780
|
if (_.value) {
|
|
29777
|
-
me(_.value,
|
|
29781
|
+
me(_.value, I.value);
|
|
29778
29782
|
return;
|
|
29779
29783
|
}
|
|
29780
29784
|
if (p.value) {
|
|
@@ -29795,15 +29799,15 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29795
29799
|
"selected-category": _.value,
|
|
29796
29800
|
"selected-subcategories": b.value,
|
|
29797
29801
|
"sidebar-labels": ce,
|
|
29798
|
-
onCategorySelected: L[1] || (L[1] = (
|
|
29799
|
-
onResetMap: L[2] || (L[2] = (
|
|
29800
|
-
onResetLocation: L[3] || (L[3] = (
|
|
29802
|
+
onCategorySelected: L[1] || (L[1] = (A) => Ee(A.id, A.key)),
|
|
29803
|
+
onResetMap: L[2] || (L[2] = (A) => fe(!0)),
|
|
29804
|
+
onResetLocation: L[3] || (L[3] = (A) => fe(!0, !0)),
|
|
29801
29805
|
onSearchInputChanged: be,
|
|
29802
|
-
onSubcategorySelected: L[4] || (L[4] = (
|
|
29806
|
+
onSubcategorySelected: L[4] || (L[4] = (A) => Le(A.id, A.key))
|
|
29803
29807
|
}, {
|
|
29804
29808
|
"vs-map-sidebar-search-results": withCtx(() => [
|
|
29805
|
-
|
|
29806
|
-
|
|
29809
|
+
O.value || t.alertText && O.value === !1 ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
29810
|
+
O.value ? (openBlock(), createBlock(unref(VsAlert), {
|
|
29807
29811
|
key: 0,
|
|
29808
29812
|
id: "vs-map__alert",
|
|
29809
29813
|
size: "small"
|
|
@@ -29813,7 +29817,7 @@ const _hoisted_1 = { class: "vs-map" }, _hoisted_2 = { class: "vs-map__controls"
|
|
|
29813
29817
|
createTextVNode(toDisplayString(e.noResultsMessage) + " ", 1),
|
|
29814
29818
|
createElementVNode("a", {
|
|
29815
29819
|
href: "#",
|
|
29816
|
-
onClick: L[0] || (L[0] = withModifiers((
|
|
29820
|
+
onClick: L[0] || (L[0] = withModifiers((A) => fe(!0, !0), ["prevent"]))
|
|
29817
29821
|
}, toDisplayString(e.resetMapNoResultsMessage), 1)
|
|
29818
29822
|
])
|
|
29819
29823
|
]),
|